/* 税理士法人明星 — 共通スタイル
   色・文字は :root の変数でまとめて変えられます。 */

:root {
  --paper: #f5f2ea;
  --paper-2: #ebe5d6;
  --white: #fffdf8;
  --ink: #1b2328;
  --ink-soft: #4d575d;
  --line: #d5cdbb;
  /* ロゴの色：紺 #002A68・黄 #F6DD39 */
  --navy: #002a68;
  --navy-2: #0b3c86;
  --deep: #001f4d;
  --sun: #f6dd39;
  --gold: #a8850c;       /* 明るい背景の上で使う黄（文字が読める濃さ） */
  --gold-light: #f6dd39; /* 暗い背景の上で使う黄 */
  --tbc: #b3261e;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  font-feature-settings: "palt" 0;
  -webkit-text-size-adjust: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--mincho); font-weight: 700; line-height: 1.45; letter-spacing: .06em; margin: 0; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gutter) * 2, 820px); margin-inline: auto; }
.sp-only { display: none; }
@media (max-width: 720px) { .sp-only { display: inline; } .pc-only { display: none; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 16px; }

/* 要確認の目印（先方確認が済んだら HTML から span ごと消す。全体を隠すなら body に .hide-tbc） */
.tbc {
  display: inline-block;
  margin-inline: .35em;
  padding: 0 .5em;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--tbc);
  font-family: var(--gothic);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .05em;
  vertical-align: .15em;
  white-space: nowrap;
  cursor: help;
}
.on-dark .tbc { color: #ff9b91; }
.hide-tbc .tbc { display: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 50px; height: auto; flex: none; }
.logo-text { display: grid; line-height: 1.2; }
.logo-ja { font-family: var(--mincho); font-weight: 700; font-size: 1.28rem; letter-spacing: .12em; }
.logo-ja small { font-size: .7em; letter-spacing: .1em; margin-right: .35em; }
.logo-en { font-size: .58rem; letter-spacing: .14em; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); font-size: .9rem; }
.nav a { text-decoration: none; position: relative; padding-block: 6px; white-space: nowrap; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; }

@media (max-width: 1040px) {
  .menu-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); cursor: pointer; border-radius: 2px;
  }
  .menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 40px; background: var(--paper); overflow-y: auto;
    font-size: 1.05rem; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .nav.open { visibility: visible; opacity: 1; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 24px; justify-content: center; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .8em;
  padding: .85em 1.6em; border: 1px solid var(--navy); border-radius: 2px;
  background: var(--navy); color: var(--white);
  font: inherit; font-weight: 700; letter-spacing: .08em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-small { padding: .55em 1.2em; font-size: .88rem; }
.btn-lg { padding: 1.05em 2.4em; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.btn-gold:hover { background: #ffe760; border-color: #ffe760; }
.on-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--navy); }
.arrow::after { content: "→"; display: inline-block; margin-left: .7em; font-family: var(--gothic); transition: transform .2s; }
a:hover > .arrow::after, .arrow:hover::after { transform: translateX(4px); }
.text-link { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: .3em; }

/* ---------- 仮画像 ---------- */
.ph {
  position: relative; margin: 0; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(0,42,104,.07) 11px 12px),
    var(--paper-2);
  border: 1px solid var(--line);
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: .3em .9em; background: var(--white); border: 1px solid var(--line);
  font-size: .75rem; color: var(--ink-soft); letter-spacing: .08em; white-space: nowrap;
}

/* ---------- トップ：ヒーロー ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-copy { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.hero-title {
  writing-mode: vertical-rl;
  font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  line-height: 1.6; letter-spacing: .18em;
  font-weight: 700;
}
.hero-title span { display: block; }
.hero-title span + span { padding-top: 2.2em; }
.hero-title em { font-style: normal; color: var(--gold); }
.hero-side { padding-top: 8px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; font-size: .82rem; letter-spacing: .2em; color: var(--ink-soft); margin-bottom: 28px; }
.hero-kicker::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.hero-lead { font-size: 1rem; line-height: 2.1; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; }
.hero-visual .ph { aspect-ratio: 5 / 6; }
.hero-visual::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold); z-index: -1;
}
/* ロゴの太陽を大きく敷く装飾 */
.sun { position: absolute; aspect-ratio: 1; border-radius: 50%; background: var(--sun); pointer-events: none; }
.hero-visual .sun { right: -9%; top: -9%; width: 64%; z-index: -2; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero-title { writing-mode: horizontal-tb; font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: .08em; line-height: 1.5; }
  .hero-title span + span { padding-top: 0; }
  .hero-visual { margin-right: 22px; }
  .hero-visual .ph { aspect-ratio: 4 / 3; }
  .hero-visual .sun { right: -52px; top: -56px; width: 170px; }
}
@media (max-width: 480px) {
  .logo-en { display: none; }
  .logo-ja { font-size: 1.2rem; }
}

