@charset "UTF-8";

/* ============================================================
   第1章：変数定義 & タイポグラフィ一括管理つまみ
   - ここを触れば、サイト全体のフォントサイズや色が連動して変化します
   ============================================================ */
:root {
  /* ------------------------------------------------------------
     【カラーパレットのつまみ】
     サイト全体のブランドカラーを一括変更したい場合はここを変更
     ------------------------------------------------------------ */
  --color-primary: #102b4c;       /* 信頼のダークネイビー（見出し・主要テキスト用） */
  --color-accent: #3dd84b;        /* 若葉グリーン（アクセントライン・装飾用） */
  --color-accent-dark: #2cb338;   /* ボタン・強調文字用グリーン */
  --color-text-main: #242e38;  /* ネイビー系の深い墨色（白でもミントでも文字が引き締まる） */
  --color-text-sub: #586776;  /* mainと同系統で明るさを落としたスレートグレー */

  /* 背景色・ボーダーのつまみ */
  --color-bg-white: #ffffff;
  --color-bg-mint: #f4f9f5;       /* 白に若葉を一滴垂らした淡緑（特徴セクション等） */
  --color-border: #e2ebe4;        /* 区切り線・カード枠線 */

  /* フォント指定 */
  --font-serif: 'Noto Serif JP', serif, helvetica, arial;
  --font-sans: 'Noto Sans JP', sans-serif, helvetica, arial;

  /* コンテンツ最大幅（PC表示時に横に広がりすぎないための上限値） */
  --content-max-width: 1200px;

  /* ------------------------------------------------------------
     【フォントサイズ一括管理のつまみ】
     各セクションのCSSを個別に見に行かなくても、ここの数値を
     変更するだけでサイト全体のサイズ階層が連動して変化します。
     ------------------------------------------------------------ */
  /* ============================================================
   見出しサイズ調整
   ============================================================ */

/* h1：FV見出し
   375px: 26px (1.625rem) 〜 1200px: 48px (3rem)
   大きすぎず上品な堂々感を維持 */
--fs-h1: clamp(1.625rem, 1.25rem + 1.6vw, 3rem);

/* h2：セクション見出し
   375px: 20px (1.25rem) 〜 1200px: 32px (2rem)
   スマホで主張しすぎないスマートなサイズに圧縮 */
--fs-h2: clamp(1.25rem, 0.91rem + 1.45vw, 2rem);

/* h3：カードタイトル・小見出し
   375px: 17px (1.0625rem) 〜 1200px: 20px (1.25rem)
   固定をやめ、画面幅に応じて自然に拡大 */
--fs-h3: clamp(1.0625rem, 0.98rem + 0.36vw, 1.25rem);

  

  /* 本文（body）：画面幅370px（15px相当）〜 1200px（18px相当）で滑らかに拡大 */
  --fs-body: clamp(0.9375rem, 0.8726rem + 0.2804vw, 1.125rem);

  /* 補足テキスト・注記文 */
  --fs-sub: 0.7rem;

  /* 行間（line-height）のつまみ：見出しは締まりよく、本文は読みやすく広め */
  --lh-heading: 1.4;
  --lh-body: 1.75;
}

html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* サイト全体の本文ベースルール（ここから子要素へ継承される） */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
   【マークアップ共通タグの定義】
   クラス名に依存せず、HTMLタグそのものに共通の品格を持たせる
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--color-primary);
  line-height: var(--lh-heading);
  margin: 0;
}

/* h1：FV見出し（サイズは変数 --fs-h1 を参照） */
h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
}

/* h2：すべてのセクション共通見出し（サイズは変数 --fs-h2 を参照） */
h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* h3：カードなどの共通小見出し（サイズは変数 --fs-h3 を参照） */
h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
/* h4：カード内の小項目見出し（サイズは変数 --fs-h4 を参照） */
h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
p {
  margin: 0;
  color: var(--color-bg-main);
}

/* ドロワーメニュー展開時の背景スクロールロック */
body.no-scroll {
  overflow: hidden;
}

