/* espace 見積チェッカー — espace brand kit v1.0 に準拠 */

@font-face {
  font-family: "Dela Gothic One";
  src: url("/assets/fonts/dela-gothic-one-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand colors */
  --espace-orange: #e75c21;
  --espace-ink: #252821;
  --espace-action: #c64a16;
  --espace-orange-ink: #bc4311;
  --espace-orange-wash: #fff3ea;
  --espace-background: #fafaf7;
  --espace-surface: #ffffff;
  --espace-muted: #65685f;
  --espace-border: #dcded4;
  --espace-sage: #879c71;

  /* derived */
  --sage-wash: #eef2e8;
  --sage-ink: #4f6040;
  --ink-2: #3a3d35;
  --shadow: 0 1px 2px rgba(37, 40, 33, 0.06), 0 8px 24px rgba(37, 40, 33, 0.06);
  --radius: 14px;
  --radius-sm: 8px;

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
    YuGothic, "BIZ UDPGothic", Meiryo, sans-serif;
  --font-display: "Dela Gothic One", var(--font-body);
  --font-num: "BIZ UDPGothic", Arial, var(--font-body);

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* hidden 属性は、display を指定した部品（ボタン・一覧など）でも必ず非表示にする */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--espace-background);
  color: var(--espace-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  body {
    font-size: 17px;
  }
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--espace-orange-ink);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--espace-action);
}

:focus-visible {
  outline: 3px solid var(--espace-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--espace-ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--espace-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--espace-ink);
  flex-shrink: 0;
}

/* 元PNGの配置幅は130px以上（見える横幅110px以上）を守る */
.brand img {
  width: 136px;
  height: auto;
}

.brand-service {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding-left: 12px;
  border-left: 1px solid var(--espace-border);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a.nav-link {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a.nav-link:hover {
  background: var(--espace-orange-wash);
  color: var(--espace-orange-ink);
}

@media (max-width: 899px) {
  .site-nav a.nav-link {
    display: none;
  }
  .brand-service {
    display: none;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 130px;
  }
  .site-header .btn {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--espace-action);
  color: #fff;
  box-shadow: 0 6px 16px rgba(198, 74, 22, 0.25);
}

.btn-primary:hover {
  color: #fff;
  background: #b2410f;
  transform: translateY(-1px);
}

.btn-primary[disabled] {
  background: #b9b9b0;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--espace-ink);
  border: 1.5px solid var(--espace-ink);
}

.btn-ghost:hover {
  background: var(--espace-ink);
  color: #fff;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 34px;
  font-size: 18px;
}

.btn .arrow {
  transition: transform 0.15s;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- common section ---------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-alt {
  background: var(--espace-surface);
  border-top: 1px solid var(--espace-border);
  border-bottom: 1px solid var(--espace-border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--espace-orange-ink);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--espace-orange);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.4;
}

.section-lead {
  margin-top: 16px;
  color: var(--espace-muted);
  max-width: 44em;
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
  border-radius: var(--radius);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 899px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--espace-ink);
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 22px;
}

.hero-kicker .tag {
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--espace-sage);
  color: var(--espace-ink);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-feature-settings: normal;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.22;
}

.hero h1 .line {
  display: block;
}

.hero h1 .line + .line {
  margin-top: 0.14em;
}

/* オレンジの帯で大見出しを強調（主色の白抜き文字は大きい見出しのみ） */
.band {
  display: inline;
  background: var(--espace-orange);
  color: #fff;
  padding: 0.02em 0.22em 0.06em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-lead {
  margin-top: 24px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-2);
  max-width: 34em;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--espace-ink);
}

.hero-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage-wash)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234f6040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 32px;
}

.price-inline {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--espace-ink);
}

.price-inline .label {
  font-size: 13px;
  color: var(--espace-muted);
  font-weight: 700;
}

.price-inline .amount {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.price-inline .tax {
  font-size: 13px;
  color: var(--espace-muted);
}

/* hero visual */

.hero-visual {
  position: relative;
  padding-bottom: 190px;
}

.plan-card {
  position: relative;
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(rgba(135, 156, 113, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 156, 113, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  width: 88%;
}

.plan-card .plan-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--espace-muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.plan-card svg {
  width: 100%;
  height: auto;
}

.report-float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(330px, 78%);
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(37, 40, 33, 0.14);
  padding: 18px;
}

.report-float .rf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--espace-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.report-float .rf-title {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.report-float .rf-title strong {
  color: var(--espace-orange-ink);
}

.rf-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rf-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px;
  border-radius: 10px;
  background: var(--espace-background);
}

.pin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--espace-orange);
  color: #fff;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pin.is-medium {
  background: var(--espace-sage);
  color: var(--espace-ink);
}

