.xmrs {
  --xmrs-accent: #13a36d;
  --xmrs-dark: #17332b;
  --xmrs-soft: #eef8f4;
  --xmrs-line: #dce8e3;
  --xmrs-radius: 18px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1040px;
  margin: 32px auto;
  color: #1f2d29;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.65;
}
.xmrs *, .xmrs *::before, .xmrs *::after { box-sizing: inherit; }
.xmrs button, .xmrs input, .xmrs select { font: inherit; }
.xmrs-hero { padding: 42px 28px; text-align: center; color: #fff; border-radius: var(--xmrs-radius) var(--xmrs-radius) 0 0; background: linear-gradient(135deg, var(--xmrs-dark), var(--xmrs-accent)); }
.xmrs-hero h2 { margin: 5px 0 10px; color: inherit; font-size: clamp(26px, 4vw, 42px); line-height: 1.3; }
.xmrs-hero p { margin: 0; }
.xmrs-eyebrow { display: inline-block; padding: 3px 14px; border-radius: 30px; color: var(--xmrs-dark); background: #fff; font-weight: 800; }
.xmrs-progress { display: flex; justify-content: center; gap: 0; padding: 24px 16px; background: #fff; border: 1px solid var(--xmrs-line); border-top: 0; }
.xmrs-progress span { position: relative; display: flex; flex: 1; max-width: 170px; flex-direction: column; align-items: center; color: #789087; text-align: center; }
.xmrs-progress span:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: calc(50% + 21px); width: calc(100% - 42px); height: 2px; background: var(--xmrs-line); }
.xmrs-progress b { z-index: 1; display: grid; width: 36px; height: 36px; place-items: center; border: 2px solid var(--xmrs-line); border-radius: 50%; background: #fff; }
.xmrs-progress em { margin-top: 4px; font-size: 12px; font-style: normal; }
.xmrs-progress .is-active b, .xmrs-progress .is-done b { color: #fff; border-color: var(--xmrs-accent); background: var(--xmrs-accent); }
.xmrs-progress .is-active { color: var(--xmrs-dark); font-weight: 800; }
.xmrs-form { padding: clamp(22px, 5vw, 54px); border: 1px solid var(--xmrs-line); border-top: 0; border-radius: 0 0 var(--xmrs-radius) var(--xmrs-radius); background: #fff; box-shadow: 0 18px 50px rgba(19, 58, 45, .09); }
.xmrs-step[hidden] { display: none !important; }
.xmrs-step { animation: xmrs-in .25s ease-out; }
@keyframes xmrs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.xmrs h3, .xmrs legend { color: var(--xmrs-dark); font-size: clamp(20px, 3vw, 27px); font-weight: 800; line-height: 1.4; }
.xmrs h3 { margin: 0 0 8px; text-align: center; }
.xmrs-help { margin: 0 0 24px; color: #64766f; text-align: center; }
.xmrs-current { display: flex; max-width: 520px; margin: 28px auto 0; align-items: center; gap: 10px; }
.xmrs-current input { min-width: 0; width: 100%; padding: 15px 18px; border: 2px solid var(--xmrs-line); border-radius: 12px; outline: none; color: var(--xmrs-dark); font-size: 28px; font-weight: 800; text-align: right; }
.xmrs-current input:focus { border-color: var(--xmrs-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--xmrs-accent) 18%, transparent); }
.xmrs-current b { flex: 0 0 auto; }
.xmrs-error { min-height: 26px; margin: 6px 0 0; color: #b42318; text-align: center; }
.xmrs fieldset { min-width: 0; margin: 0 0 38px; padding: 0; border: 0; }
.xmrs legend { width: 100%; margin: 0 0 14px; }
.xmrs legend small { font-size: 14px; font-weight: 500; }
.xmrs-grid { display: grid; gap: 12px; }
.xmrs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.xmrs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.xmrs-grid--4 { grid-template-columns: repeat(4, 1fr); }
.xmrs-card { position: relative; display: block; margin: 0; cursor: pointer; }
.xmrs-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.xmrs-card__body { display: flex; min-height: 92px; height: 100%; padding: 15px; flex-direction: column; justify-content: center; border: 2px solid var(--xmrs-line); border-radius: 13px; background: #fff; transition: .18s ease; }
.xmrs-card__body strong { color: var(--xmrs-dark); font-size: 17px; }
.xmrs-card__body small { display: block; color: #667970; }
.xmrs-card__body b { margin-top: 3px; color: var(--xmrs-accent); }
.xmrs-card input:checked + .xmrs-card__body, .xmrs-card input:focus-visible + .xmrs-card__body { border-color: var(--xmrs-accent); background: var(--xmrs-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--xmrs-accent) 14%, transparent); }
.xmrs-card input:checked + .xmrs-card__body::after { content: "✓"; position: absolute; top: 8px; right: 10px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--xmrs-accent); font-weight: 900; }
.xmrs-diagnosis { margin: 4px 0 38px; padding: 24px; border-radius: 16px; background: var(--xmrs-soft); text-align: center; }
.xmrs-diagnosis h3 { font-size: 22px; }
.xmrs-diagnosis > p { margin: 3px 0 18px; }
.xmrs-questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; text-align: left; }
.xmrs-questions label { color: var(--xmrs-dark); font-size: 14px; font-weight: 700; }
.xmrs-questions select { width: 100%; margin-top: 6px; padding: 10px 32px 10px 10px; border: 1px solid #bfd2ca; border-radius: 8px; background: #fff; }
.xmrs-recommendation { min-height: 27px; color: var(--xmrs-accent); font-size: 18px; font-weight: 800; }
.xmrs-plan-card i { display: none; position: absolute; top: -9px; left: 50%; padding: 1px 9px; transform: translateX(-50%); border-radius: 20px; color: #fff; background: #ed7b22; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.xmrs-plan-card.is-recommended i { display: block; }
.xmrs-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.xmrs-options label { display: flex; padding: 13px 14px; align-items: center; gap: 10px; border: 1px solid var(--xmrs-line); border-radius: 10px; cursor: pointer; }
.xmrs-options input { width: 20px; height: 20px; accent-color: var(--xmrs-accent); }
.xmrs-options span { flex: 1; }
.xmrs-options b { color: var(--xmrs-accent); font-size: 14px; }
.xmrs-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.xmrs-button { display: inline-flex; min-width: 190px; padding: 13px 24px; align-items: center; justify-content: center; border: 2px solid var(--xmrs-accent); border-radius: 999px; color: #fff; background: var(--xmrs-accent); box-shadow: 0 8px 20px color-mix(in srgb, var(--xmrs-accent) 24%, transparent); font-weight: 800; text-decoration: none; cursor: pointer; transition: .18s ease; }
.xmrs-button:hover { color: #fff; filter: brightness(.93); transform: translateY(-1px); }
.xmrs-button--sub { color: var(--xmrs-accent); background: #fff; box-shadow: none; }
.xmrs-button--sub:hover { color: var(--xmrs-accent); }
.xmrs-button--diagnose { min-width: 0; padding: 9px 18px; font-size: 14px; }
.xmrs-result { text-align: center; }
.xmrs-result__lead { margin: 0 0 20px; color: var(--xmrs-dark); font-size: 26px; font-weight: 800; }
.xmrs-result__plans { display: flex; align-items: stretch; justify-content: center; gap: 16px; }
.xmrs-result__plans > div { display: flex; min-width: 250px; padding: 20px; flex-direction: column; justify-content: center; border: 1px solid var(--xmrs-line); border-radius: 14px; }
.xmrs-result__plans span { font-weight: 700; }
.xmrs-result__plans strong { color: var(--xmrs-dark); font-size: clamp(30px, 5vw, 46px); line-height: 1.25; }
.xmrs-result__new { border-color: var(--xmrs-accent) !important; background: var(--xmrs-soft); }
.xmrs-result__new strong { color: var(--xmrs-accent); }
.xmrs-result__arrow { align-self: center; color: var(--xmrs-accent); font-size: 30px; }
.xmrs-saving { max-width: 870px; margin: 30px auto; border: 2px solid #75b624; background: #fff; }
.xmrs-saving__monthly { position: relative; display: flex; min-height: 96px; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; padding: 15px 22px; color: #fff; background: #75b624; font-size: clamp(18px, 2.6vw, 26px); line-height: 1.35; }
.xmrs-saving__monthly::after { content: ""; position: absolute; bottom: -16px; left: calc(50% - 16px); border-top: 16px solid #75b624; border-right: 16px solid transparent; border-left: 16px solid transparent; }
.xmrs-saving-monthly { color: #ffdc32; font-size: clamp(38px, 5.3vw, 64px); line-height: 1.05; font-weight: 900; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(73, 114, 15, .45); }
.xmrs-saving-unit { color: #ffdc32; font-weight: 800; }
.xmrs-saving-label { color: #ffdc32; }
.xmrs-saving__two-years { display: flex; min-height: 165px; align-items: center; justify-content: center; gap: 25px; padding: 24px 28px 20px; }
.xmrs-saving-two-years { margin: 0 !important; color: #c7103e; font-size: clamp(18px, 2.5vw, 28px); line-height: 1.3; }
.xmrs-saving-two-years-amount { font-size: clamp(36px, 5vw, 58px); font-weight: 900; font-variant-numeric: tabular-nums; }
.xmrs-saving.is-over { border-color: #b86136; }
.xmrs-saving.is-over .xmrs-saving__monthly { background: #b86136; }
.xmrs-saving.is-over .xmrs-saving__monthly::after { border-top-color: #b86136; }
.xmrs-saving.is-over .xmrs-saving-two-years { color: #a94329; }
.xmrs-saving.is-even { border-color: #708078; }
.xmrs-saving.is-even .xmrs-saving__monthly { background: #708078; }
.xmrs-saving.is-even .xmrs-saving__monthly::after { border-top-color: #708078; }
.xmrs-saving.is-even .xmrs-saving-two-years { color: #53645b; }
.xmrs-breakdown { max-width: 650px; margin: 26px auto; text-align: left; }
.xmrs-breakdown h3 { font-size: 20px; text-align: left; }
.xmrs-breakdown dl { margin: 0; border-top: 1px solid var(--xmrs-line); }
.xmrs-breakdown dl div { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--xmrs-line); }
.xmrs-breakdown dt { display: flex; flex: 1; gap: 16px; color: #6b7d75; }
.xmrs-breakdown dt span { color: var(--xmrs-dark); font-weight: 700; }
.xmrs-breakdown dd { margin: 0; font-weight: 700; }
.xmrs-cta { margin: 5px auto 18px; }
.xmrs-disclaimer { max-width: 700px; margin: 16px auto; color: #687a72; font-size: 12px; text-align: left; }
@media (max-width: 720px) {
  .xmrs { margin: 18px auto; }
  .xmrs-hero { padding: 30px 18px; }
  .xmrs-progress em { display: none; }
  .xmrs-form { padding: 26px 16px; }
  .xmrs-grid--3, .xmrs-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .xmrs-questions { grid-template-columns: 1fr; }
  .xmrs-options { grid-template-columns: 1fr; }
  .xmrs-result__plans { flex-direction: column; }
  .xmrs-result__plans > div { min-width: 0; }
  .xmrs-result__arrow { transform: rotate(90deg); }
  .xmrs-saving__two-years { gap: 12px; padding: 25px 15px 18px; }
}
@media (max-width: 430px) {
  .xmrs-grid--2, .xmrs-grid--3, .xmrs-grid--4 { grid-template-columns: 1fr; }
  .xmrs-actions { flex-direction: column-reverse; }
  .xmrs-button { width: 100%; }
  .xmrs-saving__monthly { min-height: 0; gap: 2px 6px; padding: 16px 12px; }
  .xmrs-saving__two-years { min-height: 0; flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .xmrs *, .xmrs *::before, .xmrs *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
