:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --ink: #1f2925;
  --muted: #66716c;
  --line: #e8e8e1;
  --accent: #f4c95d;
  --accent-light: #fff5d7;
  --green: #2f7255;
  --green-light: #eaf5ef;
  --danger: #b24c3f;
  --shadow: 0 24px 60px rgba(31, 41, 37, 0.08);
  --radius: 22px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", YuGothic,
    "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 900px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(232, 232, 225, 0.82);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px 10px 10px 3px;
  background: var(--accent);
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
}

.header-cta {
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  overflow: hidden;
  padding: 96px 0 104px;
  background:
    radial-gradient(circle at 12% 28%, rgba(244, 201, 93, 0.18), transparent 24%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
  gap: clamp(56px, 8vw, 110px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #80611c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 800;
}

h1 span {
  position: relative;
  display: inline-block;
  z-index: 0;
}

h1 span::after {
  position: absolute;
  right: -4px;
  bottom: 8px;
  left: -4px;
  z-index: -1;
  height: 14px;
  background: var(--accent);
  content: "";
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3.3vw, 42px);
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-lead {
  margin: 0 0 32px;
  color: #46514c;
  font-size: clamp(17px, 1.8vw, 20px);
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 13px 24px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 114, 85, 0.35);
  outline-offset: 3px;
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(135, 99, 15, 0.16);
}

.button-primary:hover {
  background: #f0bd3c;
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.hero-notes li::before {
  margin-right: 6px;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.check-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.check-card::before {
  position: absolute;
  top: -14px;
  left: 42%;
  width: 86px;
  height: 28px;
  background: rgba(244, 201, 93, 0.48);
  content: "";
  transform: rotate(-3deg);
}

.check-card-label,
.framework > p {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
}

.check-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-card li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.check-card li span {
  color: #aa7910;
  font-family: Georgia, serif;
  font-size: 13px;
}

.check-card-foot {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 104px 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 48px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.diagnosis-section {
  border-block: 1px solid var(--line);
  background: #f7f6f0;
}

.diagnosis-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(31, 41, 37, 0.06);
}

.diagnosis-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.input-row input {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 14px 18px;
  border: 1px solid #cfd3ce;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

.input-row input[aria-invalid="true"] {
  border-color: var(--danger);
}

.form-help,
.result-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-message,
.consultation-status {
  min-height: 1.8em;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.form-message.is-loading {
  color: var(--green);
}

.form-message.is-success {
  color: var(--green);
}

.sample-button {
  display: block;
  min-height: 44px;
  margin: 16px auto 0;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.sample-button:focus-visible {
  outline: 3px solid var(--green);
}

.result-section {
  padding-top: 0;
  background: var(--surface);
}

.data-policy {
  padding-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.data-policy summary {
  cursor: pointer;
}

.setup-notice {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid #efcf77;
  border-radius: 10px;
  background: var(--accent-light);
  font-size: 13px;
}

.setup-notice span {
  display: block;
}

.result {
  margin-top: 0;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.result:focus {
  outline: none;
}

.result-head {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.result-head h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.result-host {
  max-width: 260px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f2f2ee;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.result-good {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin: 30px 0;
  padding: 20px;
  border-radius: 14px;
  background: var(--green-light);
}

.result-good p {
  margin: 0;
}

.result-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.result-icon.good {
  background: var(--green);
  color: #fff;
}

.result-issues ol {
  display: grid;
  gap: 12px;
  margin: 16px 0 30px;
  padding: 0;
  list-style: none;
  counter-reset: issues;
}

.result-issues li {
  position: relative;
  padding: 17px 18px 17px 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  counter-increment: issues;
}

.result-issues li::before {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: #80611c;
  content: counter(issues);
  font-size: 12px;
  font-weight: 900;
}

.first-action {
  padding: 24px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}

.first-action-label {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.first-action p:last-child {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.checks-section {
  background: var(--surface);
}

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

.check-item {
  grid-column: span 2;
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.check-item:nth-child(4) {
  grid-column: 2 / span 2;
}

.check-item > span {
  display: inline-block;
  margin-bottom: 34px;
  color: #aa7910;
  font-family: Georgia, serif;
  font-size: 14px;
}

.check-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.consultation-section {
  padding-top: 0;
  background: var(--surface);
}

.consultation-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(40px, 7vw, 90px);
  padding: clamp(32px, 6vw, 72px);
  border-radius: 28px;
  background: #f5eedf;
}

.consultation-copy > p:not(.eyebrow, .consultation-status) {
  color: #53605a;
}

.price-row {
  display: flex;
  gap: 24px;
  align-items: baseline;
  margin: 28px 0 24px;
}

.price-row strong {
  font-size: 14px;
}

.price-row span {
  font-size: 28px;
  font-weight: 800;
}

.price-row small {
  font-size: 12px;
}

.framework {
  padding: 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.framework ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.framework li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(31, 41, 37, 0.1);
  font-size: 13px;
}

.framework li:last-child {
  border-bottom: 0;
}

.framework strong {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.framework span {
  color: var(--muted);
}

.about-section {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 110px);
}

.about-copy {
  color: #4e5954;
}

.about-copy p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 110px;
}

.footer-inner > p {
  color: var(--muted);
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .hero {
    padding: 68px 0 80px;
  }

  .hero-grid,
  .consultation-card,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 58px;
  }

  .check-card {
    max-width: 540px;
    transform: none;
  }

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

  .check-item,
  .check-item:nth-child(4) {
    grid-column: auto;
  }

  .check-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header .brand span:last-child {
    display: none;
  }

  .header-inner {
    min-height: 62px;
  }

  .header-cta {
    padding: 7px 13px;
  }

  .header-actions {
    gap: 9px;
  }

  .language-link {
    font-size: 12px;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: 37px;
  }

  h1 span::after {
    bottom: 4px;
    height: 10px;
  }

  .desktop-only {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .input-row .button,
  .consultation-copy .button {
    width: 100%;
  }

  .diagnosis-form,
  .result {
    padding: 20px;
  }

  .result-head {
    display: block;
  }

  .result-host {
    display: inline-block;
    margin-top: 14px;
  }

  .result-good {
    grid-template-columns: 1fr;
  }

  .checks-grid {
    grid-template-columns: 1fr;
  }

  .check-item,
  .check-item:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .check-item > span {
    margin-bottom: 20px;
  }

  .consultation-section {
    padding-top: 0;
  }

  .consultation-card {
    width: 100%;
    border-radius: 0;
  }

  .price-row {
    display: block;
  }

  .price-row span {
    display: block;
  }

  .framework li {
    grid-template-columns: 82px 1fr;
  }

  .footer-inner {
    display: block;
    padding: 28px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* --- v0.1: journey / focus question / quest / branches --- */
.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: journey;
}

.journey li {
  position: relative;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.journey li span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.focus-field {
  margin: 18px 0 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.focus-field legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.focus-field label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.focus-field input {
  margin-top: 3px;
  accent-color: var(--green);
  flex: none;
}

.quest-preview {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--green-light);
}

.quest-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.quest-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: quest;
}

.quest-steps li {
  position: relative;
  counter-increment: quest;
  padding: 0 0 0 38px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.quest-steps li::before {
  content: counter(quest);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.quest-foot {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.branches {
  margin-top: 24px;
}

.branches h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.branch {
  display: block;
  text-align: left;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.branch:hover {
  border-color: var(--green);
}

.branch:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.branch.is-active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.branch strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.branch span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.branch-panel {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.branch-panel-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}

.branch-panel ul {
  margin: 0;
  padding-left: 20px;
}

.branch-panel li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
}

.branch-panel li:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .journey,
  .branch-grid {
    grid-template-columns: 1fr;
  }

  .quest-preview,
  .branch-panel {
    padding: 18px;
  }
}

.price-row .price-tbd {
  font-size: 18px;
  line-height: 1.4;
}

.price-row .price-tbd small {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: var(--muted);
}
