:root {
  --container: 1120px;
  --gap: 28px;
  --radius: 18px;

  --brand: #0f4b3a;
  --brand-2: #e8efe8;
  --beige: #efe9d8;
  --ink: #0b0d0c;
  --muted: #5b615e;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);

  --fz-hero: clamp(28px, 5vw, 56px);
  --fz-h1: clamp(24px, 3.6vw, 40px);
  --fz-h2: clamp(20px, 2.8vw, 28px);
  --fz-lead: clamp(16px, 2.2vw, 18px);
  --fz-body: 16px;
  --fz-small: 13px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
img{max-width:100%;display:block;height:auto}
a{text-decoration:none;color:inherit}

body{font-family:"Noto Sans JP",sans-serif; color:var(--ink); background:var(--white); line-height:1.7}
.serif{font-family:"Noto Serif JP",serif}

.container{max-width:var(--container); margin:0 auto; padding:0 20px}
.section{padding:88px 0}

/* Buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; padding:14px 80px; border-radius:999px; border:1px solid transparent; cursor:pointer; font-weight:700; transition:.2s}
.btn--cv{background:#fb6c4b; color:var(--white)}
.btn--cv:hover { background: var(--white); color: var(--brand); border: 1px solid var(--brand);}
.btn--primary{background:var(--brand); color:var(--white)}
.btn--primary:hover { background: var(--white); color: var(--brand); border: 1px solid var(--brand);}
.btn--ghost{background:var(--white); color:var(--brand); border:0px solid #d7e2dc}
.btn--ghost:hover { background: var(--brand);color: var(--white); }
.btn { margin-top: 24px; margin-bottom: 24px;}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 80px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: .2s;
  margin-top: 24px;
  margin-bottom: 24px;
}

/* スマホ版（横幅固定＋中央寄せ） */
@media (max-width: 480px) {
  .btn {
    width: 240px;        /* 横幅を固定 */
    padding: 14px 0;     /* 横paddingをリセットして均等配置 */
    margin: 16px auto;   /* 自動で中央寄せ */
    display: block;      /* 横幅固定時はblockにする方が扱いやすい */
    text-align: center;  /* テキストを中央寄せ */
  }
}

/* PC版ではハンバーガーボタンを非表示 */
@media (min-width: 960px){
  .header__toggle,
  .hamburger,
  .menu-toggle,
  .nav-toggle {
    display: none !important;
    visibility: hidden;
  }
}

/* Header */
.header {position: fixed; top: 0; left: 0; right: 0; z-index: 1000;background:rgba(255,255,255,0.5); backdrop-filter:blur(6px); border-bottom:0px solid #eee}
.body { padding-top: 78px;}
.nav{height:78px; display:flex; align-items:center; justify-content:space-between; gap:20px}
.logo-mark{background:var(--beige); border-radius:14px; padding:16spx 16px; font-weight:700; font-family:"Noto Sans JP",sans-serif;}
.nav__links{display:flex; gap:28px}
.nav__cta{margin-left:12px}
.logo-img {height: 48px;width: auto;display: block;}
.logo a {display: inline-block; background: var(--beige); padding: 15px 25px 10px; border-radius: 0 0 14px 14px;}

/* Hero */
.hero{padding:110px 0 100px}
.hero__inner{display:grid; grid-template-columns:0.7fr 1.3fr; gap:var(--gap); align-items:center}
.hero__title{font-size:var(--fz-hero); color:var(--brand); letter-spacing:.08em; padding-left: 50px; font-weight: 300;}
.hero__img{border-radius:20px 0 0 20px; overflow:hidden; box-shadow:var(--shadow);margin-right: -20px;}

/* About */
.band{background:var(--beige)}
.band__box{text-align:center; padding: 60px 0px}
.band p{font-size:var(--fz-lead)}
.band { line-height: 2.2; }

/* Courses */
.eyebrow{text-align:center; color:var(--muted); font-weight:700; margin-bottom:8px}
.section-title{text-align:center; color:var(--brand); font-size: 30px;(--fz-h2); font-family:"Noto Serif JP",serif}
.course-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:32px; margin-top:100px}
.course{text-align:center}
.course__thumb{width:168px; height:168px; margin:0 auto 16px; border-radius:999px; overflow:hidden; box-shadow:var(--shadow)}
.course__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center;}
.center { display: flex; justify-content: center; }
.center .btn { margin-top: 60px; }

/* Footer */
.footer{background:var(--brand); color:var(--white); padding:52px 0 32px}
.footer__links{display:flex; justify-content:center; gap:16px; flex-wrap:wrap; margin-bottom:28px}
.pill{background:var(--white); color:var(--brand); border-radius:999px; padding:14px 60px; font-weight:700}
.pill:hover { background: var(--brand);color: var(--white); border: 1px solid var(--white)}
.copy{text-align:center; font-size:var(--fz-small)}

/* Access  */
#access .section-title { margin-bottom: 24px; }
#access p.center        { margin-bottom: 24px; font-family:"Noto Serif JP", serif; }
#access .map-wrap       { border-radius:16px; overflow:hidden; box-shadow:var(--shadow); }
#access .map-wrap iframe{ width:100%; height:400px; border:0; }
#access.section {padding: 48px 0;}
#access .band__box {padding: 40px 20px;}
html, body { overflow-x: hidden; }


/* ============ Responsive commons rules ============ */

/* Tablet & down (〜768px) */
@media (max-width: 768px) {
  /* コンテナ余白を広めに */
  .container { padding: 0 16px; }
  /* グリッド：4列→2列 */
  .course-grid { grid-template-columns: repeat(2, 1fr); gap: 20px;}
  /* ヒーロー：縦積みに変更 */
  .hero__inner { grid-template-columns: 1fr; text-align: center;}
  .hero__title { font-size: 28px; padding-left: 0; margin-bottom: 20px;}
  /* 見出しのサイズ縮小 */
  .section-title { font-size: 22px;text-align: center; }
}

/* Phone small (〜480px) */
@media (max-width: 480px) {
  /* ナビゲーション */
  .nav__links,
  .nav__cta { display: none; }   /* ハンバーガー実装予定なら非表示 */
  .logo-img { height: 32px; }
  /* グリッド：2列→1列 */
  .course-grid { grid-template-columns: 1fr;}
  /* ボタン調整 */
  .btn { padding: 12px 32px; font-size: 14px;}
  /* ヒーロータイトルさらに縮小 */
  .hero__title { font-size: 22px; line-height: 1.4;}
  /* 見出し調整 */
  .section-title { font-size: 20px;text-align: center; }
  /* フッター非表示 */
  .pill { display: none; }
    .footer { padding: 8px 0;}
  .copy { font-size: 12px; padding: 5px; }
}


