/* ==========================================================
   COMPATH / 公認会計士しろくま コーポレートサイト
   トンマナ: AWスライド U1基本形（シルバー金属地・ネイビー×ブルー）
   ゴールド・暖色・紫・緑・蛍光・グロー禁止（slide-deck-generator 正本に準拠）
   外部フォント・外部CSSは読み込まない（CSP 'self' のみ）
   ========================================================== */

:root {
  --navy: #10275a;
  --navy-deep: #0d2350;
  --blue: #2f6fd0;
  --blue-pale: #a8c6f0;
  --silver-1: #e9edf3;
  --silver-2: #fbfcfe;
  --silver-edge: #d5dce6;
  --line: #c3ccd9;
  --white: #ffffff;
  --alert: #d8524a;
  --text: #10275a;
  --text-sub: #3d5079;
  --grad: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
  --grad-diag: linear-gradient(135deg, var(--navy-deep) 0%, var(--blue) 100%);
  --col: 600px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 39, 90, .06), 0 8px 24px rgba(16, 39, 90, .07);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --font-en: "Helvetica Neue", "Inter", "Arial", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.85;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  /* シルバー金属地：横のヘアライン＋中央が明るく四隅が落ちる */
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.35) 0 1px, rgba(195,204,217,.12) 1px 3px),
    radial-gradient(ellipse at 50% 40%, var(--silver-2) 0%, var(--silver-1) 60%, var(--silver-edge) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 全体レイアウト：中央1カラム＋PCは左右固定パネル ---------- */
.frame { position: relative; }
.column {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(16, 39, 90, .12);
  overflow: hidden;
}

/* ---------- 目次（スマホのメニュー内） ---------- */
.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; align-items: baseline; gap: 14px; color: var(--text-sub); text-decoration: none; font-weight: 600; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--blue); }
.toc a.is-current { color: var(--navy); }
.gnav { display: none; }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 14px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__logo img { width: 132px; }
.menu-btn {
  appearance: none; border: 1px solid var(--line); background: var(--white);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy); position: relative; transition: transform .25s ease, opacity .25s ease;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.drawer {
  position: fixed; inset: 65px 0 auto 0; z-index: 19;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 24px;
  box-shadow: var(--shadow);
}
.drawer[hidden] { display: none; }
.drawer .toc a { font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--silver-1); }

/* ---------- セクション：白×方眼 と ネイビー×方眼 を交互に ---------- */
.sec { position: relative; padding: 88px 28px; overflow: hidden; }
.page-head { position: relative; overflow: hidden; }
.hero { position: relative; }
.sec--light {
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(47, 111, 208, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 208, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.sec--silver {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.4) 0 1px, rgba(195,204,217,.15) 1px 3px),
    radial-gradient(ellipse at 50% 30%, var(--silver-2), var(--silver-1) 70%, var(--silver-edge));
}
.sec--dark {
  color: var(--white);
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(rgba(168, 198, 240, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 198, 240, .08) 1px, transparent 1px),
    var(--grad-diag);
  background-size: 30px 30px, 30px 30px, 100% 100%;
}
.sec--dark a { color: var(--blue-pale); }

