/* ひらき戸法律事務所（デモ）
   生成りのしっくい・濃い木・黒い鉄・夕方の光。白はほとんど使わない */
:root {
  --kinari: #F7F3EC;
  --kinari2: #EFE8DC;
  --ink: #1A1A1A;
  --wood: #9A6B43;
  --wood-text: color-mix(in srgb, #9A6B43 78%, #1A1A1A);
  --wood-20: color-mix(in srgb, #9A6B43 20%, #F7F3EC);
  --wood-35: color-mix(in srgb, #9A6B43 35%, #F7F3EC);
  --line: rgba(26, 26, 26, .15);
  --line2: rgba(26, 26, 26, .28);
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 56px);
  --head-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; background: var(--kinari); color: var(--ink);
  font-family: var(--gothic); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  font-weight: 400; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--mincho); font-weight: 500; line-height: 1.5; margin: 0; font-feature-settings: "palt"; letter-spacing: .04em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--pad) * 2, 820px); }
.num { font-family: var(--mincho); font-weight: 600; letter-spacing: .03em; font-feature-settings: "palt"; }

/* ---------- ヘッダー ---------- */
.head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--kinari) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 20px; height: var(--head-h); padding-inline: clamp(16px, 3vw, 36px); max-width: 1440px; margin-inline: auto; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo { display: block; height: 40px; width: auto; color: var(--ink); overflow: visible; }
.logo__name { font-family: var(--mincho); font-weight: 500; font-size: 19px; fill: currentColor; letter-spacing: .06em; }
.demo { font-size: 10px; letter-spacing: .14em; line-height: 1; padding: 3px 5px 2px; border: 1px solid var(--line2); color: rgba(26,26,26,.6); margin-left: -8px; flex: none; align-self: center; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: clamp(14px, 1.6vw, 26px); }
.gnav a { text-decoration: none; font-size: 14px; letter-spacing: .04em; position: relative; padding: 6px 0; white-space: nowrap; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--wood); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.gnav a[aria-current="page"] { color: var(--wood-text); font-weight: 500; }
.gnav__extra { display: none; }
.head__tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; text-decoration: none; flex: none; }
.head__tel b { font-family: var(--mincho); font-weight: 600; font-size: 19px; letter-spacing: .05em; }
.head__tel small { font-size: 11px; color: rgba(26,26,26,.7); letter-spacing: .02em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: 48px; padding: 10px 26px; text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .08em; border: 1px solid var(--ink); transition: background-color .3s, color .3s; line-height: 1.5; }
.btn--ink { background: var(--ink); color: var(--kinari); }
.btn--ink:hover { background: #3a3027; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--kinari2); }
.btn--kinari { background: var(--kinari); color: var(--ink); border-color: var(--kinari); }
.btn--kinari:hover { background: var(--kinari2); }
.btn .arw { display: inline-block; width: 18px; height: 1px; background: currentColor; position: relative; transition: transform .3s; }
.btn .arw::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); transform-origin: 100% 0; }
.btn:hover .arw { transform: translateX(4px); }
.head__btn { min-height: 44px; padding: 8px 18px; font-size: 14px; flex: none; }
.menu { display: none; }

