/* ================= EN-Choice Styles (folder-ready structure) =================
   01. Tokens / Theme
   02. Base / Typography
   03. Layout
   04. Header / Navigation
   05. Hero
   06. Sections / Cards / Lists
   07. Levels (Beginner/Advanced/Expert/Professional)
   08. Steps (Flow)
   09. Buttons
   10. Profile
   11. FAQ
   12. Utilities & A11y
   13. Homepage-specific overrides (chips off, plans grid)
   ========================================================================= */

/*
 * ======================= 編集ガイド（TL;DR） =======================
 * このCSSは「最小改修で即公開」を前提に、役割ごとに分割しています。
 * よく触る“調整ポイント”を以下にまとめます（★が目印）。
 *
 * 1) コンテナ幅（全体）
 *    .container{ max-width:1060px }  ← サイト全体の基準幅
 *    #coach .container{ max-width:1180px }  ← コーチ紹介だけ広げる（★）
 *
 * 2) 料金 (#plans) のカード高さそろえ
 *    #plans .plans{ grid-auto-rows:1fr } + .card.plan{ height:100% }（★）
 *    → カード内容量が違っても“見た目の高さ”を揃える仕組み。
 *    → 高さが窮屈なら .card.plan{ min-height:280px } の数値を上げる（★）
 *
 * 3) コーチ紹介 (#coach) の横長レイアウト
 *    #coach .cards3 → 2カラム化（repeat(2,1fr)）、.profile を "画像/本文" の2列に（★）
 *    → 左寄り/縦長の解消。画像サイズは 120px を基準に微調整可（★）
 *
 * 4) レスポンシブ境界
 *    @media (max-width:768px){ #coach … 1カラム }（★）
 *    → 値を上下すると“1列に落ちるタイミング”を変更できます。
 *
 * 5) CTAの制御（料金内のLINEボタン非表示）
 *    #plans .card.plan .btn{ display:none !important }（★）
 *    → ヒーロー部など他セクションのLINE導線は残ります。
 *
 * 6) フォールバック（将来の変更に備えるメモ）
 *    ・料金内のLINEリンクはURL指定で隠すことも可能（未採用）
 *      例）#plans a[href*="lin.ee"]{ display:none !important }
 *    ・セクションIDが #coaches に変わっても効くよう、複合セレクタを同時定義。
 * ==================================================================
 */

/*
 * ======================= レスポンシブ運用ポリシー（本プロジェクト） =======================
 * ■ 方針：モバイル専用ページは作らず、1ページをレスポンシブで運用する。
 *
 * 1) CSSは1枚に集約（/public/styles.css）。
 *    - index.html の <style> はPCベースのみ or 削除して一本化。
 *
 * 2) モバイルは @media で上書き。
 *    - 基本は @media (max-width: 768px) を軸に調整。
 *
 * 3) フォントや余白は clamp() を活用。
 *    - 既に導入済み。必要に応じて最小/理想/最大を見直す。
 *
 * 4) 画像や横並びは grid/flex を使用。
 *    - ブレークポイントで1カラム化して可読性を優先。
 *
 * 5) ブレークポイントは 1〜2個に統一（例：768px / 360px）。
 *    - 重複指定を避け、@media は styles.css に集約。
 */

/* 01. TOKENS / THEME ------------------------------------------------------ */
:root{
  --orange:#ff8a26;             /* 明るいオレンジ（主役） */
  --orange-strong:#ff7b12;      /* ボタン濃色など */
  --sky:#41c9ff;                /* 明るい水色（差し色） */
  --ink:#121212;
  --bg:#fffdfc;
  --muted:#666;
  --line:#eee;
  --radius:14px;
  --motion:.2s;
  --shadow:0 8px 20px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
}

/* 02. BASE / TYPOGRAPHY ---------------------------------------------------- */
*{ box-sizing:border-box }
html,body{ margin:0; padding:0 }
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,"Noto Sans JP",system-ui,sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.75; text-align:left;
}
h1,h2{ font-feature-settings:"palt"; text-wrap:balance }
h1{ font-size:clamp(30px,4.5vw,50px); line-height:1.16; letter-spacing:.2px }
h2{ font-size:clamp(22px,3.4vw,30px); line-height:1.26; margin:.2em 0 .3em }
h3{ font-size:18px; margin:.6em 0 .4em }
p,li{ font-size:clamp(15px,2.2vw,17px) }
a{ color:var(--ink); text-decoration:underline; text-underline-offset:2px; text-decoration-color:color-mix(in srgb,var(--orange) 40%, transparent) }
a:hover{ text-decoration-thickness:2px }

