/* ─────────────────────────────────────────────────────────────
   JitakuTV — plan.html 専用スタイル（scoped: body.plan-page）
   トークンは style.css の CSS変数を継承
   ───────────────────────────────────────────────────────────── */
body.plan-page { background: #fff; }
body.plan-page .wrap { width: min(1180px, calc(100% - 44px)); }

.pp-sec { padding: 84px 0; }
.pp-sec--cream { background: var(--cream); }

/* ── Section headers ── */
.pp-sec-hd { margin-bottom: 46px; }
.pp-sec-hd--center { text-align: center; margin-inline: auto; max-width: 760px; }
.pp-sec-hd h2 {
  margin: 14px 0 0; font-size: clamp(25px, 2.6vw, 32px);
  font-weight: 800; color: var(--navy); line-height: 1.4;
}
.pp-sec-hd--center h2 { margin-top: 0; }
.pp-sec-sub { margin: 16px 0 0; font-size: 15px; color: var(--muted); line-height: 1.85; }
.pp-step-tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  color: var(--orange); background: rgba(207, 90, 38, .1);
  padding: 6px 14px; border-radius: 999px;
}
.pp-step-tag--light { color: var(--gold); background: rgba(169, 130, 47, .18); }

/* ── Hero ── */
.pp-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 92px 0 86px;
}
.pp-hero::before {
  content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 70%);
}
.pp-hero::after {
  content: ""; position: absolute; left: -120px; bottom: -180px; width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169,130,47,.18) 0%, rgba(169,130,47,0) 70%);
}
.pp-hero-in { position: relative; z-index: 1; }
.pp-eyebrow {
  margin: 0 0 18px; font-size: 12.5px; font-weight: 800; letter-spacing: .18em;
  color: var(--gold); display: flex; align-items: center; gap: 12px;
}
.pp-eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 2px; background: var(--gold); }
.pp-hero h1 {
  margin: 0; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.25;
  font-weight: 800; color: #fff; letter-spacing: .01em;
}
.pp-hero-lead {
  margin: 26px 0 0; font-size: clamp(15px, 1.5vw, 17px);
  line-height: 2; color: rgba(255,255,255,.84);
}
.pp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 40px; }
.pp-hero-primary { padding: 16px 30px; font-size: 16px; }
.pp-arrow { font-weight: 800; }
.pp-hero-link {
  font-size: 15.5px; font-weight: 700; color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 4px; border-bottom: 2px solid rgba(255,255,255,.55);
}
.pp-hero-link:hover { text-decoration: none; border-bottom-color: #fff; }

/* ── 3-step overview ── */
.pp-steps { background: #fff; border-bottom: 1px solid var(--line); }
.pp-steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; padding: 30px 0;
}
.pp-step { display: flex; align-items: center; gap: 16px; padding: 6px 24px; position: relative; }
.pp-step:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 46px; background: var(--line);
}
.pp-step-no {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.pp-step p { margin: 0; display: flex; flex-direction: column; }
.pp-step b { font-size: 16px; color: var(--navy); font-weight: 800; }
.pp-step small { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ── Plan cards ── */
.pp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.pp-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid var(--line); border-radius: 22px;
  padding: 38px 36px 34px; min-width: 0;
  box-shadow: 0 22px 46px -32px rgba(19, 35, 63, .3);
}
.pp-card-top h3 { margin: 0; font-size: 26px; font-weight: 800; color: var(--navy); }
.pp-card-for { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.pp-price {
  margin: 26px 0 0; font-size: 16px; font-weight: 700; color: var(--muted);
  display: flex; align-items: baseline; gap: 8px;
}
.pp-price b { font-size: 46px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1; }
.pp-chline { margin: 22px 0 0; font-size: 14.5px; font-weight: 700; color: #46505e; line-height: 1.6; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px; }
.pp-chip {
  font-size: 12.5px; font-weight: 800; color: var(--navy);
  background: var(--cream); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}
.pp-chip--cs { color: #fff; background: var(--orange); border-color: var(--orange); }
.pp-card-btn { margin-top: auto; width: 100%; text-align: center; white-space: normal; line-height: 1.4; padding: 15px 20px; }

/* featured B card */
.pp-card--featured {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
  border-color: var(--navy);
}
.pp-card--featured .pp-card-top h3 { color: #fff; }
.pp-card--featured .pp-card-for { color: rgba(255,255,255,.72); }
.pp-card--featured .pp-price { color: rgba(255,255,255,.7); }
.pp-card--featured .pp-price b { color: #fff; }
.pp-card--featured .pp-chline { color: rgba(255,255,255,.85); }
.pp-card--featured .pp-chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
.pp-card--featured .pp-chip--cs { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.pp-ribbon {
  position: absolute; top: -14px; right: 30px;
  background: var(--gold); color: var(--navy); font-size: 12.5px; font-weight: 800;
  letter-spacing: .06em; padding: 7px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 22px -10px rgba(169,130,47,.7);
}

/* callout + text link */
.pp-callout {
  margin-top: 32px; background: var(--soft); border: 1px solid var(--line);
  border-left: 4px solid var(--orange); border-radius: 12px; padding: 22px 26px;
}
.pp-callout p { margin: 0; font-size: 14.5px; color: #46505e; line-height: 1.85; }
.pp-textlink { margin: 26px 0 0; text-align: center; }
.pp-textlink a {
  font-size: 15.5px; font-weight: 800; color: var(--orange);
  display: inline-flex; align-items: center; gap: 10px;
}
.pp-textlink a:hover { text-decoration: none; color: var(--orange2); }

/* ── Included grid ── */
.pp-inc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pp-inc {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 28px; text-align: center; min-width: 0;
}
.pp-inc-ic {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 16px;
  background: var(--cream); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.pp-inc-ic svg { width: 32px; height: 32px; }
.pp-inc p { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.pp-appnote {
  margin-top: 30px; background: var(--navy); border-radius: 16px; padding: 26px 30px;
}
.pp-appnote p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.86); line-height: 1.9; }

/* ── Period table ── */
.pp-table-wrap {
  border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 22px 46px -34px rgba(19, 35, 63, .28);
}
.pp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pp-table thead th {
  background: var(--navy); color: #fff; font-weight: 800;
  padding: 20px 24px; text-align: left; font-size: 14px; letter-spacing: .02em;
}
.pp-table tbody th, .pp-table tbody td {
  padding: 26px 24px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.pp-table tbody tr:last-child th, .pp-table tbody tr:last-child td { border-bottom: 0; }
.pp-table tbody th { font-size: 18px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.pp-table tbody tr:nth-child(even) { background: var(--soft); }
.pp-total { display: block; font-size: 26px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.pp-per { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 7px; }
.pp-deal-cell { text-align: center; }
.pp-deal-badge {
  display: inline-block; font-size: 12.5px; font-weight: 800; color: #fff;
  background: var(--orange); border-radius: 999px; padding: 8px 18px; white-space: nowrap;
}
.pp-footnote { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.pp-footnote--center { text-align: center; }

/* ── Second device ── */
.pp-second-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.pp-second {
  background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 32px 30px; min-width: 0;
}
.pp-second-name { margin: 0; font-size: 16px; font-weight: 800; color: var(--navy); }
.pp-second-price { margin: 12px 0 0; font-size: 14.5px; font-weight: 700; color: var(--muted); line-height: 1.6; }
.pp-second-price b { font-size: 28px; font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; margin-left: 6px; }

/* ── Payment info grid ── */
/* 4枚になったので 2×2 のゆったりしたグリッドに */
.pp-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.2vw, 26px); }
.pp-info { padding: clamp(22px, 2.4vw, 30px); }
.pp-info {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; min-width: 0;
}
.pp-info h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--navy); }
.pp-info h3::after { content: ""; display: block; width: 30px; height: 3px; border-radius: 2px; background: var(--orange); margin-top: 10px; }
.pp-info p { margin: 14px 0 0; font-size: 13.5px; color: #4d5765; line-height: 1.85; }

/* ── Final CTA ── */
.pp-final {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 88px 0; text-align: center;
}
.pp-final::before {
  content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 70%);
}
.pp-final-in { position: relative; z-index: 1; }
.pp-final h2 { margin: 18px 0 0; font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: #fff; }
.pp-final-body { margin: 22px auto 0; max-width: 680px; font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.9; }
.pp-final-actions { margin-top: 36px; }
.pp-final-primary { padding: 18px 38px; font-size: 17px; }
.pp-final-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 30px; }
.pp-final-links a {
  font-size: 14.5px; font-weight: 700; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 4px; border-bottom: 2px solid rgba(255,255,255,.5);
}
.pp-final-links a:hover { text-decoration: none; border-bottom-color: #fff; }

/* ── Responsive ── */
@media (max-width: 1040px) {
  .pp-cards { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
  .pp-steps-grid { grid-template-columns: 1fr; gap: 8px; }
  .pp-step:not(:last-child)::after { display: none; }
  .pp-step { padding: 8px 4px; }
  .pp-inc-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pp-info-grid { grid-template-columns: 1fr 1fr; }
  .pp-second-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 760px) {
  .pp-sec { padding: 62px 0; }
  .pp-hero { padding: 60px 0 56px; }
  .pp-hero-actions { gap: 18px; }
  /* compress the table to fit instead of forcing a wide min-width */
  .pp-table-wrap { max-width: 100%; }
  .pp-table thead th, .pp-table tbody th, .pp-table tbody td { padding: 14px 9px; }
  .pp-table thead th { font-size: 11px; }
  .pp-table tbody th { font-size: 14px; }
  .pp-total { font-size: 18px; }
  .pp-per { font-size: 10.5px; }
  .pp-deal-badge { font-size: 11px; padding: 6px 10px; }
  .pp-info-grid { grid-template-columns: 1fr; }
  .pp-card { padding: 30px 24px 26px; }
  .pp-price b { font-size: 40px; }
  .pp-final-links { gap: 16px; flex-direction: column; align-items: center; }
}
@media (max-width: 380px) {
  .pp-hero h1 { font-size: 30px; }
  .pp-price b { font-size: 36px; }
}


/* ヒーローの「スマホアプリ付き」バッジ */
.pp-hero-app{
  display:inline-flex;align-items:center;gap:9px;
  margin:16px 0 0;padding:9px 18px;border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.34);
  font-size:13.5px;font-weight:800;letter-spacing:.03em;color:#fff;
}
.pp-hero-app::before{
  content:"";width:7px;height:7px;border-radius:50%;background:#f0b060;flex:none;
}
@media (max-width:600px){
  .pp-hero-app{font-size:12.5px;padding:8px 14px}
}


/* ── アプリ注記：文字を大きくして左へ流す（2026-11-26） ── */
.pp-marquee{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 40px,#000 calc(100% - 40px),transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 40px,#000 calc(100% - 40px),transparent 100%);
}
.pp-marquee-track{
  display:inline-flex;
  white-space:nowrap;
  animation:pp-marquee 26s linear infinite;
  will-change:transform;
}
.pp-marquee-track span{
  font-size:clamp(15px,1.15vw,18.5px);
  font-weight:700;
  line-height:1.7;
  letter-spacing:.01em;
  color:#fff;
  padding-right:64px;
}
@keyframes pp-marquee{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@media (prefers-reduced-motion: reduce){
  .pp-marquee{
    -webkit-mask-image:none;mask-image:none;
  }
  .pp-marquee-track{
    animation:none;white-space:normal;display:block;
  }
  .pp-marquee-track span{
    font-size:14px;padding-right:0;
  }
  .pp-marquee-track span[aria-hidden="true"]{display:none}
}
@media (max-width:600px){
  .pp-marquee-track span{font-size:14px;padding-right:44px}
}


/* ── スマホ最適化（2026-11-27） ── */
@media (max-width: 640px) {
  .pp-hero { padding: 44px 0 40px; }
  .pp-hero h1 { font-size: 28px; line-height: 1.32; }
  .pp-hero-lead { margin-top: 18px; font-size: 14.5px; line-height: 1.9; }
  .pp-hero-app { margin-top: 12px; font-size: 12px; }
  .pp-steps-grid { padding: 20px 0; gap: 6px; }
  .pp-sec { padding: 46px 0; }
  .pp-sec-hd { margin-bottom: 24px; }
  .pp-sec-hd h2 { font-size: 23px; }
  .pp-sec-sub { margin-top: 12px; font-size: 14px; }
  .pp-plan-card, .pp-second { padding: 20px 18px; }
  .pp-price, .pp-plan-price { font-size: clamp(30px, 9vw, 38px); }
  .pp-marquee-track span { font-size: 13.5px; padding-right: 40px; }
  .pp-appnote { padding: 12px 14px; }
}
