/* Personality test collection (2026-11-15) */
.test-wrap{max-width:820px;margin:0 auto;padding:16px}
.test-hero h1,.type-page h1,.pair-page h1{font-size:1.7rem;line-height:1.3;margin:.4em 0}
.test-meta,.test-small{color:#666;font-size:.9rem}
.test-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border:0;border-radius:999px;background:#5b3cc4;color:#fff;font-size:1.05rem;font-weight:700;text-decoration:none;cursor:pointer}
.test-form{display:flex;flex-direction:column;gap:14px;margin:20px 0}
.test-item{border:1px solid #e2def0;border-radius:14px;padding:14px;margin:0;background:#fff}
.test-item legend{font-weight:700;line-height:1.5;padding:0 4px}
.test-num{color:#5b3cc4}
.test-scale{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:10px}
.test-scale label{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:.78rem;text-align:center;color:#555;cursor:pointer}
.test-scale input{width:26px;height:26px;accent-color:#5b3cc4;margin:0}
.test-error,.test-status{color:#b00020;min-height:1.2em}
.test-with{background:#f1ecff;border-radius:12px;padding:12px;font-weight:700}
.type-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:12px 0}
.type-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px;border:1px solid #e2def0;border-radius:14px;background:#fff;text-decoration:none;color:inherit;text-align:center}
.type-code{font-weight:800;letter-spacing:.06em}
.type-name{font-size:.9rem;color:#555}
.type-head{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.type-head svg{flex:0 0 auto;max-width:40vw;height:auto}
.type-code-big{font-size:2.6rem;font-weight:800;letter-spacing:.08em;margin:0;color:#5b3cc4}
.type-tagline{font-size:1.1rem;color:#444;margin:.2em 0}
.type-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.type-result{border:2px solid #5b3cc4;border-radius:16px;padding:16px;background:#f8f5ff;margin-bottom:16px}
.type-result-label{font-weight:800;color:#5b3cc4;margin:0}
.type-roast{font-size:1.2rem;font-style:italic;font-weight:700;margin:.4em 0}
.test-share{display:flex;flex-wrap:wrap;gap:8px}
.test-share a,.test-share button{min-height:44px;padding:0 16px;display:inline-flex;align-items:center;border-radius:999px;border:1px solid #5b3cc4;background:#fff;color:#5b3cc4;font-size:.95rem;text-decoration:none;cursor:pointer}
.test-share [data-share="x"]{background:#111;border-color:#111;color:#fff}
.test-share [data-share="line"]{background:#06c755;border-color:#06c755;color:#fff}
.type-match{display:flex;justify-content:space-between;padding:12px;border:1px solid #e2def0;border-radius:12px;background:#fff;text-decoration:none;color:inherit;font-weight:700}
.type-match span{color:#5b3cc4}
.pair-head{display:flex;align-items:center;justify-content:center;gap:8px}
.pair-plus{font-size:2rem;font-weight:800;color:#5b3cc4}
.pair-score{font-size:2.4rem;font-weight:800;color:#5b3cc4;margin:.2em 0}
.pair-score span{font-size:1rem;color:#555}
.test-cta{margin:24px 0;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.test-cards{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.test-card{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid #e2def0;border-radius:14px;background:#fff;text-decoration:none;color:inherit}
.test-card-title{font-weight:800}
.test-card-desc{font-size:.9rem;color:#555}
.test-card-meta{font-size:.85rem;color:#5b3cc4}
@media (max-width:520px){.type-cols{grid-template-columns:1fr}.test-scale label span{font-size:.68rem}.test-hero h1,.type-page h1,.pair-page h1{font-size:1.4rem}}

.test-ad{margin:24px auto;min-height:120px;max-width:728px;text-align:center}
.test-ad-label{display:block;font-size:.75rem;color:#888;margin-bottom:4px}
.type-rarity{font-weight:800;color:#c0392b;margin:.2em 0}
.type-bars{display:grid;gap:8px;margin:12px 0}
.type-bar{display:grid;grid-template-columns:minmax(90px,30%) 1fr 48px;gap:8px;align-items:center;font-size:.9rem}
.type-bar-track{height:12px;background:#e9e4f7;border-radius:999px;overflow:hidden}
.type-bar-fill{display:block;height:100%;background:#5b3cc4}
.type-bar-value{text-align:right;font-weight:700}
.type-label-big{font-size:1.8rem}
.test-notice{background:#fff7e0;border:1px solid #f0d58a;border-radius:10px;padding:10px 12px;font-size:.9rem}
.test-progress{display:grid;gap:6px;margin-bottom:10px}
.test-progress-text{font-weight:700;color:#5b3cc4}
.test-progress-track{height:8px;background:#e9e4f7;border-radius:999px;overflow:hidden}
.test-progress-fill{display:block;height:100%;background:#5b3cc4;transition:width .2s}
.test-stepper .test-item{min-height:180px}
.test-nav{display:flex;justify-content:flex-start}
.test-back{min-height:44px;padding:0 18px;border-radius:999px;border:1px solid #bbb;background:#fff;cursor:pointer}
.test-about{margin-top:28px;line-height:1.75}
.test-faq{border:1px solid #e2def0;border-radius:10px;padding:10px 12px;margin:8px 0;background:#fff}
.test-faq summary{font-weight:700;cursor:pointer}
.test-refs{font-size:.88rem;color:#555}
.type-card{min-width:0}
.type-code{overflow-wrap:anywhere;word-break:break-word;max-width:100%}
@media (max-width:520px){.type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Result page, own result first (2026-11-15) */
.type-result{text-align:center}
.type-spotlight{position:relative;width:220px;height:220px;margin:4px auto 8px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(circle at 50% 45%,#fff8d6 0,#fff3b0 35%,rgba(255,243,176,0) 70%);animation:spot-in .6s ease-out both}
.type-spotlight svg{width:200px;height:200px}
@keyframes spot-in{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.type-spotlight{animation:none}}
.type-result-line{font-size:1.35rem;font-weight:800;margin:.2em 0;overflow-wrap:anywhere}
.type-result .type-bars,.type-result .test-share{text-align:left;justify-content:center}
.type-axis{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:6px;align-items:center;font-size:.85rem}
.type-axis-side{color:#777;overflow-wrap:anywhere}
.type-axis-side:last-of-type{text-align:right}
.type-axis-side.on{color:#222;font-weight:800}
.type-axis-value{grid-column:1/-1;text-align:center;font-weight:700;color:#5b3cc4;margin-top:-2px}
.type-friend{border:2px solid #f39c12;border-radius:16px;padding:16px;background:#fff8ec;margin-bottom:16px;text-align:center}
.type-friend[hidden]{display:none}
.type-friend p{font-weight:700;margin:0 0 10px}
.related-tests{margin:20px 0}
.type-axis-track{display:flex}
.type-axis-track.right{justify-content:flex-end}
.type-result .type-bars{width:100%;max-width:440px;margin:12px auto;box-sizing:border-box}
.type-result .type-bar{grid-template-columns:minmax(0,8.5em) minmax(0,1fr) 3em}
.type-bar-label{overflow-wrap:anywhere;text-align:left}
.type-result .type-bars{justify-content:stretch}
.type-result .type-bar{grid-template-columns:minmax(0,9.6em) minmax(0,1fr) 3em;font-size:.85rem}
.type-result .type-bar-label{overflow-wrap:normal;hyphens:auto}
/* Long type descriptions (2026-11-15) */
.type-toc{border:1px solid #e2def0;border-radius:14px;padding:12px 16px;background:#fff;margin:16px 0}
.type-toc p{font-weight:800;margin:0 0 6px}
.type-toc ol{margin:0;padding-left:1.3em;columns:2;column-gap:24px}
.type-toc li{break-inside:avoid;margin:2px 0}
@media (max-width:560px){.type-toc ol{columns:1}}
.type-long{scroll-margin-top:16px}
.type-long p{line-height:1.7}

/* My results (2026-11-15) */
.header-links{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.my-results{display:grid;gap:12px;margin:16px 0}
.my-result{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #e2def0;border-radius:16px;background:#fff}
.my-result-main{display:flex;align-items:center;gap:12px;flex:1;min-width:0;color:inherit;text-decoration:none}
.my-result-main svg{flex:none;width:72px;height:72px}
.my-result-main>span{display:flex;flex-direction:column;min-width:0}
.my-result-test{font-size:.85rem;color:#5b3cc4;font-weight:800}
.my-result-line{font-weight:800;font-size:1.05rem;overflow-wrap:anywhere}
.my-result-date{font-size:.8rem;color:#666}
.my-result-retake{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid #5b3cc4;color:#5b3cc4;text-decoration:none;font-weight:700;font-size:.9rem}
.my-empty{padding:16px;border-radius:14px;background:#f8f5ff}
.my-clear{margin-top:24px}
.header-links a{font-size:14px;font-weight:800;text-decoration:none;color:#5b3cc4;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}
.header-links{flex-wrap:nowrap;gap:12px;flex:none}@media(max-width:420px){.header-links a{font-size:13px}.site-header .brand{font-size:15px}}

/* Right-hand ad column on test pages, wide screens only (2026-11-15) */
.test-rail{display:none}
@media(min-width:1200px){.test-layout{display:grid;grid-template-columns:minmax(0,820px) 300px;gap:32px;justify-content:center;align-items:start}.test-layout .test-wrap{margin:0}.test-rail{display:block;position:sticky;top:16px;padding-top:16px}.test-rail .test-ad{margin:0;min-height:250px;max-width:300px}}
html[lang=ja] .test-scale span{word-break:keep-all;overflow-wrap:anywhere}
/* Result redesign (2026-11-15): catch, spotlight stage, traits, frank take, save first */
.type-result{background:#fffaf0;border:4px solid #222;border-radius:24px;padding:18px 14px 20px;box-shadow:6px 6px 0 #222}
.type-result-label{color:#777;font-size:.9rem;letter-spacing:.08em}
.type-catch{font-size:clamp(1.45rem,6vw,2rem);font-weight:900;line-height:1.3;margin:.25em 0 .5em;overflow-wrap:anywhere}
.type-stage{position:relative;margin:0 auto 10px;max-width:420px;height:300px;border:4px solid #222;border-radius:22px;overflow:hidden;background:radial-gradient(ellipse 55% 75% at 50% 18%,rgba(255,248,214,.95) 0,rgba(255,248,214,.45) 45%,rgba(255,248,214,0) 75%),#26305c}
.type-stage::after{content:"";position:absolute;left:50%;bottom:14px;width:62%;height:30px;transform:translateX(-50%);border-radius:50%;background:var(--stage,#fff3b0);opacity:.75}
.type-stage .type-spotlight{position:absolute;left:50%;bottom:8px;width:250px;height:250px;margin:0;transform:translateX(-50%);background:none;border-radius:0;z-index:1;animation:stage-in .7s cubic-bezier(.2,1.4,.4,1) both}
.type-stage .type-spotlight svg{width:240px;height:240px}
.type-stage-name{position:absolute;left:12px;top:12px;z-index:2;background:#ffd23f;border:3px solid #222;border-radius:12px;padding:3px 10px;font-weight:900;font-size:1.05rem}
.type-stage-code{position:absolute;right:14px;top:16px;z-index:2;color:#fff;font-weight:900;letter-spacing:.06em}
@keyframes stage-in{from{transform:translate(-50%,40px) scale(.6);opacity:0}to{transform:translate(-50%,0) scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.type-stage .type-spotlight{animation:none}}
.type-sub{font-size:1.05rem;margin:18px 0 8px;text-align:left}
.type-tags{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
.type-tags span{background:#fff;border:3px solid #222;border-radius:999px;padding:5px 13px;font-weight:800;box-shadow:3px 3px 0 #222}
.type-roast-box{background:#fff;border:3px solid #222;border-radius:16px;padding:12px 14px;text-align:left;box-shadow:4px 4px 0 #222;line-height:1.7}
.type-roast-box .type-roast{font-style:normal;font-size:1.1rem;margin:0 0 .4em;background:linear-gradient(transparent 62%,#ffc2d1 62%);display:inline}
.type-roast-box p:last-child{margin:.5em 0 0}
.type-result .test-share{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
.type-result .test-share > *{display:flex;align-items:center;justify-content:center;min-height:46px;border:3px solid #222;border-radius:14px;font-weight:800;text-decoration:none;color:#222;background:#fff;box-shadow:3px 3px 0 #222;cursor:pointer;font-size:.95rem;padding:0 8px}
.type-result .test-share .share-save{grid-column:1/-1;background:#ff5a5f;color:#fff;font-size:1.1rem;min-height:52px}
.type-result .test-share .share-x{background:#222;color:#fff}
.type-result .test-share .share-line{background:#06c755;color:#fff}
/* 2026-11-16 総合窓口：一覧のカードで、site.css のスマホ用 .type-code{font-size:72px} が効いて「INT／J」と2行に折れていたのを直す。キャラとタイプ名を主役にする。 */
.type-card .type-code{font-size:clamp(20px,6.5vw,30px);line-height:1.2;white-space:nowrap;letter-spacing:.04em;overflow-wrap:normal;word-break:normal}
.type-card .type-name{font-size:1rem;font-weight:800}
/* All-tests page (2026-11-16): Start here, topic chips, random button, character cards. */
.hub-actions{margin:14px 0 0}
.hub-start,.hub-all{margin:28px 0}
.hub-start h2,.hub-all h2{margin:0 0 6px}
.hub-start>p{margin:0 0 14px;color:#555}
.hub-card{align-items:flex-start}
.hub-card-art{display:block;width:84px;height:84px;margin:-4px 0 2px}
.hub-card-art svg{width:100%;height:100%}
.hub-card-big .hub-card-art{width:120px;height:120px}
.hub-card[hidden]{display:none}
.hub-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px}
.hub-chip{min-height:40px;padding:0 16px;border:1px solid #cfc6ee;border-radius:999px;background:#fff;color:#3a2a8a;font-size:.95rem;font-weight:700;cursor:pointer}
.hub-chip[aria-pressed="true"]{background:#5b3cc4;border-color:#5b3cc4;color:#fff}
.test-button-ghost{background:#fff;color:#5b3cc4;border:2px solid #5b3cc4}
.related-random{margin:16px 0 0;text-align:center}
.hub-card{display:grid;grid-template-columns:auto 1fr;column-gap:14px;row-gap:4px;align-items:start}
.hub-card .hub-card-art{grid-row:1/4;margin:0;width:72px;height:72px}
.hub-card-big .hub-card-art{width:88px;height:88px}
.hub-card .test-card-title,.hub-card .test-card-desc,.hub-card .test-card-meta{grid-column:2}
/* Deeper type pages (2026-11-16). */
.type-crumbs{font-size:.9rem;margin:0 0 10px;color:#666}
.type-crumbs a{color:#5b3cc4}
.type-deep{margin:24px 0;padding:16px 18px;border:1px solid #e2def0;border-radius:14px;background:#faf8ff}
.type-deep h2{margin:0 0 8px;font-size:1.1rem}
.type-deep ul{margin:0;padding-left:1.2em;display:grid;gap:6px}
.type-deep a{color:#5b3cc4;font-weight:700}
/* 2026-11-16 総合窓口：設問の文（legend）が白い枠の線の上にまたがって見えていたのを直す。枠の内側の先頭に置く。 */
.test-item legend{float:left;width:100%;padding:0;margin:0 0 4px;font-size:1.02rem}
.test-item legend+*{clear:both}
.test-item .test-scale{clear:both}
