/*
Theme Name: FX Diagnosis
Theme URI: https://fx-diagnosis.jp
Description: FX診断ギルド - あなたの性格に最適なトレード環境を提案するテーマ
Author: FX Diagnosis
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fx-diagnosis
*/

:root {
  --background: #F5F5F7;
  --foreground: #1D1D1F;
  --card: #FFFFFF;
  --primary: #0071E3;
  --muted: #ececf0;
  --muted-fg: #6E6E73;
  --border: rgba(0,0,0,0.05);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:'Noto Sans JP',-apple-system,BlinkMacSystemFont,sans-serif;background:var(--background);color:var(--foreground);line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}

/* HEADER */
.site-header{position:sticky;top:0;z-index:100;height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;background:rgba(255,255,255,0.8);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid var(--border)}
.header-logo{font-size:20px;font-weight:700;letter-spacing:-0.02em}
.header-nav{display:flex;align-items:center;gap:32px}
.nav-link{font-size:12px;font-weight:600;color:var(--foreground);transition:opacity .2s;padding:0}
.nav-link:hover{opacity:.7}
.btn-start{background:var(--foreground);color:#fff;font-size:12px;font-weight:600;padding:6px 16px;border-radius:100px;transition:opacity .2s}
.btn-start:hover{opacity:.8}

/* HERO */
.hero{padding:80px 22px;text-align:center;max-width:980px;margin:0 auto}
.hero-title{font-size:clamp(40px,6vw,72px);font-weight:800;letter-spacing:-0.02em;line-height:1.1;margin-bottom:24px}
.hero-grad{background:linear-gradient(90deg,#4B8BF5 0%,#7B5CE5 50%,#A855F7 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-desc{font-size:clamp(18px,2vw,24px);font-weight:500;color:var(--muted-fg);margin-bottom:48px}

/* QUIZ CARD */
.quiz-card{background:var(--card);max-width:560px;margin:0 auto;padding:56px 48px;border-radius:40px;box-shadow:var(--shadow-lg);border:1px solid var(--border)}
.quiz-dots{display:flex;justify-content:center;gap:8px;margin-bottom:32px}
.quiz-dot{width:8px;height:8px;border-radius:50%;background:#e5e5e5}
.quiz-dot.active{background:var(--primary)}
.quiz-q{font-size:28px;font-weight:700;letter-spacing:-0.01em;text-align:left;margin-bottom:40px}
.quiz-opt{width:100%;background:var(--background);border:2px solid transparent;border-radius:16px;padding:24px;margin-bottom:12px;display:flex;align-items:center;gap:16px;font-size:17px;font-weight:700;color:var(--foreground);cursor:pointer;transition:all .2s;text-align:left}
.quiz-opt:last-child{margin-bottom:0}
.quiz-opt:hover{background:#e8e8ed}
.quiz-opt.selected{border-color:var(--primary);background:rgba(0,113,227,0.05)}
.radio{width:20px;height:20px;border-radius:50%;border:2px solid #c7c7cc;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:all .2s}
.quiz-opt.selected .radio{border-color:var(--primary);background:var(--primary)}
.radio-dot{width:6px;height:6px;border-radius:50%;background:#fff;display:none}
.quiz-opt.selected .radio-dot{display:block}

/* SECTION */
.sec-hdr{max-width:1200px;margin:0 auto;padding:0 24px 40px}
.sec-title{font-size:clamp(24px,3vw,32px);font-weight:700;letter-spacing:-0.02em;margin-bottom:8px}
.sec-sub{font-size:clamp(15px,1.5vw,18px);font-weight:500;color:var(--muted-fg)}

/* CAROUSEL */
.carousel-sec{overflow:visible}
.carousel-sec.types{padding-top:40px}
.carousel-sec.brokers{padding-top:40px}
.carousel-sec.updates{padding-top:40px;padding-bottom:120px}
.carousel-rel{position:relative}
.c-track{display:flex;gap:24px;overflow-x:auto;padding:12px 0 32px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.c-track::-webkit-scrollbar{display:none}
.c-spacer{flex-shrink:0;width:134px}
.c-item{flex:none;width:340px;scroll-snap-align:start}
.scroll-btn{display:none;position:absolute;top:50%;transform:translateY(-50%);z-index:10;width:48px;height:48px;align-items:center;justify-content:center;background:rgba(255,255,255,0.9);backdrop-filter:blur(8px);border-radius:50%;box-shadow:0 4px 16px rgba(0,0,0,0.12);color:#374151;font-size:22px;transition:all .2s;cursor:pointer;border:none;line-height:1}
.scroll-btn:hover{background:#fff;box-shadow:0 8px 24px rgba(0,0,0,0.16)}
.scroll-btn.prv{left:22px}
.scroll-btn.nxt{right:8px}
.scroll-btn.vis{display:flex}

/* TYPE CARDS */
.type-card{height:540px;background:var(--card);border-radius:32px;position:relative;overflow:hidden;box-shadow:var(--shadow-sm);cursor:pointer;transition:transform .3s;z-index:10}
.type-card:hover{transform:scale(1.02);z-index:20}
.tc-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.tc-ov{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,0) 40%,rgba(0,0,0,0.65) 100%)}
.tc-body{position:absolute;bottom:0;left:0;right:0;padding:40px;color:#fff;z-index:2}
.tc-cat{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;margin-bottom:8px}
.tc-type{font-size:40px;font-weight:900;letter-spacing:-0.02em;line-height:1;margin-bottom:12px}
.tc-badge{display:inline-block;background:rgba(255,255,255,0.2);padding:4px 12px;border-radius:100px;font-size:10px;font-weight:700;margin-bottom:12px}
.tc-desc{font-size:13px;opacity:.8;line-height:1.6}

/* BROKER CARDS */
.bc{border-radius:32px;padding:48px;border:1px solid rgba(0,0,0,0.05);position:relative;z-index:10;cursor:pointer;transition:transform .2s;background:var(--card)}
.bc:hover{transform:scale(1.02);z-index:20}
.bc.xm{background:linear-gradient(135deg,#fff 0%,#fff5f5 100%);border-color:rgba(226,35,26,0.2)}
.bc.fxgt{background:linear-gradient(135deg,#fff 0%,#f0f9f9 100%);border-color:rgba(10,111,111,0.2)}
.bc.exness{background:linear-gradient(135deg,#fff 0%,#fffef5 100%);border-color:rgba(255,207,1,0.2)}
.bc.dark{background:#000;color:#fff}
.bc-rank{font-size:10px;font-weight:700;letter-spacing:.1em;color:var(--muted-fg);margin-bottom:16px}
.bc.xm .bc-rank{color:#E2231A}
.bc.fxgt .bc-rank{color:#0a6f6f}
.bc.exness .bc-rank{color:#b8960a}
.bc.dark .bc-rank{color:rgba(255,255,255,0.4)}
.bc-logo-img{height:32px;width:auto;object-fit:contain;object-position:left;max-width:160px}
.bc-logo-txt{font-size:22px;font-weight:900;letter-spacing:-0.02em}
.bc.dark .bc-logo-txt{color:#fff}
.bc-chart{width:100%;height:220px;display:flex;align-items:center;justify-content:center;margin:20px 0}
.bc-pros{font-size:15px;font-weight:700;display:flex;align-items:center;gap:8px;margin-top:8px;color:var(--muted-fg)}
.bc.xm .bc-pros{color:#E2231A}
.bc.fxgt .bc-pros{color:#0a6f6f}
.bc.exness .bc-pros{color:#b8960a}
.bc.dark .bc-pros{color:rgba(255,255,255,0.6)}
.pros-dot{width:6px;height:6px;border-radius:50%;background:#10b981;flex-shrink:0}
.bc.xm .pros-dot{background:#E2231A}
.bc.fxgt .pros-dot{background:#0a6f6f}
.bc.exness .pros-dot{background:#b8960a}
.bc.dark .pros-dot{background:rgba(255,255,255,0.4)}

/* UPDATE CARDS */
.uc{border-radius:32px;overflow:hidden;cursor:pointer;transition:all .2s;border:1px solid #f0f0f0;display:flex;flex-direction:column;height:480px;background:var(--card);box-shadow:0 2px 8px rgba(0,0,0,0.04)}
.uc:hover{box-shadow:0 8px 32px rgba(0,0,0,0.1)}
.uc-body{padding:48px;flex-shrink:0}
.uc-tag{display:inline-block;background:#f3f4f6;color:#374151;font-size:12px;font-weight:600;padding:4px 12px;border-radius:100px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:16px}
.uc-title{font-size:28px;font-weight:600;letter-spacing:-0.01em;line-height:1.14;margin-bottom:8px}
.uc-desc{font-size:14px;color:var(--muted-fg);margin-bottom:8px}
.uc-date{font-size:12px;color:var(--muted-fg)}
.uc-img{margin-top:auto;width:100%;height:200px;object-fit:cover}
.cv-card{border-radius:32px;background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);color:#fff;padding:48px;height:480px;display:flex;flex-direction:column;cursor:pointer;transition:all .2s;box-shadow:0 8px 32px rgba(37,99,235,0.3)}
.cv-card:hover{box-shadow:0 16px 48px rgba(37,99,235,0.4)}
.cv-tag{display:inline-block;background:rgba(255,255,255,0.2);padding:4px 12px;border-radius:100px;font-size:14px;font-weight:600;margin-bottom:16px}
.cv-title{font-size:28px;font-weight:600;line-height:1.14;margin-bottom:8px;letter-spacing:-0.01em}
.cv-desc{font-size:17px;font-weight:600;color:rgba(219,234,254,1);margin-bottom:24px;letter-spacing:-0.02em}
.cv-cta{font-size:17px;font-weight:600;letter-spacing:-0.02em}

/* FOOTER */
.site-footer{background:#fff;border-top:1px solid var(--border);padding:60px 0 32px}
.footer-inner{max-width:1200px;margin:0 auto;padding:0 32px}
.footer-top{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:48px}
.footer-brand{font-size:18px;font-weight:700;margin-bottom:12px}
.footer-brand-desc{font-size:14px;color:var(--muted-fg);line-height:1.6}
.footer-col-title{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-fg);margin-bottom:16px}
.footer-links{list-style:none;display:flex;flex-direction:column;gap:12px}
.footer-links a{font-size:15px;color:var(--foreground);transition:opacity .2s}
.footer-links a:hover{opacity:.6}
.footer-bottom{border-top:1px solid var(--border);padding-top:24px;display:flex;justify-content:space-between;font-size:12px;color:var(--muted-fg)}

@media(max-width:768px){
  .site-header{padding:0 20px}
  .header-nav{gap:16px}
  .c-spacer{display:none}
  .c-item{width:calc(75vw - 32px)}
  .c-track{padding-left:24px}
  .footer-top{grid-template-columns:1fr;gap:32px}
  .quiz-card{padding:40px 28px}
  .type-card{height:400px}
  .tc-body{padding:24px}
  .bc{padding:32px}
  .uc{height:360px}
  .uc-body{padding:32px}
  .cv-card{height:360px;padding:32px}
}

/* ─────────────────────────────────────────────
   QUIZ FLOW
   ───────────────────────────────────────────── */

/* HERO INTRO (above card) */
#hero-intro-text .hero-desc{margin-bottom:8px;font-size:clamp(16px,2vw,20px)}
.hero-note{font-size:13px;color:var(--muted-fg);margin-bottom:40px}

/* INTRO STEP (card内 旧スタイル 互換用) */
.qi-badge{display:inline-block;background:rgba(0,113,227,0.08);color:var(--primary);font-size:12px;font-weight:700;padding:6px 16px;border-radius:100px;margin-bottom:24px}
.qi-h1{font-size:clamp(26px,4vw,38px);font-weight:800;letter-spacing:-0.02em;line-height:1.2;margin-bottom:16px}
.qi-copy{font-size:15px;color:var(--muted-fg);line-height:1.75;margin-bottom:40px}
.qi-cta{display:block;width:100%;background:var(--foreground);color:#fff;font-size:17px;font-weight:700;padding:18px;border-radius:16px;cursor:pointer;transition:opacity .2s,transform .15s;margin-bottom:16px;border:none;font-family:inherit;letter-spacing:-0.01em}
.qi-cta:hover{opacity:.85;transform:translateY(-1px)}
.qi-note{font-size:12px;color:var(--muted-fg);text-align:center}

/* QUIZ TWO-COLUMN LAYOUT */
.quiz-step-wrap{display:flex;gap:20px;align-items:flex-start;max-width:960px;margin:0 auto}
.ql-panel{flex:0 0 252px;background:var(--card);border-radius:32px;padding:32px 28px;box-shadow:var(--shadow-sm);border:1px solid var(--border);text-align:left;position:sticky;top:76px}
.qr-panel{flex:1;min-width:0;max-width:none;margin:0}

/* LEFT PANEL */
.ql-label{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--primary);margin-bottom:12px}
.ql-heading{font-size:17px;font-weight:700;line-height:1.45;letter-spacing:-0.01em;margin-bottom:8px}
.ql-body{font-size:12px;color:var(--muted-fg);line-height:1.65;margin-bottom:20px}
.ql-meters{margin-bottom:18px}
.ql-meter-row{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.ql-meter-label{font-size:10px;font-weight:600;color:var(--muted-fg);width:52px;flex-shrink:0}
.ql-meter-bar{flex:1;height:4px;background:var(--muted);border-radius:100px;overflow:hidden}
.ql-meter-fill{height:100%;background:var(--primary);border-radius:100px;transition:width .5s ease}
.ql-sub-label{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-fg);margin-bottom:8px}
.ql-candidates{list-style:none;display:flex;flex-direction:column;gap:6px}
.ql-cand-item{display:flex;align-items:center;gap:7px}
.ql-cand-rank{font-size:9px;font-weight:700;color:var(--primary);background:rgba(0,113,227,0.08);padding:2px 6px;border-radius:100px;white-space:nowrap;flex-shrink:0}
.ql-cand-name{font-size:12px;font-weight:600}
.ql-brokers{list-style:none;display:flex;flex-direction:column;gap:6px;margin-bottom:6px}
.ql-broker-item{font-size:12px;font-weight:600}
.ql-brokers-note{font-size:10px;color:var(--muted-fg)}

/* PROGRESS BAR */
.quiz-progress{display:flex;align-items:center;gap:12px;margin-bottom:36px}
.qp-bar{flex:1;height:4px;background:var(--muted);border-radius:100px;overflow:hidden}
.qp-fill{height:100%;background:var(--primary);border-radius:100px;transition:width .3s ease}
.qp-label{font-size:12px;font-weight:600;color:var(--muted-fg);white-space:nowrap}

/* BACK BUTTON */
.q-back{display:block;margin-top:24px;font-size:13px;color:var(--muted-fg);padding:8px 0;cursor:pointer;transition:opacity .2s;background:none;border:none;font-family:inherit}
.q-back:hover{opacity:.6}

/* REVEAL CARD */
.quiz-reveal-card{text-align:center;min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
.reveal-label{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--primary)}
.reveal-name{font-size:clamp(30px,5vw,46px);font-weight:900;letter-spacing:-0.02em;line-height:1.1;transition:opacity .6s ease}
.reveal-sub{font-size:17px;font-weight:600;color:var(--muted-fg);transition:opacity .6s ease}
.reveal-dots{display:flex;gap:8px;justify-content:center;transition:opacity .6s ease}
.reveal-dots span{width:8px;height:8px;border-radius:50%;background:var(--primary);animation:ql-blink 1.2s infinite}
.reveal-dots span:nth-child(2){animation-delay:.2s}
.reveal-dots span:nth-child(3){animation-delay:.4s}
@keyframes ql-blink{0%,80%,100%{opacity:.25}40%{opacity:1}}

/* RESULT CARD */
.res-card{background:var(--card);max-width:640px;margin:0 auto;border-radius:40px;box-shadow:var(--shadow-lg);border:1px solid var(--border);overflow:hidden;text-align:left}
.res-header{padding:48px 48px 40px;background:linear-gradient(135deg,#0055c8 0%,#7B5CE5 100%);color:#fff}
.res-type-label{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;opacity:.7;margin-bottom:8px}
.res-type-name{font-size:clamp(26px,4vw,38px);font-weight:900;letter-spacing:-0.02em;margin-bottom:6px;line-height:1.1}
.res-type-sub{font-size:16px;font-weight:600;opacity:.8;margin-bottom:18px;letter-spacing:-0.01em}
.res-desc{font-size:14px;opacity:.88;line-height:1.75}
.res-body{padding:40px 48px 48px;display:flex;flex-direction:column;gap:28px}
.res-sec-label{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-fg);margin-bottom:12px}
.res-traits{list-style:none;display:flex;flex-direction:column;gap:10px}
.res-traits li{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600}
.res-trait-dot{width:6px;height:6px;border-radius:50%;background:var(--primary);flex-shrink:0}
.res-note-box{background:#fffbeb;border:1px solid #fde68a;border-radius:16px;padding:22px}
.res-note-label{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#b45309;margin-bottom:8px}
.res-note-body{font-size:13px;color:#78350f;line-height:1.65;margin-bottom:8px}
.res-caution{font-size:13px;color:#92400e;line-height:1.65;font-weight:500}
.res-env{list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.res-env-item{background:rgba(0,113,227,0.07);color:var(--primary);font-size:13px;font-weight:600;padding:6px 14px;border-radius:100px;border:1px solid rgba(0,113,227,0.15)}
.res-rec-eyebrow{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--primary);margin-bottom:6px}
.res-rec-heading{font-size:19px;font-weight:700;letter-spacing:-0.01em;margin-bottom:18px}
.res-broker-row{display:flex;gap:14px}
.res-broker-card{flex:1;background:var(--background);border:1px solid var(--border);border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:7px}
.rbc-rank{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-fg)}
.rbc-name{font-size:19px;font-weight:900;letter-spacing:-0.02em}
.rbc-tag{display:inline-block;background:rgba(0,113,227,0.08);color:var(--primary);font-size:11px;font-weight:700;padding:3px 10px;border-radius:100px}
.rbc-desc{font-size:12px;color:var(--muted-fg);line-height:1.6;flex:1}
.rbc-cta{display:block;text-align:center;background:var(--foreground);color:#fff;font-size:13px;font-weight:700;padding:10px;border-radius:10px;transition:opacity .2s;margin-top:4px}
.rbc-cta:hover{opacity:.8}
.res-cta-primary{display:block;width:100%;background:var(--primary);color:#fff;font-size:17px;font-weight:700;padding:18px;border-radius:16px;text-align:center;transition:opacity .2s,transform .15s;letter-spacing:-0.01em}
.res-cta-primary:hover{opacity:.85;transform:translateY(-1px)}
.res-disclaimer{font-size:11px;color:var(--muted-fg);text-align:center}
.res-restart{display:block;margin:0 auto;font-size:14px;font-weight:600;color:var(--muted-fg);padding:8px 16px;background:none;border:none;cursor:pointer;font-family:inherit;transition:opacity .2s;text-align:center}
.res-restart:hover{opacity:.6}

/* Q0 経験レベル */
.q0-card{text-align:center}
.q0-question{font-size:clamp(22px,4vw,32px);font-weight:700;margin-bottom:36px;letter-spacing:-0.01em}
.q0-opts{display:flex;flex-direction:column;gap:0}
.q0-btn{display:block;width:100%;padding:16px 24px;background:#f5f5f7;border:2px solid transparent;border-radius:12px;font-size:16px;font-weight:600;color:var(--foreground);cursor:pointer;transition:border-color .2s;text-align:center;margin-bottom:12px;box-sizing:border-box}
.q0-btn:last-child{margin-bottom:0}
.q0-btn:hover{border-color:#0071E3}

/* Q1〜Q10 YES/NO */
.quiz-q-note{font-size:12px;color:var(--muted-fg);margin:-24px 0 28px;text-align:left;padding:8px 12px;background:var(--muted);border-radius:8px}
.quiz-yesno-opts{display:flex;flex-direction:column;gap:0}
.quiz-opt.yes-btn,.quiz-opt.no-btn,.quiz-opt.ab-btn,.quiz-opt.level-btn{display:block;width:100%;padding:16px 24px;background:#f5f5f7;border:2px solid transparent;border-radius:12px;font-size:16px;font-weight:600;color:var(--foreground);cursor:pointer;transition:border-color .2s;text-align:center;margin-bottom:12px;box-sizing:border-box}
.quiz-opt.yes-btn:last-child,.quiz-opt.no-btn:last-child,.quiz-opt.ab-btn:last-child,.quiz-opt.level-btn:last-child{margin-bottom:0}
.quiz-opt.ab-btn:hover:not(:disabled),.quiz-opt.level-btn:hover:not(:disabled),.quiz-opt.yes-btn:hover:not(:disabled),.quiz-opt.no-btn:hover:not(:disabled){border-color:#0071E3}
.quiz-opt.ab-btn.selected,.quiz-opt.level-btn.selected,.quiz-opt.yes-btn.selected,.quiz-opt.no-btn.selected{border-color:#0071E3}
.res-level-msg{font-size:14px;color:var(--muted-fg);margin-top:8px;line-height:1.6}

/* res-type-key */
.res-type-key{font-size:15px;font-weight:700;letter-spacing:0.1em;color:var(--primary);margin-top:4px;margin-bottom:8px}

/* MOBILE OVERRIDES */
@media(max-width:768px){
  .quiz-step-wrap{flex-direction:column}
  .ql-panel{flex:none;width:100%;position:static;padding:24px}
  .qr-panel.quiz-card{padding:32px 24px}
  .res-header{padding:36px 28px 28px}
  .res-body{padding:28px 24px 36px;gap:22px}
  .res-broker-row{flex-direction:column}
}

/* ── result hooks / lead ── */
.res-hooks { margin: 20px 0 28px; }
.hook1 { font-size: 15px; color: #3D3D3F; margin-bottom: 8px; line-height: 1.6; }
.hook2 { font-size: 16px; color: #1D1D1F; line-height: 1.7; }
.result-lead { font-size: 15px; color: #3D3D3F; margin: 24px 0; line-height: 1.7; }

/* ── result hero card ── */
.result-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-bottom: 32px;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}
.result-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.result-hero-body {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: #fff;
  width: 100%;
}
.result-type-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.result-type-code {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
  color: #fff;
}
.result-type-name {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.result-type-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  margin-bottom: 20px;
}
.result-hooks { margin-top: 16px; }
.hook1 {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  line-height: 1.6;
}
.hook2 {
  font-size: 15px;
  color: #fff;
  line-height: 1.7;
}

/* ── broker card (result) ── */
.broker-card {
  background: #fff;
  border: 1px solid #E5E5E7;
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.broker-cta {
  display: block;
  width: 100%;
  padding: 16px;
  background: #1D1D1F;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  margin-top: 16px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.broker-cta:hover { opacity: 0.8; }
.broker-cta-sub {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  color: #1D1D1F;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #E5E5E7;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  margin-top: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.broker-cta-sub:hover { background: #F5F5F7; }

/* ── result sections ── */
.res-section { margin-bottom: 32px; }
.res-section-title { font-size: 17px; font-weight: 700; color: #1D1D1F; margin-bottom: 16px; border-left: 3px solid #1D1D1F; padding-left: 12px; }
.res-traits-list, .res-strategy-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.res-traits-list li, .res-strategy-list li { font-size: 15px; color: #3D3D3F; padding-left: 1em; }
.res-traits-list li::before, .res-strategy-list li::before { content: '・'; }
.res-traits-note, .res-strategy-note { font-size: 14px; color: #6E6E73; margin-top: 12px; }
.broker-card-main { border: 2px solid #1D1D1F; }
.broker-rank-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6E6E73; margin-bottom: 8px; }
.broker-card-name { font-size: 20px; font-weight: 800; color: #1D1D1F; margin-bottom: 12px; }
.broker-type-match { font-size: 13px; color: #6E6E73; margin-bottom: 12px; }
.broker-points { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.broker-points li { font-size: 14px; color: #3D3D3F; padding-left: 1em; }
.broker-points li::before { content: '—'; margin-right: 8px; color: #6E6E73; }
.broker-card-sub { opacity: 0.85; }
.faq-item { margin-bottom: 16px; padding: 16px; background: #F5F5F7; border-radius: 12px; }
.faq-q { font-size: 14px; font-weight: 700; color: #1D1D1F; margin-bottom: 6px; }
.faq-a { font-size: 14px; color: #3D3D3F; line-height: 1.6; }
.res-cta-title { font-size: 18px; font-weight: 700; color: #1D1D1F; margin-bottom: 8px; }
.res-cta-note { font-size: 14px; color: #6E6E73; margin-bottom: 16px; }
.broker-cta-final { background: #1D1D1F; font-size: 17px; padding: 18px; }
.res-nav { text-align: center; }
.res-nav-title { font-size: 15px; color: #6E6E73; margin-bottom: 12px; }
.res-nav-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.res-nav-list li { font-size: 14px; }
.res-nav-list a { color: #0071E3; }
.restart-btn { background: transparent; border: 1px solid #E5E5E7; border-radius: 14px; padding: 14px 28px; font-size: 14px; font-weight: 600; color: #1D1D1F; cursor: pointer; }
.restart-btn:hover { background: #F5F5F7; }
.res-disclaimer { font-size: 12px; color: #aeaeb2; text-align: center; margin-top: 32px; }

/* ── extended type result (ACT-A etc.) ── */
.res-hook {
  font-size: 18px; font-weight: 600; color: #1D1D1F; line-height: 1.7;
  margin: 24px 0; padding: 20px 24px; background: #F5F5F7;
  border-radius: 14px; border-left: 3px solid #1D1D1F;
}
.res-essence { font-size: 15px; color: #3D3D3F; line-height: 1.8; }
.res-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.res-list li { font-size: 15px; color: #3D3D3F; padding-left: 16px; position: relative; line-height: 1.6; }
.res-list li::before { content: '—'; position: absolute; left: 0; color: #6E6E73; }
.res-list-caution li::before { content: '—'; color: #c0392b; }
.res-why-env { background: #F5F5F7; border-radius: 14px; padding: 20px 24px; font-size: 15px; color: #3D3D3F; line-height: 1.8; margin-bottom: 32px; }
.res-env-note { font-size: 14px; font-weight: 700; color: #1D1D1F; text-align: center; margin: 16px 0 20px; letter-spacing: 0.02em; }

/* ── Step Up Block ─────────────────────────── */
.step-divider { border:none; border-top:1px solid #E5E5E7; margin:32px 0; }
.step-up-block { background:#F5F5F7; border-radius:16px; padding:24px; margin-bottom:32px; }
.step-up-label { font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:#6E6E73; margin-bottom:12px; border-left:3px solid #1D1D1F; padding-left:10px; }
.step-up-body { font-size:14px; color:#3D3D3F; line-height:1.8; margin-bottom:16px; }
.step-up-broker { display:flex; align-items:center; justify-content:space-between; background:#fff; border-radius:12px; padding:14px 18px; margin-bottom:12px; }
.step-up-broker-name { font-size:16px; font-weight:700; color:#1D1D1F; }
.step-up-cta { font-size:13px; font-weight:600; color:#0071E3; text-decoration:none; }
.step-up-revisit { font-size:12px; color:#6E6E73; text-align:center; line-height:1.6; }
.res-narrative { max-width: 720px; margin: 56px auto 40px; text-align: center; position: relative; padding: 0 24px; }
.res-narrative p { font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif; font-size: 17px; color: #1B2A4A; line-height: 2.4; letter-spacing: 0.06em; font-weight: 600; white-space: pre-line; overflow-wrap: break-word; background: linear-gradient(135deg, #1B2A4A 0%, #3D5A80 55%, #5C7A99 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.res-narrative::after { content: ''; display: block; width: 32px; height: 1px; background: #C7C7CC; margin: 32px auto 0; }
.res-type-recap { text-align: center; margin: 8px auto 0; padding: 40px 24px; max-width: 640px; }
.recap-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: #6E6E73; }
.recap-name { font-size: 40px; font-weight: 700; color: #1D1D1F; margin: 16px 0 8px; letter-spacing: 0.02em; }
.recap-code { font-size: 18px; font-weight: 700; color: #1D1D1F; letter-spacing: 0.18em; margin-bottom: 16px; }
.recap-subtitle { font-size: 14px; color: #3D3D3F; margin-bottom: 12px; }
.recap-rarity { font-size: 12px; color: #6E6E73; }
.res-share { display: flex; gap: 12px; justify-content: center; margin: 24px auto 8px; }
.share-btn { font-size: 13px; font-weight: 600; padding: 10px 22px; border-radius: 980px; cursor: pointer; text-decoration: none; transition: opacity 0.2s; }
.share-btn:hover { opacity: 0.8; }
.share-btn-x { background: #1D1D1F; color: #fff; border: none; }
.share-btn-copy { background: transparent; color: #1D1D1F; border: 1px solid #C7C7CC; }

/* ── dx-result (Apple-style two-column result layout) ── */
.dx-result-page*{box-sizing:border-box}
.dx-result-page{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue","Hiragino Sans","Hiragino Kaku Gothic ProN","ヒラギノ角ゴ ProN W3",Arial,"メイリオ",Meiryo,sans-serif;background:#f5f5f7;color:#1d1d1f;line-height:1.6;padding-bottom:100px}
.dx-container{max-width:1160px;margin:0 auto;padding:40px 20px;display:flex;gap:48px}
.dx-left-column{flex:1;min-width:0}
.dx-sidebar{width:320px;flex-shrink:0;position:sticky;top:80px;align-self:flex-start}
.dx-hero{width:100% !important;background-size:cover;background-position:center;background-repeat:no-repeat;min-height:480px !important;border-radius:16px;padding:48px 32px;margin-bottom:56px;display:flex;flex-direction:column;justify-content:space-between}
.dx-hero-badge{display:inline-flex;align-items:center;background:#1d1d1f;color:#fff;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;padding:4px 14px;border-radius:50px;margin-bottom:24px;width:fit-content}
.dx-hero-title{font-size:clamp(44px,6vw,72px);font-weight:700;color:#fff;line-height:1.05;letter-spacing:-.03em;text-shadow:0 2px 8px rgba(0,0,0,.3);margin-bottom:12px}
.dx-hero-subtitle{font-size:clamp(16px,2.5vw,22px);font-weight:600;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.3);margin-bottom:24px}
.dx-hero-footnote{font-size:11px;font-weight:600;color:rgba(255,255,255,.7);letter-spacing:.02em;margin-top:auto}
.dx-description{font-size:19px;font-weight:600;line-height:1.8;margin-bottom:56px;padding-bottom:56px}
.dx-section{margin-bottom:56px;padding-bottom:56px}
.dx-eyebrow{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:#3a3a3c;margin-bottom:12px}
.dx-section-title{font-size:clamp(28px,3.5vw,40px);font-weight:700;line-height:1.15;letter-spacing:-.03em;color:#1d1d1f;margin-bottom:24px}
.dx-section-body{font-size:17px;line-height:1.8;color:#1d1d1f}
.dx-list{list-style:none;padding:0;margin:20px 0 0}
.dx-list-item{font-size:17px;line-height:1.9;padding-left:10px;margin-bottom:16px}
.dx-list-item-strength{border-left:2px solid #0071e3;color:#1d1d1f}
.dx-list-item-caution{border-left:2px solid #C7C7CC;color:#6E6E73}
.dx-best-infra{background:#f5f5f7;border-radius:24px;padding:40px}
.dx-best-infra .dx-eyebrow{margin-left:-40px}
.dx-best-infra-title{font-size:clamp(28px,4vw,48px);font-weight:700;line-height:1.15;letter-spacing:-.03em;margin-bottom:24px;margin-left:-40px;background:linear-gradient(90deg,#4B8BF5 0%,#7B5CE5 50%,#A855F7 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.dx-best-infra-desc{font-size:16px;line-height:1.8;color:#1d1d1f;margin-bottom:28px}
.dx-feature-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:28px}
.dx-feature-card{background:#fff;border:.5px solid rgba(0,0,0,.1);border-radius:14px;padding:20px}
.dx-feature-number{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:#0071e3;margin-bottom:8px}
.dx-feature-title{font-size:14px;font-weight:700;color:#1d1d1f;margin-bottom:6px}
.dx-feature-desc{font-size:12px;line-height:1.6;color:#3a3a3c}
.dx-cta-button{display:block;width:100%;background:#0071e3;color:#fff;text-align:left;padding:16px 24px;border-radius:50px;font-size:16px;font-weight:700;text-decoration:none;transition:opacity .2s,transform .2s}
.dx-cta-button:hover{opacity:.9;transform:translateY(-2px)}
.dx-sidebar-card{background:#fff;border:.5px solid rgba(0,0,0,.1);border-radius:16px;overflow:hidden}
.dx-sidebar-header{padding:20px;text-align:left}
.dx-sidebar-label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:#0071e3;margin-bottom:8px}
.dx-sidebar-badge{display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;padding:4px 12px;border-radius:50px;margin-bottom:8px;background:#fef9c3;color:#854d0e;text-align:left}
.dx-sidebar-headline{font-size:26px;font-weight:700;line-height:1.35;margin-bottom:16px;background:linear-gradient(90deg,#4B8BF5 0%,#7B5CE5 50%,#A855F7 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-align:left}
.dx-sidebar-broker{padding:0 20px 16px;text-align:left}
.dx-sidebar-broker-label{font-size:12px;color:#3a3a3c;margin-bottom:12px}
.dx-sidebar-broker-logo{width:70%;height:auto;margin:0 auto 12px;display:block}
.dx-sidebar-broker-desc{font-size:12px;color:#3a3a3c}
.dx-sidebar-divider{height:1px;background:rgba(0,0,0,.06);margin:0 16px 16px}
.dx-sidebar-points{padding:0 20px;list-style:none;margin:0 0 16px}
.dx-sidebar-point{display:flex;align-items:center;gap:8px;font-size:14px;color:#1d1d1f;margin-bottom:8px}
.dx-sidebar-check{width:16px;height:16px;border-radius:50%;background:#0071e3;flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative}
.dx-sidebar-check::after{content:'';width:5px;height:3px;border-left:1.5px solid #fff;border-bottom:1.5px solid #fff;transform:rotate(-45deg) translateY(-1px);display:block}
.dx-sidebar-cta{padding:0 16px 16px}
.dx-sidebar-cta a{display:block;width:100%;background:#0071e3;color:#fff;text-align:left;padding:14px;border-radius:50px;font-size:15px;font-weight:700;text-decoration:none;transition:opacity .2s}
.dx-sidebar-cta a:hover{opacity:.9}
.dx-mobile-cta{display:none;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #E5E5E5;height:90px;z-index:1000;padding:0 20px}
.dx-mobile-cta-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}
.dx-mobile-cta-left{display:flex;flex-direction:column;gap:4px}
.dx-mobile-cta-label{font-size:11px;color:#6E6E73}
.dx-mobile-cta-logo{height:20px;width:auto}
.dx-mobile-cta-button{background:#0071e3;color:#fff;padding:12px 20px;border-radius:50px;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap;transition:opacity .2s}
.dx-mobile-cta-button:hover{opacity:.9}
@media(max-width:768px){
  .dx-result-page{padding-bottom:100px}
  .dx-container{flex-direction:column;padding:20px}
  .dx-sidebar{display:none}
  .dx-mobile-cta{display:block;transform:translateY(100%);transition:transform 0.4s ease}
  .dx-mobile-cta.is-visible{transform:translateY(0)}
  .dx-hero{padding:32px 24px;margin-bottom:40px}
  .dx-description{font-size:17px;margin-bottom:40px;padding-bottom:40px}
  .dx-section{margin-bottom:40px;padding-bottom:40px}
  .dx-best-infra{padding:28px 20px;border-radius:16px}
  .dx-best-infra .dx-eyebrow,.dx-best-infra-title{margin-left:0}
  .dx-feature-cards{grid-template-columns:1fr}
  .recap-name{font-size:30px}
}

/* ── force left-align for dx result layout ── */
.dx-result-page,
.dx-left-column,
.dx-section,
.dx-description,
.dx-section-body,
.dx-section-title,
.dx-eyebrow,
.dx-list-item {
  text-align: left !important;
}

/* ── Override .hero parent constraint for dx-result-page ── */
/* .hero (max-width:980px) is the direct parent of #step-result */
.hero:has(#step-result .dx-result-page) {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* #step-result: remove any inherited width restriction */
#step-result {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* ── guild-tagline, rarity-badge, why-broker, account-name ── */
.guild-tagline {
  font-size: 14px;
  color: var(--muted-fg);
  text-align: center;
  padding: 16px 20px 0;
  letter-spacing: 0.02em;
}
.rarity-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-top: 10px;
}
.res-why-body {
  font-size: 15px;
  color: #3D3D3F;
  line-height: 1.8;
  margin-bottom: 12px;
}
.dx-sidebar-account-name {
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 8px;
}
.dx-mobile-cta-account {
  font-size: 12px;
  color: #3D3D3F;
  font-weight: 600;
}
