/* 永鳥司法書士事務所 現代風デザインの土台(案A・案Bで共通)。自作。
   色・角の丸み・見出しの書体は下の変数で決まり、案ごとの skin.css が上書きする。
   外部フォント・外部CSS・JavaScript は使わない。マスコットは元のロゴ画像の一部を切り出して表示している。 */
:root {
  --bg: #fffaf4;
  --surface: #ffffff;
  --panel: #fff1de;            /* 元のバナー画像の地の色 */
  --ink: #33261d;
  --ink-soft: #6e5a4c;
  --head: #33261d;
  --brand: #db4c01;            /* ロゴの線の色 */
  --brand-strong: #c2470b;     /* 白い文字をのせるボタン用 */
  --brand-text: #b3400a;
  --brand-soft: #ffe3cc;
  --rule: #f0dcc8;
  --green: #047a34;
  --footer-bg: #4a2f1d;
  --footer-ink: #fbeee0;
  --radius: 22px;
  --radius-s: 12px;
  --pill: 999px;
  --shadow: 0 8px 28px rgba(140, 70, 10, .09);
  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --font-head: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --wrap: 1040px;
  --read: 780px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
main { padding: 12px 0 72px; }
body:not(.page-01) main > .wrap { max-width: calc(var(--read) + 48px); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin: .3em 0; }
li::marker { color: var(--brand); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.small { font-size: .88em; color: var(--ink-soft); }
.big { font-family: var(--font-head); font-size: 1.5em; font-weight: 700; }
.accent { color: var(--brand-text); font-weight: 700; }
.marker { background: linear-gradient(transparent 62%, var(--brand-soft) 62%); }

/* ---- 見出し */
main h1 { margin: 28px 0 34px; font-family: var(--font-head); font-size: clamp(1.55rem, 3.6vw, 2.2rem); line-height: 1.45; color: var(--head); text-wrap: balance; }
main h1::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 16px; border-radius: var(--pill); background: var(--brand); }
h2 { margin: 2.4em 0 .8em; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.55; color: var(--head); }
h2::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .55em; border-radius: 50%; background: var(--brand); vertical-align: .08em; }

/* ---- ヘッダー(上に固定) */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 8px 20px; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.brand { margin: 0; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; letter-spacing: .05em; line-height: 1.3; }
.brand a { display: inline-flex; align-items: center; gap: 10px; color: var(--head); text-decoration: none; }
.brand a::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff1de url(img/40376837_1094829157345474_2148920310265544704_n.jpg) -212px -60px / 275px auto no-repeat; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 8px 14px; border-radius: var(--pill); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 700; white-space: nowrap; }
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-text); }
.site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }
.btn-label { display: inline-block; padding: 1px 9px; border-radius: var(--pill); background: rgba(255, 255, 255, .22); font-size: .72em; font-weight: 700; letter-spacing: .08em; }
.header-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--pill); background: var(--brand-strong); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.header-tel:hover { background: var(--brand-text); color: #fff; }

/* ---- ボタン */
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn, .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: var(--pill); font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.btn:hover, .btn-line:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.btn-tel { background: var(--brand-strong); color: #fff; font-size: 1.2rem; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.btn-tel:hover { color: #fff; }
.btn-line { background: var(--green); color: #fff; }
.btn-line:hover { color: #fff; }
.hours { margin: 12px 0 0; font-size: .88rem; color: var(--ink-soft); }

/* ---- トップ: 大きな見出しとマスコット */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px 40px; padding: 44px 0 28px; }
.hero-title { margin: 0 0 18px; font-family: var(--font-head); font-size: clamp(2rem, 4.7vw, 3.3rem); font-weight: 700; line-height: 1.35; letter-spacing: .03em; color: var(--head); }
.hero-sub { margin: 0 0 14px; font-size: 1.05rem; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 5px 18px; border: 2px solid var(--brand); border-radius: var(--pill); background: var(--surface); font-weight: 700; line-height: 1.6; }
.hero-art { position: relative; aspect-ratio: 11 / 10; }
.hero-art::before { content: ""; position: absolute; inset: 3% 2% 5% 4%; border-radius: 47% 53% 50% 50% / 56% 46% 54% 44%; background: var(--panel); }
.mascot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 15.45% 50%; mix-blend-mode: multiply; transform: scale(.86); }
.lead-block { padding: 8px 0 12px; }
.lead { max-width: 44em; margin: 0 auto; font-size: 1.08rem; }

/* ---- トップ: 案内のカード */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 44px 0 64px; }
.card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px 24px; background: var(--surface); border: 1px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand-text); }
.card-icon { flex: none; width: 68px; height: 68px; padding: 17px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); }
.card-title { font-family: var(--font-head); font-weight: 700; line-height: 1.5; text-align: center; }
.card-title::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .5em; border-top: 2px solid var(--brand); border-right: 2px solid var(--brand); transform: rotate(45deg); vertical-align: .12em; }