/* 模様プレート：右上の四分円・左上のドット＋リング */
.deco::before {
  content: ""; position: absolute; top: -90px; right: -90px;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--grad-diag);
  opacity: .95;
  pointer-events: none;
}
.deco::after {
  content: ""; position: absolute; top: 20px; left: 16px;
  width: 120px; height: 90px;
  background-image: radial-gradient(var(--blue) 1.6px, transparent 1.8px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(135deg, #000 10%, transparent 80%);
  mask-image: linear-gradient(135deg, #000 10%, transparent 80%);
  opacity: .45;
  pointer-events: none;
}
.sec--dark.deco::before { background: linear-gradient(135deg, var(--blue), var(--blue-pale)); opacity: .25; }
.sec--dark.deco::after { background-image: radial-gradient(var(--blue-pale) 1.6px, transparent 1.8px); }

/* 見出し：シルバー枠＋真下にネイビー→ブルーの太いバー */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .2em;
  color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .5; }
.sec--dark .eyebrow { color: var(--blue-pale); }
.h2 {
  position: relative;
  margin: 0 0 40px;
  padding: 18px 12px 20px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(24px, 6.4vw, 32px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .04em;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
}
.h2::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -6px; height: 6px; background: var(--grad); }
.sec--dark .h2 { border-color: rgba(168, 198, 240, .4); background: rgba(13, 35, 80, .4); }
.sec--dark .h2::after { background: linear-gradient(90deg, var(--blue), var(--blue-pale)); }
.lead { font-size: 16px; margin: 0 0 28px; }
.note { font-size: 12.5px; color: var(--text-sub); line-height: 1.7; }
.sec--dark .note { color: var(--blue-pale); }

/* ---------- ヒーロー ---------- */
.hero { padding: 72px 28px 0; overflow: hidden; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--navy);
  border: 1px solid var(--line); background: var(--white);
  padding: 6px 14px; border-radius: 999px;
}
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 2s ease-in-out infinite; }
.hero__title {
  margin: 22px 0 18px;
  font-size: clamp(34px, 10vw, 52px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: .02em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.is-ready .hero__title .line > span { transform: none; }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.hero__title .grad {
  background: linear-gradient(100deg, var(--navy) 0%, var(--blue) 40%, var(--blue-pale) 50%, var(--blue) 60%, var(--navy) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}
.hero__sub { font-size: 15.5px; color: var(--text-sub); margin: 0 0 28px; }
.hero__visual {
  position: relative; margin: 40px -28px 0; height: 260px; overflow: hidden;
  background:
    linear-gradient(rgba(168, 198, 240, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 198, 240, .1) 1px, transparent 1px),
    var(--grad-diag);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  display: grid; place-items: center;
}
.hero__mark { width: 92px; filter: brightness(0) invert(1); animation: float 5s ease-in-out infinite; position: relative; z-index: 2; }
.hero__ring {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%;
  border: 1.5px dashed var(--blue-pale);
  animation: spin 30s linear infinite;
}
.hero__ring--2 { width: 300px; height: 300px; margin: -150px 0 0 -150px; border: 1px solid rgba(168, 198, 240, .3); animation-duration: 60s; animation-direction: reverse; }
.hero__caption { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; z-index: 2; text-align: center; color: var(--blue-pale); font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .2em; }

/* 端末風の箱（参考サイトのターミナル演出をネイビーで） */
.terminal {
  margin: 0 0 28px;
  background: var(--navy-deep);
  color: var(--blue-pale);
  border-radius: 12px;
  padding: 14px 18px 16px;
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 13px; line-height: 1.7;
  box-shadow: var(--shadow);
}
.terminal__bar { display: flex; gap: 6px; margin-bottom: 10px; }
.terminal__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(168, 198, 240, .35); }
.terminal__line { min-height: 1.7em; white-space: pre-wrap; }
.terminal__line::before { content: "$ "; color: var(--blue); }
.terminal__caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.15em; background: var(--blue-pale); animation: blink 1s steps(1) infinite; }

/* ---------- 流れる帯（ティッカー） ---------- */
.ticker { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); background: var(--white); }
.ticker--dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.ticker__track { display: inline-flex; gap: 40px; padding: 14px 0; animation: marquee var(--speed, 26s) linear infinite; }
.ticker__track span { font-family: var(--font-en); font-weight: 800; font-style: italic; font-size: 20px; letter-spacing: .06em; }
.ticker__track span::after { content: "／"; margin-left: 40px; color: var(--blue); font-style: normal; }
.ticker--dark .ticker__track span::after { color: var(--blue-pale); }

