/* ソラツム会計事務所（デモ）小さな会計事務所のホームページ */
/* 共通部品（TENKA LAB バー・ヘッダー・フッター・ボタン・選ぶボタン・結果の箱・よくある質問・案内の dialog・実際のお仕事では）は、デモ34 と同じクラス名と作り。色・角丸は決め直した */
:root {
  --c-base: #F6F8F7;
  --c-surface: #FFFFFF;
  --c-soft: #E9EFEE;
  --c-main: #203A55;
  --c-accent: #8FD0B4;
  --c-accent-hover: #B0DEC9;
  --c-text: #1A2430;
  --c-sub: #44505E;
  --c-line: #D3DCDF;

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-head: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;

  --pad-x: 16px;
  --gap-sec: 64px;
  --pad-card: 20px;

  --f-body: 17px;
  --f-note: 16px;
  --f-h1: 26px;
  --f-sub: 17px;
  --f-h2: 24px;
  --f-h3: 18px;
  --f-btn: 18px;
  --f-opt: 18px;
  --f-fig: 20px;
  --f-total: 36px;
  --f-row: 17px;
  --f-nav: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--f-body);
  line-height: 1.8;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  /* 日本語の文を語のまとまりで折り返す（対応しない端末はふつうの折り返し） */
  word-break: auto-phrase;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--c-main); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.inline-link { display: inline-block; padding: 13px 0; font-weight: 700; line-height: 1.6; }
button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--c-main); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad-x); }
.col { max-width: calc(880px + var(--pad-x) * 2); }
.nw { white-space: nowrap; }
/* 語のまとまり（折れる時はまとまりの前で折る） */
.ib { display: inline-block; }
svg { flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--c-main); }
.sec__title, .h1 { scroll-margin-top: 24px; }
p, li, dd { text-wrap: pretty; }

/* ---------- TENKA LAB バー（作品例・デモ 共通） ---------- */
.tl-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; padding: 8px 16px; background: #1B2A41; color: #FFFFFF;
  font-family: var(--font-body); font-size: 13px; line-height: 1.5; letter-spacing: .04em;
}
.tl-bar__text { margin: 0; }
.tl-bar strong { font-weight: 700; }
.tl-bar__back {
  flex: none; position: relative; color: #FFFFFF; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.tl-bar__back:hover { color: #FFFFFF; text-decoration-thickness: 2px; }
.tl-bar__back::before { content: ""; position: absolute; inset: -15px -8px; }
.tl-bar__back::after { content: "→"; margin-left: 4px; }
.tl-bar__back:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
@media (min-width: 768px) { .tl-bar { padding: 8px 32px; } }

/* ---------- ボタン ---------- */
/* 行動ボタン：若竹の面＋濃い 2px の枠＋濃い字＋矢印（色だけに頼らない） */
.btn-main {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; padding: 6px 20px; margin: 0;
  border: 2px solid var(--c-text); border-radius: 8px; background: var(--c-accent); color: var(--c-text);
  font-size: var(--f-btn); font-weight: 700; line-height: 1.3; letter-spacing: 0; text-align: center; text-decoration: none;
}
.btn-main:hover, .btn-main:active { background: var(--c-accent-hover); }
.btn-main svg { width: 24px; height: 24px; }
.btn-main__text { min-width: 0; }
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 0 20px; border: 2px solid var(--c-sub); border-radius: 8px;
  background: #FFFFFF; color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.3; text-align: center;
}
.btn-sub:hover, .btn-sub:active { background: var(--c-soft); }
.btn-sub svg { width: 20px; height: 20px; }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 64px; padding: 0 4px;
  border: 0; background: none; color: var(--c-main); font-size: var(--f-note); font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px;
}
.btn-text:hover { text-decoration-thickness: 2px; }

/* ---------- ヘッダー（メニューの開閉なし。貼り付けない） ---------- */
.hd { background: #FFFFFF; border-bottom: 1px solid var(--c-line); position: relative; z-index: 20; }
.hd__in { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
.hd__logo {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; min-height: 56px; min-width: 0;
  color: var(--c-main); text-decoration: none;
}
.hd__mark { width: 28px; height: 28px; color: var(--c-main); }
.hd__name { font-family: var(--font-body); font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; white-space: nowrap; }
.hd__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.hd__link {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--c-line); border-radius: 8px; background: #FFFFFF;
  color: var(--c-main); font-size: var(--f-nav); font-weight: 700; line-height: 1.4; letter-spacing: .02em; text-decoration: none;
}
.hd__link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* デモの帯（ヘッダーのすぐ下。ただの文） */
.demo-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 1em;
  min-height: 40px; margin: 0; padding: 8px 16px; background: var(--c-soft); color: var(--c-text);
  font-size: 14px; font-weight: 400; line-height: 1.5; text-align: center;
}
.demo-band strong { font-weight: 700; }

