:root {
  color-scheme: light;
  --paper: #fff7f8;
  --white: #ffffff;
  --ink: #242127;
  --muted: #6e6268;
  --rose: #ed5877;
  --rose-pale: #f2dce2;
  --peach: #f5c9b9;
  --mint: #b9d8cc;
  --lilac: #c9c5dd;
  --margin: clamp(1.1rem, 4vw, 4rem);
  --content: 1280px;
  --radius: 5px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
::selection { background: var(--rose-pale); color: var(--ink); }

.site-header, .site-footer, main { padding-inline: var(--margin); }
.site-header { min-height: 82px; max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; text-decoration: none; letter-spacing: 0; }
.wordmark-dot { position: relative; width: 20px; height: 20px; border: 5px solid var(--rose); border-radius: 50%; display: inline-block; }
.wordmark-dot::after { content: ""; position: absolute; width: 12px; height: 4px; right: -12px; top: 3px; background: var(--rose); border-radius: 4px; }
.site-header nav { display: flex; gap: clamp(18px, 3vw, 42px); margin-left: auto; }
.site-header nav a, .header-back { font-size: 14px; font-weight: 600; text-decoration: none; }
.header-action { text-decoration: none; color: var(--rose); font-size: 14px; font-weight: 700; }
.header-back { margin-left: auto; }

.home-hero { max-width: 1440px; min-height: 590px; margin: 0 auto; display: grid; grid-template-columns: 1.04fr 0.96fr; align-items: center; gap: clamp(42px, 8vw, 130px); padding-top: 44px; padding-bottom: 85px; }
.hero-copy { max-width: 700px; padding-block: 25px; }
h1, h2, h3, p { margin-top: 0; }
.home-hero h1 { max-width: 12.8em; margin-bottom: 26px; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.24; font-weight: 750; letter-spacing: 0; text-wrap: balance; }
.hero-copy > p { max-width: 39em; margin-bottom: 32px; color: var(--muted); font-size: 18px; line-height: 1.85; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; border: 0; border-radius: var(--radius); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 150ms ease, background-color 150ms ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--rose); color: white; }
.button-primary:hover { background: #d94565; }
.button-secondary { background: var(--white); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--white); }
.hero-facts { display: flex; gap: 12px; list-style: none; padding: 0; margin: 32px 0 0; }
.hero-facts li { padding: 6px 12px; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 700; }
.hero-visual { min-height: 420px; background: #f8e7eb; border-radius: 46% 54% 49% 51% / 55% 44% 56% 45%; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.boundary-axis { z-index: 1; width: 80%; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; font-weight: 700; }
.axis-line { height: 9px; flex: 1; border-radius: 10px; background: var(--rose); position: relative; }
.axis-line i { display: block; width: 28px; height: 28px; position: absolute; top: 50%; left: 58%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white); border: 7px solid var(--rose); }
.hero-type-label { position: absolute; top: 64px; left: 13%; color: var(--rose); font-size: clamp(21px, 2vw, 27px); line-height: 1.35; font-weight: 750; }
.hero-visual > p { position: absolute; right: 12%; bottom: 38px; margin: 0; text-align: right; font-size: 16px; font-weight: 600; line-height: 1.65; }

