/* =========================================================
   Crypto.T.Chain theme v9 — 各ページの部品
   （土台・トークン・ヒーロー・仕組みの演出は site.css）
   ========================================================= */

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-lead { font-size: clamp(15px, 1.2vw, 18px); max-width: 42em; margin: 20px 0 0; }
.container.narrow { max-width: 880px; }
.text-link { color: var(--brand); font-weight: 700; text-decoration: none; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease-out); }
.text-link:hover { background-size: 100% 2px; }
.small-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-2.top { align-items: start; }
.split-2.reverse > :first-child { order: 2; }
.split-2 .section-title { font-size: clamp(30px, 3.5vw, 52px); }
.block-title { font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .24em; color: var(--brand); margin: 0 0 16px; }
.block-title:not(:first-child) { margin-top: 40px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 700; color: var(--ink); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1530' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } .split-2.reverse > :first-child { order: 0; } }

/* ボタンの追加バリエーション */
.btn-lime { background: var(--lime); color: var(--navy); box-shadow: 0 14px 34px -12px rgba(90,138,0,.7); }
.btn-lime:hover { box-shadow: 0 0 0 6px var(--lime-soft), 0 18px 40px -10px rgba(90,138,0,.8); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- 下層ページの見出し ---------- */
.page-head { padding: 170px 0 70px; background:
  radial-gradient(50% 80% at 90% 0%, rgba(25,195,230,.13), transparent 70%),
  repeating-linear-gradient(90deg, transparent 0 79px, rgba(11,21,48,.04) 79px 80px),
  repeating-linear-gradient(0deg, transparent 0 79px, rgba(11,21,48,.04) 79px 80px), var(--bg); border-bottom: 1px solid var(--line); }
.page-title { font-weight: 900; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.1; margin: 16px 0 0; }
.page-head .hero-cta { margin-top: 32px; }
.hero--page { min-height: 88svh; }
.hero--page .hero-inner { grid-template-columns: minmax(0, 1fr); max-width: var(--max); }
.hero--page .hero-gl { opacity: .85; }

/* ---------- 数字で見る ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.stat { border-top: 3px solid var(--ink); padding-top: 22px; }
.stat b { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-weight: 800; font-size: clamp(54px, 6.6vw, 104px); line-height: 1; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat b small { font-family: var(--jp); font-size: .26em; font-weight: 900; letter-spacing: .02em; color: var(--brand); }
.stat:nth-child(2) b { color: var(--brand); }
.stat p { margin: 14px 0 0; font-weight: 700; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- 強み ---------- */
.strengths-section { background: var(--bg); }
.strengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 56px; perspective: 1200px; }
.strength { position: relative; border: 1px solid var(--line); border-radius: 24px; padding: 34px 30px 32px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; transform-style: preserve-3d; transition: box-shadow .3s; }
.strength::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(200,245,60,.35), transparent 65%); opacity: 0; transition: opacity .4s; }
.strength:hover { box-shadow: var(--shadow-lg); }
.strength:hover::after { opacity: 1; }
.strength-no { position: absolute; right: 22px; top: 12px; font-family: var(--display); font-weight: 800; font-size: 76px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); }
.strength-icon { width: 54px; height: 54px; color: var(--brand); margin-bottom: 22px; }
.strength h3 { font-size: 23px; margin: 0 0 12px; font-weight: 900; }
.strength p { margin: 0; position: relative; z-index: 1; }
@media (max-width: 900px) { .strengths { grid-template-columns: 1fr; } }

