*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fb;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --accent-soft: #fff7ed;
  --border: #e5e7eb;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

main {
  overflow-x: clip;
  max-width: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(980px, calc(100% - 32px));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

a {
  color: var(--primary);
}

.top-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  overflow-x: clip;
}

.top-header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px 12px;
  min-height: 64px;
  padding: 10px 0;
  min-width: 0;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  justify-self: start;
  min-width: 0;
}

.badge-live {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  grid-column: 3;
  justify-self: end;
}

.slot-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 700;
  animation: slotPulse 2.4s ease-in-out infinite;
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  grid-column: 2;
  justify-self: end;
}

.slot-banner strong {
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
  font-size: 1.05rem;
  color: #c2410c;
}

.slot-banner strong.slot-pop {
  animation: slotPop 0.55s ease;
}

@keyframes slotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}

@keyframes slotPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); color: #ea580c; }
  100% { transform: scale(1); }
}

.hero-simple {
  padding: 28px 0 12px;
}

.hero-simple-inner {
  display: grid;
  gap: 22px;
}

.promo-image {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.btn-cta {
  width: 100%;
  max-width: 520px;
  min-height: 56px;
  margin-top: 8px;
  font-size: 1rem;
}

.section-title.center,
.section-sub.center {
  text-align: center;
}

.section-sub {
  margin: -8px 0 18px;
  color: var(--muted);
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.compare-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
}

.compare-hint {
  display: none;
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.compare-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .compare-table th,
  .compare-table td {
    white-space: normal;
    min-width: 88px;
  }
}

.compare-table small {
  color: var(--muted);
  font-size: 0.78rem;
}

.save-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.3;
}

.save-badge:hover {
  transform: translateY(-1px) scale(1.02);
}