@media (max-width: 1180px) {
  .head__tel { display: none; }
}
@media (max-width: 980px) {
  :root { --head-h: 64px; }
  .logo { height: 34px; }
  .head__btn { display: none; }
  .menu { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; margin-left: auto; background: none; border: 0; padding: 6px 4px; cursor: pointer; color: var(--ink); font: inherit; }
  .menu__bars, .menu__bars::before { display: block; width: 26px; height: 1px; background: currentColor; position: relative; transition: transform .3s; }
  .menu__bars::before { content: ""; position: absolute; top: 7px; left: 0; }
  .menu__bars { margin-bottom: 9px; }
  .menu__label { font-size: 10px; letter-spacing: .16em; line-height: 1; }
  .is-menu .menu__bars { transform: translateY(4px) rotate(20deg); }
  .is-menu .menu__bars::before { transform: translateY(-7px) rotate(-40deg); }
  .gnav { position: fixed; inset: var(--head-h) 0 auto 0; background: var(--kinari); border-bottom: 1px solid var(--line); padding: 12px var(--pad) 28px; display: none; max-height: calc(100svh - var(--head-h)); overflow-y: auto; }
  .is-menu .gnav { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .gnav li a::after { display: none; }
  .gnav__extra { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
  .gnav__extra .head__tel { display: flex; align-items: flex-start; }
}

/* ---------- 区画の共通 ---------- */
.sec { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.sec--k2 { background: var(--kinari2); }
.sec--rule { border-top: 1px solid var(--wood); }
/* 扉の枠を思わせる縦の線2本 */
.frame::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(8px, 2vw, 28px); width: 7px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); pointer-events: none; }
.hd { display: flex; align-items: center; gap: 14px; font-size: clamp(24px, 3vw, 34px); margin-bottom: clamp(24px, 3vw, 36px); }
.hd--s { font-size: clamp(21px, 2.4vw, 26px); margin-bottom: 20px; }
.hm { flex: none; width: 14px; height: 21px; color: var(--wood); }
.hd--s .hm { width: 12px; height: 18px; }
.lead { font-size: clamp(15px, 1.4vw, 17px); }
.small { font-size: 13.5px; line-height: 1.8; color: rgba(26,26,26,.78); }
.more { margin-top: clamp(28px, 3vw, 40px); }
.tlink { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; font-weight: 500; color: var(--wood-text); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.tlink:hover { color: var(--ink); }

/* ---------- 最初の画面 ---------- */
.hero { position: relative; background: var(--kinari); }
.hero__ph { position: relative; height: min(70svh, 760px); min-height: 480px; overflow: hidden; background: #e9dfcf; }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__copy { position: absolute; inset: 0; display: flex; align-items: center; }
.hero__copy .wrap { width: min(100% - var(--pad) * 2, 1240px); }
.hero__text { max-width: 30em; }
.hero__title { font-family: var(--mincho); font-weight: 400; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.7; letter-spacing: .06em; white-space: nowrap; margin-bottom: 26px; }
.hero__sub { font-size: 15px; line-height: 2; max-width: 25em; margin-bottom: 30px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__btns .btn--line { background: var(--kinari); }
.hours-band { background: var(--kinari2); border-bottom: 1px solid var(--line); }
.hours-band p { margin-block: 0; padding: 14px 0; font-size: 14.5px; letter-spacing: .04em; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.hours-band b { font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .hero__ph img { animation: door-in 1.2s cubic-bezier(.25,.7,.2,1) both; }
  .hero__text > * { animation: rise .9s ease both; }
  .hero__text > :nth-child(2) { animation-delay: .25s; }
  .hero__text > :nth-child(3) { animation-delay: .4s; }
}
@keyframes door-in { from { opacity: 0; transform: translateX(-4%) scale(1.06); } to { opacity: 1; transform: translateX(0) scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__ph img { transform: scale(1.06); } }
@media (max-width: 760px) {
  .hero__ph { height: auto; min-height: 0; aspect-ratio: 4 / 3.2; }
  .hero__ph img { object-position: 60% 50%; }
  .hero__copy { position: static; display: block; padding: 30px 0 38px; }
  .hero__title { font-size: 30px; margin-bottom: 16px; }
  .hero__btns .btn { flex: 1 1 100%; }
}

/* ---------- お知らせ ---------- */
.news { padding-block: clamp(40px, 5vw, 64px); }
.news__in { display: grid; grid-template-columns: 180px 1fr; gap: 12px 40px; align-items: start; }
.news .hd { margin: 0; font-size: 22px; }
.news__list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 0 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news__list li:first-child { border-top: 1px solid var(--line); }
.news__list time { font-family: var(--mincho); font-weight: 600; letter-spacing: .06em; color: var(--wood-text); }
.news__more { grid-column: 2; text-align: right; margin: 6px 0 0; }
@media (max-width: 760px) {
  .news__in { grid-template-columns: 1fr; }
  .news__more { grid-column: 1; }
  .news__list li { grid-template-columns: 1fr; }
}

/* ---------- 目次のような一覧 ---------- */
.toc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 88px); margin-top: 8px; }
.toc__col h3 { font-size: 19px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: baseline; }
.toc__col li { border-bottom: 1px solid var(--line2); }
.toc__col li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 2px; text-decoration: none; transition: padding .3s, color .3s; }
.toc__col li a::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 1px solid var(--wood); border-right: 1px solid var(--wood); transform: rotate(45deg); }
.toc__col li a:hover { color: var(--wood-text); }
.toc__col li a .dots { flex: 1; border-bottom: 1px dotted var(--line2); transform: translateY(-4px); margin-inline: 6px; }
.toc__note { margin-top: 24px; }
@media (max-width: 760px) { .toc { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- 2列の組み ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; } }

/* ---------- 表 ---------- */
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line2); }
.tbl tr:first-child > * { border-top: 1px solid var(--ink); }
.tbl th { font-weight: 500; white-space: nowrap; width: 1%; }
.tbl thead th { font-size: 13.5px; color: rgba(26,26,26,.75); font-weight: 500; border-bottom: 1px solid var(--ink); background: transparent; }
.tbl--fee td.amt { font-family: var(--mincho); font-weight: 600; letter-spacing: .03em; }
.tbl--fee tbody th { font-family: var(--mincho); font-size: 18px; font-weight: 600; }
.tbl-scroll { overflow-x: auto; }
@media (max-width: 760px) {
  .tbl--stack thead { display: none; }
  .tbl--stack tr { display: block; border-bottom: 1px solid var(--line2); padding: 14px 0; }
  .tbl--stack tr:first-child { border-top: 1px solid var(--ink); }
  .tbl--stack th, .tbl--stack td { display: block; border: 0 !important; padding: 2px 0; width: auto; white-space: normal; }
  .tbl--stack td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; color: rgba(26,26,26,.6); margin-top: 8px; letter-spacing: .06em; }
  .tbl--kv th, .tbl--kv td { display: block; padding: 0; border: 0; width: auto; }
  .tbl--kv tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line2); }
  .tbl--kv tr:first-child { border-top: 1px solid var(--ink); }
  .tbl--kv tr:first-child > * { border-top: 0; }
  .tbl--kv th { font-size: 13px; color: rgba(26,26,26,.65); }
}

/* ---------- 写真 ---------- */
.ph { margin: 0; overflow: hidden; background: #e6dccb; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--kinari); }
.pair .ph { aspect-ratio: 4 / 3; }
.pair-cap { margin-top: 22px; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }
.lawyer__ph { aspect-ratio: 896 / 1024; max-width: 440px; justify-self: end; width: 100%; }
.lawyer__name { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line2); font-family: var(--mincho); font-size: 18px; letter-spacing: .1em; }
.lawyer__name small { font-family: var(--gothic); font-size: 13.5px; letter-spacing: .04em; margin-left: .4em; }
.words p { font-size: 16.5px; }
@media (max-width: 860px) { .lawyer__ph { justify-self: start; max-width: 420px; } }

/* ---------- 下層の頭 ---------- */
.crumb { font-size: 12.5px; padding-top: 18px; color: rgba(26,26,26,.7); }
.crumb ol { display: flex; flex-wrap: wrap; gap: 0 .2em; }
.crumb li + li::before { content: "／"; margin-right: .2em; color: var(--line2); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.phead { padding-top: clamp(28px, 4vw, 52px); }
.phead__title { font-size: clamp(30px, 4.2vw, 50px); font-weight: 500; letter-spacing: .1em; margin-bottom: clamp(24px, 3vw, 40px); display: flex; align-items: center; gap: 18px; }
.phead__title .hm { width: 18px; height: 27px; }
.phead__ph { height: clamp(220px, 30vw, 420px); }
.phead__ph img { object-position: var(--op, 50% 50%); }
.phead__lead { padding-block: clamp(28px, 3.5vw, 44px) 0; font-size: clamp(15.5px, 1.5vw, 18px); max-width: 38em; }
@media (prefers-reduced-motion: no-preference) {
  .phead__ph img { animation: door-in 1.2s cubic-bezier(.25,.7,.2,1) both; }
}

/* ---------- 予約の帯 ---------- */
.band { background: var(--ink); color: var(--kinari); padding-block: clamp(56px, 7vw, 92px); position: relative; overflow: hidden; }
.band__in { display: grid; grid-template-columns: 1fr auto; gap: 28px 56px; align-items: center; }
.band .hd { color: var(--kinari); margin-bottom: 14px; }
.band .hm { color: var(--wood-35); }
.band p { margin: 0; }
.band__act { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.band__tel { text-decoration: none; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.band__tel b { font-family: var(--mincho); font-weight: 600; font-size: 26px; letter-spacing: .06em; }
.band__tel small { font-size: 13px; opacity: .8; }
.band__door { position: absolute; right: -40px; top: 50%; width: 220px; height: 330px; transform: translateY(-50%); opacity: .07; color: var(--kinari); pointer-events: none; }
@media (max-width: 860px) { .band__in { grid-template-columns: 1fr; } .band__door { display: none; } }

/* ---------- フッター ---------- */
.foot { border-top: 1px solid var(--wood); padding-block: 56px 28px; background: var(--kinari); }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 32px 56px; }
.foot .logo { height: 40px; }
.foot__lawyer { margin: 18px 0 4px; font-weight: 500; }
.foot__addr { font-size: 14px; margin: 0; }
.foot__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 36px; font-size: 14px; align-content: start; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; }
.foot__copy { margin-top: 40px; font-size: 12px; color: rgba(26,26,26,.6); }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }
.foot--line { border-top: 1px solid var(--ink); }

