:root {
  --ink: #17202a;
  --muted: #617083;
  --line: #dce3ea;
  --surface: #ffffff;
  --soft: #f4f8fb;
  --navy: #17324d;
  --teal: #0f8b8d;
  --mint: #dff6ee;
  --green: #36a86b;
  --amber: #f2a93b;
  --red: #d8534f;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
  background: var(--soft);
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(220, 227, 234, 0.8);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.header-nav,
.hero-actions,
.quiz-controls {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
}

.header-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.gated-link[aria-disabled="true"] {
  color: #9aa7b5;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--navy);
  background:
    radial-gradient(circle at 12% 12%, rgba(242, 169, 59, 0.22), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(15, 139, 141, 0.16), transparent 30%),
    linear-gradient(180deg, #fffaf0 0%, #f4fbfa 58%, #ffffff 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 139, 141, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 139, 141, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 76%);
}

.hero::after {
  right: -130px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(242, 169, 59, 0.18);
  filter: blur(8px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(28px, 4vw, 56px);
  min-height: min(780px, calc(100svh - 68px));
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 36px) 22px 46px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.cta-section .eyebrow {
  color: #9ce7d6;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(242, 169, 59, 0.34);
  border-radius: 999px;
  padding: 7px 13px;
  color: #b95c00;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 10px 28px rgba(242, 169, 59, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(242, 169, 59, 0.16);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.14;
  letter-spacing: 0;
}

.hero h1 {
  text-wrap: balance;
  text-shadow: none;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.28;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.45;
}

.lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero .lead {
  max-width: 680px;
  border-left: 4px solid var(--amber);
  padding-left: 18px;
  color: #43566b;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 24px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #10a69b, #0f8b8d 54%, #0a6f78);
  box-shadow:
    0 16px 34px rgba(8, 89, 96, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero .button.primary {
  min-height: 58px;
  border-color: rgba(242, 169, 59, 0.24);
  border-radius: 999px;
  padding-inline: 30px;
  font-size: 17px;
  background: linear-gradient(135deg, #ff9b1a, #f27f0c 52%, #dc5f08);
  box-shadow:
    0 18px 38px rgba(242, 127, 12, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.hero .button.primary::after {
  content: "→";
  margin-left: 12px;
  font-size: 20px;
  line-height: 1;
}

.hero-copy::after {
  content: "8問で完了　|　年間損失額を自動計算　|　内訳まで表示";
  display: inline-flex;
  margin-top: 22px;
  border: 1px solid rgba(15, 139, 141, 0.16);
  border-radius: 999px;
  padding: 9px 14px;
  color: #315064;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(22, 49, 74, 0.08);
  backdrop-filter: blur(12px);
}

.button.ghost {
  color: var(--navy);
  border-color: var(--line);
  background: #fff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.hero-illustration,
.solution-illustration {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.hero-illustration {
  position: relative;
  overflow: hidden;
  padding: 8px;
  border-color: rgba(15, 139, 141, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 26px 70px rgba(22, 49, 74, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.hero-illustration::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.hero-illustration img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.svg-card {
  fill: #fff;
  stroke: #dce3ea;
  stroke-width: 2;
}

.svg-person-bg,
.svg-badge {
  fill: var(--mint);
}

.svg-skin {
  fill: #f6c9a8;
}

.svg-jacket,
.svg-line,
.svg-bar.green,
.svg-ai {
  fill: var(--teal);
}

.svg-line.light {
  fill: #cfe4ea;
}

.svg-bar.amber {
  fill: var(--amber);
}

.svg-bar.red {
  fill: var(--red);
}

.svg-axis,
.svg-arrow {
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.svg-check {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.svg-yen {
  fill: var(--navy);
  font-size: 34px;
  font-weight: 800;
}

.svg-small {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.svg-shadow-line {
  fill: none;
  stroke: rgba(23, 50, 77, 0.14);
  stroke-linecap: round;
  stroke-width: 16;
}

.svg-ai {
  font-size: 30px;
  font-weight: 800;
}

.problem-section,
.diagnosis-section,
.solution-section,
.cta-section,
.result-section {
  padding: clamp(64px, 8vw, 104px) 22px;
}

.section-heading,
.problem-grid,
.quiz-shell,
.result-layout,
.solution-grid,
.solution-intro {
  max-width: 1120px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
}

.section-heading.compact {
  max-width: 780px;
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.problem-grid article,
.quiz-shell,
.question-card,
.result-summary,
.result-details,
.lead-form,
.solution-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.problem-grid article {
  min-height: 140px;
  padding: 20px;
}

.problem-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #f3f6f8;
}

.problem-grid span,
.solution-grid span {
  color: var(--teal);
  font-weight: 800;
}

.problem-grid p {
  margin: 10px 0 0;
  font-weight: 800;
  line-height: 1.55;
}

.quiz-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
}

.quiz-visual {
  display: none;
  position: absolute;
  top: 30px;
  right: 32px;
  width: min(18vw, 126px);
  opacity: 0.18;
  pointer-events: none;
  transform: translateY(-18px);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e8eef3;
}

.progress-bar {
  width: 14.2%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 0.25s ease;
}

.question-card {
  position: relative;
  margin-top: 22px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: none;
}

.question-intent {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.answer-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.answer-option {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.answer-option span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--navy);
  background: #edf4f6;
  font-weight: 800;
}

.answer-option.is-selected {
  border-color: var(--teal);
  background: #eefafa;
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.12);
}

.quiz-controls {
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.auto-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.result-section {
  background: #fff;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
}

.result-summary,
.result-details {
  padding: clamp(22px, 4vw, 36px);
  box-shadow: none;
}

.result-summary .lead {
  color: var(--muted);
}

.result-cta {
  margin-top: 18px;
}

.loss-box {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  border-radius: 8px;
  padding: 20px;
  color: #fff;
  background: var(--navy);
}

.loss-box span {
  font-weight: 700;
}

.loss-box strong {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}

.result-details {
  display: grid;
  gap: 24px;
}

.result-details ul {
  margin: 0;
  padding-left: 20px;
}

.result-details li {
  margin: 7px 0;
}

.breakdown-list {
  display: grid;
  gap: 14px;
  padding-left: 0 !important;
  list-style: none;
}

.breakdown-list li {
  margin: 0;
}

.breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}

.breakdown-row span {
  color: var(--ink);
  font-weight: 800;
}

.breakdown-row strong {
  color: var(--teal);
  white-space: nowrap;
}

.breakdown-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e8eef3;
}

.breakdown-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.recommendation {
  border-left: 4px solid var(--teal);
  padding-left: 18px;
}

.solution-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  margin-bottom: 24px;
  align-items: center;
}

.solution-illustration {
  padding: 12px;
  background: #fff;
}

.solution-replacement-image {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.solution-replacement-image + svg {
  display: none;
}

.solution-intro p,
.solution-grid p,
.cta-section p,
.form-message {
  color: var(--muted);
}

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

.feature-grid article {
  min-height: 250px;
}

.solution-grid article {
  min-height: 210px;
  padding: 24px;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(320px, 420px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  justify-content: center;
  color: #fff;
  background: var(--navy);
}

.cta-section p,
.cta-list {
  color: rgba(255, 255, 255, 0.84);
}

.cta-list {
  margin: 22px 0 0;
  padding-left: 20px;
}

.cta-list li {
  margin: 7px 0;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.full {
  width: 100%;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
}

.form-message.is-success,
.form-message.is-error,
.form-message.is-loading {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  padding: 14px 16px;
  line-height: 1.6;
}

.form-message.is-success {
  border: 1px solid rgba(54, 168, 107, 0.35);
  color: #145c3a;
  background: #eaf8f0;
}

.form-message.is-error {
  border: 1px solid rgba(216, 83, 79, 0.35);
  color: #8f2624;
  background: #fff0ef;
}

.form-message.is-loading {
  border: 1px solid rgba(15, 139, 141, 0.28);
  color: var(--navy);
  background: #eefafa;
}

.form-message strong {
  color: inherit;
  font-size: 15px;
}

.form-message span {
  color: inherit;
}

.site-footer {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .hero-inner,
  .result-layout,
  .cta-section,
  .solution-intro {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 22px;
  }

  .hero-illustration {
    transform: none;
  }

  .problem-grid,
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    font-size: 14px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 18px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-copy::after {
    display: flex;
    width: 100%;
    border-radius: 8px;
    white-space: normal;
  }

  .problem-section,
  .diagnosis-section,
  .solution-section,
  .cta-section,
  .result-section {
    padding: 48px 16px;
  }

  .problem-grid,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid article,
  .quiz-shell,
  .question-card,
  .result-summary,
  .result-details,
  .lead-form,
  .solution-grid article {
    padding: 18px;
  }

  .quiz-visual {
    display: none;
  }

  .hero-actions,
  .quiz-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .answer-option {
    grid-template-columns: 34px 1fr;
    padding: 12px;
  }

  .answer-option span {
    width: 34px;
    height: 34px;
  }

  .answer-option strong {
    font-size: 15px;
    line-height: 1.55;
  }
}
