/* 阿見法律事務所 公式サイト — 早川ベース案「写真の組み直し版」（2026-11-11 先生了承）
   元は design-candidates/r3-editorial-d/style.css。tools/ の組み立てで src/ から site/ を作る。 */
/* 早川ベース案（第3回・追加）「章立ての誌面」
   参考：早川総合法律事務所の構成と動きの考え方（左右2枚の写真＋写真に重ねた縦書きの言葉、右下の案内の帯、
   章ごとの大きな輪郭英字、白から浮かぶ写真、暗い章、中央寄せのフッター）。文章・写真・ロゴは借りない。
   当事務所の条件に合わせて変えた点：本文 17〜18px・文字を薄くしない・電話を常に押せる・動きを止められる。 */
:root {
  --white: #FFFFFF;
  --mist: #F3F3F1;
  --ink: #1C1F23;
  --ink-2: #4D535A;
  --line: #DCDCDA;
  --line-ui: #7E848A;
  --navy: #2C3E50;
  --navy-2: #1F2D3B;
  --dark: #1B2027;
  --dark-ink: #F2F2EF;
  --dark-ink-2: #C3C8CE;
  --tint: rgba(62, 92, 122, .30);
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --font-body: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-latin: "Cormorant Garamond", "Times New Roman", serif;
  --wrap: 1180px;
  --gutter: 20px;
  --section: 96px;
  --ease: cubic-bezier(.22, .61, .2, 1);
  color-scheme: light;
}
@media (min-width: 600px) { :root { --gutter: 32px; } }
@media (min-width: 960px) { :root { --gutter: 64px; --section: 150px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 2; letter-spacing: .06em;
  line-break: strict; overflow-wrap: anywhere; overflow-x: clip;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
p { margin: 0 0 1.1em; }
a { color: var(--navy); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 90; }
.skip:focus { left: 8px; }
.note { font-size: 1rem; color: var(--ink-2); line-height: 1.8; }

/* 写真は全部、白黒に青灰色を薄く重ねてそろえる */
.tone { position: relative; overflow: hidden; background: var(--mist); }
.tone img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04) brightness(1.03); }
.tone::after { content: ""; position: absolute; inset: 0; background: var(--tint); mix-blend-mode: multiply; pointer-events: none; }

/* ───── 読み込み時の幕（その訪問の初回だけ・JS があるときだけ） ───── */
.curtain { display: none; }
.js .curtain {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: var(--white);
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.curtain-inner { display: grid; justify-items: center; gap: 14px; }
.curtain-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.75rem; letter-spacing: .3em; color: var(--ink); }
.curtain-en { font-family: var(--font-latin); font-size: 1.125rem; letter-spacing: .2em; color: var(--ink-2); }
.curtain-line { width: 120px; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.js .curtain.run .curtain-name, .js .curtain.run .curtain-en { animation: fadeUp 1s var(--ease) both; }
.js .curtain.run .curtain-en { animation-delay: .25s; }
.js .curtain.run .curtain-line { animation: drawX 1.1s var(--ease) .35s both; }
.js .curtain.done { opacity: 0; visibility: hidden; }
.js .curtain.skip-now { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drawX { to { transform: scaleX(1); } }
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ───── 第一画面：左右2枚の写真 ───── */
.hero { position: relative; display: grid; color: #fff; min-height: 100svh; }
.hero-panel { position: relative; min-height: 50svh; }
.hero-panel .tone { position: absolute; inset: 0; }
.hero-l .tone::before { /* 文字を読めるように、左の写真だけ暗く */
  content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(17, 24, 33, .64), rgba(17, 24, 33, .58)); pointer-events: none;
}
.hero-l img { object-position: 22% 45%; }
.hero-r img { object-position: 50% 20%; }
.hero-brand {
  position: absolute; z-index: 3; left: var(--gutter); top: 22px; color: #fff; text-decoration: none; display: grid; line-height: 1.4;
}
.hero-brand .b-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; letter-spacing: .2em; }
.hero-brand .b-sub { font-family: var(--font-sans); font-size: .8125rem; letter-spacing: .04em; opacity: .95; }
.hero-copy { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding: 96px var(--gutter) 40px; }
.hero-title {
  writing-mode: vertical-rl; margin: 0; font-family: var(--font-serif); font-weight: 500; color: #fff;
  font-size: clamp(1.625rem, 6.8vw, 2.5rem); line-height: 2.1; letter-spacing: .26em; text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}
.hero-title .col { display: block; position: relative; padding-right: .5em; }
.hero-title .col::after { /* 縦書きの列の右に点線 */
  content: ""; position: absolute; right: -.1em; top: .2em; bottom: .2em; border-right: 1px dotted rgba(255, 255, 255, .8); transform-origin: top;
}
.hero-title .col + .col { margin-top: 2.2em; }
.hero-credit { position: absolute; z-index: 2; right: 18px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--font-latin); font-size: .875rem; letter-spacing: .3em; color: #fff; text-shadow: 0 0 8px rgba(0, 0, 0, .4); }
.hero-scroll { position: absolute; z-index: 2; left: var(--gutter); bottom: 0; width: 1px; height: 72px; background: rgba(255, 255, 255, .75); transform-origin: top; animation: drawY 2.4s var(--ease) infinite; }

/* 右下の案内の帯（パソコン）。スクロールすると上に固定の帯が出る */
.nav-band { display: none; }
.hd {
  position: fixed; z-index: 60; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 16px;
  padding: 10px var(--gutter); background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--line);
  transform: translateY(-110%); transition: transform .6s var(--ease);
}
.hd.show, .no-js .hd, .page-sub .hd { transform: none; }
.hd-brand { color: var(--ink); text-decoration: none; display: grid; line-height: 1.35; margin-right: auto; }
.hd-brand .b-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.125rem; letter-spacing: .14em; }
.hd-brand .b-sub { font-family: var(--font-sans); font-size: .75rem; color: var(--ink-2); }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.gnav a { color: var(--ink); text-decoration: none; font-size: .9375rem; letter-spacing: .1em; position: relative; padding: 6px 0; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.gnav a:hover::after, .gnav a[aria-current]::after { transform: scaleX(1); }   /* 今いる所に打ち消し線（参考サイトの手法） */
.tel-link { display: grid; color: var(--ink); text-decoration: none; text-align: right; line-height: 1.25; }
.tel-link .n { font-family: var(--font-serif); font-weight: 600; font-size: 1.375rem; letter-spacing: .08em; }
.tel-link .h { font-family: var(--font-sans); font-size: .75rem; color: var(--ink-2); }
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9375rem; letter-spacing: .1em;
  font-family: var(--font-serif); transition: background-color .4s ease, color .4s ease;
}
.btn-pill .arw { display: inline-block; width: 22px; height: 1px; background: currentColor; position: relative; transition: transform .4s var(--ease); }
.btn-pill .arw::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 1px; background: currentColor; transform: rotate(35deg); transform-origin: right; }
.btn-pill:hover { background: var(--ink); color: #fff; }
.btn-pill:hover .arw { transform: translateX(5px); }
.gnav, .hd .tel-link, .hd .btn-pill { display: none; }
.m-actions { display: flex; gap: 8px; }
.m-call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-family: var(--font-sans); font-weight: 700; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 64px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-ui); border-radius: 999px; padding: 0 14px; font-family: var(--font-sans); font-size: .9375rem; background: #fff; color: var(--ink); white-space: nowrap; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(88vw, 340px); background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); padding: 12px 20px 20px; color: var(--ink); }
.menu-panel ul { list-style: none; margin: 0 0 12px; padding: 0; }
.menu-panel li a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.hero .m-top { position: absolute; z-index: 4; right: var(--gutter); top: 18px; }
.hero .m-top .menu > summary { background: rgba(255, 255, 255, .92); }