/* ---------- 図 HK-1 ご相談からご依頼まで ---------- */
.hk1 { --gapw: 74px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr) var(--gapw)) minmax(0, 1fr); grid-template-rows: auto auto auto; margin-block: 8px; }
.hk1 > * { grid-row: 1; grid-column: var(--i); }
.hk1__card { border: 1px solid var(--ink); background: var(--kinari); padding: 14px 12px 16px; text-align: center; position: relative; z-index: 1; }
.hk1__card .n { display: block; font-family: var(--mincho); font-weight: 600; color: var(--wood-text); font-size: 20px; line-height: 1.2; }
.hk1__card .t { display: block; font-family: var(--mincho); font-weight: 500; font-size: 17px; line-height: 1.5; letter-spacing: .04em; }
.hk1__card .s { display: block; font-size: 12px; line-height: 1.6; margin-top: 8px; color: rgba(26,26,26,.75); }
.hk1__gap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hk1__gap .ar { position: relative; width: 100%; height: 1px; background: var(--ink); }
.hk1__gap .ar::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
.hk1__gap .dm { width: 11px; height: 16px; color: var(--wood); margin-top: 8px; }
.hk1__gap .nt { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; line-height: 1.5; text-align: center; color: rgba(26,26,26,.78); }
.hk1__branch { grid-row: 2; grid-column: 4; display: flex; flex-direction: column; align-items: center; position: relative; }
.hk1__branch::before { content: ""; width: 0; height: 34px; border-left: 1px dashed var(--ink); margin-top: -22px; }
.hk1__branch span { border: 1px dashed var(--ink); padding: 4px 10px; font-size: 12.5px; white-space: nowrap; background: var(--kinari); }
.hk1__rng { grid-row: 3; margin-top: 16px; border: 1px solid var(--line2); border-top: 0; height: 16px; position: relative; }
.hk1__rng b { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); font-family: var(--mincho); font-weight: 600; font-size: 15px; letter-spacing: .1em; }
.hk1__rng--a { grid-column: 1 / 4; }
.hk1__rng--b { grid-column: 5 / 10; border-color: var(--wood); }
.hk1__rng--b b { color: var(--wood-text); }
.hk1-wrap { padding: 54px 0 48px; }
.hk1--mini .nt, .hk1--mini .s, .hk1--mini .hk1__branch, .hk1--mini .hk1__rng { display: none; }
.hk1--mini { --gapw: 40px; }
.hk1--mini .hk1__card { padding: 10px 6px; }
.hk1--mini .hk1__card .t { font-size: 15px; }
.hk1--mini .hk1__gap .dm { display: none; }
@media (max-width: 860px) {
  .hk1-wrap { padding: 12px 0 8px; }
  .hk1 { grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: none; }
  .hk1 > * { grid-column: 2; grid-row: var(--i); }
  .hk1__gap { height: 64px; flex-direction: row; justify-content: flex-start; gap: 12px; padding-left: calc(50% - 1px); }
  .hk1__gap .ar { width: 1px; height: 100%; }
  .hk1__gap .ar::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); transform-origin: 50% 50%; }
  .hk1__gap .dm { display: none; }
  .hk1__gap .nt { position: static; transform: none; width: auto; text-align: left; }
  .hk1__branch { grid-row: 4; grid-column: 2; align-items: flex-end; justify-content: center; }
  .hk1__branch::before { display: none; }
  .hk1__rng { grid-column: 1 !important; margin: 0 14px 0 0; border: 1px solid var(--line2); border-right: 0; height: auto; width: 16px; justify-self: end; }
  .hk1__rng--a { grid-row: 1 / 4; }
  .hk1__rng--b { grid-row: 5 / 10; border-color: var(--wood); }
  .hk1__rng b { left: auto; right: 100%; top: 50%; transform: translate(-6px, -50%); writing-mode: vertical-rl; }
  .hk1--mini { grid-template-columns: minmax(0, 1fr); }
  .hk1--mini > * { grid-column: 1; }
  .hk1--mini .hk1__gap { height: 30px; }
}