/* 03. LAYOUT --------------------------------------------------------------- */
.container{ max-width:1060px; margin:0 auto; padding:0 20px }
.section{ padding:50px 0; border-top:1px solid var(--line) }
.section,[id]{ scroll-margin-top:92px }

/* 04. HEADER / NAVIGATION -------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:20;
  backdrop-filter:saturate(180%) blur(8px);
  background:color-mix(in srgb, #fff 90%, transparent);
  border-bottom:1px solid var(--line);
  box-shadow:0 1px 0 rgba(0,0,0,.03);
}
.site-header .container{
  display:flex; gap:16px; align-items:center; justify-content:space-between; min-height:76px;
}
.brand{ display:flex; align-items:center; gap:12px; font-weight:900; font-size:28px; letter-spacing:.2px }
.brand img{ width:40px; height:40px; border-radius:10px; border:1px solid #f5f5f5; box-shadow:0 1px 2px rgba(0,0,0,.06) }

.nav{ display:flex; gap:16px; align-items:center; flex-wrap:wrap }
.nav a{ padding:10px 8px; border-radius:8px; text-decoration:none }
.nav a[aria-current="true"]{
  background:color-mix(in srgb, var(--sky) 18%, #fff);
  outline:1px solid color-mix(in srgb, var(--sky) 28%, transparent);
}

/* 05. HERO ----------------------------------------------------------------- */
.hero{
  padding:62px 0 36px;
  background:
    radial-gradient(900px 460px at 8% 8%, #e6f8ff 0%, transparent 70%),
    linear-gradient(180deg, #fff6ea 0%, #fff 38%, #fff 100%);
}
.eyebrow{ font-weight:800; color:var(--orange); letter-spacing:.3px; margin:6px 0 }
.lead{ color:#333; max-width:900px }
.lead.tight{ display:flex; gap:18px; flex-wrap:wrap; align-items:center }
.lead.tight span{ white-space:nowrap }

/* 06. SECTIONS / CARDS / LISTS -------------------------------------------- */
.cards3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px }
@media (max-width:980px){ .cards3{ grid-template-columns:repeat(2,1fr) } }
@media (max-width:640px){ .cards3{ grid-template-columns:1fr } }

.card{
  border:1px solid var(--line); border-radius:var(--radius); background:#fff; padding:18px;
  transition:transform var(--motion) ease, box-shadow var(--motion) ease, border-color var(--motion) ease;
}
.card:hover{ transform:translateY(-2px); box-shadow:var(--shadow); border-color:#f1f1f1 }
.list{ padding-left:18px; margin:8px 0 }
.note{ color:var(--muted); font-size:14px; margin-top:8px }

/* 07. LEVELS --------------------------------------------------------------- */
.levels{ display:grid; gap:12px; margin:12px 0 }
.level{ display:flex; gap:12px; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px }
.badge{
  display:inline-grid; place-items:center; align-self:flex-start;
  min-width:112px; padding:6px 10px; border-radius:999px; font-weight:800;
  background:linear-gradient(180deg, #fff, #fff4e8 40%, #fff);
  border:1px solid color-mix(in srgb, var(--orange) 24%, #eaeaea);
}
.badge.small{ min-width:auto; padding:4px 10px; font-weight:700 }

/* 08. STEPS (FLOW) --------------------------------------------------------- */
.steps{ counter-reset:s; display:grid; gap:10px; padding-left:0; list-style:none }
.steps li{ position:relative; padding-left:38px }
.steps li::before{
  counter-increment:s; content:counter(s);
  position:absolute; left:0; top:2px; width:26px; height:26px; display:grid; place-items:center;
  border-radius:999px; background:var(--orange-strong); color:#fff; font-weight:800; font-size:12px;
  box-shadow:0 2px 6px rgba(230,109,0,.25);
}

/* 09. BUTTONS -------------------------------------------------------------- */
.btn{
  display:inline-block; font-weight:800; letter-spacing:.2px;
  padding:12px 18px; border-radius:12px;
  border:1px solid color-mix(in srgb,var(--orange-strong) 35%, #fff);
  text-decoration:none; transition:transform var(--motion), box-shadow var(--motion), background var(--motion), color var(--motion);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5), 0 8px 20px rgba(230,109,0,.18);
}
.btn.solid{ color:#fff; background:linear-gradient(180deg, #ffb24a, #ff7b12) }
.btn.solid:hover{ transform:translateY(-1px); box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 12px 26px rgba(255,123,18,.22) }
.btn.ghost{ color:var(--orange-strong); background:#fff; border-color:color-mix(in srgb,var(--orange) 40%, #fff) }
.btn.ghost:hover{ transform:translateY(-1px); box-shadow:0 10px 22px rgba(0,0,0,.06) }
.btn.block{ display:block; text-align:center; margin-top:10px }
.btn.small{ font-size:14px; padding:9px 14px }
.btn.large{ font-size:16px; padding:14px 20px }

/* 10. PROFILE -------------------------------------------------------------- */
.profile{ display:flex; gap:18px; align-items:center }
.profile img{ width:120px; height:120px; border-radius:14px; border:1px solid #eee; box-shadow:0 2px 8px rgba(0,0,0,.06) }
@media (max-width:680px){ .profile{ flex-direction:column; align-items:flex-start } }

/* 11. FAQ ------------------------------------------------------------------ */
.faq{ display:grid; gap:10px }
.faq details{ border:1px solid var(--line); border-radius:12px; background:#fff; padding:12px; transition:box-shadow var(--motion), border-color var(--motion) }
.faq details[open]{ box-shadow:var(--shadow); border-color:#f2f2f2 }
.faq summary{ cursor:pointer; font-weight:800 }

/* 12. UTILITIES & A11Y ----------------------------------------------------- */
.skip-link{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden }
.skip-link:focus{ position:fixed; left:12px; top:12px; width:auto; height:auto; padding:8px 12px; background:#000; color:#fff; border-radius:8px; z-index:1000 }
:focus-visible{ outline:3px solid color-mix(in srgb, var(--orange-strong) 40%, #000) }

/* 13. HOMEPAGE OVERRIDES --------------------------------------------------- */
/* ヒーローのチップ（毎日チェック等）は非表示 */
.chips{ display:none !important }

/* 料金カード：2×2 グリッド（モバイルは1列） */
.plans{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px }
.card.plan{ padding:22px }
.card.plan .price{ font-weight:800; font-size:20px; margin:8px 0 6px }

/*
 * === 料金セクション（#plans）: カード高さの統一 ＋ 料金内LINEボタンの非表示 ===
 * 目的：
 *  - プランごとの本文量差でカード高さがバラつく → 行ごとに高さをそろえる
 *  - 料金内に複数存在する「LINEで相談」ボタンを非表示（導線の重複を防ぐ）
 * 仕組み：
 *  - 親グリッドに grid-auto-rows:1fr を設定 → “行の基準高”をつくる
 *  - 各カードに height:100% を付与 → セル高いっぱいにフィット
 *  - 非表示は #plans セクション内の .btn を限定指定（他セクションは影響なし）
 * 調整ポイント（★）：
 *  - .plans{ gap:20px }  … カード間隔
 *  - .card.plan{ min-height:280px }  … 最低高（縦が詰まるなら数値↑）
 *  - @media で 2カラム→1カラムに切り替える幅（768px）
 */
#plans .plans{
  align-items: stretch;            /* 各セルを同じ高さに伸ばす */
  grid-auto-rows: 1fr;             /* 行高を均等化（高さの起点） */
}

#plans .card.plan{
  height: 100%;                    /* セル高にフィット（高さ統一の肝） */
  display: flex;                   /* 上下に要素を配分して余白を最適化 */
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;               /* 文字量が少ないカードの最低高（必要なら調整） */
}

/* 料金カード内のボタンを非表示（他セクションのボタンには影響しない） */
#plans .card.plan .btn,
#plans .card.plan a.btn{
  display: none !important;
  pointer-events: none;            /* フォーカスやクリックを無効化 */
  visibility: hidden;              /* キーボードフォーカスも回避 */
}

/*
 * === コーチ紹介（#coach / #coaches）: 左寄り解消＆横長2カラムで見やすく ===
 * 目的：
 *  - 3カラム前提の.cards3を2枚で使うと左に偏る → セクション内だけ2カラム化
 *  - カードが縦に間延びする → 画像/本文の横並びで高さを圧縮
 *  - “横方向”に情報を展開し、視線移動を左右中心に
 * 仕組み：
 *  - #coach .cards3 → repeat(2,1fr) に上書き（中央バランス）
 *  - .container を 1180px に拡張（このセクションのみ横幅を広めに）
 *  - .profile を grid（120px 1fr）で 画像/本文の2列に分割
 * 調整ポイント（★）：
 *  - #coach .container{ max-width:1180px } … 横幅をさらに広げたい場合は ↑
 *  - .profile の 120px … 画像サイズ。100〜130px で微調整
 *  - gap:20px … 画像と本文の間隔
 *  - @media (max-width:900px)… 1カラムに落とすブレイクポイント
 */

/* セクション幅：このセクションに限り少しだけ広くする（横長化） */
#coach .container, #coaches .container{
  max-width: 1180px; /* 既定1060px → 1180px。全体には影響させずcoach内のみ */
}

/* グリッド：2カラムで中央バランス、行の高さもそろえる */
#coach .cards3, #coaches .cards3{
  display: grid; /* 念のため明示 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;      /* セル内アイテムを縦方向にフィット */
  grid-auto-rows: 1fr;       /* 行高を揃えて左右の見た目を均一化 */
}

/* カード：縦中央寄せ＋セル高にフィット（縦長を抑える） */
#coach .card, #coaches .card{
  height: 100%;
  display: flex;
  align-items: center;
  padding: 22px 24px;        /* 横を少し広げて呼吸を作る */
}

/* プロフィール本体：画像(左) + テキスト(右) の2列グリッド */
#coach .card .profile, #coaches .card .profile{
  display: grid;
  grid-template-columns: 120px 1fr; /* 画像幅 / 本文 */
  gap: 20px;
  align-items: center;        /* 垂直方向の中央揃え */
}

/* 画像をアバター風に（縦横比の崩れを防ぐ） */
#coach .card .profile img, #coaches .card .profile img{
  width: 120px; height: 120px;
  border-radius: 16px; object-fit: cover;
}

/* 箇条書きの行間を微調整（縦方向の圧縮） */
#coach .card .list, #coaches .card .list{ margin: 4px 0; padding-left: 18px; }
#coach .card .list li, #coaches .card .list li{ margin: 4px 0; line-height: 1.6; }

/* モバイル：1カラムに自動スイッチ＆画像縮小 */

/* ==========================================================
   モバイル最適化（スマホ表示の崩れをまとめて調整）
   - 影響範囲を限定するため、既存セレクタは変更せず @media で上書きのみ
   - ヒーロー、課題/解決策カード、料金、コーチ紹介、FAQ を最適化
   ========================================================== */
@media (max-width: 768px) {
  /* ヘッダのブランド名が不自然に折り返されないように */
  .brand {
    font-size: 22px;
    white-space: nowrap; /* 不要な改行を防止 */
  }

  /* ヒーロー（見出しとボタン） */
  .hero h1 {
    font-size: clamp(26px, 6.5vw, 36px);
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .lead { font-size: clamp(15px, 4.2vw, 18px); }
  .hero .cta-row,
  .hero .cta-group { display: flex !important; flex-direction: column !important; gap: 12px !important; }
  .hero .cta-row .btn,
  .hero .cta-group .btn { width: 100% !important; }

  /* 課題（#why）: カードを1カラム化して読みやすく */
  #why .cards, #why .cards2, #why .cards3 { grid-template-columns: 1fr !important; gap: 16px; }
  #why .card { padding: 18px 16px 20px; }
  #why .card-title { font-size: 1.15rem; line-height: 1.35; word-break: keep-all; }
  #why .card-text { font-size: .98rem; line-height: 1.6; }

  /* 解決策（#solution）: 2×2 → 1カラムに */
  #solution .cards, #solution .cards2, #solution .cards3 { grid-template-columns: 1fr !important; gap: 16px; }

  /* 料金（#plans）: 1カラム、余白と文字サイズの最適化 */
  #plans .plans { grid-template-columns: 1fr !important; gap: 16px; }
  #plans .card.plan { padding: 18px 16px 20px; min-height: auto; }
  #plans .card.plan .price { font-size: clamp(20px, 6vw, 24px); margin: 8px 0 12px; }
  #plans .card.plan .list li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }

  /* コーチ紹介（#coach）: 幅いっぱいに、画像を少し小さく */
  #coach .container, #coaches .container { padding-left: 16px; padding-right: 16px; }
  #coach .cards3, #coaches .cards3 { grid-template-columns: 1fr !important; gap: 16px; }
  #coach .card, #coaches .card { padding: 18px 14px; }
  #coach .card .profile, #coaches .card .profile { grid-template-columns: 90px 1fr; gap: 14px; }
  #coach .card .profile img, #coaches .card .profile img { width: 90px; height: 90px; }
  #coach .card .list li, #coaches .card .list li { line-height: 1.55; }

  /* FAQ: 余白を少しだけ詰める */
  #faq details { margin-bottom: 10px; }
}

/* さらに小さい端末向けの保険（〜360px） */
@media (max-width: 360px) {
  .hero h1 { font-size: 24px; }
  .brand { font-size: 20px; }
  #plans .card.plan .price { font-size: 20px; }
}

/* ===== ヘッダー（スマホ）の折り返し対策：1行キープ & コンパクト化 ===== */
@media (max-width: 768px) {
  /* ヘッダー全体が上下に折り返されないように */
  .site-header .container{
    flex-wrap: nowrap;      /* 折り返し禁止 */
    gap: 10px;
    min-width: 0;          /* 収まりやすくする */
  }

  /* EN-Choice を1行キープ＆ロゴ少し縮小 */
  .brand{
    white-space: nowrap;    /* 文字の改行を禁止 */
    font-size: 22px;        /* 少し小さくして収める */
    flex: 0 1 auto;         /* わずかに縮む余地を与える */
  }
  .brand img{ width: 32px; height: 32px; }

  /* ナビのボタン群を1行で並べる */
  .nav{
    flex-wrap: nowrap;      /* 折り返し禁止 */
    gap: 8px;               /* 間隔を詰める */
    min-width: 0;
  }
  .nav a{
    padding: 8px 10px;      /* 内側余白を小さく */
    font-size: 14px;
  }
  .nav .btn, .nav a.btn{
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
    white-space: nowrap;    /* 文言も1行に固定 */
  }
}

/* さらに狭い端末での微調整 */
@media (max-width: 360px) {
  .brand{ font-size: 20px; }
  .nav a{ padding: 6px 8px; font-size: 13px; }
}


/* ===== 追加の強制対策：ヘッダー1行化が効かない端末向け（モバイルのみ） ===== */
@media (max-width: 768px) {
  /* コンテナと子要素の縮みを許可し、はみ出し/折返しを防ぐ */
  .site-header .container { display:flex; justify-content: space-between; align-items:center; }
  .site-header .container > * { min-width: 0; flex: 0 1 auto; }

  /* EN-Choice の任意の <br> を無効化（2行化の根本対策） */
  .brand br { display: none !important; }

  /* ブランド名を絶対に1行に保つ（子の display:block を打ち消す） */
  .brand, .brand * { white-space: nowrap; }
  .brand span, .brand strong, .brand b { display: inline !important; }

  /* ナビのボタン行：右寄せ＆折返し禁止、縮む余地を与える */
  .nav { display:flex; flex-wrap: nowrap !important; gap: 8px; margin-left: auto; min-width: 0; }
  .nav a, .nav .btn { flex: 0 0 auto; }

  /* ボタンのサイズを少し抑えて収まりを改善 */
  .nav a { padding: 8px 10px; font-size: 14px; }
  .nav .btn, .nav a.btn { padding: 9px 12px; font-size: 14px; }
}