img, picture, svg, iframe {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   第2章：全幅背景帯 ＆ 中央寄せインナー（既存維持）
   - 親（section, header, footer）は幅100%で画面端まで塗りつぶす
   - 子（.content-inner）は最大1200pxで左右中央寄せ
   ============================================================ */
section, header, footer {
  width: 100%;
}

.content-inner {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* セクション全体の上下余白（スマホ48px 〜 PC80pxで滑らかに可変）
   ※お好み調整：上下の余白をもっとゆったり取りたい場合は
     clamp(4rem, 7vw, 6rem) にすると高級感が増します */
section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

/* 共通背景色ユーティリティ */
.bg-white {
  background-color: var(--color-bg-white);
}

.bg-mint {
  background-color: var(--color-bg-mint);
}

.is-bg-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ============================================================
   第3章：セクション共通見出しコンポーネント
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

/* WORRIES, FEATURE, TUITION POLICY などの英字ラベル */
.section-sub {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

/* セクションのh2見出し（フォントサイズはh2の共通タグルールを自動継承） */
.section-title {
  margin: 0;               /* 上下左右の余計なマージンをリセット */
  margin-bottom: 0.85rem;  /* 下だけに余白をつける */
}

/* 見出し下の補足説明文（「面談で一番よく伺うご相談です」など） */
.section-desc {
  
  font-size: var(--fs-sub);
  color: var(--color-text-sub);
  max-width: 290px;           /* スマホで横に広がりすぎない上限幅（PCで広げる） */
  margin: 0;
  margin-inline: auto;
  text-align: center;
  line-height: 1.75;
}
@media (min-width: 768px) {
  .section-desc {
    max-width: 600px;         /* PC表示時はゆったり読める幅へ */
  }
}

/* ============================================================
   第5章：ヘッダー & ナビゲーション（既存のまま完全維持）
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.header__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
/* 親：中身（文字とロゴ）を横並びにして縦中央で揃える */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* 「個別指導」とロゴの間の隙間 */
  text-decoration: none;
}



/* ヘッダーのロゴマーク */
.header-brand img {
  height: clamp(2.5rem, 1.65rem + 3.64vw, 4.375rem); /* ハンバーガー（30px）と揃うサイズに直接指定 */
  width: auto;  /* アスペクト比を自動維持 */
  display: block;
}

.header-logo {
  
  width: auto;
  display: block;
}
.site-name {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.header-menu {
  display: flex;
  align-items: center;
}

.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 3;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.drawer-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-bg-white);
  box-shadow: -4px 0 16px rgba(16, 43, 76, 0.1);
  padding: 80px 24px 24px;
  z-index: 2;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-menu.is-active {
  transform: translateX(0);
}

.drawer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-menu a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .hamburger-menu {
    display: none;
  }

  .drawer-menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    transform: none;
  }

  .drawer-menu ul {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }

  .drawer-menu a {
    font-size: 0.9rem;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
  }

  .drawer-menu a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
  }

  .drawer-menu a:hover::after {
    width: 100%;
  }
}
/* ------------------------------------------------------------
   CTAボタン（白ベース ＋ 指定のスライドロジック組み込み）
   ------------------------------------------------------------ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 440px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 1.15rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: color 0.2s cubic-bezier(0.45, 0, 0.55, 1),
              transform 0.2s cubic-bezier(0.45, 0, 0.55, 1),
              box-shadow 0.2s cubic-bezier(0.45, 0, 0.55, 1);
}

/* 指定のスライド機能（.slide） */
.btn-primary.slide {
  background: #ffffff;
  color: #1b4b3e; /* 通常時の文字色：深緑 */
  
  position: relative;
  z-index: 1;
  
}

.btn-primary.slide::after {
  background: var(--color-primary); /* スライドして満ちる色：ディープネイビー */
  position: absolute;
  inset: -2px; 
  content: '';
  
  border-radius: inherit;
  transform: scaleX(0); /* 【変更】横方向だけ 0 にする */
  transform-origin: left center; /* 【変更】基準点を左中央にする */
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: -1;
}

.btn-primary.slide:hover {
  color: #ffffff; /* ホバー時の文字色：白反転 */
  /* transform: translateY(-2px); */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  
}

.btn-primary.slide:hover::after {
  transform: scale(1);
}

/* 矢印アイコンの連動アニメーション */
.btn-arrow {
  display: inline-block;
  font-size: 1.05rem;
  transition: transform 0.2s cubic-bezier(0.45, 0, 0.55, 1);
}

.btn-primary.slide:hover .btn-arrow {
  transform: translateX(4px);
}

/* 補足注記テキスト */
.trial-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

