.screening {
	--sc-ink: #302640;
	--sc-muted: #71677e;
	--sc-purple: #7050aa;
	--sc-purple-dark: #4f347f;
	--sc-lilac: #eee7fb;
	--sc-mint: #dff4eb;
	--sc-gold: #f5c76e;
	--sc-white: #fff;
	background: linear-gradient(180deg, #f7f3fc 0, #fff 580px);
	color: var(--sc-ink);
	font-family: "Noto Sans JP", system-ui, sans-serif;
	padding-bottom: 80px;
}

.screening *, .screening *::before, .screening *::after { box-sizing: border-box; }
.screening button, .screening select { font: inherit; }
.screening__wrap { width: min(100% - 32px, 1040px); margin-inline: auto; }
.screening__tool { width: min(100% - 32px, 760px); margin-inline: auto; }

.screening__hero { padding: 38px 0 22px; overflow: hidden; position: relative; }
.screening__hero::before,
.screening__hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.screening__hero::before { width: 260px; height: 260px; right: -80px; top: -120px; background: rgba(191, 168, 235, .28); }
.screening__hero::after { width: 180px; height: 180px; left: -80px; bottom: -100px; background: rgba(162, 225, 204, .24); }
.screening__eyebrow { color: var(--sc-purple); font-size: 12px; font-weight: 900; letter-spacing: .14em; margin: 0 0 8px; }
.screening__hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 248px; gap: 34px; align-items: center; }
.screening__title { font-size: clamp(30px, 5vw, 52px); line-height: 1.25; letter-spacing: -.04em; margin: 0; }
.screening__title em { color: var(--sc-purple); font-style: normal; }
.screening__lead { color: #594e67; font-size: 15px; line-height: 1.9; margin: 14px 0 16px; max-width: 660px; }
.screening__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.screening__facts li { background: rgba(255,255,255,.78); border: 1px solid #dfd5ef; border-radius: 999px; color: #594874; font-size: 12px; font-weight: 800; padding: 7px 11px; }
.screening__start { appearance: none; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--sc-purple), #906bd0); box-shadow: 0 10px 24px rgba(112,80,170,.28); color: #fff; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-width: 230px; padding: 14px 24px; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease; }
.screening__start:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(112,80,170,.34); }
.screening__start:focus-visible, .screening__choice:focus-visible, .screening__back:focus-visible, .screening__restart:focus-visible { outline: 3px solid #f5c76e; outline-offset: 3px; }
.screening__hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transform: rotate(2deg); }
.screening__hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 4px solid rgba(255,255,255,.85); border-radius: 22px; box-shadow: 0 8px 22px rgba(60,38,88,.14); }