/* ---------- 図 HK-2 費用をいつ払うか ---------- */
.hk2 { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 18px; padding-top: 34px; }
.hk2__line { position: absolute; left: 0; right: 0; top: calc(34px + 2.4em + 18px); height: 2px; background: var(--ink); }
.hk2__line::after { content: ""; position: absolute; right: -2px; top: -5px; width: 11px; height: 11px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
.hk2__est { position: absolute; top: 0; left: 12.5%; width: 25%; text-align: center; font-size: 12.5px; letter-spacing: .06em; }
.hk2__est::after { content: ""; display: block; height: 10px; margin: 4px 12% 0; border: 1px solid var(--line2); border-bottom: 0; }
.hk2__pt { display: grid; grid-template-rows: 2.4em 36px auto; justify-items: center; text-align: center; }
.hk2__pt .when { font-size: 13.5px; font-weight: 500; line-height: 1.2; align-self: end; }
.hk2__pt .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--kinari); border: 2px solid var(--ink); align-self: center; position: relative; z-index: 1; }
.hk2__card { width: 100%; border: 1px solid var(--ink); padding: 14px 12px; margin-top: 12px; background: var(--wood-20); position: relative; }
.hk2__card::before { content: ""; position: absolute; left: 50%; top: -13px; height: 12px; border-left: 1px solid var(--ink); }
.hk2__card--k { background: var(--kinari); }
.hk2__card .nm { font-family: var(--mincho); font-weight: 600; font-size: 18px; letter-spacing: .08em; display: block; }
.hk2__card .am { font-family: var(--mincho); font-weight: 600; font-size: 15px; display: block; margin-top: 4px; }
.hk2__card .sm { font-size: 12px; display: block; margin-top: 4px; color: rgba(26,26,26,.78); line-height: 1.6; }
.hk2__card .plus { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line2); font-size: 13px; }
.hk2__pt--band .dot { width: 10px; height: 10px; border-color: var(--wood); background: var(--wood); }
.hk2__band { position: absolute; left: 37%; right: 13%; top: calc(34px + 2.4em + 18px - 6px); height: 14px; background: var(--wood-35); z-index: 0; }
.hk2__pt--band .bandlabel { margin-top: 12px; font-size: 13px; padding: 6px 10px; border: 1px solid var(--wood); background: var(--wood-20); }
.hk2__foot { grid-column: 1 / -1; margin-top: 22px; font-size: 13px; text-align: right; color: rgba(26,26,26,.78); }
.hk2--mini .am, .hk2--mini .sm, .hk2--mini .plus, .hk2--mini .hk2__est, .hk2--mini .hk2__foot { display: none; }
.hk2--mini { padding-top: 0; }
.hk2--mini .hk2__line { top: calc(2.4em + 18px); }
.hk2--mini .hk2__band { top: calc(2.4em + 18px - 6px); }
@media (max-width: 760px) {
  .hk2, .hk2--mini { grid-template-columns: 1fr; padding: 0 0 0 34px; row-gap: 18px; }
  .hk2__line, .hk2--mini .hk2__line { top: 6px; bottom: 26px; left: 9px; right: auto; width: 2px; height: auto; }
  .hk2__line::after { right: auto; left: -4.5px; top: auto; bottom: -2px; transform: rotate(135deg); }
  .hk2__band, .hk2--mini .hk2__band { display: none; }
  .hk2__est { position: static; width: auto; text-align: left; order: 0; font-size: 12.5px; }
  .hk2__est::after { display: none; }
  .hk2__pt { grid-template-rows: none; justify-items: start; text-align: left; position: relative; }
  .hk2__pt .dot { position: absolute; left: -32px; top: 3px; }
  .hk2__pt--band .dot { display: block; border-color: var(--wood); background: var(--wood-35); }
  .hk2__pt .when { align-self: start; }
  .hk2__card { margin-top: 8px; }
  .hk2__card::before { display: none; }
  .hk2__pt--band .bandlabel { margin-top: 8px; }
  .hk2__foot { text-align: left; margin-top: 0; }
  .hk2--mini .hk2__card { padding: 8px 12px; }
  .hk2 .est-sp { order: 1; }
}