@media (max-width: 899px) {
  .hero-visual {
    padding-bottom: 170px;
  }
  .plan-card {
    width: 100%;
  }
  .report-float {
    bottom: 0;
  }
}

@media (max-width: 520px) {
  .hero-visual {
    padding-bottom: 0;
  }
  .report-float {
    position: relative;
    width: 100%;
    margin-top: -36px;
  }
}

/* ---------- value（このサービスのねらい） ---------- */

.hero-value {
  margin-top: 18px;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 800;
  line-height: 1.6;
}

.hero-value strong {
  color: var(--espace-orange-ink);
  font-family: var(--font-num);
  font-size: 1.15em;
}

.value-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr);
  gap: 16px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .value-compare {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

.value-box {
  border: 1px solid var(--espace-border);
  border-radius: var(--radius);
  background: var(--espace-background);
  padding: 22px 24px;
  text-align: center;
}

.value-box .k {
  font-size: 13px;
  font-weight: 700;
  color: var(--espace-muted);
  letter-spacing: 0.04em;
}

.value-box .v {
  margin-top: 4px;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800;
  line-height: 1.25;
}

.value-box .v .yen {
  font-size: 0.6em;
  margin-right: 2px;
}

.value-box .v small {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  margin-left: 4px;
}

.value-box.is-loss {
  background: var(--espace-orange-wash);
  border-color: #f3d4bf;
}

.value-box.is-loss .k,
.value-box.is-loss .v {
  color: var(--espace-orange-ink);
}

.value-vs {
  justify-self: center;
  background: var(--espace-ink);
  color: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.value-note {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--espace-muted);
}

.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
}

@media (max-width: 899px) {
  .who-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.who {
  padding: 24px 22px;
}

.who.is-main {
  background: var(--espace-orange-wash);
  border-color: #f3d4bf;
}

.who-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  background: var(--sage-wash);
  color: var(--sage-ink);
}

.who.is-main .who-tag {
  background: var(--espace-action);
  color: #fff;
}

.who h3 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
}

.who h3 + p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- severity chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1.5;
  white-space: nowrap;
}

.chip-high {
  background: var(--espace-orange-wash);
  color: var(--espace-orange-ink);
  box-shadow: inset 0 0 0 1px rgba(188, 67, 17, 0.25);
}

.chip-medium {
  background: var(--sage-wash);
  color: var(--sage-ink);
  box-shadow: inset 0 0 0 1px rgba(79, 96, 64, 0.2);
}

.chip-low {
  background: #f1f1ec;
  color: var(--espace-muted);
  box-shadow: inset 0 0 0 1px var(--espace-border);
}

/* ---------- pains ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 999px) {
  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pain-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pain {
  padding: 24px 22px;
  position: relative;
}

.pain .quote {
  margin-top: 0;
  color: var(--espace-ink);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.6;
}

.pain p {
  margin-top: 10px;
  color: var(--espace-muted);
  font-size: 15px;
}

.pain .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--espace-orange-wash);
  color: var(--espace-orange-ink);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

/* ---------- how it works (pipeline) ---------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

@media (max-width: 899px) {
  .pipeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

.stage {
  position: relative;
  padding: 28px 26px;
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
}

.stage:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.stage:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--espace-orange-wash);
  border-color: #f3d4bf;
}

.stage + .stage {
  border-left: 0;
}

@media (max-width: 899px) {
  .stage,
  .stage:first-child,
  .stage:last-child {
    border-radius: var(--radius);
  }
  .stage + .stage {
    border-left: 1px solid var(--espace-border);
  }
  .stage:last-child {
    border-color: #f3d4bf;
  }
}

.stage-no {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--sage-ink);
  letter-spacing: 0.1em;
}

.stage:last-child .stage-no {
  color: var(--espace-orange-ink);
}

.stage h3 {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
}

.stage p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}

.stage ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.stage li {
  font-size: 14px;
  color: var(--espace-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.stage li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--espace-sage);
}

.stage .where {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--sage-ink);
  background: var(--sage-wash);
  border-radius: 6px;
  padding: 3px 8px;
}

.stage-arrow {
  position: absolute;
  right: -15px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--espace-ink);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
}

@media (max-width: 899px) {
  .stage-arrow {
    right: 50%;
    top: auto;
    bottom: -22px;
    margin: 0 -15px 0 0;
    transform: rotate(90deg);
  }
}

/* ---------- flow ---------- */

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: flow;
}

