/* =========================================================
   弁護士 吉田龍馬｜法律相談（総合サイト）
   freelance-law.jp の style.css を土台にし、総合サイト固有の部分は末尾の「hub」の節に足している
   ========================================================= */

:root {
  --ink: #1F2A44;
  --ink-2: #46506A;
  --bg: #FFF9F0;
  --surface: #FFFFFF;
  --line: #EADFCC;

  --sun: #FFC845;
  --sun-deep: #F5B419;
  --sun-soft: #FFF1C7;
  --coral: #FF8A6B;
  --peach-soft: #FFE8DE;
  --mint: #9ED9C1;
  --mint-soft: #E3F4EC;
  --mint-ink: #1E6B52;
  --sky: #CFE2FF;
  --sky-soft: #EAF2FF;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 2px 0 rgba(31, 42, 68, .06), 0 12px 32px -12px rgba(31, 42, 68, .18);

  --font-body: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-head: "Zen Maru Gothic", "Noto Sans JP", system-ui, sans-serif;

  --container: 1120px;
  --gutter: 20px;
  --header-h: 68px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
/* スマホ幅では画面下に追従の申込みボタンが出るので、キーボード操作で移った先がその下に隠れないようにする */
@media (max-width: 959px) { html { scroll-padding-bottom: 96px; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .03em;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.45; margin: 0; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.contact-card :focus-visible, .cta-box :focus-visible { outline-color: #fff; }
main:focus { outline: none; }
/* 短い文は文節で改行（対応ブラウザのみ） */
.chip, .btn, .who-list li, .worry p, .check-list li, .dot-list li, .faq-list summary, .worries-foot, .profile-quote, .example-q, .topic-sub { word-break: auto-phrase; }
.nowrap { white-space: nowrap; }
/* 画面には出さず、読み上げだけに使う文 */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.small { font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.note { margin-top: 28px; font-size: 14px; color: var(--ink-2); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--ink);
  font-weight: 700; text-decoration: none; line-height: 1.3; letter-spacing: .04em;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-primary:hover { background: var(--sun-deep); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-lg { padding: 16px 22px 16px 32px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-label { display: flex; flex-direction: column; align-items: flex-start; }
.btn-label small { font-size: 12px; font-weight: 500; letter-spacing: .02em; margin-top: 2px; }
.btn-arrow { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--ink); color: var(--sun); flex: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none;
  background: linear-gradient(var(--sun), var(--sun)) 0 100% / 100% 6px no-repeat;
  padding-bottom: 1px; transition: background-size .2s ease;
}
.text-link::after { content: "→"; content: "→" / ""; transition: transform .2s ease; }
.text-link:hover { background-size: 100% 100%; }
.text-link:hover::after { transform: translateX(3px); }
.text-link[target="_blank"]::after { content: "↗"; content: "↗" / ""; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 240, .9);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.brand-sub { font-size: 12px; color: var(--ink-2); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--surface);
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  display: none; position: absolute; left: 12px; right: 12px; top: calc(var(--header-h) - 4px);
  flex-direction: column; padding: 10px; background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.site-nav.is-open { display: flex; }
.site-nav a { padding: 12px 14px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; }
.site-nav a:hover { background: var(--sun-soft); }
.site-nav .nav-cta { margin-top: 6px; background: var(--sun); text-align: center; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; }

/* PC 用の横並びメニューは 1040px から（項目が8つあり、それより狭いとロゴと重なる） */
@media (min-width: 1040px) {
  .menu-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 2px; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav a { padding: 8px 12px; font-size: 15px; }
  .site-nav .nav-cta { margin: 0 0 0 10px; padding: 8px 20px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 120px); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head.center { margin-inline: auto; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink);
}
.section-kicker::before { content: ""; width: 22px; height: 6px; border-radius: 99px; background: var(--coral); }
.section-title { font-size: clamp(26px, 1.3rem + 1.8vw, 38px); letter-spacing: .04em; }
.section-lead { margin-top: 16px; color: var(--ink-2); }

.bg-sun { background: var(--sun-soft); }
.bg-peach { background: var(--peach-soft); }
.bg-sky { background: var(--sky-soft); }
.bg-mint { background: var(--mint-soft); }
.bg-sun-soft { background: var(--sun-soft); }
.bg-peach-soft { background: var(--peach-soft); }
.bg-sky-soft { background: var(--sky-soft); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(32px, 6vw, 72px) clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 14px; margin-bottom: 18px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 700;
}
.hero-title { font-size: clamp(28px, 1rem + 3.4vw, 46px); line-height: 1.45; letter-spacing: .03em; }
.hl {
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11 C 40 4, 80 14, 120 7 S 180 6, 197 9' fill='none' stroke='%23FF8A6B' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% .42em no-repeat;
  padding-bottom: .12em;
}
.hero-lead { margin-top: 20px; font-size: clamp(16px, .95rem + .3vw, 18px); color: var(--ink-2); max-width: 36em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1.5px solid rgba(31, 42, 68, .15); }
.chip strong { font-weight: 700; }
.chip-sun { background: var(--sun-soft); }
.chip-sky { background: var(--sky-soft); }
.chip-mint { background: var(--mint-soft); }
.chip-peach { background: var(--peach-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }

.hero-visual { position: relative; width: min(72vw, 420px); margin-inline: auto; padding: 24px 12px 56px; }
.hero-shape { position: absolute; border-radius: 50%; z-index: 0; }
.hero-shape-sun { width: 78%; aspect-ratio: 1; background: var(--sun); top: 0; right: -8%; }
.hero-shape-mint { width: 46%; aspect-ratio: 1; background: var(--mint); bottom: 6%; left: -10%; border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%; }
.hero-sparkle { position: absolute; width: 40px; top: 4%; left: 2%; z-index: 1; }
.hero-photo { position: relative; z-index: 1; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); overflow: hidden; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: #eee; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-bubble {
  position: absolute; z-index: 2; left: -4%; bottom: 8px; max-width: 78%;
  padding: 12px 16px; background: var(--surface); border: 2px solid var(--ink); border-radius: 18px;
  font-size: 14px; font-weight: 700; line-height: 1.6; box-shadow: var(--shadow);
}
.hero-bubble::before {
  content: ""; position: absolute; top: -10px; left: 32px; width: 16px; height: 16px;
  background: var(--surface); border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg);
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-visual { width: 100%; max-width: 420px; padding: 28px 0 56px 24px; }
  .hero-bubble { left: -14%; }
}

/* ---------- who ---------- */
.who { margin-top: -8px; }
.who-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 28px 22px;
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.who-title { font-size: clamp(18px, 1rem + .5vw, 22px); text-align: center; }
.who-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 10px; margin-top: 22px; }
.who-list li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; text-align: center; line-height: 1.5; }
.who-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; }
.who-icon svg { width: 42px; height: 42px; }
.who-icon-sun { background: var(--sun-soft); }
.who-icon-sky { background: var(--sky-soft); }
.who-icon-peach { background: var(--peach-soft); }
.who-icon-mint { background: var(--mint-soft); }
.who-list li:last-child { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .who-list { grid-template-columns: repeat(5, 1fr); }
  .who-list li:last-child { grid-column: auto; }
}
@media (min-width: 960px) { .who-card { padding: 36px 48px; } }

/* ---------- worries ---------- */
.worry-grid { display: grid; gap: 14px; }
.worry {
  position: relative; display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-radius: var(--radius); padding: 18px 20px;
  border: 1.5px solid var(--line); font-weight: 700; line-height: 1.6;
}
.worry::after {
  content: ""; position: absolute; left: 34px; bottom: -9px; width: 16px; height: 16px; background: var(--surface);
  border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); transform: rotate(45deg);
}
.worry-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none; }
.worry-icon svg { width: 28px; height: 28px; }
.worries-foot {
  margin: 44px auto 0; max-width: 720px; padding: 18px 24px; text-align: center;
  background: var(--mint-soft); border-radius: var(--radius);
}
.worries-foot strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--mint-ink); }
@media (min-width: 640px) { .worry-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 960px) { .worry-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- topics ---------- */
.topics { background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.topic-grid { display: grid; gap: 24px; }
.topic-card { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ink); }
.topic-art { padding: 20px 24px 8px; border-bottom: 2px solid var(--ink); }
.topic-art svg { width: 100%; max-width: 260px; margin-inline: auto; }
.topic-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.topic-tag { align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.topic-title { font-size: 21px; }
.topic-sub { font-size: 14px; color: var(--ink-2); margin-top: -4px; }
.topic-text { font-size: 15px; color: var(--ink-2); line-height: 1.8; }

.check-list li, .dot-list li { position: relative; padding-left: 30px; line-height: 1.65; }
.check-list li + li, .dot-list li + li { margin-top: 8px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231F2A44' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.dot-list li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.topic-card .check-list { font-weight: 500; }
@media (min-width: 960px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- features ---------- */
.features { background: var(--sky-soft); }
.feature-grid { display: grid; gap: 20px; counter-reset: none; }
.feature {
  position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 32px 26px 28px;
  border: 2px solid var(--ink);
}
.feature-num {
  position: absolute; top: -18px; left: 24px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.feature-icon { width: 64px; height: 64px; margin-bottom: 14px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ---------- pricing ---------- */
.price-card {
  display: grid; background: var(--surface); border-radius: var(--radius-lg);
  border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); overflow: hidden;
}
.price-main { padding: 32px 24px; background: var(--sun-soft); border-bottom: 2px solid var(--ink); }
.price-label { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.price-amount { display: flex; align-items: flex-end; gap: 10px; margin-top: 4px; }
.price-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(56px, 2.5rem + 3vw, 76px); line-height: 1; letter-spacing: .01em; }
.price-unit { font-weight: 700; font-size: 15px; line-height: 1.4; padding-bottom: 6px; }
.price-sub { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.fee-table { width: 100%; margin-top: 20px; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid var(--line); font-size: 15px; }
.fee-table caption { caption-side: top; text-align: left; font-size: 13px; color: var(--ink-2); padding-bottom: 8px; }
.fee-table th, .fee-table td { padding: 11px 14px; text-align: left; }
.fee-table thead th { background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.fee-table td:last-child { white-space: nowrap; }
.fee-table td:last-child, .fee-table th:last-child { text-align: right; }
.fee-table td:last-child { font-weight: 700; }
.fee-table tbody tr + tr td { border-top: 1.5px solid var(--line); }
.price-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

.price-detail { padding: 28px 24px; display: grid; gap: 22px; }
.price-box h3 { font-size: 18px; margin-bottom: 12px; }
.price-box .small { margin-top: 12px; }
.price-box-pay p { color: var(--ink-2); font-size: 15px; }
.price-box + .price-box { padding-top: 22px; border-top: 1.5px dashed var(--line); }
@media (min-width: 960px) {
  .price-card { grid-template-columns: .9fr 1.1fr; }
  .price-main { padding: 44px 40px; border-bottom: 0; border-right: 2px solid var(--ink); }
  .price-detail { padding: 40px; }
}

/* ---------- flow ---------- */
.flow { background: var(--surface); }
.steps { display: grid; gap: 18px; position: relative; }
.step { position: relative; background: var(--bg); border-radius: var(--radius); padding: 24px 22px 24px 84px; }
.step-num {
  position: absolute; left: 20px; top: 22px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 16px;
}
.step:nth-child(1) .step-num { background: var(--sun); }
.step:nth-child(2) .step-num { background: var(--sky); }
.step:nth-child(3) .step-num { background: var(--mint); }
.step:nth-child(4) .step-num { background: #FFC8B8; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps::before { content: ""; position: absolute; top: 48px; left: 12%; right: 12%; border-top: 2.5px dashed var(--ink); opacity: .35; }
  .step { padding: 92px 22px 26px; text-align: left; }
  .step-num { left: 22px; top: 24px; }
}

/* ---------- examples ---------- */
.example-grid { display: grid; gap: 22px; }
.example { background: var(--surface); border-radius: var(--radius-lg); padding: 28px 24px; border: 1.5px solid var(--line); }
.example-tag { display: inline-block; padding: 1px 12px; border-radius: 999px; background: var(--peach-soft); font-size: 13px; font-weight: 700; }
.example-q {
  position: relative; margin-top: 14px; padding: 14px 18px; border-radius: 18px 18px 18px 4px;
  background: var(--sky-soft); font-size: 18px;
}
.example-a { margin-top: 16px; padding-left: 16px; border-left: 4px solid var(--sun); }
.example-a-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.example-a p:not(.example-a-label) { font-size: 15px; }
@media (min-width: 800px) { .example-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* ---------- profile ---------- */
.profile { background: var(--peach-soft); }
.profile-inner { display: grid; gap: 40px; align-items: center; }
.profile-photo {
  width: min(70vw, 360px); margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden;
  border: 3px solid var(--ink); box-shadow: -8px 8px 0 var(--coral); transform: rotate(-2deg);
}
.profile-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.profile-name { font-size: clamp(28px, 1.4rem + 1.4vw, 36px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.profile-roman { font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: .12em; color: var(--ink-2); }
.profile-quote {
  margin: 20px 0; padding: 16px 20px; background: var(--surface); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.6;
}
.profile-copy > p:not(.section-kicker):not(.profile-quote) { color: var(--ink-2); }
.profile-dl { margin: 24px 0; display: grid; gap: 10px; }
.profile-dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1.5px solid rgba(31, 42, 68, .12); }
.profile-dl dt { font-weight: 700; font-size: 14px; }
.profile-dl dd { margin: 0; font-size: 15px; }
@media (min-width: 960px) {
  .profile-inner { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .profile-photo { width: 100%; max-width: 380px; }
}

/* ---------- faq ---------- */
.faq-inner { display: grid; gap: 8px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border-radius: var(--radius); border: 1.5px solid var(--line); overflow: hidden; }
.faq-list details[open] { border-color: var(--ink); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer; padding: 18px 60px 18px 56px; font-weight: 700; line-height: 1.6;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "Q"; position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--sun); font-family: var(--font-head); font-size: 15px;
}
.faq-list summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11h10M11 6v10' stroke='%231F2A44' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 22px 56px; color: var(--ink-2); font-size: 15px; }
@media (min-width: 960px) {
  .faq-inner { grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: start; }
}

/* ---------- access ---------- */
.access { padding-top: 0; }
.access-card { display: grid; gap: 28px; background: var(--surface); border-radius: var(--radius-lg); padding: 32px 24px; border: 2px solid var(--ink); }
.access-copy .section-title { font-size: clamp(22px, 1.1rem + 1.2vw, 30px); margin-bottom: 18px; }
.access-office { font-weight: 700; }
.access-copy address { margin: 6px 0 18px; color: var(--ink-2); }
.access-copy .small { margin-top: 18px; }
.access-art svg { width: 100%; border-radius: var(--radius); }
@media (min-width: 960px) {
  .access-card { grid-template-columns: 1fr 1fr; align-items: center; padding: 48px; gap: 48px; }
}

/* ---------- contact ---------- */
.contact { padding-top: 0; }
.contact-card {
  display: grid; gap: 28px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 40px 24px;
  position: relative; overflow: hidden;
}
.contact-card::before, .contact-card::after { content: ""; position: absolute; border-radius: 50%; }
.contact-card::before { width: 120px; height: 120px; right: -50px; top: -60px; background: var(--sun); }
@media (min-width: 960px) { .contact-card::before { width: 180px; height: 180px; right: -60px; top: -80px; } }
.contact-card::after { width: 90px; height: 90px; left: -30px; bottom: -40px; background: var(--mint); }
.contact-card > * { position: relative; }
.kicker-light { color: #fff; }
.contact-title { font-size: clamp(24px, 1.2rem + 1.6vw, 34px); margin-bottom: 14px; }
.contact-copy p:not(.section-kicker) { color: rgba(255, 255, 255, .88); }
.contact-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 18px; }
.contact-price-label { font-weight: 700; width: 100%; }
.contact-price-num { font-family: var(--font-head); font-weight: 700; font-size: 52px; line-height: 1; color: var(--sun); }
.contact-price-unit { font-weight: 700; }
.contact .btn-primary { box-shadow: 0 4px 0 #0E1424; border-color: #0E1424; }
@media (min-width: 960px) {
  .contact-card { grid-template-columns: 1.2fr .8fr; align-items: center; padding: 56px 56px; gap: 56px; }
}

.intake-notice { margin-top: 28px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); }
.intake-notice h3 { font-size: 17px; margin-bottom: 12px; }
.intake-notice li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.intake-notice li + li { margin-top: 8px; }
.intake-notice li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
@media (min-width: 960px) { .intake-notice { padding: 28px 36px; } }
/* 料金カードの下の「オンライン・メールなどでご依頼いただく場合の表示」 */
.remote-notice-lead { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.remote-notice dl { display: grid; gap: 14px; margin: 16px 0 0; }
.remote-notice dt { font-size: 14px; font-weight: 700; }
.remote-notice dd { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.8; }

/* ---------- footer ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1.5px solid var(--line); font-size: 14px; color: var(--ink-2); }
/* 追従の申込みボタンがあるページ（body.has-sticky）は、スマホ幅でボタンに隠れないだけの余白を取る */
.has-sticky .site-footer { padding-bottom: 120px; }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
@media (min-width: 960px) { .has-sticky .site-footer { padding-bottom: 48px; } .footer-inner { grid-template-columns: 1.4fr 1fr auto; align-items: end; gap: 32px; } }

/* ---------- sticky cta (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 18px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow);
  transform: translateY(160%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-price { font-size: 13px; line-height: 1.3; }
.sticky-cta-price strong { display: block; font-size: 15px; }
.sticky-cta .btn { padding: 10px 18px; font-size: 15px; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
@media (min-width: 960px) { .sticky-cta { display: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .notfound-code { font-family: var(--font-head); font-weight: 700; font-size: 96px; line-height: 1; margin-bottom: 0; color: var(--sun); -webkit-text-stroke: 2px var(--ink); }
.notfound h1 { font-size: clamp(22px, 1.1rem + 1vw, 28px); margin: 18px 0 12px; }
.notfound p { color: var(--ink-2); margin-bottom: 28px; }

/* ---------- outcomes ---------- */
.outcomes { padding-bottom: 32px; }
.outcomes-card {
  background: var(--sun-soft); border-radius: var(--radius-lg); padding: 28px 22px;
  border: 2px solid var(--ink);
}
.outcomes-title { font-size: clamp(20px, 1.05rem + .7vw, 26px); text-align: center; }
.outcomes-list { display: grid; gap: 10px; margin-top: 20px; counter-reset: none; }
.outcomes-list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface);
  border-radius: var(--radius-sm); font-weight: 700; line-height: 1.5; word-break: auto-phrase;
}
.outcomes-num {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--sun); font-family: var(--font-head); font-size: 16px;
}
.outcomes-text { margin-top: 18px; color: var(--ink-2); max-width: 46em; margin-inline: auto; text-align: center; }
@media (min-width: 960px) {
  .outcomes-card { padding: 36px 48px; }
  .outcomes-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

.topic-more { align-self: flex-start; margin-top: 4px; font-size: 15px; }
.price-box-pay .dot-list li { font-size: 15px; color: var(--ink-2); }
.price-box-pay .dot-list strong { color: var(--ink); }

/* ---------- footer links ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--ink); font-weight: 500; }
@media (min-width: 960px) { .footer-links { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- article pages ---------- */
.breadcrumb { padding-top: 20px; font-size: 13px; color: var(--ink-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--ink-2); }
.breadcrumb a { display: inline-block; color: var(--ink-2); }

.article-hero { padding: 28px 0 40px; }
.article-hero .eyebrow { margin-bottom: 14px; }
.article-title { font-size: clamp(26px, 1.2rem + 2.4vw, 40px); line-height: 1.45; }
.article-lead { margin-top: 18px; font-size: clamp(16px, .95rem + .25vw, 18px); color: var(--ink-2); max-width: 40em; }
.article-meta { margin-top: 16px; font-size: 13px; color: var(--ink-2); }

.article-body { max-width: 760px; }
.article-body > * + * { margin-top: 18px; }
.article-body h2 {
  margin-top: 56px; padding-left: 16px; border-left: 6px solid var(--coral);
  font-size: clamp(21px, 1.05rem + .8vw, 27px); line-height: 1.5;
}
.article-body h3 { margin-top: 32px; font-size: 19px; }
.article-body p, .article-body li { line-height: 1.95; }
.article-body ul.dot-list, .article-body ul.check-list { margin-top: 14px; }
.article-body ol.num-list { counter-reset: n; margin-top: 14px; }
.article-body ol.num-list > li { position: relative; padding-left: 40px; }
.article-body ol.num-list > li + li { margin-top: 12px; }
.article-body ol.num-list > li::before {
  counter-increment: n; content: counter(n); position: absolute; left: 0; top: .15em;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sun); border: 2px solid var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 14px;
}
.article-body a { color: var(--ink); font-weight: 500; }

.toc { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.toc-title { font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; }
.toc ol { list-style: decimal; padding-left: 1.4em; }
.toc li { line-height: 1.8; }
.toc a { display: inline-block; color: var(--ink); }
/* 文中の小さなリンクは、行の高さを変えずに当たり判定だけ上下に広げる（24px 以上） */
.cta-sub a, .intake-notice a, .article-meta a, .guide-index-consult .small a { padding-block: 4px; }
.article-body p > a:not([class]), .article-body .dot-list a, .article-body .check-list a { padding-block: 4px; }

.callout { background: var(--mint-soft); border-radius: var(--radius); padding: 18px 22px; }
.callout-title { font-family: var(--font-head); font-weight: 700; color: var(--mint-ink); margin-bottom: 6px; }
.callout.callout-sun { background: var(--sun-soft); }
.callout.callout-sun .callout-title { color: var(--ink); }
/* トップの「相談できること」欄の末尾にある、発注する事業者向けの案内 */
.biz-callout { max-width: 760px; margin: 28px auto 0; }
.biz-callout .text-link { display: inline-block; margin-top: 8px; }
/* 発注する事業者の方へ：義務の区分表は「根拠」列を狭くする */
@media (min-width: 600px) {
  .biz-table thead th:nth-child(1) { width: 32%; }
  .biz-table thead th:nth-child(3) { width: 20%; }
}

.compare { display: grid; gap: 14px; }
.compare > div { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.compare h3 { margin-top: 0; font-size: 17px; margin-bottom: 8px; }
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }

.cta-box {
  margin-top: 56px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 32px 24px;
  display: grid; gap: 18px; position: relative; overflow: hidden;
}
.cta-box::before { content: ""; position: absolute; width: 140px; height: 140px; right: -50px; top: -60px; border-radius: 50%; background: var(--sun); }
.cta-box > * { position: relative; }
.cta-box-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 1rem + .9vw, 26px); line-height: 1.5; }
.cta-box p { color: rgba(255, 255, 255, .88); }
.cta-box .btn-primary { justify-self: start; box-shadow: 0 4px 0 #0E1424; border-color: #0E1424; }
.cta-box .cta-sub { font-size: 14px; }
.cta-box .cta-sub a { color: #fff; }

.related { margin-top: 56px; }
.related-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.related-list { display: grid; gap: 10px; }
.related-list a {
  display: block; padding: 14px 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700;
}
.related-list a::after { content: " →"; content: " →" / ""; }
.related-list a:hover { border-color: var(--ink); }
.article-note { margin-top: 40px; font-size: 13px; color: var(--ink-2); }
.article-section { padding-bottom: 80px; }
.breadcrumb.container, .article-hero .container, .article-section .container { max-width: 840px; }

/* ---------- specific-problem guides ---------- */
.guides-home { background: var(--sky-soft); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.guide-card {
  display: flex; flex-direction: column; align-items: flex-start; position: relative;
  min-width: 0; padding: 26px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease;
}
.guide-card:hover, .guide-card:focus-within { border-color: var(--ink); box-shadow: var(--shadow); }
.guide-card-label { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.guide-card-label span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--sun-soft); color: var(--ink); font-size: 15px; }
.guide-card:nth-child(4n+2) .guide-card-label span { background: var(--mint-soft); }
.guide-card:nth-child(4n+3) .guide-card-label span { background: var(--sky-soft); }
.guide-card:nth-child(4n+4) .guide-card-label span { background: var(--peach-soft); }
.guide-card h3 { font-size: clamp(19px, 1rem + .5vw, 23px); line-height: 1.6; margin-top: 16px; }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.guide-card > p:not(.guide-card-label) { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.guide-card-more { padding-top: 20px; margin-top: auto; font-size: 14px; font-weight: 700; }
.guide-index-link { margin-top: 28px; text-align: center; }
.guide-index-hero { padding: 32px 0 44px; }
.guide-index-hero .eyebrow { margin-bottom: 20px; }
.guide-index-byline { color: var(--ink-2); font-size: 14px; margin-top: 20px; }
.guide-index-content { padding: 40px 0 72px; background: var(--sky-soft); }
.guide-list-title { font-size: 22px; margin-bottom: 24px; }
.guide-index-consult { margin-top: 44px; padding: 28px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--sun-soft); }
.guide-index-consult h2 { font-size: clamp(21px, 1rem + 1vw, 27px); }
.guide-index-consult > * + * { margin-top: 14px; }
.article-meta a { color: inherit; }
.guide-answer { padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--sun-soft); }
.guide-answer-label { font-weight: 700; margin-bottom: 10px; }
.guide-article section > * + * { margin-top: 18px; }
.guide-article section > h2 { margin-bottom: 20px; }
.guide-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.guide-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.guide-table caption { text-align: left; padding: 16px; font-weight: 700; background: var(--sun-soft); }
.guide-table th, .guide-table td { padding: 14px 12px; vertical-align: top; text-align: left; border-top: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.8; }
.guide-table th + th, .guide-table td, .guide-table th + td { border-left: 1px solid var(--line); }
.guide-table thead { background: var(--sky-soft); }
.guide-table tbody th { background: #fffcf6; font-weight: 500; }
.guide-article .source-ref { display: inline-block; min-width: 24px; text-align: center; color: var(--mint-ink); font-size: .8em; margin-left: .1em; white-space: nowrap; }
.guide-article .guide-cta-price { color: #fff; font-weight: 700; font-size: 18px; }
.guide-cta .btn { max-width: 100%; }
.guide-cta::before { display: none; }
.article-body .guide-sources h2 { font-size: 20px; }
.guide-sources { margin-top: 56px; }
.guide-sources > * + * { margin-top: 18px; }
.guide-sources a { display: inline-block; }
.guide-sources ol { list-style: decimal; padding-left: 1.5em; font-size: 14px; }
.guide-sources li + li { margin-top: 16px; }
.guide-sources li p { color: var(--ink-2); font-size: 13px; }
@media (min-width: 640px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) {
  .guide-card { padding: 22px; }
  .guide-answer { padding: 20px; }
}
/* スマホ幅では、3列の表を1行ずつ縦に積む（横に並べると1列が6〜7文字になって読みにくいため）。
   列の見出しは各セルの data-label（tools/make_pages.py の stack_tables が付ける）で示す */
@media (max-width: 599px) {
  .guide-table, .guide-table caption, .guide-table tbody, .guide-table tr, .guide-table tbody th, .guide-table tbody td { display: block; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .guide-table tbody tr { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
  .guide-table tbody th, .guide-table tbody td { padding: 0; border: 0; background: none; }
  .guide-table tbody th { font-weight: 700; font-size: 15px; line-height: 1.6; }
  .guide-table tbody td { margin-top: 10px; }
  .guide-table tbody td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.6; }
}

/* ---------- print（印刷・PDF 保存。tools/archive_site.py が残す広告記録の PDF もこの見た目になる） ---------- */
@media print {
  /* 背景色ごと出す（濃い色の申込み欄は白文字なので、背景が抜けると読めなくなる） */
  html { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .site-header { position: static; }
  .skip-link, .menu-toggle, .site-nav, .sticky-cta { display: none !important; }
  .has-sticky .site-footer { padding-bottom: 48px; }
  .profile-photo { transform: none; }
  h2, h3 { break-after: avoid; }
  .topic-card, .feature, .step, .worry, .example, .price-box, .guide-card, .faq-list details, .callout, .cta-box, .contact-card,
  .intake-notice, .compare > div, .guide-answer, .toc, .guide-table tr, .who-card, .outcomes-card,
  .service-card, .field { break-inside: avoid; }
}

/* ---------- hub（総合サイト固有：相談窓口のカード・取扱分野） ---------- */
.services { background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.service-grid { display: grid; gap: 24px; }
.service-grid.is-single { max-width: 760px; margin-inline: auto; }
@media (min-width: 760px) { .service-grid:not(.is-single) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 30px;
  background: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--ink);
}
@media (min-width: 640px) { .service-card { padding: 32px 36px 34px; } }
.service-tag { align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.service-title { font-size: clamp(21px, 1.1rem + .6vw, 26px); }
.service-text { font-size: 15px; color: var(--ink-2); line-height: 1.85; }
.service-card .check-list { font-weight: 500; }
.service-more { align-self: flex-start; margin-top: 4px; font-size: 16px; }
.service-ext { font-size: 13px; color: var(--ink-2); margin-top: -6px; }

.fields { background: var(--bg); }
.field-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.field { position: relative; padding: 20px 22px 22px 24px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }
.field::before { content: ""; position: absolute; left: 0; top: 22px; width: 5px; height: 26px; border-radius: 0 6px 6px 0; background: var(--sun); }
.field h3 { font-size: 18px; }
.field p { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }
