/* DEMO税理士事務所（7R のホームページの見本・区分 E＝規制のある仕事。名前・場所・内容はすべて架空）
   方向：「帳簿」。最初の画面で、帳簿の紙に罫線が引かれ、数字が書き込まれ、朱の二重線で締めて、角印を押す（一度だけ。SVG と CSS）。
         左には帳簿の見出しの札のような縦の目次。見出しの下には帳簿の二重の罫。
   色：紙 #FFFFFF・机 #EAEFF5・墨 #14202F（文字）・罫の青 #1E4F8F（ボタン・リンク）・淡い罫 #A9C0DE／#D8E3F1・朱 #B8321F（締めの線・印・期限の印だけ）。
   字体：端末の字体だけ。太いゴシックの見出し、数字は桁をそろえる（tabular-nums）。 */

:root {
  --paper: #FFFFFF;
  --desk: #EAEFF5;
  --ink: #14202F;
  --ink-2: #47546A;
  --blue: #1E4F8F;
  --blue-d: #163C6E;
  --rule: #A9C0DE;
  --rule-2: #D8E3F1;
  --shu: #B8321F;
  --shu-l: #E3A397;

  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", sans-serif;
  --fig: "Helvetica Neue", "Arial", "Hiragino Sans", sans-serif;
  --seal: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "BIZ UDPMincho", serif;
  --side: 268px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.85; letter-spacing: .02em; overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--blue); text-underline-offset: .25em; }
a:hover { color: var(--blue-d); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ib { display: inline-block; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--paper); padding: 12px 18px; }
.skip:focus { top: 12px; }

.demo-band { background: var(--shu); color: #FFFFFF; font-size: 13px; line-height: 1.6; padding: 9px 16px; text-align: center; letter-spacing: .04em; }

/* ---------- 骨組み：左に縦の目次、右に中身 ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.side {
  position: sticky; top: 0; height: 100vh; z-index: 10; display: flex; flex-direction: column;
  padding: 30px 0 26px 30px; background: var(--paper); border-right: 1px solid var(--rule);
}
.office { display: block; color: var(--ink); text-decoration: none; padding-right: 28px; }
.office:hover { color: var(--ink); }
.office b { display: block; font-size: 30px; font-weight: 800; letter-spacing: .06em; line-height: 1.1; }
.office span { display: block; margin-top: 6px; font-size: 17px; font-weight: 700; letter-spacing: .12em; }
.office small { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); letter-spacing: .04em; line-height: 1.6; }
.index { margin-top: 34px; display: flex; flex-direction: column; border-bottom: 1px solid var(--rule-2); }
.index a {
  position: relative; display: flex; align-items: center; min-height: 50px; padding-right: 28px;
  border-top: 1px solid var(--rule-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .06em;
}
.index a::after {
  content: ""; position: absolute; right: -10px; top: 11px; bottom: 11px; width: 10px; border-radius: 0 3px 3px 0;
  background: var(--rule-2);
}
.index a:hover { color: var(--blue); }
.index a:hover::after { background: var(--rule); }
.index a[aria-current="page"] { color: var(--blue); }
.index a[aria-current="page"]::after { background: var(--blue); }
.side-foot { margin-top: auto; padding-right: 28px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.side-foot .tel { margin-bottom: 12px; }

.tel {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); cursor: pointer;
  font-family: var(--fig); font-size: 18px; font-weight: 600; letter-spacing: .04em;
}
.tel:hover { background: var(--ink); color: #FFFFFF; }
.tel svg { width: 18px; height: 18px; flex: none; }

.side-in .tel { display: none; }

@media (max-width: 1080px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .side-foot, .side .office small { display: none; }
  .side-in { display: flex; align-items: center; gap: 12px; padding: 14px 24px; }
  .office { padding-right: 0; display: flex; align-items: baseline; gap: 8px; min-height: 44px; flex-wrap: wrap; }
  .office b { font-size: 22px; }
  .office span { margin-top: 0; font-size: 15px; letter-spacing: .08em; }
  .side-in .tel { display: flex; width: auto; margin-left: auto; min-height: 44px; font-size: 16px; }
  .index { margin-top: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 0; border-top: 1px solid var(--rule-2); }
  .index a { justify-content: center; text-align: center; min-height: 52px; padding: 6px 4px; border-top: 0; border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); font-size: 14px; letter-spacing: .02em; line-height: 1.35; }
  .index a:nth-child(3n) { border-right: 0; }
  .index a::after { right: 14px; left: 14px; top: auto; bottom: -1px; width: auto; height: 3px; border-radius: 0; background: transparent; }
  .index a[aria-current="page"] { background: #F3F6FA; }
  .index a:nth-child(n+4) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .side-in { padding: 10px 16px; }
  .office b { font-size: 20px; }
  .office span { font-size: 14px; }
  .side-in .tel { width: 44px; padding: 0; font-size: 0; gap: 0; }
  .side-in .tel svg { width: 19px; height: 19px; }
}

.wrap { width: min(1040px, calc(100% - 112px)); margin-inline: auto; }
@media (max-width: 1080px) { .wrap { width: min(1040px, calc(100% - 64px)); } }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }

/* ---------- 最初の画面：帳簿 ---------- */
.hero { background: var(--desk); overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero-in { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); gap: 48px; align-items: center; padding-block: 72px 80px; min-height: min(80vh, 720px); }
.hero-title { font-size: clamp(34px, 3.9vw, 54px); font-weight: 800; line-height: 1.38; letter-spacing: .02em; font-feature-settings: "palt" 1; }
.hero-title span { display: inline-block; }
.hero-lead { margin-top: 24px; max-width: 30em; font-size: 16.5px; line-height: 1.95; }
.hero-act { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 22px; font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.ledger-fig { position: relative; }
.ledger { width: 100%; transform: rotate(-1.2deg); filter: drop-shadow(0 1px 0 rgba(20, 32, 47, .10)) drop-shadow(0 22px 28px rgba(20, 32, 47, .14)); }
.ledger-cap { margin-top: 18px; font-size: 12.5px; color: var(--ink-2); text-align: right; }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px 52px; min-height: 0; }
  .ledger { transform: rotate(-1deg) scale(.97); }
}
@media (max-width: 600px) {
  .hero-title { font-size: clamp(29px, 8.2vw, 36px); }
  .hero-lead { font-size: 16px; }
  .hero-act .btn { flex: 1 1 100%; }
  .ledger-cap { text-align: left; }
}