@media (max-width: 999px) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
}

.flow li {
  padding: 24px 22px;
  counter-increment: flow;
}

.flow li::before {
  content: "STEP " counter(flow, decimal-leading-zero);
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--espace-orange-ink);
}

.flow h3 {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
}

.flow p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--espace-muted);
}

/* ---------- checks ---------- */

.check-layout {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cat-grid li {
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-grid li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--espace-sage);
  flex-shrink: 0;
}

.find-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 999px) {
  .find-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .find-types {
    grid-template-columns: minmax(0, 1fr);
  }
}

.find-type {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

@media (max-width: 560px) {
  .find-type {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.find-type .ft-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--espace-orange-wash);
  color: var(--espace-orange-ink);
}

.find-type h3 {
  font-size: 16px;
  font-weight: 800;
}

.find-type p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--espace-muted);
  line-height: 1.65;
}

/* ---------- sample report ---------- */

.sample {
  padding: clamp(20px, 3vw, 32px);
  position: relative;
}

.sample-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--espace-muted);
  border: 1px dashed var(--espace-border);
  border-radius: 6px;
  padding: 2px 8px;
}

.sample-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--espace-border);
}

@media (max-width: 799px) {
  .sample-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sample-top h3 {
  font-size: 20px;
  font-weight: 800;
  padding-right: 64px;
}

.sample-top .meta {
  font-size: 13px;
  color: var(--espace-muted);
  margin-top: 4px;
}

.sample-top .overall {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.stat {
  border-radius: 12px;
  padding: 14px 12px;
  background: var(--espace-background);
  border: 1px solid var(--espace-border);
}

.stat .k {
  font-size: 12px;
  font-weight: 700;
  color: var(--espace-muted);
}

.stat .v {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2px;
}

.stat .v small {
  font-size: 13px;
  margin-left: 2px;
  font-family: var(--font-body);
}

.stat.is-high {
  background: var(--espace-orange-wash);
  border-color: #f3d4bf;
}

.stat.is-high .v {
  color: var(--espace-orange-ink);
}

.finding-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.finding {
  border: 1px solid var(--espace-border);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--espace-surface);
}

.finding.is-high {
  border-left: 4px solid var(--espace-orange);
}

.finding.is-medium {
  border-left: 4px solid var(--espace-sage);
}

.finding.is-low {
  border-left: 4px solid var(--espace-border);
}

.finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.finding-head .fid {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--espace-muted);
}

.finding-head .cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--espace-background);
  border: 1px solid var(--espace-border);
  border-radius: 6px;
  padding: 1px 8px;
}

.finding h4 {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .evidence {
    grid-template-columns: minmax(0, 1fr);
  }
}

.evidence div {
  font-size: 14px;
  line-height: 1.65;
  background: var(--espace-background);
  border-radius: 8px;
  padding: 10px 12px;
}

.evidence b {
  display: block;
  font-size: 12px;
  color: var(--espace-muted);
  margin-bottom: 2px;
}

.ask {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--espace-orange-wash);
  color: var(--espace-ink);
}

.ask b {
  color: var(--espace-orange-ink);
  font-size: 12px;
  display: block;
}

.sample-foot {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--espace-muted);
}

/* ---------- trust ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 760px) {
  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.trust {
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
}

.trust .t-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage-wash);
  color: var(--sage-ink);
  display: grid;
  place-items: center;
}

.trust h3 {
  font-size: 17px;
  font-weight: 800;
}

.trust p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--espace-muted);
}

.env-diagram {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--espace-sage);
  background: var(--espace-surface);
}

.env-diagram .env-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--sage-ink);
  letter-spacing: 0.08em;
}

.env-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.env-flow .node {
  background: var(--sage-wash);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
}

.env-flow .node.is-out {
  background: var(--espace-orange-wash);
  color: var(--espace-orange-ink);
}

.env-flow .sep {
  color: var(--espace-muted);
}

/* ---------- pricing ---------- */

.price-card {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  overflow: hidden;
}