/* ---------- ボタン ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800; font-size: 16px; letter-spacing: .06em;
  text-decoration: none;
  color: var(--white);
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(47, 111, 208, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn::before {
  content: ""; position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47, 111, 208, .34); }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: var(--white); color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost::before { display: none; }
.btn--ghost:hover { color: var(--navy); border-color: var(--blue); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn-row { display: grid; gap: 12px; }

/* ---------- 数字 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 12px; }
.stat {
  text-align: center; padding: 18px 8px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.sec--dark .stat { background: rgba(255, 255, 255, .06); border-color: rgba(168, 198, 240, .3); }
.stat__num { display: block; font-family: var(--font-en); font-weight: 800; font-size: clamp(26px, 8vw, 36px); line-height: 1.1; }
.stat__num small { font-size: .45em; margin-left: 2px; }
.stat__label { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; }

/* ---------- カード・リスト ---------- */
.cards { display: grid; gap: 14px; }
.card {
  position: relative;
  padding: 24px 22px 22px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card__num { font-family: var(--font-en); font-weight: 800; font-style: italic; font-size: 13px; color: var(--blue); letter-spacing: .1em; }
.card__title { margin: 6px 0 8px; font-size: 19px; font-weight: 800; line-height: 1.5; }
.card p { margin: 0; font-size: 15px; }
.card__icon { width: 44px; height: 44px; margin-bottom: 10px; color: var(--navy); }
.card__icon .accent { color: var(--blue); }
.sec--dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(168, 198, 240, .28); box-shadow: none; color: var(--white); }
.sec--dark .card__icon { color: var(--white); }
.sec--dark .card__icon .accent { color: var(--blue-pale); }
.card--link { text-decoration: none; color: inherit; display: block; transition: transform .25s ease, border-color .25s ease; }
.card--link:hover { transform: translateY(-3px); border-color: var(--blue); color: inherit; }
.card__more { display: inline-flex; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--blue); }

/* 大きい文字が1文字ずつ跳ねる */
.bigword { margin: 0 0 24px; font-weight: 900; font-size: clamp(30px, 8.6vw, 60px); line-height: 1.35; letter-spacing: .02em; }
.bigword .ch { display: inline-block; opacity: 0; transform: translateY(40%); }
.bigword.is-in .ch { animation: hop .6s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(var(--i) * 60ms); }

/* プロフィール */
.profile { display: grid; gap: 22px; }
.profile__photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.profile__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.profile__name { margin: 0; font-size: 24px; font-weight: 900; }
.profile__role { margin: 2px 0 14px; color: var(--text-sub); font-size: 14px; font-weight: 700; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 6px; top: 6px; width: 2px; height: calc(var(--progress, 0) * (100% - 12px)); background: var(--grad); transition: height .15s linear; }
.timeline li { position: relative; padding: 0 0 18px; font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); z-index: 1; }
.timeline b { display: block; font-size: 13px; color: var(--blue); letter-spacing: .06em; }

/* 流れ（ステップ） */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; position: relative; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 64px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 800; font-size: 15px;
  color: var(--white); background: var(--grad-diag);
}
.steps li::after { content: ""; position: absolute; left: 22px; top: 52px; bottom: 6px; border-left: 2px dashed var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 4px; font-size: 18px; font-weight: 800; }
.steps p { margin: 0; font-size: 15px; }

/* 会社概要の表 */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--silver-1); }
.table th { width: 32%; background: #f4f7fb; font-weight: 700; color: var(--navy); }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }

/* FAQ（details/summaryでJS不要） */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative; font-weight: 800; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-en); color: var(--blue); margin-right: 10px; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 18px 18px; font-size: 15px; }

/* お知らせ */
.notice { padding: 16px 18px; border-left: 4px solid var(--blue); background: #f4f7fb; border-radius: 0 10px 10px 0; font-size: 14.5px; }
.notice strong { color: var(--navy); }

/* 下層ページ */
.page-head { padding: 72px 28px 40px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 8vw, 38px); font-weight: 900; line-height: 1.4; }
.prose { font-size: 15px; }
.prose h2 { font-size: 19px; margin: 36px 0 10px; padding-bottom: 8px; border-bottom: 2px solid; border-image: var(--grad) 1; }
.prose ol, .prose ul { padding-left: 1.4em; }
.breadcrumb { font-size: 12.5px; margin: 0 0 16px; color: var(--text-sub); }
.breadcrumb a { color: var(--text-sub); }