.screening__notice { background: #fffdf7; border: 1px solid #eee1bc; border-radius: 14px; color: #61553b; font-size: 12px; line-height: 1.8; margin: 4px auto 24px; padding: 11px 14px; width: min(100% - 32px, 760px); }
.screening__notice strong { color: #463b26; }

.screening__screen { display: none; }
.screening__screen.is-active { display: block; animation: scFade .3s ease both; }
@keyframes scFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.screening__intro-card,
.screening__question-card,
.screening__profile-card,
.screening__result-card { background: rgba(255,255,255,.96); border: 1px solid #e6dcef; border-radius: 24px; box-shadow: 0 16px 44px rgba(76,52,110,.10); }
.screening__intro-card { padding: 26px; }
.screening__intro-card h2 { font-size: 22px; margin: 0 0 8px; }
.screening__intro-card > p { color: var(--sc-muted); font-size: 13px; line-height: 1.9; margin: 0; }
.screening__axes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 20px 0; }
.screening__axis { background: #f8f5fc; border-radius: 14px; padding: 12px 8px; text-align: center; }
.screening__axis b { color: var(--sc-purple-dark); display: block; font-size: 18px; }
.screening__axis span { color: var(--sc-muted); font-size: 10.5px; font-weight: 800; }
.screening__intro-actions { align-items: center; display: flex; gap: 14px; justify-content: space-between; }
.screening__time { color: var(--sc-muted); font-size: 11px; line-height: 1.6; }

.screening__progress { margin: 4px 0 12px; }
.screening__progress-line { background: #e9e2f1; border-radius: 99px; height: 8px; overflow: hidden; }
.screening__progress-fill { background: linear-gradient(90deg, #7a57b5, #64bc9b); border-radius: inherit; height: 100%; transition: width .26s ease; width: 0; }
.screening__progress-meta { color: var(--sc-muted); display: flex; font-size: 11px; font-weight: 800; justify-content: space-between; margin-top: 7px; }
.screening__question-card { min-height: 390px; padding: 28px; }
.screening__question-kicker { color: var(--sc-purple); font-size: 11px; font-weight: 900; letter-spacing: .12em; margin: 0 0 12px; }
.screening__question { font-size: clamp(19px, 4vw, 25px); line-height: 1.65; margin: 0 0 22px; min-height: 82px; }
.screening__choices { display: grid; gap: 9px; }
.screening__choice { background: #faf8fd; border: 1.5px solid #ddd3eb; border-radius: 13px; color: #463854; cursor: pointer; padding: 13px 16px; text-align: left; transition: .16s ease; }
.screening__choice:hover { background: #f0e9fa; border-color: #9877c6; transform: translateX(3px); }
.screening__question-nav { display: flex; justify-content: space-between; margin-top: 15px; }
.screening__back { appearance: none; background: transparent; border: 0; color: #766789; cursor: pointer; font-size: 12px; font-weight: 800; padding: 8px; }
.screening__back[disabled] { opacity: .3; cursor: default; }
.screening__keyhint { color: #a49aaa; font-size: 10px; padding: 8px; }

.screening__profile-card { padding: 28px; }
.screening__profile-card h2 { font-size: 23px; margin: 0 0 10px; }
.screening__profile-card > p { color: var(--sc-muted); font-size: 13px; line-height: 1.85; }
.screening__mbti-field { margin: 20px 0; }
.screening__mbti-field label { display: block; font-size: 13px; font-weight: 900; margin-bottom: 8px; }
.screening__mbti-field select { background: #faf8fd; border: 1.5px solid #d9cee7; border-radius: 12px; color: var(--sc-ink); padding: 12px; width: 100%; }
.screening__consent { align-items: flex-start; background: #f8fbfa; border: 1px solid #d5e9e1; border-radius: 13px; display: flex; gap: 10px; padding: 13px; }
.screening__consent input { margin-top: 4px; width: 18px; height: 18px; }
.screening__consent span { color: #53635d; font-size: 11px; line-height: 1.75; }
.screening__profile-actions { display: flex; gap: 10px; margin-top: 18px; }
.screening__skip { appearance: none; background: #fff; border: 1px solid #d9cee7; border-radius: 999px; color: #69597a; cursor: pointer; font-size: 12px; font-weight: 800; padding: 12px 18px; }

.screening__loading { padding: 70px 0; text-align: center; }
.screening__spinner { animation: scSpin .9s linear infinite; border: 4px solid #e7dff0; border-top-color: var(--sc-purple); border-radius: 50%; height: 46px; margin: 0 auto 15px; width: 46px; }
@keyframes scSpin { to { transform: rotate(360deg); } }

.screening__result-card { overflow: hidden; }
.screening__result-head { display: grid; grid-template-columns: 270px 1fr; gap: 0; align-items: stretch; }
.screening__result-img { height: 100%; min-height: 270px; object-fit: cover; width: 100%; }
.screening__result-copy { padding: 28px; }
.screening__result-label { color: var(--sc-purple); font-size: 11px; font-weight: 900; letter-spacing: .13em; margin: 0 0 7px; }
.screening__result-title { font-size: 30px; line-height: 1.35; margin: 0; }
.screening__result-en { color: #8b7b9c; font-size: 11px; font-weight: 800; margin: 5px 0 13px; }
.screening__result-catch { color: #594a67; font-size: 14px; font-weight: 800; line-height: 1.8; margin: 0; }
.screening__band-note { background: #fff8e8; border-radius: 10px; color: #685837; font-size: 11px; line-height: 1.7; margin-top: 14px; padding: 10px; }
.screening__result-body { padding: 0 28px 28px; }
.screening__section-title { font-size: 17px; margin: 28px 0 12px; }
.screening__score-grid { display: grid; gap: 11px; }
.screening__score-row { display: grid; grid-template-columns: 190px 1fr 42px; gap: 10px; align-items: center; }
.screening__score-name { color: #544661; font-size: 12px; font-weight: 800; }
.screening__score-track { background: #ede7f3; border-radius: 999px; height: 10px; overflow: hidden; }
.screening__score-fill { background: linear-gradient(90deg, #7b59b5, #77c4a8); border-radius: inherit; height: 100%; }
.screening__score-value { color: var(--sc-purple-dark); font-size: 12px; font-weight: 900; text-align: right; }
.screening__summary { color: #4e4258; font-size: 13px; line-height: 2; }
.screening__cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.screening__mini-card { background: #f9f6fc; border-radius: 14px; padding: 15px; }
.screening__mini-card b { color: var(--sc-purple-dark); display: block; font-size: 12px; margin-bottom: 6px; }
.screening__mini-card p { color: #655972; font-size: 11px; line-height: 1.8; margin: 0; }
.screening__caution { background: #fff9ed; border: 1px solid #efdfba; border-radius: 14px; color: #61563f; font-size: 12px; line-height: 1.9; padding: 14px; }
.screening__related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.screening__related a { background: #f7f2fc; border: 1px solid #e4d8f1; border-radius: 12px; color: #5b3c88; font-size: 12px; font-weight: 800; line-height: 1.6; padding: 13px; text-decoration: none; }
.screening__related a:hover { border-color: #9b78c8; }
.screening__result-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.screening__share { background: #18151d; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 900; padding: 12px 20px; text-decoration: none; }
.screening__restart { appearance: none; background: transparent; border: 0; color: #776788; cursor: pointer; font-size: 11px; font-weight: 800; padding: 10px; }

.screening__article { margin-top: 54px; }
.screening__article-head { margin-bottom: 28px; text-align: center; }
.screening__article-head small { color: var(--sc-purple); font-weight: 900; letter-spacing: .12em; }
.screening__article-head h2 { font-size: clamp(25px, 4vw, 36px); margin: 8px 0; }
.screening__article-head p { color: var(--sc-muted); font-size: 13px; line-height: 1.9; }
.screening__article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 34px; }
.screening__prose h2 { border-left: 5px solid #8061b2; font-size: 23px; margin: 46px 0 16px; padding-left: 14px; }
.screening__prose h3 { font-size: 17px; margin: 28px 0 10px; }
.screening__prose p, .screening__prose li { color: #514759; font-size: 14px; line-height: 2.05; }
.screening__prose ul { padding-left: 1.3em; }
.screening__table-wrap { overflow-x: auto; }
.screening__table { border-collapse: collapse; font-size: 12px; line-height: 1.75; width: 100%; }
.screening__table th, .screening__table td { border: 1px solid #e4dce9; padding: 11px; text-align: left; }
.screening__table th { background: #f2edf8; color: #503d69; }
.screening__method { background: #f7fbf9; border: 1px solid #d7ebe2; border-radius: 16px; padding: 17px; }
.screening__method p { font-size: 12px; margin: 0; }
.screening__refs { font-size: 11px !important; overflow-wrap: anywhere; }
.screening__refs a { color: #624391; }
.screening__sidebar { position: sticky; top: 90px; align-self: start; }
.screening__side-card { background: #f7f3fb; border: 1px solid #e5daef; border-radius: 17px; padding: 17px; }
.screening__side-card + .screening__side-card { margin-top: 12px; }
.screening__side-card h3 { font-size: 14px; margin: 0 0 9px; }
.screening__side-card p, .screening__side-card li { color: #665a71; font-size: 11px; line-height: 1.8; }
.screening__side-card ul { margin: 0; padding-left: 1.2em; }
.screening__faq details { border-bottom: 1px solid #e3dae8; padding: 14px 2px; }
.screening__faq summary { cursor: pointer; font-size: 14px; font-weight: 900; }
.screening__faq details p { font-size: 13px; margin-bottom: 0; }

@media (max-width: 760px) {
	.screening__hero { padding-top: 25px; }
	.screening__hero-grid { grid-template-columns: 1fr 116px; gap: 12px; }
	.screening__hero-art { grid-template-columns: 1fr; }
	.screening__hero-art img { border-width: 2px; border-radius: 15px; }
	.screening__hero-art img:nth-child(n+3) { display: none; }
	.screening__lead { font-size: 13px; margin-top: 10px; }
	.screening__facts { gap: 5px; }
	.screening__facts li { font-size: 10px; padding: 5px 8px; }
	.screening__start { min-width: 205px; padding: 12px 18px; }
	.screening__axes { grid-template-columns: repeat(3, 1fr); }
	.screening__intro-actions { align-items: stretch; flex-direction: column; }
	.screening__question-card { min-height: 405px; padding: 22px 18px; }
	.screening__question { min-height: 106px; }
	.screening__keyhint { display: none; }
	.screening__profile-card { padding: 22px 18px; }
	.screening__profile-actions { flex-direction: column; }
	.screening__profile-actions .screening__start { width: 100%; }
	.screening__result-head { grid-template-columns: 1fr; }
	.screening__result-img { aspect-ratio: 16 / 10; min-height: 0; }
	.screening__result-copy, .screening__result-body { padding: 20px; }
	.screening__result-title { font-size: 25px; }
	.screening__score-row { grid-template-columns: 126px 1fr 36px; gap: 7px; }
	.screening__cards-3, .screening__related { grid-template-columns: 1fr; }
	.screening__article-grid { grid-template-columns: 1fr; }
	.screening__sidebar { position: static; }
}

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

/* 親子関係チェック：内容の重さに合わせた落ち着いた配色と安全導線 */
.screening--family {
	--sc-purple: #8b4f58;
	--sc-purple-dark: #633942;
	--sc-lilac: #f4e8e7;
	background: linear-gradient(180deg, #faf3f1 0, #fff 620px);
}
.screening--family .screening__hero::before { background: rgba(187, 119, 116, .18); }
.screening--family .screening__hero::after { background: rgba(80, 152, 145, .16); }
.screening--family .screening__start { background: linear-gradient(135deg, #8b4f58, #b36b65); box-shadow: 0 10px 24px rgba(126,70,78,.24); }
.screening--family .screening__progress-fill,
.screening--family .screening__score-fill { background: linear-gradient(90deg, #9c5960, #599b91); }
.screening__phase { align-items: center; background: #f4ecea; border-radius: 999px; color: #72454b; display: inline-flex; font-size: 10px; font-weight: 900; gap: 6px; margin-bottom: 10px; padding: 6px 10px; }
.screening__choice--skip { background: transparent; border-style: dashed; color: #817884; font-size: 11px; text-align: center; }
.screening__pause { background: #fff8ef; border: 1px solid #ead8bd; border-radius: 14px; color: #665744; font-size: 12px; line-height: 1.85; margin-top: 14px; padding: 13px; }
.screening__support { background: linear-gradient(135deg, #263d3b, #375d58); border-radius: 16px; color: #fff; margin-top: 18px; padding: 17px; }
.screening__support h3 { color: #fff; font-size: 14px; margin: 0 0 7px; }
.screening__support p { color: #eef8f6; font-size: 11.5px; line-height: 1.85; margin: 0; }
.screening__support a { color: #fff4c9; font-weight: 900; }
.screening__coverage { background: #f5f2f6; border-radius: 10px; color: #655c6a; font-size: 11px; line-height: 1.7; margin-top: 12px; padding: 10px; }