/* PC用改行クラス（未定義の場合用） */
.pc-only {
  display: none;
}
@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }
}





/* ============================================================
   第11章：アクセスセクション
   ============================================================ */
/* .access-title は h2 共通ルールを自動継承 */

.address-text {
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 1rem 0;
}

.map-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
  max-width: 800px;
  margin-inline: auto;
}

.map-box iframe {
  width: 100%;
  height: clamp(280px, 40vw, 420px);
  display: block;
}

.parking-note {
  font-size: var(--fs-sub);
  color: var(--color-text-sub);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 800px;
  
}

/* ============================================================
   第12章：フッター（既存維持）
   ============================================================ */
.footer {
  padding-block: 2.5rem 2rem;
}

.footer-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center; /* 中身を確実に中央配置 */
  gap: 0.75rem;        /* 全体の要素間を均等に */
}
/* ★フッターロゴのサイズ制御★ */
.footer-brand img {
  height: clamp(2.5rem, 1.93rem + 2.42vw, 3.75rem); /* 画面幅に応じて品よくスケール */
  width: auto;
  display: block;
  margin-bottom: 0.5rem; /* 住所との間に少し抜けを作る */
}
.footer-address {
  margin: 0;
  font-size: 0.9rem;
  color: #a2b4c7;
}

/* ==============================================
   Footer Telephone Link (モバイルファースト設計)
   ============================================== */

/* ① 基本設定：スマホ（デフォルト） */
.footer-tel a {
  /* ディープネイビー上でくっきり映える上品なオレンジ */
  color: #f6a068;
  
  /* 押せることが自然に伝わる下線デザイン */
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 4px;      /* 文字と下線の間に適度な隙間を空ける */
  text-decoration-thickness: 1.5px; /* 繊細な細さで品を保つ */
  
  font-weight: 700;
  font-size: 1rem;
  pointer-events: auto;           /* タップ有効 */
  transition: opacity 0.2s ease, color 0.2s ease;
}

/* スマホで触れた瞬間のフィードバック */
.footer-tel a:active {
  opacity: 0.7;
}

/* ② メディアクエリ：PC（幅768px以上〜） */
@media (min-width: 768px) {
  .footer-tel a {
    /* PCでは通常の落ち着いた白文字に戻す */
    color: #ffffff;
    text-decoration: none;         /* 下線を消す */
    pointer-events: none;          /* クリックを完全に無効化 */
    cursor: default;               /* マウスカーソルを通常に戻す */
  }
}

.copyright {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #7b93ab;
}

/* ============================================================
   第13章：ページトップへ戻る固定ボタン（既存維持）
   ============================================================ */
.page-top-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

.page-top-btn.is-active {
  opacity: 1;
  visibility: visible;
}

@media (hover: hover) {
  .page-top-btn:hover {
    transform: translateY(-3px);
  }
}




/* ------------------------------------------------------------
   下層ページ共通ヘッダー（subpage-intro）
   ------------------------------------------------------------ */
.subpage-intro {
  
  background-color:var(--color-bg-white) ;
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(2.5rem, 5vw, 4rem);

  /* ★画面の高さの約45〜50%を最低限確保し、上下中央に寄せる */
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.subpage-box {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}
/* 下層ヘッダーのフェードインアニメーション */
.subpage-intro .subpage-box {
  animation: subpageFadeIn 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes subpageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* ほんの少し下からフワッと浮き上がらせる */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 英語サブタイトル：グリーンをやめて上品なグレー／ネイビーの控えめラベルへ */
.subpage-box > span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  /* ★ここを緑から落ち着いたスレートグレーに変更（h2の緑と差別化） */
  color: #64748b;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

/* ページ大見出し（h1）：h2より一段大きく、ページの親として堂々と配置 */
.subpage-box > h1 {
  /* ★スマホ時 1.55rem（約25px）〜 PC 2.25rem（h2の塾長紹介より明確に大きく） */
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  /* font-family: var(--font-serif); */
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

/* 導入リード文 */
.subpage-box > p {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--color-text-sub);
  text-align: center;
  max-width: 420px;            /* スマホで綺麗にまとまる幅 */
  margin-inline: auto;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .subpage-box > span {
    font-size: 0.8rem;
  }
  .subpage-box > p {
    font-size: 0.875rem;
    max-width: 540px;
  }
}