.spv3, .spv3-cta {
  --spv3-green: #2e6b5e;
  --spv3-dark: #1f4d43;
  --spv3-tint: #e6f0ed;
  --spv3-paper: #f6f3ee;
  --spv3-line: #e4dfd7;
  --spv3-control: #cfc9bf;
  --spv3-muted: #5b6663;
  color: #1f2a27;
  font: 400 14px/1.7 "Noto Sans JP", sans-serif;
}
.spv3 *, .spv3-cta * { box-sizing: border-box; }
.spv3 [hidden] { display: none !important; }
.spv3 { background: var(--spv3-paper); }
.spv3 h1, .spv3 h2, .spv3 p, .spv3 dl, .spv3 dd { margin: 0; }
.spv3 h1 { font-size: 22px; font-weight: 700; line-height: 1.45; }
.spv3 h2 { font-size: 15px; font-weight: 700; }
.spv3 p { color: var(--spv3-muted); overflow-wrap: anywhere; }
.spv3 a, .spv3-link { color: var(--spv3-green); text-decoration: underline; }
.spv3-header {
  display: flex; justify-content: space-between; align-items: center; height: 56px;
  padding: 0 max(20px, calc((100% - 520px) / 2)); background: white;
  border-bottom: 1px solid var(--spv3-line);
}
.spv3-header a { color: inherit; text-decoration: none; font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.spv3-header span, .spv3-note { color: var(--spv3-muted); font-size: 12px; }
.spv3-main { max-width: 560px; min-height: calc(100vh - 122px); margin: auto; padding: 24px 20px 32px; }
.spv3-flow, .spv3-card, .spv3-intro, .spv3-field, .spv3-stack, .spv3-details-body {
  display: grid; gap: 20px; min-width: 0; margin: 0;
}
.spv3-intro { gap: 10px; }
.spv3-card { background: white; border: 1px solid var(--spv3-line); border-radius: 16px; padding: 20px; }
.spv3-field, .spv3-stack { gap: 8px; }
.spv3-field > span, .spv3-field legend { font-size: 14px; font-weight: 700; color: inherit; }
.spv3-field legend { float: left; margin: 0; }
.spv3-field { border: 0; padding: 0; }
.spv3-badge {
  display: inline-block; margin-left: 8px; padding: 0 6px; border: 1px solid var(--spv3-control);
  border-radius: 4px; color: var(--spv3-muted); font-size: 11px;
}
.spv3-required { color: white; background: #b4532a; border-color: #b4532a; }
.spv3-field > input, .spv3-field > textarea, .spv3-field > select {
  width: 100%; min-height: 48px; border: 1px solid var(--spv3-control); border-radius: 10px;
  padding: 10px 14px; background: white; color: inherit; font: inherit; font-size: 16px;
}
.spv3-field textarea { resize: vertical; }
.spv3-choices, .spv3-credentials { display: flex; flex-wrap: wrap; gap: 8px; }
.spv3-choice { position: relative; display: inline-flex; margin: 0; justify-self: start; }
.spv3-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.spv3-choice span {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 13px 4px 9px;
  border: 2px solid transparent; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--spv3-control);
  background: white; font-weight: 500;
}
.spv3-choice span::before {
  content: ''; display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px;
  border: 1.5px solid #8a938f; border-radius: 4px; font-size: 14px; line-height: 1;
}
.spv3-choice input:checked + span {
  border-color: var(--spv3-green); background: var(--spv3-tint); color: var(--spv3-dark);
  box-shadow: none; font-weight: 700;
}
.spv3-choice input:checked + span::before { content: '✓'; color: white; background: var(--spv3-green); border-color: var(--spv3-green); }
.spv3-choice input:focus-visible + span, .spv3 :focus-visible, .spv3-cta :focus-visible { outline: 2px solid var(--spv3-dark); outline-offset: 3px; }
.spv3-credentials { gap: 6px; }
.spv3-credentials span { padding: 4px 10px; border-radius: 999px; background: var(--spv3-tint); color: var(--spv3-dark); font-size: 12px; font-weight: 700; }
.spv3-address, .spv3-summary { padding: 10px 12px; border-radius: 8px; background: var(--spv3-paper); overflow-wrap: anywhere; }
.spv3 .spv3-summary { padding: 0; background: transparent; font-size: 13px; }
.spv3-details { padding: 0 14px; background: #fbfaf7; border: 1px solid var(--spv3-line); border-radius: 12px; }
.spv3-details summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font-weight: 700; list-style: none; }
.spv3-details summary::-webkit-details-marker { display: none; }
.spv3-details summary::after { content: '+'; }
.spv3-details[open] summary::after { content: '−'; }
.spv3-details summary small { margin-left: auto; color: var(--spv3-muted); font-size: 12px; font-weight: 500; }
.spv3-details-body { padding: 4px 0 16px; gap: 18px; }
.spv3-button {
  min-height: 52px; padding: 6px 12px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--spv3-green); border-radius: 12px; background: var(--spv3-green);
  color: white; font: inherit; font-size: 16px; font-weight: 700; text-align: center; cursor: pointer;
}
.spv3 .spv3-button, .spv3-cta .spv3-button { color: white; text-decoration: none; }
.spv3-button:hover { background: var(--spv3-dark); }
.spv3-button:disabled { opacity: .65; cursor: wait; }
.spv3 .spv3-secondary, .spv3-cta .spv3-secondary { background: white; color: var(--spv3-dark); }
.spv3-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; justify-self: center; }
.spv3-center { text-align: center; }
.spv3 .spv3-error { color: #9d3023; }
.spv3-progress { display: grid; gap: 8px; color: var(--spv3-dark); font-size: 12px; }
.spv3-progress > div:first-child, .spv3-between { display: flex; justify-content: space-between; gap: 8px; }
.spv3-bars { display: flex; gap: 6px; }
.spv3-bars span { flex: 1; height: 6px; border-radius: 99px; background: var(--spv3-line); }
.spv3-bars .spv3-filled { background: var(--spv3-green); }
.spv3-price > div > span { color: var(--spv3-muted); font-size: 13px; }
.spv3-price .spv3-details { background: none; border: 0; padding: 0; }
.spv3-price .spv3-details summary { min-height: 32px; color: var(--spv3-green); }
.spv3-total { color: var(--spv3-dark); font-size: 20px; font-weight: 700; line-height: 1.3; }
.spv3-total strong { font-size: 34px; }
.spv3-monthly { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--spv3-line); }
.spv3-monthly strong { font-size: 20px; }
.spv3-benefits { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.spv3-benefits.spv3-card { padding: 20px; }
.spv3-trial { gap: 6px; padding: 16px 20px; background: #fff7ec; border-color: #eed9bb; }
.spv3 .spv3-trial p { color: #5b4a33; font-size: 13px; }
.spv3-benefits li { display: flex; gap: 8px; }
.spv3-benefits li::before { content: '✓'; color: var(--spv3-green); font-weight: 700; }
.spv3-accent { gap: 8px; background: var(--spv3-tint); border-color: #c5dcd4; }
.spv3-accent dl div { display: grid; grid-template-columns: minmax(112px, 38%) 1fr; gap: 8px; padding: 4px 0; }
.spv3-accent dt { font-weight: 700; }
.spv3-accent dd { overflow-wrap: anywhere; }
.spv3-success-icon { color: var(--spv3-green); background: var(--spv3-tint); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; justify-self: center; font-size: 23px; }
body:has(.spv3-cta) a.fix_btn { display: none !important; }
.spv3-cta, .spv3-cta-spacer { --spv3-cta-height: 64px; }
.spv3-cta {
  position: fixed; z-index: 1030; inset: auto 0 0; padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--spv3-line);
  box-shadow: 0 -2px 12px rgba(31, 42, 39, .08);
}
.spv3-cta-spacer { height: calc(var(--spv3-cta-height) + env(safe-area-inset-bottom)); }
.spv3-cta-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center; align-content: center; gap: 1px 6px;
  max-width: 1100px; min-height: calc(var(--spv3-cta-height) - 1px);
  margin: auto; padding: 1px 8px;
}
.spv3-cta-note-desktop { display: none; }
.spv3-cta-actions { grid-column: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 6px; }
.spv3-cta-note { margin: 0; color: var(--spv3-muted); line-height: 1.4; }
.spv3-cta-note-mobile { text-align: center; font-size: 11px; }
.spv3-cta .spv3-button {
  min-height: 44px; padding: 4px; gap: 4px; font-size: 14px; line-height: 1.25; border-radius: 10px;
}
.spv3-cta .spv3-secondary { border-color: #b88942; color: #1f2a27; }
.spv3-cta .spv3-secondary:hover { background: #fbf5e9; }
.spv3-cta .spv3-button svg {
  flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.spv3-cta-chevron { font-size: 16px; font-weight: 400; }
.spv3-cta [data-spv3-close] {
  grid-column: 2; width: 30px; height: 44px; padding: 0;
  border: 0; background: transparent; color: var(--spv3-muted);
  font: inherit; font-size: 20px; cursor: pointer;
}
@media (min-width: 768px) {
  .spv3-cta, .spv3-cta-spacer { --spv3-cta-height: 80px; }
  .spv3-cta-inner {
    grid-template-columns: minmax(0, 1fr) auto 30px; gap: 12px; padding: 14px 24px;
  }
  .spv3-cta-heading {
    display: block; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25;
  }
  .spv3-cta-actions { grid-column: 2; grid-template-columns: repeat(2, 200px); gap: 12px; }
  .spv3-cta-note-desktop { display: block; font-size: 12px; line-height: 1.25; }
  .spv3-cta-note-mobile { display: none; }
  .spv3-cta .spv3-button { min-height: 48px; padding: 6px 12px; gap: 8px; font-size: 16px; }
  .spv3-cta-inner > .spv3-button { grid-column: 2; width: 260px; }
  .spv3-cta [data-spv3-close] { grid-column: 3; }
}
.spv3-cta[hidden], .spv3-cta-spacer[hidden] { display: none !important; }
body.spv3-page { margin: 0; }
.spv3 fieldset:disabled { display: none; }

/* 3段レイアウト（見出し／ボタン2つ／注記）— 背景は横いっぱいの固定バー */
.spv3-cta-inner.is-stacked { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; padding: 8px 40px 8px 12px; }
.spv3-cta-inner.is-stacked .spv3-cta-heading { display: block; margin: 0; font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; }
.spv3-cta-inner.is-stacked .spv3-cta-actions { width: 100%; max-width: 420px; grid-template-columns: 1fr 1fr; gap: 8px; }
.spv3-cta-inner.is-stacked .spv3-button { min-height: 40px; }
.spv3-cta-inner.is-stacked .spv3-cta-note { text-align: center; font-size: 11px; }
.spv3-cta-inner.is-stacked [data-spv3-close] { position: absolute; top: 4px; right: 4px; height: 32px; }
@media (min-width: 768px) {
  .spv3-cta-inner.is-stacked { gap: 8px; padding: 12px 48px; }
  .spv3-cta-inner.is-stacked .spv3-cta-heading { font-size: 16px; }
  .spv3-cta-inner.is-stacked .spv3-cta-actions { max-width: 560px; grid-template-columns: 1fr 1fr; gap: 14px; }
  .spv3-cta-inner.is-stacked .spv3-button { min-height: 46px; }
  .spv3-cta-inner.is-stacked .spv3-cta-note { font-size: 12px; }
  .spv3-cta-inner.is-stacked [data-spv3-close] { top: 8px; right: 12px; }
}
.spv3-cta-spacer.is-stacked { height: calc(118px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .spv3-cta-spacer.is-stacked { height: calc(138px + env(safe-area-inset-bottom)); } }