/* ---------- 図 HK-3 相続の2つの期限 ---------- */
.hk3 { margin: 32px 0 12px; padding: clamp(18px, 3vw, 32px); background: var(--kinari); border: 1px solid var(--line2); }
.hk3 svg { width: 100%; height: auto; display: block; overflow: visible; }
.hk3 text { font-family: var(--gothic); fill: var(--ink); }
.hk3 .m { font-family: var(--mincho); font-weight: 600; }
.hk3 .sx { font-size: 13px; fill: rgba(26,26,26,.75); }
.hk3 .hk3__sp { display: none; }
@media (max-width: 760px) { .hk3 .hk3__pc { display: none; } .hk3 .hk3__sp { display: block; } }
.hk3__src { margin-top: 10px; font-size: 12.5px; color: rgba(26,26,26,.7); }

/* ---------- 図 HK-4 地図 ---------- */
.hk4 { margin: 0; border: 1px solid var(--line2); background: var(--kinari2); }
.hk4 svg { display: block; width: 100%; height: auto; }
.hk4 text { font-family: var(--gothic); fill: var(--ink); }

/* 図の線を引く動き（JSが付けたときだけ） */
.js .draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1.4s ease .2s; }
.js .is-in .draw { stroke-dashoffset: 0; }

/* ---------- 流れの段 ---------- */
.steps { counter-reset: none; border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 28px; padding: 30px 0; border-bottom: 1px solid var(--line2); }
.step__no { font-family: var(--mincho); font-weight: 600; font-size: 40px; line-height: 1; color: var(--wood-text); padding-top: 4px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.line-box { margin-top: 20px; padding: 20px 22px; background: var(--kinari2); border-left: 2px solid var(--wood); }
.line-box .btn { margin-top: 14px; }
.line-box .small { margin-top: 12px; }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; } .step__no { font-size: 30px; margin-bottom: 8px; } }

.reason { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: clamp(28px, 4vw, 48px); background: var(--kinari); border: 1px solid var(--ink); position: relative; }
.reason::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }

.bring li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line2); align-items: baseline; }
.bring li:first-child { border-top: 1px solid var(--line2); }
.bring .hm { width: 10px; height: 15px; transform: translateY(2px); }

.faq details { border-bottom: 1px solid var(--line2); }
.faq details:first-of-type { border-top: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2em 1fr 20px; gap: 8px; padding: 20px 0; font-weight: 500; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q, .faq .a-in .a { font-family: var(--mincho); font-weight: 600; font-size: 19px; color: var(--wood-text); line-height: 1; }
.faq summary .pm { width: 14px; height: 14px; position: relative; align-self: center; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transition: transform .3s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq .a-in { display: grid; grid-template-columns: 2em 1fr; gap: 8px; padding: 0 28px 22px 0; }

/* ---------- 分野 ---------- */
.field { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(24px, 4vw, 64px); padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line2); }
.field h3 { font-size: clamp(20px, 2.2vw, 24px); }
.field .need { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line2); font-size: 14.5px; }
.field .need b { font-weight: 500; display: block; font-size: 13px; color: var(--wood-text); letter-spacing: .06em; }
@media (max-width: 760px) { .field { grid-template-columns: 1fr; } }
.gband { background: var(--kinari2); padding: 22px 0; border-top: 1px solid var(--wood); border-bottom: 1px solid var(--line2); }
.gband h2 { font-size: clamp(22px, 2.6vw, 28px); display: flex; align-items: center; gap: 14px; }

/* ---------- 弁護士と事務所 ---------- */
.plate { font-family: var(--mincho); font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: .14em; line-height: 1.4; }
.plate span { font-size: .5em; letter-spacing: .1em; margin-right: .8em; vertical-align: .25em; }
.plate-sub { font-weight: 500; font-size: 14px; margin: 8px 0 28px; letter-spacing: .05em; }
.career th { font-family: var(--mincho); font-weight: 600; }
.intro__ph { aspect-ratio: 4 / 5; }
.intro__ph img { object-position: 52% 22%; }
.name-ph { aspect-ratio: 896 / 1024; max-width: 400px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .name-ph { justify-self: start; } }

/* ---------- アクセス ---------- */
.hours { border-top: 1px solid var(--ink); }
.hours th, .hours td { border-bottom: 1px solid var(--line2); padding: 14px 8px; text-align: center; font-size: 15px; }
.hours thead th { font-family: var(--mincho); font-weight: 600; font-size: 17px; }
.hours tbody th { text-align: left; font-family: var(--mincho); font-weight: 600; white-space: nowrap; padding-left: 12px; }
.hours td.on { background: var(--wood-35); }
.hours td.on--s { background: var(--wood-20); font-size: 13px; line-height: 1.5; }
.hours .mk { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); vertical-align: -1px; }
@media (max-width: 640px) { .hours th, .hours td { padding: 12px 3px; font-size: 13px; } .hours td.on--s { font-size: 11px; } .hours tbody th { padding-left: 4px; font-size: 13px; } }