/* ---------- 3事務所の電話帯 ---------- */
.office-strip { background: var(--deep); color: var(--white); }
.office-strip-inner { display: grid; grid-template-columns: auto repeat(3, 1fr); }
.office-strip-head {
  display: grid; align-content: center; padding: 22px 32px 22px 0; border-right: 1px solid rgba(255,255,255,.15);
  font-size: .8rem; letter-spacing: .12em; color: var(--gold-light);
}
.office-strip-head strong { font-family: var(--mincho); font-size: 1.05rem; color: var(--white); letter-spacing: .1em; }
.office-tel { display: grid; gap: 2px; padding: 20px 28px; border-right: 1px solid rgba(255,255,255,.15); text-decoration: none; transition: background .2s; }
.office-tel:last-child { border-right: 0; }
.office-tel:hover { background: rgba(255,255,255,.05); }
.office-tel span { font-size: .8rem; color: rgba(255,255,255,.7); letter-spacing: .1em; }
.office-tel strong { font-family: var(--mincho); font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .office-strip-inner { grid-template-columns: 1fr; }
  .office-strip-head { padding: 18px 0 10px; border-right: 0; }
  .office-tel { grid-template-columns: 1fr auto; align-items: center; padding: 14px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.15); }
}

/* ---------- セクション ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section-white { background: var(--white); }
.section-dark { background: var(--deep); color: var(--white); }
.section-dark + .section { border-top: 0; }

/* 見出し：左に縦書きの見出し、右に本文（PC） */
.split { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.split-head { position: relative; }
.split-head .sh-inner { position: sticky; top: calc(var(--header-h) + 32px); display: flex; gap: 18px; }
.sh-no { font-family: var(--mincho); font-size: .95rem; color: var(--gold); letter-spacing: .1em; }
.sh-title { writing-mode: vertical-rl; font-size: clamp(1.8rem, 2.6vw, 2.3rem); letter-spacing: .3em; }
.sh-en { writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .3em; color: var(--ink-soft); text-transform: uppercase; }
.section-dark .sh-en { color: rgba(255,255,255,.6); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-head .sh-inner { position: static; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .sh-title, .sh-en { writing-mode: horizontal-tb; }
  .sh-title { letter-spacing: .12em; font-size: 1.6rem; white-space: nowrap; }
}
.lead-text { font-size: 1.05rem; line-height: 2.1; max-width: 40em; }

/* 普通の見出し */
.heading { margin-bottom: 36px; }
.heading-en { font-size: .72rem; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.heading h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- 業務一覧（番号つきの行） ---------- */
.svc-list { list-style: none; border-top: 1px solid var(--ink); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr) 40px; gap: 24px; align-items: center;
  padding: 28px 8px; text-decoration: none; transition: background .25s, padding .25s;
}
.svc-row:hover { background: var(--white); padding-inline: 20px 12px; }
.svc-no { font-family: var(--mincho); font-size: 1.5rem; color: var(--gold); }
.svc-name { font-family: var(--mincho); font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; }
.svc-tag { display: block; font-family: var(--gothic); font-size: .82rem; font-weight: 400; color: var(--ink-soft); letter-spacing: .04em; margin-top: 4px; }
.svc-items { font-size: .86rem; color: var(--ink-soft); line-height: 1.8; }
.svc-go { justify-self: end; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-content: center; transition: background .2s, border-color .2s, color .2s; }
.svc-row:hover .svc-go { background: var(--navy); border-color: var(--navy); color: var(--white); }
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 44px minmax(0, 1fr) 36px; gap: 14px; padding: 22px 0; }
  .svc-row:hover { padding-inline: 0; }
  .svc-items { display: none; }
  .svc-no { font-size: 1.2rem; }
  .svc-name { font-size: 1.1rem; }
  .svc-go { width: 36px; height: 36px; }
}

