/* コノヘン LP。ライトのみ（color-scheme: light を明示）。
   読み手は 40〜60 代の社長がスマホで: 本文 17px・見出し 26px 以上・行間 1.6 前後。
   コントラストは文字 4.5:1 以上、入力枠は 3:1 以上。 */
:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #57534e;
  --primary: #0f5e53;
  --primary-strong: #0a463e;
  --on-primary: #ffffff;
  --primary-tint: #e3f0ed;
  --tint-bg: #f1f6f4;
  --border: #7d776f;
  --line: #e4e0d8;
  --error: #b42318;
  --error-tint: #fdecea;
  --focus: #1d4ed8;
  --dark: #0c2e29;
  --on-dark: #f4f1ea;
  --on-dark-muted: #c9d6d2;
  --dark-accent: #8fdcc8;
  --radius: 12px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --tap: 48px;

  /* 画面見本の人の色（全見本で同じ人は同じ色。白文字で 4.5:1 以上） */
  --av-ta: #b45309;
  --av-ta2: #1d4ed8;
  --av-i: #6d28d9;
  --av-sa: #be123c;
  --av-su: #3f6212;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap.narrow {
  max-width: calc(40rem + 2 * 16px);
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.phrase {
  display: inline-block;
}

/* 小さい注記（本文ではない）: 画面見本の注記・ボタン下のひと言・任意の札 */
.fine {
  font-size: 0.9375rem; /* 15px */
  line-height: 1.5;
}

h1,
h2,
h3 {
  letter-spacing: 0.01em;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 7.5vw, 2.375rem); /* 28〜38px */
  line-height: 1.35;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.625rem; /* 26px */
  line-height: 1.4;
}

p {
  margin: 0 0 14px;
}

.measure {
  max-width: 38rem;
}

/* ---------- ボタン（同じ文言・同じ形を 3 か所） ---------- */

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 2px 0 var(--primary-strong);
}

.button:hover {
  background: var(--primary-strong);
}

.button:disabled {
  cursor: progress;
  opacity: 0.7;
}

/* ---------- 1 画面目 ---------- */

.hero {
  padding: calc(14px + env(safe-area-inset-top)) 0 40px;
  background: linear-gradient(180deg, #e9f2ef 0%, var(--bg) 70%);
  background-color: #eef4f1;
  overflow: hidden;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 16px;
}

.brand {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
}

.status {
  display: inline-block;
  padding: 1px 10px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-strong);
  font-size: 0.9375rem;
  font-weight: 700;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 9vw, 3.25rem); /* 28〜52px */
  line-height: 1.3;
  font-weight: 800;
}

.lead {
  margin: 0 0 20px;
  font-size: 1.0625rem;
  color: var(--text);
}

.lead strong {
  color: var(--primary-strong);
}

.cta-note {
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
}

/* .mock（後方で margin: 0 / --phone-w を持つ）に負けないよう、2 クラスで指定する */
.mock.mock-hero {
  margin-top: 28px;
}

@media (min-width: 900px) {
  .hero {
    padding: 40px 0 56px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 36rem) auto;
    justify-content: center;
    align-items: center;
    gap: 96px;
  }

  .hero-copy {
    max-width: 34rem;
  }

  .hero .button {
    max-width: 22rem;
  }

  .hero .cta-note {
    max-width: 22rem;
  }

  .lead {
    font-size: 1.25rem;
  }

  .mock.mock-hero {
    margin-top: 0;
    --phone-w: 312px;
  }
}

/* ---------- 各章 ---------- */

.section {
  padding: 48px 0;
}

.section + .section:not(.section-tint):not(.section-dark) {
  border-top: 1px solid var(--line);
}

.section-tint {
  background: var(--tint-bg);
}

@media (min-width: 900px) {
  .section {
    padding: 80px 0;
  }
}

/* 悩み: 2 つの声 */
.voices {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
}

