/* 行政書士うどう綜合事務所 — サイト共通スタイル
   設計の考え方：ロゴの「紺と金」を基調に、公文書のように落ち着いた紙面。
   見出しは明朝（ロゴと同じ系統）、本文は読みやすさ重視のUDゴシック、数字は細身の欧文。 */

:root {
  --navy: #1a3a5c;        /* ロゴの紺（ブランド） */
  --navy-deep: #112840;
  --navy-soft: #e8eef5;
  --gold: #b08a3e;        /* ロゴ下線の金。線・小見出しに使う */
  --gold-soft: #f4eddc;
  --paper: #f5f7f9;       /* 青みのある紙色 */
  --white: #ffffff;
  --ink: #1d2733;
  --ink-2: #4a5665;
  --line: #d8dee6;
  --line-green: #06c755;  /* LINE公式の色 */
  --line-green-ink: #048a3b;
  --warn: #a8432a;

  --f-display: "Shippori Mincho B1", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --f-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-num: "Barlow Semi Condensed", "BIZ UDPGothic", "Yu Gothic", sans-serif;

  --fs-0: 0.8125rem;
  --fs-1: 0.9375rem;
  --fs-2: 1.0625rem;  /* 本文 */
  --fs-3: 1.25rem;
  --fs-4: 1.625rem;
  --fs-5: 2.125rem;
  --fs-6: 2.75rem;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --bar-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-2);
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.45; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-top {
  background: var(--navy-deep);
  color: #c9d4e0;
  font-size: var(--fs-0);
}
.site-top .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; }
.site-top a { color: #fff; text-decoration: none; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { flex: 0 0 auto; display: block; }
.logo img { width: 252px; height: auto; }
.gnav { margin-left: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.gnav a {
  display: block; padding: 8px 10px; color: #fff; text-decoration: none; white-space: nowrap;
  font-size: var(--fs-1); border-radius: var(--radius);
}
.gnav a:hover, .gnav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.head-tel { color: #fff; text-decoration: none; text-align: right; line-height: 1.2; }
.head-tel small { display: block; font-size: 11px; color: var(--gold-soft); letter-spacing: .08em; }
.head-tel .num { font-size: 1.5rem; font-weight: 600; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: var(--radius); padding: 6px 12px; font: inherit; font-size: var(--fs-1); cursor: pointer; }
@media (max-width: 1400px) {
  .head-tel { display: none; }
}
@media (max-width: 1080px) { .gnav a { padding: 8px 6px; font-size: var(--fs-0); } }
@media (max-width: 960px) {
  .site-top { display: none; }
  .logo img { width: 210px; }
  .menu-btn { display: block; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-deep); padding: 8px var(--gutter) 16px; }
  .gnav.is-open { display: block; }
  .gnav ul { flex-direction: column; }
  .gnav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 22px; border-radius: var(--radius);
  font-family: var(--f-body); font-weight: 700; font-size: var(--fs-2);
  text-decoration: none; border: 2px solid transparent; line-height: 1.3; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn small { display: block; font-weight: 400; font-size: var(--fs-0); opacity: .9; }
.btn-tel { background: var(--navy); color: #fff; }
.btn-tel:hover { background: var(--navy-deep); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: var(--line-green-ink); color: #fff; }
.btn-mail { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-mail:hover { background: var(--navy-soft); color: var(--navy); }
.band-navy .btn-tel { background: var(--white); color: var(--navy); }
.band-navy .btn-tel:hover { background: var(--navy-soft); color: var(--navy); }
.band-navy .btn-mail { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.band-navy .btn-mail:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.cta-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cta-row .btn { flex-direction: column; gap: 2px; text-align: center; }
.cta-row .btn .label { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .cta-row { grid-template-columns: 1fr; } .cta-row .btn { flex-direction: row; gap: 10px; justify-content: flex-start; } }

/* ---------- 共通の帯 ---------- */
.band { padding-block: clamp(56px, 8vw, 96px); }
.band-paper { background: var(--paper); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy a { color: #fff; }
.eyebrow {
  display: inline-block; font-size: var(--fs-0); letter-spacing: .14em; color: var(--gold);
  font-weight: 700; margin-bottom: 8px;
}
.band-navy .eyebrow { color: #d9bf85; }
.band-title { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-5); margin: 0 0 12px; color: var(--navy); }
.band-navy .band-title { color: #fff; }
.band-lead { color: var(--ink-2); max-width: 46em; margin-bottom: 32px; }
.band-navy .band-lead { color: #d6dfe9; }
.rule { width: 48px; height: 3px; background: var(--gold); border: 0; margin: 0 0 20px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.more::after { content: "→"; }
@media (max-width: 640px) { .band-title { font-size: var(--fs-4); } }

/* ---------- ヒーロー ---------- */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%); padding-block: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 64px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-kicker { font-weight: 700; color: var(--navy); font-size: var(--fs-1); display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.hero-kicker span { border-left: 3px solid var(--gold); padding-left: 10px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 700; color: var(--navy-deep);
  font-size: clamp(1.9rem, 4.2vw, var(--fs-6)); line-height: 1.4; margin: 0 0 20px; letter-spacing: .05em;
}
.hero h1 em { font-style: normal; background: linear-gradient(transparent 68%, var(--gold-soft) 68%); }
.hero-lead { font-size: var(--fs-2); color: var(--ink-2); max-width: 34em; margin-bottom: 24px; }
.hero-facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: var(--fs-1); }
.hero-facts li { display: flex; gap: 8px; align-items: baseline; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: 0 0 auto; position: relative; top: -2px; }
.hero-check { margin-top: 14px; font-size: var(--fs-1); }
.hero-photo { position: relative; justify-self: center; max-width: 360px; width: 100%; }
.hero-photo .ph { position: relative; }
.hero-photo .ph > img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; width: 100%; border-radius: var(--radius); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: none; width: 100%; order: -1; }
  .hero { padding-block: 20px 36px; }
  /* スマホ：写真は画面の高さで伸び縮みさせない（横幅に対して一定の比率。頭の上から胸までが、どの画面でも同じに写る） */
  .hero-photo .ph > img { aspect-ratio: 6 / 5; height: auto; object-position: center 4%; }
}
@media (max-width: 480px) { .hero-facts { grid-template-columns: 1fr; } }

/* ---------- 状況別の入口 ---------- */
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.entry {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 18px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.entry:hover { border-color: var(--navy); box-shadow: 0 6px 18px rgba(17,40,64,.08); color: var(--ink); }
.entry .e { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.entry .q { font-weight: 700; font-size: var(--fs-3); color: var(--navy-deep); line-height: 1.5; }
.entry .to { margin-top: auto; padding-top: 10px; font-size: var(--fs-1); color: var(--navy); font-weight: 700; border-top: 1px dashed var(--line); }
.entry .to::after { content: " →"; }
@media (max-width: 860px) { .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .entries { grid-template-columns: 1fr; } }

/* ---------- セルフチェック ---------- */
.check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.check-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.check-form fieldset { border: 0; margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.check-form legend { font-weight: 700; padding: 0; margin-bottom: 4px; display: flex; gap: 10px; }
.check-form legend .num { color: var(--gold); font-size: 1.25rem; line-height: 1.3; }
.check-form .hint { font-size: var(--fs-0); color: var(--ink-2); margin: 0 0 10px; padding-left: 26px; line-height: 1.6; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 26px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choices span { display: inline-block; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-1); cursor: pointer; }
.choices input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choices input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check-result { border-radius: var(--radius); padding: 18px 20px; background: var(--paper); color: var(--ink); border-left: 4px solid var(--line); }
.check-result h3 { margin: 0 0 6px; font-size: var(--fs-3); }
.check-result[data-level="ok"] { border-left-color: #2f7d4f; background: #eef6f0; }
.check-result[data-level="maybe"] { border-left-color: var(--gold); background: var(--gold-soft); }
.check-result[data-level="hard"] { border-left-color: var(--warn); background: #f8ece8; }
.check-result p:last-child { margin-bottom: 0; }
.check-note { font-size: var(--fs-0); color: #c4d0dd; margin-top: 16px; }
@media (max-width: 860px) { .check { grid-template-columns: 1fr; } }

/* ---------- 選ばれる理由・距離 ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: r; }
.reason h3 { font-family: var(--f-display); font-size: var(--fs-3); color: var(--navy-deep); margin: 0 0 10px; padding-top: 14px; border-top: 2px solid var(--navy); }
.reason p { color: var(--ink-2); font-size: var(--fs-1); }
.reason .big { font-family: var(--f-num); font-size: 2.75rem; font-weight: 600; color: var(--navy); line-height: 1; display: block; margin-bottom: 8px; }
.reason .big small { font-family: var(--f-body); font-size: var(--fs-1); margin-left: 4px; color: var(--ink-2); font-weight: 400; }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; gap: 24px; } }

.distance { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.distance h3 { font-family: var(--f-display); color: var(--navy-deep); font-size: var(--fs-4); margin: 0 0 12px; }
.distance p { color: var(--ink-2); }
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-1); }
.route li:last-child { border-bottom: 0; }
.route b { color: var(--navy); }
@media (max-width: 860px) { .distance { grid-template-columns: 1fr; } }

/* ---------- 事例 ---------- */
.case-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; font-size: var(--fs-1); color: var(--ink-2); }
.case-stats span::before { content: "■ "; color: var(--gold); }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.case-head { display: flex; gap: 12px; align-items: center; }
.case-id { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--f-num); font-weight: 600; font-size: 1.25rem; display: grid; place-items: center; }
.case-trade { font-weight: 700; color: var(--navy-deep); line-height: 1.4; }
.case-area { font-size: var(--fs-0); color: var(--ink-2); }
.via { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; margin-right: 6px; font-weight: 700; }
.via-site { background: var(--navy-soft); color: var(--navy); }
.via-referral { background: var(--gold-soft); color: #7a5b1e; }
.case dl { margin: 0; display: grid; gap: 8px; font-size: var(--fs-1); line-height: 1.7; }
.case dt { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .12em; }
.case dd { margin: 0; }
.case blockquote { margin: 4px 0 0; padding: 14px 16px; background: var(--paper); border-radius: var(--radius); font-size: var(--fs-1); line-height: 1.75; position: relative; }
.case blockquote::before { content: "お客様の声"; display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
@media (max-width: 960px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cases { grid-template-columns: 1fr; } }

/* ---------- 料金 ---------- */
.fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fee { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); display: flex; flex-direction: column; }
.fee h3 { font-size: var(--fs-1); margin: 0 0 10px; color: var(--navy-deep); line-height: 1.5; }
.fee .price { font-family: var(--f-num); font-size: 2.25rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.fee .price small { font-family: var(--f-body); font-size: var(--fs-0); font-weight: 400; color: var(--ink-2); margin-left: 2px; }
.fee .official { margin-top: 8px; font-size: var(--fs-0); color: var(--ink-2); }
.fee .official .num { font-size: var(--fs-1); color: var(--ink); }
.fee .fee-note { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.fee-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; font-size: var(--fs-0); color: var(--ink-2); }
.free { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.free > div { padding: 20px 22px; }
.free > div + div { border-left: 1px solid var(--line); }
.free h3 { margin: 0 0 6px; font-size: var(--fs-2); color: var(--navy-deep); }
.free .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--navy); color: #fff; margin-bottom: 8px; }
.free .tag.paid { background: var(--gold); }
.free p { margin: 0; font-size: var(--fs-1); color: var(--ink-2); }
@media (max-width: 960px) { .fees { grid-template-columns: repeat(2, minmax(0, 1fr)); } .free { grid-template-columns: 1fr; } .free > div + div { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .fees { grid-template-columns: 1fr; } }

/* ---------- 流れ ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 14px 0 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--navy); color: var(--navy); font-family: var(--f-num); font-weight: 600; font-size: 1.25rem; position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 21px; left: 44px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--fs-2); margin: 12px 0 4px; color: var(--navy-deep); }
.steps p { font-size: var(--fs-0); color: var(--ink-2); line-height: 1.7; margin: 0; }
.steps .pill { display: inline-block; font-size: 11px; padding: 0 8px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-weight: 700; margin-top: 6px; }
.steps .pill.pay { background: var(--gold-soft); color: #7a5b1e; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; padding: 0; }
  .steps li::before { grid-row: span 3; }
  .steps li::after { top: 44px; bottom: -18px; left: 21px; right: auto; width: 2px; height: auto; }
  .steps h3 { margin-top: 8px; }
}

/* ---------- 許可後の工程表（このサイトの見せ場） ---------- */
.gantt-wrap { overflow-x: auto; margin-top: 8px; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 20px; }
.gantt { min-width: 720px; display: grid; grid-template-columns: 190px repeat(5, minmax(0, 1fr)); font-size: var(--fs-1); }
.gantt > div { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.gantt .gh { font-family: var(--f-num); font-weight: 600; color: var(--ink-2); font-size: var(--fs-1); border-bottom: 2px solid var(--navy); text-align: center; }
.gantt .gh:first-child { text-align: left; font-family: var(--f-body); }
.gantt .rowh { font-weight: 700; color: var(--navy-deep); line-height: 1.4; }
.gantt .rowh small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.gantt .cell { display: flex; align-items: center; justify-content: center; border-left: 1px dashed var(--line); }
.mark { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mark-yearly { background: var(--navy-soft); color: var(--navy); }
.mark-bid { background: var(--gold-soft); color: #7a5b1e; }
.mark-renew { background: var(--navy); color: #fff; }
.gantt .notice .mark { background: transparent; color: var(--line-green-ink); border: 1px dashed currentColor; }
.gantt-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.gantt-legend div { border-top: 1px solid rgba(255,255,255,.3); padding-top: 12px; }
.gantt-legend b { display: block; color: #fff; margin-bottom: 4px; }
.gantt-legend p { margin: 0; font-size: var(--fs-1); color: #d6dfe9; }
.gantt-foot { font-size: var(--fs-0); color: #c4d0dd; margin-top: 12px; }
@media (max-width: 860px) { .gantt-legend { grid-template-columns: 1fr; } }

/* ---------- 代表 ---------- */
.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.profile figure { margin: 0; }
.profile figure img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; border-radius: var(--radius); }
.profile h3 { font-family: var(--f-display); font-size: var(--fs-5); margin: 0; color: var(--navy-deep); }
.profile .role { color: var(--ink-2); font-size: var(--fs-1); margin-bottom: 18px; }
.timeline { list-style: none; margin: 0 0 20px; padding: 0; font-size: var(--fs-1); }
.timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 4px 0; }
.timeline .num { color: var(--gold); font-weight: 600; }
.staff { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.staff img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center; flex: 0 0 auto; }
.staff p { margin: 0; font-size: var(--fs-1); color: var(--ink-2); }
.staff b { color: var(--ink); }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile figure { max-width: 260px; } }

/* ---------- エリア ---------- */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.area-list { display: grid; gap: 14px; }
.area-list div { border-left: 3px solid var(--navy); padding-left: 14px; }
.area-list div.sub { border-left-color: var(--line); }
.area-list b { display: block; color: var(--navy-deep); }
.area-list span { font-size: var(--fs-1); color: var(--ink-2); }
.access { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.access figure { margin: 0; }
.access .house img { object-position: center 6%; }
.access img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: var(--radius); width: 100%; }
.access figcaption { font-size: var(--fs-0); color: var(--ink-2); margin-top: 6px; line-height: 1.6; }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .access { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; color: var(--navy-deep); display: flex; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--f-num); color: var(--gold); font-size: 1.25rem; line-height: 1.4; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 1.5rem; color: var(--navy); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 18px 28px; color: var(--ink-2); }

/* ---------- 最後の相談帯・記事 ---------- */
.final { text-align: left; }
.final .cta-row { margin-top: 24px; }
.final .hours { margin-top: 14px; font-size: var(--fs-1); color: #d6dfe9; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { display: block; text-decoration: none; color: var(--ink); border-top: 2px solid var(--navy); padding-top: 14px; }
.post-card .cat { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .08em; }
.post-card h3 { font-size: var(--fs-2); margin: 4px 0 6px; color: var(--navy-deep); line-height: 1.6; }
.post-card time { font-family: var(--f-num); font-size: var(--fs-0); color: var(--ink-2); }
.post-card:hover h3 { text-decoration: underline; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-deep); color: #c9d4e0; font-size: var(--fs-1); padding-block: 48px calc(var(--bar-h) + 32px); }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid h2 { font-size: var(--fs-0); letter-spacing: .14em; color: #d9bf85; margin: 0 0 10px; }
.foot-logo img { width: 240px; margin-bottom: 12px; }
.copy { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: var(--fs-0); }
@media (min-width: 861px) { .site-footer { padding-bottom: 32px; } }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- スマホ下部の固定バー（現サイトから引き継ぎ） ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--navy); border-top: 3px solid var(--gold);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 16px rgba(17,40,64,.18);
}
.bottom-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--bar-h); text-decoration: none; font-size: 12px; font-weight: 700; color: #fff; }
.bottom-bar a + a { border-left: 1px solid rgba(255,255,255,.22); }
.bottom-bar a svg { width: 24px; height: 24px; }
.bottom-bar .bb-line { background: var(--line-green); }
@media (max-width: 860px) { .bottom-bar { display: grid; } }

/* ---------- 記事ページ ---------- */
.crumbs { font-size: var(--fs-0); color: var(--ink-2); padding-block: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-block: 16px 72px; align-items: start; }
.article-head .cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--navy-soft); padding: 2px 10px; border-radius: 999px; text-decoration: none; margin: 0 6px 6px 0; }
.article-head h1 { font-family: var(--f-display); font-size: clamp(1.6rem, 3.2vw, 2.25rem); color: var(--navy-deep); margin: 8px 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--fs-0); color: var(--ink-2); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-meta .num { font-size: var(--fs-1); color: var(--ink); }
.summary { margin: 24px 0 32px; padding: 20px 22px; background: var(--paper); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.summary h2 { font-size: var(--fs-1) !important; margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; color: var(--gold) !important; letter-spacing: .12em; font-family: var(--f-body) !important; }
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li { margin: 2px 0; }
.prose { max-width: 42em; }
.prose h2 { font-family: var(--f-display); font-size: var(--fs-4); color: var(--navy-deep); margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.prose h3 { font-size: var(--fs-3); color: var(--navy-deep); margin: 36px 0 12px; padding-left: 12px; border-left: 4px solid var(--gold); }
.prose h4 { font-size: var(--fs-2); color: var(--navy); margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-1); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose th { background: var(--paper); }
.table-scroll { overflow-x: auto; margin-bottom: 1em; }
.sources { margin-top: 40px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-1); }
.sources h2 { font-size: var(--fs-1); margin: 0 0 6px; color: var(--ink-2); }
.sources ul { margin: 0; padding-left: 1.2em; }
.author { margin-top: 24px; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--paper); border-radius: var(--radius); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 15%; flex: 0 0 auto; }
.author p { margin: 0; font-size: var(--fs-1); color: var(--ink-2); }
.author b { color: var(--ink); }
.article-cta { margin: 40px 0 56px; background: var(--navy-soft); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.article-cta h2 { font-family: var(--f-display); font-size: var(--fs-4); margin: 0 0 8px; color: var(--navy-deep); }
.article-cta p { color: var(--ink-2); }
.article-cta .cta-row { margin-top: 16px; }
.side { position: sticky; top: 96px; display: grid; gap: 24px; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: var(--fs-1); }
.side-box h2 { font-size: var(--fs-0); letter-spacing: .12em; color: var(--gold); margin: 0 0 10px; }
.side-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.side-box a { text-decoration: none; }
.side-box a:hover { text-decoration: underline; }
.side-consult { background: var(--paper); border: 0; }
.side-consult .btn { width: 100%; min-height: 48px; margin-top: 8px; font-size: var(--fs-1); }
.search { display: flex; gap: 6px; }
.search input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: var(--fs-1); }
.search button { padding: 8px 12px; border: 0; border-radius: var(--radius); background: var(--navy); color: #fff; font: inherit; font-size: var(--fs-1); cursor: pointer; }
.related { margin-top: 48px; }
.related h2 { font-family: var(--f-display); font-size: var(--fs-3); color: var(--navy-deep); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .side { position: static; } }

/* ---------- 固定ページ共通・FAQページ ---------- */
.page-head { padding-block: 16px 24px; }
.page-head h1 { font-family: var(--f-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy-deep); margin: 4px 0 12px; }
.faq-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.faq-index a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: var(--fs-1); }
.faq-index a:hover { border-color: var(--navy); }
.faq-group { margin-bottom: 40px; scroll-margin-top: 96px; }
.faq-group h2 { font-family: var(--f-display); font-size: var(--fs-4); color: var(--navy-deep); margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); max-width: 860px; }
.faq details { scroll-margin-top: 96px; }
.faq .a a { font-weight: 700; }

/* ---------- 固定ページの部品 ---------- */
.prose.wide { max-width: 56em; }
.prose .lead, .lead { font-size: var(--fs-3); line-height: 1.8; color: var(--ink); margin-bottom: 1.2em; }
.small { font-size: var(--fs-0); color: var(--ink-2); }
.fee-updated { font-weight: 700; }
.fee-table { width: 100%; border-collapse: collapse; font-size: var(--fs-1); min-width: 560px; }
.fee-table th { background: var(--navy); color: #fff; text-align: left; font-weight: 700; white-space: nowrap; }
.fee-table td, .fee-table th { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.fee-table td.r { text-align: right; white-space: nowrap; }
.fee-table tr:nth-child(even) td { background: var(--paper); }
.fee-sec { margin-top: 36px; scroll-margin-top: 96px; }
.fee-sec h2 { margin-top: 0; }
.notes { background: var(--paper); border-left: 4px solid var(--gold); padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0 8px; }
.notes h2 { margin: 0 0 12px; font-size: var(--fs-3); border: 0; padding: 0; }
.notes section { padding: 14px 0; border-top: 1px solid var(--line); }
.notes h3 { margin: 0 0 6px; padding: 0; border: 0; font-size: var(--fs-2); color: var(--navy-deep); }
.notes ul { list-style: none; padding: 0; margin: 0; }
.notes li { margin: 0 0 4px; font-size: var(--fs-1); line-height: 1.8; padding-left: 1.1em; position: relative; }
.notes li::before { content: "・"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.notes li.sub { padding-left: 2.1em; color: var(--ink-2); font-size: 0.9375rem; }
.notes li.sub::before { content: "└"; left: 1em; color: var(--line); }
.overview { border-collapse: collapse; width: 100%; font-size: var(--fs-1); }
.overview th { width: 8em; text-align: left; background: var(--paper); }
.overview th, .overview td { border: 1px solid var(--line); padding: 10px 14px; }
.profile-in { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; margin: 24px 0 40px; align-items: start; }
.profile-in figure { margin: 0; }
.profile-in figure img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; width: 100%; }
.profile-in h3 { margin-top: 0; }
@media (max-width: 640px) { .profile-in { grid-template-columns: 1fr; } .profile-in figure { max-width: 200px; } }
.office-access { margin: 16px 0; }
.post-list { list-style: none; margin: 0; padding: 0; max-width: 56em; }
.post-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.post-list a { font-weight: 700; text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list .meta { font-size: var(--fs-0); color: var(--ink-2); }
.search.big { max-width: 560px; margin-bottom: 20px; }
.search.big input { padding: 12px 14px; font-size: var(--fs-2); }
.search.big button { padding: 12px 20px; font-size: var(--fs-1); }
.contact-form { max-width: 640px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #aab4c0; border-radius: var(--radius); font: inherit; background: var(--white); color: var(--ink);
}
.contact-form textarea { resize: vertical; }
.contact-form .req { background: var(--warn); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 999px; margin-left: 6px; font-weight: 700; }
.contact-form .opt { background: var(--line); color: var(--ink-2); font-size: 11px; padding: 1px 8px; border-radius: 999px; margin-left: 6px; font-weight: 700; }
.contact-form .hint { display: block; font-size: var(--fs-0); color: var(--ink-2); margin-top: 4px; }
.contact-form .agree label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.contact-form .agree input { margin-top: 6px; width: 18px; height: 18px; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-form button.btn { width: 100%; max-width: 320px; }
.form-error { background: #f8ece8; border-left: 4px solid var(--warn); color: var(--ink); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 20px; font-weight: 700; }
.prose a { overflow-wrap: anywhere; }
.prose figure { margin: 1.2em 0; }
.prose figure img, .prose p img { border-radius: var(--radius); }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--line); background: var(--paper); }
.prose .entries { margin: 16px 0 28px; }
.prose .entry { text-decoration: none; }
.prose .steps { margin: 24px 0 32px; padding: 0; }
.prose .steps li { padding-left: 0; }
.prose .faq { margin: 12px 0 24px; }
.prose .cta-row { margin: 24px 0; }
.contact-form .hint.top { margin: 0 0 8px; font-weight: 400; }
.contact-form ::placeholder { color: #6b7888; opacity: 1; }


/* トップ最初の画面：代表の写真に名札の帯（代表が主、補助者は右に） */
.hero-photo .ph > img { border-radius: var(--radius) var(--radius) 0 0; }
.plate { background: var(--navy); color: #fff; padding: 10px 12px 12px 16px; border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); margin: 0; }
.plate .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plate .main { line-height: 1.4; padding-top: 2px; }
.plate .main span { display: block; font-size: 12px; opacity: .92; }
.plate .main b { display: block; font-family: var(--f-display); font-size: 1.75rem; letter-spacing: .14em; line-height: 1.3; }
.plate .main .pledge { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.22); font-size: 12.5px; line-height: 1.5; color: #e6cf9a; opacity: 1; white-space: nowrap; }
/* 補助者：丸い写真はそのまま見せ、名前の札は右下に（丸の外にはみ出してよい） */
.plate .sub { position: relative; flex: 0 0 auto; width: 116px; height: 116px; margin-right: 6px; }
.plate .sub img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; aspect-ratio: auto; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); }
.plate .sub span { position: absolute; right: -14px; bottom: -6px; padding: 12px 12px 5px 16px; text-align: center; font-size: 10px; line-height: 1.3; color: #fff; text-shadow: 0 1px 3px rgba(17,40,64,.7); background: linear-gradient(rgba(17,40,64,0) 25%, rgba(17,40,64,.36)); border-radius: 0 0 8px 8px; }
.plate .sub b { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; color: #fff; }
@media (max-width: 420px) { .plate .main b { font-size: 1.5rem; } }

/* セルフチェック：PCは左に説明と結果、右に質問。スマホは 説明 → 質問 → 結果 の順 */
.check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-areas: "intro form" "result form"; grid-template-rows: auto 1fr; gap: 0 clamp(24px, 4vw, 56px); align-items: start; }
.c-intro { grid-area: intro; }
.check-form { grid-area: form; }
.c-result { grid-area: result; position: sticky; top: 96px; }
@media (max-width: 860px) {
  .check { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "result"; grid-template-rows: auto; gap: 20px 0; }
  .c-result { position: static; }
}
@media (max-width: 560px) {
  .plate { padding: 10px 10px 12px 14px; }
  .plate .main span { font-size: 13px; }
  .plate .main b { font-size: 1.9rem; letter-spacing: .06em; white-space: nowrap; }
  .plate .main .pledge { font-size: 13px; font-weight: 700; white-space: normal; text-wrap: balance; }
  .plate .sub { width: 104px; height: 104px; margin-right: 8px; }
  .plate .sub span { font-size: 10.5px; right: -12px; }
  .plate .sub b { font-size: 13.5px; }
}
}
}

/* 建設業許可ページ：自己チェックへの案内 */
.check-promo { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 24px 0 32px; padding: 18px 22px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.check-promo b { display: block; font-family: var(--f-display); font-size: var(--fs-3); color: var(--navy-deep); }
.check-promo span { font-size: var(--fs-1); color: var(--ink-2); }
.check-promo .btn { min-height: 48px; }

@media (max-width: 420px) {
  .plate { padding: 10px 10px 12px 12px; }
  .plate .main b { font-size: 1.6rem; letter-spacing: .04em; }
  .plate .sub { width: 88px; height: 88px; margin-right: 6px; }
  .plate .sub span { font-size: 9.5px; right: -8px; padding: 14px 8px 4px 12px; }
  .plate .sub b { font-size: 12px; }
  .hero-photo { max-width: 100%; }
}
.summary .checked { margin: 8px 0 0; font-size: var(--fs-0); color: var(--ink-2); }
.notice { margin: -16px 0 28px; padding: 10px 14px; background: #f8ece8; border-left: 4px solid var(--warn); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--fs-1); }
