/* つばくろ司法書士事務所（デモ）
   白・つばめの紺・若草。紺は見出しと札の地、若草は線と期限の印だけ。角は丸めない。 */
:root {
  --navy: #22304A;
  --navy-d: #1A2539;
  --ink: #1B2333;
  --sub: #4F5868;
  --grass: #9BBF6A;
  --grass-pale: #F1F6EA;
  --line: #D6DAE1;
  --paper: #F5F6F8;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --w: 1160px;
  --pad: clamp(20px, 4.5vw, 48px);
  --ease: cubic-bezier(.22, .7, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: clamp(15px, 0.9rem + 0.25vw, 17px); line-height: 1.85; letter-spacing: .02em;
  overflow-x: hidden; word-break: auto-phrase; text-wrap: pretty;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--grass); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: calc(var(--w) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.small { font-size: .86em; color: var(--sub); margin-top: 14px; line-height: 1.75; }
.small a, .txt a, .faq a { color: var(--navy); text-underline-offset: 3px; }

/* ── ロゴ */
.logo { display: block; height: auto; color: var(--navy); overflow: visible; }
.logo__a { font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: .06em; fill: var(--navy); }
.logo__b { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .08em; fill: var(--navy); }
.logo--hd { width: 264px; }
.logo--ft { width: 282px; }

/* ── ヘッダー */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; gap: 18px; max-width: 1360px; margin: 0 auto; padding: 12px var(--pad); min-height: 72px; }
.brand { display: block; text-decoration: none; flex: none; }
.demo { flex: none; font-size: 10px; letter-spacing: .14em; color: var(--sub); border: 1px solid var(--line); padding: 1px 6px; line-height: 1.5; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 4px; }
.gnav a { display: block; padding: 10px 12px; text-decoration: none; font-size: 15px; font-weight: 700; color: var(--ink); position: relative; }
.gnav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--grass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.gnav a[aria-current="page"] { color: var(--navy); }
.gnav__tel { display: none !important; }
.hd__tel { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center; text-decoration: none; line-height: 1.2; color: var(--navy); }
.hd__tel .ic-tel { width: 18px; height: 18px; grid-row: 1; }
.hd__num { font-weight: 700; font-size: 19px; letter-spacing: .04em; }
.hd__tel small { grid-column: 2; font-size: 11px; color: var(--sub); }
.ic-tel { width: 1.1em; height: 1.1em; flex: none; }
.menu { display: none; }

/* ── ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 10px 22px; font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-decoration: none; border: 1px solid var(--navy); cursor: pointer; transition: background-color .2s, color .2s; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-d); }
.btn--out { background: #fff; color: var(--navy); }
.btn--out:hover { background: var(--grass-pale); }
.btn--white { background: #fff; color: var(--navy); border-color: #fff; }
.btn--white:hover { background: var(--grass-pale); }
.btn--lg { min-height: 58px; padding: 12px 30px; font-size: 16px; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 14px; }
.hd__btn { min-height: 44px; flex: none; }
.arw { display: inline-block; width: 18px; height: 1px; background: currentColor; position: relative; transition: transform .25s var(--ease); }
.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; }
a:hover > .arw, button:hover > .arw { transform: translateX(4px); }
.more { color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--grass); padding-bottom: 2px; }
.act { margin-top: 32px; }

/* ── 見出しのあしらい（つばめが飛ぶ向きの2本の斜めの線） */
.ttl { font-family: var(--serif); font-size: clamp(24px, 1.2rem + 1.3vw, 34px); line-height: 1.5; letter-spacing: .06em; color: var(--navy); font-feature-settings: "palt"; text-wrap: balance; }
.ttl::before {
  content: ""; display: block; width: 30px; height: 22px; margin-bottom: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M1 21L13 1M12 21L24 1' stroke='%239BBF6A' stroke-width='2.2' fill='none'/%3E%3C/svg%3E") no-repeat left bottom / contain;
  transform-origin: left bottom;
}
.sec { padding: clamp(64px, 8vw, 112px) 0; }
.sec--pale { background: var(--grass-pale); }
.sec--line { border-top: 1px solid var(--line); padding: clamp(52px, 6vw, 84px) 0; }
.sec--pale + .sec--line, .sec--line.sec--pale { border-top: 0; }
.txt { display: grid; gap: 1.1em; }
.txt--w { max-width: 760px; margin-top: 40px; }
.two { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 40px 64px; align-items: start; }
.rule { border-left: 3px solid var(--grass); padding-left: 24px; }

/* ── トップ：写真の細い帯と3つの札 */
.hero__band { position: relative; height: clamp(220px, 34vh, 360px); overflow: hidden; border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); }
.hero__band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 74%; }
.hero__plate-wrap { position: absolute; left: 0; right: 0; bottom: 0; }
.hero__plate {
  display: inline-flex; align-items: center; gap: 18px; position: relative;
  background: var(--navy); color: #fff; font-family: var(--serif); font-size: clamp(20px, 0.9rem + 1.4vw, 32px); letter-spacing: .08em; line-height: 1.4;
  padding: 18px 28px 18px 24px; font-feature-settings: "palt";
}
.hero__plate::before { content: ""; width: 34px; height: 26px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M1 21L13 1M12 21L24 1' stroke='%239BBF6A' stroke-width='2.2' fill='none'/%3E%3C/svg%3E") no-repeat center / contain; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 3px; }
.card a {
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px; height: 100%; min-height: 240px;
  background: var(--navy); color: #fff; text-decoration: none; padding: clamp(24px, 2.6vw, 38px) clamp(22px, 2.4vw, 36px) 26px;
  position: relative; transition: background-color .25s;
}
.card a::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--grass); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card a:hover { background: var(--navy-d); }
.card a:hover::before { transform: scaleX(1); }
.card__name { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 1.2rem + 2vw, 44px); letter-spacing: .08em; line-height: 1.3; font-feature-settings: "palt"; }
.card__txt { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.9); }
.card__due { display: block; font-style: normal; margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--grass); color: #fff; font-weight: 700; }
.card .arw { justify-self: end; width: 34px; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 30px 0 8px; }
.hero__note { font-size: clamp(15px, .9rem + .3vw, 18px); font-weight: 700; color: var(--navy); }