@media (min-width: 720px) {
  .voices {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.voice {
  margin: 0;
  padding: 18px 20px 20px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.voice-alt {
  background: #fff8f0;
  border-color: #efdcc5;
}

.voice-who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.voice blockquote {
  margin: 0;
}

.voice blockquote p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.55;
}

.bridge {
  margin: 8px 0 0;
  color: var(--primary-strong);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
}

/* できること: 1 手 = 見出し + 1〜2 文 + 見本 1 枚 */
.feats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feat {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.feats .feat + .feat {
  margin-top: 56px;
}

.feat-text {
  width: 100%;
  max-width: 34rem;
}

.feat-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 0 12px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  line-height: 1;
}

@media (min-width: 900px) {
  .feat {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    justify-items: start;
  }

  .feat > .mock,
  .feat > .map-zoom {
    justify-self: center;
  }

  .feat-flip > .feat-text {
    order: 2;
  }

  .feats .feat + .feat {
    margin-top: 96px;
  }
}

.map-zoom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 22rem;
  margin: 0;
}

.map-zoom-frame {
  width: 100%;
  aspect-ratio: 188 / 214;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #f3f0e8;
  box-shadow: 0 16px 32px -16px rgba(28, 27, 25, 0.3);
}

.map-zoom-frame svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 見えるもの／見えないもの（山場） */
.section-dark {
  background: var(--dark);
  color: var(--on-dark);
}

.section-dark h2 {
  color: #ffffff;
}

.section-dark .measure {
  color: var(--on-dark-muted);
}

.scope-sample {
  max-width: 26rem;
  margin: 0 0 28px;
  padding: 6px 14px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(143, 220, 200, 0.35);
}

.scope-sample .mock-row {
  font-size: 15px;
}

.scope-sample .mock-av {
  width: 40px;
  height: 40px;
  font-size: 17px;
}

.scope-sample .mock-who small {
  font-size: 13px;
}

.scope-sample .mock-ago {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 13px;
}

.scope-place {
  color: var(--primary-strong);
  font-size: 15px;
  font-weight: 800;
}

.scope {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .scope {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.scope-col {
  padding: 20px;
  border-radius: 16px;
}

.scope-yes {
  background: rgba(143, 220, 200, 0.14);
  border: 1.5px solid rgba(143, 220, 200, 0.5);
}

.scope-no {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.scope-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.scope-yes h3 {
  color: var(--dark-accent);
}

.scope-no h3 {
  color: #ffffff;
}

.scope-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-col li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.scope-col li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.scope-col li .icon {
  margin-top: 0.2em;
}

.scope-yes li .icon {
  color: var(--dark-accent);
}

.scope-no li {
  color: var(--on-dark-muted);
}

/* 関係図: 工務店から各職人さんへは実線（見える）、職人さん同士は薄い破線に ×（見えない）。
   人の丸は見本と同じ .mock-av / .av-*、地図のピンと同じ白い縁。図の文字は 14px 以上 */
.org {
  --org-line: var(--dark-accent);
  --org-av: 44px;
  max-width: 36rem;
  margin: 36px 0 0;
}

.org-top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 18px 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(143, 220, 200, 0.35);
}

.org-top .mock-av {
  width: var(--org-av);
  height: var(--org-av);
  font-size: 18px;
}

.org-top-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.org-top-text b {
  font-size: 18px;
}

.org-top-sub {
  font-size: 15px;
  font-weight: 700;
}

.org-top-see {
  color: var(--primary-strong);
  font-size: 15px;
  font-weight: 700;
}

.org-crew {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 40px 0 0;
  list-style: none;
}

/* 幹（工務店の真下）と、3 人の真上を結ぶ横棒 */
.org-crew::before,
.org-crew::after,
.org-crew li::before {
  content: "";
  position: absolute;
  background: var(--org-line);
}

.org-crew::before {
  top: 0;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 20px;
}

.org-crew::after {
  top: 18px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 3px;
  border-radius: 2px;
}

.org-crew li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
  text-align: center;
  line-height: 1.4;
}

/* 横棒から各職人さんへ降りる線 */
.org-crew li::before {
  top: -22px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 22px;
}

.org-crew .mock-av {
  width: var(--org-av);
  height: var(--org-av);
  font-size: 18px;
  box-shadow: 0 0 0 3px #ffffff;
}

/* 職人さん同士: 丸と丸の間に薄い破線 */
.org-crew li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--org-av) / 2 - 1px);
  left: calc(50% + var(--org-av) / 2 + 6px);
  right: calc(-50% + var(--org-av) / 2 + 6px);
  border-top: 2px dashed rgba(255, 255, 255, 0.32);
}

.org-crew b {
  margin-top: 8px;
  color: #ffffff;
  font-size: 16px;
}

.org-place {
  color: var(--on-dark-muted);
  font-size: 14px;
}

.org-x {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: var(--dark);
  color: var(--on-dark-muted);
}

.org-x .icon {
  width: 14px;
  height: 14px;
}

.org-crew .org-x {
  position: absolute;
  z-index: 1;
  top: calc(var(--org-av) / 2);
  left: 100%;
  transform: translate(-50%, -50%);
}

.org-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 700;
}

.scope-close {
  margin: 32px 0 0;
  color: #ffffff;
  font-size: clamp(1.375rem, 6vw, 1.875rem);
  font-weight: 800;
  line-height: 1.45;
}

/* 職人さんが決められる */
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.checks .icon {
  margin-top: 0.2em;
  color: var(--primary);
}

