/* =====================================================================
   Yoru Match - 成人向けアフィリエイトLP テンプレート
   A1nct 様専用デモ / LIXデザイン
   -----------------------------------------------------------------
   色・角丸・フォントは config.json の "theme" から CSS変数として注入されます。
   （--c-primary / --c-primary-dark / --c-accent / --c-bg /
     --c-surface / --c-text / --c-muted / --font-base / --radius）
   ===================================================================== */

:root {
  --c-primary: #ff5c9e;
  --c-primary-dark: #e13f83;
  --c-accent: #ffd44d;
  --c-bg: #fff4f9;
  --c-surface: #ffffff;
  --c-text: #3d2b35;
  --c-muted: #9a8791;
  --font-base: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --radius: 22px;

  --maxw: 480px;          /* LPの基準幅（スマホ最適化） */
  --shadow-sm: 0 4px 14px rgba(225, 63, 131, .10);
  --shadow-md: 0 12px 34px rgba(225, 63, 131, .16);
  --shadow-lg: 0 22px 60px rgba(225, 63, 131, .22);
}

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

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

body {
  font-family: var(--font-base);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b, strong { font-weight: 700; }

/* 画面全体の背景（やわらかいピンクのグラデ + ハートパターン） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -5%, rgba(255, 92, 158, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 212, 77, .18), transparent 55%),
    var(--c-bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("../img/hearts-pattern.svg");
  background-size: 260px;
  opacity: .5;
  pointer-events: none;
}

/* =========================== デモ用バナー =========================== */
.demo-ribbon {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 8px 14px;
  background: #241722;
  color: #ffe6f1;
  font-size: 12px;
  line-height: 1.5;
}
.demo-ribbon__tag {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .12em;
}
.demo-ribbon__text { flex: 1 1 260px; }
.demo-ribbon__link {
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s;
}
.demo-ribbon__link:hover { background: rgba(255, 255, 255, .16); }

/* =========================== レイアウト =========================== */
#app { position: relative; }

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  background: transparent;
  padding-bottom: 108px; /* 追従ボタンぶんの余白 */
}

.section {
  padding: 44px 22px;
  position: relative;
}
.section--tint { background: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }

.section-title {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 6px;
  white-space: pre-line;
}
.section-title .en {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--c-primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.section-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: var(--c-accent);
  margin: 12px auto 0;
}
.section-lead {
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
  margin-top: 14px;
  margin-bottom: 26px;
}

/* リビール（スクロールで表示）
   ※ JavaScriptが有効なときだけ隠す。無効時・保険タイマーで必ず表示される。 */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal-on .reveal { opacity: 0; transform: translateY(24px); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

/* =========================== HERO =========================== */
.hero {
  position: relative;
  min-height: 88vh;
  padding: 30px 22px 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero__bg--video { pointer-events: none; }
.hero::after { /* 下側を暗くして文字を読みやすく */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(45, 20, 38, .12) 0%,
    rgba(45, 20, 38, .30) 45%,
    rgba(45, 20, 38, .78) 100%);
}
.hero__inner { position: relative; z-index: 2; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero__badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #46e08a;
  box-shadow: 0 0 0 0 rgba(70, 224, 138, .7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(70, 224, 138, .7); }
  70%  { box-shadow: 0 0 0 12px rgba(70, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 224, 138, 0); }
}

.hero__name {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero__name small {
  font-size: 15px;
  font-weight: 500;
  opacity: .9;
  margin-left: 6px;
}
.hero__meta {
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  opacity: .95;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.hero__tags span {
  background: rgba(255, 92, 158, .85);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.hero__catch {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.55;
  margin-top: 20px;
  white-space: pre-line;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}
.hero__sub {
  font-size: 13px;
  margin-top: 10px;
  opacity: .95;
}
.hero__portrait {
  position: absolute;
  right: -10px;
  bottom: 120px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10px;
  letter-spacing: .3em;
  opacity: .85;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* =========================== CTA ボタン =========================== */
.cta-wrap { text-align: center; margin: 26px 0 4px; }

.btn-cta {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  box-shadow: 0 12px 26px rgba(225, 63, 131, .42);
  position: relative;
  overflow: hidden;
  animation: heartbeat 2.4s ease-in-out infinite;
}
.btn-cta::after { /* きらっと光る */
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0% { left: -60%; } 55%,100% { left: 130%; } }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  8% { transform: scale(1.035); }
  16% { transform: scale(1); }
}
.btn-cta:active { transform: scale(.98); }
.btn-cta small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: .92;
  margin-top: 4px;
  letter-spacing: .04em;
}
.cta-micro {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 10px;
}

/* 追従ボタン */
.floating-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 244, 249, 0), rgba(255, 244, 249, .95) 30%);
  transform: translateY(120%);
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.2);
}
.floating-cta.is-show { transform: none; }
.floating-cta a {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  padding: 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  box-shadow: var(--shadow-md);
}

/* =========================== おすすめ（intro） =========================== */
.intro-list {
  display: grid;
  gap: 12px;
}
.intro-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 15px 18px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 14.5px;
}
.intro-item .ic {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe3ef, #ffd5e6);
  color: var(--c-primary-dark);
}
.intro-item .ic svg { width: 22px; height: 22px; }
.intro-item .ic img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }

/* =========================== 3ステップ =========================== */
.steps {
  display: grid;
  gap: 14px;
}
.step {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 20px 20px 20px 66px;
  box-shadow: var(--shadow-sm);
}
.step__no {
  position: absolute;
  left: 16px;
  top: 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
}
.step__title { font-weight: 900; font-size: 15.5px; }
.step__text { font-size: 13px; color: var(--c-muted); margin-top: 2px; }

/* =========================== プロフィール =========================== */
.profile-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.profile-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.profile-card__body { padding: 8px 20px 20px; }
.profile-row {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed #f0d7e3;
  font-size: 14px;
}
.profile-row:last-child { border-bottom: none; }
.profile-row dt {
  flex: none;
  width: 74px;
  color: var(--c-primary-dark);
  font-weight: 700;
}
.profile-row dd { flex: 1; }

/* =========================== ギャラリー =========================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4;
  background: #ffe6f1;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:active img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 10px 8px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(45, 20, 38, .72));
}
.gallery figure:nth-child(3n) { grid-column: span 2; aspect-ratio: 16 / 10; }

/* =========================== メッセージ =========================== */
.message-box {
  background: linear-gradient(160deg, #fff, #fff1f7);
  border: 2px solid #ffe1ee;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.message-box::before {
  content: "♡";
  position: absolute;
  top: -14px; left: 22px;
  font-size: 26px;
  color: var(--c-primary);
  background: var(--c-bg);
  padding: 0 8px;
}
.message-box p { font-size: 14px; white-space: pre-line; }
.message-box .sign {
  text-align: right;
  margin-top: 16px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

/* =========================== 口コミ =========================== */
.reviews { display: grid; gap: 14px; }
.review {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.review__head { display: flex; align-items: center; gap: 11px; }
.review__ava {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #ffe0ee;
}
.review__who { font-weight: 700; font-size: 13.5px; }
.review__who span { color: var(--c-muted); font-weight: 500; font-size: 12px; }
.review__stars { margin-left: auto; color: var(--c-accent); font-size: 14px; letter-spacing: 1px; }
.review__stars .off { color: #ecd9e2; }
.review__text { font-size: 13px; margin-top: 9px; }
.review__date { font-size: 11px; color: var(--c-muted); margin-top: 6px; text-align: right; }

/* =========================== 緊急枠 =========================== */
.urgency {
  background: linear-gradient(135deg, #2a1622, #45213a);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.urgency h3 { font-size: 17px; font-weight: 900; }
.urgency p { font-size: 12px; opacity: .82; margin-top: 6px; }
.countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.countdown div {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 58px;
}
.countdown b {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  display: block;
  color: var(--c-accent);
}
.countdown span { font-size: 10px; opacity: .7; letter-spacing: .1em; }

/* =========================== FAQ =========================== */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--c-surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 44px 15px 18px;
  font-weight: 700;
  font-size: 14px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--c-primary); font-family: 'Poppins'; margin-right: 8px; font-weight: 700; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--c-primary);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 18px 16px; font-size: 13px; color: var(--c-muted); }

/* =========================== 最終CTA =========================== */
.final {
  text-align: center;
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(255, 92, 158, .25), transparent 70%),
    var(--c-surface);
  border-radius: var(--radius);
  padding: 34px 22px;
  box-shadow: var(--shadow-md);
}
.final h3 { font-size: 19px; font-weight: 900; line-height: 1.6; }
.final p { font-size: 13px; color: var(--c-muted); margin-top: 10px; }
.final .note {
  font-size: 10.5px;
  color: var(--c-muted);
  margin-top: 18px;
  line-height: 1.7;
}

/* =========================== フッター =========================== */
.footer {
  text-align: center;
  padding: 30px 22px 40px;
  font-size: 11px;
  color: var(--c-muted);
}
.footer__name { font-weight: 900; color: var(--c-primary-dark); font-size: 14px; letter-spacing: .1em; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 14px 0;
}
.footer__links a { text-decoration: none; }
.footer__disc { margin-top: 10px; line-height: 1.7; }

/* =========================== 年齢確認モーダル =========================== */
.agegate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(30, 14, 24, .82);
  backdrop-filter: blur(6px);
}
.agegate[hidden] { display: none; }
.agegate__box {
  background: var(--c-surface);
  border-radius: var(--radius);
  max-width: 360px;
  width: 100%;
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.agegate__mark { font-size: 34px; }
.agegate__box h2 { font-size: 17px; margin: 10px 0; }
.agegate__box p { font-size: 12.5px; color: var(--c-muted); }
.agegate__btns { display: grid; gap: 10px; margin-top: 20px; }
.agegate__yes {
  border: none; cursor: pointer;
  font-family: inherit; font-weight: 900; font-size: 15px;
  color: #fff; padding: 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
}
.agegate__no {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 12px; color: var(--c-muted);
  text-decoration: underline;
}

/* =========================== エラー / noscript =========================== */
.fatal {
  max-width: 460px;
  margin: 40px auto;
  padding: 22px;
  background: #fff;
  border: 2px solid #ffd5e6;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.9;
}
.fatal code { background: #ffeef5; padding: 1px 6px; border-radius: 5px; font-size: 12px; }

/* =========================== レスポンシブ（PC表示時） =========================== */
@media (min-width: 600px) {
  body { padding: 24px 0; }
  .page {
    box-shadow: 0 40px 120px rgba(120, 40, 80, .18);
    border-radius: 28px;
    overflow: hidden;
    background: var(--c-bg);
  }
  .hero { min-height: 560px; }
  .floating-cta { border-radius: 0 0 28px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
}
