/* ==========================================================================
   マニュアル下層（manual/*.html）— トップ・目次ページと共通のトーン
   原稿と本文の構造はそのまま。ヒーロー・目次サイドバー・カード・文字サイズを新デザインに合わせる
   ========================================================================== */
body.manual-sub{padding-top:0;background:var(--bg)}
html{scroll-padding-top:calc(var(--nav-h) + 20px)}
body.manual-sub [id]{scroll-margin-top:calc(var(--nav-h) + 20px)}

/* ---------- ヒーロー（写真 + 左寄せの大見出し） ---------- */
.m-hero{position:relative;min-height:min(64dvh,620px);display:grid;align-items:end;color:#fff;background:var(--navy-deep);overflow:clip;isolation:isolate}
.m-hero-media{position:absolute;inset:0;z-index:-1}
.m-hero-media img{width:100%;height:100%;object-fit:cover;object-position:60% 45%;transform:scale(1.08);animation:heroIn 2.2s var(--ease) both}
.m-hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,16,48,.94) 0%,rgba(16,16,48,.8) 38%,rgba(16,16,48,.3) 100%),linear-gradient(180deg,rgba(16,16,48,.55),transparent 35%,rgba(16,16,48,.7))}
@keyframes heroIn{from{transform:scale(1.14);filter:brightness(.6)}to{transform:scale(1.02);filter:brightness(1)}}
.m-hero-body{width:min(100% - 2*var(--gutter),var(--max));margin-inline:auto;padding:calc(var(--nav-h) + 48px) 0 clamp(40px,6vh,64px)}
.m-hero-body > *{max-width:820px}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:.82rem;color:rgba(255,255,255,.7);margin-bottom:22px}
.crumbs a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.crumbs i{opacity:.6;font-size:1rem;line-height:0}
.crumbs span{color:#fff;font-weight:600}
.m-hero .kicker{display:inline-block;font-size:.75rem;font-weight:700;letter-spacing:.28em;text-transform:uppercase;color:var(--teal)}
.m-hero .display{margin-top:10px;font-size:clamp(2.1rem,5vw,4rem);font-weight:700;line-height:1.08;letter-spacing:-.03em;text-wrap:balance;word-break:auto-phrase;text-shadow:0 4px 30px rgba(0,0,0,.35)}
.m-hero .hero-lead{margin-top:18px;font-size:clamp(1.05rem,1.7vw,1.35rem);font-weight:500;line-height:1.7;color:rgba(255,255,255,.86);text-shadow:0 2px 14px rgba(0,0,0,.5);text-wrap:pretty}
.m-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.m-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:var(--pill);border:1px solid rgba(71,214,212,.5);background:rgba(71,214,212,.12);color:var(--teal);font-size:.8rem;font-weight:600;line-height:1.45}
.m-chip i{font-size:1rem;line-height:0}
.m-chip.new{background:var(--orange);border-color:var(--orange);color:#fff;letter-spacing:.12em}
.m-note{margin-top:10px;font-size:.82rem;color:rgba(255,255,255,.62);line-height:1.6}
.m-note a{color:rgba(255,255,255,.85)}
.m-extra{margin-top:22px}
/* howto の検索フォーム（ヒーロー内） */
.m-hero .ht-hero-search{margin:26px 0 0;max-width:620px;padding:6px 6px 6px 18px;box-shadow:0 20px 50px -20px rgba(0,0,0,.6)}
.m-hero .ht-hero-search input{padding:10px 0}
@media (max-width:640px){
  .m-hero{min-height:min(56dvh,480px)}
  .m-hero-body{padding-top:calc(var(--nav-h) + 32px)}
  .crumbs{font-size:.76rem;margin-bottom:16px}
  .m-hero .hero-lead br{display:none}
}

/* ---------- レイアウト（PC: 目次サイドバー + 本文） ---------- */
.m-page{padding:clamp(28px,4vw,56px) 0 clamp(64px,8vw,120px)}
.m-grid{width:min(100% - 2*var(--gutter),var(--max));margin-inline:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:28px}
.m-main{min-width:0;width:100%;max-width:880px;margin-inline:auto}
.m-grid.wide .m-main{max-width:none}
body.manual-sub .m-main > div,body.manual-sub .m-main > main{max-width:none!important;padding-inline:0!important;padding-top:0!important;margin-inline:0!important}
@media (min-width:1024px){
  .m-grid.has-side{grid-template-columns:256px minmax(0,1fr);gap:clamp(32px,4vw,64px);align-items:start}
  .m-grid.has-side .m-main{margin-inline:0}
  .m-side{position:sticky;top:calc(var(--nav-h) + 20px);max-height:calc(100dvh - var(--nav-h) - 40px);overflow:auto;scrollbar-width:none}
  .m-side::-webkit-scrollbar{display:none}
  body.manual-sub .m-side .toc{animation:none!important;opacity:1!important;transform:none!important;filter:none!important}
}

/* ---------- 目次 ---------- */
body.manual-sub .toc{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 22px 16px;box-shadow:0 1px 0 var(--line),0 20px 50px -34px rgba(26,26,62,.45);margin:0}
body.manual-sub .toc h2{font-size:.72rem;font-weight:700;letter-spacing:.24em;text-transform:uppercase;color:var(--teal-ink);display:flex;align-items:center;gap:6px;margin:0 0 10px}
body.manual-sub .toc h2 i{font-size:1rem;line-height:0}
body.manual-sub .toc ol{counter-reset:toc;list-style:none;margin:0;padding:0}
body.manual-sub .toc ol li{counter-increment:toc;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:start;padding:5px 0;border-bottom:1px solid var(--line);break-inside:avoid}
body.manual-sub .toc ol li:last-child{border-bottom:0}
body.manual-sub .toc ol li::before{content:counter(toc);flex:none;width:1.5rem;height:1.5rem;border-radius:50%;background:var(--bg-2);color:var(--ink-2);font-size:.68rem;font-weight:700;display:inline-grid;place-items:center;transform:translateY(.25em);transition:background .2s,color .2s}
body.manual-sub .toc.nonum ol li::before{display:none}
body.manual-sub .toc ol li a{font-size:.9rem;line-height:1.4;color:var(--ink);text-decoration:none;transition:color .2s}
body.manual-sub .toc ol li a:hover,body.manual-sub .toc ol li a.on{color:var(--teal-ink)}
body.manual-sub .toc ol li a.on{font-weight:700}
body.manual-sub .toc ol li:has(a.on)::before{background:var(--teal);color:var(--navy)}
body.manual-sub .toc .new-badge{font-size:.55rem}
@media (max-width:1023px){
  body.manual-sub .m-side .toc{padding:18px 18px 12px}
  body.manual-sub .m-side .toc ol{columns:2;column-gap:28px}
}
@media (max-width:640px){body.manual-sub .m-side .toc ol{columns:1}}

/* ---------- 本文の文字（Tailwind の小さめ指定を読みやすい大きさに） ---------- */
body.manual-sub .m-main{font-size:1rem;line-height:1.85}
body.manual-sub .m-main .text-sm{font-size:.95rem;line-height:1.8}
body.manual-sub .m-main .text-xs{font-size:.82rem;line-height:1.65}
body.manual-sub .m-main .text-base{font-size:1.02rem}
body.manual-sub .m-main .text-gray-600,body.manual-sub .m-main .text-gray-700,body.manual-sub .m-main .text-gray-800{color:var(--ink-2)}
body.manual-sub .m-main .text-gray-500,body.manual-sub .m-main .text-gray-400{color:var(--ink-3)}
body.manual-sub .m-main .text-primary{color:var(--navy)}
body.manual-sub .m-main h2{font-size:clamp(1.4rem,2.2vw,1.8rem);font-weight:800;letter-spacing:-.02em;line-height:1.25;text-wrap:balance;word-break:auto-phrase}
body.manual-sub .m-main h3{font-size:1.15rem;font-weight:700;letter-spacing:-.01em;line-height:1.4}
body.manual-sub .m-main .section-title::after{width:40px;height:3px;background:var(--teal);margin-top:10px}
body.manual-sub .m-main .section-title-icon{color:var(--teal-ink)}
body.manual-sub .m-main table{font-variant-numeric:tabular-nums}
body.manual-sub .m-main .bg-white.rounded-2xl,body.manual-sub .m-main section.card{border-radius:var(--r-lg);border:1px solid var(--line);box-shadow:0 1px 0 var(--line),0 24px 60px -40px rgba(26,26,62,.45)}
body.manual-sub .m-main .rounded-xl{border-radius:14px}

/* ---------- manual-v2 系（GSPro / GAMEDAY / AIMY / AI トレーナー / やりたいことから探す） ---------- */
body.manual-sub .section-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:0 1px 0 var(--line),0 24px 60px -40px rgba(26,26,62,.45);margin:0 0 28px;overflow:hidden}
body.manual-sub .section-header{display:flex;align-items:flex-start;gap:16px;background:#fff;color:var(--navy);padding:30px 32px 0;border:0}
body.manual-sub .section-header .num{flex:none;width:44px;height:44px;border-radius:50%;background:var(--teal);color:var(--navy);font-size:1.05rem;font-weight:800;display:grid;place-items:center;letter-spacing:-.03em;margin-top:2px}
body.manual-sub .sh-kicker{font-size:.72rem;font-weight:700;letter-spacing:.24em;text-transform:uppercase;color:var(--teal-ink);opacity:1;margin-top:4px}
body.manual-sub .sh-title{font-size:clamp(1.35rem,2.2vw,1.75rem);font-weight:800;letter-spacing:-.02em;line-height:1.25;margin:2px 0 0}
body.manual-sub .section-body{padding:20px 32px 32px}
body.manual-sub .lead{font-size:1.05rem;color:var(--ink);line-height:1.9}
body.manual-sub .sub-section{margin-bottom:30px}
body.manual-sub .sub-section h3{font-size:1.2rem;font-weight:700;letter-spacing:-.01em;border-bottom:0;padding:0;margin:0 0 12px;gap:10px}
body.manual-sub .sub-section h3 .accent-dot{width:10px;height:10px}
body.manual-sub .steps > li{padding:0 0 22px 52px}
body.manual-sub .steps > li::before{width:36px;height:36px;background:var(--teal);color:var(--navy);font-size:.95rem}
body.manual-sub .steps > li::after{left:17px;top:42px;bottom:4px;background:var(--line)}
body.manual-sub .steps .st-title{font-size:1.05rem;padding-top:.3rem;min-height:36px;line-height:1.6}
body.manual-sub .steps .st-desc{font-size:.95rem;color:var(--ink-2);line-height:1.8}
body.manual-sub .fig{margin:14px 0 6px}
body.manual-sub .fig img{border-radius:var(--r);border:1px solid var(--line);box-shadow:0 16px 40px -28px rgba(26,26,62,.5)}
body.manual-sub .fig-cap{font-size:.82rem;color:var(--ink-3);margin:10px 0 18px}
body.manual-sub .tip-box,body.manual-sub .warn-box{border-left:0;border-radius:16px;padding:16px 20px;margin:16px 0;line-height:1.75}
body.manual-sub .tip-box{background:rgba(71,214,212,.12);border:1px solid rgba(71,214,212,.35)}
body.manual-sub .warn-box{background:rgba(232,93,44,.08);border:1px solid rgba(232,93,44,.3)}
body.manual-sub details summary{border-radius:14px;background:var(--bg-2);border-left:0;padding:14px 18px;font-size:1rem;transition:background .2s}
body.manual-sub details summary:hover{background:var(--bg-3)}
body.manual-sub details[open] summary{border-radius:14px 14px 0 0}
body.manual-sub details .detail-body{border-left:0;background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 14px 14px;padding:18px}
body.manual-sub .cp-acc > summary{background:#fff;border-radius:0}
body.manual-sub .data-table,body.manual-sub .cmp-table,body.manual-sub .key-table,body.manual-sub .rec-table{font-size:.92rem}
body.manual-sub .data-table th,body.manual-sub .cmp-table th,body.manual-sub .rec-table th{background:var(--navy);color:#fff;font-weight:700;padding:10px 14px}
body.manual-sub .data-table th{color:var(--teal)}
body.manual-sub .cmp-table th:first-child{background:var(--navy-deep);color:var(--teal)}
body.manual-sub .data-table td,body.manual-sub .cmp-table td,body.manual-sub .rec-table td{padding:10px 14px}
body.manual-sub .mode-card,body.manual-sub .menu-card,body.manual-sub .rule-card,body.manual-sub .launch-item,body.manual-sub .metric,body.manual-sub .scene,body.manual-sub .trouble-item,body.manual-sub .cp-acc,body.manual-sub .screen-fig,body.manual-sub .preset-card{border-radius:var(--r)}
body.manual-sub .mode-card{background:var(--bg-2);border-top:0;padding:18px 20px}
body.manual-sub .mode-card .mode-ja,body.manual-sub .trouble-item .ti-q,body.manual-sub .rule-card .rc-ja,body.manual-sub .scene .sc-h,body.manual-sub .gloss dt,body.manual-sub .metric .m-ja,body.manual-sub .menu-card .mc-ja{font-size:1rem}
body.manual-sub .mode-card .mode-desc,body.manual-sub .rule-card .rc-desc,body.manual-sub .trouble-item .ti-a,body.manual-sub .scene ul,body.manual-sub .gloss dd,body.manual-sub .metric .m-desc,body.manual-sub .menu-card .mc-desc,body.manual-sub .launch-item .li-desc,body.manual-sub .info-row .ir-val,body.manual-sub .info-row .ir-key{font-size:.9rem}
body.manual-sub .real-tag,body.manual-sub .new-badge{border-radius:var(--pill);padding:2px 9px}
body.manual-sub .ht-sec-h{font-size:1.25rem;letter-spacing:-.01em}
body.manual-sub .ht-sec-ico{background:var(--teal);color:var(--navy)}
@media (max-width:640px){
  body.manual-sub .section-header{padding:22px 20px 0;gap:12px}
  body.manual-sub .section-header .num{width:36px;height:36px;font-size:.95rem}
  body.manual-sub .section-body{padding:16px 20px 24px}
  body.manual-sub .steps > li{padding-left:46px}
}

/* 目次: 番号 | 見出し の2列。更新バッジは見出しの下に */
body.manual-sub .toc ol li::before{grid-row:1}
body.manual-sub .toc ol li a{grid-column:2}
body.manual-sub .toc .new-badge{grid-column:2;justify-self:start;margin-top:3px;font-size:.55rem;padding:1px 7px;white-space:nowrap;letter-spacing:.04em}

/* 関連ページ（旧: フッターの後ろ）をフッターの手前に */
body.manual-sub .m-related{padding:0 0 clamp(40px,6vw,72px)}
body.manual-sub .m-related section{max-width:880px!important;padding:0!important}
body.manual-sub .footer{text-align:left}
