/* ============================================================
   SmartKakeibo LP — デジタル庁デザインシステム v2.17.0 準拠
   このファイル単体で完結（style.css には依存しない）
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap");

:root {
  /* 色（デジタル庁デザインシステムのプリミティブ値） */
  --blue-50: rgb(234, 239, 255);
  --blue-100: rgb(217, 227, 255);
  --blue-900: rgb(0, 23, 193);
  --blue-1000: rgb(0, 17, 143);
  --blue-1200: rgb(0, 0, 96);
  --white: #ffffff;
  --gray-50: rgb(247, 247, 247);
  --gray-200: rgb(214, 214, 214);
  --gray-420: rgb(148, 148, 148);
  --gray-600: rgb(115, 115, 115);
  --gray-800: rgb(51, 51, 51);
  --gray-900: rgb(28, 28, 28);
  --yellow-300: rgb(255, 212, 61);

  --text-body: var(--gray-800);
  --text-strong: var(--gray-900);
  --text-muted: var(--gray-600);
  --text-link: var(--blue-900);
  --surface-page: var(--white);
  --surface-subtle: var(--gray-50);
  --surface-accent-subtle: var(--blue-50);
  --surface-key: var(--blue-1000);
  --border-default: var(--gray-420);
  --border-subtle: var(--gray-200);

  --font-sans: "Noto Sans JP", sans-serif;
  --shell: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--text-body);
  background: var(--surface-page);
}

img {
  max-width: 100%;
}

a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--blue-1000);
}

a:active {
  color: var(--blue-1200);
}

/* フォーカスはデザインシステムの黄色プレート＋黒リング（変更しない） */
a:focus-visible,
button:focus-visible {
  outline: 4px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--yellow-300);
  border-radius: 2px;
}

.lp-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
}

.lp-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.lp-section.is-subtle {
  background: var(--surface-subtle);
}

.lp-eyebrow {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-link);
}

.lp-section h2 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--text-strong);
  border-left: 8px solid var(--surface-key);
  padding-left: 16px;
}

.lp-lead {
  margin: 0 0 32px;
  max-width: 680px;
  font-size: 17px;
}

/* --- ボタン（Solid Fill / Outlined、角丸8px） --- */
.da-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}

.da-btn--solid {
  background: var(--blue-900);
  color: var(--white);
}

.da-btn--solid:hover {
  background: var(--blue-1000);
  color: var(--white);
}

.da-btn--solid:active {
  background: var(--blue-1200);
}

.da-btn--outlined {
  background: var(--white);
  color: var(--blue-900);
  box-shadow: inset 0 0 0 1px var(--blue-900);
}

.da-btn--outlined:hover {
  background: var(--blue-50);
  color: var(--blue-1000);
}

.da-btn--onkey {
  background: var(--white);
  color: var(--blue-900);
}

.da-btn--onkey:hover {
  background: var(--blue-50);
  color: var(--blue-1000);
}

/* --- ヒーロー --- */
.lp-hero {
  background: var(--surface-accent-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.lp-hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.lp-chip {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--surface-key);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.lp-hero h1 {
  margin: 0 0 24px;
  font-size: 45px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text-strong);
}

.lp-hero p {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.6;
}

.lp-hero .lp-hero-last {
  margin-bottom: 32px;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.lp-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- 画像フレーム（1pxのヘアライン枠） --- */
.lp-shot {
  width: 100%;
  max-width: 300px;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-page);
  justify-self: start;
}

.lp-hero-inner .lp-shot,
.lp-compare .lp-shot {
  justify-self: center;
}

.lp-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 18;
  object-fit: cover;
  object-position: top center;
}

.lp-shot--narrow {
  max-width: 220px;
}

.lp-shot--topright img {
  object-position: top right;
}

/* この画像は画面上部だけを切り出したスクリーンショットのため、
   スマホ縦長フレームではなく実際の縦横比に合わせて表示する */
.lp-shot--topright.lp-shot--narrow img {
  aspect-ratio: 1206 / 685;
}

/* --- 料金 --- */
.lp-price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.lp-price-card {
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 32px;
  background: var(--surface-subtle);
}

.lp-price-card.is-key {
  border: 2px solid var(--blue-900);
  padding: 31px;
  background: var(--surface-page);
}

