:root {
  --ink: #2f292b;
  --muted: #706468;
  --rose: #d85e77;
  --rose-deep: #b9405d;
  --rose-soft: #fff0f3;
  --blush: #f4d9de;
  --cream: #fbf8f3;
  --paper: #fffdf9;
  --line: #eadde0;
  --green: #06c755;
  --green-deep: #05a847;
  --shadow: 0 24px 70px rgba(77, 47, 53, 0.11);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(255, 255, 255, 0.95), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 42%),
    var(--cream);
  font-family: var(--sans);
  font-feature-settings: "palt";
  line-break: strict;
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(113, 83, 88, 0.055) 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  content: "";
  pointer-events: none;
}

button, a { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  color: white;
  background: var(--rose-deep);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(177, 139, 147, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand__name {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.brand__divider {
  width: 1px;
  height: 24px;
  margin: 0 16px;
  background: var(--line);
}

.brand__service,
.header-note,
.eyebrow,
.card-kicker,
.line-panel__label {
  color: var(--rose-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.header-note { margin: 0; }

.screen {
  display: none;
  min-height: calc(100vh - 160px);
}

.screen.is-active {
  display: block;
  animation: screen-in 0.5s ease both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen--landing {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 32px;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.eyebrow {
  display: flex;
  gap: 20px;
  margin: 0 0 18px;
}

.eyebrow span + span::before {
  margin-right: 20px;
  color: var(--blush);
  content: "/";
}

.landing-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 94px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.landing-copy h1 em {
  position: relative;
  color: var(--rose-deep);
  font-style: normal;
}

.landing-copy h1 em::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 10%;
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--blush) 12%, var(--blush) 88%, transparent);
  border-radius: 50%;
  content: "";
  transform: rotate(-1.5deg);
}

.landing-lead {
  margin: 30px 0 10px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.5;
}

.landing-description {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.primary-button,
.next-button,
.line-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  width: min(100%, 390px);
  padding: 0 10px 0 28px;
  color: white;
  background: var(--rose-deep);
  box-shadow: 0 14px 30px rgba(185, 64, 93, 0.22);
  font-weight: 700;
}

.button-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--rose-deep);
  background: white;
  border-radius: 50%;
  font-size: 20px;
}

.primary-button:hover,
.next-button:hover,
.line-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(88, 44, 53, 0.2);
}

.landing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
}

.landing-facts p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.fact-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border: 1px solid var(--blush);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 12px;
}

.landing-visual { position: relative; }

.visual-arch {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.9;
  background: var(--rose-soft);
  border: 12px solid rgba(255, 255, 255, 0.75);
  border-radius: 48% 48% 28px 28px;
  box-shadow: var(--shadow);
}

.visual-arch::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: inherit;
  box-shadow: inset 0 -80px 100px rgba(91, 52, 59, 0.12);
  content: "";
}

.visual-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.visual-caption {
  position: absolute;
  right: -24px;
  bottom: 56px;
  z-index: 1;
  width: 230px;
  margin: 0;
  padding: 18px 22px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(234, 221, 224, 0.8);
  box-shadow: 0 16px 40px rgba(77, 47, 53, 0.12);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
}

.visual-caption span {
  display: block;
  color: var(--rose-deep);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.type-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.type-preview p {
  margin: 0;
  padding: 18px 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.type-preview p + p { border-left: 1px solid var(--line); }
.type-preview span { margin-right: 8px; color: var(--rose-deep); font-family: Georgia, serif; }

.quiz-shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.progress-wrap { margin-bottom: 28px; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--rose-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.progress-meta strong {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.progress-track {
  overflow: hidden;
  height: 4px;
  background: #ebdfe1;
  border-radius: 99px;
}

.progress-track span {
  display: block;
  width: 5%;
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--rose-deep));
  border-radius: inherit;
  transition: width 0.35s ease;
}

.question-card {
  min-height: 420px;
  padding: clamp(34px, 6vw, 64px);
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid rgba(234, 221, 224, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.question-number {
  margin: 0 0 18px;
  color: var(--rose-deep);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.question-card h2 {
  max-width: 600px;
  min-height: 120px;
  margin: 0 auto 34px;
  font-family: var(--serif);
  font-size: clamp(25px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.65;
  text-wrap: balance;
}

.answer-fieldset { margin: 0; padding: 0; border: 0; }

.answer-fieldset legend {
  width: 100%;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.answer-button {
  display: grid;
  place-items: center;
  min-height: 94px;
  padding: 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.answer-button:hover { border-color: var(--rose); transform: translateY(-2px); }

.answer-button.is-selected {
  color: var(--rose-deep);
  background: var(--rose-soft);
  border: 2px solid var(--rose);
}

.answer-button strong {
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.08em;
}

.answer-button span { color: var(--muted); font-size: 12px; }

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.text-button {
  min-height: 44px;
  padding: 8px 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.text-button:disabled { opacity: 0.35; cursor: default; }

.next-button {
  min-width: 150px;
  padding: 0 24px;
  color: white;
  background: var(--rose-deep);
  font-weight: 700;
}

.next-button:disabled {
  background: #cfc4c7;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.screen--analyzing { display: none; place-items: center; padding: 60px 20px; }
.screen--analyzing.is-active { display: grid; }

.analyzing-card { max-width: 520px; text-align: center; }

.analyzing-ring {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 30px;
  border: 2px solid var(--blush);
  border-top-color: var(--rose-deep);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.analyzing-card .eyebrow { justify-content: center; }

.analyzing-card h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.45;
}

.analyzing-card > p:last-child { color: var(--muted); }

.screen--result {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 68px 0 56px;
}

.result-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(40px, 7vw, 78px);
}

.result-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 10px solid rgba(255, 255, 255, 0.75);
  border-radius: 50% 50% 24px 24px;
  box-shadow: var(--shadow);
}

.result-art img { width: 100%; height: 100%; object-fit: cover; }

.result-art__label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 7px 12px;
  color: var(--rose-deep);
  background: rgba(255, 253, 249, 0.9);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.result-heading .eyebrow { margin-bottom: 14px; }

.result-catch {
  margin: 0 0 10px;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
}

.result-heading h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.3;
  text-wrap: balance;
}

@media (min-width: 841px) {
  .result-heading h2:not(.is-composite) { white-space: nowrap; }
}

.result-summary {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.composite-note {
  margin: 0 0 16px;
  padding: 12px 16px;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border-left: 3px solid var(--rose);
  font-size: 13px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.result-card {
  padding: clamp(26px, 4vw, 38px);
  background: rgba(255, 253, 249, 0.95);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(77, 47, 53, 0.06);
}

.result-card--wide { grid-column: 1 / -1; }
.card-kicker { margin: 0 0 7px; }

.result-card h3 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.score-list { display: grid; gap: 16px; }

.score-row__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.score-row__head strong { color: var(--ink); font-family: Georgia, serif; }
.score-row.is-winner .score-row__head span,
.score-row.is-winner .score-row__head strong { color: var(--rose-deep); font-weight: 700; }

.score-row__track { overflow: hidden; height: 7px; background: #eee5e7; border-radius: 99px; }
.score-row__track span { display: block; height: 100%; background: #cdb7bc; border-radius: inherit; }
.score-row.is-winner .score-row__track span { background: linear-gradient(90deg, var(--rose), var(--rose-deep)); }

.score-row__interpretation {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  text-wrap: pretty;
}

.score-row.is-winner .score-row__interpretation { color: #79545d; }

.tag-list,
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.area-list li {
  position: relative;
  padding: 8px 14px 8px 30px;
  color: #5f5356;
  background: var(--rose-soft);
  border-radius: 999px;
  font-size: 13px;
}

.tag-list li::before,
.area-list li::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 6px;
  height: 6px;
  background: var(--rose);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.area-list li { background: #f6f0eb; }

.save-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  padding: 22px 28px;
  color: #5d5054;
  background: #fff8e8;
  border: 1px solid #ead9ac;
  border-radius: 18px;
}

.save-notice__label {
  margin: 0;
  color: #9c6e17;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.save-notice p:last-child { margin: 0; font-size: 13px; line-height: 1.8; }
.save-notice strong { color: #4b3e41; }

.line-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
  padding: clamp(30px, 5vw, 52px);
  color: white;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.12), transparent 35%),
    #3c3336;
  border-radius: 24px;
}

.line-panel__label { margin: 0 0 8px; color: #f2b6c2; }

.line-panel h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(25px, 3.6vw, 38px);
  font-weight: 500;
  line-height: 1.55;
}

.line-panel p:last-child { max-width: 570px; margin: 0; color: #d7ced0; font-size: 13px; }

.line-button {
  min-width: 260px;
  padding: 0 24px;
  color: white;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(6, 199, 85, 0.2);
  font-weight: 700;
}

.line-button:hover { background: var(--green-deep); }

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p,
.site-footer small { margin: 0; font-size: 11px; letter-spacing: 0.12em; }
.mobile-only { display: none; }

:focus-visible {
  outline: 3px solid rgba(216, 94, 119, 0.42);
  outline-offset: 4px;
}

@media (max-width: 840px) {
  .landing-grid { grid-template-columns: 1fr; gap: 52px; }
  .landing-copy { text-align: center; }
  .landing-description { margin-right: auto; margin-left: auto; }
  .landing-facts { justify-content: center; }
  .landing-visual { width: min(600px, 92%); margin: 0 auto; }
  .visual-arch { aspect-ratio: 1.05; }
  .type-preview { grid-template-columns: repeat(2, 1fr); }
  .type-preview p:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .type-preview p:nth-child(4) { border-top: 1px solid var(--line); }
  .result-intro { grid-template-columns: 0.78fr 1.22fr; gap: 34px; }
  .line-panel { grid-template-columns: 1fr; }
  .line-button { width: min(100%, 330px); }
}

@media (max-width: 620px) {
  .site-header { width: min(100% - 32px, 1180px); min-height: 70px; }
  .brand__name { font-size: 20px; }
  .brand__divider, .brand__service, .header-note { display: none; }
  .screen--landing, .screen--result { width: min(100% - 32px, 1180px); }
  .screen--landing { padding-top: 42px; }
  .landing-copy h1 { font-size: clamp(50px, 15vw, 68px); }
  .landing-lead { margin-top: 24px; font-size: 22px; }
  .mobile-only { display: initial; }
  .landing-facts { gap: 8px 14px; }
  .landing-visual { width: 100%; }
  .visual-arch { border-width: 7px; border-radius: 46% 46% 20px 20px; }
  .visual-caption { right: -4px; bottom: 20px; width: 210px; padding: 14px 18px; }
  .type-preview { margin-top: 44px; }
  .type-preview p { padding: 13px 8px; font-size: 10px; }
  .type-preview span { display: block; margin: 0; }
  .quiz-shell { width: min(100% - 28px, 760px); padding-top: 42px; }
  .question-card { min-height: 410px; padding: 34px 20px; border-radius: 22px; }
  .question-card h2 { min-height: 145px; font-size: clamp(22px, 6.2vw, 25px); line-height: 1.65; }
  .answer-grid { gap: 10px; }
  .answer-button { min-height: 90px; }
  .quiz-actions { align-items: stretch; }
  .next-button { min-width: 132px; }
  .screen--result { padding-top: 42px; }
  .result-intro { grid-template-columns: 1fr; gap: 34px; }
  .result-art { width: min(100%, 390px); margin: 0 auto; }
  .result-heading { text-align: center; }
  .result-heading .eyebrow { justify-content: center; }
  .result-heading h2 { font-size: clamp(31px, 8.8vw, 42px); overflow-wrap: anywhere; }
  .result-summary { text-align: left; }
  .composite-note { text-align: left; }
  .result-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .result-card--wide { grid-column: auto; }
  .line-panel { gap: 28px; padding: 30px 24px; }
  .line-panel h3 { font-size: 27px; }
  .line-button { min-width: 0; width: 100%; }
  .save-notice { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .score-row__head { align-items: baseline; }
  .score-row__interpretation { font-size: 12px; }
  .site-footer { width: min(100% - 32px, 1180px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
