/*
 * アイスブレイクカード オンライン版の共通の見た目(/assets/site.css)
 *
 * tools/build-online-site.js が online-site/public/assets/site.css に写す。
 * 静的ページ(online-site/src/pages/)と、Pages Functions が返すページ(マイページ・ログインの確認など)の両方がこれ1つを読む。
 * 見た目はゲームに合わせる: 紺 #1D2A55、見出しは Kaisei Opti、本文は Noto Sans JP、背景は生成り、ボタンは青 #1667c7。
 *
 * 使ってよいクラス(両方の担当の約束。名前を変えるときは両方を直す):
 *   骨組み   .site-header .site-logo .site-nav .site-main .site-footer .site-copy
 *   箱と文字 .panel .panel-title .lead .muted
 *   ボタン   .btn .btn-primary .btn-secondary .btn-link .btn-row
 *   お知らせ .notice .notice-info .notice-warn .notice-error .pay-notice(<dialog> で出すお支払いのお願い)
 *   プラン   .plan-grid .plan-card .plan-card-current .plan-name .plan-price .plan-limit .plan-note
 *   回数     .usage .usage-meter .usage-numbers
 *   フォーム .form-field .field-label .field-input .checkbox .form-actions .inline-form
 *   トップ   .page-home(<body> のクラス)と .lp- で始まるクラス全部
 *            (トップページ /(online-site/src/pages/home.html)だけが使う。ほかのページでは使わない。
 *             一覧はこのファイルの後ろの「トップページ」の節。動きは /assets/home.js)
 * ページの中に style 属性も <style> も書かない約束(静的ページの CSP が 'unsafe-inline' を許していないため)。
 * そのため .usage-meter は <meter>(または <progress>)で出すことを前提にしている。
 */

:root {
  --navy: #1d2a55;
  --navy-deep: #151f42;
  --ink: #172331;
  --ink-soft: #4a5263;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --line: #e2d9c8;
  --blue: #1667c7;
  --blue-dark: #0f55a8;
  --blue-pale: #eaf2fc;
  --warn: #b86e00;
  --warn-pale: #fff4dd;
  --error: #c62f3d;
  --error-pale: #fdecee;
  --heading: 'Kaisei Opti', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --body: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
}

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

/* hidden 属性は、下の display の指定より必ず強くする(JS が表示を切り替えるのに使う) */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  /* ブラウザの「文字の大きさ」の設定にそろえる(px で固定すると、本文だけ大きくならず、
     rem で書いた注記のほうが本文より大きくなってしまう) */
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

img { max-width: 100%; height: auto; }