@media (max-width: 720px) {
  .price-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.price-main {
  padding: 32px;
  background: var(--espace-orange-wash);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-main .plan {
  font-weight: 800;
  font-size: 15px;
  color: var(--espace-orange-ink);
}

.price-main .big {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 64px);
  line-height: 1.1;
  margin-top: 6px;
  letter-spacing: 0;
}

.price-main .big .yen {
  font-size: 0.55em;
  margin-right: 2px;
}

.price-main .big .tax {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  margin-left: 6px;
}

.price-main .incl {
  margin-top: 6px;
  font-size: 14px;
  color: var(--espace-muted);
}

.price-main .worth {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--espace-orange-ink);
}

.price-main .btn {
  margin-top: 22px;
  align-self: flex-start;
}

.price-detail {
  padding: 28px 32px;
}

.price-detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.price-detail li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.price-detail li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--sage-wash)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234f6040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.price-detail .note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--espace-muted);
}

/* ---------- faq ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
  border-radius: 12px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 800;
  font-size: 16px;
  position: relative;
  line-height: 1.6;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "Q";
  font-family: var(--font-num);
  color: var(--espace-orange-ink);
  margin-right: 10px;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--espace-ink);
  border-bottom: 2px solid var(--espace-ink);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq .answer {
  padding: 0 20px 20px 44px;
  color: var(--ink-2);
  font-size: 15px;
}

.faq .answer p + p {
  margin-top: 8px;
}

/* ---------- closing (dark) ---------- */

.closing {
  background: var(--espace-ink);
  color: #fff;
  padding: clamp(64px, 9vw, 112px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.closing .wrap {
  position: relative;
}

.closing h2 {
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.3;
}

.closing p {
  margin: 20px auto 0;
  max-width: 34em;
  color: #e8e8e2;
}

.closing .btn {
  margin-top: 32px;
}

.closing .sub {
  margin-top: 14px;
  font-size: 14px;
  color: #c9cbc2;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--espace-border);
  background: var(--espace-background);
  font-size: 14px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand img {
  width: 150px;
  height: auto;
}

.footer-brand p {
  margin-top: 8px;
  color: var(--espace-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--espace-orange-ink);
  text-decoration: underline;
}

.copyright {
  margin-top: 28px;
  color: var(--espace-muted);
  font-size: 12px;
}

/* ---------- forms (check page) ---------- */

.page-head {
  padding: clamp(32px, 5vw, 56px) 0 24px;
}

.page-head h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
}

.page-head p {
  margin-top: 10px;
  color: var(--espace-muted);
}

.stepper {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  flex-wrap: wrap;
}

.stepper li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--espace-muted);
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
  border-radius: 999px;
  padding: 5px 14px 5px 6px;
}

.stepper li .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--espace-border);
  color: var(--espace-ink);
  font-family: var(--font-num);
  font-size: 12px;
}

.stepper li.is-current {
  color: var(--espace-ink);
  border-color: var(--espace-ink);
}

.stepper li.is-current .n {
  background: var(--espace-action);
  color: #fff;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  padding-bottom: 80px;
}

@media (max-width: 959px) {
  .form-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-section {
  padding: clamp(20px, 3vw, 32px);
}

.form-section + .form-section {
  margin-top: 20px;
}

.form-section h2 {
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section h2 .n {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--espace-ink);
  color: #fff;
  font-family: var(--font-num);
  font-size: 14px;
  display: grid;
  place-items: center;
}

.form-section .hint {
  margin-top: 6px;
  font-size: 14px;
  color: var(--espace-muted);
}

.field {
  margin-top: 20px;
}

.field label,
.field .label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

.req,
.opt {
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 6px;
}

.req {
  background: var(--espace-action);
  color: #fff;
}

.opt {
  background: var(--espace-background);
  color: var(--espace-muted);
  border: 1px solid var(--espace-border);
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  font: inherit;
  font-size: 16px;
  color: var(--espace-ink);
  background: var(--espace-surface);
  border: 1.5px solid var(--espace-border);
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.5;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--espace-orange);
  box-shadow: 0 0 0 3px rgba(231, 92, 33, 0.18);
}

.field .help {
  margin-top: 6px;
  font-size: 13px;
  color: var(--espace-muted);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 16px;
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dropzone {
  margin-top: 14px;
  border: 2px dashed var(--espace-border);
  border-radius: 14px;
  background: var(--espace-background);
  padding: 28px 20px;
  text-align: center;
  transition:
    border-color 0.15s,
    background-color 0.15s;
  position: relative;
}

.dropzone.is-over {
  border-color: var(--espace-orange);
  background: var(--espace-orange-wash);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.dropzone .dz-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
  display: grid;
  place-items: center;
  color: var(--espace-orange-ink);
}

.dropzone .dz-main {
  font-weight: 800;
}

.dropzone .dz-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--espace-muted);
}