@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr 1fr; height: 100svh; min-height: 640px; }
  .hero-panel { min-height: 0; }
  .hero-brand { top: 36px; left: 48px; }
  .hero-brand .b-name { font-size: 1.5rem; }
  .hero-copy { place-items: center; padding: 120px 40px 120px; }
  .hero-title { font-size: clamp(1.75rem, min(2.6vw, 4.6vh), 2.5rem); }
  .hero-scroll { left: 48px; }
  .hero .m-top { display: none; }
  .nav-band {
    display: flex; align-items: center; gap: 28px; position: absolute; z-index: 5; right: 0; bottom: 0;
    background: #fff; color: var(--ink); padding: 22px 48px; justify-content: flex-end; white-space: nowrap;
  }
  .nav-band .gnav ul, .hd .gnav ul { gap: 24px; }
  .gnav a, .tel-link, .btn-pill { white-space: nowrap; }
  .hero-copy { place-items: center start; padding-left: 13%; }
  .hero-l img { object-position: 0% 45%; }
  /* 右は顔を出さず、弁護士バッジとネクタイの寄り（顔は左の1枚だけ） */
  .hero-r img { object-position: 50% 100%; transform-origin: 62% 100%; }
  .js:not(.rm) .hero .hero-r .tone img, .hero-r .tone img { scale: 1.9; }
  .gnav { display: block; }
  .hd .gnav, .hd .tel-link, .hd .btn-pill { display: flex; }
  .hd .tel-link { display: grid; }
  .hd .m-actions { display: none; }
  .hd { padding: 14px 48px; }
}

/* ───── 章 ───── */
.section { position: relative; padding: var(--section) 0; overflow-x: clip; }
.contact, .page-hero { overflow-x: clip; }
.m-call { white-space: nowrap; }
.hd-brand .b-sub { white-space: nowrap; }
@media (max-width: 959px) {
  .hero-l { min-height: 62svh; }
  .hero-r { min-height: 34svh; }
  .hero-copy { padding: 92px var(--gutter) 28px; place-items: center; }
  .hero-title { font-size: clamp(1.5rem, 6.4vw, 1.875rem); letter-spacing: .16em; line-height: 2; }
  .hero-r img { object-position: 50% 100%; transform-origin: 62% 100%; }
  .hero-r .tone img, .js:not(.rm) .hero .hero-r .tone img { scale: 1.9; }
  .hd-brand .b-name { font-size: 1rem; }
  .hd-brand .b-sub { font-size: .6875rem; }
  .hd { gap: 8px; padding: 8px 12px 8px var(--gutter); }
  .hd-brand { min-width: 0; }
  .m-actions { gap: 6px; flex: none; }
  .m-call { padding: 0 14px; }
  .menu > summary { padding: 0 10px; min-width: 0; }
}
.hero-credit { white-space: nowrap; }
.section-mist { background: var(--mist); }
.chap { position: relative; margin-bottom: 48px; }
.chap-en {
  position: absolute; left: -.04em; top: -.55em; z-index: 0; pointer-events: none; white-space: nowrap; line-height: 1;
  font-family: var(--font-latin); font-weight: 400; font-size: clamp(4.25rem, 15vw, 11rem); color: transparent; -webkit-text-stroke: 1px rgba(28, 31, 35, .2);
}
.chap-title { position: relative; z-index: 1; margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 1.75rem; letter-spacing: .14em; line-height: 1.5; padding-top: .9em; }
.chap-rule { display: block; width: 72px; height: 1px; background: var(--ink); margin-top: 18px; transform-origin: left; }
@media (min-width: 960px) { .chap-title { font-size: 2.125rem; } .chap { margin-bottom: 72px; } }

/* Concept：説明文と、ずらして重ねた2枚の写真 */
.concept { display: grid; gap: 56px; align-items: center; }
.concept-text .eyebrow { font-family: var(--font-serif); font-size: 1.25rem; letter-spacing: .14em; line-height: 1.8; margin-bottom: 1.2em; }
.concept-cta { display: grid; gap: 12px; max-width: 420px; margin-top: 28px; }
.btn-call {
  display: grid; justify-items: center; gap: 2px; text-decoration: none; background: var(--navy); color: #fff; padding: 14px 22px; min-height: 64px; border-radius: 2px;
  font-family: var(--font-sans); transition: background-color .3s ease;
}
.btn-call:hover { background: var(--navy-2); color: #fff; }
.btn-call .l { font-size: .9375rem; }
.btn-call .n { font-family: var(--font-serif); font-weight: 600; font-size: 1.625rem; letter-spacing: .08em; line-height: 1.25; }
.concept-meta { margin-top: 16px; font-size: .9375rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0 20px; font-family: var(--font-sans); }
.concept-photos { position: relative; height: 420px; }
.concept-photos .p1 { position: absolute; right: calc(var(--gutter) * -1); top: 0; width: 82%; height: 72%; }
.concept-photos .p1 img { object-position: 10% 30%; }
.concept-photos .p2 { position: absolute; left: 0; bottom: 0; width: 56%; height: 48%; }
.concept-photos .p2 img { object-position: 8% 92%; transform: scale(1.9); transform-origin: 10% 90%; }
.concept-photos .corner { position: absolute; right: 30%; bottom: 44%; width: 60px; height: 1px; background: var(--ink); transform: rotate(-45deg); }
@media (min-width: 960px) {
  .concept { grid-template-columns: 5fr 6fr; gap: 88px; }
  .concept-photos { height: 620px; }
  .concept-photos .p1 { right: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gutter)); }
}