.form { display: grid; gap: 26px; max-width: 760px; }
.f-row { display: grid; gap: 8px; }
.f-row > label, .f-row legend { font-weight: 500; font-size: 15px; display: flex; gap: 10px; align-items: center; padding: 0; }
.req { font-size: 11px; font-weight: 500; padding: 1px 7px; background: var(--ink); color: var(--kinari); letter-spacing: .06em; }
.opt { font-size: 11px; padding: 0 6px; border: 1px solid var(--line2); color: rgba(26,26,26,.7); }
.f-row input[type="text"], .f-row input[type="tel"], .f-row input[type="email"], .f-row select, .f-row textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line2); background: #FBF9F5; color: var(--ink); border-radius: 0; }
.f-row textarea { min-height: 130px; resize: vertical; }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { outline: 2px solid var(--wood); outline-offset: 0; border-color: var(--wood); }
.f-row .hint { font-size: 13px; color: rgba(26,26,26,.75); margin: 0; line-height: 1.7; }
fieldset.f-row { border: 0; margin: 0; padding: 0; min-width: 0; }
.f-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-two label { font-size: 13px; display: grid; gap: 4px; }
@media (max-width: 560px) { .f-two { grid-template-columns: 1fr; } }
.f-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.f-agree input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--ink); flex: none; }
.form .is-checked :invalid, .form.is-checked :invalid { border-color: #9b2d20; }
.f-submit { justify-self: start; min-width: 280px; }
.f-after { font-size: 14px; margin: 0; }
.tel-big { text-decoration: none; display: inline-flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.tel-big b { font-family: var(--mincho); font-weight: 600; font-size: clamp(26px, 3vw, 34px); letter-spacing: .06em; }
.access-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .access-grid { grid-template-columns: 1fr; } }

/* ---------- 見えたら出す（JSが html に .js を付けたときだけ隠す） ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease; }
.js .rv.is-in { opacity: 1; transform: none; }
.js .stg > * { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--d, 0) * 110ms); }
.js .stg.is-in > * { opacity: 1; transform: none; }
.js .hk1.stg > *, .js .hk2.stg > * { transition-delay: calc(var(--i, 1) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- トップの細部 ---------- */
.flow-text { margin-top: 44px; max-width: 42em; }
.hk1--mini { margin-top: 12px; }
.fee-dg { margin-top: clamp(40px, 5vw, 64px); }
.office { border-top: 1px solid var(--wood); padding-bottom: clamp(56px, 7vw, 96px); }
.office .pair .ph { aspect-ratio: 16 / 10; }

/* ---------- 下層の細部 ---------- */
.steps__note, .bring__note, .tbl-note { margin-top: 18px; }
.secret { align-items: center; }
.secret__door { justify-self: center; width: min(180px, 50%); }
.secret__door svg { width: 100%; height: auto; display: block; }
.when-text { margin-top: clamp(36px, 4vw, 52px); max-width: 44em; }
.hk2--big { margin-top: 12px; }
.notes3 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); }
.tax { margin-top: clamp(40px, 5vw, 60px); padding-top: 32px; border-top: 1px solid var(--line2); max-width: 46em; }
@media (max-width: 860px) { .notes3 { grid-template-columns: 1fr; } }
.toc--page { margin-top: clamp(32px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line2); background: color-mix(in srgb, var(--kinari2) 60%, var(--kinari)); }
.toc__h { font-size: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.gband--first { margin-top: clamp(56px, 7vw, 96px); }
.fields { position: relative; padding-bottom: clamp(40px, 5vw, 72px); }
.fields .field:last-child { border-bottom: 0; }
.intro { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
.intro__ph { max-width: 420px; }
.intro__words { margin-top: 32px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro__ph { max-width: 360px; aspect-ratio: 1 / 1; } }
.office--j { padding-top: clamp(56px, 7vw, 96px); }
.office--j .hd { margin-bottom: 28px; }
.tel-box { margin-top: clamp(24px, 3vw, 40px); padding-top: 24px; border-top: 1px solid var(--line2); }
.tel-box p { margin-bottom: 6px; }
.news--page { border-top: 1px solid var(--wood); }
.tbl--field td { font-size: 15px; }
.hours .mk { font-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .hk4 .route { stroke-dashoffset: 120; transition: stroke-dashoffset 2.4s ease; }
  .js .hk4.is-in .route { stroke-dashoffset: 0; }
}

.hk1__card .s > span { display: block; }
.phead + .sec { padding-top: clamp(44px, 5vw, 72px); }
.hk2__pt--band .bandlabel { align-self: start; }
.field-fee__head { max-width: 44em; margin-bottom: 28px; }
.band__door { display: none; }

@media (max-width: 860px) {
  .hk1__gap { padding-left: 0; justify-content: center; }
  .hk1__gap .ar { position: absolute; left: 50%; top: 0; }
  .hk1__gap .nt { position: absolute; left: calc(50% + 14px); right: 0; top: 50%; bottom: auto; transform: translateY(-50%); white-space: normal; }
  .hk1__branch { pointer-events: none; }
}
@media (max-width: 760px) {
  .hk3 { padding: 12px 8px; }
}
