:root {
  --ink: #10243b;
  --ink-soft: #40566a;
  --foam: #f7fbf8;
  --paper: #fff;
  --ocean: #0b7f93;
  --ocean-deep: #075768;
  --leaf: #205c3a;
  --coral: #ef6c4d;
  --coral-dark: #cb3e26;
  --sun: #f2c96d;
  --line: rgba(16, 36, 59, 0.14);
  --shadow: 0 18px 45px rgba(15, 46, 58, 0.15);
  --header-height: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body { margin: 0; color: var(--ink); background: var(--foam); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; line-height: 1.75; }
body[data-diagnosis-type] { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { overflow-wrap: anywhere; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(16,36,59,.1); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { width: 152px; height: 43px; object-fit: contain; }
.desktop-nav { display: none; }
.header-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border-radius: 8px; color: var(--ocean-deep); background: var(--sun); border: 1px solid rgba(7,87,104,.24); font-size: 14px; font-weight: 800; box-shadow: 0 8px 20px rgba(7,87,104,.14); }

.diagnosis-hero, .sub-hero, .type-hero { position: relative; overflow: hidden; padding: calc(var(--header-height) + 42px) 20px 58px; color: #fff; background: radial-gradient(circle at 88% 18%, rgba(242,201,109,.28), transparent 28%), linear-gradient(135deg, #075768 0%, #0b7f93 68%, #205c3a 100%); }
.diagnosis-hero-inner, .sub-hero-inner, .type-hero-inner { position: relative; z-index: 1; width: min(100%, 1080px); margin: 0 auto; }
.diagnosis-hero-inner { display: grid; gap: 30px; align-items: center; }
.diagnosis-hero-image { width: 100%; border: 1px solid rgba(255,255,255,.38); border-radius: 18px; box-shadow: 0 24px 55px rgba(3,38,46,.34); }
.breadcrumbs { margin: 0 0 20px; color: rgba(255,255,255,.76); font-size: 12px; font-weight: 700; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; color: rgba(255,255,255,.5); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow, .section-label { margin: 0 0 8px; color: #ffe292; font-size: 13px; font-weight: 900; letter-spacing: .04em; }
h1 { margin: 0; color: #fff8df; font-size: clamp(36px, 8.5vw, 64px); line-height: 1.13; font-weight: 900; }
.hero-lead { max-width: 720px; margin: 18px 0 0; color: rgba(255,255,255,.9); font-size: 16px; font-weight: 650; }
.sub-hero { padding-bottom: 72px; }
.sub-hero-inner, .type-hero-inner { max-width: 900px; }

.diagnosis-stage { padding: 0 20px 72px; background: linear-gradient(#eef5f0 0 96px, var(--paper) 96px); }
.diagnosis-shell { width: min(100%, 820px); min-height: 420px; margin: 0 auto; padding: 26px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.trust-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.trust-list li { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--foam); }
.trust-list strong, .trust-list span { display: block; }
.trust-list strong { color: var(--ocean-deep); font-size: 16px; }
.trust-list span { margin-top: 2px; color: var(--ink-soft); font-size: 12px; }
.notice-card { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--sun); background: #fff9e9; color: var(--ink-soft); font-size: 12px; }
.notice-card p { margin: 0; }
.notice-card p + p { margin-top: 8px; }
.primary-button, .primary-link, .secondary-button, .secondary-link { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-weight: 850; cursor: pointer; }
.primary-button, .primary-link { color: #fff; background: var(--ocean-deep); border: 1px solid var(--ocean-deep); box-shadow: 0 10px 24px rgba(7,87,104,.2); }
.primary-button { width: 100%; margin-top: 20px; }
.primary-link { padding: 0 22px; }
.secondary-button, .secondary-link { padding: 0 18px; color: var(--ocean-deep); background: #fff; border: 1px solid rgba(7,87,104,.28); }
.continue-note, .keyboard-note { margin: 10px 0 0; color: var(--ink-soft); font-size: 12px; text-align: center; }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.progress-row p { margin: 0; color: var(--ocean-deep); font-size: 14px; font-weight: 900; }
.text-button { min-height: 44px; padding: 0; border: 0; color: var(--ocean-deep); background: transparent; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.progress-track { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #dfeae5; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ocean), var(--coral)); transition: width .2s ease; }
.question-card { padding-top: 28px; }
.question-kicker { margin: 0; color: var(--coral-dark); font-size: 12px; font-weight: 900; }
.question-card h2 { margin: 6px 0 0; font-size: clamp(23px, 5vw, 32px); line-height: 1.45; }
.answer-list { display: grid; gap: 10px; margin-top: 24px; }
.answer-option { min-height: 54px; display: grid; grid-template-columns: 24px 34px 1fr; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.answer-option:hover { border-color: rgba(11,127,147,.55); background: #f6fbfa; }
.answer-option:has(input:checked) { border-color: var(--ocean); background: #edf8f7; box-shadow: inset 0 0 0 1px var(--ocean); }
.answer-option input { width: 19px; height: 19px; margin: 0; accent-color: var(--ocean); }
.answer-number { color: var(--coral-dark); font-weight: 900; }
.answer-copy { color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.tie-option { min-height: 64px; padding: 12px 16px; border: 1px solid rgba(7,87,104,.3); border-radius: 10px; color: var(--ink); background: #fff; text-align: left; font-weight: 800; cursor: pointer; }
.tie-option:hover { background: #edf8f7; border-color: var(--ocean); }
.quiz-actions { display: flex; margin-top: 18px; }
.quiz-actions .secondary-button { min-width: 100px; }
.quiz-actions .secondary-button:disabled { opacity: .45; cursor: default; }

.content-section { padding: 64px 20px; background: var(--paper); }
.content-section--soft { background: #eef5f0; }
.content-section--sun { background: #fff8df; }
.content-section--deep, .app-band { color: #fff; background: var(--ocean-deep); }
.content-section--deep .section-title, .app-band .section-title { color: #fff8df; }
.content-section--deep .section-label, .app-band .section-label { color: #ffe292; }
.content-inner { width: min(100%, 860px); margin: 0 auto; }
.wide-inner { width: min(100%, 1080px); margin: 0 auto; }
.content-section .section-label { color: var(--ocean); }
.section-title { margin: 0; font-size: clamp(30px, 7vw, 44px); line-height: 1.35; font-weight: 900; }
.section-lead { max-width: 720px; margin: 15px 0 0; color: var(--ink-soft); }
.content-section--deep .section-lead, .app-band .section-lead { color: rgba(255,255,255,.82); }
.split-intro { display: grid; gap: 30px; }
.axis-list { display: grid; gap: 12px; }
.axis-list article { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.axis-list h3, .axis-list p { margin: 0; }
.axis-list h3 { color: var(--ocean-deep); font-size: 17px; }
.axis-list p { margin-top: 4px; color: var(--ink-soft); font-size: 13px; }
.centered-cta { text-align: center; }
.centered-cta .section-lead { margin-left: auto; margin-right: auto; }
.centered-cta .secondary-link, .centered-cta .primary-link { margin-top: 24px; }
.centered-cta.compact { margin-top: 34px; }

.type-grid { display: grid; gap: 16px; }
.type-card { position: relative; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(15,46,58,.08); }
.type-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--ocean); }
.type-card--captain::before, .type-card--challenger::before { background: var(--coral); }
.type-card--guardian::before, .type-card--companion::before { background: var(--leaf); }
.type-card--energizer::before, .type-card--freestyler::before { background: var(--sun); }
.type-code { margin: 0; color: var(--ocean); font-size: 11px; font-weight: 900; }
.type-card h2 { margin: 5px 0 0; font-size: 24px; }
.type-card > p:not(.type-code) { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.type-card a { display: inline-flex; margin-top: 18px; color: var(--ocean-deep); font-size: 13px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

.type-hero--captain, .type-hero--challenger { background: linear-gradient(135deg, #7e261c, #cb3e26 58%, #0b7f93); }
.type-hero--guardian, .type-hero--companion { background: linear-gradient(135deg, #17442c, #205c3a 58%, #0b7f93); }
.type-hero--energizer, .type-hero--freestyler { background: linear-gradient(135deg, #075768, #0b7f93 58%, #d99d29); }
.personal-result { padding: 42px 20px; background: #e6f5f3; border-bottom: 1px solid var(--line); }
.personal-result h2 { margin: 0; font-size: clamp(24px, 5vw, 34px); }
.axis-bars { display: grid; gap: 18px; margin-top: 24px; }
.axis-bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.axis-bar-label span { color: var(--ink-soft); }
.axis-bar-track { height: 12px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: rgba(7,87,104,.14); }
.axis-bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ocean), var(--coral)); }
.result-caution { margin: 18px 0 0; color: var(--ink-soft); font-size: 12px; }
.result-next-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.result-app-link, .result-fortune-link { min-height: 48px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 9px; font-size: 13px; font-weight: 850; }
.result-app-link { color: #fff; background: var(--ocean-deep); box-shadow: 0 10px 24px rgba(7,87,104,.18); }
.result-fortune-link { color: var(--coral-dark); background: #fff8df; border: 1px solid rgba(203,62,38,.28); }
.personal-result .text-button { display: block; margin-top: 10px; }
.prose-block { font-size: 16px; }
.prose-block p { margin: 0; }
.prose-block p + p { margin-top: 18px; }
.prose-block h2 { margin: 40px 0 12px; font-size: 28px; }
.prose-block h2:first-child { margin-top: 0; }
.prose-block h3 { margin: 26px 0 8px; color: var(--ocean-deep); font-size: 19px; }
.feature-list, .pitfall-list { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.feature-list li, .pitfall-list li { position: relative; padding: 16px 16px 16px 48px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.feature-list li::before, .pitfall-list li::before { position: absolute; left: 17px; top: 15px; font-weight: 900; }
.feature-list li::before { content: "✓"; color: var(--leaf); }
.pitfall-list li::before { content: "!"; color: var(--coral-dark); }
.subheading { margin: 38px 0 0; font-size: 24px; }
.app-feature-list li { background: var(--foam); }
.app-cta-feature { overflow: hidden; background: radial-gradient(circle at 12% 12%, rgba(242,201,109,.24), transparent 34%), linear-gradient(145deg, #eef8f4, #fff 58%); }
.app-cta-feature-inner { width: min(100%, 1080px); margin: 0 auto; display: grid; gap: 32px; align-items: center; }
.app-cta-visual { display: flex; justify-content: center; align-items: flex-start; max-height: 520px; overflow: hidden; border-radius: 28px; }
.app-cta-visual img { width: min(76vw, 290px); border: 8px solid #10243b; border-radius: 28px; background: #fff; box-shadow: 0 24px 55px rgba(15,46,58,.22); }
.app-cta-copy .section-lead { font-size: 16px; }
.app-cta-card { margin-top: 30px; padding: 24px; border-radius: 14px; color: #fff; background: var(--ocean-deep); }
.app-cta-card h3 { margin: 0; color: #fff8df; font-size: 24px; }
.app-cta-card p { margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: 13px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.store-badge { min-height: 58px; display: inline-flex; align-items: center; }
.store-badge img { width: 180px; max-height: 58px; object-fit: contain; }
.muscle-fortune-result { overflow: hidden; }
.muscle-fortune-result-inner { width: min(100%, 1080px); margin: 0 auto; display: grid; gap: 30px; align-items: start; }
.muscle-fortune-result-image { width: 100%; border: 1px solid rgba(16,36,59,.14); border-radius: 18px; box-shadow: 0 18px 42px rgba(15,46,58,.14); }
.muscle-fortune-result-copy .section-lead { max-width: 760px; }
.today-tip { margin: 22px 0 0; padding: 20px; border-left: 5px solid var(--coral); background: #fff; font-size: 18px; font-weight: 800; }
.today-tip strong { color: var(--coral-dark); font-size: 13px; }
.entertainment-note, .menu-note { margin: 16px 0 0; color: var(--ink-soft); font-size: 12px; }
.hint-grid { display: grid; gap: 12px; margin-top: 24px; }
.hint-grid article { padding: 18px; border: 1px solid rgba(16,36,59,.12); border-radius: 11px; background: rgba(255,255,255,.74); }
.hint-grid h3, .hint-grid p { margin: 0; }
.hint-grid h3 { color: var(--coral-dark); font-size: 15px; }
.hint-grid p { margin-top: 5px; color: var(--ink-soft); font-size: 13px; }
.share-copy { margin: 20px 0 0; padding: 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.08); }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.share-button { min-height: 48px; padding: 0 18px; border: 1px solid rgba(255,255,255,.36); border-radius: 8px; color: #fff; background: transparent; font-weight: 850; cursor: pointer; }
.share-button--x { display: inline-flex; align-items: center; color: var(--ink); background: #fff; }
.other-types { display: grid; gap: 10px; }
.other-types a { display: grid; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.other-types strong { color: var(--ocean-deep); }
.other-types span { color: var(--ink-soft); font-size: 12px; }
.app-band { padding: 68px 20px; }
.result-sticky-cta { position: fixed; z-index: 45; inset: auto 10px calc(8px + env(safe-area-inset-bottom)); min-height: 50px; display: flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; color: #fff; background: var(--coral-dark); box-shadow: 0 14px 34px rgba(16,36,59,.32); font-size: 14px; font-weight: 900; }
.result-notice { padding: 28px 20px; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 12px; }
.result-notice p { margin: 0; }
.result-notice p + p { margin-top: 7px; }
.result-notice a { color: var(--ocean-deep); text-decoration: underline; text-underline-offset: 3px; }
.delete-card { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--foam); }
.delete-card h3 { margin-top: 0; }
.delete-card .secondary-button { margin-top: 18px; }
.delete-status { min-height: 1.75em; margin-top: 10px !important; color: var(--leaf); font-weight: 800; }

footer { padding: 28px 20px; background: var(--foam); border-top: 1px solid var(--line); }
.footer-inner { width: min(100%, 1080px); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-logo { width: 170px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.footer-copy { margin: 0; color: var(--ink-soft); font-size: 12px; }

@media (min-width: 760px) {
  :root { --header-height: 76px; }
  .site-header { padding: 12px 5vw; }
  .desktop-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 13px; font-weight: 800; }
  .diagnosis-hero, .sub-hero, .type-hero { padding: calc(var(--header-height) + 64px) 5vw 88px; }
  .diagnosis-hero-inner { grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr); gap: 52px; }
  .diagnosis-stage { padding: 0 5vw 92px; }
  .diagnosis-shell { padding: 36px; }
  .trust-list { grid-template-columns: 1fr 1fr; }
  .content-section { padding: 88px 5vw; }
  .split-intro { grid-template-columns: .8fr 1.2fr; gap: 60px; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .hint-grid { grid-template-columns: 1fr 1fr; }
  .other-types { grid-template-columns: 1fr 1fr; }
  .personal-result, .app-band { padding: 64px 5vw; }
  .app-cta-feature-inner { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 64px; }
  .app-cta-visual { max-height: 630px; }
  .app-cta-visual img { width: 340px; }
  .muscle-fortune-result-inner { grid-template-columns: minmax(340px, .86fr) minmax(0, 1.14fr); gap: 52px; }
  body[data-diagnosis-type] { padding-bottom: 0; }
  .result-sticky-cta { display: none; }
  footer { padding: 30px 5vw; }
}

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