/* 助成金対象診断® — ネイビー（信頼）/ 白（読みやすさ）/ 落ち着いたグリーン（行動）/ ゴールド（価値・線と印だけ）
   このファイルは build.py が src/_base.css + src/_tail.css から組み立てる。直すときは src/ 側を直す */
:root {
  --ink: #13233F;
  --ai: #143A6B;
  --ai-deep: #0E2A4F;
  --sora: #EAF0F8;
  --paper: #F5F7FA;
  --card: #ffffff;
  --line: #DCE2EA;
  --kin: #B8932A;
  --kin-light: #E8C766;
  --kin-pale: #F7F0DC;
  --cta: #2E7D4F;
  --cta-deep: #24704A;
  --cta-pale: #E8F3EC;
  --muted: #55627A;
  --wrap: 1120px;
  --measure: 40em;
  --gutter: clamp(16px, 4.5vw, 40px);
  --gap: clamp(64px, 10vw, 120px);
  --head: "Zen Kaku Gothic Antique", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono: var(--body);
  --42ws-theme: #143A6B;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.9; color: var(--ink); background: #fff; overflow-wrap: anywhere; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 900; line-height: 1.4; letter-spacing: .02em; }
a { color: var(--ai); text-underline-offset: .22em; transition: color .16s, background-color .16s, border-color .16s; }
a:hover { color: var(--cta); }
button { font: inherit; color: inherit; }
button:not(:disabled), summary, label.pick { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--kin); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reg, h1 sup, h2 sup, h3 sup, .brand__name sup { font-size: .55em; vertical-align: super; line-height: 0; font-weight: 500; }
.ln { display: inline-block; }

/* 紹介コードの有無で出し分け（js/ref.js が描画前に html.has-ref を立てる） */
[data-ref="with"] { display: none !important; }
.has-ref [data-ref="with"] { display: revert !important; }
.has-ref [data-ref="without"] { display: none !important; }

/* ヘッダー */
.site-head { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); line-height: 1.3; padding-block: 8px; }
.brand:hover { color: var(--ai); }
.brand__logo { display: block; height: 30px; width: auto; }
.brand__name { font-family: var(--head); font-weight: 900; font-size: 16px; padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.site-head .back { font-size: 14px; font-weight: 700; white-space: nowrap; }
@media (min-width: 860px) { .brand__logo { height: 38px; } .brand__name { font-size: 19px; } }
@media (max-width: 380px) { .brand { gap: 8px; } .brand__logo { height: 26px; } .brand__name { font-size: 14px; padding-left: 8px; } }

/* ボタン（行動＝グリーン。押すと状態が変わるものと、主導線だけ） */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 58px; padding: 12px 28px;
  font-family: var(--head); font-weight: 700; font-size: 18px; line-height: 1.4; text-align: center; text-decoration: none;
  color: #fff; background: var(--cta); border: 2px solid var(--cta); border-radius: 8px;
  box-shadow: 0 4px 0 var(--cta-deep);
  transition: background-color .16s, border-color .16s, transform .12s, box-shadow .12s, color .16s;
}
.btn::after { content: "→"; transition: transform .16s; }
.btn:hover { color: #fff; background: var(--cta-deep); border-color: var(--cta-deep); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cta-deep); }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn--small:active { transform: none; }
.btn--line { color: var(--ai); background: #fff; border-color: var(--ai); box-shadow: none; }
.btn--line:hover { color: #fff; background: var(--ai); border-color: var(--ai); }
.btn--line:active { transform: translateY(1px); box-shadow: none; }
.btn--icon::after, .btn--line-app::after { content: none; }
.btn--line-app { color: #fff; background: #06C755; border-color: #06C755; box-shadow: none; }
.btn--line-app:hover { color: #fff; background: #05A848; border-color: #05A848; }

/* 紹介コード（申し込みフォームの STEP6 に貼ってもらう） */
.refbox { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--kin); border-left-width: 4px; border-radius: 6px; max-width: 32em; }
.refbox__label { font-size: 12px; color: var(--muted); }
.refbox b { font-size: 17px; letter-spacing: .06em; }
.refbox small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.6; }
.refbox__copy { min-height: 40px; padding: 4px 14px; border: 1px solid var(--ai); border-radius: 6px; background: #fff; color: var(--ai); font-size: 13px; font-weight: 700; transition: background-color .16s, color .16s; }
.refbox__copy:hover { background: var(--ai); color: #fff; }

/* 共通の小物 */
.linkbtn { min-height: 44px; padding: 8px 4px; background: none; border: 0; color: var(--ai); text-decoration: underline; text-underline-offset: .2em; font-size: 15px; transition: color .16s; }
.linkbtn:hover { color: var(--cta); }

/* ブランドムービー（#movie。#notice の直後） */
.brandmovie { background: linear-gradient(180deg, #0E2A4F 0%, #081a33 100%); color: #fff; padding: 64px 0 72px; }
.brandmovie__inner { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.brandmovie__eyebrow { margin: 0 0 10px; font-size: .9rem; color: rgba(255,255,255,.75); }
.brandmovie__title { margin: 0 0 24px; font-family: "Zen Kaku Gothic Antique", sans-serif; font-weight: 900;
  font-size: clamp(1.45rem, 4.6vw, 2.2rem); line-height: 1.4; color: #fff; }
.brandmovie__title span { display: inline-block; }
.brandmovie__frame { max-width: 360px; margin: 0 auto; aspect-ratio: 9 / 16; background: #081a33;
  border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.brandmovie__frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #081a33; }
.brandmovie__cta { margin-top: 28px; text-align: center; }
.brandmovie__info { margin: 24px auto 0; max-width: 760px; padding: 18px 20px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .95rem; line-height: 1.8; }
.brandmovie__info p { margin: 0; }
.brandmovie__info b { color: #fff; }
.brandmovie__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.brandmovie__links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; min-height: 44px;
  display: inline-flex; align-items: center; }
.brandmovie__note { margin-top: 6px; font-size: .85rem; color: rgba(255,255,255,.72); }
.brandmovie__script { margin: 16px auto 0; max-width: 760px; font-size: .9rem; color: rgba(255,255,255,.8); }
.brandmovie__script summary { cursor: pointer; font-weight: 700; color: #fff; min-height: 44px; display: flex; align-items: center; }
.brandmovie__script p { margin: 6px 0 0; line-height: 1.9; }
@media (min-width: 860px) {
  .brandmovie { padding: 88px 0 96px; }
  .brandmovie__frame { max-width: 960px; aspect-ratio: 16 / 9; }
  .brandmovie__title { text-align: center; }
  .brandmovie__eyebrow { text-align: center; }
}

/* 注意事項の説明動画（#apply の中、#precheck の直前） */
.navideo { margin: 24px 0 0; padding: 20px; background: #fff; border-radius: 6px; }
.navideo__title { font-size: 1.15rem; font-weight: 700; color: var(--ink, #13233F); margin: 0 0 6px; }
.navideo__lead { color: var(--muted, #55627A); margin: 0 0 16px; font-size: .95rem; }
.navideo__frame { max-width: 340px; margin: 0 auto; aspect-ratio: 9 / 16; background: #fff;
  border: 1px solid var(--line, #DCE2EA); border-radius: 12px; overflow: hidden; }
.navideo__frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.navideo__script { margin-top: 14px; font-size: .9rem; color: var(--muted, #55627A); }
.navideo__script summary { cursor: pointer; color: var(--ai, #143A6B); font-weight: 700; min-height: 44px;
  display: flex; align-items: center; }
.navideo__script p { margin: 6px 0 0; line-height: 1.8; }
@media (min-width: 860px) {
  .navideo__frame { max-width: 760px; aspect-ratio: 16 / 9; }
}
