:root {
  color-scheme: light;
  --ink: #303345;
  --muted: #62667a;
  --blue: #4556c7;
  --blue-dark: #3342a5;
  --wash: #f5f6fc;
  --line: #d9ddea;
  --soft: #eef0ff;
  --white: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 112.5%;
  line-height: 1.8;
  color: var(--ink);
  background: var(--wash);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--blue-dark); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #a36d00; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.65rem; line-height: 1.65; font-weight: 750; letter-spacing: .01em; }
h2 { font-size: 1.4rem; line-height: 1.7; }
h3 { font-size: 1.08rem; line-height: 1.7; }
p + p { margin-top: 1rem; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, #type-detail:focus { outline: none; }
.skip-link { position: absolute; top: 0; left: 1rem; z-index: 10; transform: translateY(-120%); background: white; padding: 1rem; }
.skip-link:focus { transform: translateY(0); }
.brand { max-width: 960px; margin: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 22px 28px; line-height: 1.55; font-size: .83rem; font-weight: 700; }
.brand-mark { display: block; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand > span:nth-child(2) { flex: 1; min-width: min(9em, calc(100% - 3rem)); }
.brand-break { display: none; }
.brand-label { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .78rem; }
main { max-width: 760px; margin: 26px auto 0; padding: 0 28px; outline: none; }
main[data-screen="home"] { max-width: 680px; }
main[data-screen="question"], main[data-screen="situation"] { max-width: 670px; }
footer { padding: 32px 20px 36px; text-align: center; color: var(--muted); font-size: .78rem; line-height: 1.8; }
footer span { display: inline-block; margin-top: 4px; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.home { background: white; border-radius: 24px; padding: 38px 45px 24px; text-align: center; box-shadow: 0 8px 36px #343f8510; }
.eyebrow { font-size: .83rem; font-weight: 650; color: var(--blue-dark); letter-spacing: .035em; margin-bottom: 14px; }
.home h1 { font-size: 2.35rem; line-height: 1.55; letter-spacing: .03em; }
.home h1 span { color: var(--blue-dark); }
.home-intro > p { margin-top: 19px; font-size: 1rem; line-height: 1.9; }
.home-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 21px 0 27px; color: var(--blue-dark); }
.home-note span { font-size: .83rem; padding: 3px 13px; background: var(--soft); border-radius: 20px; }
.home-start { display: flex; flex-direction: column; gap: 16px; }
.home-start > p { font-size: .85rem; line-height: 1.85; }
.home-consult { margin-top: 0; }
.primary { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 3.55rem; padding: .7rem 1.25rem; border: 2px solid var(--blue); border-radius: 999px; background: var(--blue); color: white; font-weight: 700; line-height: 1.55; text-decoration: none; }
.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.primary:disabled { color: #72768b; background: #e8eaf2; border-color: #e8eaf2; }
.arrow { font-size: 1.2rem; }
.text-button { min-height: 44px; padding: 7px 0; background: none; border: 0; color: var(--blue-dark); font-size: .88rem; text-decoration: underline; text-underline-offset: 5px; }
.intro-note { color: var(--muted); font-size: .79rem; text-align: center; line-height: 1.9; margin: 22px 0 13px; }
.notice { margin: 15px auto 0; font-size: .82rem; color: var(--muted); line-height: 1.85; }
.notice summary { cursor: pointer; min-height: 44px; padding: 8px 0; }
.notice p { padding: 8px 0 10px; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 auto 10px; }
.step-top > button { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 0; background: none; border: 0; color: var(--blue-dark); font-size: .88rem; }
.step-top > span { color: var(--blue-dark); font-size: 1rem; font-weight: 700; }
.progress-total { color: var(--muted); font-size: .83rem; font-weight: 500; }
.progress-track { display: flex; gap: 4px; width: 100%; margin: 0 auto 27px; }
.progress-segment { flex: 1; height: 5px; border-radius: 5px; background: #e3e6f1; }
.progress-segment.done, .progress-segment.current { background: var(--blue); }
.progress-segment.current { opacity: .6; }
.card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 32px; margin: auto; }
.question-card, .situation-card { border: 0; padding: 0; background: transparent; }
.section-tag, .question-header { color: var(--blue-dark); font-size: .82rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 11px; }
.question-header { display: inline-block; padding: 3px 12px; border-radius: 6px; background: var(--soft); }
.card h1 { margin-bottom: 17px; }
.question-card h1 { font-size: 1.48rem; line-height: 1.65; margin-bottom: 17px; }
.subtext, .question-help { color: var(--muted); font-size: .88rem; line-height: 1.8; }
.choices { display: flex; flex-direction: column; gap: 12px; margin: 23px 0; }
.choice { display: flex; align-items: center; gap: 15px; padding: 18px 20px; min-height: 4.3rem; border: 2px solid #c9cee2; border-radius: 12px; background: white; line-height: 1.7; cursor: pointer; box-shadow: 0 2px 0 #41477806; }
.choice > span { flex: 1; min-width: 0; }
.choice:hover { border-color: #7180d5; background: #fafbff; }
.choice:has(input:checked) { border-color: var(--blue); background: #f0f2ff; }
.choice:has(input:focus-visible) { outline: 3px solid #a36d00; outline-offset: 3px; }
.choice input { order: 2; margin: 0; width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; accent-color: var(--blue); }
.choice input:focus-visible { outline: none; }
.choice strong { display: block; font-weight: 650; }
.choice .hint { display: block; font-size: .81rem; color: var(--muted); margin-top: 5px; }
.choice.neutral { font-size: .94rem; }
.question-bottom { margin-top: 26px; }
.below-action { text-align: center; margin: 18px auto 0; }
.result-head { margin: 0 auto 26px; }
.result-label { display: inline-block; color: var(--blue-dark); background: var(--soft); padding: 4px 12px; font-size: .82rem; font-weight: 700; border-radius: 6px; margin-bottom: 15px; }
.result-head h1 { font-size: 1.7rem; margin-bottom: 13px; }
.result-head > p { font-size: .94rem; }
.result-cover { background: #eef1ff; border: 1px solid #dce1f5; border-bottom: 0; border-radius: 20px 20px 0 0; padding: 31px 32px; }
.result-cover h2 { color: var(--blue-dark); font-size: 1.72rem; line-height: 1.65; margin-bottom: 15px; }
.type-suffix { display: inline-block; }
.result-cover > p { font-size: .98rem; }
.type-combination { font-size: .8rem !important; color: #56617f; margin-top: 20px !important; line-height: 1.9; }
.result-body { padding: 31px 32px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; background: white; }
.two-notes { display: flex; flex-direction: column; gap: 27px; margin-bottom: 28px; }
.note-title { font-size: .9rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 9px; }
.two-notes p { font-size: .98rem; }
.burden-note { padding-top: 24px; border-top: 1px solid var(--line); }
.tips-title { border-top: 1px solid var(--line); padding-top: 25px; margin-bottom: 23px; font-size: 1.16rem; }
.tips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 26px; }
.tips li { display: grid; grid-template-columns: 1.9rem minmax(0,1fr); gap: 13px; }
.tip-number { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-top: 2px; border-radius: 50%; color: var(--blue-dark); background: var(--soft); font-size: .82rem; font-weight: 700; line-height: 1; }
.tips p { color: var(--muted); font-size: .94rem; margin-top: 5px; }
.phrase { background: #f5f6fc; padding: 23px; border-radius: 13px; margin-top: 30px; }
.phrase blockquote { margin: 10px 0 0; font-size: 1rem; line-height: 1.9; }
.phrase .small { margin-top: 13px; }
.tendencies { margin: 24px 0; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.tendencies h2 { font-size: 1.15rem; }
.axis { padding-top: 18px; }
.axis + .axis { margin-top: 18px; border-top: 1px solid var(--line); }
.axis-title { font-size: .82rem; color: var(--muted); }
.axis p { font-size: .94rem; margin-top: 5px; }
.axis .small { font-size: .84rem; color: var(--muted); }
.result-note { margin: 20px 0 25px; color: var(--muted); font-size: .84rem; line-height: 1.85; }
.candidate-picker { padding: 24px; margin-bottom: 25px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.candidate-picker p { font-size: .9rem; margin-bottom: 15px; }
.candidate-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.candidate-buttons button { text-align: left; min-height: 3.4rem; padding: 12px 15px; border: 1px solid #a6afd9; border-radius: 10px; background: white; color: var(--blue-dark); font-size: .92rem; }
.candidate-buttons button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }
.consult { padding: 28px 30px; margin: 32px auto 0; border: 1px solid #d6ddf7; border-radius: 20px; background: #eff2ff; }
.consult h2 { font-size: 1.4rem; margin-bottom: 15px; }
.consult p { font-size: .94rem; }
.consult .copy-group, .consult .text-unit { display: inline-block; max-inline-size: 100%; vertical-align: top; }
.consult .text-unit { overflow-wrap: anywhere; }
.consult-description { margin-top: 1rem; }
.consult-description p + p { margin-top: .6rem; }
.consult-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 20px 0; }
.consult-details li { text-align: center; background: white; border-radius: 5px; padding: 4px 6px; font-size: .78rem; white-space: nowrap; }
.consult-info { display: grid; gap: 20px; padding: 18px 20px; margin-top: 20px; border-radius: 11px; background: white; }
.paid-note { margin: 0; font-size: .87rem !important; }
.booking-test:disabled { color: var(--blue-dark); background: var(--soft); border: 2px dashed #a4add5; border-radius: 11px; cursor: default; }
.booking-test-caption { display: block; margin-top: 3px; font-size: .8rem; font-weight: 500; }
.booking-pending > p { margin-top: 12px; }
.booking-pending p { color: var(--muted); font-size: .88rem; }
.consult .small { color: var(--muted); font-size: .83rem; margin-top: 13px; }
.consult-info > .small { margin: 0; }
.secondary { min-height: 3.1rem; padding: .7rem 1rem; border: 1px solid #a4add5; border-radius: 999px; font: inherit; font-size: .94rem; line-height: 1.65; background: white; color: var(--blue-dark); }
.secondary:hover { background: var(--soft); }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; margin: 26px auto 0; }
.self-intro { background: var(--soft); border-radius: 12px; padding: 20px; margin: 23px 0; }
.self-tips { margin-top: 26px; }
.self-tips h2 { font-size: 1.08rem; }
.reset-box { max-width: 500px; }
.reset-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
@media (max-width: 650px) {
  :root { background: white; }
  .brand { padding: 17px 20px 16px; font-size: .79rem; border-bottom: 1px solid #edf0f7; gap: 9px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-break { display: block; }
  .brand-label { font-size: .78rem; }
  main { padding: 0 22px; margin-top: 19px; }
  main[data-screen="home"] { margin-top: 28px; }
  .home { padding: 0; box-shadow: none; border-radius: 0; }
  .home h1 { font-size: 2.08rem; line-height: 1.5; }
  .home-intro > p { margin-top: 17px; font-size: .98rem; }
  .home-note { margin: 18px 0 24px; gap: 10px; }
  .home-start { gap: 15px; }
  .home-start > p { font-size: .84rem; }
  .intro-note { margin-top: 20px; text-align: left; }
  .intro-note br { display: none; }
  .notice { margin-top: 8px; }
  .card { padding: 25px 22px; border-radius: 16px; }
  .question-card, .situation-card { padding: 0; border-radius: 0; }
  .card h1, .question-card h1 { font-size: 1.34rem; }
  .question-header { margin-bottom: 13px; }
  .question-help, .subtext { font-size: .87rem; }
  .progress-track { margin-bottom: 24px; }
  .choices { margin: 21px 0; gap: 12px; }
  .choice { padding: 16px; gap: 13px; border-radius: 11px; min-height: 4.3rem; }
  .choice .hint { font-size: .8rem; }
  .question-bottom { margin-top: 23px; }
  .below-action { margin-top: 12px; }
  .result-head h1 { font-size: 1.45rem; }
  .result-cover { padding: 25px 22px; border-radius: 16px 16px 0 0; }
  .result-cover h2 { font-size: 1.5rem; }
  .result-body { padding: 24px 22px; border-radius: 0 0 16px 16px; }
  .result-cover > p, .two-notes p { font-size: .95rem; }
  .tips li { gap: 10px; }
  .phrase { padding: 19px; }
  .phrase blockquote { font-size: .96rem; }
  .tendencies { padding: 22px; }
  .candidate-picker { padding: 22px; }
  .candidate-buttons { grid-template-columns: 1fr; }
  .consult { padding: 25px 22px; border-radius: 16px; }
  .consult h2 { font-size: 1.27rem; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
  footer { padding-top: 25px; }
}
@media (max-width: 360px) {
  .consult h2 { font-size: 1.18rem; }
  .consult-details { gap: 4px; }
  .consult-details li { padding-right: 3px; padding-left: 3px; }
  main { padding: 0 18px; }
  .brand { padding-left: 18px; padding-right: 18px; }
  .brand-label { font-size: .78rem; }
  .home h1 { font-size: 1.95rem; }
  .choice { padding: 14px; gap: 10px; }
  .card h1, .question-card h1 { font-size: 1.28rem; }
  .eyebrow { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  body { background: white; }
  .brand { padding: 0 0 20px; }
  main { max-width: none; margin: 0; padding: 0; }
  .step-top, .result-actions, .candidate-picker, .consult, .notice, .skip-link, footer { display: none; }
  .result-body { border: 0; }
  .tips li, .phrase, .axis { break-inside: avoid; }
}