.save-badge-pro {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

.save-badge-biz {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

.package-body .save-badge {
  margin-top: 0;
  margin-left: 8px;
  vertical-align: middle;
  font-size: 0.72rem;
  padding: 5px 10px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(480px, 100%);
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-card h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.save-calc p {
  margin: 0 0 10px;
  color: var(--muted);
}

.save-calc ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.save-calc li {
  margin-bottom: 6px;
}

.save-calc .total-normal {
  font-weight: 800;
  color: var(--text);
}

.save-calc .total-package {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eff6ff;
  font-weight: 800;
  color: var(--primary-dark);
}

.save-calc .total-save {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #166534;
  font-weight: 800;
}

.row-lite td:first-child { border-left: 4px solid #2563eb; }
.row-pro td:first-child { border-left: 4px solid #ef4444; }
.row-biz td:first-child { border-left: 4px solid #16a34a; }

.compare-table tr.highlight {
  background: #fff7ed;
}

.pkg-lite:has(input:checked) { border-color: #2563eb; background: #eff6ff; }
.pkg-pro:has(input:checked) { border-color: #ef4444; background: #fef2f2; }
.pkg-biz:has(input:checked) { border-color: #16a34a; background: #f0fdf4; }

.payment-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.qr-wrap {
  text-align: center;
}

.qr-image {
  width: 100%;
  max-width: 180px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}

.qr-wrap small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.payment-box .bank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.payment-box .bank li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.payment-box .bank strong {
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.payment-box .bank span {
  color: var(--muted);
}

.compare-table th {
  background: #eff6ff;
  color: var(--primary-dark);
}

.compare-table tr.highlight td {
  border-bottom-color: #fed7aa;
}

.help-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: auto;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.28);
  font-size: 0.9rem;
}

.hero {
  padding: 32px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero-media {
  position: relative;
}

.hero-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  min-height: 320px;
}

.hero-image-inner {
  height: 100%;
  min-height: 320px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  padding: 24px;
}

.hero-image-inner span {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

.hero-image-inner strong {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.promo-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.88rem;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.02rem;
}

.claim-box {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #fcd34d;
  border-radius: 18px;
  background: var(--accent-soft);
}

.claim-box.hidden {
  display: none;
}

.claim-box strong {
  display: block;
  color: #92400e;
}

.claim-box p {
  margin: 6px 0 0;
  color: #b45309;
  font-size: 0.92rem;
}

.claim-box .code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.benefit-box {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.benefit-box h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.benefit-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.section {
  padding: 28px 0;
  max-width: 100%;
  overflow-x: clip;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plan-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.plan-card strong {
  display: block;
  margin-bottom: 4px;
}

.plan-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.plan-card.popular {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.info-cards {
  display: grid;
  gap: 12px;
}

.info-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border);
}

.info-card.warn {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.order-section {
  padding-bottom: 60px;
}

.order-head {
  text-align: center;
  margin-bottom: 24px;
}

.order-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.order-head p {
  margin: 0;
  color: var(--muted);
}

.order-form {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow: hidden;
}

.form-section + .form-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.form-section h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.package-list,
.shipping-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.package-option,
.shipping-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  max-width: 100%;
  min-width: 0;
}

.package-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.package-body {
  flex: 1;
  min-width: 0;
}

.package-option:has(input:checked),
.shipping-option:has(input:checked) {
  border-color: var(--primary);
  background: #eff6ff;
}

.package-body strong {
  display: block;
}

.package-body small {
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  min-width: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.payment-box {
  padding: 18px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.payment-box h4 {
  margin: 0 0 12px;
}

.payment-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.payment-box li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payment-box span {
  color: var(--muted);
}

.payment-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.coupon-status {
  min-height: 22px;
  margin: 8px 0 0;
  font-size: 0.88rem;
}

.coupon-status.ok {
  color: var(--success);
}

.coupon-status.bad {
  color: var(--danger);
}

.summary-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.summary-box h3 {
  margin: 0 0 12px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--muted);
}

.summary-line span,
.summary-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-line strong {
  color: var(--text);
}

.summary-line.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
}

.summary-line.total strong {
  color: var(--primary);
  font-size: 1.3rem;
}

.hidden {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-buy {
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  margin-top: 18px;
  font-size: 1.02rem;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  padding: 12px 16px;
}

.form-foot {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer {
  padding: 24px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom, 22px));
  transform: translate(-50%, 120px);
  width: min(calc(100% - 32px), 420px);
  padding: 12px 18px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  opacity: 0;
  transition: 0.25s ease;
  z-index: 30;
  text-align: center;
  font-size: 0.9rem;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 1024px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 24px 0;
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .plan-grid,
  .field-grid,
  .coupon-row,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: calc(100% - 24px);
    max-width: 100%;
  }

  .top-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    min-height: auto;
    padding: 10px 0 12px;
    gap: 8px 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .badge-live {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 0.75rem;
    padding: 7px 12px;
  }

  .slot-banner {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
    font-size: 0.78rem;
  }

  .compare-hint {
    display: block;
  }

  .payment-box .bank li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .payment-box .bank strong {
    text-align: left;
  }

  .qr-wrap {
    margin: 0 auto;
  }

  .order-form {
    padding: 18px;
  }

  .order-section {
    padding-bottom: max(72px, calc(56px + env(safe-area-inset-bottom, 0px)));
  }

  .package-option {
    align-items: flex-start;
  }

  .package-body strong {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .package-body .save-badge {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .hero-simple {
    padding-top: 20px;
  }

  .hero-text h1 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .lead {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .benefit-box {
    padding: 16px;
  }

  .benefit-box li {
    font-size: 0.9rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 10px;
    font-size: 0.82rem;
  }

  .save-badge {
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  .coupon-row .btn {
    width: 100%;
  }

  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-card {
    max-height: 85vh;
    overflow-y: auto;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .help-float {
    right: 50%;
    transform: translateX(50%);
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    padding: 10px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 16px);
    max-width: 100%;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .package-option,
  .shipping-option {
    padding: 12px;
    gap: 10px;
  }

  .package-thumb {
    width: 56px;
    height: 56px;
  }

  .package-body small {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }

  .btn-buy {
    font-size: 0.95rem;
    padding-inline: 12px;
  }

  .summary-line.total strong {
    font-size: 1.15rem;
  }

  .footer {
    padding-bottom: max(88px, calc(72px + env(safe-area-inset-bottom, 0px)));
  }
}

@media (max-width: 380px) {
  .slot-banner {
    font-size: 0.72rem;
    padding: 7px 10px;
  }

  .badge-live {
    font-size: 0.72rem;
    padding: 7px 10px;
  }

  .brand {
    font-size: 0.76rem;
  }

  .help-float {
    padding: 10px 12px;
    font-size: 0.78rem;
  }
}