/* ---------- フッター ---------- */
.site-footer { padding: 56px 28px 40px; background: var(--navy-deep); color: rgba(255, 255, 255, .86); font-size: 13.5px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__logo { width: 180px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .95; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; list-style: none; padding: 0; margin: 0 0 28px; }
.sns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 28px; }
.sns a { display: inline-block; padding: 6px 14px; border: 1px solid rgba(168, 198, 240, .4); border-radius: 999px; font-size: 13px; }
.copyright { margin: 0; color: var(--blue-pale); font-size: 12px; }

/* 追従CTA（スマホ） */
.float-cta {
  position: fixed; left: 50%; bottom: 14px; z-index: 30;
  width: min(calc(100% - 28px), calc(var(--col) - 28px));
  transform: translate(-50%, 140%);
  transition: transform .35s ease;
}
.float-cta.is-show { transform: translate(-50%, 0); }
@media (min-width: 1024px) { .float-cta { display: none; } }

/* ==========================================================
   PC（1024px〜）：中央1カラムをやめ、画面幅いっぱいのレイアウトにする
   ========================================================== */
@media (min-width: 1024px) {
  :root { --wrap: 1120px; --gutter: max(48px, calc((100% - var(--wrap)) / 2)); }
  body { font-size: 16.5px; }
  .column { max-width: none; box-shadow: none; }

  /* ヘッダー：横並びメニュー */
  .site-header { padding: 14px var(--gutter); }
  .site-header__logo img { width: 168px; }
  .menu-btn, .drawer { display: none !important; }
  .gnav { display: flex; align-items: center; gap: 28px; }
  .gnav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
  .gnav ul a { position: relative; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 6px 0; }
  .gnav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
  .gnav ul a:hover::after, .gnav ul a.is-current::after { transform: scaleX(1); }

  /* セクション共通 */
  .sec { padding: 120px var(--gutter); }
  .page-head { padding: 96px var(--gutter) 56px; }
  .h2 { max-width: 720px; margin: 0 auto 56px; font-size: 36px; }
  .lead { font-size: 18px; }
  .deco::before { width: 340px; height: 340px; top: -140px; right: -140px; }
  .deco::after { width: 220px; height: 150px; top: 40px; left: 40px; }

  /* ヒーロー：左に文字・右に図版の2カラム */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    column-gap: 64px;
    align-items: center;
    padding: 56px var(--gutter) 80px;
    min-height: calc(100vh - 72px);
  }
  .hero > * { grid-column: 1; }
  .hero__badge { justify-self: start; }
  .hero__title.copy { font-size: clamp(40px, 3.9vw, 64px); margin: 16px 0 18px; }
  .hero__sub { margin-bottom: 20px; }
  .terminal { margin-bottom: 22px; }
  .hero__sub { font-size: 17px; max-width: 600px; }
  .terminal { max-width: 600px; font-size: 14px; }
  .hero .btn-row { grid-template-columns: auto auto; justify-content: start; }
  .hero .btn--block { display: inline-flex; width: auto; min-width: 280px; }
  .hero__visual {
    grid-column: 2; grid-row: 1 / span 6;
    margin: 0; height: auto; aspect-ratio: 1 / 1;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(13, 35, 80, .28);
  }
  .hero__mark { width: 150px; }
  .hero__ring { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .hero__ring--2 { width: 470px; height: 470px; margin: -235px 0 0 -235px; }

  .ticker__track span { font-size: 26px; }

  /* 本文が長い段落は読みやすい幅に */
  #about > .reveal, .sec--dark > .reveal { max-width: 760px; margin-left: auto; margin-right: auto; }
  .bigword { text-align: center; font-size: clamp(52px, 5.2vw, 84px); }

  /* 3つの方針：3カラム */
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card { padding: 32px 28px; }

  /* 結果：2組を横に並べる */
  #results .lead, #results .note { text-align: center; }
  .stats-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 12px; }
  .stats-pair .stats { margin: 0; }
  .stat { padding: 26px 8px 22px; }
  .stat__num { font-size: 44px; }
  #results .btn--block { max-width: 480px; margin: 24px auto 0; }

  /* プロフィール：写真左・文章右 */
  .profile { grid-template-columns: 400px 1fr; gap: 56px; align-items: start; }
  .profile__photo { position: sticky; top: 100px; }
  .profile__name { font-size: 30px; }

  /* 入塾までの流れ：5ステップを横に */
  #flow .lead, #flow .note { text-align: center; }
  .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .steps li { padding: 70px 0 0; text-align: center; }
  .steps li::before { left: 50%; transform: translateX(-50%); width: 54px; height: 54px; font-size: 16px; }
  .steps li::after { left: calc(50% + 36px); right: calc(-50% + 16px); top: 27px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line); }
  .steps h3 { font-size: 17px; }
  .steps p { font-size: 14px; text-align: left; }

  /* FAQ・問い合わせ・会社概要は中央に絞る */
  .faq, .table, .prose > * { max-width: 860px; margin-left: auto; margin-right: auto; }
  .prose > h2 { max-width: 860px; }
  #contact { text-align: center; }
  #contact .btn--block { display: inline-flex; width: auto; min-width: 420px; }
  .sec--light > .reveal > .btn--block { max-width: 480px; margin: 32px auto 0; }

  /* フッター：横並び */
  .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; padding: 64px var(--gutter) 40px; }
  .footer-nav { grid-template-columns: repeat(4, auto); gap: 8px 28px; }
  .sns { justify-content: flex-end; }
  .copyright { grid-column: 1 / -1; }
}




