.swd-app {
  --swd-ink: #183128;
  --swd-forest: #174d42;
  --swd-mint: #d9f6ee;
  --swd-bg: #fbfcfa;
  --swd-line: #dfe7e2;
  --swd-muted: #6e7e76;
  --swd-coral: #e85e3f;
  --swd-white: #ffffff;
  box-sizing: border-box;
  color: var(--swd-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
  margin: 32px auto;
  max-width: 760px;
  width: 100%;
}

.swd-app *,
.swd-app *::before,
.swd-app *::after { box-sizing: border-box; }
.swd-app button { appearance: none; border: 0; cursor: pointer; font: inherit; }
.swd-app button:focus-visible { outline: 3px solid #f4ad47; outline-offset: 3px; }
.swd-app h2, .swd-app h3, .swd-app p { margin: 0; }
.swd-app h2, .swd-app h3 { background: none !important; border: 0 !important; box-shadow: none !important; clear: none !important; display: block !important; float: none !important; min-height: 0 !important; padding: 0 !important; text-align: left !important; text-decoration: none !important; width: auto !important; }
.swd-app h2::before, .swd-app h2::after, .swd-app h3::before, .swd-app h3::after { content: none !important; display: none !important; }
.swd-shell { background: var(--swd-bg); border: 1px solid #edf0ee; border-radius: 28px; box-shadow: 0 12px 34px rgba(20, 53, 43, .07); overflow: hidden; padding: 38px; }

.swd-brand { align-items: center; color: var(--swd-forest); display: flex; font-size: 12px; font-weight: 800; gap: 8px; letter-spacing: .14em; }
.swd-brand span { align-items: center; background: var(--swd-forest); border-radius: 50%; color: #fff; display: inline-flex; font-size: 12px; height: 24px; justify-content: center; letter-spacing: 0; width: 24px; }
.swd-intro-title { color: var(--swd-ink); font-size: clamp(30px, 5vw, 40px); font-weight: 800; letter-spacing: -.05em; line-height: 1.2; margin-top: 25px; }
.swd-lead { color: var(--swd-muted); font-size: 16px; line-height: 1.75; margin-top: 12px !important; }

.swd-hero-card { background: var(--swd-forest); border-radius: 24px; color: #fff; margin-top: 30px; padding: 30px; }
.swd-eyebrow, .swd-result-eyebrow { color: #b8e3d6; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.swd-hero-title { font-size: clamp(23px, 4vw, 29px); font-weight: 800; letter-spacing: -.04em; line-height: 1.38; margin-top: 12px; }
.swd-hero-card > p:not(.swd-eyebrow) { color: #d2e8e1; font-size: 14px; line-height: 1.75; margin-top: 14px; }
.swd-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.swd-pills span { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; }

.swd-notice { background: #f0f4f1; border-radius: 16px; color: #4b5d54; margin-top: 16px; padding: 17px 18px; }
.swd-notice strong { display: block; font-size: 13px; font-weight: 800; }
.swd-notice p { color: #6d7b74; font-size: 12px; line-height: 1.7; margin-top: 5px; }
.swd-primary, .swd-next { align-items: center; background: var(--swd-coral); border-radius: 16px; color: #fff; display: flex; font-size: 16px; font-weight: 800; justify-content: center; min-height: 58px; transition: opacity .16s ease, transform .16s ease; width: 100%; }
.swd-primary { gap: 11px; margin-top: 24px; }
.swd-primary:hover, .swd-next:not(:disabled):hover { opacity: .92; transform: translateY(-1px); }
.swd-primary span, .swd-next span { font-size: 19px; line-height: 1; }
.swd-footnote { color: #89958f; font-size: 12px; margin-top: 12px !important; text-align: center; }

.swd-topbar { align-items: center; display: flex; justify-content: space-between; }
.swd-topbar > div { align-items: baseline; display: flex; }
.swd-topbar span { color: var(--swd-forest); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.swd-topbar em { color: #8d9a94; font-size: 12px; font-style: normal; font-weight: 700; margin-left: 5px; }
.swd-topbar small { color: #85928c; font-size: 11px; font-weight: 700; }
.swd-progress { background: #e4eae7; border-radius: 999px; height: 5px; margin-top: 14px; overflow: hidden; }
.swd-progress span { background: var(--swd-forest); border-radius: inherit; display: block; height: 100%; transition: width .22s ease; }
.swd-question-content { min-height: 500px; padding-top: 38px; }
.swd-category { background: var(--swd-mint); border-radius: 999px; color: var(--swd-forest); display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 11px; }
.swd-question-number { color: #96a19c; font-size: 12px; font-weight: 800; letter-spacing: .08em; margin-top: 23px !important; }
.swd-question-title { color: var(--swd-ink); font-size: clamp(25px, 4vw, 32px); font-weight: 800; letter-spacing: -.045em; line-height: 1.35; margin-top: 7px; }
.swd-instruction { color: #75837c; font-size: 13px; margin-top: 7px !important; }
.swd-options { display: grid; gap: 10px; margin-top: 27px; }
.swd-option { align-items: center; background: #fff; border: 1px solid var(--swd-line); border-radius: 15px; color: var(--swd-ink); display: flex; min-height: 60px; padding: 10px 14px; text-align: left; transition: border-color .16s ease, background .16s ease, opacity .16s ease; width: 100%; }
.swd-option:hover { border-color: #8fbfb0; }
.swd-option.is-selected { background: #edf9f5; border-color: var(--swd-forest); border-width: 1.5px; }
.swd-option-number { align-items: center; background: #f1f5f3; border-radius: 10px; color: #718078; display: inline-flex; flex: 0 0 31px; font-size: 11px; font-weight: 800; height: 31px; justify-content: center; }
.swd-option.is-selected .swd-option-number { background: var(--swd-forest); color: #fff; }
.swd-option-label { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.45; margin: 0 12px; }
.swd-radio { border: 1.5px solid #b6c1bc; border-radius: 50%; display: inline-flex; flex: 0 0 20px; height: 20px; padding: 3px; width: 20px; }
.swd-radio i { background: transparent; border-radius: inherit; display: block; height: 100%; width: 100%; }
.swd-option.is-selected .swd-radio { border-color: var(--swd-forest); }
.swd-option.is-selected .swd-radio i { background: var(--swd-forest); }
.swd-actions { align-items: center; display: flex; gap: 14px; justify-content: space-between; margin-top: 18px; }
.swd-back { background: transparent; border-radius: 13px; color: #476157; font-size: 14px; font-weight: 800; min-height: 54px; padding: 0 14px; }
.swd-back:disabled { color: #aeb8b3; cursor: not-allowed; }
.swd-next { background: var(--swd-forest); font-size: 15px; gap: 8px; min-height: 54px; padding: 0 23px; width: auto; }
.swd-next:disabled { background: #e1e8e4; color: #9aa5a0; cursor: not-allowed; }
.swd-next:disabled:hover { transform: none; }

.swd-result-title { color: var(--swd-ink); font-size: clamp(30px, 5vw, 39px); font-weight: 800; letter-spacing: -.05em; line-height: 1.2; margin-top: 8px; }
.swd-result-eyebrow { color: var(--swd-forest); }
.swd-result-lead { color: #6a7971; font-size: 14px; margin-top: 6px !important; }
.swd-result-card { background: var(--swd-forest); border-radius: 25px; color: #fff; margin-top: 25px; padding: 28px; }
.swd-result-card > p:first-child { color: #b8e3d6; font-size: 12px; font-weight: 800; }
.swd-amount { align-items: flex-start; display: flex; font-size: clamp(35px, 7vw, 48px); font-weight: 900; letter-spacing: -.065em; line-height: 1.2; margin-top: 8px; }
.swd-amount span { font-size: .52em; letter-spacing: 0; margin-right: 4px; padding-top: .15em; }
.swd-result-card > small { color: #b8e3d6; display: block; font-size: 11px; margin-top: 4px; }
.swd-result-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.17); margin: 19px 0; }
.swd-archetype { font-size: 20px; font-weight: 800; }
.swd-archetype + p { color: #d5e8e1; font-size: 13px; line-height: 1.75; margin-top: 8px !important; }
.swd-section-heading { align-items: baseline; display: flex; justify-content: space-between; margin-top: 27px; }
.swd-section-title { font-size: 18px; font-weight: 800; }
.swd-section-heading span { color: #89958f; font-size: 11px; font-weight: 700; }
.swd-category-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-top: 14px; }
.swd-category-card { border-radius: 17px; padding: 15px; }
.swd-category-card strong { color: #3c5148; display: block; font-size: 12px; font-weight: 800; }
.swd-category-card b { color: #1e3d33; display: block; font-size: 27px; font-weight: 900; letter-spacing: -.05em; line-height: 1.25; margin-top: 8px; }
.swd-category-card b small { font-size: 13px; margin-left: 1px; }
.swd-mini-track { background: rgba(28,75,60,.14); border-radius: 99px; display: block; height: 4px; margin-top: 9px; overflow: hidden; }
.swd-mini-track i { background: var(--swd-forest); border-radius: inherit; display: block; height: 100%; }
.swd-secondary { background: #fff; border: 1.5px solid var(--swd-forest) !important; border-radius: 16px; color: var(--swd-forest); font-size: 15px; font-weight: 800; margin-top: 23px; min-height: 55px; width: 100%; }
.swd-secondary:hover { background: #f4faf7; }
.swd-restart { background: transparent; color: #708077; display: block; font-size: 13px; font-weight: 700; margin: 8px auto 0; min-height: 42px; text-decoration: underline; }

@media (max-width: 560px) {
  .swd-app { margin: 20px auto; }
  .swd-shell { border-radius: 20px; padding: 24px 18px; }
  .swd-hero-card, .swd-result-card { border-radius: 20px; padding: 23px 20px; }
  .swd-question-content { min-height: 0; padding-top: 29px; }
  .swd-options { margin-top: 22px; }
  .swd-option { min-height: 58px; padding: 9px 12px; }
  .swd-option-label { font-size: 13px; margin-left: 10px; }
  .swd-actions { margin-top: 14px; }
  .swd-category-grid { gap: 8px; }
  .swd-category-card { padding: 13px; }
}

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