/* ==========================================================
   APAS — 日本通信SIM スターターパック LP
   Mobile-first / no external libraries
   ========================================================== */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #17191E;
  --muted: #5E646C;
  --faint: #9096A0;
  --line: #E8E7E1;
  --accent: #1D4ED8;
  --accent-soft: #EEF3FE;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(23, 25, 30, .04), 0 12px 32px rgba(23, 25, 30, .07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

.container { width: min(100% - 40px, 1080px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.brand {
  font-weight: 700; font-size: 18px; letter-spacing: .24em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.brand-dot { width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }

.header-nav { display: none; gap: 26px; }
.header-nav a { text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color .2s; }
.header-nav a:hover { color: var(--ink); }

.header-contact {
  font-size: 13px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 9px 18px; white-space: nowrap;
  transition: border-color .2s;
}
.header-contact:hover { border-color: var(--faint); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 72px; }

.eyebrow {
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; margin-bottom: 12px;
}
h1 {
  font-size: clamp(1.85rem, 6.6vw, 2.9rem);
  font-weight: 700; line-height: 1.28; letter-spacing: .02em;
  margin-bottom: 18px;
}
.hero-lead { color: var(--muted); font-size: clamp(15px, 4vw, 17px); max-width: 34em; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 22px; }
.badges li {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 15px;
  font-size: 13px; font-weight: 600;
}

.hero-media { margin-top: 36px; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--surface);
}
.media-caption { font-size: 12px; color: var(--faint); margin-top: 10px; line-height: 1.7; }

.price-block { margin-top: 40px; }
.price-label { font-size: 12px; color: var(--faint); letter-spacing: .16em; font-weight: 700; margin-bottom: 4px; }
.price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price {
  font-size: clamp(2.5rem, 9vw, 3.2rem); font-weight: 700;
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.price small { font-size: .42em; font-weight: 700; margin-left: 3px; }
.tax { color: var(--muted); font-size: 14px; font-weight: 500; }
.ship-note {
  margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.ship-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Purchase card ---------- */
.purchase-card {
  margin-top: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.purchase-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.purchase-row label { font-size: 14px; font-weight: 600; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px; pointer-events: none;
  border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  padding: 12px 42px 12px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); cursor: pointer; min-width: 108px;
}
.select-wrap select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.purchase-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px;
}
.total-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.total-num { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.total-num strong { font-size: 1.7rem; font-weight: 700; margin-right: 2px; }

.btn {
  display: inline-block; width: 100%;
  min-height: 58px; border: none; border-radius: 14px;
  font: inherit; font-size: 16.5px; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.btn-primary { margin-top: 20px; background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(23, 25, 30, .2); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.purchase-notice {
  margin-top: 14px; font-size: 13px; line-height: 1.7;
  color: var(--accent); background: var(--accent-soft);
  padding: 10px 14px; border-radius: 10px;
}
.purchase-meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: var(--faint); margin-top: 16px;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 36px; max-width: 640px; }
.section-eyebrow { color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: .22em; }
h2 { font-size: clamp(1.4rem, 4.8vw, 1.9rem); font-weight: 700; line-height: 1.45; margin-top: 8px; letter-spacing: .02em; }
.section-sub { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.sp-br { display: inline; }

/* ---------- Features (delivery) ---------- */
.features { display: grid; gap: 14px; }
.feature {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.feature-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 14px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.step-num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .14em; }
.step h3 { font-size: 17px; font-weight: 700; margin: 10px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Company ---------- */
.company-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 28px;
}
.company-list div {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.company-list div:last-child { border-bottom: none; }
.company-list dt { color: var(--faint); font-size: 13px; font-weight: 600; }
.company-list dd a { color: var(--accent); text-decoration: none; }
.company-list dd a:hover { text-decoration: underline; }

/* ---------- Amazon ---------- */
.amazon-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 24px;
  box-shadow: var(--shadow);
}
.amazon-lead { color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.btn-outline {
  width: auto; align-self: flex-start; padding: 0 32px; min-height: 54px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 15.5px; font-weight: 600; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { padding: 0 28px 24px 0; font-size: 14.5px; color: var(--muted); }
.faq details p a { color: var(--accent); }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--ink); color: #fff; padding: 88px 0; text-align: center; }
.final-cta h2 { color: #fff; margin-top: 0; }
.final-cta .section-eyebrow { color: rgba(255, 255, 255, .55); }
.final-price { margin-top: 16px; font-size: 16px; font-weight: 600; opacity: .85; }
.final-sep { opacity: .4; margin: 0 10px; }
.btn-invert { margin-top: 28px; width: auto; padding: 0 44px; background: #fff; color: var(--ink); }
.btn-invert:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.final-note { margin-top: 14px; font-size: 12.5px; opacity: .55; }

/* ---------- Disclaimer / Footer ---------- */
.disclaimer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0; }
.disclaimer p { font-size: 12.5px; color: var(--faint); line-height: 2; }

.site-footer { padding: 52px 0 40px; }
.footer-inner {
  display: flex; flex-direction: column; gap: 28px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-company { font-size: 13px; color: var(--muted); line-height: 2; margin-top: 14px; font-style: normal; }
.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.copyright { font-size: 12px; color: var(--faint); margin-top: 24px; }

/* ---------- Subpages (特商法 / プライバシー / お問い合わせ) ---------- */
.subpage { padding: 48px 0 72px; }
.breadcrumb { font-size: 12.5px; color: var(--faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--muted); }
.breadcrumb span { margin: 0 8px; }
.subpage h1 { font-size: clamp(1.5rem, 5.6vw, 2.1rem); margin-bottom: 24px; }
.subpage-lead { color: var(--muted); font-size: 14.5px; max-width: 40em; margin-bottom: 32px; }
.subpage-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; margin-bottom: 24px; }
.subpage-card h2 { font-size: 16.5px; margin: 28px 0 8px; }
.subpage-card h2:first-of-type { margin-top: 0; }
.subpage-card p, .subpage-card li { font-size: 14px; color: var(--muted); line-height: 1.9; }
.subpage-card ul { padding-left: 22px; margin: 8px 0; }
.subpage-card a { color: var(--accent); }
.policy-date { margin-top: 32px; font-size: 13px !important; color: var(--faint) !important; }

/* Contact form */
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.req {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 6px; font-size: 11px; font-weight: 700; vertical-align: 1px;
}
.form-row input,
.form-row textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--bg); padding: 13px 16px;
}
.form-row input:focus-visible,
.form-row textarea:focus-visible,
.form-row select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-row textarea { resize: vertical; line-height: 1.7; }
.contact-form .select-wrap select { width: 100%; }
.contact-form .select-wrap::after { right: 20px; }
.contact-form .btn-primary { min-height: 54px; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--faint); margin-top: 14px; }

@media (min-width: 720px) {
  .subpage { padding: 64px 0 96px; }
  .subpage-card { padding: 36px 40px; }
}

/* ==========================================================
   PC (≥ 720px)
   ========================================================== */
@media (min-width: 720px) {
  .section { padding: 96px 0; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .faq details p { padding-left: 2px; }
  .footer-nav { flex-direction: row; gap: 28px; }
  .amazon-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 44px; }
  .amazon-body { max-width: 560px; }
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

/* ---------- Hero 2-column (≥ 960px) ---------- */
@media (min-width: 960px) {
  .hero { padding: 72px 0 104px; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr);
    grid-template-areas:
      "head  media"
      "price media"
      "buy   media";
    column-gap: 72px;
    align-content: start;
  }
  .hero-head { grid-area: head; }
  .hero-media { grid-area: media; margin-top: 8px; }
  .price-block { grid-area: price; margin-top: 40px; }
  .purchase-card { grid-area: buy; margin-top: 28px; padding: 28px; }
  .sp-br { display: none; }
  .hero-lead { font-size: 16.5px; }
  .media-caption { margin-top: 14px; }
  .company-grid {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 64px; align-items: start;
  }
  .company-grid .section-head { margin-bottom: 0; position: sticky; top: 96px; }
  .company-list div { grid-template-columns: 120px 1fr; }
}
