:root {
  --ink: #19313a;
  --muted: #5d7078;
  --teal: #0e5f73;
  --teal-dark: #084150;
  --teal-soft: #e5f6f5;
  --aqua: #dff7f6;
  --coral: #e36f5a;
  --coral-dark: #b84f3f;
  --coral-soft: #fff0ea;
  --gold: #d8a84a;
  --gold-soft: #fff7df;
  --leaf: #557a55;
  --sand: #fff8ef;
  --surface: #ffffff;
  --line: #dce8ea;
  --shadow: 0 22px 70px rgba(11, 48, 58, 0.16);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(223, 247, 246, 0.64) 0, rgba(255, 248, 239, 0) 560px),
    var(--sand);
  color: var(--ink);
  line-height: 1.7;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app {
  min-height: 100vh;
  overflow-x: hidden;
}

.diagnosis-hero {
  position: relative;
  min-height: clamp(480px, 72vh, 720px);
  display: grid;
  align-items: end;
  background-image: url("assets/hero-okinawa-romance.jpg");
  background-size: cover;
  background-position: center 42%;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 39, 48, 0.12) 0%, rgba(5, 39, 48, 0.36) 45%, rgba(5, 39, 48, 0.82) 100%),
    linear-gradient(90deg, rgba(5, 39, 48, 0.72) 0%, rgba(5, 39, 48, 0.24) 58%, rgba(5, 39, 48, 0.16) 100%);
}

.hero-content {
  position: relative;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 40px;
}

.eyebrow {
  margin: 0 0 8px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.65rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.lead {
  max-width: 620px;
  margin: 18px 0 18px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.hero-tags span {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.84rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.daily-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  max-width: 780px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(4, 48, 59, 0.32);
  backdrop-filter: blur(18px);
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}

.daily-label {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.78rem;
}

#dailyPreview {
  min-width: 0;
}

.diagnosis-tool {
  width: min(1080px, calc(100% - 28px));
  margin: -28px auto 0;
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.diagnosis-tool [hidden] {
  display: none !important;
}

.tool-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-label {
  margin: 0 0 4px;
  color: var(--coral-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tool-heading h2 {
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
}

.tool-heading p:last-child {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: right;
}

.progress-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f5;
  box-shadow: inset 0 1px 3px rgba(11, 48, 58, 0.08);
}

.progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #30b8ba, var(--coral));
  transition: width 180ms ease;
}

.selection-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.selection-strip span {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-strip span.is-filled {
  border-color: rgba(14, 95, 115, 0.2);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.step-panel {
  animation: panelIn 220ms ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.start-panel,
.review-panel {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(214, 229, 232, 0.96);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(229, 246, 245, 0.92), rgba(255, 247, 223, 0.7)),
    #fff;
  box-shadow: 0 12px 34px rgba(11, 48, 58, 0.08);
}

.start-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: 230px;
}

.start-kicker {
  margin: 0 0 6px;
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.start-panel h3,
.review-panel h3 {
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.22;
}

.start-panel p:not(.start-kicker),
.review-panel p:not(.start-kicker) {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
}

.start-button {
  min-width: 190px;
}

.choice-form {
  display: grid;
  gap: 26px;
  margin-top: 28px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(214, 229, 232, 0.96);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 253, 253, 0.98));
  box-shadow: 0 12px 34px rgba(11, 48, 58, 0.08);
}

.choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 800;
  color: var(--ink);
}

.choice-group legend span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), #fff);
  border: 1px solid rgba(14, 95, 115, 0.14);
  color: var(--teal-dark);
  font-size: 0.86rem;
  box-shadow: 0 8px 18px rgba(14, 95, 115, 0.1);
}

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

.option-button {
  position: relative;
  min-height: 62px;
  padding: 13px 13px 13px 42px;
  border: 1px solid rgba(179, 204, 210, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 253, 0.98));
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(12, 64, 77, 0.06);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.option-button::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(14, 95, 115, 0.28);
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
}

.option-button::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: translateY(-50%) scale(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.option-button:hover {
  border-color: rgba(14, 95, 115, 0.45);
  background: #f6fcfc;
  box-shadow: 0 12px 24px rgba(12, 64, 77, 0.09);
  transform: translateY(-1px);
}

.option-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.text-button:focus-visible,
.primary-link:focus-visible,
.contact-strip a:focus-visible {
  outline: 3px solid rgba(227, 111, 90, 0.42);
  outline-offset: 3px;
}

.option-button.is-selected {
  border-color: var(--teal);
  background:
    linear-gradient(135deg, rgba(14, 95, 115, 0.98), rgba(32, 132, 143, 0.98));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(14, 95, 115, 0.2);
}

.option-button.is-selected::before {
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.2);
}

