:root {
  --navy: #1d1d1f;
  --blue: #0071e3;
  --blue-dark: #0064cc;
  --blue-pale: #f0f7ff;
  --line: #18a957;
  --line-dark: #0e8d46;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --surface: #ffffff;
  --bg: #f5f5f7;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
}
body[data-screen="start"], body[data-screen="question"], body[data-screen="result"] { background: #0755f5; transition: background .45s ease; }
button, a { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; padding: 48px 20px; display: grid; place-items: center; }
.screen { display: none; width: 100%; animation: fadeSlide .42s ease both; }
.screen--active { display: block; }
.card { background: rgba(255,255,255,.96); border: 1px solid rgba(0,0,0,.06); border-radius: 18px; box-shadow: var(--shadow); }
.start-card { max-width: 760px; margin: auto; padding: clamp(48px, 8vw, 88px) clamp(28px, 8vw, 76px); text-align: center; }
.start-card::before { display: none; }
.eyebrow, .question-number, .result-label, .section-kicker { margin: 0 0 18px; color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.hero-icon, .result-icon { display: none; }
h1 { margin: 0; color: var(--navy); font-size: clamp(2.35rem, 7vw, 4.15rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 700; }
h1 span { color: #86868b; }
.lead { max-width: 570px; margin: 28px auto; color: var(--muted); font-size: clamp(1rem, 2vw, 1.16rem); line-height: 1.75; }
.start-meta { display: flex; justify-content: center; gap: 10px; margin: 25px 0; flex-wrap: wrap; }
.start-meta span { padding: 5px 14px; color: var(--muted); background: transparent; border-right: 1px solid var(--border); border-radius: 0; font-size: .82rem; font-weight: 600; }
.start-meta span:last-child { border-right: 0; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 980px; padding: 13px 24px; cursor: pointer; font-weight: 600; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: scale(1.015); }
.button:focus-visible, .answer-button:focus-visible, .back-button:focus-visible, .restart-button:focus-visible { outline: 3px solid rgba(23,105,224,.28); outline-offset: 3px; }
.button--wide { width: 100%; }
.button--primary { max-width: 390px; color: #fff; background: var(--blue); box-shadow: none; font-size: 1rem; }
.privacy-note, .cta-caption { margin: 12px 0 0; color: #7a8798; font-size: .76rem; }
.start-nav, .result-hero__top { display: flex; justify-content: space-between; width: 100%; font-size: .67rem; font-weight: 700; letter-spacing: .12em; }
.start-card { color: #fff; background-color: #0755f5; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 32px 32px; border-color: rgba(255,255,255,.16); overflow: hidden; isolation: isolate; box-shadow: none; }
.start-card .start-nav { position: relative; z-index: 2; margin-bottom: 38px; color: rgba(255,255,255,.82); }
.start-card .eyebrow { position: relative; z-index: 2; color: #b9d2ff; }
.start-card h1 { position: relative; z-index: 2; color: #f5f5f7; }
.start-card h1 span { color: #f5f5f7; }
.start-card h1 .headline-line { display: block; white-space: nowrap; }
.start-card .lead { position: relative; z-index: 2; color: rgba(255,255,255,.9); }
.start-card .privacy-note { position: relative; z-index: 2; color: rgba(255,255,255,.75); }
.start-card .start-meta, .start-card .button { position: relative; z-index: 2; }
.start-card .button--primary { color: #0755f5; background: #fff; }
.start-card .start-meta span { color: #dfe9ff; border-color: rgba(255,255,255,.32); }
.kinetic-art { position: absolute; z-index: -1; top: 8%; left: 50%; width: min(90vw, 610px); aspect-ratio: 1; transform: translateX(-50%); opacity: .62; }
.orbit { position: absolute; inset: 50%; width: 72%; height: 31%; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; transform: translate(-50%,-50%) rotate(var(--rotation)); animation: orbitPulse 7s ease-in-out infinite alternate; }
.orbit--one { --rotation: 18deg; }
.orbit--two { --rotation: 78deg; animation-delay: -2.2s; }
.orbit--three { --rotation: 138deg; animation-delay: -4.4s; }
.kinetic-art__core { position: absolute; inset: 40%; border-radius: 50%; background: #ffffff; filter: blur(30px); box-shadow: 0 0 100px 40px rgba(255,255,255,.34); animation: coreFloat 5s ease-in-out infinite alternate; }
.hero-serial { position: absolute; z-index: -1; top: 64px; left: -9px; color: rgba(255,255,255,.045); font-size: clamp(8rem, 27vw, 13rem); font-weight: 800; line-height: 1; letter-spacing: -.09em; white-space: nowrap; }
.vertical-word { position: absolute; z-index: 2; top: 50%; right: 12px; color: rgba(255,255,255,.32); font-size: .54rem; font-weight: 700; letter-spacing: .19em; writing-mode: vertical-rl; transform: translateY(-50%); }
.scroll-cue { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 30px; color: rgba(255,255,255,.66); font-size: .61rem; letter-spacing: .15em; }
.scroll-cue span { width: 27px; height: 1px; background: rgba(255,255,255,.5); }
.marquee { overflow: hidden; color: currentColor; white-space: nowrap; }
.marquee > div { width: max-content; animation: marqueeMove 18s linear infinite; }
.marquee--start { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.78); font-size: .58rem; font-weight: 700; letter-spacing: .16em; }
.question-wrap, .result-wrap { max-width: 720px; margin: auto; }
.question-wrap { padding-bottom: 24vh; }
.progress-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--navy); font-size: .82rem; font-weight: 700; }
.question-wrap .progress-head { color: #fff; }
.progress-track { height: 4px; margin-bottom: 28px; overflow: hidden; border-radius: 999px; background: #dedee2; }
.progress-track span { display: block; width: 11.11%; height: 100%; border-radius: inherit; background: var(--blue); transition: width .35s ease; }
.live-tendency { margin: 0 0 14px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.live-tendency__head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.live-tendency__head strong { color: var(--blue); font-size: 1rem; }
.live-tendency p { margin: 2px 0 9px; color: var(--ink); font-size: .88rem; line-height: 1.55; }
.live-tendency p strong { color: var(--blue); }
.live-tendency__bar { height: 3px; overflow: hidden; border-radius: 999px; background: #e1e7ee; }
.live-tendency__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .35s ease; }
.live-tendency small { display: block; margin-top: 7px; color: #86868b; font-size: .65rem; }
.question-card { min-height: 450px; padding: clamp(34px, 7vw, 60px); }
.question-card { position: relative; animation: questionArrive .5s cubic-bezier(.22,1,.36,1) both; }
.question-history { position: relative; display: grid; gap: 12px; margin-bottom: 12px; padding-left: 18px; }
.question-history::before { content: ""; position: absolute; top: 18px; bottom: -20px; left: 5px; width: 2px; background: rgba(255,255,255,.35); }
.history-item { position: relative; padding: 16px 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 13px; color: #fff; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); animation: historySettle .36s ease both; }
.history-item::before { content: ""; position: absolute; top: 21px; left: -18px; width: 8px; height: 8px; border: 3px solid #0755f5; border-radius: 50%; background: #fff; }
.history-item span { display: block; margin-bottom: 4px; color: rgba(255,255,255,.62); font-size: .67rem; font-weight: 700; letter-spacing: .08em; }
.history-item p { margin: 0; font-size: .82rem; line-height: 1.5; }
.history-item strong { display: block; margin-top: 6px; font-size: .92rem; }
.question-card h2 { margin: 0 0 30px; color: var(--navy); font-size: clamp(1.35rem, 4vw, 1.75rem); line-height: 1.55; }
.answer-options { display: grid; gap: 10px; }
.answer-button { position: relative; min-height: 62px; width: 100%; padding: 15px 18px; border: 1px solid #dedee2; border-radius: 12px; color: #1d1d1f; background: #fff; cursor: pointer; text-align: left; font-weight: 500; transition: .18s ease; }
.answer-button::before { content: attr(data-label); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 14px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); background: #fff; font-size: .74rem; font-weight: 600; vertical-align: middle; }
.answer-button:hover { border-color: #a7a7ac; background: #fafafa; transform: none; }
.answer-button.is-selected { color: var(--blue-dark); border-color: var(--blue); background: var(--blue-pale); box-shadow: none; }
.answer-button.is-committed { overflow: hidden; transform: scale(.985); }
.answer-button.is-committed::after { content: ""; position: absolute; inset: 50%; border-radius: 50%; background: rgba(0,113,227,.16); animation: answerRipple .5s ease-out both; }
.back-button, .restart-button { min-height: 44px; display: block; margin: 18px auto 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-weight: 600; }
.question-wrap .back-button { color: rgba(255,255,255,.84); }
.back-button[hidden] { display: none; }
.result-card { padding: clamp(28px, 6vw, 52px); text-align: center; }
.result-card > h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; letter-spacing: -.04em; }
.result-tagline { margin: 8px 0 16px; color: var(--blue); font-size: 1.05rem; font-weight: 700; }
.result-description { margin: 0 0 25px; color: var(--muted); white-space: pre-line; }
.button--line { color: #fff; background: var(--line); box-shadow: none; }
.result-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--border); text-align: left; }
.result-section h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.08rem; }
.result-section p { margin: 0; color: var(--muted); }
.recommendation { padding: 28px; border: 0; border-radius: 14px; background: #f5f5f7; }
.recommendation .section-kicker { margin-bottom: 4px; }
.recommendation .button { margin-top: 18px; }
.recommendation small { display: block; margin-top: 10px; color: #7a8798; }
.button--secondary { color: #fff; background: var(--blue); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 30px; color: #40506a; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.benefit, .message { padding: 24px; border: 0; border-radius: 12px; background: #f5f5f7; }
.next-step { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 22px; border: 0; border-radius: 12px; background: var(--blue-pale); }
.next-step span { padding: 2px 9px; color: #fff; background: var(--blue); border-radius: 6px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.next-step p { color: var(--navy); font-weight: 700; }
.share-area { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--border); }
.share-area > p:first-child { width: 100%; margin: 0 0 4px; color: var(--muted); font-size: .85rem; }
.button--share { color: #fff; background: var(--blue); }
.button--x { color: #fff; background: #111; }
.share-status { width: 100%; min-height: 1.5em; margin: 0; color: var(--blue); font-size: .78rem; }
.restart-button { text-decoration: underline; text-underline-offset: 4px; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes orbitPulse { from { transform: translate(-50%,-50%) rotate(var(--rotation)) scale(.86); } to { transform: translate(-50%,-50%) rotate(calc(var(--rotation) + 24deg)) scale(1.08); } }
@keyframes coreFloat { from { transform: translate(-12px,-6px) scale(.86); } to { transform: translate(14px,10px) scale(1.14); } }

/* 結果の冒頭は、診断レポートではなく一枚のキャリアポスターとして見せます。 */
.result-card { padding: 0 0 clamp(28px, 6vw, 52px); overflow: hidden; }
.result-card > .result-section, .result-card > .button, .result-card > .cta-caption, .result-card > .share-area { margin-left: clamp(18px, 6vw, 52px); margin-right: clamp(18px, 6vw, 52px); }
.result-card > .button { width: auto; }
.result-hero { position: relative; min-height: 650px; padding: 28px clamp(24px, 7vw, 60px) 54px; color: #fff; background: #0755f5; overflow: hidden; text-align: left; isolation: isolate; }
.result-hero::after { content: ""; position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 32px 32px; }
.result-hero__top { position: relative; z-index: 2; color: #77777d; margin-bottom: 130px; }
.result-hero .result-label { position: relative; z-index: 2; margin-bottom: 14px; color: #2997ff; }
.result-hero #result-title { position: relative; z-index: 2; max-width: 570px; margin: 0; color: #f5f5f7; font-size: clamp(2.8rem, 9vw, 5.7rem); line-height: .98; letter-spacing: -.075em; }
.result-hero .result-tagline { position: relative; z-index: 2; max-width: 500px; margin: 22px 0 14px; color: #f5f5f7; font-size: 1.12rem; }
.result-hero .result-description { position: relative; z-index: 2; max-width: 520px; color: #a1a1a6; text-align: left; }
.result-hero .button { position: relative; z-index: 2; max-width: 390px; margin-top: 18px; }
.result-poster-art { position: absolute; z-index: -1; top: 32px; right: -92px; width: 340px; aspect-ratio: 1; border-radius: 50%; background: var(--result-accent, #0071e3); box-shadow: 0 0 100px 30px color-mix(in srgb, var(--result-accent, #0071e3) 35%, transparent); animation: posterTurn 18s linear infinite; transition: background .4s ease; }
.result-poster-art span { position: absolute; inset: var(--inset); border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.result-poster-art span:nth-child(1) { --inset: 17%; }
.result-poster-art span:nth-child(2) { --inset: 32%; }
.result-poster-art span:nth-child(3) { --inset: 45%; background: #0755f5; }
@keyframes posterTurn { to { transform: rotate(360deg); } }
@keyframes marqueeMove { to { transform: translateX(-50%); } }
.marquee--result { padding: 12px 0; color: #0755f5; background: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.result-card { --result-accent: #8db8ff; }
@keyframes questionArrive { from { opacity: 0; transform: translateY(36px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes historySettle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes answerRipple { from { width: 0; height: 0; transform: translate(-50%,-50%); opacity: 1; } to { width: 520px; height: 520px; transform: translate(-50%,-50%); opacity: 0; } }
@media (max-width: 520px) {
  body { line-height: 1.7; }
  .app-shell { min-height: 100dvh; padding: 0; align-items: start; }
  .card { border-radius: 14px; }
  .start-card { width: 100%; min-height: 100dvh; margin: 0; padding: 76px 24px 62px; border: 0; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
  .start-card .start-nav { position: absolute; top: 22px; left: 20px; right: 20px; width: auto; margin: 0; }
  .kinetic-art { top: 18%; width: 115vw; opacity: .34; }
  .hero-serial { display: none; }
  .vertical-word { right: 8px; }
  .eyebrow { margin-bottom: 20px; }
  h1 { font-size: clamp(2.15rem, 10.2vw, 2.75rem); line-height: 1.08; letter-spacing: -.055em; }
  .start-card h1 span { display: block; }
  .lead { max-width: 330px; margin: 24px auto 20px; font-size: .86rem; line-height: 1.72; }
  .start-meta { margin: 18px 0 22px; gap: 5px; }
  .start-meta span { padding: 3px 9px; font-size: .75rem; }
  .button { min-height: 54px; }
  .privacy-note { font-size: .69rem; line-height: 1.55; }
  .scroll-cue { margin-top: 22px; }
  .question-wrap { padding-top: 8px; }
  .question-history { gap: 9px; margin-bottom: 10px; }
  .history-item { padding: 12px 14px; }
  .history-item p { display: none; }
  .history-item strong { margin-top: 0; font-size: .86rem; }
  .progress-head { margin-bottom: 6px; }
  .progress-track { margin-bottom: 14px; }
  .live-tendency { padding: 13px 15px; }
  .question-card { min-height: 0; padding: 28px 18px 22px; }
  .question-number { margin-bottom: 10px; }
  .question-card h2 { margin-bottom: 22px; font-size: 1.28rem; line-height: 1.55; letter-spacing: -.02em; }
  .answer-button { min-height: 60px; padding: 13px 14px; font-size: .91rem; line-height: 1.55; }
  .answer-button::before { width: 26px; height: 26px; margin-right: 10px; }
  .result-card { padding: 0 0 28px; }
  .result-hero { min-height: 680px; padding: 22px 20px 38px; display: flex; flex-direction: column; justify-content: flex-end; }
  .result-hero__top { position: absolute; top: 22px; left: 20px; right: 20px; width: auto; margin: 0; }
  .result-poster-art { top: 70px; right: -82px; width: 290px; }
  .result-hero #result-title { max-width: 96%; font-size: clamp(3rem, 15vw, 4.25rem); }
  .result-hero .result-tagline { margin-top: 20px; font-size: 1rem; }
  .result-hero .result-description { margin-bottom: 18px; font-size: .87rem; }
  .result-tagline { font-size: .96rem; line-height: 1.6; }
  .result-description { text-align: left; font-size: .91rem; }
  .result-section { margin-top: 24px; padding-top: 22px; }
  .recommendation, .benefit, .message, .next-step { padding: 20px 17px; }
  .next-step { grid-template-columns: 1fr; }
  .button--share, .button--x { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