/* ---------- ブロック ---------- */
.sec { padding: var(--gap-sec) 0; }
.sec--band { background: var(--c-soft); }
.sec__title { font-family: var(--font-head); color: var(--c-main); font-size: var(--f-h2); font-weight: 700; line-height: 1.45; letter-spacing: .06em; }
.sec__lead { margin-top: 16px; color: var(--c-text); font-size: var(--f-body); line-height: 1.8; max-width: 36em; }
.sec__title + :not(.sec__lead), .sec__lead + * { margin-top: 32px; }
h3 { font-size: var(--f-h3); font-weight: 700; line-height: 1.5; letter-spacing: .06em; color: var(--c-text); }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; padding: var(--pad-card); }

/* ---------- ファーストビュー ---------- */
.hero { padding: 24px 0 64px; }
.hero__art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0 0 24px; border-radius: 8px; background: var(--c-soft); }
/* h1 は1行 12字。字間を .02em にして、360px（中身 328px）と 1024px〜 の左の列に1行ずつ収める */
.h1 { font-family: var(--font-head); color: var(--c-main); font-size: var(--f-h1); font-weight: 700; line-height: 1.5; letter-spacing: .02em; }
.hero__lead { margin-top: 16px; font-size: var(--f-sub); line-height: 1.8; max-width: 36em; }
.hero__act { margin-top: 32px; }
.hero__note { margin-top: 8px; color: var(--c-sub); font-size: var(--f-note); line-height: 1.7; }
.hero__feat { margin-top: 40px; }
.feat { display: grid; gap: 16px; }
.feat__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.feat__icon {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--c-soft); color: var(--c-main);
}
.feat__body { min-width: 0; }
.feat__body p { margin-top: 4px; font-size: var(--f-body); line-height: 1.8; max-width: 36em; }

/* ---------- サービス ---------- */
.svc { display: grid; gap: 16px; }
.svc__item { border-top: 4px solid var(--c-main); min-width: 0; }
.svc__icon {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--c-soft); color: var(--c-main);
}
.svc__item h3 { margin-top: 12px; }
.svc__item p { margin-top: 4px; font-size: var(--f-body); line-height: 1.8; max-width: 36em; }