/* ---------- 書体の使い分け ----------
   明朝：キャッチコピー・見出し・名前など「印象を残したい言葉」
   ゴシック：本文・ボタン・メニュー・数字など「読ませる／操作させる文字」 */
.copy { font-family: var(--font-serif); font-weight: 600; letter-spacing: .06em; font-feature-settings: "palt"; }
.hero__title.copy { font-weight: 600; letter-spacing: .04em; line-height: 1.38; font-size: clamp(30px, 8.8vw, 52px); }
.hero__title .line { white-space: nowrap; }
.lead.copy { font-size: clamp(20px, 5.4vw, 26px); line-height: 1.6; margin-bottom: 20px; }
.bigword.copy { font-weight: 600; }
.profile__name.copy { font-weight: 600; letter-spacing: .08em; }
.profile__lead { margin: 10px 0 0; }

/* ---------- 受講生の実績の帯 ---------- */
.ticker--results { display: flex; align-items: stretch; }
.ticker__label {
  flex: none; position: relative; z-index: 2; margin: 0;
  display: flex; align-items: center; padding: 0 16px;
  background: var(--blue); color: var(--white);
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em;
  box-shadow: 8px 0 16px rgba(13, 35, 80, .5);
}
.ticker--results .ticker__track { --speed: 140s; }
.ticker--results .ticker__track span { font-family: var(--font); font-style: normal; font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.ticker--results .ticker__track span::after { content: "●"; font-size: 8px; vertical-align: middle; margin-left: 40px; color: var(--blue-pale); }

/* ---------- 名前の由来（横一行の式） ---------- */
.origin { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; margin: 0 0 36px; text-align: center; }
.origin__term { font-family: var(--font-serif); font-weight: 600; font-size: 19px; letter-spacing: .08em; color: var(--white); white-space: nowrap; }
.origin__term small { font-family: var(--font); font-weight: 500; font-size: 12px; letter-spacing: .04em; color: var(--blue-pale); margin-left: 1px; }
.origin__op { font-family: var(--font-serif); font-size: 18px; color: var(--blue-pale); }
.origin__term--result { padding-bottom: 4px; background: linear-gradient(90deg, var(--blue-pale), var(--white)) left bottom / 100% 2px no-repeat; }

/* ---------- 実績のサムネ（キャラ選択画面風） ---------- */
.showcase { position: relative; margin: 8px -28px 18px; }
.showcase__stage { position: relative; aspect-ratio: 100 / 46; overflow: hidden; }
.showcase__item {
  position: absolute; left: 50%; top: 50%;
  width: 70%;
  border-radius: 12px; overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 12px 30px rgba(13, 35, 80, .3);
  transform: translate(-50%, -50%) translateX(var(--x, 0%)) scale(var(--s, 1));
  filter: brightness(var(--b, 1)) saturate(var(--sat, 1));
  opacity: var(--o, 1);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s ease, opacity .6s ease;
}
.showcase__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.showcase__item.is-center { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--blue), 0 18px 40px rgba(13, 35, 80, .35); }
.showcase__caption { min-height: 3.2em; margin: 14px 28px 0; text-align: center; font-size: clamp(17px, 4.6vw, 22px); line-height: 1.6; color: var(--navy); }
.showcase__nav { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.showcase__btn {
  appearance: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--navy);
  font-size: 18px; font-weight: 700;
  transition: border-color .2s ease, transform .2s ease;
}
.showcase__btn:hover { border-color: var(--blue); transform: translateY(-2px); }
@media (min-width: 1024px) {
  .showcase { margin: 8px 0 24px; }
  .showcase__stage { aspect-ratio: 100 / 32; }
  .showcase__item { width: 46%; }
  .origin { gap: 6px 18px; margin-bottom: 48px; }
  #about > .origin { max-width: none; flex-wrap: nowrap; }
  .origin__term { font-size: 28px; }
  .origin__term small { font-size: 14px; }
  .origin__op { font-size: 24px; }
  .lead.copy { font-size: 30px; text-align: center; }
  .ticker--results .ticker__track span { font-size: 18px; }
  .ticker__label { padding: 0 28px; font-size: 14px; }
}