.dropzone .dz-btn {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--espace-orange-ink);
  background: var(--espace-surface);
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 6px 16px;
}

.file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.file-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--espace-border);
  border-radius: 10px;
  background: var(--espace-surface);
}

.file-item .ext {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 6px;
  background: var(--sage-wash);
  color: var(--sage-ink);
  min-width: 42px;
  text-align: center;
}

.file-item .fname {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item .fsize {
  font-size: 12px;
  color: var(--espace-muted);
}

.file-item .bar {
  height: 4px;
  border-radius: 2px;
  background: var(--espace-border);
  margin-top: 6px;
  overflow: hidden;
}

.file-item .bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--espace-orange);
  transition: width 0.2s;
}

.file-item .remove {
  border: 0;
  background: transparent;
  color: var(--espace-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
}

.file-item .remove:hover {
  background: var(--espace-background);
  color: var(--espace-ink);
}

.file-total {
  margin-top: 8px;
  font-size: 13px;
  color: var(--espace-muted);
  text-align: right;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
}

.consent input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--espace-action);
  flex-shrink: 0;
}

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--espace-orange-wash);
  color: var(--espace-ink);
  font-size: 14px;
}

.notice.is-error {
  background: #fdeaea;
  color: #8a1f11;
  border: 1px solid #f2c4bd;
}

.notice.is-info {
  background: var(--sage-wash);
  color: var(--sage-ink);
}

.summary-card {
  position: sticky;
  top: 88px;
  padding: 24px;
}

.summary-card h2 {
  font-size: 16px;
  font-weight: 800;
}

.summary-lines {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-lines .total {
  border-top: 1px solid var(--espace-border);
  padding-top: 10px;
  margin-top: 4px;
  font-weight: 800;
  font-size: 17px;
}

.summary-card .btn {
  width: 100%;
  margin-top: 20px;
}

.summary-card .after {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--espace-border);
  font-size: 13px;
  color: var(--espace-muted);
}

.summary-card .after ol {
  margin: 8px 0 0;
  padding-left: 1.3em;
}

.stripe-note {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--espace-muted);
}

/* ---------- report page ---------- */

.report-shell {
  padding: clamp(24px, 4vw, 48px) 0 96px;
}

.progress-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}

.progress-card h1 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
}

.progress-card .ref {
  margin-top: 6px;
  font-size: 14px;
  color: var(--espace-muted);
}

.stage-list {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  max-width: 420px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.stage-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--espace-muted);
  font-weight: 700;
}

.stage-list .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--espace-border);
  display: grid;
  place-items: center;
}

.stage-list li.is-done {
  color: var(--espace-ink);
}

.stage-list li.is-done .dot {
  background: var(--espace-sage);
  border-color: var(--espace-sage);
}

.stage-list li.is-done .dot::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.stage-list li.is-active {
  color: var(--espace-ink);
  background: var(--espace-orange-wash);
}

.stage-list li.is-active .dot {
  border-color: var(--espace-orange);
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-list li.is-active .dot {
    animation: none;
    border-top-color: var(--espace-orange);
  }
  html {
    scroll-behavior: auto;
  }
}

.progress-card .keep {
  margin-top: 24px;
  font-size: 14px;
  color: var(--espace-muted);
}

.url-box {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--espace-background);
  border: 1px solid var(--espace-border);
  border-radius: 10px;
  padding: 8px 8px 8px 14px;
}

.url-box code {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

.report-head .label {
  font-size: 13px;
  font-weight: 700;
  color: var(--espace-orange-ink);
  letter-spacing: 0.08em;
}

.report-head h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  margin-top: 4px;
}

.report-head .meta {
  margin-top: 6px;
  font-size: 14px;
  color: var(--espace-muted);
}

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-panel {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .summary-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

.risk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  padding: 4px 12px;
}

.risk-high {
  background: var(--espace-orange-wash);
  color: var(--espace-orange-ink);
}

.risk-medium {
  background: var(--sage-wash);
  color: var(--sage-ink);
}

.risk-low {
  background: #f1f1ec;
  color: var(--espace-muted);
}

.summary-panel .headline {
  margin-top: 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  line-height: 1.55;
}

