/*
Theme Name: 沖縄リゾ婚スタイル診断
Theme URI: https://okinawa-wedding-style.com
Description: 沖縄リゾ婚スタイル診断 — 診断エンジンテーマ
Author: Viralit
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: okinawa-wedding-style
*/

: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}
.site-logo{display:inline-flex;align-items:center;gap:clamp(6px,1.2vw,12px);text-decoration:none;color:inherit;flex-shrink:0}
.site-logo__crown{height:clamp(24px,6vw,34px);width:auto;display:block;flex-shrink:0}
.site-logo__name{font-weight:700;font-size:clamp(16px,4.4vw,22px);color:#1d1d1f;line-height:1;white-space:nowrap}
.header-nav{display:flex;align-items:center;gap:32px}
.nav-toggle{display:none}
.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:clamp(48px,5vw,68px) 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:40px 40px;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:clamp(21px,5vw,24px);font-weight:700;letter-spacing:-0.01em;text-align:left;margin-bottom:24px;line-height:1.5}
.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{display:block;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;text-decoration:none;color:inherit}
.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;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.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}
a.bc{display:block;text-decoration:none;color:inherit}
.bc.xm{background:linear-gradient(135deg,#fff 0%,#fff5f5 100%);border-color:rgba(226,35,26,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.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.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.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;font-size:12px;color:var(--muted-fg);text-align:center}
/* ── footer accordion (SP only) ── */
.footer-acc-toggle{font-family:inherit;background:transparent;border:0;margin:0;width:100%;display:flex;align-items:center;justify-content:space-between;cursor:default;-webkit-appearance:none;appearance:none}
.footer-acc-chevron{display:none;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-3px;opacity:.5;flex:none;transition:transform .28s ease,margin-top .28s ease}
.footer-acc-panel{overflow:hidden}

@media(max-width:768px){
  .site-header{padding:0 20px;position:relative}
  .header-nav{gap:16px}
  /* ── hamburger nav ── */
  .site-nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;background:#000;padding:24px 24px 32px;border-top:none;box-shadow:0 8px 24px rgba(0,0,0,.18);z-index:200}
  .site-nav.is-open{display:flex}
  .site-nav .nav-link,.site-nav .btn-start{color:#fff;width:100%;padding:16px 0;font-size:20px;font-weight:600;text-decoration:none;text-align:left;transition:color .15s ease,opacity .15s ease}
  .site-nav .nav-link:active,.site-nav .btn-start:active{color:#86868b}
  .site-nav .nav-link:hover,.site-nav .btn-start:hover{color:#d2d2d7}
  .site-nav .btn-start{background:#fff;color:#000;border-radius:980px;padding:14px 0;text-align:center;font-weight:700;margin-top:12px}
  .site-nav .btn-start:active{opacity:.7;color:#000}
  .nav-toggle{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;background:none;border:none;cursor:pointer;padding:8px;margin-left:auto;flex-shrink:0}
  .nav-toggle span{display:block;height:2px;background:#1d1d1f;border-radius:2px;transition:.25s}
  .nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .nav-toggle.is-open span:nth-child(2){opacity:0}
  .nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .c-spacer{display:none}
  .c-item{width:calc(75vw - 32px)}
  .c-track{padding-left:24px}
  .footer-top{display:block}
  .footer-brand-block{margin-bottom:8px}
  .footer-col{border-top:1px solid #d2d2d7}
  .footer-acc-toggle{padding:16px 4px;cursor:pointer}
  .footer-acc-chevron{display:block}
  .footer-acc-toggle[aria-expanded="true"] .footer-acc-chevron{transform:rotate(-135deg);margin-top:3px}
  .footer-acc-panel{max-height:0;transition:max-height .3s ease}
  .footer-acc-panel .footer-links{margin:0;padding-bottom:14px}
  .quiz-card{padding:28px 20px}
  .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:28px}

/* INLINE Q1 */
.inline-q1-wrap{margin-top:32px}

/* 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}
.qr-panel .quiz-q{min-height:4.5em}
.qr-panel #quiz-opts{min-height:184px}
@media (min-width:769px){
  .qr-panel .quiz-q{min-height:3em}
  .hero{padding-top:28px}
}

/* 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 20px;background:#fff;border:1.5px solid #e5e5e7;border-radius:12px;font-size:16px;font-weight:600;color:var(--foreground);cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s,color .15s;text-align:center;margin-bottom:8px;box-sizing:border-box;box-shadow:0 1px 4px rgba(0,0,0,0.06)}
.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}
@media (hover:hover){
.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;box-shadow:0 4px 12px rgba(0,113,227,0.15)}
}
.quiz-opt.ab-btn.selected,.quiz-opt.level-btn.selected,.quiz-opt.yes-btn.selected,.quiz-opt.no-btn.selected{background:#0071E3;border-color:#0071E3;color:#fff;box-shadow:0 4px 16px rgba(0,113,227,0.25)}
.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:28px 20px}
  .qr-panel #quiz-opts{min-height:200px}
  .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; }
.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;
}
.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; }
.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; }

/* ── Type page: 3-stage growth path ── */
.dx-type-levels { margin-bottom: 40px; }
.dx-type-levels > .dx-section-title { margin-bottom: 28px; }
.dx-type-stages { margin-bottom: 0; }
.dx-type-stage { position:relative; margin-left:0; padding:0 0 4px 0; margin-bottom:8px; }
.dx-type-stage-badge { display:inline-block; font-size:12px; font-weight:700; letter-spacing:.1em; padding:5px 14px; border-radius:50px; margin-bottom:10px; }
.dx-type-stage--beginner .dx-type-stage-badge { background:#dbeafe; color:#1d4ed8; }
.dx-type-stage--mid .dx-type-stage-badge { background:#ede9fe; color:#6d28d9; }
.dx-type-stage--pro .dx-type-stage-badge { background:#fef3c7; color:#b45309; }
.dx-type-stage-quest-label { font-size:clamp(20px,3vw,26px); font-weight:700; color:#1d1d1f; letter-spacing:-.01em; line-height:1.35; margin:0 0 14px; }
.dx-type-stage-card { background:#f5f5f7; border-radius:16px; padding:20px 22px; margin-bottom:8px; }
.dx-type-stage-broker-name { font-size:18px; font-weight:700; color:#1d1d1f; letter-spacing:-.01em; margin:0 0 16px; line-height:1.4; }
.dx-type-stage-why { margin-bottom:16px; padding:16px 18px; }
.dx-type-stage-why .res-section-title { font-size:15px; margin-bottom:8px; }
.dx-type-stage-why .res-why-body { font-size:14px; margin-bottom:10px; }
.dx-type-stage-why .res-list li { font-size:14px; }
.dx-type-stage-cta { display:inline-block; width:100%; max-width:360px; text-align:center; padding:13px 20px; border-radius:50px; font-size:14px; font-weight:700; text-decoration:none; color:#fff; background:linear-gradient(90deg,#4B8BF5 40%,#7753f0 80%,#6b53e3 100%); transition:opacity .2s; margin-bottom:16px; }
.dx-type-stage-cta:hover { opacity:.9; }
.dx-type-stage-cta.dx-cta-button:not(.dx-cta-button--ib) { background:linear-gradient(90deg,#4B8BF5 40%,#7753f0 80%,#6b53e3 100%); }
.dx-type-stage-dual-intro { font-size:16px; font-weight:700; color:#1d1d1f; margin:0 0 6px; }
.dx-type-stage-dual-note { font-size:13px; color:#6e6e73; margin:0 0 18px; }
.dx-type-stage-dual-grid { display:flex; gap:14px; flex-direction:column; }
.dx-type-stage-dual-block { background:#fff; border-radius:12px; padding:16px 18px; }
.dx-type-stage-dual-label { font-size:11px; font-weight:700; letter-spacing:.08em; color:#3d3d3f; margin-bottom:8px; padding:3px 10px; background:#f5f5f7; border-radius:50px; display:inline-block; }
.dx-type-stage-dual-broker { font-size:16px; font-weight:700; color:#1d1d1f; margin:8px 0 12px; }
@media (min-width:768px) { .dx-type-stage-dual-grid { flex-direction:row; } .dx-type-stage-dual-block { flex:1; } }
.dx-type-stage-next { margin-top:4px; padding-top:16px; border-top:1px solid #e5e5e7; }
.dx-type-stage-next-label { font-size:13px; font-weight:700; color:#3d3d3f; margin:0 0 10px; line-height:1.6; }
.dx-type-stage-next .quest-final-msg { font-size:13px; margin:0; }
.dx-type-stage-next .step-up-broker { padding:12px 14px; margin-bottom:0; }
.dx-type-stage-connector { display:flex; flex-direction:column; align-items:center; margin:4px 0 16px 16px; color:#6e6e73; }
.dx-type-stage-arrow { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:#f5f5f7; font-size:12px; font-weight:700; color:#1d1d1f; }

/* ── Apple Spec Layout — レベル別おすすめ口座 ── */
.dx-spec-stages { border-top:1px solid #d2d2d7; }
.dx-spec-row { display:flex; gap:40px; padding:44px 0; border-bottom:1px solid #d2d2d7; }
.dx-spec-label { flex:0 0 22%; padding-top:2px; }
.dx-spec-stage-name { display:block; font-size:26px; font-weight:700; color:#1d1d1f; letter-spacing:-.01em; line-height:1.25; }
.dx-spec-quest-name { display:block; font-size:19px; font-weight:600; color:#86868b; margin-top:8px; line-height:1.5; }
.dx-spec-content { flex:1; min-width:0; }
.dx-spec-broker-name { font-size:20px; font-weight:700; color:#1d1d1f; letter-spacing:-.01em; margin:0 0 14px; line-height:1.3; }
.dx-spec-why-body { font-size:15px; color:#3d3d3f; line-height:1.75; margin-bottom:14px; }
.dx-spec-points { list-style:none; padding:0; margin:0 0 22px; }
.dx-spec-points li { font-size:14px; color:#3d3d3f; line-height:1.55; }
.dx-spec-point--iconic { display:flex; align-items:flex-start; gap:10px; padding:5px 0; }
.dx-spec-point--iconic .dx-list-icon { margin-top:.12em; }
.dx-spec-point-text { flex:1; min-width:0; }
.dx-spec-cta { display:inline-block; padding:12px 28px; border-radius:50px; font-size:14px; font-weight:700; text-decoration:none; color:#fff; background:linear-gradient(90deg,#4B8BF5 40%,#7753f0 80%,#6b53e3 100%); transition:opacity .2s; }
.dx-spec-cta:hover { opacity:.9; }
.dx-spec-cta.dx-cta-button:not(.dx-cta-button--ib) { background:linear-gradient(90deg,#4B8BF5 40%,#7753f0 80%,#6b53e3 100%); }
.dx-spec-next { margin-top:22px; padding-top:18px; border-top:1px solid #e8e8ed; }
.dx-spec-next-label { font-size:12px; color:#86868b; margin:0 0 10px; line-height:1.6; }
.dx-spec-next-label--iconic { display:flex; align-items:flex-start; gap:12px; }
.dx-spec-next-label--iconic .dx-list-icon { margin-top:.12em; }
.dx-spec-next-text { flex:1; min-width:0; }
.dx-spec-next .step-up-broker { background:none; border-radius:0; padding:0; margin-bottom:0; }
.dx-spec-next .step-up-broker-name { font-size:14px; }
.dx-spec-next .step-up-cta { font-size:13px; }
.dx-spec-next .quest-final-msg,.dx-spec-next .quest-hidden-job { font-size:13px; color:#6e6e73; margin:0; }
.dx-spec-broker-block + .dx-spec-broker-block { margin-top:28px; padding-top:28px; border-top:1px solid #e8e8ed; }
.dx-spec-broker-origin { font-size:11px; font-weight:700; letter-spacing:.08em; color:#86868b; margin-bottom:10px; }

/* ── Broker — こんな人におすすめ（タイプページ .dx-spec-stage-name とは別） ── */
.dx-broker-best-for .dx-spec-label { text-align:center; }
.dx-broker-best-for .dx-broker-best-for-name { display:block; font-size:20px; font-weight:700; color:#1d1d1f; letter-spacing:-.01em; line-height:1.35; }
.dx-broker-best-for .dx-broker-best-for-name--iconic { display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; }
.dx-broker-best-for .dx-broker-best-for-name--iconic .dx-list-icon { width:32px; height:32px; margin-top:0; }
.dx-broker-best-for .dx-broker-best-for-text { flex:none; width:100%; text-align:center; }

@media (max-width:767px) { .dx-spec-row { flex-direction:column; gap:10px; padding:28px 0; } .dx-spec-broker-name { font-size:17px; } .dx-spec-cta { display:block; text-align:center; padding:13px 20px; } .dx-broker-best-for .dx-broker-best-for-name { font-size:19px; } }

.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-branch{font-size:14px;font-weight:700;color:rgba(255,255,255,.92);letter-spacing:.08em;text-shadow:0 1px 4px rgba(0,0,0,.3);margin-bottom:16px}
.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-broker-lead{font-size:18px;font-weight:400;line-height:1.9;color:#3a3a3c;margin-bottom:56px;padding-bottom:56px;border-bottom:1px solid #e0e0e0}
.dx-broker-lead p{margin-bottom:1.4em}
.dx-broker-lead p:last-child{margin-bottom:0}
.dx-acct-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-bottom:24px}
.dx-acct-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.6}
.dx-acct-table th{background:#f5f5f7;color:#3a3a3c;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:10px 14px;border-bottom:1px solid #d0d0d0;white-space:nowrap;text-align:left}
.dx-acct-table td{padding:12px 14px;border-bottom:1px solid #e8e8ed;color:#1d1d1f;vertical-align:top}
.dx-acct-table tbody tr:last-child td{border-bottom:none}
.dx-acct-table tbody tr:hover td{background:#fafafa}
.dx-acct-note{font-size:14px;color:#6e6e73;line-height:1.8;margin-top:16px;padding:12px 16px;background:#f5f5f7;border-radius:10px}
.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,30px);font-weight:700;line-height:1.15;letter-spacing:-.03em;color:#1d1d1f;margin-bottom:24px}
@media (min-width:769px){.dx-section-title{font-size:clamp(28px,3vw,30px)}}
#sec-conclusion .dx-section-title{font-size:clamp(28px,4vw,40px)}
.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;margin-bottom:16px}
.dx-list-item-strength{color:#1d1d1f}
.dx-list-item-caution{color:#6E6E73}
.dx-list-item--iconic{display:flex;align-items:flex-start;gap:12px}
.dx-list-icon{flex-shrink:0;width:19px;height:19px;color:#5d636d;margin-top:.45em;line-height:0}
.dx-list-icon svg{display:block;width:100%;height:100%}
.dx-list-text{flex:1;min-width:0}
.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:center;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-cta-button--ib{background:linear-gradient(90deg,#4B8BF5 40%,#7753f0 80%,#6b53e3 100%)}
.dx-cta-button--lg{font-size:clamp(20px,4vw,28px)}
.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:linear-gradient(90deg,#4B8BF5 40%,#7753f0 80%,#6b53e3 100%);color:#fff;text-align:center;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;max-width:120px;object-fit:contain;align-self:flex-start}
.dx-mobile-cta-button{background:linear-gradient(90deg,#4B8BF5 40%,#7753f0 80%,#6b53e3 100%);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}
  .dx-type-stage{margin-left:0;padding-left:16px}
  .dx-type-stage-connector{margin-left:6px;margin-bottom:12px}
  .dx-type-stage-quest-label{font-size:clamp(18px,4.5vw,22px)}
  .dx-type-stage-card{padding:16px 18px;border-radius:14px}
  .dx-type-stage-broker-name{font-size:16px}
  .dx-type-stage-cta{max-width:none;width:100%}
  .step-up-broker{flex-direction:column;align-items:flex-start;gap:10px}
  .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;
}

/* ─────────────────────────────────────────────
   QUIZ MODAL（方針B: クイズをモーダル内で実行）
   ───────────────────────────────────────────── */
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.quiz-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.quiz-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.quiz-modal-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 620px);
  max-width: 620px;
  min-width: 0;
  max-height: calc(100dvh - 48px);
  background: var(--background);
  border-radius: 40px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(24px);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}
.quiz-modal.is-open .quiz-modal-frame {
  transform: translateY(0);
}
.quiz-modal-header {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  padding: 16px 16px 0;
}
.quiz-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.2s;
  flex-shrink: 0;
}
.quiz-modal-close:hover { background: #d0d0d5; }
.quiz-modal-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 24px 32px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.quiz-modal .quiz-step-wrap,
.quiz-modal .qr-panel.quiz-card,
.quiz-modal .quiz-q,
.quiz-modal #quiz-opts,
.quiz-modal .quiz-yesno-opts {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.quiz-modal .qr-panel.quiz-card {
  margin: 0;
}
.quiz-modal .quiz-opt.ab-btn,
.quiz-modal .quiz-opt.level-btn {
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.quiz-modal .quiz-opt.ab-btn:focus,
.quiz-modal .quiz-opt.level-btn:focus {
  outline: none;
}
.quiz-modal .quiz-opt.ab-btn:focus-visible,
.quiz-modal .quiz-opt.level-btn:focus-visible {
  outline: 2px solid #0071E3;
  outline-offset: 2px;
}
body.modal-open { overflow: hidden; }


@media (max-width: 768px) {
  .quiz-modal { align-items: flex-end; padding: 0; }
  .quiz-modal-frame {
    width: 100%;
    max-width: 100%;
    max-height: 95dvh;
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
  }
  .quiz-modal.is-open .quiz-modal-frame { transform: translateY(0); }
  .quiz-modal-scroll { padding: 8px 16px 40px; }
}

/* ── ブローカー詳細：スコアリスト ── */
.dx-score-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.dx-score-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dx-score-label { width: 5em; flex-shrink: 0; font-weight: 600; color: var(--muted-fg); }
.dx-score-track { flex: 1; height: 6px; background: var(--muted); border-radius: 3px; overflow: hidden; }
.dx-score-fill { display: block; height: 100%; border-radius: 3px; }
.dx-score-val { width: 4em; text-align: right; flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--foreground); }

/* ── ブローカー詳細：提携バナー ── */
.dx-broker-banner { text-align: center; margin: -88px 0 8px; overflow: hidden; }
.dx-banner-pc { max-width: 100%; overflow: hidden; }
.dx-banner-pc img { max-width: 100%; height: auto; display: inline-block; }
.dx-banner-sp { display: none; }
@media (max-width: 768px) {
  .dx-banner-pc { display: none; }
  .dx-banner-sp { display: block; }
  .dx-banner-sp img { width: 100%; height: auto; }
  .dx-broker-banner { margin-top: -64px; padding: 0 20px; }
}

/* ── タイプページ：レベル別CTAバナー ── */
.dx-type-banner { margin-top: 16px; line-height: 0; text-align: center; overflow: hidden; }
.dx-type-banner img { max-width: 100%; height: auto; display: inline-block; }

/* ── リスク開示帯 ── */
.site-risk-disclosure{max-width:880px;margin:0 auto;padding:20px;border-top:1px solid #d2d2d7}
.site-risk-disclosure p{margin:0;font-size:clamp(11px,2.4vw,12px);line-height:1.7;color:#6e6e73;text-align:center}
.site-risk-disclosure a{color:#6e6e73;text-decoration:underline}

/* ── 固定ページ (page.php) ── */
.dx-page{max-width:760px;margin:0 auto;padding:clamp(48px,8vw,96px) 20px}
.dx-page-title{font-size:clamp(26px,4vw,32px);font-weight:600;letter-spacing:.02em;margin:0 0 clamp(24px,4vw,40px);color:#1d1d1f}
.dx-page-content h2{font-size:clamp(18px,3vw,21px);font-weight:600;margin:clamp(32px,5vw,48px) 0 12px;color:#1d1d1f}
.dx-page-content p{font-size:clamp(14px,2.6vw,16px);line-height:1.9;color:#3a3a3c;margin:0 0 16px}
.dx-page-content small{color:#86868b;font-size:13px}

/* =========================================
   お問い合わせページ（page-contact.php）
   ========================================= */

.fx-hidden{display:none !important;}

.fx-contact{padding:clamp(48px,8vw,96px) 20px;}
.fx-contact-inner{max-width:640px;margin:0 auto;}

.fx-contact-head{text-align:center;margin-bottom:clamp(32px,5vw,48px);}
.fx-contact-eyebrow{display:inline-block;font-size:12px;letter-spacing:.18em;color:#86868b;margin-bottom:12px;}
.fx-contact-title{font-size:clamp(26px,4vw,32px);font-weight:600;color:#1d1d1f;margin:0 0 16px;}
.fx-contact-lead{font-size:clamp(14px,2.6vw,15px);line-height:1.9;color:#6e6e73;margin:0;}

.fx-form{display:flex;flex-direction:column;gap:24px;}
.fx-field{display:flex;flex-direction:column;}
.fx-field label{font-size:14px;color:#1d1d1f;margin-bottom:8px;}
.fx-req{font-size:11px;color:#bf4800;margin-left:6px;}
.fx-field input,
.fx-field select,
.fx-field textarea{
  width:100%;
  font-size:16px;
  color:#1d1d1f;
  padding:12px 14px;
  border:1px solid #d2d2d7;
  border-radius:10px;
  background:#fff;
  box-sizing:border-box;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.fx-field input:focus,
.fx-field select:focus,
.fx-field textarea:focus{
  outline:none;
  border-color:#0071e3;
  box-shadow:0 0 0 3px rgba(0,113,227,.15);
}
.fx-field textarea{resize:vertical;line-height:1.7;}
.fx-note{font-size:12px;color:#86868b;margin:8px 0 0;}
.fx-note a{color:#0071e3;text-decoration:underline;}

.fx-submit{
  width:100%;
  font-size:16px;
  font-weight:600;
  color:#fff;
  background:#0071e3;
  border:none;
  border-radius:980px;
  padding:15px 24px;
  text-align:center;
  cursor:pointer;
  transition:background .15s ease, opacity .15s ease;
}
.fx-submit:hover{background:#0077ed;}
.fx-submit:disabled{opacity:.55;cursor:default;}

.fx-result{margin-top:24px;padding:18px 20px;border-radius:12px;}
.fx-result-title{margin:0 0 4px;font-size:15px;font-weight:600;}
.fx-result-desc{margin:0;font-size:13px;line-height:1.7;}
.fx-result--ok{background:#f1f8f1;border:1px solid #cfe6cf;}
.fx-result--ok .fx-result-title{color:#1f7a33;}
.fx-result--ok .fx-result-desc{color:#3a6b44;}
.fx-result--ng{background:#fcf2f2;border:1px solid #ecd2d2;}
.fx-result--ng .fx-result-title{color:#b3261e;}
.fx-result--ng .fx-result-desc{color:#7a3a36;}

.fx-faq{margin-top:clamp(48px,7vw,72px);}
.fx-faq-title{font-size:clamp(18px,3vw,21px);font-weight:600;color:#1d1d1f;margin:0 0 8px;}
.fx-faq-item{border-bottom:1px solid #d2d2d7;}
.fx-faq-item summary{
  list-style:none;cursor:pointer;
  padding:18px 0;font-size:15px;color:#1d1d1f;
  display:flex;justify-content:space-between;align-items:center;gap:16px;
}
.fx-faq-item summary::-webkit-details-marker{display:none;}
.fx-faq-item summary::after{content:"";width:8px;height:8px;border-right:1.5px solid #86868b;border-bottom:1.5px solid #86868b;transform:rotate(45deg);transition:transform .2s ease;flex-shrink:0;}
.fx-faq-item[open] summary::after{transform:rotate(-135deg);}
.fx-faq-body{padding:0 0 18px;font-size:14px;line-height:1.9;color:#6e6e73;}

.fx-contact-notes{margin-top:clamp(40px,6vw,56px);padding-top:24px;border-top:1px solid #d2d2d7;}
.fx-contact-notes p{margin:0 0 8px;font-size:12px;line-height:1.8;color:#86868b;}
.fx-contact-notes p:last-child{margin-bottom:0;}

/* 固定ページ本文のリスト（disclaimer / privacy-policy 等） */
.dx-page-content ul{margin:0 0 16px;padding-left:1.4em;}
.dx-page-content li{font-size:clamp(14px,2.6vw,16px);line-height:1.9;color:#3a3a3c;margin:0 0 6px;}
.dx-page-content li::marker{color:#86868b;}

/* ── Wedding/新スキーマ オプション要素 ────────────────────────────────────── */

/* hero 追加要素 */
.dx-hero-intro{margin:0 0 4px;font-size:14px;opacity:.8;font-weight:500;}
.dx-hero-copy{margin:6px 0 0;font-size:16px;line-height:1.6;font-weight:500;}

/* キャッチコピー */
.wdg-catch{font-size:clamp(18px,3.5vw,22px);font-weight:700;color:#1d1d1f;margin:clamp(16px,3vw,24px) 0;line-height:1.4;border-left:4px solid;border-image:linear-gradient(135deg,var(--accent-from,#0ea5c9),var(--accent-to,#2563eb)) 1;padding-left:16px;}

/* 適性スコア */
.wdg-aptitude-score{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#e0f2fe,#dbeafe);border-radius:40px;padding:8px 20px;margin:12px 0 16px;font-weight:700;}
.wdg-aptitude-label{font-size:13px;color:#0369a1;}
.wdg-aptitude-star{color:#f59e0b;font-size:16px;}
.wdg-aptitude-pct{font-size:20px;color:#1d4ed8;}

/* おすすめエリア */
.wdg-area-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:16px;}
.wdg-area-card{background:#f7fafc;border-radius:12px;padding:20px;border:1px solid #e2e8f0;}
.wdg-area-name{font-size:17px;font-weight:700;color:#1d1d1f;margin-bottom:8px;}
.wdg-area-reason{font-size:14px;line-height:1.7;color:#3a3a3c;margin:0 0 10px;}
.wdg-area-for{font-size:13px;color:#0369a1;font-weight:500;margin:0;}

/* ネクストステップ */
.wdg-next-lead{font-size:15px;line-height:1.8;color:#3a3a3c;margin:0 0 12px;border-left:3px solid #d2d2d7;padding-left:12px;}
.wdg-next-phase{font-size:15px;line-height:1.8;color:#1d1d1f;font-weight:500;margin:0;background:#f0fdf4;border-radius:8px;padding:12px 16px;}

/* FAQ */
.wdg-faq-list{display:flex;flex-direction:column;gap:0;}
.wdg-faq-item{border-bottom:1px solid #e2e8f0;padding:16px 0;}
.wdg-faq-item:last-child{border-bottom:none;}
.wdg-faq-q{font-size:15px;font-weight:600;color:#1d1d1f;margin-bottom:8px;padding-left:20px;position:relative;}
.wdg-faq-q::before{content:"Q";position:absolute;left:0;color:#0ea5c9;font-weight:800;font-size:13px;}
.wdg-faq-a{font-size:14px;line-height:1.8;color:#3a3a3c;padding-left:20px;position:relative;}
.wdg-faq-a::before{content:"A";position:absolute;left:0;color:#2563eb;font-weight:800;font-size:13px;}

/* ふたりの結果をくらべる */
.wdg-compare-cards{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:20px 0 16px;}
.wdg-compare-card{background:#f7fafc;border-radius:12px;padding:20px 16px;text-align:center;border:2px solid #e2e8f0;}
.wdg-compare-card--self{border-color:#0ea5c9;}
.wdg-compare-card--partner{border-color:#2563eb;}
.wdg-compare-who{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#86868b;margin-bottom:8px;}
.wdg-compare-type-name{font-size:16px;font-weight:700;color:#1d1d1f;margin-bottom:6px;}
.wdg-compare-catch{font-size:13px;color:#0369a1;font-weight:600;margin-bottom:6px;}
.wdg-compare-copy{font-size:12px;line-height:1.6;color:#6e6e73;margin:0;}
.wdg-compare-divider{font-size:22px;font-weight:800;color:#d2d2d7;text-align:center;}
.wdg-compare-hint{font-size:13px;color:#86868b;text-align:center;margin:0;}
@media(max-width:480px){
  .wdg-compare-cards{grid-template-columns:1fr;grid-template-rows:auto auto auto;}
  .wdg-compare-divider{transform:rotate(90deg);padding:4px 0;}
}

/* パートナー招待 */
.wdg-share-invite-desc{font-size:15px;line-height:1.7;color:#3a3a3c;margin:0 0 16px;}

/* この診断結果について */
.wdg-about-result{background:#f7fafc;border-radius:12px;padding:clamp(16px,3vw,24px);margin-top:clamp(32px,5vw,48px);}
.wdg-about-result-title{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#86868b;margin-bottom:10px;}
.wdg-about-result-body{font-size:14px;line-height:1.9;color:#6e6e73;margin:0;}

/* LINE共有ボタン */
.share-btn-line{background:#06c755;color:#fff;border:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border-radius:40px;font-size:14px;font-weight:600;text-decoration:none;}
.share-btn-line:hover{background:#05b04c;opacity:.9;}

/* パートナー招待コピーボタン */
.share-btn-compare{background:#fff;color:#0369a1;border:1.5px solid #0369a1;cursor:pointer;padding:10px 20px;border-radius:40px;font-size:14px;font-weight:600;}
.share-btn-compare:hover{background:#e0f2fe;}