/* ---------- ヒーローのキャッチ（明朝・大小の対比・英字のアクセント） ---------- */
.hero__en {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 0;
  font-family: "Didot", "Bodoni 72", "Bodoni MT", "Times New Roman", var(--font-serif);
  font-style: italic; font-weight: 400;
  font-size: clamp(17px, 4.6vw, 22px); letter-spacing: .04em;
  color: var(--blue);
}
.hero__en::before { content: ""; width: 40px; height: 1px; background: var(--blue); }
.hero__title.copy { margin: 10px 0 22px; line-height: 1.32; letter-spacing: .03em; font-size: clamp(34px, 9.4vw, 54px); }
.hero__title .line { position: relative; white-space: nowrap; }
.hero__title small { font-size: .52em; font-weight: 300; letter-spacing: .1em; margin-right: .08em; color: var(--text-sub); vertical-align: .12em; }
.hero__title .line--b { padding-bottom: .18em; }
.hero__stroke {
  position: absolute; left: 0; bottom: .02em;
  width: 7.6em; height: 2px; max-width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .7s;
}
.is-ready .hero__stroke { transform: scaleX(1); }
.bigword .bw { display: block; }
@media (min-width: 1024px) {
  .hero__en { margin-top: 18px; font-size: 24px; }
  .hero__title.copy { font-size: clamp(46px, 4.3vw, 68px); }
}

/* ---------- スクロールで出現 ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-bar { position: relative; }
.js .reveal-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .7s ease .1s; border-radius: 4px; }
.js .reveal-bar.is-in::before { transform: scaleY(1); }
.check path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.is-in .check path { animation: draw .5s ease forwards; animation-delay: calc(var(--i, 0) * 300ms + 200ms); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes hop { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* 動きを減らす設定の人には止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .bigword .ch, .hero__title .line > span { opacity: 1 !important; transform: none !important; }
  .check path { stroke-dashoffset: 0; }
}

/* ==========================================================
   ヒーロー右：枠なしの羅針盤ダイヤル（2026-11-05 改訂）
   カードの枠をやめ、銀地の上に細い線だけで羅針盤を描く
   ========================================================== */