/* 取扱分野 */
.fields { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-ui); }
.fields li { border-bottom: 1px solid var(--line-ui); }
.fields a { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 20px; padding: 26px 6px; color: var(--ink); text-decoration: none; position: relative; transition: background-color .5s ease; }
.fields a:hover, .fields a:focus-visible { background: var(--mist); }
.f-no { font-family: var(--font-latin); font-size: 1.5rem; color: var(--ink-2); grid-row: 1 / span 2; line-height: 1.4; }
.f-name { font-family: var(--font-serif); font-weight: 500; font-size: 1.375rem; letter-spacing: .1em; line-height: 1.6; }
.f-desc { grid-column: 2; color: var(--ink-2); font-size: 1rem; line-height: 1.85; }
.f-go { grid-column: 3; grid-row: 1; align-self: center; width: 28px; height: 1px; background: var(--ink); position: relative; transition: transform .45s var(--ease); }
.f-go::after { content: ""; position: absolute; right: 0; top: -3px; width: 8px; height: 1px; background: var(--ink); transform: rotate(35deg); transform-origin: right; }
.fields a:hover .f-go, .fields a:focus-visible .f-go { transform: translateX(8px); }
.field-other { margin-top: 32px; color: var(--ink-2); }
@media (min-width: 960px) {
  .fields a { grid-template-columns: 90px minmax(0, 4fr) minmax(0, 7fr) 48px; align-items: center; padding: 34px 10px; }
  .f-no { grid-row: 1; font-size: 2rem; }
  .f-name { font-size: 1.625rem; }
  .f-desc { grid-column: 3; }
  .f-go { grid-column: 4; }
}

/* ご相談について */
.facts { margin: 0; border-top: 1px solid var(--line-ui); }
.facts > div { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-serif); font-weight: 600; font-size: 1.1875rem; letter-spacing: .1em; }
.facts dd { margin: 0; }
.facts .notes { margin: 10px 0 0; padding-left: 1.2em; font-size: 1rem; color: var(--ink-2); line-height: 1.85; }
.links-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
@media (min-width: 960px) { .facts > div { grid-template-columns: 240px 1fr; gap: 40px; padding: 30px 0; } }

/* 弁護士紹介：写真を左端まで */
.lawyer { display: grid; gap: 48px; align-items: center; }
.lawyer-photo { aspect-ratio: 4 / 5; max-width: 520px; }
.lawyer-photo img { object-position: 50% 25%; }
.lawyer-name { font-family: var(--font-serif); font-weight: 500; font-size: 1.625rem; letter-spacing: .14em; margin-bottom: .8em; }
.lawyer-name span { display: block; font-size: 1rem; color: var(--ink-2); letter-spacing: .08em; }
@media (min-width: 960px) {
  .lawyer { grid-template-columns: 5fr 6fr; gap: 96px; }
  .lawyer-photo { margin-left: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gutter)); max-width: none; aspect-ratio: 5 / 6; }
}

/* 事務所：暗い章 */
.section-dark { background: var(--dark); color: var(--dark-ink); overflow: hidden; isolation: isolate; }
.section-dark .bg { position: absolute; inset: 0; z-index: -1; }
.section-dark .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) blur(2px) brightness(.55); transform: scale(1.06); object-position: 0% 20%; }
.section-dark .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 25, 31, .92), rgba(20, 25, 31, .78)); }
.section-dark .chap-en { -webkit-text-stroke-color: rgba(242, 242, 239, .22); }
.section-dark .chap-rule { background: var(--dark-ink); }
.section-dark a { color: var(--dark-ink); }
.section-dark .btn-pill { border-color: var(--dark-ink); color: var(--dark-ink); }
.section-dark .btn-pill:hover { background: var(--dark-ink); color: var(--dark); }
.sub-title { font-family: var(--font-serif); font-weight: 500; font-size: 1.375rem; letter-spacing: .12em; margin: 0 0 .8em; }
.two-col { display: grid; gap: 56px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 96px; } }

/* お知らせ */
.news-list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line-ui); }
.news-list li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-list time { font-family: var(--font-latin); font-size: 1.0625rem; color: var(--ink-2); letter-spacing: .08em; }
.news-list a { color: var(--ink); }
@media (min-width: 960px) { .news-list li { grid-template-columns: 220px 1fr; gap: 32px; } }

/* ご相談のご予約 */
.contact { background: var(--mist); padding: var(--section) 0; text-align: center; }
.contact .chap { display: grid; justify-items: center; }
.contact .chap-en { left: 50%; transform: translateX(-50%); }
.contact .chap-rule { margin-left: auto; margin-right: auto; }
.contact-text { max-width: 36em; margin: 0 auto; }
.contact-note { color: var(--ink-2); font-size: 1rem; }
.contact-actions { display: grid; gap: 14px; justify-items: center; margin-top: 32px; }
.contact-actions .btn-call { width: min(100%, 420px); }
.contact-hours { margin: 0; color: var(--ink-2); font-size: .9375rem; font-family: var(--font-sans); }