.summary-panel .overall {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

.summary-panel .scope {
  margin-top: 12px;
  font-size: 13px;
  color: var(--espace-muted);
}

.report-section {
  margin-top: 40px;
}

.report-section > h2 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.report-section > h2 .count {
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--espace-muted);
}

.desc {
  font-size: 14px;
  color: var(--espace-muted);
}

.report-section > .desc {
  margin-top: 6px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filters button {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
  border: 1.5px solid var(--espace-border);
  background: var(--espace-surface);
  color: var(--ink-2);
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  border-color: var(--espace-ink);
  background: var(--espace-ink);
  color: #fff;
}

.finding .reco {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.finding .reco b {
  color: var(--espace-ink);
}

.finding .foot {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--espace-muted);
}

.cat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}

.cat-table th,
.cat-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--espace-border);
  vertical-align: top;
}

.cat-table th {
  background: var(--espace-background);
  font-size: 12px;
  color: var(--espace-muted);
  letter-spacing: 0.06em;
}

.cat-table tr:last-child td {
  border-bottom: 0;
}

.status-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

.st-ok {
  background: var(--sage-wash);
  color: var(--sage-ink);
}

.st-attention {
  background: #fff7df;
  color: #7a5200;
}

.st-missing {
  background: var(--espace-orange-wash);
  color: var(--espace-orange-ink);
}

.st-na,
.st-unknown {
  background: #f1f1ec;
  color: var(--espace-muted);
}

@media (max-width: 640px) {
  .cat-table thead {
    display: none;
  }
  .cat-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--espace-border);
  }
  .cat-table td {
    padding: 0;
    border: 0;
  }
  .cat-table td:nth-child(3) {
    grid-column: 1 / -1;
    color: var(--espace-muted);
  }
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.info-grid .card {
  padding: 20px;
}

.info-grid h3 {
  font-size: 15px;
  font-weight: 800;
}

.kv {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 14px;
}

.kv dt {
  color: var(--espace-muted);
}

.kv dd {
  margin: 0;
}

.plain-list {
  margin: 10px 0 0;
  padding-left: 1.2em;
  font-size: 14px;
  color: var(--ink-2);
}

.plain-list li + li {
  margin-top: 4px;
}

.copy-box {
  margin-top: 14px;
  padding: 20px;
}

.copy-box textarea {
  width: 100%;
  min-height: 220px;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid var(--espace-border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--espace-background);
  color: var(--espace-ink);
  resize: vertical;
}

.copy-box .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.disclaimer {
  margin-top: 40px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
  font-size: 13px;
  color: var(--espace-muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--espace-ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 80;
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--gutter) 96px;
}

.legal h1 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
}

.legal .updated {
  margin-top: 8px;
  font-size: 13px;
  color: var(--espace-muted);
}

.legal h2 {
  margin-top: 36px;
  font-size: 18px;
  font-weight: 800;
}

.legal p,
.legal li {
  font-size: 15px;
  color: var(--ink-2);
}

.legal p {
  margin-top: 10px;
}

.legal ol,
.legal ul {
  margin: 10px 0 0;
  padding-left: 1.4em;
}

.legal li + li {
  margin-top: 6px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: var(--espace-surface);
  border: 1px solid var(--espace-border);
  font-size: 15px;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--espace-border);
}

.legal th {
  width: 32%;
  background: var(--espace-background);
  font-weight: 700;
}

@media (max-width: 640px) {
  .legal th,
  .legal td {
    display: block;
    width: 100%;
  }
  .legal th {
    border-bottom: 0;
    padding-bottom: 4px;
  }
}

.todo {
  background: #fff7df;
  color: #7a5200;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
}

/* ---------- print (report PDF) ---------- */

@media print {
  @page {
    size: A4;
    margin: 14mm 12mm;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
  .site-header,
  .site-footer,
  .no-print,
  .filters,
  .toast {
    display: none !important;
  }
  .card,
  .finding,
  .summary-panel {
    box-shadow: none;
    break-inside: avoid;
  }
  .report-shell {
    padding: 0;
  }
  .print-only {
    display: block !important;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}

.print-only {
  display: none;
}

/* ---------- utilities ---------- */

.u-mt8 {
  margin-top: 8px;
}

.u-mt10 {
  margin-top: 10px;
}

.u-mt20 {
  margin-top: 20px;
}

.u-bold {
  font-weight: 700;
}

/* 文節の途中で折り返さない（見出しの最後の1〜2文字だけが次の行に落ちるのを防ぐ） */
.u-nowrap {
  display: inline-block;
}