/* ---- ヘッダー ---- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
}
.site-logo {
  color: #fff;
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: none;
}
.site-logo:hover { color: #fff; }
.site-logo span {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0.12em;
  opacity: 0.85;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.92rem;
  text-decoration: none;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-nav a[aria-current='page'] { background: rgba(255, 255, 255, 0.18); }
.site-header :focus-visible { outline-color: #fff; }

/* ---- 本文 ---- */
.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.panel {
  margin: 0 0 20px;
  padding: 24px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(29, 42, 85, 0.05);
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.panel-title,
.panel h2,
.panel h3 {
  color: var(--navy);
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.panel-title { margin: 0 0 14px; font-size: 1.3rem; }
h1.panel-title { font-size: 1.65rem; }
/* 利用規約などの条ごとの見出し(.panel の直下に書いた h2・h3)。プランのカードの中の見出しには効かせない */
.panel > h2:not(.panel-title) { margin: 32px 0 10px; font-size: 1.12rem; }
.panel > h3:not(.panel-title) { margin: 24px 0 8px; font-size: 1rem; }
.panel-title:focus { outline: none; }
.panel-title:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.panel p { margin: 0 0 12px; }
.panel ul,
.panel ol { margin: 0 0 14px; padding-left: 1.4em; }
.panel li { margin: 0 0 6px; }
.panel li::marker { color: var(--navy); }

.lead { font-size: 1.05rem; line-height: 1.9; }
.muted { color: var(--ink-soft); font-size: 0.92rem; }

/* 特定商取引法に基づく表記などの表。狭い画面では見出しと中身を縦に並べる */
.panel table { width: 100%; margin: 0 0 14px; border-collapse: collapse; }
.panel th,
.panel td { padding: 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.panel tr:last-child th,
.panel tr:last-child td { border-bottom: 1px solid var(--line); }
.panel th { width: 32%; background: #f7f2e7; color: var(--navy); font-weight: 700; }
.panel td ul { margin: 0 0 6px; }
@media (max-width: 599px) {
  .panel th,
  .panel td { display: block; width: auto; }
  .panel td { border-top: 0; }
  .panel tr:last-child th { border-bottom: 0; }
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:disabled,
.btn[aria-disabled='true'] { opacity: 0.6; cursor: default; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-secondary:hover:not(:disabled) { background: #eef0f7; color: var(--navy); }
.btn-link {
  min-height: 44px;
  padding: 6px 4px;
  background: none;
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
}
.btn-link:hover:not(:disabled) { color: var(--blue-dark); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 0; }
.panel .btn-row:not(:last-child) { margin-bottom: 14px; }
@media (max-width: 479px) {
  .btn-row > .btn:not(.btn-link) { flex: 1 1 100%; }
}

/* ---- お知らせ ---- */
.notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-left-width: 5px;
  border-radius: 10px;
  background: var(--blue-pale);
  border-color: #c9dcf5;
  border-left-color: var(--blue);
}
.notice > :last-child { margin-bottom: 0; }
.notice-info { background: var(--blue-pale); border-color: #c9dcf5; border-left-color: var(--blue); }
.notice-warn { background: var(--warn-pale); border-color: #f0dcb0; border-left-color: var(--warn); }
.notice-error { background: var(--error-pale); border-color: #f3c5ca; border-left-color: var(--error); }

/* ---- プラン ---- */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0; }
@media (min-width: 720px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
}
.plan-card > *,
.panel .plan-card > * { margin: 0; }
.plan-card .btn { margin-top: auto; }
.plan-card-current { border-color: var(--blue); background: #f5f9ff; box-shadow: 0 0 0 3px rgba(22, 103, 199, 0.12); }
.plan-name { margin: 0; color: var(--navy); font-family: var(--heading); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.06em; }
.plan-price { margin: 0; color: var(--navy); font-size: 1.9rem; font-weight: 700; line-height: 1.3; }
.plan-price small { margin-left: 2px; color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; }
.plan-limit {
  align-self: flex-start;
  margin: 0;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-weight: 700;
}
.plan-note { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ---- お支払いが確認できていないときの案内(マイページのいちばん上。server/views/account.js の renderPayNotice) ----
 * <dialog open> で出す(画面の操作は止めない。ログアウトやほかの案内も読めるように)。
 * ブラウザの既定では中央に浮くので、ふつうの箱と同じ見た目・同じ位置に戻してある。
 * 見た目は .panel と .notice-warn に合わせる(新しい色は増やさない)。
 */
.pay-notice {
  display: block;
  position: static;
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
  padding: 24px 20px;
  background: var(--warn-pale);
  color: var(--ink);
  border: 1px solid #f0dcb0;
  border-left: 5px solid var(--warn);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(29, 42, 85, 0.05);
}
.pay-notice[open] { display: block; }
.pay-notice > :first-child { margin-top: 0; }
.pay-notice > :last-child { margin-bottom: 0; }
.pay-notice .panel-title { color: var(--navy); }
.pay-notice p { margin: 0 0 12px; }

/* ---- 今月の回数 ---- */
.usage { margin: 0 0 16px; }
.usage-numbers { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; font-weight: 700; }
.usage-numbers strong { font-size: 1.6em; }
.usage-meter {
  display: block;
  width: 100%;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: #e8e2d4;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}
.usage-meter::-webkit-meter-bar { height: 14px; border: 0; border-radius: 999px; background: #e8e2d4; }
.usage-meter::-webkit-meter-optimum-value,
.usage-meter::-webkit-meter-suboptimum-value,
.usage-meter::-webkit-meter-even-less-good-value { border-radius: 999px; background: var(--blue); }
.usage-meter::-moz-meter-bar { border-radius: 999px; background: var(--blue); }
.usage-meter::-webkit-progress-bar { border-radius: 999px; background: #e8e2d4; }
.usage-meter::-webkit-progress-value { border-radius: 999px; background: var(--blue); }
.usage-meter::-moz-progress-bar { border-radius: 999px; background: var(--blue); }

/* ---- フォーム ---- */
.form-field { display: grid; gap: 6px; margin: 0 0 18px; }
.form-field > *,
.panel .form-field > * { margin: 0; }
.field-label { color: var(--navy); font-weight: 700; }
.field-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #b8b0a0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  /* 16px より小さいと iPhone で入力のときに画面が拡大されるので、そこは下限として残したまま、
     ブラウザの「文字の大きさ」を大きくした人には本文と同じだけ大きくする */
  font-size: max(16px, 1rem);
}
.field-input:focus { border-color: var(--blue); outline: 3px solid rgba(22, 103, 199, 0.25); outline-offset: 0; }
.field-input[aria-invalid='true'] { border-color: var(--error); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.7; }
.checkbox input { flex: 0 0 auto; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--blue); }
.checkbox input[aria-invalid='true'] { outline: 2px solid var(--error); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.inline-form { display: inline; margin: 0; }

/* ---- フッター ---- */
.site-footer {
  padding: 24px 16px 28px;
  background: var(--navy-deep);
  color: #d5d9e8;
  font-size: 0.88rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; max-width: 880px; margin: 0 auto 12px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 36px; color: #d5d9e8; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.site-copy { max-width: 880px; margin: 0 auto; color: #aab1c9; }

@media (min-width: 720px) {
  .site-header { padding: 14px 28px; }
  .site-main { padding: 36px 24px 64px; }
  .panel { padding: 28px 32px; }
  .site-footer { padding: 28px 28px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ==========================================================================
   トップページ(LP。online-site/src/pages/home.html)
   ==========================================================================
   <body class="page-home"> のときだけ効く(tools/build-online-site.js の PAGES の bodyClass)。
   ほかのページと共用のクラス(.btn・.plan-card など)は、ここでは .page-home の下で上書きするだけにして、
   /plans/ やマイページの見た目は変えない。
   本文の幅(.site-main の 880px)を外して、節ごとの帯を画面の端まで広げ、中身は .lp-wrap(最大 1120px)に入れる。
   色は本家サイト(icebreak-card.com)にそろえる: 紺 #1f2a4d・生成り #f6f1ea・赤 #c9544e・金のボタン。
   動きはすべて prefers-reduced-motion: no-preference のときだけ。JS(/assets/home.js)が無くても、中身はすべて読める・押せる。 */

.page-home {
  --lp-navy: #1f2a4d;
  --lp-navy-deep: #161f3a;
  --lp-navy-head: #1d2a55;
  --lp-cream: #f6f1ea;
  --lp-sand: #ece3d4;
  --lp-paper: #fffdf8;
  --lp-ink: #1b2233;
  --lp-ink-soft: #555d6e;
  --lp-red: #c9544e;
  --lp-red-text: #a8403b;
  --lp-red-band: #a8423d;
  --lp-red-light: #f29b93;
  --lp-gold: #ffd814;
  --lp-gold-hover: #ffe34f;
  --lp-on-dark: #d5d9e8;
  --lp-on-dark-soft: #aab1c9;
  --lp-line: rgba(31, 42, 77, 0.14);
  --lp-shadow: 0 18px 40px rgba(31, 42, 77, 0.12);
  --lp-card-shadow: 0 10px 24px rgba(22, 31, 58, 0.22);
  --lp-gutter: 20px;
  --lp-sec-pad: clamp(72px, 10vw, 128px);
  --lp-slant: 3vw;
  --lp-card-w: 88px;
  --lp-card-gap: 12px;
  background: var(--lp-cream);
  color: var(--lp-ink);
}
@media (min-width: 768px) { .page-home { --lp-gutter: 32px; --lp-card-w: 120px; --lp-card-gap: 16px; } }
@media (min-width: 1024px) { .page-home { --lp-gutter: 40px; --lp-card-w: 150px; --lp-card-gap: 20px; } }

.page-home .site-main { max-width: none; padding: 0; }
@media (min-width: 720px) {
  /* パソコンではヘッダーを上に残す(スマートフォンではヘッダーが2段になり、画面を食うので残さない) */
  .page-home .site-header { position: sticky; top: 0; z-index: 50; }
  /* 上に残るヘッダーの裏に、飛んだ先やキーボードで選んだ場所が隠れないように(アンカーにもフォーカスにも効く) */
  html:has(> body.page-home) { scroll-padding-top: 84px; }
  /* ヘッダーの「ゲーム」を、いつでも押せる金のボタンにする(文言は共通のヘッダーのまま) */
  .page-home .site-nav a[href="/play/"] { padding-inline: 18px; background: var(--lp-gold); color: var(--lp-ink); font-weight: 700; }
  .page-home .site-nav a[href="/play/"]:hover { background: var(--lp-gold-hover); color: var(--lp-ink); }
}
@media (max-width: 760px) {
  /* スマートフォンの下に出る「おためしで遊ぶ」の裏に、選んだ場所が隠れないように */
  html:has(> body.page-home) { scroll-padding-bottom: calc(58px + 2.5rem); }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(> body.page-home) { scroll-behavior: smooth; }
}

/* ---- 共通の部品 ---- */
.lp-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.lp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.page-home svg { fill: currentColor; }

.lp-wrap {
  width: 100%;
  max-width: calc(1120px + var(--lp-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--lp-gutter);
}
.lp-sec { position: relative; padding-block: var(--lp-sec-pad); }

.lp-head { margin: 0 0 clamp(32px, 5vw, 56px); }
.lp-head-center { max-width: 780px; margin-inline: auto; text-align: center; }
.lp-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--lp-red-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
}
.lp-head-center .lp-kicker { justify-content: center; }
.lp-kicker-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--lp-navy);
  font-family: var(--heading);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.lp-kicker-num::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.45; }
.lp-title {
  margin: 0;
  color: var(--lp-navy);
  font-family: var(--heading);
  font-size: clamp(1.55rem, 1.05rem + 2.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
}
.lp-lead { margin: 18px 0 0; color: var(--lp-ink-soft); font-size: 1.02rem; line-height: 1.95; }
/* 見出しと大きめの文は、対応するブラウザでは文節で折り返す(「時計/も」のような切れ方を防ぐ)。
   本文は、最後の行に1〜2文字だけ残らないようにする(対応していないブラウザでは、ふつうの折り返しのまま) */
.lp-title,
.lp-hero-title,
.lp-stance-title,
.lp-step-title,
.lp-duo-title,
.lp-duo-mode,
.lp-screen-title,
.lp-draw-title,
.lp-sub,
.lp-point-title,
.page-home .lp-qa summary,
.lp-hero-lead,
.lp-lead,
.lp-stance-lead,
.lp-hero-note,
.lp-draw p { word-break: auto-phrase; }
.page-home .site-main :is(p, li, figcaption, td, summary) { text-wrap: pretty; }
.page-home :is(.lp-title, .lp-step-title, .lp-duo-title, .lp-screen-title, .lp-draw-title, .lp-sub, .lp-point-title) { text-wrap: balance; }
.lp-small { margin: 0 0 10px; color: var(--lp-ink-soft); font-size: 0.86rem; line-height: 1.85; }

/* 濃紺の帯 */
.lp-dark { background: var(--lp-navy-deep); color: var(--lp-on-dark); }
.lp-dark .lp-title { color: #fff; }
.lp-dark .lp-lead { color: var(--lp-on-dark); }
.lp-dark .lp-kicker { color: var(--lp-red-light); }
.lp-dark .lp-kicker-num { color: #fff; }
.lp-dark a:not(.btn),
.lp-cta a:not(.btn),
.lp-hero a:not(.btn),
.lp-trial a:not(.btn) { color: #fff; }

/* ボタン(トップページの中だけ、主ボタンを金、角を丸く) */
.page-home .btn { min-height: 52px; padding: 12px 28px; border-radius: 999px; }
.page-home .btn-primary {
  background: var(--lp-gold);
  color: var(--lp-ink);
  box-shadow: 0 10px 24px rgba(22, 31, 58, 0.18);
}
.page-home .btn-primary:hover:not(:disabled) { background: var(--lp-gold-hover); color: var(--lp-ink); }
.page-home .btn-secondary { background: transparent; border: 1.5px solid var(--lp-navy); color: var(--lp-navy); }
.page-home .btn-secondary:hover:not(:disabled) { background: rgba(31, 42, 77, 0.06); color: var(--lp-navy); }
.lp-dark .btn-secondary,
.lp-cta .btn-secondary { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.page-home .lp-dark .btn-secondary:hover:not(:disabled),
.page-home .lp-cta .btn-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); color: #fff; }
.page-home .lp-btn-xl { flex-direction: column; gap: 0; min-height: 62px; padding: 10px 36px; font-size: 1.1rem; line-height: 1.35; }
.lp-btn-sub { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .page-home .btn { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
  .page-home .btn:active:not(:disabled) { transform: scale(0.98); }
}

.lp-textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.lp-textlink::after { content: '→'; content: '→' / ''; text-decoration: none; }

/* 濃い帯の上では、既定の青いフォーカス枠がほとんど見えないので白にする(ヘッダーと同じ) */
.lp-hero :focus-visible,
.lp-cta :focus-visible { outline-color: #fff; }
.lp-dark :focus-visible,
.lp-trial :focus-visible { outline-color: #fff; }

/* スクロールで現れる(home.js が画面の外にあるものだけに is-waiting を付け、見えたら is-in を付ける) */
@media (prefers-reduced-motion: no-preference) {
  .lp-reveal { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .lp-reveal.is-waiting:not(.is-in) { opacity: 0; transform: translateY(28px); }
  .lp-flow li:nth-child(2),
  .lp-points li:nth-child(2),
  .lp-duty-row:nth-child(2) { transition-delay: 0.08s; }
  .lp-flow li:nth-child(3),
  .lp-points li:nth-child(3),
  .lp-duty-row:nth-child(3) { transition-delay: 0.16s; }
  .lp-duty-row:nth-child(4) { transition-delay: 0.24s; }
  .lp-duty-row:nth-child(5) { transition-delay: 0.32s; }
}

/* スートの飾り(ヒーローと最後の案内) */
.lp-hero-deco,
.lp-cta-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lp-float { position: absolute; color: #fff; opacity: 0.05; }
.lp-float-1 { top: 6%; left: -48px; width: 200px; height: 200px; transform: rotate(-18deg); }
.lp-float-2 { top: 58%; left: 38%; width: 120px; height: 120px; transform: rotate(12deg); }
.lp-float-3 { top: -40px; right: 8%; width: 170px; height: 170px; transform: rotate(8deg); }
.lp-float-4 { bottom: 12%; right: -60px; width: 260px; height: 260px; transform: rotate(-10deg); }
.lp-float-5 { top: 10%; right: -50px; width: 240px; height: 240px; transform: rotate(14deg); }
.lp-float-6 { bottom: -60px; left: 6%; width: 200px; height: 200px; transform: rotate(-12deg); }

/* カードの裏面(山札・最後の案内のめくれるカード) */
.lp-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lp-navy-head);
  box-shadow: 0 6px 14px rgba(22, 31, 58, 0.28);
}
.lp-back::before {
  content: '';
  position: absolute;
  inset: 7%;
  border: 1.5px solid rgba(255, 216, 20, 0.55);
  border-radius: 6px;
}
.lp-back img { width: 56%; height: auto; border-radius: 6px; }

/* ---- 1. ヒーロー ---- */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 88px;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(60, 82, 160, 0.55) 0%, rgba(60, 82, 160, 0) 70%),
    linear-gradient(180deg, var(--lp-navy-head) 0%, var(--lp-navy) 48%, var(--lp-navy-deep) 100%);
  color: #fff;
}
/* 下の端をゆるい弧にして、次の生成りの帯につなげる */
.lp-hero::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -1px;
  height: clamp(32px, 5vw, 64px);
  background: var(--lp-cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.lp-hero-grid { position: relative; z-index: 1; display: grid; gap: 22px; align-items: center; }
.lp-fan { order: -1; }
.lp-eyebrow { margin: 0 0 14px; color: var(--lp-red-light); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; line-height: 1.5; }
.lp-eyebrow-ja { display: block; margin-top: 2px; color: var(--lp-on-dark-soft); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; }
.lp-hero-title {
  margin: 0;
  color: #fff;
  font-family: var(--heading);
  font-size: clamp(1.75rem, 0.6rem + 5.2vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.32;
}
/* 見出しの2行目(10文字)が、どの幅でも1行に収まる大きさにする(文の欄の幅に合わせる) */
.lp-hero-text { container-type: inline-size; }
@supports (font-size: 1cqi) {
  .lp-hero-title { font-size: clamp(1.6rem, 9.2cqi, 3.5rem); }
}
.lp-hero-lead { max-width: 30em; margin: 18px 0 0; color: var(--lp-on-dark); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem); line-height: 1.9; }
.lp-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 26px 0 0; }
.lp-hero-note { max-width: 21em; margin: 0; color: var(--lp-on-dark-soft); font-size: 0.84rem; line-height: 1.7; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.lp-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--lp-on-dark);
  font-size: 0.8rem;
  line-height: 1.5;
}
.lp-chips li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lp-gold); }
.lp-hero-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 14px 0 0; }
.lp-hero-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.92rem; text-decoration-color: rgba(255, 255, 255, 0.45); }
.lp-hero-links a::after { content: '↓'; content: '↓' / ''; margin-left: 6px; }
@media (max-width: 479px) {
  .lp-hero-cta .btn { width: 100%; }
  /* 小さなスマートフォン(高さ 548px ほどの iPhone SE)でも、最初の画面に「おためしで遊ぶ」が入るように詰める。
     日本語の小見出しは、すぐ上のヘッダーのロゴと同じ文言なので、ここでは出さない */
  .lp-hero { padding-top: 12px; }
  .lp-hero-grid { gap: 12px; }
  .lp-eyebrow { margin-bottom: 8px; }
  .lp-eyebrow-ja { display: none; }
  .lp-hero-lead { margin-top: 12px; line-height: 1.8; }
  .lp-hero-cta { margin-top: 18px; }
}

/* カードの扇。回す中心をカードの下に置いて、扇の形に開く */
.lp-fan { position: relative; height: clamp(150px, 44vw, 260px); margin: 0; }
.lp-fan::before {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 84, 78, 0.34), rgba(201, 84, 78, 0));
}
.lp-fan img {
  --r: 0deg;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: clamp(84px, 25vw, 150px);
  height: auto;
  aspect-ratio: 489 / 674;
  margin: 0 auto;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
  transform: rotate(var(--r));
  transform-origin: 50% 125%;
}
.lp-fan img:nth-child(1) { --r: -26deg; z-index: 1; }
.lp-fan img:nth-child(2) { --r: -13deg; z-index: 2; }
.lp-fan img:nth-child(3) { --r: 13deg; z-index: 2; }
.lp-fan img:nth-child(4) { --r: 26deg; z-index: 1; }
.lp-fan img:nth-child(5) { z-index: 3; width: clamp(94px, 28vw, 170px); }
@media (prefers-reduced-motion: no-preference) {
  .lp-fan img { animation: lp-fan-open 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .lp-fan img:nth-child(2),
  .lp-fan img:nth-child(3) { animation-delay: 0.08s; }
  .lp-fan img:nth-child(1),
  .lp-fan img:nth-child(4) { animation-delay: 0.16s; }
  .lp-fan img:nth-child(5) { animation-name: lp-fan-rise; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .lp-fan img:hover { transform: rotate(var(--r)) translateY(-16px); }
}
@media (max-width: 479px) {
  .lp-fan { height: 124px; }
  .lp-fan img { width: 70px; }
  .lp-fan img:nth-child(5) { width: 82px; }
}
@keyframes lp-fan-open {
  from { transform: rotate(0deg) translateY(14px); }
  to { transform: rotate(var(--r)); }
}
@keyframes lp-fan-rise {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (min-width: 960px) {
  .lp-hero { padding: 48px 0 120px; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; min-height: min(640px, calc(100svh - 180px)); }
  .lp-fan { order: 0; height: 440px; }
  .lp-fan img { width: 190px; }
  .lp-fan img:nth-child(5) { width: 214px; }
}

/* ---- 2. ブラウザを開くだけで(しくみ) ---- */
.lp-about { padding-top: clamp(48px, 6vw, 88px); background: var(--lp-cream); }
.lp-about-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) {
  .lp-about-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; }
  .lp-table { order: -1; }
}
.lp-about .lp-head { margin-bottom: 0; }
.lp-flow { display: grid; margin: 28px 0 0; padding: 0; list-style: none; }
.lp-flow li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--lp-line);
}
.lp-flow li:last-child { border-bottom: 1px solid var(--lp-line); }
.lp-flow-num { color: var(--lp-red); font-family: var(--heading); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.lp-flow-title { margin: 0 0 4px; color: var(--lp-navy); font-family: var(--heading); font-size: 1.15rem; letter-spacing: 0.04em; line-height: 1.5; }
.lp-flow p { margin: 0; color: var(--lp-ink-soft); line-height: 1.85; }

/* テーブルに見立てた図: 山札 → 候補 → 手放す/入れ替える → 手札 */
.lp-table { margin: 0; }
.lp-table-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas:
    'deck cand drop'
    '. swap .'
    'hand hand hand';
  align-items: end;
  justify-items: center;
  gap: 8px 10px;
  padding: clamp(22px, 4vw, 44px) clamp(16px, 3vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(rgba(31, 42, 77, 0.07) 1px, transparent 1.4px) 0 0 / 18px 18px,
    var(--lp-paper);
  box-shadow: var(--lp-shadow);
}
.lp-table-deck { grid-area: deck; position: relative; width: min(100%, 96px); aspect-ratio: 489 / 674; margin-bottom: 30px; }
.lp-table-deck .lp-back:nth-child(1) { transform: translate(-7px, 7px) rotate(-5deg); }
.lp-table-deck .lp-back:nth-child(2) { transform: translate(-3px, 3px) rotate(-2deg); }
.lp-table-deck .lp-tag { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); }
.lp-table-candidate { grid-area: cand; display: grid; justify-items: center; gap: 10px; }
.lp-table-candidate img {
  width: min(100%, 164px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(22, 31, 58, 0.24), 0 0 0 3px var(--lp-red);
  transform: rotate(-3deg);
}
.lp-table-drop { grid-area: drop; display: grid; justify-items: center; gap: 6px; margin-bottom: 30px; color: var(--lp-red); }
.lp-table-arrow-r { width: 30px; height: 30px; }
.lp-trash { display: grid; justify-items: center; gap: 8px; }
.lp-trash svg { width: 58px; height: 58px; padding: 12px; border: 2px dashed currentColor; border-radius: 16px; background: rgba(201, 84, 78, 0.08); }
.lp-table-swap {
  grid-area: swap;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
  color: var(--lp-navy);
  font-size: 0.82rem;
  font-weight: 700;
}
.lp-table-swap svg { width: 24px; height: 24px; transform: rotate(90deg); }
.lp-table-hand {
  grid-area: hand;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 104px));
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 12px 12px;
  border: 2px dashed rgba(31, 42, 77, 0.2);
  border-radius: 18px;
}
.lp-table-hand img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--lp-card-shadow); }
.lp-table-hand .lp-tag { grid-column: 1 / -1; justify-self: center; }
.lp-tag {
  margin: 0;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(31, 42, 77, 0.08);
  color: var(--lp-navy);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}
.lp-tag-strong { background: var(--lp-red-band); color: #fff; }

/* ---- 3. 52枚・4つの視点(濃紺・流れるカード) ---- */
.lp-cards {
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(52, 70, 138, 0.55) 0%, rgba(52, 70, 138, 0) 70%),
    var(--lp-navy-deep);
}
/* 列は画面の幅まで(minmax(0, 1fr))。auto のままだと、横に長い段に合わせて列が広がり、止めるボタンが画面の外に出る */
.lp-marquee { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2vw, 22px); }
.lp-marquee-bar { display: flex; justify-content: flex-end; min-height: 0; }
.lp-marquee-toggle {
  min-height: 44px;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.lp-marquee-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.lp-row { position: relative; min-width: 0; }
.lp-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding-inline: var(--lp-gutter);
  color: #fff;
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lp-row-label { flex-wrap: wrap; }
.lp-row-label svg { width: 18px; height: 18px; }
.lp-row-note { margin-left: 4px; color: var(--lp-on-dark-soft); font-family: var(--body); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; }
.lp-row-heart .lp-row-label svg,
.lp-row-diamond .lp-row-label svg { color: var(--lp-red-light); }
.lp-row-viewport {
  display: flex;
  gap: var(--lp-card-gap);
  padding: 8px var(--lp-gutter) 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  /* 流れていないとき(動きを減らす設定・JS なし・止めたとき)は、横に動かせると分かるようにバーを出す */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.lp-row-track { display: flex; flex: none; gap: var(--lp-card-gap); margin: 0; padding: 0; list-style: none; }
.lp-row-track li { flex: none; width: var(--lp-card-w); scroll-snap-align: start; }
.lp-row-track img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 489 / 674;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}
.lp-row-track li:nth-child(odd) img { transform: rotate(-1.5deg); }
.lp-row-track li:nth-child(even) img { transform: rotate(1.5deg); }
@media (min-width: 1024px) {
  /* 流れているときだけ、段の名前を左端に重ねる(背景の色から透明へぼかした上に置く)。
     止まっているときに重ねると、各段の1枚目が隠れたままになる */
  .lp-marquee.is-running .lp-row-label {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    margin: 0;
    padding-right: 90px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(90deg, var(--lp-navy-deep) 55%, rgba(22, 31, 58, 0));
    pointer-events: none;
  }
  .lp-marquee.is-running .lp-row-label svg { margin-bottom: 2px; }
  .lp-marquee.is-running .lp-row-note { margin: 2px 0 0; }
}
/* home.js が動いたときだけ流す(2つめの並びは home.js が複製して足す) */
.lp-marquee.is-running .lp-row-viewport { overflow: hidden; scroll-snap-type: none; }
@media (prefers-reduced-motion: no-preference) {
  .lp-marquee.is-running .lp-row-track { animation: lp-marquee var(--lp-dur, 80s) linear infinite; }
  .lp-marquee.is-running .lp-row-diamond .lp-row-track,
  .lp-marquee.is-running .lp-row-club .lp-row-track { animation-direction: reverse; }
  .lp-row-heart { --lp-dur: 80s; }
  .lp-row-diamond { --lp-dur: 92s; }
  .lp-row-spade { --lp-dur: 86s; }
  .lp-row-club { --lp-dur: 98s; }
  .lp-marquee.is-paused .lp-row-track,
  .lp-marquee.is-offscreen .lp-row-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .lp-row:hover .lp-row-track { animation-play-state: paused; }
}
@keyframes lp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--lp-card-gap))); }
}

.lp-cards-foot { max-width: calc(680px + var(--lp-gutter) * 2); margin-top: clamp(40px, 6vw, 64px); }
.lp-draw {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}
@media (min-width: 600px) { .lp-draw { grid-template-columns: 160px minmax(0, 1fr); padding: 28px; } }
.lp-draw-card { perspective: 900px; }
.lp-draw-img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4); }
@media (prefers-reduced-motion: no-preference) {
  .lp-draw-img { transition: transform 0.28s ease-in; }
  .lp-draw-img.is-turning { transform: rotateY(90deg); }
}
.lp-draw-title { margin: 0 0 8px; color: #fff; font-family: var(--heading); font-size: 1.22rem; letter-spacing: 0.04em; }
.lp-draw p { margin: 0 0 12px; font-size: 0.92rem; line-height: 1.8; }
.lp-draw-text { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; }
.lp-draw-text > * { flex: 1 1 100%; }
.lp-draw-text > .lp-draw-btn,
.lp-draw-text > .lp-textlink { flex: 0 1 auto; }
@media (max-width: 599px) {
  /* スマートフォンでは、カードを大きくして上に置く(横に並べると、文の欄が狭すぎる) */
  .lp-draw { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; text-align: center; }
  .lp-draw-card { width: 148px; }
  .lp-draw-text { justify-content: center; }
}
.lp-draw-btn {
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--lp-gold);
  color: var(--lp-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.lp-draw-btn:hover { background: var(--lp-gold-hover); }

/* ---- 4. 考え方(縦書き) ---- */
.lp-stance { overflow: hidden; background: var(--lp-sand); }
.lp-stance::before {
  content: '“';
  position: absolute;
  top: -0.18em;
  left: 2%;
  color: rgba(31, 42, 77, 0.07);
  font-family: var(--heading);
  font-size: clamp(12rem, 30vw, 22rem);
  line-height: 1;
  pointer-events: none;
}
.lp-stance-grid { position: relative; display: grid; gap: 32px; }
.lp-stance-words { position: relative; }
.lp-stance-title {
  margin: 0;
  color: var(--lp-navy);
  font-family: var(--heading);
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.lp-stance-title span { display: block; margin: 0 0 6px; padding-left: 14px; border-left: 3px solid var(--lp-red); }
.lp-stance-card {
  position: absolute;
  top: 0;
  right: 4px;
  width: 80px;
  height: auto;
  border-radius: 9px;
  box-shadow: var(--lp-card-shadow);
  transform: rotate(6deg);
}
.lp-stance-words .lp-kicker { display: flex; align-items: flex-end; min-height: 112px; margin-bottom: 18px; padding-right: 100px; }
.lp-stance-lead { margin: 0; color: var(--lp-ink); font-family: var(--heading); font-size: 1.12rem; line-height: 2; }
.lp-points { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.lp-point {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.7);
}
.lp-point-mark { width: 26px; height: 26px; color: var(--lp-navy); }
.page-home svg.lp-mark-red { color: var(--lp-red); }
.lp-point-title { margin: 0 0 4px; color: var(--lp-navy); font-family: var(--heading); font-size: 1.08rem; letter-spacing: 0.04em; }
.lp-point p { margin: 0; color: var(--lp-ink-soft); font-size: 0.94rem; line-height: 1.85; }
.lp-promises {
  display: grid;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--lp-paper);
}
.lp-promises-title { margin: 0; color: var(--lp-navy); font-family: var(--heading); font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.6; }
.lp-promises-title small { display: block; color: var(--lp-ink-soft); font-family: var(--body); font-size: 0.74rem; font-weight: 400; }
.lp-promises ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5em), 1fr)); gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.lp-promises li { display: flex; align-items: center; gap: 8px; color: var(--lp-navy); font-weight: 700; }
.lp-promises li svg { flex: none; width: 18px; height: 18px; }
@media (min-width: 768px) {
  .lp-promises { padding: 24px 36px; }
}
@media (min-width: 1024px) {
  .lp-promises { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 40px; }
}
@media (min-width: 960px) {
  .lp-stance-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .lp-stance-words { order: 2; display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 28px; min-height: 30rem; padding-right: 4%; }
  .lp-stance-words .lp-kicker { display: block; min-height: 0; margin: 0; padding: 0; writing-mode: vertical-rl; }
  /* 縦書き。1句ずつ、右から左へ並ぶ */
  .lp-stance-title { writing-mode: vertical-rl; font-size: 2.9rem; line-height: 1.75; letter-spacing: 0.14em; }
  .lp-stance-title span { margin: 0; padding: 0; border: 0; }
  .lp-stance-title span:nth-child(2) { padding-top: 1.2em; }
  .lp-stance-title span:nth-child(3) { padding-top: 2.4em; }
  .lp-stance-card { top: auto; right: auto; bottom: -12px; left: 0; width: 150px; transform: rotate(-6deg); }
}