/* ── お知らせ */
.news { padding: 40px 0 0; }
.news__in { display: grid; grid-template-columns: 160px 1fr auto; gap: 8px 32px; align-items: start; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--line); padding-top: 22px; padding-bottom: 22px; }
.news__ttl { font-family: var(--serif); font-size: 18px; color: var(--navy); letter-spacing: .1em; padding-top: 4px; }
.news__list li { display: grid; grid-template-columns: 110px 1fr; gap: 4px 20px; padding: 6px 0; font-size: 15px; }
.news__list time { color: var(--sub); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.news__more { align-self: end; white-space: nowrap; }
.sec .news__in { border-top: 0; padding-top: 0; }

/* ── トップ：期限・費用・司法書士から・相談 */
.due__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.cost__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px 64px; align-items: center; }
.msg__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px 72px; align-items: center; }
.msg__body { display: grid; gap: 1.1em; margin-top: 28px; font-size: 1.02em; }
.msg__name { margin-top: 28px; font-family: var(--serif); font-weight: 600; color: var(--navy); letter-spacing: .08em; }
.msg__name small { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--sub); margin-left: .4em; letter-spacing: .02em; }
.msg__photo { margin: 0; position: relative; padding: 0 0 18px 18px; }
.msg__photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 60%; height: 60%; border-left: 2px solid var(--grass); border-bottom: 2px solid var(--grass); }
.msg__photo img { aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 30%; width: 100%; }
.cta { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.cta__in, .band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta__ttl, .band__ttl { font-family: var(--serif); font-size: clamp(24px, 1.1rem + 1.6vw, 38px); letter-spacing: .06em; line-height: 1.45; margin-bottom: 10px; font-feature-settings: "palt"; }
.cta__act, .band__act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .04em; color: var(--navy); white-space: nowrap; }
.tel small { font-weight: 400; font-size: 13px; color: var(--sub); letter-spacing: .02em; }
.tel--w { color: #fff; }
.tel--w small { color: rgba(255,255,255,.8); }
.tel--big { font-size: clamp(24px, 1rem + 2vw, 34px); }

/* 共通の帯（下層） */
.band { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0; position: relative; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; max-width: calc(var(--w)); margin: 0 auto; background: var(--grass); }
.band__ttl { color: var(--navy); }

/* ── 下層の頭 */
.ph { padding-top: 28px; }
.crumb { font-size: 13px; color: var(--sub); display: flex; gap: 8px; margin-bottom: 18px; }
.crumb a { color: var(--sub); }
.ph__ttl { font-size: clamp(30px, 1.4rem + 2vw, 46px); margin-bottom: 30px; }
.ph__band { height: clamp(180px, 26vw, 320px); overflow: hidden; border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); }
.ph__band img { width: 100%; height: 100%; object-fit: cover; }
.ph__lead { position: relative; margin-top: -36px; display: inline-block; max-width: 760px; background: #fff; padding: 22px 28px 0 0; font-size: clamp(16px, .95rem + .4vw, 20px); font-weight: 700; color: var(--navy); line-height: 1.8; }

/* ── 図：相続の登記の流れ */
.dg { margin: 0; }
.dg__note { margin-top: 18px; font-size: 14px; color: var(--sub); }
.tb1 { border: 1px solid var(--line); background: #fff; padding: clamp(22px, 3vw, 40px); margin-top: 12px; }
.tb1--lines { padding-block: 30px; }
.tb1__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; margin-bottom: 36px; }
.tb1__steps li { position: relative; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; text-align: center; padding: 18px 8px; line-height: 1.5; display: grid; place-items: center; min-height: 72px; }
.tb1__steps li + li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--navy); border-right: 2px solid var(--navy); transform: translateY(-50%) rotate(45deg); }
.tb1__lines { display: grid; gap: 22px; }
.tb1__ln { display: grid; grid-template-columns: minmax(150px, 230px) 1fr 24px; align-items: center; gap: 16px; }
.tb1__from { font-weight: 700; font-size: 15px; color: var(--navy); padding-left: 14px; border-left: 3px solid var(--grass); line-height: 1.5; }
.tb1__track { position: relative; height: 44px; display: flex; align-items: center; }
.tb1__bar { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--grass); transform-origin: left; }
.tb1__bar::before { content: ""; position: absolute; left: -2px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--grass); }
.tb1__txt { position: relative; margin: 0 auto; background: #fff; padding: 2px 14px; font-weight: 700; font-size: 16px; color: var(--ink); }
.tb1 .flag { width: 22px; height: 30px; transform-origin: 15% 100%; }

/* ── 図：費用の3つの箱 */
.tb2 { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr; align-items: stretch; gap: 10px; }
.tb2__box { padding: 20px 18px; display: grid; align-content: center; gap: 6px; min-height: 120px; text-align: center; }
.tb2__box--fee { background: #fff; border: 2px solid var(--grass); }
.tb2__box--tax { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.tb2__box--cost { background: #fff; border: 1px solid #A3A9B4; }
.tb2__name { font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 1rem + .6vw, 24px); letter-spacing: .06em; line-height: 1.4; }
.tb2__to { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
.to__arw { width: 16px; height: 10px; flex: none; }
.tb2__plus { position: relative; align-self: center; height: 22px; }
.tb2__plus::before, .tb2__plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--navy); }
.tb2__plus::before { width: 18px; height: 2px; margin: -1px 0 0 -9px; }
.tb2__plus::after { width: 2px; height: 18px; margin: -9px 0 0 -1px; }
.tb2--l { margin-top: 12px; }
.tb2--l .tb2__box { min-height: 170px; }
.tb2--l .tb2__name { font-size: clamp(22px, 1.1rem + 1vw, 30px); }
.tb2--l .tb2__to { font-size: 15px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 36px 0 0; padding-left: 0; }
.three > div { border-top: 1px solid var(--navy); padding-top: 16px; }
.three dt { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.three dd { margin: 0; }

.calc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px 64px; align-items: start; }
.calc .txt { margin-top: 28px; }
.gcard { margin-top: 28px; border: 2px solid var(--grass); background: #fff; padding: 20px 24px; font-weight: 700; color: var(--navy); }
.tb2calc { background: var(--navy); color: #fff; padding: clamp(26px, 3vw, 40px); }
.tb2calc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 14px; }
.tb2calc__head .tb2__name { font-size: clamp(22px, 1rem + 1vw, 28px); }
.tb2calc__rows { display: grid; gap: 6px; padding: 22px 0; text-align: right; }
.tb2calc__row { display: flex; justify-content: flex-end; align-items: baseline; gap: 14px; font-variant-numeric: tabular-nums; }
.tb2calc__row b { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 1.2rem + 1.6vw, 40px); letter-spacing: .04em; line-height: 1.35; }
.tb2calc__row--base span { font-size: 14px; color: rgba(255,255,255,.85); }
.tb2calc__row--sum { border-top: 2px solid var(--grass); padding-top: 10px; margin-top: 4px; }
.tb2calc__row--sum b { font-size: clamp(34px, 1.4rem + 2.4vw, 54px); }
.tb2calc__note { font-size: 14px; color: rgba(255,255,255,.88); border-left: 3px solid var(--grass); padding-left: 12px; }

/* ── 表 */
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.tbl--navy thead th, .tbl--fee thead th { background: var(--navy); color: #fff; font-weight: 700; border-bottom: 0; }
.tbl--navy tbody th, .tbl--fee tbody th { font-weight: 700; color: var(--navy); width: 38%; }
.tbl--navy td b { font-family: var(--serif); font-weight: 600; font-size: 1.25em; color: var(--navy); }
.tbl--side th { width: 30%; background: var(--paper); color: var(--navy); font-weight: 700; }
.tbl--side { border-top: 2px solid var(--navy); }
.tbl--fee td { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb3, .tbl--side, .tbl--fee { margin-top: 12px; }
.plain li + li { margin-top: 4px; }

/* ── 相続の登記：流れ */
.flow5 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px 64px; align-items: start; }
.flow5__photo { margin: 0; position: sticky; top: 110px; }
.flow5__photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; }
.steps { margin-top: 32px; position: relative; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 0 0 28px; position: relative; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 6px; width: 2px; background: var(--grass); }
.steps__no { width: 52px; height: 52px; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 22px; }
.steps h3, .vflow h3, .row4 h3, .kinds h3 { font-family: var(--serif); font-size: 20px; color: var(--navy); letter-spacing: .05em; line-height: 1.5; margin: 10px 0 6px; }
.steps__time { display: inline-block; margin-left: 12px; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink); border: 1px solid var(--grass); background: #fff; padding: 0 10px; vertical-align: 2px; letter-spacing: .04em; }

.sq li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px dashed var(--line); }
.sq li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 11px; height: 11px; border: 2px solid var(--navy); }
.aside { border: 1px solid var(--navy); padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: 220px 1fr; gap: 12px 40px; align-items: start; background: #fff; }
.aside__ttl { font-family: var(--serif); font-size: 20px; color: var(--navy); letter-spacing: .06em; }
.aside > p { grid-column: 2; }
.aside--no { border-width: 2px; }

/* ── 会社の登記 */
.shelf { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px 64px; align-items: center; }
.shelf__photo { margin: 0; }
.shelf__photo img { aspect-ratio: 5 / 6; object-fit: cover; object-position: 55% 50%; }
.kinds { margin-top: 28px; border-top: 1px solid var(--navy); }
.kinds li { padding: 18px 0 20px 22px; border-bottom: 1px solid var(--line); position: relative; }
.kinds li::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; background: var(--navy); }
.kinds h3 { margin-top: 0; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px; border-top: 4px solid var(--navy); }
.row4 li { padding: 22px 22px 8px 0; position: relative; }
.row4 li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.row4__no { display: block; font-family: var(--serif); font-weight: 600; font-size: 34px; color: var(--navy); line-height: 1; }
.row4__no::after { content: ""; display: block; width: 26px; height: 3px; background: var(--grass); margin-top: 12px; }

