/* header */

section{padding:72px 0;}
section.alt{background:var(--white);}
.eyebrow{color:var(--gold-strong); font-weight:700; font-size:13px; letter-spacing:0.08em; margin-bottom:8px;}
h2{font-size:28px; color:var(--navy); margin:0 0 12px;}
.lead{color:var(--text-sub); font-size:15px; max-width:660px;}

/* ===== HERO (写真背景) ===== */
.hero{
  position:relative; color:#fff; overflow:hidden;
  /* 背景写真はここに差し替え。無い間は濃緑グラデでフォールバック */
  background:
  linear-gradient(105deg, rgba(15,32,25,0.58) 0%, rgba(15,32,25,0.32) 55%, rgba(15,32,25,0.06) 100%),
  url("../assets/header.webp") center/cover no-repeat,
  linear-gradient(135deg,#163a2e,#24483c);
}
.hero .wrap{position:relative; z-index:2; padding-top:88px; padding-bottom:96px; min-height:520px; display:flex; flex-direction:column; justify-content:center;}
.hero .badge{
  display:inline-block; background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.3);
  color:#fff; font-size:12px; padding:6px 14px; border-radius:999px; margin-bottom:22px; width:fit-content;
}
.hero h1{
  font-size:42px; line-height:1.35; margin:0 0 18px; max-width:660px; letter-spacing:0.01em;
  text-shadow:0 2px 14px rgba(10,24,18,.45);
}
.hero h1 em{font-style:normal; color:var(--gold-vivid);}
.hero p{color:#e4e6e0; font-size:16px; max-width:560px; margin:0 0 30px;}
.hero .btn-row{display:flex; gap:12px; flex-wrap:wrap;}
.hero .btn-primary{background:var(--gold-strong); color:#fff; padding:14px 28px; font-size:14px;}
.hero .btn-outline{background:rgba(255,255,255,0.08); color:#fff; border:1px solid rgba(255,255,255,0.5); padding:14px 28px; font-size:14px;}

/* 実績バッジ帯＋LINE（ヒーロー下部に重ねる／縦積みでまとまり） */
.hero-bottom{
  position:relative; z-index:2; margin-top:44px;
  display:flex; flex-direction:column; align-items:flex-start; gap:14px;
}
.hero-stats{
  display:flex; background:rgba(255,255,255,0.94); border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,0.18); overflow:hidden;
}
.hero-stat{
  display:flex; align-items:center; gap:8px; padding:21px 22px; position:relative;
}
.hero-stat + .hero-stat::before{
  content:""; position:absolute; left:0; top:14%; bottom:14%; width:1px; background:var(--border);
}
.wreath{width:14px; height:52px; color:var(--gold-strong); flex-shrink:0;}
.wreath-right{transform:scaleX(-1);}
.hero-stat .stat-text{text-align:center;}
.hero-stat .label{font-size:11px; color:var(--text-sub); margin:0 0 4px; white-space:nowrap; line-height:1.4;}
.hero-stat .num{font-size:22px; font-weight:700; color:var(--navy); line-height:1.15; margin:0; white-space:nowrap;}
.hero-stat .num small{font-size:14px;}

/* LINE公式 QRボックス（QR左・テキスト＋ボタン右） */
.hero-line{
  background:rgba(255,255,255,0.96); border-radius:14px; padding:12px 16px;
  box-shadow:0 8px 24px rgba(0,0,0,0.18);
  display:flex; align-items:center; gap:14px;
}
.hero-line .qr{
  width:88px; height:88px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  background:var(--bg); border-radius:8px; overflow:hidden;
}
.hero-line .qr img{width:100%; height:100%; object-fit:contain; display:block;}
.hero-line .line-body{display:flex; flex-direction:column; align-items:flex-start; gap:8px;}
.hero-line .ttl{
  font-size:12px; font-weight:700; color:var(--line-green); line-height:1.5; margin:0;
}
.hero-line .btn-line{
  display:inline-block; background:var(--line-green); color:#fff; font-size:11px; font-weight:700;
  padding:8px 16px; border-radius:6px; text-decoration:none; white-space:nowrap;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.hero-line .btn-line:hover{
  background:#05b04c; transform:translateY(-2px); box-shadow:0 6px 16px rgba(6,199,85,.35);
}

/* ===== 特徴3つ ===== */
.pillar-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:8px;}
.pillar-card{
  background:var(--white); border:1px solid var(--border); border-radius:14px; padding:28px 24px;
  text-align:center; position:relative;
}
.pillar-card .pico{
  width:52px; height:52px; border-radius:50%; background:var(--navy); color:var(--gold);
  display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; margin:0 auto 16px;
}
.pillar-card h3{font-size:16px; color:var(--navy); margin:0 0 8px; line-height:1.5;}
.pillar-card p{font-size:13px; color:var(--text-sub); margin:0;}
.pillar-card a{display:inline-block; margin-top:14px; font-size:12px; color:var(--gold-strong); font-weight:700; text-decoration:none;}

/* ===== 特徴解説（交互レイアウト） ===== */
.feat-block{display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;}
/* min-width:0 が無いとグリッド項目が中身の最小幅まで広がり、横スクロールが出る */
.feat-block > *,
.pillar-grid > *,
.price-grid > *{min-width:0;}
.feat-block.reverse .body{order:2;}
.feat-block .body h2{font-size:24px;}
.feat-block .body .kicker{display:inline-block; background:var(--navy); color:#fff; font-size:12px; font-weight:700; padding:5px 12px; border-radius:6px; margin-bottom:14px;}
.feat-block .body p{font-size:14px; color:var(--text-sub); margin:0 0 14px;}
.feat-block .body p b{color:var(--navy);}

/* 7取得率グラフ（濃緑カード内） */
.rank-card{background:var(--green-mid); border-radius:16px; padding:30px 28px; color:#fff;}
.rank-card h3{font-size:14px; margin:0 0 4px; color:#fff;}
.rank-card .sub{font-size:12px; color:#c7c9c0; margin:0 0 20px;}
.rank-list{display:flex; flex-direction:column; gap:12px;}
.rank-row{display:grid; grid-template-columns:96px 1fr 52px; align-items:center; gap:12px; font-size:13px;}
.rank-row .bar-bg{background:rgba(255,255,255,0.14); border-radius:999px; height:10px; overflow:hidden;}
.rank-row .bar-fill{height:100%; border-radius:999px; background:rgba(255,255,255,0.4);}
.rank-row .bar-fill.hi{background:var(--gold);}
.rank-row .pct{text-align:right; font-weight:700;}
.rank-card .src{font-size:10px; color:#9aa093; margin:18px 0 0;}

/* 得点管理シート */
.sheet{border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--white); box-shadow:0 6px 20px rgba(22,58,46,0.06);}
table.sheet-tbl{width:100%; border-collapse:collapse; font-size:13px;}
table.sheet-tbl th{background:var(--navy); color:#fff; text-align:left; padding:11px 14px; font-weight:500;}
table.sheet-tbl td{padding:11px 14px; border-top:1px solid var(--border);}
table.sheet-tbl tr:nth-child(even) td{background:var(--bg);}
.status{display:inline-block; padding:3px 10px; border-radius:999px; font-size:11px; font-weight:700;}
.status.ok{background:rgba(99,153,34,0.15); color:#3b6d11;}
.status.warn{background:rgba(212,140,0,0.15); color:#8a5a00;}
.status.risk{background:rgba(226,75,74,0.15); color:#a32d2d;}
.exp-quote{
  margin-top:20px; background:var(--bg); border-left:3px solid var(--gold-strong); border-radius:0 10px 10px 0;
  padding:18px 22px; font-size:13px; color:var(--text-sub);
}
.exp-quote b{color:var(--navy);}

/* 個別指導ポイント */
.point-list{display:flex; flex-direction:column; gap:14px; margin-top:4px;}
.point-item{display:grid; grid-template-columns:28px 1fr; gap:14px; align-items:start;}
.point-item .chk{width:24px; height:24px; border-radius:50%; background:var(--navy); color:var(--gold); display:flex; align-items:center; justify-content:center; font-size:13px; margin-top:2px;}
.point-item h3{font-size:15px; color:var(--navy); margin:0 0 4px;}
.point-item p{font-size:13px; color:var(--text-sub); margin:0;}
.indiv-visual{background:var(--green-mid); border-radius:16px; padding:34px 30px; color:#fff;}
.indiv-visual .big{font-size:15px; font-weight:700; color:var(--gold); margin:0 0 20px;}
.indiv-flow{display:flex; flex-direction:column; gap:0;}
.indiv-flow .step{display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.12);}
.indiv-flow .step:last-child{border-bottom:none;}
.indiv-flow .step .n{width:26px; height:26px; border-radius:50%; background:rgba(185,168,143,0.25); color:var(--gold); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0;}
.indiv-flow .step span{font-size:13px; color:#e4e6e0;}

/* mid cta banner：中央寄せのシンプルな公式LINE誘導 */
.cta-banner{
  background:linear-gradient(135deg, var(--navy) 0%, var(--green-mid) 100%);
  color:#fff; border-radius:20px; padding:48px 40px;
  display:flex; flex-direction:column; align-items:center; gap:24px; text-align:center;
}
.cta-banner h3{font-size:24px; line-height:1.5; margin:0; color:#fff; max-width:420px;}

/* mid cta banner 内の公式LINE QR */
.cta-line{
  background:#fff; border-radius:14px; padding:14px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(0,0,0,.2);
}
.cta-line .qr{
  width:120px; height:120px; background:var(--bg); border-radius:10px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.cta-line .qr img{width:100%; height:100%; object-fit:contain; display:block;}
.btn-line-lg{
  background:var(--line-green); color:#fff; text-align:center; font-size:14px; padding:14px 36px;
}
.btn-line-lg:hover{background:#05b04c; box-shadow:0 6px 16px rgba(6,199,85,.35);}

/* pricing */
.zero-fee{display:inline-flex; align-items:center; gap:10px; margin:16px 0 0; background:rgba(185,168,143,0.16); border:1px solid rgba(185,168,143,0.5); border-radius:10px; padding:12px 20px; font-size:14px; color:var(--navy);}
.zero-fee b{color:var(--gold-strong); font-size:18px;}
.price-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:28px;}
.price-card{background:var(--white); border:1px solid var(--border); border-radius:12px; padding:24px; display:flex; flex-direction:column;}
.price-card.highlight{border:2px solid var(--gold-strong);}
.price-card h3{font-size:16px; color:var(--navy); margin:0 0 6px;}
.price-card .sub{font-size:12px; color:var(--text-sub); margin:0 0 16px;}
.price-card .amount{font-size:24px; font-weight:700; color:var(--navy); margin:0 0 4px;}
.price-card ul{list-style:none; padding:0; margin:14px 0 0; font-size:13px; color:var(--text-sub);}
.price-card li{padding:6px 0; border-top:1px solid var(--border);}

/* voice */
.voice-empty{margin-top:20px; border:1px dashed var(--border); border-radius:12px; padding:36px; text-align:center; color:var(--text-sub); font-size:14px; background:var(--white);}
.voice-empty b{color:var(--navy);}

/* ===== 関連ページへの導線カード ===== */
.link-cards{display:grid; grid-template-columns:repeat(3,1fr); gap:14px;}
.link-cards > *{min-width:0;}
.link-card{
  display:block; background:var(--white); border:1px solid var(--border); border-radius:12px;
  padding:20px 22px; text-decoration:none;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.link-card:hover{transform:translateY(-3px); box-shadow:0 10px 24px rgba(22,58,46,.10); border-color:var(--gold);}
.link-card .k{font-size:11px; color:var(--gold-strong); font-weight:700; letter-spacing:.06em;}
.link-card .t{font-size:14.5px; color:var(--navy); font-weight:700; margin:6px 0 0; line-height:1.6;}
.link-card .d{font-size:12.5px; color:var(--text-sub); margin:6px 0 0; line-height:1.75;}

/* ===== 実績・受講生の声（準備中プレースホルダー） ===== */
.placeholder-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:22px;}
.placeholder-grid > *{min-width:0;}
.placeholder-box{
  border:1px dashed var(--border); border-radius:14px; padding:32px 24px; text-align:center;
  background:var(--white); color:var(--text-sub); font-size:13.5px; line-height:1.9;
}
.placeholder-box b{color:var(--navy); display:block; font-size:15px; margin-bottom:8px;}

/* faq */
.faq-list{margin-top:20px;}
.faq-item{border-top:1px solid var(--border); padding:18px 0;}
.faq-item:last-child{border-bottom:1px solid var(--border);}
.faq-item .q{font-weight:700; font-size:14px; margin:0 0 8px; color:var(--navy);}
.faq-item .a{font-size:13px; color:var(--text-sub); margin:0;}

/* final cta */
.final-cta{background:var(--navy); color:#fff; text-align:center; padding:64px 0;}
.final-cta h2{color:#fff;}
.final-cta p{color:#c7c9c0; margin:0 0 28px;}
.final-cta .btn-primary{background:var(--gold-strong); color:#fff; padding:14px 32px; font-size:14px;}

/* ===== ホバー演出（トップページ固有） ===== */
.pillar-card .pico{transition:transform .35s var(--ease), background-color .35s var(--ease);}
.pillar-card:hover .pico{transform:scale(1.08) rotate(-4deg); background:var(--green-mid);}
.rank-row .bar-fill{transition:width .9s var(--ease);}
.indiv-flow .step{transition:padding-left .25s var(--ease);}
.indiv-flow .step:hover{padding-left:6px;}
.indiv-flow .step .n{transition:background-color .25s var(--ease), transform .25s var(--ease);}
.indiv-flow .step:hover .n{background:rgba(185,168,143,.5); transform:scale(1.08);}
.cta-line .qr{transition:transform .3s var(--ease);}
.cta-line:hover .qr{transform:scale(1.03);}
.hero-line .qr{transition:transform .3s var(--ease);}
.hero-line:hover .qr{transform:scale(1.04);}
.exp-quote{transition:border-color .3s var(--ease), background-color .3s var(--ease);}
.exp-quote:hover{border-left-color:var(--green-mid); background:#f1efe7;}
table.sheet-tbl tbody tr,
table.sheet-tbl tr{transition:background-color .25s var(--ease);}
table.sheet-tbl tr:hover td{background:rgba(185,168,143,.14);}

/* =========================================================
   レスポンシブ（トップページ）
   ========================================================= */

/* --- タブレット --- */
@media(max-width:1024px){
  section{padding:56px 0;}
  h2{font-size:24px;}
  .hero h1{font-size:34px;}
  .hero .wrap{padding-top:64px; padding-bottom:72px; min-height:440px;}
  .hero-bottom{gap:16px;}
  .hero-stat{padding:10px 12px;}
  .hero-stat .label{font-size:10px;}
  .hero-stat .num{font-size:17px;}
  .wreath{height:34px; width:11px;}
  .hero-line{padding:10px 12px; gap:10px;}
  .hero-line .qr{width:76px; height:76px;}
  .hero-line .ttl{font-size:11px;}
  .pillar-grid{grid-template-columns:repeat(3,1fr); gap:14px;}
  .pillar-card{padding:22px 16px;}
  .feat-block{gap:28px;}
  .price-grid{gap:14px;}
  .price-card{padding:20px;}
  .cta-banner{padding:28px 26px; gap:24px;}
}

/* --- タブレット縦〜スマホ --- */
@media(max-width:860px){
  .hero h1{font-size:30px;}
  .hero .wrap{padding-top:52px; padding-bottom:60px; min-height:0;}
  .hero-bottom{flex-direction:column; align-items:stretch;}
  .hero-stats{width:100%;}
  .hero-stat{flex:1; justify-content:center; padding:12px 8px;}
  .hero-stat+.hero-stat::before{top:14%; bottom:14%;}
  .hero-line{width:100%; justify-content:flex-start;}
  .hero-line .qr{width:84px; height:84px;}
  .pillar-grid{grid-template-columns:1fr;}
  .link-cards{grid-template-columns:1fr;}
  .placeholder-grid{grid-template-columns:1fr;}
  .feat-block{grid-template-columns:1fr; gap:28px;}
  /* 交互レイアウトは1カラムでは本文を先に出す */
  .feat-block.reverse .body{order:0;}
  .price-grid{grid-template-columns:1fr;}
  .rank-row{grid-template-columns:80px 1fr 46px; font-size:12px;}

  /* スマホでは「3つの特徴」の詳細説明を畳み、
     カードの「詳しく見る →」（#feat-teacher 等へのリンク）を押した時だけ表示する。
     JS不要：URLフラグメントと:targetだけで開閉する。 */
  #feat-teacher .feat-block,
  #feat-data .feat-block,
  #feat-indiv .feat-block{display:none;}
  #feat-teacher:target .feat-block,
  #feat-data:target .feat-block,
  #feat-indiv:target .feat-block{display:grid;}

  /* 特徴1・2は詳細以外の内容が無いので、畳んでいる間は余白も詰める。
     特徴3は下に公式LINE案内（cta-banner）が続くので余白は保つ。 */
  #feat-teacher, #feat-data{padding:0;}
  #feat-teacher:target, #feat-data:target{padding:44px 0;}
}

/* --- スマホ --- */
@media(max-width:600px){
  section{padding:44px 0;}
  h2{font-size:21px;}
  .lead{font-size:14px;}
  .hero h1{font-size:25px; line-height:1.45;}
  .hero .badge{font-size:11px; padding:5px 12px; margin-bottom:16px;}
  .hero .wrap{padding-top:40px; padding-bottom:48px;}
  .hero-bottom{margin-top:28px; gap:12px;}

  /* 実績バッジは縦積みにして潰れを防ぐ */
  .hero-stats{flex-direction:column;}
  .hero-stat{padding:11px 14px;}
  .hero-stat+.hero-stat::before{
    left:12%; right:12%; top:0; bottom:auto; width:auto; height:1px;
  }
  .hero-stat .label{font-size:10.5px; white-space:normal;}
  .hero-stat .num{font-size:18px;}

  .hero-line{flex-direction:column; text-align:center; gap:10px; padding:14px;}
  .hero-line .line-body{align-items:center;}
  .hero-line .qr{width:112px; height:112px;}
  .hero-line .ttl{font-size:12px;}
  .hero-line .btn-line{width:100%; padding:10px 16px; font-size:12px;}

  .pillar-card{padding:22px 18px;}
  .feat-block{gap:22px;}
  .feat-block .body h2{font-size:20px;}
  .rank-card{padding:22px 18px;}
  .rank-row{grid-template-columns:72px 1fr 44px; gap:8px; font-size:11.5px;}
  .indiv-visual{padding:24px 20px;}
  .exp-quote{padding:14px 16px;}
  .cta-banner{padding:24px 18px; border-radius:14px;}
  .cta-banner h3{font-size:16px;}
  .price-card .amount{font-size:21px;}
  /* inline-flex のままだと各テキストが最小幅まで潰れて1文字ずつ折り返す */
  .zero-fee{display:block; font-size:13px; padding:12px 16px; line-height:1.7;}
  .zero-fee b{font-size:16px;}
  .final-cta{padding:44px 0;}

  /* 横スクロールが必要な表は表単体でスクロールさせる */
  .sheet{overflow-x:auto;}
  table.sheet-tbl{min-width:420px;}
}