/* フッター（中央寄せ） */
.ft { background: var(--white); padding: 72px 0 120px; text-align: center; font-size: 1rem; }
.ft-nav ul { list-style: none; margin: 0 0 48px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.ft-nav a { color: var(--ink); text-decoration: none; display: inline-block; padding: 6px 0; letter-spacing: .08em; }
.ft-nav a:hover { text-decoration: underline; }
.ft-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .26em; margin-bottom: .2em; }
.ft-en { font-family: var(--font-latin); letter-spacing: .2em; color: var(--ink-2); margin-bottom: 1.6em; }
.ft p { color: var(--ink); }
.ft .ft-sub { font-size: .9375rem; color: var(--ink-2); }
.ft-copy { margin-top: 40px; font-size: .875rem; color: var(--ink-2); }
@media (min-width: 960px) { .ft { padding-bottom: 72px; } }

/* スマホ下部の連絡バー */
.dock { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 3fr 2fr; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(0, 0, 0, .06); font-family: var(--font-sans); }
.dock a { display: grid; place-items: center; min-height: 52px; text-decoration: none; text-align: center; line-height: 1.25; font-weight: 700; border-radius: 2px; }
.dock .d-tel { background: var(--navy); color: #fff; }
.dock .d-tel small { display: block; font-weight: 400; font-size: .8125rem; }
.dock .d-tel b { font-family: var(--font-serif); font-size: 1.1875rem; letter-spacing: .04em; }
.dock .d-form { border: 1px solid var(--navy); color: var(--navy); }
@media (min-width: 960px) { .dock { display: none; } }

.motion-toggle { font: inherit; font-family: var(--font-sans); font-size: .875rem; color: var(--ink-2); background: #fff; border: 1px solid var(--line-ui); border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer; }
.hero .motion-toggle { position: absolute; z-index: 5; left: var(--gutter); bottom: 88px; }
@media (min-width: 960px) { .hero .motion-toggle { left: 72px; bottom: 24px; } }

/* ───── 下層 ───── */
.page-hero { position: relative; padding: 112px 0 0; overflow: hidden; }
.page-en { display: block; text-align: right; font-family: var(--font-latin); font-weight: 400; font-size: clamp(3.25rem, 10vw, 8rem); line-height: 1; color: var(--ink); letter-spacing: .01em; margin: 0 0 -.32em; position: relative; z-index: 2; }
.page-banner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.page-vert { writing-mode: vertical-rl; font-family: var(--font-serif); font-size: 1.25rem; letter-spacing: .3em; color: var(--ink); padding-top: 24px; position: relative; }
.page-vert::after { content: ""; position: absolute; left: 50%; top: calc(100% + 16px); width: 1px; height: 80px; background: var(--ink); }
.page-photo { height: 260px; }
.page-photo img { object-position: 8% 88%; transform: scale(1.7); transform-origin: 8% 88%; }
@media (min-width: 960px) { .page-photo { height: 380px; margin-right: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gutter)); } }
.crumbs { font-family: var(--font-sans); font-size: .9375rem; color: var(--ink-2); margin: 28px 0 0; }
.crumbs a { color: var(--ink-2); }
.page-layout { display: grid; gap: 40px; padding-top: 64px; padding-bottom: var(--section); }
.page-layout .toc { font-size: 1rem; }
.page-layout .toc p { font-family: var(--font-latin); font-size: 1.25rem; letter-spacing: .12em; margin-bottom: .4em; }
.page-layout .toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-ui); counter-reset: t; }
.page-layout .toc li { border-bottom: 1px solid var(--line); counter-increment: t; }
.page-layout .toc a { display: grid; grid-template-columns: 2.4em 1fr; padding: 10px 0; color: var(--ink); text-decoration: none; line-height: 1.6; }
.page-layout .toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--font-latin); color: var(--ink-2); }
.page-layout .toc a[aria-current="true"] { text-decoration: line-through; text-decoration-thickness: 1px; }
@media (max-width: 959px) { .page-layout .toc { display: none; } }
@media (min-width: 960px) { .page-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 88px; } .page-layout .toc { position: sticky; top: 110px; align-self: start; } }
.field-page { max-width: 46em; }
.field-page h1 { font-family: var(--font-serif); font-weight: 500; font-size: 1.875rem; letter-spacing: .14em; line-height: 1.5; margin: 0 0 1em; }
@media (min-width: 960px) { .field-page h1 { font-size: 2.375rem; } }
.field-page .lead { font-size: 1.125rem; }
.field-page h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; letter-spacing: .1em; line-height: 1.55; margin: 2.8em 0 1em; padding-bottom: .5em; position: relative; }
.field-page h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 1px; background: var(--ink); }
.field-page h3 { font-family: var(--font-serif); font-size: 1.1875rem; margin: 1.8em 0 .6em; line-height: 1.6; }
.field-page ul, .field-page ol { padding-left: 1.3em; }
.field-page li { margin-bottom: .4em; }
.field-page .summary { background: var(--mist); padding: 10px 28px 18px; margin: 36px 0; }
.field-page .summary h2 { margin-top: .6em; font-size: 1.25rem; }
.field-page .qa { border-bottom: 1px solid var(--line); padding: 4px 0 12px; }
.field-page .updated { margin-top: 48px; color: var(--ink-2); font-size: .9375rem; }
.table-scroll { overflow-x: auto; margin: 16px 0 24px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 1rem; font-family: var(--font-sans); }
.fee-table th, .fee-table td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.75; }
.fee-table thead th { background: var(--navy); color: #fff; }
.fee-table tbody th, .fee-table td.row-head { background: var(--mist); font-weight: 700; width: 9em; }
@media (max-width: 599px) {
  table.matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.matrix, table.matrix tbody, table.matrix tr, table.matrix td { display: block; width: 100%; }
  table.matrix tr { border-bottom: 1px solid var(--line-ui); padding: 4px 0; }
  table.matrix td { border-bottom: 0; display: grid; grid-template-columns: 6em 1fr; gap: 8px; padding: 6px 14px; }
  table.matrix td.row-head { display: block; width: 100%; }
  table.matrix td[data-label]::before { content: attr(data-label); color: var(--ink-2); }
}

/* ───── 動き（JS があり、止める設定でないときだけ） ───── */
.js:not(.rm) [data-fade] { opacity: 0; transform: translateY(24px); transition: opacity 1.2s ease, transform 1.3s var(--ease); }
.js:not(.rm) [data-fade="photo"] { transform: none; transition: opacity 1.6s ease; }      /* 写真は白から浮かぶ */
.js:not(.rm) [data-fade].in { opacity: 1; transform: none; }
.js:not(.rm) .chap-rule { transform: scaleX(0); transition: transform 1.2s var(--ease) .3s; }
.js:not(.rm) .chap.in .chap-rule { transform: scaleX(1); }
/* 第一画面：幕のあと、左右の写真が白から現れてゆっくり寄り、点線が伸び、縦書きが列ごとに現れる */
.js:not(.rm) .hero .tone img { transform: scale(1.12); transition: transform 9s cubic-bezier(.2, .6, .2, 1); }
.js:not(.rm) .hero.go .tone img { transform: scale(1); }
.js:not(.rm) .hero .hero-panel { opacity: 0; transition: opacity 1.4s ease; }
.js:not(.rm) .hero .hero-r { transition-delay: .35s; }
.js:not(.rm) .hero.go .hero-panel { opacity: 1; }
.js:not(.rm) .hero .col { opacity: 0; transition: opacity 1.4s ease; }
.js:not(.rm) .hero .col:nth-child(1) { transition-delay: 1.1s; }
.js:not(.rm) .hero .col:nth-child(2) { transition-delay: 1.6s; }
.js:not(.rm) .hero.go .col { opacity: 1; }
.js:not(.rm) .hero .col::after { transform: scaleY(0); transition: transform 1.6s var(--ease); }
.js:not(.rm) .hero .col:nth-child(1)::after { transition-delay: .8s; }
.js:not(.rm) .hero .col:nth-child(2)::after { transition-delay: 1.3s; }
.js:not(.rm) .hero.go .col::after { transform: scaleY(1); }

.paused .hero-scroll { animation-play-state: paused; }
.rm .hero-scroll { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .curtain { display: none; }
  .motion-toggle { display: none; }
}

/* ───── 写真入り版の追記（r3-editorial-b） ─────
   写真は白黒にせず、少し色を抜いた落ち着いた色に（相談風景は元から白黒）。 */
.tone.color img { filter: saturate(.58) contrast(.96) brightness(1.04); }
.tone.color::after { background: rgba(70, 98, 126, .16); }
/* 第一画面の左＝木々。文字のある左側だけ暗く、右へ向かって明るく */
.hero-l .tone::before { background: linear-gradient(90deg, rgba(17, 24, 33, .64) 0%, rgba(17, 24, 33, .58) 34%, rgba(17, 24, 33, .12) 62%, rgba(17, 24, 33, 0) 100%); }
.hero-l .tone.color img { filter: saturate(.72) contrast(.95) brightness(1.08); }
.hero-l img { object-position: 46% 50%; }
@media (min-width: 960px) { .hero-l img { object-position: 46% 50%; } }
@media (max-width: 959px) { .hero-l .tone::before { background: linear-gradient(180deg, rgba(17, 24, 33, .58) 0%, rgba(17, 24, 33, .5) 60%, rgba(17, 24, 33, .3) 100%); } }
/* 2画面目：並木道（縦）と手元の白黒 */
.concept-photos .p1.avenue img { object-position: 50% 30%; transform: none; }
/* 万年筆の帯 */
.band { height: 300px; }
.band img { object-position: 50% 45%; }
@media (min-width: 960px) { .band { height: 440px; } }
/* 暗い章＝水面のきらめき */
.section-dark .bg.glints img { filter: saturate(.5) brightness(.75); object-position: 50% 50%; }
.section-dark .bg.glints::after { background: linear-gradient(90deg, rgba(20, 25, 31, .88), rgba(20, 25, 31, .55)); }
/* 交通事故ページの帯＝並木道 */
.page-photo.road img { object-position: 50% 57%; transform: none; }

/* ───── 先生写真版の追記（r3-editorial-c） ───── */
/* 第一画面の左＝雲の切れ間の光（写真自体を空と光だけに切り出し済み。どの幅でも下にヤシが出ない） */
.hero-l img, .js:not(.rm) .hero .hero-l .tone img, .hero-l .tone img { object-position: 50% 74%; scale: 1; transform-origin: 50% 74%; }
.hero-l .tone.color img { filter: saturate(.85) contrast(.97) brightness(1.03); }
.hero-l .tone.color::after { background: rgba(70, 98, 126, .06); }
.hero-l .tone::before { background: linear-gradient(90deg, rgba(17, 24, 33, .62) 0%, rgba(17, 24, 33, .52) 36%, rgba(17, 24, 33, .1) 66%, rgba(17, 24, 33, 0) 100%); }
@media (max-width: 959px) { .hero-l .tone::before { background: linear-gradient(180deg, rgba(17, 24, 33, .6), rgba(17, 24, 33, .52)); } }
/* 第一画面の右＝バッジの寄り（写真自体をバッジが上寄りに来るよう切り出し済み。どの幅でもバッジが入る） */
.hero-r img, .js:not(.rm) .hero .hero-r .tone img, .hero-r .tone img { object-position: 57% 12%; scale: 1; transform-origin: 57% 16%; }
/* 案内の帯：右の写真からはみ出して左の写真に食い込まないよう、第一画面の下いっぱいに置く */
@media (min-width: 960px) {
  .hero { grid-template-rows: minmax(0, 1fr) auto; }
  .nav-band { position: relative; right: auto; bottom: auto; grid-column: 1 / -1; justify-content: flex-start; padding: 18px 48px; box-shadow: 0 -1px 0 var(--line); }
  .nav-band .tel-link { margin-left: auto; }
  .hero .motion-toggle { bottom: 110px; left: 48px; }
  /* 下の帯の分だけ写真が低くなるので、縦書きが3列に崩れないよう高さに合わせて字を小さく */
  .hero-copy { padding-top: 96px; padding-bottom: 72px; }
  .hero-title { font-size: clamp(1.5rem, min(2.6vw, 3.9vh), 2.5rem); }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .nav-band { gap: 20px; padding: 16px 28px; }
  .nav-band .gnav ul { gap: 16px; }
  .nav-band .tel-link .n { font-size: 1.1875rem; }
  .nav-band .btn-pill { padding: 0 18px; }
}
/* 上の案内の文字：触れたとき、文字の下に線（打ち消し線のように見える文字の中央の線はやめた） */
.gnav a::after { top: auto; bottom: 0; }
/* 下層の目次：今読んでいる章は打ち消し線でなく、左の縦線と太字で示す */
.page-layout .toc a[aria-current="true"] { text-decoration: none; font-weight: 600; box-shadow: inset 3px 0 0 var(--navy); padding-left: 10px; }
/* コンセプト：大きな1枚（右端まで）。右から幕が開くように現れ、スクロールでゆっくり動く */
.concept-photo { position: relative; height: clamp(280px, 68vw, 540px); margin: 0 calc(var(--gutter) * -1); }
.concept-photo img { position: absolute; left: 0; top: -8%; height: 116%; object-position: 54% 60%; }
@media (min-width: 960px) {
  .concept { align-items: stretch; }
  .concept-text { align-self: center; }
  .concept-photo { height: clamp(560px, 88svh, 900px); margin: 0 calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gutter)) 0 0; }
}
.js:not(.rm) [data-fade="wipe"] { opacity: 1; transform: none; clip-path: inset(0 0 0 100%); transition: clip-path 1.8s var(--ease); }
.js:not(.rm) [data-fade="wipe"].in { clip-path: inset(0 0 0 0); }
/* ご相談について：ネモフィラの丘を章の左に置き、読み進める間ずっと横に残す（スマホは章の頭に大きく1枚） */
.consult { padding-top: 0; }
.consult-sticky { aspect-ratio: 4 / 3; }
.consult-sticky img { object-position: 34% 50%; }
.consult-body { padding-top: 64px; }
@media (min-width: 960px) {
  .consult { display: grid; grid-template-columns: 42% minmax(0, 1fr); padding: 0; }
  .consult-photo { position: relative; z-index: 1; }
  .consult-sticky { position: sticky; top: 0; height: 100svh; aspect-ratio: auto; }
  .consult-body { max-width: 860px; margin: 0; padding: var(--section) 72px var(--section) 80px; }
  .consult .facts > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .consult { grid-template-columns: 38% minmax(0, 1fr); }
  .consult-body { padding-left: 56px; padding-right: 40px; }
}
@media (min-width: 1280px) { .consult .facts > div { grid-template-columns: 200px 1fr; gap: 32px; } }
/* 事務所の章＝ガラス越しの夕日（暗く） */
.section-dark .bg.glints img { filter: saturate(.85) brightness(.9); object-position: 50% 55%; }
.section-dark .bg.glints::after { background: linear-gradient(90deg, rgba(20, 25, 31, .9), rgba(20, 25, 31, .66)); }
/* 交通事故ページの上部＝桜並木の道路 */
.page-photo.road img { object-position: 50% 62%; }