/* ── 成年後見 */
.cases li { font-family: var(--serif); font-weight: 600; font-size: clamp(17px, 1rem + .5vw, 21px); color: var(--navy); line-height: 1.6; padding: 18px 0 18px 46px; border-bottom: 1px solid var(--line); position: relative; }
.cases li:first-child { border-top: 1px solid var(--line); }
.cases li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 24px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M1 21L13 1M12 21L24 1' stroke='%239BBF6A' stroke-width='2.4' fill='none'/%3E%3C/svg%3E") no-repeat center / contain; }
.tb4 { display: grid; grid-template-columns: 1fr 170px; column-gap: 24px; margin-top: 16px; max-width: 900px; }
.tb4__steps { grid-column: 1; grid-row: 1 / 6; display: grid; grid-template-rows: subgrid; }
.tb4__steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: center; padding: 10px 0; position: relative; }
.tb4__steps li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: calc(50% + 24px); height: calc(50% - 4px); width: 2px; background: var(--navy); opacity: .35; }
.tb4__steps li:not(:first-child)::before { content: ""; position: absolute; left: 23px; bottom: calc(50% + 24px); height: calc(50% - 4px); width: 2px; background: var(--navy); opacity: .35; }
.tb4__no { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 20px; }
.tb4__t { font-weight: 700; line-height: 1.6; background: #fff; border: 1px solid var(--line); padding: 14px 18px; }
.tb4__tag { grid-column: 2; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.5; margin: 10px 0; padding: 8px 10px; }
.tb4__tag--office { grid-row: 1; border: 2px solid var(--grass); color: var(--navy); background: #fff; }
.tb4__tag--court { grid-row: 2 / 5; background: var(--navy); color: #fff; letter-spacing: .1em; }
.tb4 .dg__note { grid-column: 1 / -1; grid-row: 6; }

/* ── ご相談 */
.vflow li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; position: relative; padding-bottom: 26px; }
.vflow li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 4px; width: 2px; background: var(--grass); }
.vflow__no { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--navy); color: var(--navy); font-family: var(--serif); font-weight: 600; font-size: 20px; background: #fff; }
.vflow h3 { margin-top: 6px; }
.line-box { margin-top: 18px; padding: 20px 22px; background: var(--paper); border-left: 3px solid var(--navy); display: grid; gap: 14px; justify-items: start; }
.line-box .small { margin-top: 0; }
.formwrap { max-width: 860px; }
.form { margin-top: 28px; background: #fff; padding: clamp(22px, 4vw, 48px); border-top: 3px solid var(--navy); display: grid; gap: 22px; }
.f { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.f > label, .f legend { font-weight: 700; color: var(--navy); font-size: 15px; padding: 0; }
.req { display: inline-block; margin-left: 10px; font-size: 11px; font-weight: 700; color: #fff; background: var(--navy); padding: 1px 7px; vertical-align: 2px; letter-spacing: .08em; }
.f input[type="text"], .f input[type="tel"], .f input[type="email"], .f select, .f textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #9AA1AD; border-radius: 0; padding: 12px 14px; min-height: 50px; }
.f select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2322304A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; padding-right: 40px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--grass); outline-offset: 0; border-color: var(--navy); }
.f__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f__two label { display: grid; gap: 6px; font-size: 14px; color: var(--sub); font-weight: 700; }
.f--dates .small { margin-top: 2px; }
.f--agree label { display: flex; gap: 10px; align-items: center; font-weight: 400; color: var(--ink); }
.f--agree input { width: 20px; height: 20px; accent-color: var(--navy); }
.f--agree a { color: var(--navy); }
.form.is-checked :invalid { border-color: #B3261E; }
.f__err { color: #B3261E; font-weight: 700; }
.form .btn { justify-self: start; }
.form > .small { margin-top: -8px; }
.mapgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px 32px; align-items: stretch; margin-top: 12px; }
.tbl--map { margin-top: 24px; }
.tb5 svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.tb5 text { font-family: var(--sans); font-size: 18px; font-weight: 700; fill: var(--navy); }
.tb5 .m-road { font-size: 15px; fill: var(--sub); font-weight: 400; }
.tb5 .m-st { font-size: 18px; }
.tb5 .m-name { font-family: var(--serif); font-size: 18px; }
.tb5 .m-bld { font-size: 15px; font-weight: 400; }
.tb5 .m-walk text { font-size: 18px; }
.mapside__photo { margin: 0; }
.mapside__photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.faq > div { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq > div:first-child { border-top: 1px solid var(--navy); }
.faq dt { font-weight: 700; color: var(--navy); padding-left: 36px; position: relative; }
.faq dd { margin: 10px 0 0; padding-left: 36px; position: relative; }
.faq dt::before, .faq dd::before { position: absolute; left: 0; top: 0; font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.6; }
.faq dt::before { content: "Q"; color: var(--navy); }
.faq dd::before { content: "A"; color: #6E9440; }
#news .news__in { grid-template-columns: 160px 1fr; border-bottom: 0; }

/* ── フッター */
.ft { background: var(--paper); border-top: 3px solid var(--navy); padding: 48px 0 24px; font-size: 14px; }
.ft__in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px 48px; }
.ft__who { margin-top: 18px; }
.ft__addr { margin-top: 4px; color: var(--sub); }
.ft__addr a { color: var(--ink); text-decoration: none; }
.ft__nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 36px; align-content: start; justify-content: end; }
.ft__nav a { text-decoration: none; color: var(--navy); font-weight: 700; }
.ft__nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ft__copy { margin-top: 36px; font-size: 12px; color: var(--sub); }

/* ── 動き（html.js のときだけ隠す。最初の画面は読み込み時に出す） */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes slant { from { opacity: 0; transform: translate(-10px, 10px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes flag { from { opacity: 0; transform: translateY(-10px) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }

.js .hero__plate { animation: rise .8s var(--ease) .15s both; }
.js .hero__plate::before { animation: slant .7s var(--ease) .55s both; }
.js .card { animation: rise .8s var(--ease) both; animation-delay: calc(.3s + var(--i) * .12s); }
.js .hero__band img { animation: pop 1s ease both; }

.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .ttl.rv::before { opacity: 0; transform: translate(-8px, 8px) scale(.6); transition: opacity .6s var(--ease) .2s, transform .6s var(--ease) .2s; }
.js .ttl.rv.is-in::before { opacity: 1; transform: none; }

.js .dg .tb1__steps li { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * .1s); }
.js .dg .tb1__bar { transform: scaleX(0); transition: transform 1.1s var(--ease); transition-delay: calc(.4s + var(--i) * .25s); }
.js .dg .tb1__txt, .js .dg .tb1__from { opacity: 0; transition: opacity .6s ease; transition-delay: calc(.3s + var(--i) * .25s); }
.js .dg .tb1__ln .flag { opacity: 0; transform: translateY(-10px) rotate(-12deg); transition: opacity .5s ease, transform .6s var(--ease); transition-delay: 1.4s; }
.js .dg .tb1__ln:nth-child(2) .flag { transition-delay: 1.65s; }
.js .dg.is-in .tb1__steps li, .js .dg.is-in .tb1__txt, .js .dg.is-in .tb1__from, .js .dg.is-in .tb1__ln .flag { opacity: 1; transform: none; }
.js .dg.is-in .tb1__bar { transform: scaleX(1); }

.js .tb2 > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .tb2 > :nth-child(2) { transition-delay: .12s; } .js .tb2 > :nth-child(3) { transition-delay: .24s; }
.js .tb2 > :nth-child(4) { transition-delay: .36s; } .js .tb2 > :nth-child(5) { transition-delay: .48s; }
.js .tb2.is-in > * { opacity: 1; transform: none; }
.js .tb2calc .tb2calc__row { opacity: 0; transform: translateX(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.2s + var(--i) * .3s); }
.js .tb2calc.is-in .tb2calc__row { opacity: 1; transform: none; }
.js .tb3 tbody tr { opacity: 0; transition: opacity .6s ease; }
.js .tb3 tbody tr:nth-child(2) { transition-delay: .15s; } .js .tb3 tbody tr:nth-child(3) { transition-delay: .3s; }
.js .tb3.is-in tbody tr { opacity: 1; }
.js .tb4 .tb4__steps li, .js .tb4 .tb4__tag { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .tb4 .tb4__steps li { transition-delay: calc(var(--i) * .14s); }
.js .tb4 .tb4__tag--office { transition-delay: .4s; } .js .tb4 .tb4__tag--court { transition-delay: .6s; }
.js .tb4.is-in .tb4__steps li, .js .tb4.is-in .tb4__tag { opacity: 1; transform: none; }
.js .tb5 .m-dots circle { opacity: 0; transition: opacity .25s ease; transition-delay: calc(.3s + var(--i) * .05s); }
.js .tb5 .m-walk { opacity: 0; transition: opacity .6s ease 1.6s; }
.js .tb5.is-in .m-dots circle, .js .tb5.is-in .m-walk { opacity: 1; }

/* ── 画面の幅ごと */
@media (max-width: 1180px) {
  .hd__tel { display: none; }
}
@media (max-width: 1000px) {
  .menu { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-left: auto; background: none; border: 0; padding: 6px 4px; cursor: pointer; color: var(--navy); font: inherit; }
  .menu__bars, .menu__bars::before, .menu__bars::after { display: block; width: 26px; height: 2px; background: currentColor; position: relative; transition: transform .25s; }
  .menu__bars { margin: 8px 0; }
  .menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; }
  .menu__bars::before { top: -8px; } .menu__bars::after { top: 8px; }
  .menu__label { font-size: 10px; letter-spacing: .14em; font-weight: 700; }
  .is-menu .menu__bars { background: transparent; }
  .is-menu .menu__bars::before { transform: translateY(8px) rotate(45deg); }
  .is-menu .menu__bars::after { transform: translateY(-8px) rotate(-45deg); }
  .gnav { position: fixed; left: 0; right: 0; top: 72px; bottom: 0; background: #fff; padding: 12px var(--pad) 40px; overflow-y: auto; margin: 0; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
  .is-menu .gnav { visibility: visible; opacity: 1; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { font-size: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
  .gnav a::after { left: 4px; right: auto; width: 40px; bottom: -1px; }
  .gnav__tel { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 24px; color: var(--navy); font-size: 22px !important; border: 0 !important; }
  .gnav__tel small { width: 100%; font-size: 13px; color: var(--sub); font-weight: 400; }
  .hd__btn { order: 3; }
  .menu { order: 4; margin-left: 0; }
  .demo { margin-right: auto; }
  .cards { grid-template-columns: 1fr; }
  .card a { min-height: 0; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 20px; }
  .card__name { grid-column: 1; }
  .card__txt { grid-column: 1; }
  .card .arw { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .due__grid, .cost__grid, .msg__grid, .two, .flow5, .shelf, .calc, .mapgrid { grid-template-columns: 1fr; }
  .flow5__photo { position: static; }
  .mapside__photo img { aspect-ratio: 3 / 4; min-height: 0; height: auto; object-position: 0% 50% !important; }
  .flow5__photo img, .shelf__photo img { aspect-ratio: 16 / 9; }
  .msg__photo { max-width: 520px; }
  .tb1__steps { gap: 18px; }
  .tb1__steps li { font-size: 13px; padding: 12px 4px; }
  .tb1__steps li + li::before { left: -15px; width: 8px; height: 8px; }
  .row4 { grid-template-columns: 1fr 1fr; }
  .row4 li:nth-child(3) { padding-left: 0; border-left: 0; }
  .row4 li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .news__in { grid-template-columns: 1fr; }
  .news__more { justify-self: end; }
}
@media (max-width: 640px) {
  .hd__in { min-height: 64px; padding-top: 8px; padding-bottom: 8px; gap: 10px; }
  .gnav { top: 64px; }
  .logo--hd { width: 196px; }
  .hd__btn { display: none; }
  .hero__band { height: 200px; }
  .hero__plate { padding: 12px 18px 12px 16px; gap: 12px; }
  .hero__plate::before { width: 24px; height: 18px; }
  .hero__foot .btn { width: 100%; }
  .news__list li { grid-template-columns: 1fr; gap: 0; }
  .tb1__steps { grid-template-columns: 1fr; gap: 18px; }
  .tb1__steps li { min-height: 0; padding: 10px 8px; font-size: 14px; }
  .tb1__steps li + li::before { left: 50%; top: -13px; transform: translateX(-50%) rotate(135deg); }
  .tb1__ln { grid-template-columns: 1fr 22px; gap: 6px 10px; }
  .tb1__from { grid-column: 1 / -1; }
  .tb1__txt { font-size: 15px; padding: 2px 8px; }
  .tb2 { grid-template-columns: 1fr; gap: 6px; }
  .tb2__box { min-height: 0; padding: 16px; grid-template-columns: 1fr auto; text-align: left; align-items: center; }
  .tb2--l .tb2__box { min-height: 0; }
  .tb2__plus { height: 20px; }
  .three { grid-template-columns: 1fr; gap: 22px; }
  .aside { grid-template-columns: 1fr; }
  .aside > p { grid-column: 1; }
  .row4 { grid-template-columns: 1fr; }
  .row4 li, .row4 li + li { padding: 18px 0 6px; border-left: 0; }
  .row4 li + li { border-top: 1px solid var(--line); }
  .tb4 { grid-template-columns: 1fr 74px; column-gap: 12px; }
  .tb4__steps li { grid-template-columns: 40px 1fr; gap: 10px; }
  .tb4__no { width: 40px; height: 40px; font-size: 17px; }
  .tb4__steps li:not(:last-child)::after, .tb4__steps li:not(:first-child)::before { left: 19px; }
  .tb4__steps li:not(:last-child)::after { top: calc(50% + 20px); }
  .tb4__steps li:not(:first-child)::before { bottom: calc(50% + 20px); }
  .tb4__t { padding: 10px 12px; font-size: 14px; }
  .tb4__tag { font-size: 13px; padding: 6px 4px; }
  .tb4__tag--court { writing-mode: vertical-rl; letter-spacing: .3em; }
  .tbl th, .tbl td { padding: 12px 14px; }
  .tbl--side th, .tbl--side td { display: block; width: auto; }
  .tbl--side th { border-bottom: 0; padding-bottom: 6px; }
  .tbl--fee td { white-space: normal; }
  .tbl--navy tbody th, .tbl--fee tbody th { width: 44%; }
  .f__two { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .ft__in { grid-template-columns: 1fr; }
  .ft__nav { justify-content: start; }
  .logo--ft { width: 230px; }
  .ph__lead { margin-top: -26px; padding-top: 16px; }
  .tel { white-space: normal; flex-wrap: wrap; }
  .band__act .btn, .cta__act .btn { width: 100%; }
}