.option-button.is-selected::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.actions.compact {
  margin-top: 16px;
}

.step-actions {
  justify-content: space-between;
  padding-top: 2px;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.review-list div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(14, 95, 115, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.review-list dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.review-list dd {
  margin: 0;
  color: var(--teal-dark);
  font-size: 1.04rem;
  font-weight: 900;
}

.primary-button,
.secondary-button,
.text-button,
.primary-link,
.contact-strip a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-button,
.primary-link {
  border: 1px solid var(--coral-dark);
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(184, 79, 63, 0.22);
}

.primary-button:disabled {
  cursor: not-allowed;
  border-color: #c9d5d8;
  background: #c9d5d8;
  color: #6f8288;
}

.secondary-button {
  border: 1px solid rgba(14, 95, 115, 0.34);
  background: #fff;
  color: var(--teal-dark);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.result-panel {
  width: min(1080px, calc(100% - 28px));
  margin: 32px auto 0;
  padding: 0;
  background: transparent;
}

.result-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 65, 80, 0.96), rgba(14, 95, 115, 0.92)),
    var(--teal-dark);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(11, 48, 58, 0.16);
}

.result-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--coral), #62c7c5);
}

.result-panel .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.result-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.result-header p {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.result-stamp {
  display: grid;
  place-items: center;
  width: clamp(88px, 11vw, 120px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.08);
}

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

.result-card {
  padding: 20px;
  border: 1px solid rgba(214, 229, 232, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(11, 48, 58, 0.08);
}

.result-card h3 {
  margin: 0 0 12px;
  font-size: 1.04rem;
  color: var(--teal-dark);
}

.lucky-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.lucky-list div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid #e9f1f2;
}

.lucky-list div:last-child {
  border-bottom: 0;
}

.lucky-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.lucky-list dd {
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 1.02rem;
}

.recommendation-list,
.service-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recommendation-list li,
.service-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid #edf3f3;
  color: var(--ink);
}

.recommendation-list li:last-child,
.service-list li:last-child {
  border-bottom: 0;
}

.recommendation-list li::before,
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.service-list li::before {
  background: var(--leaf);
}

.share-box {
  margin-top: 16px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 223, 0.9), rgba(255, 240, 234, 0.96));
  border: 1px solid rgba(216, 168, 74, 0.28);
}

.share-box p {
  margin: 0;
  font-weight: 700;
  color: #7b3a31;
}

.contact-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  width: min(1080px, calc(100% - 28px));
  margin: 28px auto 48px;
  padding: 20px 22px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--teal-dark), #0e5f73);
  color: #fff;
  box-shadow: 0 18px 42px rgba(11, 48, 58, 0.14);
}

.contact-strip p {
  margin: 0;
}

.contact-strip a {
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

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

  .selection-strip {
    grid-template-columns: 1fr;
  }

  .start-panel {
    grid-template-columns: 1fr;
  }

  .review-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .diagnosis-hero {
    min-height: 520px;
    background-position: center top;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(5, 39, 48, 0.18) 0%, rgba(5, 39, 48, 0.54) 48%, rgba(5, 39, 48, 0.84) 100%);
  }

  .hero-content {
    width: min(100% - 24px, 520px);
    padding-bottom: 28px;
  }

  .diagnosis-tool,
  .result-panel,
  .contact-strip {
    width: min(100% - 20px, 520px);
  }

  .diagnosis-tool,
  .result-panel {
    padding: 18px;
  }

  .start-panel,
  .review-panel,
  .choice-form {
    margin-top: 20px;
    padding: 18px;
  }

  .tool-heading {
    align-items: start;
    flex-direction: column;
  }

  .tool-heading p:last-child {
    max-width: none;
    text-align: left;
  }

  .progress-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .option-grid {
    gap: 8px;
  }

  .option-button {
    min-height: 50px;
    padding: 10px 10px 10px 38px;
    font-size: 0.9rem;
  }

  .option-button::before {
    left: 12px;
  }

  .option-button::after {
    left: 17px;
  }

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

  .result-stamp {
    display: none;
  }

  .actions,
  .contact-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .text-button,
  .primary-link,
  .contact-strip a {
    width: 100%;
  }
}
