html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; color: #0f172a; background: #f8fafc; line-height: 1.8; }
a { color: #0f4c81; }
.container { width: min(960px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.site-logo { font-weight: 800; text-decoration: none; color: #0f172a; }
.site-logo span { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: 12px; }
.site-header__link { text-decoration: none; font-size: 14px; }
.tools-page { padding: 32px 0 56px; }
.page-title { margin: 0 0 20px; font-size: clamp(24px, 4vw, 36px); line-height: 1.35; }
.grid { display: grid; gap: 20px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card, .form-panel, .result-card, .contact-card { background: #fff; border: 1px solid #d9e3f0; border-radius: 20px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05); }
.card { padding: 24px; }
.card h2, .card h3 { margin: 0 0 12px; font-size: 28px; line-height: 1.45; }
.card__meta { margin: 0 0 10px; color: #64748b; font-size: 14px; }
.card p { margin: 0; color: #334155; }
.form-page, .result-page { padding: 28px 0 56px; }
.form-shell, .result-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.form-panel, .result-card { padding: 24px; }
.step-badge, .result-badge { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.result-badge { background: #e2f0c2; color: #425b0b; }
.result-badge--warn { background: #f7e3a8; color: #8a5600; }
.result-badge--risk { background: #fee2e2; color: #991b1b; }
.page-heading { margin: 0 0 20px; font-size: clamp(28px, 4vw, 48px); line-height: 1.3; }
.question { padding: 20px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; margin-bottom: 16px; }
.question[hidden] { display: none !important; }
.question__label { font-weight: 700; display: block; margin-bottom: 10px; font-size: 18px; line-height: 1.7; }
.question__help { margin: 0 0 12px; color: #64748b; font-size: 14px; }
.option-list { display: grid; gap: 12px; }
.option { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid #cbd5e1; border-radius: 14px; cursor: pointer; background: #fff; }
.option:hover { border-color: #0f4c81; }
.option input { margin-top: 4px; }
.text-input, .textarea, select { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.textarea { min-height: 120px; resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button, button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: none; cursor: pointer; font-weight: 700; text-decoration: none; font-size: 16px; }
.button--primary { background: #0f4c81; color: #fff; }
.button--secondary { background: #e2e8f0; color: #0f172a; }
.button--ghost { background: transparent; border: 1px solid #cbd5e1; color: #0f172a; }
.button--phone { background: #1f2937; color: #fff; }
.button--line { background: #16a34a; color: #fff; }
.button--full { width: 100%; }
.error-list { padding: 12px 16px; border-radius: 14px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; margin-bottom: 16px; }
.error-text { margin-top: 8px; color: #b91c1c; font-size: 14px; }
.result-card h1, .result-card h2, .result-card h3 { margin-top: 0; }
.result-card h2 { font-size: 30px; line-height: 1.45; margin-bottom: 12px; }
.result-card section + section { margin-top: 24px; }
.inline-note { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: #f7f2e4; border: 1px solid #e9c46a; color: #9a5d00; }
.list-plain, .doc-list, .warning-list { margin: 0; padding-left: 20px; }
.consult-box { margin-top: 28px; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, #16385f, #28527f); color: #fff; }
.consult-box h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.45; }
.consult-box p { margin: 0 0 12px; opacity: .96; }
.consult-actions { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.consult-form-action { margin: 0; }
.consult-box__note { font-size: 14px; margin-top: 14px; opacity: .88; }
.paid-offer-box { margin-top: 18px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); }
.paid-offer-box__eyebrow { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.paid-offer-box h4 { margin: 0 0 8px; font-size: 22px; line-height: 1.45; }
.paid-offer-box__list { margin: 0 0 14px; padding-left: 20px; }
@media (max-width: 760px) {
  .consult-actions { grid-template-columns: 1fr; }
  .card h2, .result-card h2, .consult-box h3 { font-size: 22px; }
  .page-heading { font-size: 24px; }
  .question__label { font-size: 17px; }
}
.contact-card { padding: 24px; max-width: 760px; margin: 24px auto 56px; }
.contact-summary { padding: 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; margin-bottom: 16px; }
.site-footer { padding: 24px 0 40px; color: #64748b; font-size: 13px; }

.result-card--inline { margin-top: 24px; }
.result-lead { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 12px; }
.result-message-block { margin: 18px 0; padding: 18px 18px 16px; background: #f8fafc; border: 1px solid #dbe7f3; border-radius: 16px; }
.result-point-list { margin: 0; padding-left: 22px; }
.result-point-list li + li { margin-top: 10px; }
.result-followup { margin: 18px 0; padding: 16px 18px; border-radius: 16px; background: #eef6ff; border: 1px solid #cfe0f5; color: #153a63; font-weight: 600; }
.result-section { margin-top: 22px; }
.result-section h3 { margin-bottom: 8px; }
.result-misunderstanding { margin-top: 18px; color: #334155; }


.field-chip { display:inline-flex; align-items:center; justify-content:center; margin-left:8px; padding:2px 8px; border-radius:999px; font-size:12px; line-height:1.4; vertical-align:middle; }
.field-chip--required { background:#fee2e2; color:#991b1b; }
.field-chip--optional { background:#e2e8f0; color:#475569; }
#diagnosis-result { scroll-margin-top: 90px; }
.period-repeater { display: grid; gap: 12px; margin-bottom: 12px; }
.period-row { padding: 14px; border: 1px solid #d7e1eb; border-radius: 14px; background: #f8fafc; }
.period-row__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.period-row__label { display: block; margin-bottom: 6px; font-size: 14px; color: #334155; font-weight: 600; }
.period-row__remove { width: 100%; }
@media (max-width: 760px) {
  .period-row__fields { grid-template-columns: 1fr; }
}

.risk-panel { padding: 16px 18px; border-radius: 16px; border: 1px solid #fde68a; background: #fff7ed; }
.risk-panel h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.5; }
.risk-panel--high { border-color: #fecaca; background: #fef2f2; color: #7f1d1d; }
.risk-panel--medium { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.risk-panel--low { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }

.tool-info-block, .tool-faq-block { margin: 0 0 24px; padding: 20px 22px; border: 1px solid #d9e3f0; border-radius: 18px; background: #f8fbff; }
.tool-info-block h2, .tool-faq-block h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.45; }
.tool-info-block p { margin: 0 0 10px; color: #334155; }
.tool-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tool-info-card { padding: 16px; border: 1px solid #d7e6f5; border-radius: 16px; background: #fff; }
.tool-info-card h3 { margin: 0 0 10px; font-size: 18px; }
.tool-faq-list { display: grid; gap: 12px; }
.tool-faq-item { padding: 14px 16px; border: 1px solid #d7e6f5; border-radius: 14px; background: #fff; }
.tool-faq-item summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.tool-faq-item p { margin: 12px 0 0; color: #334155; }
@media (max-width: 760px) {
  .tool-info-grid { grid-template-columns: 1fr; }
  .tool-info-block h2, .tool-faq-block h2 { font-size: 21px; }
}


.passport-page__head, .passport-detail-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.passport-lead { margin:0; color:#334155; }
.passport-filter, .passport-list-panel { margin-top: 20px; }
.passport-filter__grid, .passport-form-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
.passport-form-grid__full { grid-column: 1 / -1; }
.passport-table-wrap { overflow-x:auto; }
.passport-table { width:100%; border-collapse:collapse; font-size:14px; }
.passport-table th, .passport-table td { padding:14px 12px; border-bottom:1px solid #e2e8f0; vertical-align:top; text-align:left; }
.passport-table th { background:#f8fafc; white-space:nowrap; }
.passport-name-link { font-weight:700; text-decoration:none; }
.passport-badge { display:inline-flex; padding:4px 10px; border-radius:999px; background:#e2e8f0; color:#334155; font-size:12px; font-weight:700; }
.passport-badge--good { background:#dcfce7; color:#166534; }
.passport-badge--warn { background:#fef3c7; color:#92400e; }
.passport-badge--danger { background:#fee2e2; color:#991b1b; }
.passport-badge--muted { background:#e2e8f0; color:#475569; }
.passport-badge--info { background:#dbeafe; color:#1d4ed8; }
.passport-summary-bar { display:flex; justify-content:space-between; gap:16px; color:#475569; font-size:14px; margin-bottom:12px; flex-wrap:wrap; }
.passport-section + .passport-section { margin-top:22px; }
.passport-section h2 { margin:0 0 12px; font-size:22px; }
.passport-info-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
.passport-info-grid > div, .passport-summary-block { padding:16px; border:1px solid #d9e3f0; border-radius:16px; background:#f8fbff; }
.passport-info-grid strong, .passport-summary-block strong { display:block; margin-bottom:8px; }
.passport-info-grid__full { grid-column:1 / -1; }
.passport-summary-block + .passport-summary-block { margin-top:12px; }
.passport-check-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; margin-top:16px; }
.passport-divider { margin:24px 0; border:none; border-top:1px solid #e2e8f0; }
.passport-heading-small { font-size:24px; }
@media (max-width: 760px) {
  .passport-filter__grid, .passport-form-grid, .passport-info-grid, .passport-check-grid { grid-template-columns: 1fr; }
  .passport-summary-bar { flex-direction:column; }
}


.passport-row--overdue { background: #fff7f7; }
.passport-date-text { margin-top: 6px; color: #475569; font-size: 13px; }
.passport-summary-text { display: inline-block; max-width: 100%; color: #334155; }
.passport-table tbody tr:hover { background: #f8fbff; }


.passport-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.passport-note-form { margin-bottom: 16px; }
.passport-note-list { display:grid; gap:12px; }
.passport-note-item { padding:16px; border:1px solid #d9e3f0; border-radius:16px; background:#fff; }
.passport-note-meta { margin-bottom:8px; color:#64748b; font-size:13px; }
.passport-note-body { color:#0f172a; line-height:1.7; white-space:normal; }
.inline-note--error { border-color:#fecaca; background:#fef2f2; color:#991b1b; }