/* 料金 */
.price-card {
  margin: 0 0 20px;
  padding: 24px 20px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 16px;
}

.price-scope {
  font-weight: 700;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
}

.price-note {
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 400;
}

.price-early {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary-strong);
}

.price-early-label {
  font-weight: 700;
}

.price-early-amount {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.3;
}

.price-more {
  margin: 0;
  color: var(--muted);
}

/* よくある質問・職人さんへ（既定で閉じる） */
.fold {
  border-top: 1px solid var(--line);
}

.fold:last-of-type {
  border-bottom: 1px solid var(--line);
}

.fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 0;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.fold summary::-webkit-details-marker {
  display: none;
}

.fold .chevron {
  color: var(--muted);
}

.fold[open] .chevron {
  transform: rotate(180deg);
}

.fold > p {
  margin: 0 0 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .fold .chevron {
    transition: transform 0.15s ease;
  }
}

/* ---------- 画面見本（全見本で同じ部品。T3） ---------- */

.mock {
  --phone-w: 272px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.mock-phone {
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 9 / 19;
  padding: 9px;
  border-radius: 42px;
  background: #1c1b19;
  box-shadow:
    inset 0 0 0 2px #3b3935,
    0 28px 48px -18px rgba(12, 46, 41, 0.45);
}

/* 上端のノッチ風 */
.mock-phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  border-radius: 999px;
  background: #1c1b19;
}

.mock-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 33px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: normal;
  user-select: none;
}

.mock-screen .icon {
  width: 16px;
  height: 16px;
}

.mock-status {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 6px 26px 0 30px;
  font-size: 13px;
  font-weight: 700;
}

.mock-battery {
  position: relative;
  width: 22px;
  height: 11px;
  border: 1.5px solid var(--text);
  border-radius: 3px;
}

.mock-battery::before {
  content: "";
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  border-radius: 1px;
  background: var(--text);
}

.mock-bar {
  flex: none;
  padding: 4px 16px 10px;
  border-bottom: 1px solid var(--line);
}

.mock-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.mock-sub {
  color: var(--muted);
  font-size: 11.5px;
}

.mock-map {
  position: relative;
  flex: 1;
  min-height: 0;
}

.map-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.map-land {
  fill: #f3f0e8;
}

.map-sea {
  fill: #d6e6f2;
}

.map-on {
  fill: rgba(22, 150, 118, 0.2);
}

.map-street path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
}

.map-rail {
  fill: none;
  stroke: #8a847b;
  stroke-width: 3.5;
}

.map-rail-tie {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.map-border path {
  fill: none;
  stroke: #a39c91;
  stroke-width: 1.3;
  stroke-dasharray: 5 3;
  stroke-linejoin: round;
}

.map-road-casing {
  fill: none;
  stroke: #d6d0c4;
  stroke-width: 9;
  stroke-linecap: round;
}

.map-road {
  fill: none;
  stroke: #ffffff;
  stroke-width: 6;
  stroke-linecap: round;
}

.map-river {
  fill: none;
  stroke: #9cc3e0;
  stroke-width: 5;
  stroke-linecap: round;
}

.map-river-label {
  fill: #2f5f86;
  font-size: 10px;
  font-weight: 700;
}

.map-label {
  fill: #57534e;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #f3f0e8;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.map-label-on {
  fill: var(--primary-strong);
  stroke: #dcebe3;
}

.map-pin {
  filter: drop-shadow(0 2px 2px rgba(28, 27, 25, 0.28));
}

.map-pin-dot {
  fill: var(--primary);
  stroke: #ffffff;
  stroke-width: 2;
}

.map-pin-tail,
.map-pin-ring {
  fill: #ffffff;
}

.map-pin-initial {
  fill: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
}

.map-pin-more {
  fill: var(--primary-strong);
  stroke: #ffffff;
  stroke-width: 1.5;
}

.map-pin-more-text {
  fill: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-anchor: middle;
}

/* 人の色: SVG（fill）と HTML（background）の両方で同じクラス */
.av-ta { fill: var(--av-ta); background: var(--av-ta); }
.av-ta2 { fill: var(--av-ta2); background: var(--av-ta2); }
.av-i { fill: var(--av-i); background: var(--av-i); }
.av-sa { fill: var(--av-sa); background: var(--av-sa); }
.av-su { fill: var(--av-su); background: var(--av-su); }
.av-boss { background: var(--primary); }
.av-crew { background: var(--av-ta); }

.mock-tabs {
  display: grid;
  flex: none;
  grid-template-columns: 1fr 1fr;
  padding: 6px 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mock-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.mock-tab.is-on {
  color: var(--primary-strong);
  background: var(--primary-tint);
}

.mock-tab .icon {
  width: 20px;
  height: 20px;
}

.mock-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f7f6f2;
}

.mock-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px 4px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
}