/* ═════ 写真の組み直し版の追記（r3-editorial-d・2026-11-11 Fable） ═════
   早川総合法律事務所の「幅ごとの組み方」の仕組みだけを借りた（文章・写真・ロゴは借りていない）。
   借りた仕組み：
   1. 写真の大きさは「画面の幅に対する割合」で決める（文字は固定の大きさ）。広い画面ほど写真が主役になる。
   2. 写真は必ずどこか1辺を「軸」に付ける（画面の右端・画面の中心線）。宙に浮かせない。
   3. 枠の縦横比＝写真の縦横比（写真を先に切り出しておく）。どの幅でも写真の中身が切れない。
   4. 重なりは小さい写真が大きい写真の左下の角を噛む形。縦の重なりは固定に近い量にして、幅で消えたり飲み込んだりしない。
   5. 幅で3段に組み替える（パソコン／タブレット／スマホ）。組み替えのたびに軸を付け直す。
   6. とても広い画面では紙面を止めて左右に余白を取る（早川は 1,800px。当方はフルHDの画面で右端に届くよう 1,920px）。 */

/* ───── コンセプト：大小2枚をずらして重ねる ───── */
.d-concept { display: grid; }
.d-concept > .wrap { width: 100%; }
.duo { margin-top: 64px; }
.duo-big { aspect-ratio: 1600 / 1455; }
.duo-small { aspect-ratio: 930 / 858; position: relative; z-index: 1; }
/* スマホ：大は右端に付け、小は左端に付ける（左右の端から1枚ずつ出て、中央で重なる） */
.duo-big { width: 78%; margin-left: 22%; }
.duo-small { width: 53%; margin-left: 0; margin-top: -52px; }
/* タブレット：文章の下に、右寄せのひとかたまり（大は右端、小は大の左下） */
@media (min-width: 600px) and (max-width: 959px) {
  .duo { margin-top: 72px; }
  .duo-big { width: 58%; margin-left: 42%; }
  .duo-small { width: 34%; margin-left: 20%; margin-top: -64px; }
}
/* パソコン：左半分に文章、右半分に写真。大は画面の右端に付け、小は左の辺を画面の中心線に合わせる */
@media (min-width: 960px) {
  .d-concept > .wrap, .d-concept > .duo { grid-area: 1 / 1; }
  .d-concept > .wrap { align-self: start; padding-top: clamp(16px, 5.5vw, 104px); }
  .d-concept .concept-text { width: calc(50% - clamp(32px, 5vw, 84px)); }
  .d-concept .chap-en { font-size: clamp(4.25rem, 10.5vw, 9.5rem); }   /* 輪郭の英字が写真の下にもぐって欠けないように */
  .duo { justify-self: end; margin: 0 max(0px, calc((100% - 1920px) / 2)) 0 0; width: min(50%, 960px); }
  .duo-big { width: 83%; margin-left: 17%; }
  .duo-small { width: 52%; margin-left: 0; margin-top: calc(-1 * clamp(56px, 5.6vw, 100px)); }
}

/* 2枚の色：森は色を抜きすぎず少し深く（白い紙面の上で写真が負けないように）。手元は白黒のまま少し締める */
.duo-big.tone.color img { filter: saturate(.82) contrast(1.08) brightness(.93); }
.duo-big.tone.color::after { background: rgba(38, 72, 84, .26); }
.duo-small.tone img { filter: grayscale(1) contrast(1.12) brightness(.95); }

/* 動き：2枚が白からふわっと浮かび（大→小の順）、大はゆっくり寄る。小はスクロールで少しだけ上下にずれる（motion.js） */
.js:not(.rm):not(.paused) .duo .duo-big, .js:not(.rm):not(.paused) .duo .duo-small { opacity: 0; transform: translateY(32px); transition: opacity 1.4s ease, transform 1.6s var(--ease); }
.js:not(.rm):not(.paused) .duo .duo-small { transition-delay: .32s; }
.js:not(.rm):not(.paused) .duo.in .duo-big, .js:not(.rm):not(.paused) .duo.in .duo-small { opacity: 1; transform: none; }
.js:not(.rm):not(.paused) .duo .duo-big img { transform: scale(1.09); transition: transform 3.4s cubic-bezier(.2, .6, .2, 1); }
.js:not(.rm):not(.paused) .duo.in .duo-big img { transform: none; }