/* 帳簿の動き（一度だけ。動きを減らす設定では最後の形をすぐ出す） */
.ledger text { font-family: var(--sans); }
.ledger .fig { font-family: var(--fig); }
.ledger .seal-t { font-family: var(--seal); font-weight: 600; }
.lg-h { stroke-dasharray: 546; stroke-dashoffset: 546; animation: lg-draw .7s cubic-bezier(.3, .7, .2, 1) forwards; }
.lg-v { stroke-dasharray: 340; stroke-dashoffset: 340; animation: lg-draw .65s cubic-bezier(.3, .7, .2, 1) forwards; }
.lg-c { stroke-dasharray: 240; stroke-dashoffset: 240; animation: lg-draw .42s ease-out forwards; }
.lg-row { opacity: 0; animation: lg-write .42s ease-out forwards; }
.lg-stamp { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transform: rotate(-5deg) scale(1.45); animation: lg-stamp .55s cubic-bezier(.2, .8, .25, 1) forwards; }
.js .ledger:not(.play) .lg-h, .js .ledger:not(.play) .lg-v, .js .ledger:not(.play) .lg-c, .js .ledger:not(.play) .lg-row, .js .ledger:not(.play) .lg-stamp { animation-play-state: paused; }
@keyframes lg-draw { to { stroke-dashoffset: 0; } }
@keyframes lg-write { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes lg-stamp {
  0% { opacity: 0; transform: rotate(-5deg) scale(1.45); }
  55% { opacity: 1; transform: rotate(-5deg) scale(.96); }
  100% { opacity: .94; transform: rotate(-5deg) scale(1); }
}
.w0 { animation-delay: 0s; } .w1 { animation-delay: .1s; } .w2 { animation-delay: .2s; } .w3 { animation-delay: .3s; } .w4 { animation-delay: .4s; }
.w5 { animation-delay: .5s; } .w6 { animation-delay: .6s; } .w7 { animation-delay: .7s; } .w8 { animation-delay: .8s; } .w9 { animation-delay: .9s; }
.w10 { animation-delay: 1s; } .w11 { animation-delay: 1.1s; } .w12 { animation-delay: 1.2s; } .w13 { animation-delay: 1.3s; } .w14 { animation-delay: 1.4s; }
.w15 { animation-delay: 1.5s; } .w16 { animation-delay: 1.6s; } .w17 { animation-delay: 1.7s; } .w18 { animation-delay: 1.8s; } .w19 { animation-delay: 1.9s; }
.w20 { animation-delay: 2s; } .w21 { animation-delay: 2.1s; } .w22 { animation-delay: 2.2s; } .w23 { animation-delay: 2.3s; } .w24 { animation-delay: 2.4s; }
.w25 { animation-delay: 2.5s; } .w26 { animation-delay: 2.6s; } .w27 { animation-delay: 2.7s; } .w28 { animation-delay: 2.8s; } .w29 { animation-delay: 2.9s; }
.w30 { animation-delay: 3s; } .w31 { animation-delay: 3.1s; } .w32 { animation-delay: 3.2s; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 2px; text-decoration: none; cursor: pointer; font-size: 16px; font-weight: 700; letter-spacing: .04em; line-height: 1.3;
}
.btn-main { background: var(--blue); color: #FFFFFF; }
.btn-main:hover { background: var(--blue-d); color: #FFFFFF; }
.btn-line { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #FFFFFF; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 区切り ---------- */
.sec { padding-block: 92px; }
.sec-desk { background: var(--desk); }
.sec + .sec { border-top: 1px solid var(--rule-2); }
.h2 { font-size: clamp(25px, 2.5vw, 32px); font-weight: 800; letter-spacing: .04em; line-height: 1.45; padding-bottom: 14px; border-bottom: 4px double var(--rule); }
.sec-lead { margin-top: 18px; max-width: 42em; color: var(--ink-2); font-size: 15.5px; }
.sec-body { margin-top: 36px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; color: var(--blue); }
@media (max-width: 600px) { .sec { padding-block: 64px; } }

/* 税のこよみ（12か月） */
.koyomi { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-left: 1px solid var(--rule-2); }
.koyomi li { position: relative; padding: 14px 14px 18px; border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); background: var(--paper); min-height: 150px; }
.koyomi .m { font-family: var(--fig); font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.koyomi .m small { font-family: var(--sans); font-size: 13px; font-weight: 700; margin-left: 2px; }
.koyomi ul { list-style: none; margin-top: 10px; }
.koyomi ul li { position: static; padding: 0; border: 0; min-height: 0; background: none; font-size: 13px; line-height: 1.65; }
.koyomi ul li + li { margin-top: 6px; }
.koyomi .day { display: block; font-family: var(--fig); font-weight: 700; color: var(--shu); }
.koyomi .none { color: var(--ink-2); font-size: 13px; }
.koyomi > li.is-now { outline: 2px solid var(--blue); outline-offset: -2px; z-index: 1; }
.koyomi .now { position: absolute; top: 12px; right: 12px; padding: 1px 8px; background: var(--blue); color: #FFFFFF; font-size: 12px; font-weight: 700; border-radius: 2px; }
.koyomi .now:empty { display: none; }
.every { margin-top: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.every li { list-style: none; }
.every b { color: var(--ink); }
@media (max-width: 960px) { .koyomi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .koyomi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .koyomi > li { min-height: 132px; padding: 12px 10px 14px; }
  .koyomi .m { font-size: 26px; }
}

/* 業務の一覧（帳簿の行のように） */
.ledger-list { border-top: 1.5px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 0 28px; padding: 10px 0; border-bottom: 1px solid var(--rule-2); align-items: baseline; }
.ledger-row h3 { font-size: 18px; font-weight: 800; letter-spacing: .03em; line-height: 1.5; }
.ledger-row h3 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.ledger-row h3 a:hover { color: var(--blue); text-decoration: underline; }
.ledger-row p { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.ledger-row .fee { text-align: right; font-family: var(--fig); font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ledger-row .fee small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.ledger-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 28px; padding: 10px 0; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.ledger-head span:last-child { text-align: right; }
@media (max-width: 760px) {
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-bottom: 14px; }
  .ledger-row p { grid-column: 1 / -1; grid-row: 2; }
  .ledger-row .fee { grid-column: 2; grid-row: 1; }
}

/* 相談の流れ（順番がある） */
.flow { list-style: none; counter-reset: f; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.flow > li { counter-increment: f; padding: 18px 18px 6px 0; }
.flow > li + li { padding-left: 18px; border-left: 1px solid var(--rule-2); }
.flow > li::before { content: counter(f); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1.5px solid var(--blue); color: var(--blue); font-family: var(--fig); font-weight: 700; font-size: 16px; }
.flow b { display: block; margin-top: 12px; font-size: 17px; font-weight: 800; }
.flow p { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
@media (max-width: 960px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow > li, .flow > li + li { display: grid; grid-template-columns: 50px minmax(0, 1fr); padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--rule-2); }
  .flow > li::before { grid-row: 1 / span 2; }
  .flow b { margin-top: 2px; }
}

/* 所長のことば */
.word { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: end; }
.word p { font-size: 17px; line-height: 2.05; }
.word p + p { margin-top: 1em; }
.signbox { border-top: 1.5px solid var(--ink); padding-top: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.signbox b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: .1em; }
@media (max-width: 860px) { .word { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* 申込みの帯 */
.ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 36px 40px; background: var(--paper); border: 1.5px solid var(--ink); }
.ask h2 { font-size: 24px; font-weight: 800; letter-spacing: .03em; }
.ask p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.ask-act { display: flex; flex-wrap: wrap; gap: 12px; }
.ask-act .tel { width: auto; }
@media (max-width: 860px) { .ask { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; } .ask-act > * { flex: 1 1 100%; } }

/* ---------- 中のページ ---------- */
.page-head { background: var(--desk); border-bottom: 1px solid var(--rule); padding-block: 64px 52px; }
.crumb { font-size: 13.5px; color: var(--ink-2); }
.crumb a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--ink-2); }
.page-title { margin-top: 4px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: .03em; line-height: 1.4; }
.page-lead { margin-top: 18px; max-width: 40em; font-size: 16.5px; line-height: 1.95; }
@media (max-width: 600px) { .page-head { padding-block: 28px 40px; } .page-lead { font-size: 16px; } }

.prose { max-width: 42em; }
.prose p + p { margin-top: 1em; }
.prose ul { margin-top: 12px; }
.prose li { list-style: none; position: relative; padding-left: 1.2em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .85em; width: 7px; height: 1.5px; background: var(--blue); }
.prose li + li { margin-top: 4px; }

/* 業務の詳しい説明 */
.svc { padding-block: 34px; border-bottom: 1px solid var(--rule-2); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 48px; }
.svc:first-child { border-top: 1.5px solid var(--ink); }
.svc h2 { font-size: 22px; font-weight: 800; letter-spacing: .03em; line-height: 1.5; }
.svc .who { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.svc dl { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 0; }
.svc dt, .svc dd { padding-block: 10px; border-bottom: 1px dashed var(--rule-2); }
.svc dt { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.svc dd { font-size: 15.5px; }
.svc dl > :nth-last-child(-n+2) { border-bottom: 0; }
.svc .fig { font-family: var(--fig); font-weight: 600; }
@media (max-width: 760px) { .svc { grid-template-columns: minmax(0, 1fr); } .svc dl { grid-template-columns: minmax(0, 1fr); } .svc dt { border-bottom: 0; padding-bottom: 0; } .svc dd { padding-top: 2px; } }

/* 報酬の目安の表 */
.fees { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); }
.fees th, .fees td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--rule-2); text-align: left; vertical-align: top; font-weight: 400; }
.fees thead th { font-size: 13px; color: var(--ink-2); padding-block: 10px; border-bottom: 1px solid var(--rule); }
.fees tbody th { font-weight: 800; font-size: 16.5px; width: 30%; }
.fees td.yen { text-align: right; white-space: nowrap; font-family: var(--fig); font-size: 19px; font-weight: 600; width: 24%; padding-right: 28px; }
.fees td.yen small { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.fees td.inc { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.fees thead th:nth-child(2) { text-align: right; padding-right: 28px; }
.fees tr.total th, .fees tr.total td { border-bottom: 0; }
@media (max-width: 760px) {
  .fees thead { display: none; }
  .fees, .fees tbody, .fees tr, .fees th, .fees td { display: block; width: auto; }
  .fees tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 16px 0; border-bottom: 1px solid var(--rule-2); }
  .fees th, .fees td, .fees tbody th { padding: 0; border: 0; width: auto; }
  .fees td.yen { width: auto; padding-right: 0; font-size: 17px; }
  .fees td.inc { grid-column: 1 / -1; margin-top: 6px; }
}
.notes { margin-top: 28px; padding: 22px 24px; background: var(--desk); border-left: 3px solid var(--blue); font-size: 14.5px; line-height: 1.9; }
.notes li { list-style: none; position: relative; padding-left: 1.1em; }
.notes li::before { content: "・"; position: absolute; left: 0; }

/* 期限の詳しい表 */
.dues { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); }
.dues th, .dues td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule-2); text-align: left; vertical-align: top; font-weight: 400; }
.dues thead th { font-size: 13px; color: var(--ink-2); padding-block: 10px; border-bottom: 1px solid var(--rule); }
.dues tbody th { font-family: var(--fig); font-weight: 700; white-space: nowrap; width: 6em; }
.dues td.when { font-family: var(--fig); font-weight: 700; color: var(--shu); white-space: nowrap; width: 7em; }
.dues td.who { font-size: 14px; color: var(--ink-2); width: 30%; }
.dues tr.is-now th, .dues tr.is-now td { background: #F3F6FA; }
@media (max-width: 760px) {
  .dues thead { display: none; }
  .dues, .dues tbody, .dues tr, .dues th, .dues td { display: block; width: auto; }
  .dues tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; padding: 14px 0; border-bottom: 1px solid var(--rule-2); }
  .dues th, .dues td, .dues tbody th { border: 0; padding: 0; }
  .dues td.when { grid-column: 1; grid-row: 2; }
  .dues td.what { grid-column: 2; grid-row: 1 / span 2; }
  .dues td.who { grid-column: 2; width: auto; margin-top: 4px; }
}

/* 事務所の概要 */
.overview { display: grid; grid-template-columns: 11em minmax(0, 1fr); border-top: 1.5px solid var(--ink); }
.overview dt, .overview dd { padding-block: 15px; border-bottom: 1px solid var(--rule-2); }
.overview dt { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.hidden-note { color: var(--ink-2); }
.map { border: 1px solid var(--rule); background: var(--paper); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.note-demo { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .overview { grid-template-columns: minmax(0, 1fr); } .overview dt { border-bottom: 0; padding-bottom: 0; } .overview dd { padding-top: 2px; } }

/* ---------- 申込みのフォーム（短い文つき） ---------- */
.form { max-width: 42em; }
.field { border: 0; margin: 0; padding: 0; }
.field + .field { margin-top: 32px; }
.field legend, .field > label { display: block; padding: 0; margin-bottom: 10px; font-weight: 800; font-size: 16px; }
.need { margin-left: 8px; padding: 1px 7px; border: 1px solid var(--shu); color: var(--shu); font-size: 12px; font-weight: 700; border-radius: 2px; }
.opt { margin-left: 8px; font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; border: 1px solid var(--rule); background: var(--paper); cursor: pointer; border-radius: 2px; line-height: 1.4; }
.choice input { width: 19px; height: 19px; margin: 0; accent-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #F3F6FA; }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.in { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid #7D8BA0; border-radius: 2px; background: var(--paper); font-size: 16px; }
textarea.in { min-height: 140px; resize: vertical; line-height: 1.8; }
select.in { appearance: none; padding-right: 44px; 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; }
.hint { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.count { font-family: var(--fig); }
.form-note { margin-top: 30px; padding: 18px 20px; background: var(--desk); border-left: 3px solid var(--shu); font-size: 14.5px; }
.form-send { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-result { font-weight: 700; color: var(--blue-d); }
.form-result:empty { display: none; }

/* ---------- 下の段 ---------- */
.foot { background: var(--ink); color: #E8EDF4; padding-block: 64px 36px; }
.foot a { color: #E8EDF4; }
.foot :focus-visible { outline-color: #FFFFFF; }
.foot-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 40px; }
.foot-name { font-size: 22px; font-weight: 800; letter-spacing: .06em; }
.foot dl { margin-top: 16px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; font-size: 14.5px; line-height: 1.85; }
.foot dt { color: #B4C0D0; }
.foot nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-content: start; }
.foot nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid rgba(232, 237, 244, .2); text-decoration: none; font-size: 15px; }
.foot nav a:hover { text-decoration: underline; }
.foot-demo { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(232, 237, 244, .2); font-size: 13px; color: #B4C0D0; line-height: 1.8; }
@media (max-width: 860px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .foot dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .foot dd { margin-bottom: 8px; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); width: max-content; max-width: calc(100% - 32px);
  padding: 14px 20px; background: var(--ink); color: #FFFFFF; font-size: 14.5px; line-height: 1.7; border-left: 4px solid var(--shu);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .lg-h, .lg-v, .lg-c { stroke-dashoffset: 0; }
  .lg-row { opacity: 1; }
  .lg-stamp { opacity: .94; transform: rotate(-5deg); }
}