.lp-price-label {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}

.lp-price-card.is-key .lp-price-label {
  color: var(--text-link);
}

.lp-price-value {
  margin: 0 0 4px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text-strong);
}

.lp-price-value span {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
}

.lp-price-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.lp-price-plan {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 16px;
}

.lp-price-plan strong {
  color: var(--text-strong);
}

/* --- 注釈ブロック（NoticeBlock 相当） --- */
.lp-notice {
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--blue-900);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  background: var(--surface-page);
  font-size: 16px;
}

.lp-cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.lp-cta-row span {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- カードグリッド --- */
.lp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.lp-card {
  background: var(--surface-page);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 28px;
}

.lp-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-strong);
}

.lp-card p {
  margin: 0;
  font-size: 16px;
}

.lp-step-num {
  margin: 0 0 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--surface-key);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* --- Amazon突合 --- */
.lp-panel {
  margin-top: 32px;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 32px;
  background: var(--surface-subtle);
}

.lp-panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-strong);
}

.lp-panel > p {
  margin: 0 0 24px;
  max-width: 720px;
}

.lp-compare {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}

.lp-compare-rows {
  display: grid;
  gap: 12px;
}

.lp-compare-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 16px 20px;
  background: var(--surface-page);
}

.lp-compare-row.is-after {
  background: var(--surface-accent-subtle);
  border-color: var(--blue-900);
}

.lp-tag {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--text-muted);
}

.lp-tag.is-key {
  border-color: var(--blue-900);
  background: var(--blue-900);
  color: var(--white);
}

.lp-compare-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
}

.lp-compare-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.is-after .lp-compare-note {
  font-weight: 700;
  color: var(--text-link);
}

/* --- 手順（罫線で区切る4カラム） --- */
.lp-steps-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
}

.lp-steps-row li {
  padding: 28px;
  border-right: 1px solid var(--border-subtle);
}

.lp-steps-row li:last-child {
  border-right: 0;
}

.lp-step-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-link);
}

.lp-steps-row h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-strong);
}

.lp-steps-row p {
  margin: 0;
  font-size: 16px;
}

/* --- 日々の支払い --- */
.lp-card--media {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-card--media h3 {
  margin: 0;
}

.lp-shot-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.lp-shot-step {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

/* --- パートナー共有 --- */
.lp-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.lp-split p {
  margin: 0 0 24px;
  font-size: 17px;
}

.lp-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
}

.lp-list li {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 16px;
}

.lp-list li:last-child {
  border-bottom: 0;
}

/* --- 最終CTA --- */
.lp-final {
  background: var(--surface-key);
  border-bottom: 0;
  text-align: center;
  padding: 80px 0;
}

.lp-final h2 {
  margin: 0 0 16px;
  border: 0;
  padding: 0;
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--white);
}

.lp-final p {
  margin: 0 0 32px;
  font-size: 17px;
  color: var(--white);
}

.lp-final .lp-actions {
  justify-content: center;
}

/* --- フッター --- */
.lp-footer {
  border-top: 1px solid var(--border-default);
}

.lp-footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.lp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.lp-copyright {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   レスポンシブ（ブレイクポイント 1024 / 767）
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .lp-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lp-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-steps-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-steps-row li:nth-child(2) {
    border-right: 0;
  }

  .lp-steps-row li:nth-child(1),
  .lp-steps-row li:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .lp-compare {
    grid-template-columns: 1fr;
  }

  .lp-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .lp-shell,
  .lp-hero-inner,
  .lp-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lp-section {
    padding: 48px 0;
  }

  .lp-hero-inner {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .lp-hero h1 {
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: 0.01em;
  }

  .lp-section h2,
  .lp-final h2 {
    font-size: 28px;
  }

  .lp-price-grid,
  .lp-grid-3,
  .lp-grid-2,
  .lp-steps-row,
  .lp-shot-pair {
    grid-template-columns: 1fr;
  }

  .lp-steps-row li {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .lp-steps-row li:last-child {
    border-bottom: 0;
  }

  .lp-panel,
  .lp-price-card {
    padding: 24px;
  }

  .lp-price-card.is-key {
    padding: 23px;
  }

  .da-btn {
    width: 100%;
  }
}