/* 「動きを止める」ボタンを押している間は、現れる動きも止めて最初から全部見せる */
.paused [data-fade], .paused .hero .hero-panel, .paused .hero .col { opacity: 1 !important; transform: none !important; transition: none !important; }
.paused .chap-rule, .paused .hero .col::after, .paused .hero .tone img { transform: none !important; transition: none !important; }

/* ───── 弁護士紹介：写真は紙面の左半分（右の辺を中心線に合わせる）。元の写真が 800px 幅なので、これ以上は大きくしない ───── */
@media (min-width: 960px) {
  .lawyer { grid-template-columns: 1fr 1fr; gap: 0; }
  .lawyer-photo { margin-left: 0; aspect-ratio: 4 / 5; max-width: none; }
  .lawyer > div { padding-left: clamp(40px, 6vw, 96px); }
}

/* ───── 交通事故ページの上部：写真は右端まで（1,920px の紙面まで）。高さは幅に合わせて変わる（写真は横長に切り出し済み） ───── */
.page-photo, .page-photo.road { height: auto; aspect-ratio: 4 / 3; }
.page-photo.road img { object-position: 50% 50%; transform: none; }
@media (min-width: 600px) { .page-photo, .page-photo.road { aspect-ratio: 2 / 1; } }
@media (min-width: 960px) {
  .page-photo, .page-photo.road { aspect-ratio: 2200 / 847; margin-right: max(calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gutter)), -434px); }
}

/* ───── ご相談について：ネモフィラは章の左に付けたまま。とても広い画面では紙面（1,920px）で止める ───── */
@media (min-width: 960px) { .consult { max-width: 1920px; margin-left: auto; margin-right: auto; } }

/* ───── 事務所の章：ガラス越しの夕日が分かる暗さに（白い文字は、写真の一番明るい所でも 4.7:1 以上） ───── */
.section-dark .bg.glints::after { background: linear-gradient(90deg, rgba(20, 25, 31, .8), rgba(20, 25, 31, .62)); }
.section-dark .bg.glints img { object-position: 50% 55%; }
@media (max-width: 959px) { .section-dark .bg.glints img { object-position: 21% 55%; } }   /* 縦長になるスマホでも夕日が枠に入るように */

/* ───── 上に固定の帯：狭いパソコン幅（960〜1199px）で「お問い合わせ」が右にはみ出していたのを直す ───── */
@media (min-width: 960px) and (max-width: 1199px) {
  .hd { padding: 12px 28px; gap: 14px; }
  .hd .gnav ul { gap: 12px; }
  .hd .gnav a { letter-spacing: .04em; }
  .hd .tel-link .n { font-size: 1.1875rem; }
  .hd .btn-pill { padding: 0 16px; gap: 8px; }
}
@media (min-width: 960px) and (max-width: 1099px) { .hd .btn-pill { display: none; } }   /* この幅は電話番号を優先。フォームへは各章のボタンから */
/* スマホ（幅375px 以下）で、上の帯の「（茨城県弁護士会）」の末尾が「電話」ボタンの下にもぐっていたのを直す */
@media (max-width: 959px) { .hd-brand .b-sub { letter-spacing: 0; } }
@media (max-width: 380px) { .hd { padding-left: 14px; } }
@media (max-width: 374px) { .hd-brand .b-sub { font-size: .625rem; } }


/* ═════ 新サイト原稿への反映（2026-11-11 先生「これでいいです」→ 全ページに反映） ═════
   上は組み直し版（r3-editorial-d）の見た目そのまま。ここから下は、下層ページの本文（原稿の書式）を同じ見た目に合わせる分。
   点検（tools/check.py）が読む色の名前を、組み直し版の色に対応させておく（コントラストの計算に使う）。 */
:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --band: #F3F3F1;
  --ink-3: #4D535A;
  --accent: #2C3E50;
  --accent-hover: #1F2D3B;
  --accent-tint: #EEF1F4;
  --on-accent: #FFFFFF;
  --note: #8C3A14;
  --footer: #FFFFFF;
  --footer-ink: #1C1F23;
  --footer-ink-2: #4D535A;
  --measure: 40em;
}

/* 改行は文節の切れ目だけ（組み立てで <wbr> を入れてある。2026-11-11 先生のご指摘「語の途中で改行される」）。
   長すぎて入りきらないときだけ、どこででも折り返す（はみ出し防止）。行末に1〜2字だけ残る行も減らす。 */
body { word-break: keep-all; overflow-wrap: break-word; }   /* anywhere だと表の欄が1字幅まで縮んで語の途中で折れるため break-word */
p, li, dt, dd, th, td, h1, h2, h3, figcaption, summary { text-wrap: pretty; }

/* 下層ページの上部：英字の題・縦書きの題・横長の写真（写真がないページは文字と線だけ） */
.page-hero .page-photo img { transform: none; object-position: 50% 50%; }   /* 写真の縦横の比率は組み直し版の決め方（スマホ4:3・中間2:1・パソコン横長）のまま */
/* 写真のないページ：英字の題の下に横の線、その下に縦書きの題（縦の線は引かない＝現在地の文字に重ならないように） */
.page-banner.no-photo { display: block; border-top: 1px solid var(--ink); padding-top: 4px; }
.page-banner.no-photo .page-vert { display: block; padding-top: 20px; }
.page-banner.no-photo .page-vert::after { display: none; }
.page-hero .crumbs { margin-top: 24px; }
/* 顧問ページの写真（無料素材・Unsplash）：スマホ・中間幅で左右が削られるとき、右の窓の景色を残す */
.page-field-corporate .page-hero .page-photo img { object-position: 72% 50%; }