/* ---- 5. 遊び方と画面のようす(ジグザグ) ---- */
.lp-how { background: var(--lp-paper); }
.lp-steps { position: relative; display: grid; gap: clamp(56px, 8vw, 96px); margin: 0; padding: 0; list-style: none; }
.lp-step { display: grid; gap: 26px; align-items: center; }
.lp-step-text { position: relative; }
.lp-step-num {
  margin: 0 0 -0.35em;
  color: rgba(201, 84, 78, 0.2);
  font-family: var(--heading);
  font-size: clamp(3.4rem, 2rem + 5vw, 6rem);
  font-weight: 700;
  line-height: 1;
}
.lp-step-title { margin: 0 0 12px; color: var(--lp-navy); font-family: var(--heading); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); letter-spacing: 0.04em; line-height: 1.5; }
.lp-step-text p { margin: 0 0 10px; line-height: 1.9; }
.lp-step-text .lp-step-num { margin: 0 0 -0.35em; line-height: 1; }
.lp-step-note { padding: 8px 14px; border-radius: 10px; background: var(--lp-cream); color: var(--lp-ink-soft); font-size: 0.86rem; }
.lp-step-visual { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.lp-how-try { display: flex; justify-content: center; margin: clamp(40px, 6vw, 64px) 0 0; }
.lp-how-try .lp-textlink { color: var(--lp-navy); font-size: 1.05rem; }
.lp-step-visual figcaption { max-width: 22em; color: var(--lp-ink-soft); font-size: 0.86rem; line-height: 1.7; text-align: center; }
@media (max-width: 719px) {
  /* 人数と手札の見本は、すぐ上の文と同じ内容なので、縦に長くなるスマートフォンでは出さない */
  .lp-step:nth-child(2) .lp-step-visual { display: none; }
}
@media (min-width: 720px) {
  /* 文の行と画面の行をそろえる(subgrid。使えないブラウザでは、それぞれ上から詰めるだけ) */
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
  .lp-step { grid-row: span 2; grid-template-rows: subgrid; gap: 22px; align-content: start; align-items: start; }
  .lp-step-visual { justify-content: flex-start; }
  .lp-phone { width: min(100%, 240px); }
}
@media (min-width: 1200px) {
  .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
  .lp-phone { width: min(100%, 224px); }
}

/* スマートフォンの枠。画面の比は 9:16 にそろえ、長い写真は下を切り、短い写真は画面の地色で埋める */
.lp-phone {
  width: min(68vw, 260px);
  padding: 10px;
  border-radius: 40px;
  background: #1b2233;
  box-shadow: 0 30px 60px rgba(27, 34, 51, 0.26), inset 0 0 0 2px #3a4460;
  transform: rotate(-2deg);
}
.lp-step:nth-child(even) .lp-phone { transform: rotate(2deg); }
.lp-phone-screen { aspect-ratio: 9 / 16; overflow: hidden; border-radius: 30px; background: #efebe3; }
.lp-phone-screen img { display: block; width: 100%; height: auto; }
/* 時間を決める画面は、下の端に合わせて切る(文にある「お試しモード」の枠まで見せる) */
.lp-step:nth-child(1) .lp-phone-screen img { height: 100%; object-fit: cover; object-position: 50% 100%; }
/* 結果の画面は短いので、枠を写真の高さに合わせる(下に何もない面を出さない) */
.lp-step:nth-child(4) .lp-phone-screen { aspect-ratio: 563 / 640; }
@media (prefers-reduced-motion: no-preference) {
  .lp-phone { transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .lp-step.is-waiting:not(.is-in) .lp-phone { transform: rotate(0deg) translateY(12px); }
}

/* 人数と手札の画面を簡単にした見本 */
/* 見本は本物の文字なので、狭い幅や文字を大きくしたときは縦に伸ばす(切らない) */
.lp-mock { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px 16px; }
.lp-phone-screen.lp-mock { overflow: visible; }
.lp-mock-q { margin: 6px 0 0; color: var(--lp-ink); font-size: 0.78rem; font-weight: 700; text-align: center; }
.lp-mock-opts { display: grid; gap: 8px; }
.lp-mock-opt {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1.5px solid #d6d0c4;
  border-radius: 12px;
  background: #fffdf8;
  color: var(--lp-navy);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}
.lp-mock-opt small { color: var(--lp-ink-soft); font-size: 0.68rem; font-weight: 500; }
.lp-mock-opt.is-on { border-color: #1667c7; background: #eaf2fc; box-shadow: 0 0 0 3px rgba(22, 103, 199, 0.15); }

/* ---- 6. 画面にまかせる(濃紺・方眼) ---- */
.lp-easy {
  background-color: var(--lp-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}
.lp-easy-grid { display: grid; gap: 36px; }
.lp-easy-head { margin: 0; }
.lp-easy .lp-title { font-size: clamp(1.55rem, 1.05rem + 1.9vw, 2.4rem); }
@media (min-width: 960px) {
  .lp-easy-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
}
/* 画面の高さを rem で見るので、文字を大きくしている人には貼りつけない(説明の最後が画面の下に隠れないように) */
@media (min-width: 960px) and (min-height: 46rem) {
  .lp-easy-head { position: sticky; top: 104px; }
}
.lp-duty { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lp-duty-row { padding: 18px 20px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; background: rgba(255, 255, 255, 0.05); }
.lp-duty-old { position: relative; display: inline-block; margin: 0 0 6px; color: var(--lp-on-dark-soft); font-size: 0.86rem; }
.lp-duty-old::after {
  content: '';
  position: absolute;
  top: 52%;
  left: -2px;
  right: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--lp-red-light);
  transform-origin: left center;
}
.lp-duty-new { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #fff; font-weight: 700; line-height: 1.75; }
.lp-duty-new svg { flex: none; width: 24px; height: 24px; margin-top: 2px; padding: 4px; border-radius: 50%; background: var(--lp-gold); color: var(--lp-ink); }
.lp-toast {
  display: inline-block;
  margin: 12px 0 0 34px;
  padding: 6px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: var(--lp-ink);
  font-size: 0.8rem;
  font-weight: 700;
}
@media (prefers-reduced-motion: no-preference) {
  .lp-duty-old::after { transition: transform 0.5s ease 0.35s; }
  .lp-duty-row.is-waiting:not(.is-in) .lp-duty-old::after { transform: scaleX(0); }
}
.lp-tiles { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
@media (min-width: 520px) { .lp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-tile { padding: 18px 20px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.lp-tile-title { margin: 0 0 6px; color: #fff; font-family: var(--heading); font-size: 1.02rem; letter-spacing: 0.04em; }
.lp-tile p { margin: 0; color: var(--lp-on-dark); font-size: 0.86rem; line-height: 1.75; }

/* ---- 7. 使う場面(ひとり/ふたりの2色の面) ---- */
.lp-scenes { background: var(--lp-paper); padding-bottom: calc(var(--lp-sec-pad) + var(--lp-slant)); }
.lp-duo { display: grid; }
@media (min-width: 960px) { .lp-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-duo-panel { padding: clamp(40px, 6vw, 72px) var(--lp-gutter); }
.lp-duo-solo { background: #f7e6e2; }
.lp-duo-pair { background: #e8ecf6; }
.lp-duo-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  max-width: 520px;
  margin-inline: auto;
}
.lp-duo-card {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  width: clamp(76px, 18vw, 116px);
  height: auto;
  border-radius: 9px;
  box-shadow: var(--lp-card-shadow);
  transform: rotate(5deg);
}
.lp-duo-inner > :not(.lp-duo-card) { grid-column: 1; }
.lp-duo-inner > p:not(.lp-duo-quote),
.lp-duo-inner > .lp-tags { grid-column: 1 / -1; }
.lp-duo-mode { margin: 0 0 8px; color: var(--lp-navy); font-family: var(--heading); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 700; letter-spacing: 0.06em; }
.lp-duo-quote { justify-self: start; margin: 0 0 16px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: var(--lp-ink-soft); font-size: 0.78rem; }
.lp-duo-title { margin: 0 0 10px; color: var(--lp-ink); font-family: var(--heading); font-size: 1.15rem; letter-spacing: 0.04em; line-height: 1.6; }
.lp-duo-inner > p:not(.lp-duo-quote) { margin: 6px 0 0; line-height: 1.9; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.lp-tags li { padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--lp-navy); font-size: 0.8rem; font-weight: 700; }
.lp-screen-band {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 26px;
  border: 1px solid rgba(31, 42, 77, 0.08);
  border-radius: 24px;
  background: var(--lp-cream);
}
@media (min-width: 768px) { .lp-screen-band { grid-template-columns: 150px minmax(0, 1fr); gap: 32px; padding: 32px 40px; } }
.lp-screen-art { width: 120px; height: auto; color: var(--lp-navy); }
.lp-screen-title { margin: 0 0 8px; color: var(--lp-navy); font-family: var(--heading); font-size: 1.15rem; letter-spacing: 0.04em; }
.lp-screen-band p { margin: 0; line-height: 1.9; }
.lp-screen-band .lp-muted-note { margin-top: 8px; color: var(--lp-ink-soft); font-size: 0.84rem; }

/* ---- 8. おためし(赤の帯。上下を斜めに切る) ---- */
.lp-trial {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-block: calc(var(--lp-slant) * -1);
  padding-block: calc(clamp(64px, 9vw, 112px) + var(--lp-slant));
  background: linear-gradient(135deg, var(--lp-red-band) 0%, #9f3d38 45%, #8f3632 100%);
  color: #fff;
  clip-path: polygon(0 var(--lp-slant), 100% 0, 100% calc(100% - var(--lp-slant)), 0 100%);
}
.lp-trial-deco { position: absolute; top: -60px; right: -80px; width: 420px; height: 420px; color: #fff; opacity: 0.05; }
.lp-trial-grid { position: relative; display: grid; gap: 36px; align-items: center; }
.lp-trial-cards { order: 2; position: relative; height: clamp(170px, 46vw, 300px); }
.lp-trial-cards img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  width: clamp(88px, 26vw, 160px);
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}
.lp-trial-cards img:nth-child(1) { transform: translateX(-62%) rotate(-10deg); }
.lp-trial-cards img:nth-child(2) { z-index: 1; transform: translateY(-10px); }
.lp-trial-cards img:nth-child(3) { transform: translateX(62%) rotate(10deg); }
.lp-trial-badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  padding: 4px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--lp-red-band);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
  white-space: nowrap;
}
.lp-trial .lp-kicker { color: #fff; }
.lp-trial .lp-title { color: #fff; }
.lp-trial-text > p { margin: 18px 0 0; color: #fff1ef; line-height: 1.9; }
.lp-taps { display: grid; gap: 10px; margin: 22px 0 26px; padding: 0; list-style: none; counter-reset: none; }
.lp-taps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}
.lp-tap-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--lp-red-band);
  font-family: var(--heading);
}
.page-home .lp-trial .btn-primary { background: #fff; color: var(--lp-red-band); box-shadow: 0 12px 26px rgba(80, 20, 16, 0.3); }
.page-home .lp-trial .btn-primary:hover:not(:disabled) { background: #fff3f1; color: var(--lp-red-band); }
.page-home .lp-trial .lp-btn-sub { opacity: 1; }
.lp-trial .btn-row { margin: 0; }
.lp-trial .lp-trial-note { margin-top: 16px; color: #ffe3df; font-size: 0.84rem; line-height: 1.8; }
@media (min-width: 768px) { .lp-taps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lp-taps li { flex-direction: column; text-align: center; } }
@media (min-width: 960px) {
  .lp-trial-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .lp-trial-cards { order: 0; }
}

/* ---- 9. 料金(チケットの形) ---- */
.lp-pricing { background: var(--lp-cream); padding-top: calc(var(--lp-sec-pad) + var(--lp-slant)); }
.page-home .lp-tickets { gap: 18px; margin: 0; }
.page-home .lp-ticket {
  position: relative;
  gap: 8px;
  padding: 26px 26px 22px;
  border: 0;
  border-radius: 20px;
  background: var(--lp-paper);
  box-shadow: 0 10px 30px rgba(31, 42, 77, 0.08);
}
.page-home .lp-ticket .plan-name { font-size: 1.2rem; }
.page-home .lp-ticket .plan-price { font-family: var(--heading); font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem); letter-spacing: 0.02em; }
.page-home .lp-ticket .plan-price small { white-space: nowrap; }
@media (min-width: 720px) and (max-width: 959px) {
  /* タブレットの3列では、「2,980」と「円」が別の行に割れないように、/月(税込) を下の行に出す */
  .page-home .lp-ticket { padding: 22px 18px 18px; }
  .page-home .lp-ticket .plan-price small { display: block; margin: 2px 0 0; }
  .page-home .lp-ticket .plan-note::before { left: -30px; }
  .page-home .lp-ticket .plan-note::after { right: -30px; }
}
.lp-sales-note {
  max-width: 760px;
  margin: 22px auto 0;
  padding: 14px 20px;
  border: 1px solid rgba(201, 84, 78, 0.35);
  border-radius: 14px;
  background: var(--lp-paper);
  color: var(--lp-ink);
  font-size: 0.92rem;
  line-height: 1.8;
  text-align: center;
}
.page-home .lp-ticket .plan-limit { background: var(--lp-navy); color: #fff; }
/* ミシン目: 点線の両端に、背景と同じ色の丸い切り欠き */
.page-home .lp-ticket .plan-note {
  position: relative;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 2px dashed rgba(31, 42, 77, 0.16);
  font-size: 0.82rem;
}
.page-home .lp-ticket .plan-note::before,
.page-home .lp-ticket .plan-note::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lp-cream);
}
.page-home .lp-ticket .plan-note::before { left: -38px; }
.page-home .lp-ticket .plan-note::after { right: -38px; }
@media (max-width: 719px) {
  .page-home .lp-ticket {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'name limit' 'price price' 'note note';
    column-gap: 12px;
    align-items: center;
  }
  .page-home .lp-ticket .plan-name { grid-area: name; }
  .page-home .lp-ticket .plan-limit { grid-area: limit; }
  .page-home .lp-ticket .plan-price { grid-area: price; }
  .page-home .lp-ticket .plan-note { grid-area: note; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .page-home .lp-ticket { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .page-home .lp-ticket:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 42, 77, 0.14); }
}
.lp-price-info { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 960px) {
  .lp-price-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .lp-terms { grid-column: 1 / -1; }
}
.lp-terms p { margin: 0; font-size: 0.94rem; line-height: 1.9; }
.lp-count,
.lp-free { padding: 26px; border-radius: 20px; background: var(--lp-paper); }
.lp-sub { margin: 0 0 14px; color: var(--lp-navy); font-family: var(--heading); font-size: 1.12rem; letter-spacing: 0.04em; }
.lp-count-table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 0.9rem; }
.lp-count-table th { padding: 0 8px 8px; border-bottom: 2px solid var(--lp-navy); color: var(--lp-ink-soft); font-size: 0.76rem; text-align: left; }
.lp-count-table td { padding: 10px 8px; border-bottom: 1px solid var(--lp-line); vertical-align: top; }
.lp-count-table td:last-child { color: var(--lp-navy); font-weight: 700; white-space: nowrap; }
.lp-count-sub { display: block; color: var(--lp-ink-soft); font-size: 0.78rem; font-weight: 500; }
.lp-free-list { display: grid; gap: 16px; margin: 0 0 14px; padding: 0; list-style: none; }
.lp-free-list > li { padding-left: 16px; border-left: 3px solid var(--lp-red); }
.lp-free-name { margin: 0 0 4px; color: var(--lp-navy); font-weight: 700; }
.lp-free-list p { margin: 0; font-size: 0.9rem; line-height: 1.85; }
.lp-license { margin: 8px 0 0; padding-left: 1.3em; font-size: 0.86rem; }
.lp-license li { margin: 0 0 2px; }
.lp-center-row { justify-content: center; margin-top: 36px; }

/* ---- 10. よくある質問 ---- */
.lp-faq { background: var(--lp-paper); }
.lp-faq-grid { display: grid; gap: 28px; }
.lp-faq-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; }
.lp-faq-side .lp-head { margin: 0 0 12px; }
.lp-faq-card { grid-column: 2; grid-row: 1 / span 2; width: 72px; height: auto; border-radius: 8px; box-shadow: var(--lp-card-shadow); transform: rotate(-6deg); }
.lp-faq-side .lp-small { grid-column: 1; margin: 0; }
.lp-faq-side .lp-small a { white-space: nowrap; }
@media (min-width: 960px) {
  .lp-faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 72px; align-items: start; }
  .lp-faq-side { display: block; }
  .lp-faq-card { display: block; width: 120px; margin: 8px 0 24px 8px; }
}
@media (min-width: 960px) and (min-height: 46rem) {
  .lp-faq-side { position: sticky; top: 104px; }
}
.lp-qa { border-bottom: 1px solid var(--lp-line); }
.lp-qa:first-child { border-top: 1px solid var(--lp-line); }
.lp-qa summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 4px;
  color: var(--lp-navy);
  font-family: var(--heading);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.55;
  list-style: none;
  cursor: pointer;
}
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary::before { content: 'Q'; content: 'Q' / ''; flex: none; color: var(--lp-red); font-size: 1.2rem; }
.lp-qa summary::after {
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 50%;
  background:
    linear-gradient(var(--lp-navy), var(--lp-navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--lp-navy), var(--lp-navy)) center / 2px 12px no-repeat,
    rgba(31, 42, 77, 0.07);
}
.lp-qa[open] summary::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .lp-qa summary::after { transition: transform 0.2s ease; } }
.lp-qa summary:hover { color: var(--lp-red-text); }
.lp-qa-a { padding: 0 4px 20px 34px; }
.lp-qa-a p { margin: 0; color: var(--lp-ink-soft); line-height: 1.9; }

/* ---- 11. 最後の案内(めくれるカード) ---- */
.lp-cta {
  position: relative;
  overflow: hidden;
  padding-block: var(--lp-sec-pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(760px 480px at 28% 40%, rgba(52, 70, 138, 0.6) 0%, rgba(52, 70, 138, 0) 70%),
    var(--lp-navy-deep);
  color: var(--lp-on-dark);
}
.lp-cta-grid { position: relative; z-index: 1; display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .lp-cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 72px; } }
.lp-cta-tagline { margin: 0 0 12px; color: var(--lp-red-light); font-family: var(--heading); font-size: 0.95rem; letter-spacing: 0.2em; }
.lp-cta .lp-title { color: #fff; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.8rem); }
.lp-cta-text > p:not(.lp-cta-tagline) { margin: 18px 0 0; line-height: 1.9; }
.lp-cta .btn-row { margin-top: 26px; }
.lp-cta .lp-cta-note { color: var(--lp-on-dark-soft); font-size: 0.84rem; }
.lp-flip { position: relative; width: min(46vw, 230px); aspect-ratio: 489 / 674; margin-inline: auto; perspective: 1400px; }
.lp-flip-shadow { position: absolute; top: 8%; width: 82%; height: auto; border-radius: 12px; opacity: 0.32; }
.lp-flip-shadow-1 { left: -46%; transform: rotate(-14deg); }
.lp-flip-shadow-2 { right: -46%; transform: rotate(12deg); }
.lp-flip-card { position: absolute; inset: 0; transform: rotateY(180deg); transform-style: preserve-3d; }
.lp-flip-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.45);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.lp-flip-back { display: grid; place-items: center; background: var(--lp-navy-head); border: 1px solid rgba(255, 255, 255, 0.12); }
.lp-flip-back::before { content: ''; position: absolute; inset: 7%; border: 2px solid rgba(255, 216, 20, 0.6); border-radius: 8px; }
.lp-flip-back img { width: 48%; height: auto; border-radius: 10px; }
.lp-flip-front { background: #fff; transform: rotateY(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .lp-flip-card { transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s; }
  .lp-flip.is-waiting:not(.is-in) .lp-flip-card { transform: rotateY(0deg); }
}

/* ---- スマートフォンの下に出る「おためし」のボタン(home.js が出し入れする。JS が無ければ出さない) ---- */
.lp-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--lp-gold);
  box-shadow: 0 12px 30px rgba(22, 31, 58, 0.35);
  color: var(--lp-ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transform: translateY(calc(100% + 32px));
  visibility: hidden;
}
.lp-dock span { font-size: 0.72rem; font-weight: 500; opacity: 0.85; }
.lp-dock:hover { color: var(--lp-ink); }
.lp-dock.is-shown { transform: none; visibility: visible; }
.lp-dock:focus-visible { outline-color: var(--lp-navy-deep); }
@media (prefers-reduced-motion: no-preference) {
  .lp-dock { transition: transform 0.25s ease, visibility 0s linear 0.25s; }
  .lp-dock.is-shown { transition: transform 0.25s ease, visibility 0s; }
}
@media (min-width: 761px) { .page-home .lp-dock { display: none; } }

/* フッターの中身を、トップページの本文と同じ幅にそろえる(ほかのページは 880px のまま) */
.page-home .site-footer nav,
.page-home .site-copy { max-width: 1120px; }

@media print {
  .page-home .site-header { position: static; }
  .lp-reveal { opacity: 1 !important; transform: none !important; }
  .lp-dock,
  .lp-marquee-toggle,
  .lp-draw-btn { display: none !important; }
}