/* ---------- ゴール ---------- */
.goal-section { background: var(--navy); color: #d6ddee; overflow: hidden; }
.goal-section h2 { color: #fff; }
.goal-section .eyebrow { color: var(--lime); }
.goal { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: end; }
.goal-body p { margin: 0 0 16px; font-size: 17px; }
.goal-note { display: inline-block; padding: 6px 14px; border-radius: 99px; background: rgba(200,245,60,.14); color: var(--lime); font-weight: 700; font-size: 14px !important; }
.goal-section::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 80px rgba(255,255,255,.02), 0 0 0 160px rgba(255,255,255,.015); }
@media (max-width: 900px) { .goal { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 料金 ---------- */
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.price-card { border: 1px solid var(--line); border-radius: 24px; padding: 34px; background: var(--surface); box-shadow: var(--shadow-sm); }
.price-card.is-main { border: 2px solid var(--brand); box-shadow: 0 0 0 6px var(--brand-soft), var(--shadow-lg); }
.price-label { font-family: var(--mono); font-weight: 600; letter-spacing: .2em; color: var(--brand); margin: 0; }
.price { margin: 8px 0 16px; font-family: var(--display); font-weight: 800; font-size: clamp(46px, 5vw, 72px); line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { font-family: var(--jp); font-size: .3em; font-weight: 900; margin-left: 6px; color: var(--text); }
.price-card p:last-child { margin-bottom: 0; }
.tier { width: 100%; border-collapse: collapse; margin: 6px 0 16px; }
.tier th, .tier td { text-align: left; padding: 10px 0; border-bottom: 1px dashed var(--line-strong); font-size: 15px; }
.tier td { text-align: right; font-family: var(--display); font-weight: 600; color: var(--ink); }
.price-more { margin: 30px 0 0; }
.price-section, .price-teaser { background: var(--bg-soft); }
@media (max-width: 760px) { .price-cards { grid-template-columns: 1fr; } }

/* ---------- 前提条件・課題 ---------- */
.req-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.req-card { display: flex; gap: 20px; align-items: flex-start; border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: var(--surface); box-shadow: var(--shadow-sm); }
.req-no { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: var(--lime); font-family: var(--display); font-weight: 800; font-size: 26px; }
.req-card h3 { margin: 4px 0 8px; font-size: 20px; }
.req-card p { margin: 0; }
.req-note { margin: 22px 0 0; font-weight: 700; color: var(--ink); }
.req-note::before { content: "✓ "; color: var(--lime-ink); }
.pain-section { background: var(--bg-soft); }
.pains { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pain { border-left: 4px solid var(--hot); background: var(--surface); border-radius: 0 18px 18px 0; padding: 22px 26px; box-shadow: var(--shadow-sm); }
.pain b { display: block; color: var(--ink); font-size: 19px; margin-bottom: 6px; }
@media (max-width: 760px) { .req-cards, .pains { grid-template-columns: 1fr; } }

/* ---------- 証憑の紐付け管理シート（イメージ） ---------- */
.sheet { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); flex-wrap: wrap; }
.sheet-tabs { display: flex; gap: 6px; font-family: var(--mono); font-size: 12px; }
.sheet-tabs i { font-style: normal; padding: 3px 10px; border-radius: 8px; color: var(--muted); }
.sheet-tabs i.on { background: var(--navy); color: #fff; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet th { font-size: 12px; color: var(--muted); font-weight: 700; }
.sheet .num { text-align: right; font-family: var(--display); font-weight: 600; color: var(--ink); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.pill.ok { background: var(--lime); color: var(--navy); }
.pill.wait { background: var(--brand-soft); color: var(--brand); }
.pill.ask { background: rgba(224,36,94,.1); color: var(--hot); }
.pill.none { background: var(--bg-soft); color: var(--muted); }
.sheet-bar { padding: 14px 18px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sheet-bar i { display: block; height: 6px; border-radius: 6px; margin-top: 8px; background: linear-gradient(90deg, var(--lime) var(--p), var(--bg-soft) var(--p)); }
.sheet { overflow-x: auto; }

/* ---------- 二重計上しない ---------- */
.nodup-section { overflow-x: clip; } /* 出現前の右列（x:40）でスマホの横幅が広がらないように */
.nodup-visual { display: grid; gap: 14px; }
.nd-row > * { min-width: 0; }
.nd-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; }
.nd-labels p { margin: 0; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.nd-item { display: block; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); font-family: var(--mono); font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-item.on { border: 2px solid var(--brand); background: var(--brand-soft); font-family: var(--jp); font-weight: 700; }
.nd-line { position: relative; height: 3px; background: var(--brand); transform-origin: left center; }
.nd-line::before, .nd-line::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--brand); }
.nd-line::before { left: -4px; } .nd-line::after { right: -4px; background: var(--lime); box-shadow: 0 0 0 3px var(--brand); }

/* ---------- 役割分担 ---------- */
.role-table { margin-top: 44px; overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface); }
.role-table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.role-table th, .role-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.role-table thead th { background: var(--navy); color: #fff; font-size: 14px; }
.role-table tbody th { color: var(--ink); font-weight: 700; }
.role-table td.me { color: var(--brand); font-weight: 900; }
.role-table td.tax { color: var(--ink); font-weight: 900; }
.role-table td.you { color: var(--lime-ink); font-weight: 900; }
.role-table tbody tr:last-child td, .role-table tbody tr:last-child th { border-bottom: 0; }

/* ---------- 導入の流れ ---------- */
.onboard { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; counter-reset: ob; position: relative; }
.onboard li { position: relative; padding: 26px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.onboard li > span { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--brand); line-height: 1; }
.onboard li h3 { margin: 12px 0 8px; font-size: 18px; }
.onboard li p { margin: 0; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 16px; display: grid; gap: 12px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 8px; }
.faq-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; transition: border-color .2s, color .2s, box-shadow .2s; }
.faq-nav a:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 8px 20px -12px rgba(8,149,184,.6); }
.faq-nav span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 99px; background: var(--navy); color: var(--lime); font-family: var(--display); font-size: 12px; }
.faq-group { scroll-margin-top: 90px; }
.faq-cat { margin: 44px 0 0; font-size: 20px; display: flex; align-items: center; gap: 12px; }
.faq-cat::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(var(--brand), var(--lime)); }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font-weight: 900; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--display); color: var(--brand); margin-right: 12px; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0; padding: 0 24px 22px 50px; }