/* ---------- 料金の目安を出す ---------- */
.price__picks { display: grid; gap: 32px; min-width: 0; }
.pick { border: 0; padding: 0; min-width: 0; }
.pick__legend { padding: 0; margin-bottom: 12px; font-size: var(--f-h3); font-weight: 700; line-height: 1.5; letter-spacing: .06em; color: var(--c-text); }
.pick__opts { display: grid; gap: 8px; }
.pick__opts--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pick__note { margin-top: 8px; color: var(--c-sub); font-size: var(--f-note); line-height: 1.7; max-width: 36em; }
.opt { position: relative; display: block; min-width: 0; }
/* 見えないが残す（キーボードと読み上げで使う）。ボタン全体が押せる面 */
.opt__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.opt__body {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: center;
  min-height: 56px; height: 100%; padding: 12px 16px; border: 2px solid var(--c-sub); border-radius: 8px;
  background: var(--c-surface); color: var(--c-text);
}
.pick__opts--2 .opt__body { column-gap: 8px; padding: 12px; }
.pick__opts--desc .opt__body { min-height: 72px; row-gap: 2px; }
.opt__mark {
  grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: 2px solid var(--c-sub); border-radius: 50%; background: #FFFFFF; color: var(--c-main);
}
.pick__opts--desc .opt__mark { grid-row: 1 / span 2; }
.opt__mark svg { display: none; width: 16px; height: 16px; }
.opt__name { grid-column: 2; grid-row: 1; font-size: var(--f-opt); font-weight: 700; line-height: 1.4; letter-spacing: 0; min-width: 0; }
.opt__desc { grid-column: 2; grid-row: 2; font-size: var(--f-note); line-height: 1.5; letter-spacing: 0; min-width: 0; }
.opt__input:hover + .opt__body { background: var(--c-soft); }
.opt__input:checked + .opt__body { background: var(--c-main); border-color: var(--c-main); color: #FFFFFF; }
.opt__input:checked + .opt__body .opt__mark { border-color: #FFFFFF; }
.opt__input:checked + .opt__body .opt__mark svg { display: block; }
.opt__input:focus-visible + .opt__body { outline: 3px solid var(--c-main); outline-offset: 3px; }

.result-col { margin-top: 32px; min-width: 0; }
.result { padding: 20px; background: var(--c-surface); border: 2px solid var(--c-main); border-radius: 8px; }
.result__label { color: var(--c-sub); font-size: var(--f-note); font-weight: 700; line-height: 1.6; }
.result__total { margin-top: 8px; color: var(--c-text); font-weight: 700; line-height: 1.15; }
.result__tlabel { display: block; font-size: 17px; line-height: 1.5; }
#r-annual { display: inline-block; margin-top: 4px; font-size: var(--f-total); letter-spacing: 0; }
.result__yen { font-size: .6em; margin-left: 2px; }
/* 3つの金額：〜767px と 1024px〜 は 3行の横並び（左に名・右に金額） */
.figs { margin-top: 16px; padding: 12px 16px; background: var(--c-soft); border-radius: 8px; display: grid; gap: 8px; }
.figs > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; }
.figs dt { font-size: var(--f-note); font-weight: 400; line-height: 1.5; }
.figs dd { margin-left: auto; font-size: var(--f-fig); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.result__h { margin-top: 24px; }
.result__dl { margin-top: 8px; font-size: var(--f-row); line-height: 1.6; }
.result__dl > div { padding: 12px 0; border-top: 1px solid var(--c-line); }
.result__dl dt { font-weight: 400; }
.result__dl dd { margin-top: 2px; font-weight: 700; text-align: right; letter-spacing: 0; }
.result__sub { display: block; color: var(--c-sub); font-size: var(--f-note); line-height: 1.6; }
.result__calc {
  margin-top: 4px; padding-top: 16px; border-top: 2px solid var(--c-main);
  color: var(--c-sub); font-size: var(--f-note); line-height: 1.7; letter-spacing: 0;
}
/* 結果の箱のすぐ下：正式なお見積もりの注記 */
.result__note {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 16px;
  background: var(--c-soft); border-radius: 8px; color: var(--c-text);
  font-size: var(--f-body); font-weight: 700; line-height: 1.7;
}
.result__note svg { width: 24px; height: 24px; margin-top: .25em; color: var(--c-main); }
.result__note2 { margin-top: 8px; color: var(--c-sub); font-size: var(--f-note); line-height: 1.7; }
.price__cta { margin-top: 16px; }

/* ---------- ご相談の流れ ---------- */
.flow { display: grid; gap: 16px; }
.flow__item { position: relative; min-width: 0; }
.flow__num {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-main); color: #FFFFFF; font-size: 18px; font-weight: 700; line-height: 1;
}
.flow__item h3 { margin-top: 12px; }
.flow__item p { margin-top: 4px; font-size: var(--f-body); line-height: 1.8; max-width: 36em; }
/* 〜767px：カードの間に下向きの小さな三角（飾り） */
@media (max-width: 767px) {
  .flow__item:not(:last-child)::after {
    content: ""; position: absolute; left: 50%; bottom: -13px; margin-left: -7px;
    border-style: solid; border-width: 9px 7px 0 7px; border-color: var(--c-sub) transparent transparent transparent;
  }
}

/* ---------- よくある質問 ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; }
.faq__q {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 16px 52px 16px 16px;
  border-radius: 8px; cursor: pointer; list-style: none;
  font-size: var(--f-h3); font-weight: 700; line-height: 1.5; color: var(--c-text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--c-soft); }
.faq__q:focus-visible { outline-offset: -3px; }
.faq__mark {
  display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px;
  border-radius: 50%; background: var(--c-soft); color: var(--c-main); font-size: 16px; font-weight: 700; line-height: 1;
}
.faq__qt { min-width: 0; }
.faq__chev { position: absolute; right: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px; color: var(--c-main); transition: transform .15s; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__item[open] > .faq__q { border-radius: 8px 8px 0 0; }
.faq__a { padding: 0 16px 16px 16px; }
.faq__a p { font-size: var(--f-body); line-height: 1.8; max-width: 36em; }
.faq__a .faq__link { margin-top: 0; }

/* ---------- ご相談・お問い合わせ ---------- */
.contact { max-width: 720px; margin: 0 auto; }
/* 見出しのすぐ下の説明は、ほかの区切りより近い 16px にする（見出しの直後の 32px の指定より強くする） */
.contact .contact__text { margin-top: 16px; font-size: var(--f-body); line-height: 1.8; }
.contact__sum { margin-top: 16px; font-size: var(--f-note); font-weight: 700; line-height: 1.7; }
.contact__total { margin-top: 4px; font-size: var(--f-body); line-height: 1.5; }
.contact__yen { font-size: 24px; font-weight: 700; letter-spacing: 0; margin: 0 2px; }
.contact__act { margin-top: 24px; }
.contact__link { margin-top: 8px; }

/* ---------- 案内の dialog ---------- */
.ask-dialog {
  width: min(calc(100% - 32px), 520px); max-width: none; max-height: calc(100% - 32px); overflow-y: auto;
  padding: 24px; border: 0; border-radius: 12px; background: #FFFFFF; color: var(--c-text);
}
.ask-dialog::backdrop { background: rgba(26, 36, 48, .55); }
.ask-dialog__head { display: flex; align-items: center; gap: 8px; color: var(--c-main); }
.ask-dialog__title { font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--c-main); letter-spacing: .06em; }
.ask-dialog__text { margin-top: 12px; font-size: var(--f-body); font-weight: 700; line-height: 1.7; }
.ask-dialog__note { margin-top: 8px; color: var(--c-sub); font-size: var(--f-note); line-height: 1.7; }
.ask-dialog__sum { margin-top: 16px; padding: 16px; background: var(--c-soft); border-radius: 8px; }
.ask-dialog__label { color: var(--c-sub); font-size: var(--f-note); font-weight: 700; line-height: 1.6; }
.ask-dialog__line { margin-top: 4px; font-size: var(--f-body); font-weight: 700; line-height: 1.6; }
.ask-dialog__act { margin-top: 24px; }

