.jsd-app {
  --jsd-ink: #102a43;
  --jsd-muted: #526b7d;
  --jsd-blue: #0878d1;
  --jsd-blue-deep: #07599f;
  --jsd-blue-soft: #e8f5ff;
  --jsd-sky: #bfe7ff;
  --jsd-line: #d7e7f2;
  --jsd-white: #fff;
  --jsd-shadow: 0 24px 70px rgba(20, 86, 132, .16);
  color: var(--jsd-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  margin-inline: auto;
  max-width: 1180px;
  padding: 14px;
}

.jsd-app *, .jsd-app *::before, .jsd-app *::after { box-sizing: border-box; }
.jsd-app [hidden] { display: none !important; }
.jsd-app button, .jsd-app select { font: inherit; }
.jsd-app button { cursor: pointer; }

.jsd-disclosure {
  color: #536c7f;
  font-size: 12px;
  margin: 0 0 10px;
  text-align: right;
}
.jsd-disclosure strong {
  background: #eff5f9;
  border-radius: 4px;
  color: #40586a;
  display: inline-block;
  font-size: 10px;
  letter-spacing: .08em;
  margin-right: 5px;
  padding: 1px 6px;
}

.jsd-hero {
  align-items: center;
  background: linear-gradient(135deg, #f8fdff 0%, #e4f5ff 44%, #b9e4ff 100%);
  border: 1px solid rgba(85, 165, 216, .22);
  border-radius: 30px;
  box-shadow: var(--jsd-shadow);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 600px;
  overflow: hidden;
  padding: 68px 0 58px 66px;
  position: relative;
}
.jsd-hero::after {
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.8), rgba(255,255,255,.1));
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 70%;
}
.jsd-sky-orb { border-radius: 50%; filter: blur(1px); pointer-events: none; position: absolute; }
.jsd-sky-orb--one { background: rgba(255,255,255,.7); height: 200px; right: 22%; top: -80px; width: 200px; }
.jsd-sky-orb--two { background: rgba(39,157,232,.12); bottom: -120px; height: 330px; left: 33%; width: 330px; }
.jsd-hero__copy { max-width: 620px; padding-right: 28px; position: relative; z-index: 3; }
.jsd-eyebrow {
  color: var(--jsd-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  margin: 0 0 12px;
}
.jsd-hero h1 {
  color: var(--jsd-ink);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.28;
  margin: 0;
}
.jsd-hero h1 span { color: var(--jsd-blue); }
.jsd-hero__lead { color: #415c70; font-size: 17px; margin: 24px 0 18px; max-width: 610px; }
.jsd-hero__points { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 28px; padding: 0; }
.jsd-hero__points li { color: #34566e; font-size: 13px; font-weight: 700; }
.jsd-hero__points li::before { color: #0ca27d; content: "✓"; margin-right: 5px; }
.jsd-primary-button {
  align-items: center;
  background: linear-gradient(135deg, #0784dc, #0564b7);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 15px 35px rgba(5, 100, 183, .28);
  color: #fff;
  display: inline-flex;
  font-size: 17px;
  font-weight: 800;
  gap: 28px;
  justify-content: center;
  min-height: 62px;
  padding: 0 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.jsd-primary-button:hover { box-shadow: 0 20px 42px rgba(5, 100, 183, .34); transform: translateY(-2px); }
.jsd-primary-button:focus-visible, .jsd-option:focus-visible, .jsd-next-button:focus-visible, .jsd-card__cta:focus-visible, .jsd-secondary-button:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.jsd-microcopy { color: #678094; font-size: 11px; margin: 8px 0 0 24px; }
.jsd-city { align-self: end; margin-left: -60px; position: relative; transform: translateY(42px); width: 112%; z-index: 2; }
.jsd-city svg { display: block; height: auto; width: 100%; }

.jsd-quiz, .jsd-results {
  background: #fff;
  border: 1px solid var(--jsd-line);
  border-radius: 28px;
  box-shadow: var(--jsd-shadow);
  margin: 36px auto 70px;
  max-width: 920px;
  padding: 30px clamp(20px, 5vw, 64px) 54px;
  scroll-margin-top: 24px;
}
.jsd-quiz__top { align-items: center; display: flex; justify-content: space-between; }
.jsd-back { background: none; border: 0; color: #537085; font-size: 13px; font-weight: 700; padding: 7px 0; }
.jsd-back:disabled { cursor: default; opacity: 0; }
.jsd-progress-label { color: #527087; font-size: 12px; font-weight: 800; letter-spacing: .1em; margin: 0; }
.jsd-progress { background: #e8f2f8; border-radius: 999px; height: 7px; margin: 11px 0 44px; overflow: hidden; }
.jsd-progress span { background: linear-gradient(90deg, #11a2e6, #0870c3); border-radius: inherit; display: block; height: 100%; transition: width .3s ease; width: 0; }
.jsd-question__heading { margin: 0 auto 28px; max-width: 720px; text-align: center; }
.jsd-question__number { color: var(--jsd-blue); font-size: 11px; font-weight: 900; letter-spacing: .18em; margin: 0 0 8px; }
.jsd-question__heading h2 { color: var(--jsd-ink); font-size: clamp(23px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.45; margin: 0 0 8px; }
.jsd-question__heading > p:last-child { color: var(--jsd-muted); font-size: 13px; margin: 0; }
.jsd-options { display: grid; gap: 11px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jsd-option {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e7f1;
  border-radius: 15px;
  color: #18374e;
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 11px;
  grid-template-columns: 39px 1fr 24px;
  min-height: 66px;
  padding: 10px 14px;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.jsd-option:hover { background: #f7fcff; border-color: #79b8df; transform: translateY(-1px); }
.jsd-option.is-selected { background: var(--jsd-blue-soft); border-color: var(--jsd-blue); box-shadow: inset 0 0 0 1px var(--jsd-blue); }
.jsd-option__icon { align-items: center; background: #eef7fd; border-radius: 10px; color: #177bc1; display: inline-flex; font-size: 13px; font-weight: 900; height: 38px; justify-content: center; width: 38px; }
.jsd-option.is-selected .jsd-option__icon { background: var(--jsd-blue); color: #fff; }
.jsd-option__check { align-items: center; background: var(--jsd-blue); border-radius: 50%; color: #fff; display: flex; font-size: 11px; height: 20px; justify-content: center; opacity: 0; transform: scale(.7); transition: opacity .16s, transform .16s; width: 20px; }
.jsd-option.is-selected .jsd-option__check { opacity: 1; transform: scale(1); }
.jsd-prefecture { margin: 24px auto 0; max-width: 480px; }
.jsd-prefecture label { color: #34566e; display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.jsd-prefecture select { appearance: auto; background: #fff; border: 1px solid #bdd5e5; border-radius: 12px; color: #18374e; min-height: 52px; padding: 0 14px; width: 100%; }
.jsd-next-button {
  background: var(--jsd-blue);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin: 28px auto 0;
  min-height: 54px;
  min-width: 220px;
  padding: 0 26px;
}
.jsd-next-button:disabled { cursor: not-allowed; opacity: .38; }

.jsd-results { max-width: 1040px; padding-bottom: 48px; }
.jsd-result-heading, .jsd-section-heading { margin: 20px auto 34px; max-width: 760px; text-align: center; }
.jsd-result-heading h2, .jsd-section-heading h2 { color: var(--jsd-ink); font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; line-height: 1.35; margin: 0 0 10px; }
.jsd-result-heading > p:last-child, .jsd-section-heading > p:last-child { color: var(--jsd-muted); margin: 0; }
.jsd-result-grid { display: grid; gap: 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jsd-card { background: #fff; border: 1px solid #d8e7f1; border-radius: 20px; display: grid; grid-template-columns: 64px 1fr; overflow: hidden; position: relative; }
.jsd-card:first-child { border-color: #69b4e5; box-shadow: 0 16px 34px rgba(10, 105, 169, .12); }
.jsd-card__rank { align-items: center; background: #edf8ff; color: var(--jsd-blue); display: flex; flex-direction: column; padding-top: 25px; }
.jsd-card:first-child .jsd-card__rank { background: linear-gradient(180deg, #0985d9, #0565b6); color: #fff; }
.jsd-card__rank span { font-size: 25px; font-weight: 900; line-height: 1; }
.jsd-card__rank small { font-size: 7px; font-weight: 900; letter-spacing: .08em; margin-top: 6px; writing-mode: vertical-rl; }
.jsd-card__body { padding: 24px 22px 22px; }
.jsd-card__badge { color: var(--jsd-blue); font-size: 10px; font-weight: 900; letter-spacing: .08em; margin: 0 0 5px; }
.jsd-card h3 { color: #102f46; font-size: 21px; line-height: 1.35; margin: 0 0 10px; }
.jsd-card__feature { color: #506b7e; font-size: 13px; line-height: 1.7; margin: 0 0 14px; }
.jsd-card ul { border-top: 1px solid #e8f0f5; list-style: none; margin: 0 0 16px; padding: 12px 0 0; }
.jsd-card li { color: #31536a; font-size: 12px; margin: 3px 0; padding-left: 18px; position: relative; }
.jsd-card li::before { color: #12a37d; content: "✓"; font-weight: 900; left: 0; position: absolute; }
.jsd-card__cta { align-items: center; background: #0878d1; border-radius: 10px; color: #fff !important; display: flex; font-size: 13px; font-weight: 800; justify-content: space-between; min-height: 45px; padding: 0 15px; text-decoration: none !important; }
.jsd-card__cta:hover { background: #0665b2; color: #fff; }
.jsd-card__cta.is-disabled { background: #dce7ed; color: #728896 !important; cursor: not-allowed; justify-content: center; }
.jsd-result-note { background: #f4f9fc; border-radius: 14px; color: #526c7e; font-size: 12px; margin: 24px 0 18px; padding: 15px 18px; }
.jsd-result-note p { margin: 0; }
.jsd-secondary-button { background: #fff; border: 1px solid #9dbdd1; border-radius: 999px; color: #2e607f; display: block; font-size: 13px; font-weight: 800; margin: 24px auto 0; min-height: 46px; padding: 0 24px; }
.jsd-empty { background: #f3f8fb; border-radius: 15px; color: #4d687a; grid-column: 1 / -1; padding: 30px; text-align: center; }

.jsd-content { margin: 96px auto; max-width: 1040px; }
.jsd-feature-grid { display: grid; gap: 17px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jsd-feature-grid article { background: linear-gradient(180deg, #fff, #f7fbfe); border: 1px solid var(--jsd-line); border-radius: 18px; min-height: 245px; padding: 28px; }
.jsd-feature-grid article > span { color: #84b7d7; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.jsd-feature-grid h3 { color: #183a52; font-size: 18px; margin: 12px 0 8px; }
.jsd-feature-grid p { color: #5a7181; font-size: 13px; margin: 0; }
.jsd-faq { max-width: 900px; }
.jsd-faq details { border-bottom: 1px solid #d7e5ef; padding: 0; }
.jsd-faq summary { color: #1c4058; cursor: pointer; font-size: 15px; font-weight: 800; list-style: none; padding: 20px 46px 20px 4px; position: relative; }
.jsd-faq summary::-webkit-details-marker { display: none; }
.jsd-faq summary::after { color: var(--jsd-blue); content: "+"; font-size: 24px; font-weight: 400; position: absolute; right: 8px; top: 13px; }
.jsd-faq details[open] summary::after { content: "–"; }
.jsd-faq details p { color: #587183; font-size: 13px; margin: 0; padding: 0 46px 22px 4px; }

body.jsd-landing-template {
  background: #f8fcff;
  color: #102a43;
  margin: 0;
}
.jsd-lp-header {
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid #dceaf3;
  position: sticky;
  top: 0;
  z-index: 100;
}
.jsd-lp-header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 66px;
  padding: 0 20px;
}
.jsd-lp-header__brand {
  color: #13364e;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}
.jsd-lp-header__cta {
  background: #0878d1;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 18px;
  text-decoration: none;
}
.jsd-lp-main { min-height: 70vh; padding: 12px 0 1px; }
.jsd-lp-footer { background: #102f46; color: #c9dce8; margin-top: 100px; }
.jsd-lp-footer__inner { font-size: 12px; margin: 0 auto; max-width: 1080px; padding: 52px 22px; }
.jsd-lp-footer__brand { color: #fff; font-size: 16px; font-weight: 900; margin: 0 0 12px; }
.jsd-lp-footer__inner > p { max-width: 760px; }
.jsd-lp-footer__copy { color: #88a9bd; margin-top: 28px; }

.jsd-criteria-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.jsd-criteria-grid article {
  background: #fff;
  border: 1px solid #d9e8f2;
  border-radius: 16px;
  flex: 0 1 calc((100% - 36px) / 4);
  min-height: 184px;
  padding: 22px;
}
.jsd-criteria-grid span { color: #78afd3; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.jsd-criteria-grid h3 { color: #173a52; font-size: 17px; margin: 10px 0 6px; }
.jsd-criteria-grid p { color: #5b7384; font-size: 12px; margin: 0; }

.jsd-compare-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jsd-compare-grid article {
  background: linear-gradient(145deg, #fff, #eef8ff);
  border: 1px solid #cfe3f0;
  border-radius: 20px;
  padding: 30px;
}
.jsd-compare-label { color: #0878d1 !important; font-size: 11px !important; font-weight: 900; letter-spacing: .06em; margin: 0 0 7px !important; }
.jsd-compare-grid h3 { color: #15384f; font-size: 23px; margin: 0 0 10px; }
.jsd-compare-grid p { color: #526f82; font-size: 13px; margin: 0; }
.jsd-seo-copy { background: #f4f9fc; border-radius: 18px; margin-top: 20px; padding: 28px 32px; }
.jsd-seo-copy h3 { color: #15384f; font-size: 19px; margin: 0 0 8px; }
.jsd-seo-copy p { color: #536f81; font-size: 13px; margin: 0; }

.jsd-cta-band {
  align-items: center;
  background: linear-gradient(135deg, #eaf7ff, #bfe7ff);
  border: 1px solid #b9dff5;
  border-radius: 26px;
  display: flex;
  gap: 34px;
  justify-content: space-between;
  margin: 100px auto;
  max-width: 1040px;
  overflow: hidden;
  padding: 42px 46px;
  position: relative;
}
.jsd-cta-band::after { background: rgba(255,255,255,.45); border-radius: 50%; content: ""; height: 240px; position: absolute; right: 15%; top: -150px; width: 240px; }
.jsd-cta-band > div, .jsd-cta-band > button { position: relative; z-index: 1; }
.jsd-cta-band h2 { color: #15384f; font-size: clamp(23px, 3vw, 31px); line-height: 1.45; margin: 0 0 6px; }
.jsd-cta-band > div > p:last-child { color: #527184; font-size: 13px; margin: 0; }
.jsd-cta-band .jsd-primary-button { flex: 0 0 auto; }

@media (max-width: 820px) {
  .jsd-hero { grid-template-columns: 1fr; min-height: auto; padding: 48px 28px 0; }
  .jsd-hero__copy { padding-right: 0; }
  .jsd-city { margin: -10px -35px 0 auto; transform: translateY(40px); width: 105%; }
  .jsd-result-grid, .jsd-feature-grid { grid-template-columns: 1fr; }
  .jsd-feature-grid article { min-height: auto; }
  .jsd-criteria-grid article { flex-basis: calc((100% - 12px) / 2); }
  .jsd-compare-grid { grid-template-columns: 1fr; }
  .jsd-cta-band { align-items: flex-start; flex-direction: column; margin-inline: 14px; }
}

@media (max-width: 560px) {
  .jsd-app { padding: 7px; }
  .jsd-disclosure { font-size: 10px; padding-right: 5px; }
  .jsd-hero { border-radius: 22px; padding: 38px 20px 0; }
  .jsd-hero h1 { font-size: 32px; }
  .jsd-hero__lead { font-size: 14px; margin-top: 18px; }
  .jsd-primary-button { font-size: 15px; gap: 16px; min-height: 57px; padding: 0 23px; width: 100%; }
  .jsd-microcopy { margin-left: 0; text-align: center; }
  .jsd-city { margin-right: -25px; width: 120%; }
  .jsd-quiz, .jsd-results { border-radius: 20px; margin: 22px 0 55px; padding: 20px 15px 34px; }
  .jsd-progress { margin-bottom: 32px; }
  .jsd-options { grid-template-columns: 1fr; }
  .jsd-option { min-height: 62px; }
  .jsd-result-grid { gap: 13px; }
  .jsd-card { grid-template-columns: 50px 1fr; }
  .jsd-card__body { padding: 20px 15px 17px; }
  .jsd-card h3 { font-size: 19px; }
  .jsd-content { margin: 66px auto; }
  .jsd-section-heading { margin-bottom: 24px; }
  .jsd-feature-grid article { padding: 22px; }
  .jsd-lp-header__inner { min-height: 58px; padding: 0 13px; }
  .jsd-lp-header__brand { font-size: 13px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .jsd-lp-header__cta { font-size: 11px; padding: 7px 13px; }
  .jsd-criteria-grid article { flex-basis: 100%; min-height: auto; padding: 20px; }
  .jsd-compare-grid article, .jsd-seo-copy { padding: 22px; }
  .jsd-cta-band { border-radius: 20px; margin: 66px 0; padding: 30px 20px; }
  .jsd-cta-band .jsd-primary-button { width: 100%; }
}

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