/* ============ Hero  ============ */
/* Tablet & down (<=768px) */
@media (max-width: 768px){
  .hero{ padding: 48px 0; }
  .hero__inner{
    display:block;              /* 2カラム→縦積み */
    position: relative;         /* 絶対配置の基準 */
    text-align: left;
  }
  .hero__img{
    position: relative;
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .hero__img img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  /* タイトルを画像の上に重ねる */
  .hero__title{
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 12%;
    margin: 0;
    padding: 8px 10px;
    font-size: clamp(22px, 6.2vw, 30px);
    line-height: 1.25;
    letter-spacing: .08em;
    color: var(--brand);             /* 写真が明るい想定（緑文字） */
    z-index: 2;
    /* 読みやすさ向上用（必要ならON） */
    /* text-shadow: 0 2px 10px rgba(0,0,0,.25); */
    /* background: rgba(255,255,255,.6); border-radius: 8px; */
  }
}

/* Phone small (<=480px) */
@media (max-width: 480px) {
  .hero { position: relative; /* テキスト配置の基準にする */}
  .hero__title { position: absolute; top: 28%; right: 2%;  font-size: 28px;  color: var(--brand); font-family: "Noto Serif JP", serif; font-weight: 300; line-height: 1.4; text-align: right;}
}
  .section-title { margin-top: 0px; margin-bottom: 20px;}
  .btn--primary { margin-top: 10px; margin-bottom: 0px;}


/* ============ About  ============ */
/* Tablet & down (<=768px) */
@media (max-width: 768px) {
  #about { padding-top: 30px; padding-bottom: 10px; }}
  .band .btn { margin-top: 15px; margin-bottom: 10;}
  .about-hero__title { font-size: 28px;text-align: center; }


  /* Phone small (<=480px) */
@media (max-width: 480px) {
  #about { padding-top: 40px; padding-bottom: 20px;}}
  .about-hero__title { font-size: 24x;text-align: center; }
  .reasons__grid {  width: 80%; margin: 0 auto; }
  .flow {  width: 80%; margin: 0 auto; }


/* ============ Course  ============ */
/* Tablet & down (<=768px) */
@media (max-width: 768px) {
  .course-hero__title { font-size: 28px;text-align: center; }
  .course-grid {  width: 80%; margin: 0 auto; }
  .course-intro {  width: 80%; margin: 0 auto; }

  /* Phone small (<=480px) */
@media (max-width: 480px) {
  .course-hero__title { font-size: 24x;text-align: center; }
  .course-grid {  width: 80%; margin: 0 auto; }
  .course-intro {  width: 80%; margin: 0 auto; }
  
/* ============ Access  ============ */
/* Tablet & down (<=768px) */
@media (max-width: 768px) {
  #access .container { padding-top: 20px; padding-bottom: 0px;}}
/* Phone small (<=480px) */
@media (max-width: 480px) {
  #access .container { padding-top: 0px; padding-bottom: 0px;}
  .map-wrap { margin-top: 16px; margin-bottom: 24px;}

}

/* =========================
   Hamburger (base)
========================= */
.hamburger{
  display:none; width:34px; height:28px; position:relative;
  border:0; background:transparent; padding:0; cursor:pointer;z-index: 1002;
}
.hamburger span{
  position:absolute; left:0; right:0; height:3px; border-radius:2px;
  background:var(--brand); transition:.25s; transform-origin:center;
}
.hamburger span:nth-child(1){ top:3px; }
.hamburger span:nth-child(2){ top:50%; transform:translateY(-50%); }
.hamburger span:nth-child(3){ bottom:3px; }


/* =========================
   Drawer (fullscreen) for <=768px
========================= */
@media (max-width: 768px){
  /* 三本線を表示、通常ナビは隠す */
  .hamburger{ display:block; }
  .nav__links{ display:none; }
  /* CTAボタンを隠したい場合は以下をONに */
  /* .nav__cta{ display:none; } */

  /* 開いた状態：.nav に is-open が付く */
  .nav.is-open .nav__links{
    height: 100vh;
    display:flex;
    flex-direction:column;
    gap:24px;
    position:fixed;
    inset:0;                         /* 画面全体を覆う */
    background:var(--white);
    padding:100px 24px 24px;         /* 上はヘッダー分ゆとり */
    z-index:1001;                    /* ヘッダーより上に */
    overflow:auto;
  }

  /* 半透明の背面（クリックで閉じる用） */
  .nav.is-open::after{
    content:"";
    position:fixed; inset:0;
    background:rgba(0,0,0,.28);
    backdrop-filter:blur(2px);
    z-index:1000;
  }

  /* ハンバーガー → X 変形 */
    .nav.is-open .hamburger span:nth-child(1){ transform:translateY(9px) rotate(45deg); }
    .nav.is-open .hamburger span:nth-child(2){ opacity:0; }
    .nav.is-open .hamburger span:nth-child(3){ transform:translateY(-10px) rotate(-45deg); }

  /* メニューの見栄え（任意） */
  #global-nav a{
    font-size:18px;
    font-weight:700;
    color:var(--brand);
    text-align:center;
    padding:12px 8px;
    border-radius:12px;
  }
  #global-nav a:active{ background:var(--brand-2); }

  /* ドロワー中は背景スクロールを止める */
  .no-scroll{ overflow:hidden; }
}

/* スマホ固定CTA（幅<=960pxだけ表示） */
.mobile-cta{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}

.mobile-cta__btn{
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 9999px;
  background: var(--accent, #f27a57);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}

/* PCでは非表示 */
@media (min-width: 960px){
  .mobile-cta{ display: none; }
}

/* 本文下が隠れないように余白を確保（JSでセットした --cta-h を使う） */
body{ padding-bottom: var(--cta-h, 0); }