/* ページの題（原稿の page-head：h1 と一文） */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-family: var(--font-serif); font-weight: 500; font-size: 1.875rem; letter-spacing: .14em; line-height: 1.5; margin: 0 0 .6em; }
.page-head p { color: var(--ink-2); max-width: var(--measure); margin: 0; }
@media (min-width: 960px) { .page-head h1 { font-size: 2.375rem; } .page-head { padding-top: 56px; } }
@media (max-width: 599px) { .page-head h1, .field-page h1 { font-size: 1.625rem; letter-spacing: .06em; } }   /* スマホで1語が1行に入りきらず語の途中で折れるのを防ぐ */

/* 本文 */
.content { padding: 16px 0 var(--section); }
.content > .wrap > *:not(.table-scroll):not(.steps):not(.lawyer-grid):not(.faq-list):not(.toc),
.prose > * { max-width: var(--measure); }
.content > .wrap > .table-scroll, .content > .wrap > .steps { max-width: 920px; }
.content h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; letter-spacing: .1em; line-height: 1.55; margin: 2.6em 0 1em; padding-bottom: .5em; position: relative; }
.content h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 1px; background: var(--ink); }
.content h3, .content .h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.1875rem; letter-spacing: .06em; line-height: 1.6; margin: 1.8em 0 .6em; }
.content h4 { font-size: 1.0625rem; font-weight: 700; margin: 1.4em 0 .4em; }
@media (min-width: 960px) { .content h2 { font-size: 1.75rem; } .content h3, .content .h3 { font-size: 1.3125rem; } }
.content ul, .content ol { padding-left: 1.4em; }
.content li { margin: 6px 0; }
.intro { padding-top: 24px; }
.lead { font-size: 1.125rem; line-height: 1.95; }
@media (min-width: 960px) { .lead { font-size: 1.25rem; } }
.content .note, .content .notes { font-size: 1rem; color: var(--ink-2); line-height: 1.8; }
.content .notes { list-style: none; padding: 0; margin: 8px 0 0; }
.content .notes li { padding-left: 1em; text-indent: -1em; margin: 4px 0; }
.content .notes li::before { content: "※"; }
.dots { padding-left: 1.3em; margin: 8px 0 16px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 16px; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.box { background: var(--mist); border: 0; padding: 22px 28px; margin: 28px 0; }
.box > :last-child { margin-bottom: 0; }
.box-main { border-left: 3px solid var(--ink); }
.box-accent { background: var(--accent-tint); }
.box-warn { background: #FFFFFF; border: 1px solid var(--line); border-left: 3px solid var(--note); }
.text-link { font-weight: 600; }
.text-link::after { content: " →"; }

/* 原稿のボタン（組み直し版の丸いボタンに合わせる） */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent; text-decoration: none;
  font-family: var(--font-serif); font-size: .9375rem; letter-spacing: .1em; text-align: center; transition: background-color .4s ease, color .4s ease;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-disabled { border-color: var(--line-ui); color: var(--ink-2); cursor: default; }
.btn-disabled:hover { background: transparent; color: var(--ink-2); }

/* 目次（費用ページなど、本文の中の目次） */
.content .toc { margin: 32px 0; padding: 18px 0; border-top: 1px solid var(--line-ui); border-bottom: 1px solid var(--line); }
.content .toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; }
.content .toc li { margin: 0; }
.content .toc a { display: block; padding: 8px 0; min-height: 44px; color: var(--ink); text-decoration: none; }
.content .toc a::before { content: "— "; color: var(--ink-2); }
.content .toc a:hover { text-decoration: underline; }
@media (min-width: 600px) { .content .toc ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .content .toc ul { grid-template-columns: repeat(3, 1fr); } }
h2[id], h3[id], section[id] { scroll-margin-top: 110px; }

/* 表 */
.content table { border-collapse: collapse; width: 100%; background: #fff; font-size: 1rem; line-height: 1.75; font-family: var(--font-sans); }
.content th, .content td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.content thead th { background: var(--navy); color: #fff; font-weight: 700; }
.content tbody th { font-weight: 700; background: var(--mist); }
.content table.stack th, .content table.info th { width: 10em; }
.content td.num, .content .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.content table.kv td.num + td.num { font-weight: 400; }
.content .fee-note { color: var(--ink-2); font-size: 1rem; }
.content .updated { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 599px) {
  .content th, .content td { padding: 12px; }
  .content table.stack th, .content table.info th { width: 7em; }
  .content table.matrix tbody th, .content table.matrix td.row-head { background: var(--mist); }
}

/* 相談の流れ */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 36px 72px; margin: 0; }
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -.1em; font-family: var(--font-latin);
  font-size: 2rem; line-height: 1.2; color: var(--ink-2);
}
.steps > li::after { content: ""; position: absolute; left: 20px; top: 52px; bottom: 8px; width: 1px; background: var(--line-ui); }
.steps > li:last-child::after { display: none; }
.content .steps h3 { margin: 4px 0 8px; }

/* よくある質問（開閉式） */
.faq details { border-bottom: 1px solid var(--line); }
.faq h2 + details { border-top: 1px solid var(--line-ui); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; min-height: 64px; padding: 16px 4px; font-family: var(--font-serif); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--ink); font-size: 1.25rem; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 4px 22px; }

/* 弁護士紹介ページ */
.content .lawyer-grid { display: grid; gap: 32px; }
.content .lawyer-photo { max-width: 320px; }
.content .lawyer-name { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; letter-spacing: .14em; margin-bottom: .6em; }
.content .lawyer-name span { display: block; font-size: 1rem; color: var(--ink-2); letter-spacing: .08em; }
@media (min-width: 960px) { .content .lawyer-grid { grid-template-columns: 340px 1fr; gap: 72px; align-items: start; } .content .lawyer-photo { max-width: none; } }

/* お知らせ（一覧・記事） */
.content .news-list { margin-top: 24px; }

@media print {
  .hd, .dock, .contact, .curtain, .motion-toggle, .page-photo { display: none !important; }
}