/* ---------- 会社情報・相談 ---------- */
.mission { font-weight: 900; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.35; color: var(--ink); margin: 0 0 20px; }
.company-table table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.company-table th, .company-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 8em; color: var(--muted); font-weight: 700; font-size: 14px; background: var(--bg-soft); }
.company-table td { color: var(--ink); font-weight: 700; }
.booking-card { border-radius: 26px; padding: 38px; background: var(--navy); color: #d6ddee; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.booking-card h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); margin: 8px 0 14px; line-height: 1.35; }
.booking-card .btn { margin-top: 12px; background: var(--lime); color: var(--navy); }
.booking-card .small-note { color: #aab4cc; }
.booking-card .text-link { color: var(--lime); }
.booking-kicker { font-family: var(--mono); font-weight: 600; letter-spacing: .2em; color: var(--lime); margin: 0; font-size: 13px; }
.booking-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(25,195,230,.35); box-shadow: 0 0 0 40px rgba(25,195,230,.06); }
/* 相談ページ（スマホ・幅600px以下）: 予約ボタン（予約カレンダーを開く）を最初の画面に入れる（390×844・375×667・360×740 で確認）。
   見出し部分の上下の余白と、予約カードの余白を詰め、カードの中ではボタンを説明文より前に出す（読み上げ・Tab の順は変わらない）。
   PC・タブレット（幅601px以上）は変えない */
@media (max-width: 600px) {
  .page-head--contact { padding: 100px 0 28px; }
  /* 見出し「無料の導入相談（30分）」を1行に収める（2行だと予約ボタンが最初の画面の下へ押し出される）。従来の34pxを上限に、画面幅に合わせて小さくする（360px幅で約28px・390px幅で約30px・414px幅で約32px） */
  .page-head--contact .page-title { margin-top: 10px; font-size: min(34px, calc((100vw - var(--gutter) * 2) / 11.8)); }
  .page-head--contact .section-lead { margin-top: 12px; }
  .contact-booking { padding-top: 24px; }
  .contact-booking .booking-card { display: flex; flex-direction: column; padding: 24px 22px; }
  .contact-booking .booking-card h2 { margin: 6px 0 0; }
  .contact-booking .booking-card .btn { order: 1; margin-top: 18px; }
  .contact-booking .booking-card > p:not(.booking-kicker) { order: 2; margin: 14px 0 0; }
  .contact-booking .booking-card > p.small-note { margin-top: 8px; } /* 上の行（p:not(.booking-kicker)）と同じ強さにして、後に書いたこちらを効かせる */
}

/* ---------- 汎用カード・注記（損益計算ページ） ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: var(--surface); box-shadow: var(--shadow-sm); }
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p { margin: 0; }
.notice { border-radius: 22px; padding: 28px 30px; background: var(--bg-tint); border: 1px solid rgba(8,149,184,.25); color: var(--ink); font-weight: 700; }
.notice a { color: var(--brand); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- サービス紹介動画（トップ・ハヤクスルLP。functions.php の ctc_video_section()・assets/js/video.js） ----------
   押すまではサイト内のサムネイル画像だけ（YouTube へは通信しない）。16:9 の箱を先に確保するので、画像の読み込み・iframe への差し替えでレイアウトは動かない。
   再生ボタンは、サムネイル（thumb-a）の中央やや下＝進捗バー（灰色の目盛り）の上に置く。見出し2行目と下のティールの帯のちょうど間（高さ63%）で、
   文字・「？」・帯の文字には、どの幅でも重ならない（画像の画素で検算: tools/v904-resume-playfit.mjs・実画面: tools/v904-resume-verify.mjs）。
   覆うのは目盛りの図だけ。箱が小さいときはボタンも小さく（箱の幅の8%・最小28px）、箱の幅400px未満は白い縁を3pxに */
.video-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.video-grid .section-title { font-size: clamp(30px, 3.5vw, 52px); }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin: 24px 0 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.video-meta .ext-icon { display: inline-block; width: .8em; height: .8em; margin-left: .3em; vertical-align: -.02em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; } /* 新しいタブで開く印（「↗」は和文フォントで斜線に見えるため図にした） */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; background: var(--bg-soft); box-shadow: var(--shadow-lg); container-type: inline-size; }
.video-embed.is-playing { background: #000; } /* 再生を押してから YouTube の画面が出るまでの間 */
.video-facade { position: absolute; inset: 0; display: block; border-radius: inherit; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; }
.video-facade picture, .video-facade img { display: block; width: 100%; height: 100%; }
.video-facade img { object-fit: cover; transition: transform .6s var(--ease-out); }
.video-facade:hover img { transform: scale(1.015); }
/* フォーカスリング: 箱の外側に出す（箱の角丸で切れないよう、リンク自体の outline。サイト共通のティール 3px） */
.video-facade:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.video-play { position: absolute; left: 50%; top: 63%; transform: translate(-50%, -50%); display: block; pointer-events: none; } /* 位置の基準は丸（再生時間は丸の右に出す） */
.video-play-icon { position: relative; display: block; width: clamp(28px, 8cqw, 72px); aspect-ratio: 1; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 4px rgba(255, 255, 255, .92), 0 14px 30px -10px rgba(11, 21, 48, .65); transition: transform .25s var(--ease-out), background .25s; }
.video-play-icon::before { content: ""; position: absolute; left: 39%; top: 30%; width: 32%; height: 40%; background: var(--lime); clip-path: polygon(0 0, 100% 50%, 0 100%); } /* ライムは塗りのみ */
.video-facade:hover .video-play-icon, .video-facade:focus-visible .video-play-icon { transform: scale(1.06); background: var(--brand); }
.video-play-time { display: none; position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .08em; line-height: 1.6; box-shadow: 0 6px 16px -8px rgba(11, 21, 48, .5); }
@container (min-width: 520px) { .video-play-time { display: block; } } /* 小さい表示では再生時間を省く（左の文の「1分27秒」で分かる） */
@container (max-width: 399px) { .video-play-icon { box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 10px 22px -10px rgba(11, 21, 48, .65); } .video-facade:hover .video-play-icon, .video-facade:focus-visible .video-play-icon { transform: none; } } /* 小さい表示では白い縁を細く、押す・フォーカス時の拡大もしない（色の変化のみ）。見出しと帯の間の余白を残す */
.video-embed .video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; background: #000; }
@media (max-width: 900px) { .video-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .video-embed { border-radius: 14px; } .video-meta { margin-top: 18px; } }
@media (prefers-reduced-motion: reduce) { .video-facade:hover img { transform: none; } .video-facade:hover .video-play-icon, .video-facade:focus-visible .video-play-icon { transform: none; } }

/* ---------- CTA ---------- */
.cta-band { background: var(--navy); color: #d6ddee; padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 80% at 90% 50%, rgba(25,195,230,.22), transparent 70%), radial-gradient(30% 60% at 0% 100%, rgba(200,245,60,.14), transparent 70%); }
.cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: end; }
.cta-band .eyebrow { color: var(--lime); }
.cta-title { color: #fff; font-weight: 900; font-size: clamp(28px, 4vw, 56px); line-height: 1.2; margin: 16px 0 14px; }
.cta-band p { margin: 0; }
.cta-actions { display: grid; justify-items: start; gap: 10px; }
.cta-actions small { color: #aab4cc; }
/* 損益計算ページの帯: 見出し「取引履歴の整理からご相談ください。」を「取引履歴の整理から／ご相談ください。」で改行させる。
   見出しは motion.js が1文字ずつに分けるため日本語の改行ルールが効かず、幅しだいで「…くださ／い。」と1文字だけ残る。1行9文字（1文字＝1.02em）の幅に絞る */
.cta-band--profit .cta-title { max-width: 9.7em; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- フッター ---------- */
.site-footer { background: #070d20; color: #aab4cc; padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 52px; width: auto; }
.footer-addr { margin: 18px 0 0; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer nav a { color: #d6ddee; text-decoration: none; }
.site-footer nav a:hover { color: var(--lime); }
.footer-h { font-family: var(--mono); font-weight: 600; letter-spacing: .2em; color: var(--lime); margin: 0 0 6px; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; font-size: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
/* 幅761〜900px: SERVICE の列を広げ、COMPANY の列（「無料の導入相談」まで）を詰める。
   従来の 1.4fr／1fr／1fr では、幅845px未満で「暗号資産・NFT損益計算の代行」が「…の代／行」と1文字だけ次の行に落ちていた（820pxで確認） */
@media (min-width: 761px) and (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .8fr); } }

.skip-link:focus { position: fixed !important; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 10px; }

/* ---------- サービス名「ハヤクスル」 ---------- */
.service-name { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 12px; border-radius: 99px; background: var(--navy); color: #fff; margin-bottom: 16px; box-shadow: 0 10px 24px -14px rgba(11,21,48,.7); }
.service-name::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,245,60,.18); }
.service-name b { font-family: var(--jp); font-weight: 900; font-size: 17px; letter-spacing: .08em; }
.service-name small { font-size: 12px; font-weight: 700; color: #aab4cc; letter-spacing: .06em; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); }
.hero .service-name { display: flex; width: max-content; }

/* =========================================================
   画面下の固定CTA（スマホ・幅820px以下かつ高さ481px以上。仕様は sticky-cta/SPEC.md）
   - sticky-cta.js が .is-ready を付けたときだけ描画（JSなしは出さない＝ヘッダーの相談ボタンが常に残る）
   - ヒーローのCTAを過ぎたら .is-visible で下からせり上がり、CTA帯・フッター・仕組みの演出が見えたら引っ込む
   - position: fixed ＋ transform だけで出し入れする（本文のレイアウトは動かさない）
   - 高さ480px以下（横向きのスマホ・PCの大きな拡大表示）では出さない: 固定ヘッダーと合わせて画面の大半をふさぐため。
     入口はヘッダーの「無料の導入相談」（常に表示）が担う
   ========================================================= */
.sticky-cta { display: none; }
@media (max-width: 820px) and (min-height: 481px) {
  :root { --sticky-cta-h: 88px; } /* バーの高さ。sticky-cta.js が実測値で上書きする */
  .sticky-cta.is-ready {
    display: block; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 45; /* ヘッダー(50)・スキップリンク(100)より下、本文の演出(〜4)より上 */
    padding: 8px var(--gutter) 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); /* iPhoneのホームバーに掛からない */
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
    border-top: 1px solid var(--line);
    box-shadow: 0 -14px 32px -20px rgba(11, 21, 48, .35);
    /* 隠れている間は visibility: hidden。引っ込み始めた瞬間からは sticky-cta.js が inert にして Tab・読み上げの対象から外す */
    transform: translateY(calc(100% + 24px)); visibility: hidden;
    transition: transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .sticky-cta.is-ready.is-visible { transform: none; visibility: visible; transition: transform .45s var(--ease-out), visibility 0s; }
  .sticky-cta-inner { max-width: 560px; margin: 0 auto; }
  .sticky-cta-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 6px; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
  .sticky-cta-note::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
  .sticky-cta-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sticky-cta--b .sticky-cta-actions { grid-template-columns: minmax(0, 1fr) auto; } /* 主ボタンが残りの幅を広く取る */
  .sticky-cta--b .sticky-cta-actions > :only-child { grid-column: 1 / -1; }
  .sticky-cta .sticky-cta-btn { min-height: 48px; padding: 10px 14px; gap: 8px; justify-content: center; font-size: 15px; letter-spacing: .02em; }
  .sticky-cta .btn-primary.sticky-cta-btn { box-shadow: 0 10px 22px -12px rgba(11, 21, 48, .6); }
  .sticky-cta .btn-ghost.sticky-cta-btn { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink); font-size: 14px; }
  .sticky-cta-icon { flex: none; width: 18px; height: 18px; }
  .sticky-cta .btn-primary .sticky-cta-icon { color: var(--lime); }
  .sticky-cta .btn-ghost .sticky-cta-icon, .sticky-cta .btn-ghost .arrow { color: var(--brand); }
  .sticky-cta a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
  /* 主ボタンの走る光: バーは長く出たままなので常時ループさせず、せり上がったときに2回だけ（約4.5秒で止まる） */
  .sticky-cta .btn-primary::before { animation: none; }
  .sticky-cta.is-visible .btn-primary::before { animation: sheen 2.8s var(--ease-out) 2; }

  /* バーの後ろに、キーボード操作のフォーカス先やページ内リンクの着地点が隠れないように */
  html.sticky-cta-ready { scroll-padding-bottom: var(--sticky-cta-h); }

  /* バーが出ている間は、ヘッダーの相談ボタンを隠す（行き先の違う相談ボタンが上下に2つ並ばないように）。
     場所は残す（visibility）のでヘッダーは動かない。キーボードのフォーカスが当たっている間は隠さない */
  .site-nav .btn { transition: transform .25s var(--ease-out), box-shadow .3s, background .3s, color .3s, opacity .3s, visibility 0s; }
  html.sticky-cta-on .site-nav .btn:not(:focus) { opacity: 0; visibility: hidden; transition: transform .25s var(--ease-out), box-shadow .3s, background .3s, color .3s, opacity .3s, visibility 0s linear .3s; }
}
@media (max-width: 379px) { /* 幅の狭い端末: 飾りのアイコンを省いて文字を収める */
  .sticky-cta-icon { display: none; }
}
@media (max-width: 359px) {
  .sticky-cta .sticky-cta-btn { padding-inline: 10px; font-size: 14px; }
  .sticky-cta .btn-ghost.sticky-cta-btn { font-size: 13px; }
  .sticky-cta-note { letter-spacing: .02em; }
}
@media (prefers-reduced-motion: reduce) { /* 動きを減らす設定: スライドせずに出し入れする */
  .sticky-cta.is-ready, .sticky-cta.is-ready.is-visible { transition: none; }
}
@media print { .sticky-cta { display: none !important; } }