.mock-group span {
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
}

.mock-group-off {
  color: var(--muted);
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 16px;
  background: var(--surface);
}

.mock-body > .mock-row + .mock-row {
  border-top: 1px solid #efece6;
}

.mock-av {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.mock-av-lg {
  width: 84px;
  height: 84px;
  font-size: 34px;
  box-shadow: 0 0 0 4px var(--surface), 0 6px 16px -6px rgba(28, 27, 25, 0.4);
}

.mock-who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.mock-who b {
  font-size: 13.5px;
  white-space: nowrap;
}

.mock-who small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-ago {
  flex: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.mock-chev {
  flex: none;
  color: #a39c91;
}

.mock-row.is-off {
  background: #f7f6f2;
}

.mock-row.is-off .mock-av {
  background: #d4cfc6;
  color: #57534e;
}

.mock-row.is-off b {
  color: var(--muted);
}

.mock-back {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
  padding: 2px 12px 8px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 700;
}

.mock-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 14px 0;
  text-align: center;
}

.mock-name {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 800;
}

.mock-co {
  color: var(--muted);
  font-size: 13px;
}

.mock-chip {
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-strong);
  font-size: 11.5px;
  font-weight: 700;
}

.mock-card {
  margin: 12px 12px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}

.mock-profile .mock-card {
  align-self: stretch;
  margin: 18px 0 0;
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 12px;
}

.mock-item + .mock-item {
  border-top: 1px solid #efece6;
}

.mock-item > .icon {
  color: var(--primary);
}

.mock-item .mock-who b {
  font-size: 14px;
}

.mock-card .mock-row {
  padding: 10px 12px;
}

.mock-toggle {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #c9c3b8;
}

.mock-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mock-toggle.is-on {
  background: var(--primary);
}

.mock-toggle.is-on::after {
  left: 19px;
}

.mock-label {
  padding: 16px 16px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.mock-call {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 14px 22px;
  padding: 12px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.mock-call .icon {
  width: 18px;
  height: 18px;
}

.mock-note {
  margin: 0;
  color: var(--muted);
}

.section-dark .mock-note {
  color: var(--on-dark-muted);
}

/* 悩みの話し手の丸（見本の丸と同じ形） */
.voice-who .mock-av {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

/* ---------- 登録フォーム ---------- */

.register {
  outline: none;
  background: var(--tint-bg);
}

.form {
  margin-top: 20px;
}

.field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > label,
.field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 700;
}

.optional {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 400;
}

input[type="text"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: max(1.0625rem, 16px);
}

textarea {
  resize: vertical;
}

[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  line-height: 1.4;
}

/* 選ばれた状態は色に加えて枠の太さとチェック記号でも示す */
.chip input:checked + span {
  border: 2.5px solid var(--primary);
  padding: 7px 15px;
  background: var(--primary-tint);
  color: var(--primary-strong);
}

.chip-check {
  display: none;
}

.chip input:checked + span .chip-check {
  display: block;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.chip-wide {
  display: flex;
}

.chip-wide span {
  width: 100%;
  border-radius: var(--radius);
}

.field-error,
.form-error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 6px 0 0;
  color: var(--error);
  font-size: 1rem;
  font-weight: 700;
}

.field-error[hidden],
.form-error[hidden] {
  display: none;
}

.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--error-tint);
}

.field-error .icon,
.form-error .icon {
  margin-top: 0.15em;
}

.turnstile:empty {
  display: none;
}

.turnstile {
  margin: 0 0 12px;
}

.done {
  margin-top: 20px;
  padding: 20px 16px;
  border: 2px solid var(--primary);
  border-radius: 16px;
  background: var(--surface);
  outline: none;
}

.done[hidden] {
  display: none;
}

.done-head {
  display: flex;
  gap: 12px;
  margin: 0;
}

.done-head .icon {
  width: 1.5em;
  height: 1.5em;
  color: var(--primary);
}

.done strong {
  display: block;
}

.followup {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.followup-lead {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
}

.followup-done {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  outline: none;
}

.followup-done[hidden] {
  display: none;
}

/* 職人さんの入口の中のフォーム */
.shokunin .form {
  margin-top: 8px;
  padding-bottom: 8px;
}

/* ---------- フッター ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  max-width: 72rem;
  margin: 0 auto;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer p {
  margin: 0;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* ---------- プライバシーポリシー ---------- */

.doc {
  max-width: 40rem;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) var(--gutter) 32px;
}

.doc h1 {
  font-size: 1.75rem;
}

.doc h2 {
  margin-top: 28px;
  font-size: 1.1875rem;
}

.doc ul {
  padding-left: 1.25em;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 700;
}