/* ---------- 無料診断のステップ ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; margin-block: 8px 40px; }
.steps li { position: relative; padding: 28px 24px 8px 0; border-top: 1px solid rgba(255,255,255,.3); }
.section:not(.section-dark) .steps li { border-top-color: var(--line); }
.steps li::before {
  counter-increment: step; content: "STEP " counter(step, decimal-leading-zero);
  display: block; font-size: .72rem; letter-spacing: .2em; color: var(--gold-light); margin-bottom: 10px;
}
.section:not(.section-dark) .steps li::before { color: var(--gold); }
.steps li::after { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { font-size: .9rem; opacity: .85; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 28px 28px; border-top: 0; border-left: 1px solid rgba(255,255,255,.3); }
  .section:not(.section-dark) .steps li { border-left-color: var(--line); }
  .steps li::after { left: -4px; top: 6px; }
  .steps li:last-child { padding-bottom: 0; }
}

/* ---------- 事務所 ---------- */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.office { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.office + .office { padding-left: 28px; border-left: 1px solid var(--line); }
.office h3 { font-size: 1.25rem; margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; }
.office dl { display: grid; grid-template-columns: 3.5em 1fr; gap: 6px 12px; font-size: .9rem; }
.office dt { color: var(--ink-soft); }
.office a[href^="tel"] { text-decoration: none; font-weight: 700; }
.office-map { margin-top: 16px; }
@media (max-width: 860px) {
  .offices { grid-template-columns: 1fr; }
  .office, .office + .office { padding: 24px 0; border-left: 0; }
}

/* ---------- 税理士 ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); }
.person { display: grid; grid-template-columns: 42% 1fr; gap: 24px; align-items: end; }
.person .ph { aspect-ratio: 3 / 4; }
.person-role { font-size: .82rem; color: var(--ink-soft); margin-bottom: 6px; }
.person-name { font-size: 1.6rem; letter-spacing: .2em; }
.person-roman { font-size: .72rem; letter-spacing: .24em; color: var(--gold); margin-top: 6px; }
.person-note { font-size: .88rem; color: var(--ink-soft); margin-top: 16px; }
@media (max-width: 720px) {
  .people { grid-template-columns: 1fr; }
}

/* ---------- 下層ページ ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px); border-bottom: 2px solid var(--navy); position: relative; overflow: hidden; isolation: isolate; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; list-style: none; font-size: .78rem; color: var(--ink-soft); margin-bottom: 28px; }
.crumbs li + li::before { content: "／"; margin-right: .5em; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: .14em; }
.page-hero-en { font-size: .72rem; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.page-hero-lead { margin-top: 20px; max-width: 40em; color: var(--ink-soft); }
/* 地平線（下の線）から昇る太陽 */
.page-hero .sun { right: 8%; bottom: 0; transform: translateY(55%); width: clamp(140px, 20vw, 280px); z-index: -1; }
@media (max-width: 720px) { .page-hero .sun { right: -30px; width: 130px; } }

.prose h2 { font-size: 1.45rem; margin: 2.4em 0 .8em; padding-bottom: .5em; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: .3em; }

/* 業務の詳細 */
.svc-detail { list-style: none; counter-reset: item; border-top: 1px solid var(--ink); }
.svc-detail li { display: grid; grid-template-columns: 56px 15em minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc-detail li::before { counter-increment: item; content: counter(item, decimal-leading-zero); font-family: var(--mincho); color: var(--gold); font-size: 1.1rem; }
.svc-detail h3 { font-size: 1.12rem; }
.svc-detail p { margin: 0; color: var(--ink-soft); }
@media (max-width: 720px) {
  .svc-detail li { grid-template-columns: 40px 1fr; gap: 6px 12px; }
  .svc-detail p { grid-column: 2; }
}
.note { font-size: .85rem; color: var(--ink-soft); }
.callout { margin-top: 40px; padding: 28px 32px; background: var(--white); border-left: 3px solid var(--gold); }
.callout h3 { font-size: 1.1rem; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

.other-svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.other-svc a { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; background: var(--paper); text-decoration: none; font-family: var(--mincho); font-weight: 700; transition: background .2s; }
.other-svc a:hover { background: var(--white); }
@media (max-width: 720px) { .other-svc { grid-template-columns: 1fr; } }

/* 表 */
.table th, .table td { padding: 18px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table tr:first-child th, .table tr:first-child td { border-top: 1px solid var(--ink); }
.table th { width: 11em; font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 720px) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: auto; }
  .table th { padding: 16px 0 4px; border-bottom: 0; }
  .table td { padding: 0 0 16px; }
  .table tr:first-child td { border-top: 0; }
}
.table ul { padding-left: 1.2em; }

/* ---------- お問い合わせへの誘導 ---------- */
.cta { background: var(--deep); color: var(--white); padding-block: clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.cta { padding-bottom: clamp(150px, 17vw, 220px) !important; }
.cta .sun { left: 50%; bottom: 0; transform: translate(-50%, 56%); width: clamp(220px, 28vw, 380px); }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sun); }
.cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,.8); margin: 0; }
.cta-actions { display: grid; gap: 12px; justify-items: stretch; min-width: 280px; }
.cta-actions .btn { justify-content: center; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } .cta-actions { min-width: 0; } }

/* ---------- フォーム ---------- */
.form-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 48px; }
.form-intro a, .form-intro div { display: grid; gap: 2px; padding: 18px 20px; background: var(--white); text-decoration: none; }
.form-intro span { font-size: .8rem; color: var(--ink-soft); }
.form-intro strong { font-family: var(--mincho); font-size: 1.25rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .form-intro { grid-template-columns: 1fr; } }

.form { display: grid; gap: 28px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend, .field > label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.req, .opt { font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 2px; letter-spacing: .08em; }
.req { background: var(--tbc); color: #fff; }
.opt { background: var(--paper-2); color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--white); color: var(--ink); font: inherit; letter-spacing: .02em;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 200px; line-height: 1.8; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(0,42,104,.14); }
.field [aria-invalid="true"] { border-color: var(--tbc); background: #fff7f6; }
.field-hint { font-size: .8rem; color: var(--ink-soft); margin: 6px 0 0; }
.field-error { font-size: .84rem; color: var(--tbc); margin: 6px 0 0; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .field-row { grid-template-columns: 1fr; } }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choices label { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: border-color .2s, background .2s; line-height: 1.5; }
.choices input { accent-color: var(--navy); width: 18px; height: 18px; flex: none; margin: 0; }
.choices label:has(input:checked) { border-color: var(--navy); background: #eef2f4; }
.choices.is-invalid label { border-color: var(--tbc); }
@media (max-width: 720px) { .choices { grid-template-columns: 1fr; } }

.form-agree { padding: 20px 22px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; }
.form-agree label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 700; }
.form-agree input { accent-color: var(--navy); width: 18px; height: 18px; margin-top: .35em; flex: none; }
.cf-turnstile { min-height: 65px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.form-actions .btn { min-width: 220px; justify-content: center; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.confirm { display: grid; gap: 28px; }
.confirm[hidden], .done[hidden], .form[hidden] { display: none; }
.confirm-list { border-top: 1px solid var(--ink); }
.confirm-list div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.confirm-list dt { font-weight: 700; }
.confirm-list dd { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 720px) { .confirm-list div { grid-template-columns: 1fr; gap: 4px; } }

.form-status { padding: 16px 20px; border-left: 3px solid var(--tbc); background: #fff3f1; color: #8c1d16; font-weight: 700; }
.form-status[hidden] { display: none; }
.form-status a { color: inherit; }
.done { text-align: center; padding: 56px 24px; background: var(--white); border: 1px solid var(--line); }
.done .logo-mark { margin: 0 auto 20px; width: 72px; }
.done h2 { font-size: 1.6rem; margin-bottom: 16px; }
.done-id { display: inline-block; margin: 8px 0 20px; padding: 6px 16px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; letter-spacing: .1em; }

/* ---------- フッター ---------- */
.site-footer { background: #001738; color: rgba(255,255,255,.82); font-size: .88rem; padding-top: 72px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .logo { color: var(--white); margin-bottom: 18px; }
.site-footer .logo-en { color: rgba(255,255,255,.55); }
.footer-hours { line-height: 1.8; }
.footer-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-offices h3 { font-size: 1rem; color: var(--white); margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; }
.footer-offices p { margin: 0; line-height: 1.8; }
.footer-offices a { text-decoration: none; color: var(--white); font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 28px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px 28px; font-size: .78rem; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom a { color: inherit; }
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-offices { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) { .site-footer { padding-bottom: 72px; } .footer-bottom { flex-direction: column; } }

/* ---------- スマホ下部の固定ボタン ---------- */
.dock { display: none; }
@media (max-width: 720px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--white); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock > a, .dock > button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; border: 0; background: none; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--ink); cursor: pointer; }
  .dock > a { background: var(--navy); color: var(--white); }
  .dock-tels { position: absolute; left: 0; right: 0; bottom: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
  .dock-tels[hidden] { display: none; }
  .dock-tels a { display: flex; justify-content: space-between; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); text-decoration: none; }
  .dock-tels strong { font-family: var(--mincho); letter-spacing: .06em; }
  .dock-tels p { margin: 0; padding: 10px var(--gutter); font-size: .78rem; color: var(--ink-soft); }
}

/* ---------- 表示アニメーション（控えめ） ---------- */
.js .fade { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.js .fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fade { opacity: 1; transform: none; transition: none; } }