/* ---- トップ: 相談の流れ */
.steps h2, .line-block h2 { margin-top: 0; text-align: center; font-size: 1.45rem; }
.steps ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; margin: 0; padding: 20px 16px 18px; background: var(--surface); border-radius: var(--radius-s); box-shadow: var(--shadow); }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 30px; z-index: 1; width: 10px; height: 10px; border-top: 3px solid var(--brand); border-right: 3px solid var(--brand); transform: rotate(45deg); }
.step-label { display: inline-block; margin-bottom: 8px; padding: 1px 12px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand-text); font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
.step-title { display: block; font-family: var(--font-head); font-weight: 700; line-height: 1.5; }
.steps li p { margin: 8px 0 0; font-size: .88rem; line-height: 1.75; color: var(--ink-soft); }
.line-block { margin-top: 64px; padding: 36px 24px; border-radius: var(--radius); background: var(--panel); }
.line-block .line { justify-content: center; }

/* ---- 枠 */
.box { margin: 0 0 28px; padding: 26px 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.box > :last-child { margin-bottom: 0; }
.box > h2:first-child { margin-top: 0; }
.box.note { background: var(--panel); box-shadow: none; }
.box-title { display: inline-block; margin: 0 10px 10px 0; padding: 2px 14px; border-radius: var(--pill); background: var(--brand-strong); color: #fff; font-size: .85rem; font-weight: 700; }
.plus { margin: -10px 0 18px; text-align: center; color: var(--brand); font-size: 2rem; font-weight: 700; line-height: 1; }
.plus::before { content: "＋"; }

/* ---- 料金の表・事務所の表 */
table { width: 100%; margin: 0 0 1.3em; border-collapse: separate; border-spacing: 0; }
table.fee { max-width: 560px; }
table.fee td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.fee td:last-child { width: 11em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.fee tr.total td { border-bottom: 0; background: var(--brand-soft); color: var(--brand-text); font-size: 1.08em; font-weight: 700; }
table.fee tr.total td:first-child { border-radius: var(--radius-s) 0 0 var(--radius-s); }
table.fee tr.total td:last-child { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
table.info { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table.info th, table.info td { padding: 16px 22px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.info tr:last-child th, table.info tr:last-child td { border-bottom: 0; }
table.info th { width: 8em; color: var(--brand-text); font-size: .92rem; font-weight: 700; white-space: nowrap; }
table.info td > :last-child { margin-bottom: 0; }

/* ---- 司法書士のことば(顔写真つき) */
.voice { display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: start; margin: 0 0 32px; }
.voice figcaption { text-align: center; font-size: .78rem; line-height: 1.5; color: var(--ink-soft); word-break: keep-all; overflow-wrap: normal; }
.voice figcaption img { display: block; width: 92px; height: 92px; margin: 0 auto 8px; border-radius: 50%; border: 4px solid var(--brand-soft); object-fit: cover; }
.voice-body { position: relative; padding: 20px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.voice-body::before { content: ""; position: absolute; left: -8px; top: 34px; width: 16px; height: 16px; background: var(--surface); transform: rotate(45deg); }
.voice-body > :last-child { margin-bottom: 0; }

/* ---- 地図・連絡先・LINE */
.map { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 480px; border: 0; }
.contact { margin: 28px 0; padding: 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 18px 26px; margin: 0; align-items: start; }
.contact-list dt { color: var(--brand-text); font-size: .92rem; font-weight: 700; line-height: 2.4; }
.contact-list dd { margin: 0; }
.tel { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; font-variant-numeric: tabular-nums; }
.line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.line-qr { display: block; width: 132px; height: 132px; border: 1px solid var(--rule); border-radius: var(--radius-s); background: #fff; }

/* ---- メールフォーム */
.mailform-block { margin: 0 0 30px; padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.mailform-block h2 { margin-top: 0; }
.mailform { display: grid; gap: 18px; position: relative; }
.mf-field { display: grid; gap: 6px; min-width: 0; }
.mf-label { font-size: .95rem; font-weight: 700; color: var(--head); }
.mf-label .req { margin-left: .7em; padding: 1px 8px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand-text); font-size: .74rem; font-style: normal; font-weight: 700; }
.mailform input[type=text], .mailform input[type=email], .mailform textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: #fff; border: 1.5px solid var(--rule); border-radius: var(--radius-s); color: var(--ink); font: inherit; line-height: 1.6; transition: border-color .15s, box-shadow .15s; }
.mailform textarea { min-height: 180px; resize: vertical; }
.mailform input:focus, .mailform textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.mf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.btn-send { min-width: 9em; border: 0; background: var(--brand-strong); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.btn-send:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.mf-status { flex: 1 1 14em; margin: 0; font-size: .92rem; color: var(--ink-soft); }
.mf-status[data-kind="error"] { color: #a4262c; font-weight: 700; }
.mf-status[data-kind="ok"] { color: var(--green); font-weight: 700; }

/* ---- 本文の下の連絡先の帯 */
.cta-band { padding: 52px 0 56px; background: var(--panel); text-align: center; }
.cta-band .wrap::before { content: ""; display: block; width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%; background: #fff1de url(img/40376837_1094829157345474_2148920310265544704_n.jpg) -424px -121px / 550px auto no-repeat; }
.cta-title { margin: 0 0 20px; font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--head); }
.cta-band .cta-buttons { justify-content: center; }
.page-06 .cta-band, .page-10 .cta-band { display: none; }
.mobile-bar { display: none; }

/* ---- フッター */
.site-footer { padding: 40px 0 44px; background: var(--footer-bg); color: var(--footer-ink); font-size: .92rem; text-align: center; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #ffd9b8; }
.footer-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; letter-spacing: .06em; color: #fff; }
.copyright { margin-top: 16px !important; font-size: .8rem; opacity: .8; }

/* ---- 下書きのときだけ出るもの(--final では出ない) */
.draft-banner { padding: 8px 16px; background: #5b4a00; color: #fff; font-size: .85rem; text-align: center; }
.draft-banner a { margin-left: .5em; color: #ffe680; white-space: nowrap; }
mark.kakunin { background: #fff3a3; color: inherit; outline: 2px dashed #b89400; outline-offset: 1px; }
mark.kakunin sup { margin-left: 2px; color: #7a6200; font-weight: 700; }
.kakunin-list { max-width: var(--read); margin: 48px auto 0; padding: 16px 20px; background: #fffbe0; border: 2px dashed #b89400; border-radius: var(--radius-s); font-size: .9rem; }
.kakunin-list h2 { margin: 0 0 8px; font-size: 1rem; }
.kakunin-list h2::before { display: none; }
.kakunin-list ol { margin: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
table.list { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-s); overflow: hidden; font-size: .92rem; }
table.list th, table.list td { padding: 9px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.list th { background: var(--brand-soft); white-space: nowrap; }
table.list td:first-child, table.list td:nth-child(n+4) { white-space: nowrap; }
.page-list main > .wrap { max-width: var(--wrap); }

/* ---- 中くらいの画面 */
@media (max-width: 960px) {
  .header-tel { display: none; }
  .steps ol { grid-template-columns: 1fr; gap: 12px; max-width: 34em; margin: 0 auto; }
  .steps li { padding-left: 22px; }
  .steps li:not(:last-child)::after { right: auto; left: 28px; top: auto; bottom: -11px; transform: rotate(135deg); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
/* ---- 狭い画面(スマホ) */
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 68px; }
  html { scroll-padding-top: 16px; }
  .wrap { padding: 0 18px; }
  .site-header { position: static; }               /* スマホは下に固定ボタンがあるので、上は固定しない */
  .site-header .wrap { flex-wrap: wrap; justify-content: center; min-height: 0; }
  .brand a::before { width: 36px; height: 36px; background-position: -174px -49px; background-size: 225px auto; }
  .site-nav { margin: 0; width: 100%; }
  .site-nav ul { justify-content: center; }
  .site-nav a { padding: 5px 11px; font-size: .9rem; }
  .hero { grid-template-columns: 1fr; padding: 20px 0 12px; text-align: center; }
  .hero-art { order: -1; width: min(74%, 300px); margin: 0 auto; }
  .chips, .hero .cta-buttons { justify-content: center; }
  .chips { gap: 8px; }
  .chips li { padding: 3px 14px; }
  .hero .cta-buttons { display: none; }           /* スマホは画面の下の固定ボタンを使う */
  .hero .hours { display: none; }
  .lead { font-size: 1rem; }
  .cards { gap: 12px; margin: 32px 0 48px; }
  .card { padding: 20px 10px 18px; gap: 10px; }
  .card-icon { width: 56px; height: 56px; padding: 14px; }
  .box, .contact { padding: 20px 18px; }
  .voice { grid-template-columns: 1fr; gap: 12px; }
  .voice figcaption { display: flex; align-items: center; gap: 12px; text-align: left; }
  .voice figcaption img { width: 60px; height: 60px; margin: 0; }
  .voice-body::before { left: 24px; top: -8px; }
  table.info, table.info tbody, table.info tr, table.info th, table.info td { display: block; width: 100%; }
  table.info th { border-bottom: 0; padding: 14px 18px 0; }
  table.info td { padding: 4px 18px 14px; }
  table.fee td { padding: 11px 8px; }
  table.fee td:last-child { width: auto; }
  .contact-list { grid-template-columns: 1fr; gap: 0; }
  .contact-list dt { line-height: 1.8; }
  .contact-list dd { margin-bottom: 16px; }
  .cta-band .cta-buttons { flex-direction: column; align-items: center; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -4px 16px rgba(0, 0, 0, .1); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--pill); color: #fff; font-weight: 700; text-decoration: none; }
  .mb-tel { background: var(--brand-strong); }
  .mb-line { background: var(--green); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-line, .card { transition: none; }
}
@media print {
  .site-header { position: static; }
  .site-nav, .header-tel, .draft-banner, .map, .mobile-bar, .cta-band { display: none; }
  body { background: #fff; font-size: 11pt; }
}
/* 案A「やわらか」: 土台(base.css)の色と形をそのまま使う。クリーム色とオレンジ、丸い見出し、やわらかい影。
   ここでは飾りだけを足す。 */
.skin-a .hero-art::after { content: ""; position: absolute; right: 4%; top: 2%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--brand-soft); }
.skin-a .hero-title { background: linear-gradient(transparent 68%, var(--brand-soft) 68%); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.skin-a .hero-sub { margin-top: 22px; }
.skin-a .steps { padding: 44px 28px 48px; border-radius: var(--radius); background: var(--panel); }
@media (max-width: 720px) {
  .skin-a .steps { padding: 30px 16px 32px; }
}