/* ---------- 実際のお仕事では（TENKA LAB の層） ---------- */
.sec--lab { border-top: 1px dashed var(--c-sub); }
.lab-tag {
  display: inline-flex; align-items: center; gap: .3em; height: 24px; padding: 0 8px; border-radius: 4px;
  background: var(--c-text); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1;
}
.lab-title { margin-top: 12px; font-family: var(--font-head); font-size: var(--f-h2); font-weight: 700; line-height: 1.45; color: var(--c-main); letter-spacing: .06em; }
.lab-lead { margin-top: 16px; max-width: 36em; font-size: var(--f-body); }
.work-3 { display: grid; gap: 16px; margin-top: 32px; }
.work-3 > li { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 8px; padding: 24px; min-width: 0; }
.work-3 > li > svg { color: var(--c-main); }
.work-3 h3 { margin-top: 8px; }
.work-3 ul, .work-check ul { margin-top: 8px; }
.work-3 ul li, .work-check li { position: relative; padding-left: 18px; font-size: var(--f-body); line-height: 1.7; }
.work-3 ul li + li, .work-check li + li { margin-top: 8px; }
.work-3 ul li::before, .work-check li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-main); }
.work-check { margin-top: 16px; padding: 16px; background: #FFFFFF; border: 1px dashed var(--c-sub); border-radius: 8px; }
.work-check__note { margin-top: 12px; color: var(--c-sub); font-size: var(--f-note); line-height: 1.7; }
.lab-more { margin-top: 16px; }
.lab-more .btn-text { padding: 0; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--c-main); color: #FFFFFF; font-size: 16px; line-height: 1.8;
  padding: 48px 16px; text-align: center;
}
.site-footer p + p { margin-top: 16px; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
/* 面は若竹・文字は墨紺。鉄紺の面との差 6.59 */
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 360px; min-height: 52px;
  margin: 0 auto; border: 2px solid var(--c-accent); border-radius: 8px; background: var(--c-accent); color: var(--c-text);
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.btn:hover, .btn:active { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: var(--c-text); }
.copy { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq__chev { transition: none; }
}

@media (forced-colors: active) {
  .opt__input:checked + .opt__body { border: 4px solid Highlight; }
  .btn-main { border-color: ButtonText; }
}

/* ---------- 768px 以上 ---------- */
@media (min-width: 768px) {
  :root { --pad-x: 32px; --gap-sec: 96px; --pad-card: 24px;
    --f-h1: 34px; --f-sub: 18px; --f-h2: 28px; --f-fig: 22px; --f-total: 40px; }
  .hd__in { padding-bottom: 12px; }
  .hd__list { display: flex; gap: 8px; }
  .hd__list > li { flex: 1 1 0; min-width: 0; }
  .btn-main { display: inline-flex; width: auto; min-width: 320px; padding: 6px 32px; }
  .hero__art { width: 560px; max-width: 100%; aspect-ratio: 16 / 9; margin: 0 auto 32px; }
  .feat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .feat__item { grid-template-columns: minmax(0, 1fr); row-gap: 16px; align-content: start; }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 3つの金額：3列の縦組み（上に名・下に金額） */
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .figs > div { display: block; }
  .figs dd { margin-left: 0; margin-top: 2px; }
  .result__dl > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; }
  .result__dl dd { margin-top: 0; margin-left: auto; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq__a { padding: 0 16px 16px 60px; }
  .ask-dialog { padding: 32px; }
  .ask-dialog__act { display: flex; justify-content: flex-end; }
  .btn-sub { width: auto; min-width: 160px; }
  .work-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-3 > li { padding: 24px 20px; }
}

/* ---------- 1024px 以上：2列は ファーストビューと 料金の目安 の2か所だけ ---------- */
@media (min-width: 1024px) {
  :root { --f-body: 18px; --f-h1: 40px; --f-h2: 30px; --f-h3: 20px; --f-total: 44px; }
  .hd__in { flex-direction: row; align-items: center; justify-content: space-between; min-height: 72px; padding-bottom: 0; gap: 24px; }
  .hd__logo { align-self: center; }
  .hd__list > li { flex: none; }
  .hd__link { border: 0; background: none; padding: 0 12px; }
  .hero { padding: 64px 0 96px; }
  .hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 480px; column-gap: 64px; align-items: center; }
  .hero__art { grid-column: 2; grid-row: 1; width: 480px; height: 360px; aspect-ratio: auto; margin: 0; }
  .hero__text { grid-column: 1; grid-row: 1; min-width: 0; }
  .hero__feat { grid-column: 1 / -1; grid-row: 2; margin-top: 64px; }
  .sec__lead + * { margin-top: 40px; }
  .svc { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .price { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 40px; align-items: start; }
  .result-col { margin-top: 0; position: sticky; top: 24px; }
  .result { padding: 28px; }
  /* 400px の列では 3つの金額を横並びの3行に戻す */
  .figs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .figs > div { display: flex; }
  .figs dd { margin-left: auto; margin-top: 0; }
  .price__cta .btn-main { width: 100%; min-width: 0; }
  /* 結果の列を 1 画面に収める（余白と内訳の行の上下を詰める） */
  .result { padding: 24px 28px; }
  .result__total { margin-top: 4px; }
  .figs { margin-top: 12px; padding: 8px 16px; gap: 2px; }
  .result__h { margin-top: 16px; }
  .result__dl { margin-top: 4px; }
  .result__dl > div { padding: 8px 0; }
  .result__calc { padding-top: 12px; }
  .result__note { margin-top: 12px; padding: 12px 16px; }
  .price__cta { margin-top: 12px; }
}
/* 1200px〜：流れを4列にする（1024〜1199px は1枚の中身が 172px と狭く、文が2〜3字ごとに折れるので 2列×2段のまま） */
@media (min-width: 1200px) {
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  /* 番号の丸どうしを 2px の線でつなぐ（飾り）。線は列全体に1本引き、丸を線の上に重ねる（はみ出さない） */
  .flow { position: relative; }
  .flow::before {
    content: ""; position: absolute; z-index: 1; height: 2px; background: #A9BCC9;
    top: calc(1px + var(--pad-card) + 19px); left: calc(1px + var(--pad-card) + 40px);
    right: calc((100% - 72px) / 4 - 1px - var(--pad-card));
  }
  .flow__num { position: relative; z-index: 2; }
}
/* 1024〜1199px：ファーストビューの絵を 400×300 にして、h1 の1行（12字×40px）を左の列に収める */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 48px; }
  .hero__art { width: 400px; height: 300px; }
}
/* 画面の高さが結果の列（約 890px）＋上下の余白より低い時は貼り付けない */
@media (min-width: 1024px) and (max-height: 939px) {
  .result-col { position: static; }
}

/* ---------- 印刷（崩れない程度） ---------- */
@media print {
  .tl-bar__back, .hero__art, .btn, .lab-more, .ask-dialog, .btn-main { display: none !important; }
  body { background: none; color: #1A2430; }
  .sec--band, .site-footer, .tl-bar, .demo-band { background: none !important; color: #1A2430 !important; }
  .result-col { position: static !important; }
  .work-3 > li, .card, .result { break-inside: avoid; }
}