.hero__eyebrow {
  margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .24em; color: var(--text-sub);
}
.hero__visual {
  margin: 36px auto 0; width: min(78vw, 330px); height: auto; aspect-ratio: 1 / 1;
  background: none; box-shadow: none; border-radius: 0; overflow: visible; display: block;
}
.hero__visual::after { display: none; }
.dial { position: relative; width: 100%; height: 100%; }
.dial > * { position: absolute; }
.dial__text {
  inset: 0; width: 100%; height: 100%;
  fill: var(--navy); font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .32em;
  opacity: .55;
  animation: spin 80s linear infinite;
}
.dial__ticks {
  inset: 13%; border-radius: 50%;
  background:
    repeating-conic-gradient(from -.4deg, var(--navy) 0 .8deg, transparent .8deg 30deg),
    repeating-conic-gradient(from -.15deg, rgba(16, 39, 90, .45) 0 .3deg, transparent .3deg 5deg);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 14px), #000 calc(50% - 13px) 50%, transparent 50%);
  mask: radial-gradient(circle, transparent 0 calc(50% - 14px), #000 calc(50% - 13px) 50%, transparent 50%);
  animation: spin 120s linear infinite reverse;
}
.dial__ring { inset: 22%; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); }
.dial__ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px dashed rgba(47, 111, 208, .45); transform: scale(1.18); }
.dial__n, .dial__e, .dial__s, .dial__w {
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif; font-style: italic; font-size: 15px; color: var(--navy);
  transform: translate(-50%, -50%);
}
.dial__n { left: 50%; top: 18.5%; color: var(--blue); }
.dial__s { left: 50%; top: 81.5%; }
.dial__e { left: 81.5%; top: 50%; }
.dial__w { left: 18.5%; top: 50%; }
.dial__mark { left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%); }
.dial__mark img { width: 100%; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(16, 39, 90, .18)); }

/* 下へのスクロール案内 */
.hero__scroll {
  display: none;
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  text-decoration: none; color: var(--text-sub);
  font-family: var(--font-en); font-size: 10.5px; font-weight: 700; letter-spacing: .3em;
}
.hero__scroll::after {
  content: ""; display: block; width: 1px; height: 44px; margin: 8px auto 0;
  background: linear-gradient(var(--navy), var(--navy)) 0 0 / 100% 40% no-repeat, var(--line);
  animation: scrollcue 2.2s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes scrollcue { 0% { background-position: 0 -100%; } 100% { background-position: 0 250%; } }

@media (min-width: 1024px) {
  .hero__visual {
    grid-column: 2; grid-row: 1 / span 6;
    width: 100%; max-width: 520px; margin: 0 0 0 auto;
    border-radius: 0; box-shadow: none; aspect-ratio: 1 / 1;
  }
  .dial__text { font-size: 10.5px; }
  .dial__n, .dial__e, .dial__s, .dial__w { font-size: 18px; }
  .hero__scroll { display: block; }
  .hero__eyebrow { font-size: 13px; }
}

/* 端末風の箱は明るいガラス調に（右の羅針盤と重さを揃える） */
.terminal {
  background: rgba(255, 255, 255, .72);
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 39, 90, .04), 0 10px 30px rgba(16, 39, 90, .06);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.terminal__bar i { background: var(--line); }
.terminal__caret { background: var(--blue); }

/* スマホ：右上の模様を小さくして見出しと重ならないように */
@media (max-width: 1023px) {
  .hero.deco::before { width: 150px; height: 150px; top: -75px; right: -75px; }
  .hero__eyebrow { font-size: 11.5px; letter-spacing: .16em; }
}

/* 濃い地の上のボタンは白抜きにして目立たせる（2026-11-05） */
.sec--dark .btn:not(.btn--ghost) {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(5, 15, 40, .35);
}
.sec--dark .btn:not(.btn--ghost)::before { background: linear-gradient(100deg, transparent, rgba(47, 111, 208, .22), transparent); }
.sec--dark .btn:not(.btn--ghost):hover { color: var(--navy); background: #f2f6fd; box-shadow: 0 14px 34px rgba(5, 15, 40, .42); }
.sec--dark .btn:not(.btn--ghost) .btn__arrow { color: var(--blue); }