.types-section, .how-section, .faq-section, .about-section { max-width: var(--content); margin: 0 auto; padding-block: 112px; }
.types-section { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: clamp(40px, 8vw, 130px); align-items: start; }
.section-heading h2, .how-intro h2, .share-copy h2, .about-section h2 { font-size: clamp(30px, 3.5vw, 45px); line-height: 1.3; letter-spacing: 0; margin-bottom: 16px; text-wrap: balance; }
.section-heading > p, .how-intro > p, .share-copy > p { color: var(--muted); margin: 0; max-width: 38em; }
.type-list { margin-top: 2px; }
.type-row { min-height: 112px; display: grid; grid-template-columns: 30px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; }
.type-row + .type-row { margin-top: 10px; }
.type-mark { width: 18px; height: 18px; border-radius: 50%; background: var(--rose); }
.type-feeling .type-mark { background: var(--peach); }
.type-clear .type-mark { background: #a68f98; }
.type-trust .type-mark { background: #766d86; }
.type-row h3 { margin: 0 0 5px; font-size: 17px; }
.type-row p { color: var(--muted); margin: 0; font-size: 14px; }
.type-range { color: var(--muted); white-space: nowrap; font-size: 13px; }
.text-link { grid-column: 2; justify-self: start; margin-top: 23px; color: #b93655; font-weight: 700; }

.how-section { max-width: none; padding-inline: var(--margin); background: #f1e8eb; display: grid; grid-template-columns: minmax(260px, .85fr) 1.15fr; column-gap: clamp(48px, 9vw, 150px); row-gap: 40px; }
.how-intro, .how-steps, .how-band { width: 100%; max-width: 1280px; margin-inline: auto; }
.how-intro { grid-column: 1; }
.how-steps { grid-column: 2; grid-row: 1; list-style: none; padding: 0; margin-top: 8px; }
.how-steps li { padding: 0 0 16px 0; margin-bottom: 18px; }
.how-steps li:last-child { margin-bottom: 0; }
.step-name { display: block; margin-bottom: 5px; font-weight: 750; font-size: 19px; }
.how-steps p { margin: 0; color: var(--muted); }
.how-band { grid-column: 1 / -1; min-height: 132px; display: flex; align-items: center; gap: 24px; padding: 20px 0; border-top: 7px solid var(--rose); }
.how-band > span { font-size: 72px; line-height: 1; font-weight: 750; color: var(--rose); }
.how-band p { margin: 0; color: var(--muted); }

.faq-section { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: clamp(40px, 8vw, 130px); }
.faq-list details { margin-bottom: 10px; padding: 0 18px; background: #fff; border-radius: var(--radius); }
.faq-list summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--rose); font-size: 26px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); margin: -2px 44px 18px 0; }

.home-cta { max-width: 1440px; min-height: 230px; padding: 42px clamp(22px, 5vw, 68px); margin: 0 auto 112px; background: var(--rose); color: white; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.home-cta h2 { max-width: 22em; margin-bottom: 10px; font-size: clamp(25px, 3vw, 38px); line-height: 1.3; }
.home-cta p { margin: 0; }
.home-cta .button { flex: 0 0 auto; }
.about-section { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: clamp(40px, 8vw, 130px); padding-top: 0; padding-bottom: 96px; }
.about-section h2 { font-size: 24px; }
.about-section p { margin: 0; max-width: 52em; color: var(--muted); }
.about-section a { grid-column: 2; justify-self: start; margin-top: 16px; color: #b93655; font-weight: 700; }

.site-footer { max-width: 1440px; min-height: 210px; padding-block: 48px 30px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 32px; }
.footer-brand { font-size: 28px; line-height: 1.2; font-weight: 750; text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 25px; }
.site-footer nav a { font-size: 13px; color: var(--muted); }
.site-footer > p { grid-column: 1 / -1; align-self: end; margin: 32px 0 0; color: var(--muted); font-size: 12px; }

/* Quiz */
.quiz-information { margin-top: 40px; padding: 24px; background: var(--paper); border-radius: var(--radius); }
.quiz-information h2 { font-size: 20px; margin-bottom: 16px; }
.quiz-information p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.quiz-information p:last-child { margin-bottom: 0; }
.test-page { background: var(--white); min-height: 100svh; display: flex; flex-direction: column; }
.test-page .site-header { width: 100%; }
.quiz-shell { width: 100%; max-width: 920px; padding: 40px var(--margin) 70px; margin: auto; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.quiz-intro { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 60px; }
.quiz-intro h1, .legal-page h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.2; margin-bottom: 20px; text-wrap: balance; }
.quiz-intro-copy > p { color: var(--muted); margin-bottom: 28px; }
.text-button { border: 0; background: transparent; color: #a73550; font-weight: 700; padding: 8px 0; cursor: pointer; }
.text-button:disabled { color: #aaa2a5; cursor: default; }
.quiz-intro .text-button { display: block; margin-top: 10px; }
.quiz-intro-art { min-height: 310px; background: #f8e7eb; border-radius: 46% 54% 49% 51% / 55% 44% 56% 45%; position: relative; display: grid; place-items: center; text-align: center; }
.intro-line { position: absolute; width: 85%; height: 10px; border-radius: 10px; background: var(--rose); }
.intro-line::after { content: ""; position: absolute; left: 59%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); background: white; border: 7px solid var(--rose); border-radius: 50%; }
.intro-caption { position: relative; top: -70px; z-index: 1; font-weight: 700; }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 34px; }
.back-link { text-decoration: none; color: var(--ink); }
.progress-copy { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 11px; }
.progress-track { height: 8px; border-radius: 8px; overflow: hidden; background: #f1e8eb; }
.progress-track > span { display: block; height: 100%; background: var(--rose); transition: width 180ms ease; }
.question-view > h1 { margin: 52px 0 32px; max-width: 22em; font-size: clamp(26px, 4vw, 39px); line-height: 1.55; font-weight: 700; text-wrap: balance; }
.answer-list { display: grid; gap: 12px; }
.answer-option { width: 100%; min-height: 68px; padding: 14px 20px; border: 2px solid #eee5e8; border-radius: var(--radius); background: white; color: var(--ink); text-align: left; font-weight: 700; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease; }
.answer-option:hover { border-color: var(--rose); transform: translateX(3px); }
.answer-option.is-selected { border-color: var(--rose); background: #fff4f6; }
.answer-list-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.answer-list-two .answer-option { text-align: center; }
.question-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 30px; color: var(--muted); font-size: 12px; }
.reflection-note { margin: 26px 0 -28px; color: var(--muted); font-size: 14px; }
.quiz-footer { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 18px var(--margin) 30px; color: var(--muted); font-size: 12px; }
.quiz-footer p { margin: 0; }

/* Results */
.result-hero { display: grid; grid-template-columns: 1fr 240px; align-items: center; gap: 55px; padding: 30px 0 76px; }
.result-copy h1 { max-width: 13em; margin: 0 0 18px; font-size: clamp(36px, 5vw, 58px); line-height: 1.3; text-wrap: balance; }
.result-copy > p { color: var(--muted); max-width: 42em; }
.result-copy .score-note { color: var(--ink); font-weight: 700; margin-top: 22px; }
.result-mark { width: 220px; aspect-ratio: 1; margin: auto; position: relative; border-radius: 50%; display: grid; place-items: center; background: #f8e7eb; }
.result-mark::before { content: ""; position: absolute; inset: 22px; border: 2px solid var(--rose-pale); border-radius: 50%; }
.result-mark span { position: absolute; top: 50%; left: -10%; width: 120%; height: 9px; border-radius: 10px; background: var(--rose); }
.result-mark b { z-index: 1; font-size: 53px; line-height: 1; }
.result-mark small { position: absolute; z-index: 1; margin-top: 67px; color: var(--muted); }
.result-breakdown { padding: 48px 0 64px; border-top: 7px solid var(--rose); }
.result-breakdown .section-heading { margin-bottom: 26px; }
.result-breakdown .section-heading h2 { font-size: 29px; }
.distribution-bar { display: flex; width: 100%; height: 22px; overflow: hidden; border-radius: 11px; background: #f1e8eb; }
.distribution-bar span { min-width: 0; }
.distribution-cheating { background: var(--rose); }
.distribution-uncomfortable { background: var(--peach); }
.distribution-okay { background: var(--mint); }
.count-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 22px 0; }
.count-item { min-height: 95px; padding: 14px 16px; background: #fff2f5; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius); }
.count-uncomfortable { background: #fff0e9; }
.count-okay { background: #eaf4ef; }
.count-item span { font-size: 13px; color: var(--muted); }
.count-item strong { font-size: 28px; line-height: 1; }
.count-item small { margin-left: 4px; font-size: 13px; font-weight: 500; }
.question-map { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 7px; margin: 30px 0 40px; }
.question-map span { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--rose); }
.question-map .map-uncomfortable { background: var(--peach); }
.question-map .map-okay { background: var(--mint); }
.reflection-result { padding: 18px 22px; background: #f4f0f2; display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: center; }
.reflection-result > span { color: var(--muted); font-size: 12px; grid-column: 1 / -1; }
.reflection-result p { margin: 3px 0 0; font-size: 14px; }
.reflection-result strong { color: #b93655; }
.share-section { display: grid; grid-template-columns: .75fr 1fr; gap: 28px 48px; align-items: start; padding: 54px 0 66px; }
.share-copy { grid-column: 1; }
.share-copy h2 { font-size: 32px; }
.share-image-wrap { grid-column: 2; grid-row: 1 / span 2; max-width: 390px; width: 100%; margin-left: auto; overflow: hidden; border-radius: var(--radius); }
.share-image-wrap canvas { display: block; width: 100%; height: auto; }
.share-actions { grid-column: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-link { grid-column: 1 / -1; min-width: 0; margin-bottom: 6px; }
.share-link label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.share-link-field { display: block; width: 100%; padding: 12px; border: 2px solid var(--rose-pale); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; resize: none; overflow-wrap: anywhere; }
.share-link-field:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
.share-actions .button { min-height: 48px; padding: 10px 12px; font-size: 13px; }
.share-actions .button-primary { grid-column: 1 / -1; }
.share-status { grid-column: 1 / -1; min-height: 24px; margin: 0; color: #287152; font-size: 13px; }
.result-again { padding: 30px 22px 55px; background: #f4f0f2; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.result-again p { margin: 0; font-weight: 650; }

/* Legal pages */
.legal-page { max-width: 800px; min-height: 65vh; padding-top: 74px; padding-bottom: 100px; margin-inline: auto; }
.legal-page h1 { font-size: clamp(36px, 5vw, 54px); }
.legal-lead { color: var(--muted); font-size: 18px; margin: 20px 0 54px; }
.legal-page section { margin: 34px 0; }
.legal-page h2 { font-size: 21px; margin-bottom: 10px; }
.legal-page section p { color: #50464b; margin: 0; }
.legal-date { margin-top: 60px; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  :root { --margin: 21px; }
  body { font-size: 15px; }
  .site-header { min-height: 70px; gap: 14px; }
  .site-header nav { display: none; }
  .wordmark { font-size: 17px; }
  .header-action, .header-back { font-size: 13px; }
  .home-hero { min-height: 0; grid-template-columns: 1fr; gap: 38px; padding-top: 38px; padding-bottom: 65px; }
  .home-hero h1 { font-size: clamp(35px, 9vw, 48px); line-height: 1.32; margin-bottom: 17px; }
  .hero-copy > p { font-size: 16px; line-height: 1.8; margin-bottom: 23px; }
  .hero-facts { margin-top: 22px; }
  .hero-visual { width: 100%; min-height: 275px; }
  .hero-type-label { top: 42px; font-size: 21px; }
  .hero-visual > p { bottom: 24px; font-size: 14px; }
  .types-section, .faq-section, .about-section { display: block; padding-block: 76px; }
  .section-heading { margin-bottom: 29px; }
  .section-heading h2, .how-intro h2 { font-size: 31px; }
  .section-heading > p, .how-intro > p { font-size: 15px; }
  .type-row { grid-template-columns: 24px 1fr; gap: 11px; min-height: 102px; }
  .type-row h3 { font-size: 15px; }
  .type-row p { font-size: 13px; line-height: 1.5; }
  .type-range { grid-column: 2; margin-top: -8px; font-size: 12px; }
  .text-link { margin-top: 18px; }
  .how-section { display: block; padding-block: 76px 54px; }
  .how-intro { margin-bottom: 30px; }
  .how-steps li { padding-bottom: 17px; margin-bottom: 17px; }
  .step-name { font-size: 17px; }
  .how-steps p { font-size: 14px; }
  .how-band { min-height: 105px; gap: 15px; padding-top: 16px; }
  .how-band > span { font-size: 57px; }
  .how-band p { font-size: 13px; }
  .faq-list summary { min-height: 66px; font-size: 14px; }
  .faq-list details p { font-size: 14px; }
  .home-cta { min-height: 0; margin-bottom: 70px; padding: 32px 23px; flex-direction: column; align-items: flex-start; gap: 22px; }
  .home-cta h2 { font-size: 26px; }
  .home-cta p { font-size: 14px; }
  .about-section { padding-top: 0; padding-bottom: 70px; }
  .about-section h2 { margin-bottom: 15px; }
  .about-section p, .about-section a { font-size: 14px; }
  .about-section a { display: inline-block; margin-top: 14px; }
  .site-footer { min-height: 0; grid-template-columns: 1fr; row-gap: 24px; padding-top: 35px; }
  .footer-brand { font-size: 24px; }
  .site-footer nav { justify-content: flex-start; gap: 11px 18px; }
  .site-footer nav a { font-size: 12px; }
  .site-footer > p { grid-column: 1; margin-top: 4px; }
  .quiz-shell { padding-top: 30px; padding-bottom: 42px; justify-content: flex-start; }
  .quiz-intro { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .quiz-intro h1 { font-size: 43px; }
  .quiz-intro-art { min-height: 220px; }
  .intro-caption { top: -55px; }
  .quiz-topline { margin-bottom: 26px; }
  .question-view > h1 { margin: 40px 0 25px; font-size: 27px; line-height: 1.55; }
  .answer-option { min-height: 64px; font-size: 15px; }
  .question-footer { align-items: flex-start; font-size: 11px; }
  .question-footer > span { text-align: right; }
  .reflection-note { margin: 21px 0 -20px; }
  .quiz-footer { flex-wrap: wrap; gap: 4px 14px; font-size: 11px; }
  .result-hero { grid-template-columns: 1fr; gap: 25px; padding: 20px 0 45px; }
  .result-copy h1 { font-size: 39px; }
  .result-copy > p:not(.score-note) { font-size: 14px; }
  .result-mark { width: 175px; }
  .result-mark b { font-size: 43px; }
  .result-mark small { margin-top: 56px; }
  .result-breakdown { padding: 34px 0 45px; }
  .result-breakdown .section-heading h2 { font-size: 25px; }
  .count-list { gap: 8px; }
  .count-item { min-height: 88px; padding: 10px 9px; }
  .count-item span { font-size: 11px; }
  .count-item strong { font-size: 24px; }
  .question-map { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
  .reflection-result { padding: 15px; }
  .reflection-result p { font-size: 12px; }
  .share-section { display: flex; flex-direction: column; gap: 23px; padding-block: 40px; }
  .share-copy h2 { font-size: 28px; }
  .share-image-wrap { order: 2; margin: 0 auto; max-width: 340px; }
  .share-actions { order: 3; width: 100%; }
  .result-again { align-items: flex-start; flex-direction: column; padding-block: 25px 40px; }
  .legal-page { min-height: 65vh; padding-top: 48px; padding-bottom: 70px; }
  .legal-page h1 { font-size: 38px; }
  .legal-lead { font-size: 16px; margin-bottom: 40px; }
}

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