/* LP・規約ページ共通のスタイル
   コンセプト: 明るく、にぎやかに。ポップなステッカーのような質感（太い縁取り＋ずらした影） */
:root {
  color-scheme: light;
  --bg: #fff6ec;
  --bg-2: #fff0f4;
  --paper: #ffffff;
  --ink: #2b1d2a;
  --text: #2b1d2a;
  --muted: #6d5d68;
  --line: #f0dfd4;
  --pink: #ff4f82;
  --pink-deep: #e8386c;
  --pink-soft: #ffe0ea;
  --yellow: #ffd23f;
  --yellow-soft: #fff4c7;
  --mint: #33c9a8;
  --mint-soft: #d9f7ef;
  --sky: #5bb6ff;
  --live: #ff3355;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic UI", sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --hand: "Klee One", "Hiragino Maru Gothic ProN", cursive;
  --bw: 2.5px;                           /* 縁取りの太さ */
  --shadow: 5px 5px 0 var(--ink);        /* ずらした影 */
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b { font-weight: 700; }
.hand { font-family: var(--hand); font-weight: 600; }

.container { width: min(100% - 32px, 1160px); margin-inline: auto; }
.container-narrow { width: min(100% - 32px, 800px); }
.sp { display: none; }
@media (max-width: 720px) { .sp { display: inline; } .pc { display: none; } }

/* 日本語を文節で改行する（対応ブラウザのみ）。見出しは行末もそろえる */
h1, h2, h3, p, li, dd, td, .bubble { word-break: auto-phrase; }
h1, h2, h3 { text-wrap: pretty; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow);
  font-family: var(--round); font-weight: 800; letter-spacing: 0.03em; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 18px; }
.btn-xl { min-height: 72px; padding: 0 40px; font-size: 22px; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-muted { background: #eee4df; color: var(--muted); }
.btn:disabled { cursor: default; transform: none; box-shadow: 3px 3px 0 #c9b8b0; border-color: #c9b8b0; }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; inset: 12px 0 auto; z-index: 50; padding: 0 16px; pointer-events: none; }
.header-pill {
  pointer-events: auto; width: min(100%, 1160px); margin: 0 auto; height: 60px;
  display: flex; align-items: center; gap: 24px; padding: 0 10px 0 22px;
  background: #fff; /* すりガラス（backdrop-filter）はスクロールが重くなるので使わない */
  border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
/* ロゴ（画像）。高さだけを決めて、横幅は絵の比率に任せる。
   明るい背景は img/logo.png、濃い背景（フッター）は img/logo-white.png を使う */
.logo-img { height: 30px; width: auto; display: block; }
.logo-live {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 6px;
  background: var(--live); color: #fff; font: 800 12px/1.6 var(--round); letter-spacing: 0.12em;
}
.logo-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.site-nav { display: flex; gap: 28px; margin-left: auto; font: 700 15px var(--round); }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--pink); }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-pill > .btn { margin-left: auto; }
  .header-pill { padding-left: 18px; }
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 48px) 0 88px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(#f2d6c6 1.6px, transparent 1.6px); background-size: 24px 24px; }
.blob { position: absolute; border-radius: 50%; }
.blob-pink { width: 620px; height: 620px; right: -120px; top: 40px; background: radial-gradient(circle at 40% 40%, #ffc2d5, #ffd9e5 60%, transparent 70%); }
.blob-yellow { width: 360px; height: 360px; right: 34%; bottom: -120px; background: radial-gradient(circle, #ffe68a, transparent 68%); }
.blob-mint { width: 260px; height: 260px; left: -80px; top: 90px; background: radial-gradient(circle, #bff1e4, transparent 68%); }

.hero-inner {
  position: relative; width: min(100% - 32px, 1160px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; align-items: center;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
/* いま話している人数（実数。取れないときは「ミラはいまオンライン」） */
.live-now {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px 8px 16px; border-radius: 999px;
  background: #fff; border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--mint);
  font: 700 17px var(--round);
}
.live-now b { font-size: 24px; color: var(--pink-deep); margin: 0 2px; }
.live-now em { font-style: normal; font-size: 14px; color: var(--muted); }
.live-now em::before { content: "／"; margin: 0 4px; color: #d9c3b8; }
.live-dot { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--live); flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: ping 1.8s ease-out infinite; will-change: transform, opacity; }
@media (max-width: 520px) {
  .live-now { font-size: 15px; line-height: 1.6; padding: 10px 18px; border-radius: 22px; text-align: center; }
  .live-now b { font-size: 19px; }
  .live-now em { display: block; }
  .live-now em::before { content: none; }
}
.tag-online, .tag-plain {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; font: 700 14px var(--round);
}
.tag-online { background: var(--mint-soft); }
/* 広がる輪は transform と opacity だけで動かす（影を動かすと毎フレーム再計算になる） */
.tag-online i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.tag-online i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: ping 1.8s ease-out infinite; will-change: transform, opacity; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
.hero-title { margin: 22px 0 22px; font-family: var(--round); font-weight: 800; font-size: clamp(36px, 4.3vw, 60px); line-height: 1.28; letter-spacing: 0.01em; }
.hero-title > span { display: block; }
@media (min-width: 921px) { .hero-line { white-space: nowrap; } }
.hero-hello { font-size: 0.5em; color: var(--pink); transform: rotate(-3deg); transform-origin: left; margin-bottom: 6px; }
.hero-title mark {
  color: inherit; padding: 0 0.08em;
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
}
.hero-lead { color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); line-height: 2; font-weight: 500; }
.hero-cta { margin-top: 32px; }
.hero-cta-note { margin-top: 14px; color: var(--muted); font-size: 15px; }
.hero-cta-note b { color: var(--pink-deep); }
.hero-facts { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-facts li {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 108px; padding: 10px 14px; border-radius: 18px; background: #fff;
  border: 2px solid var(--ink); line-height: 1.3;
}
.hero-facts li:nth-child(2) { transform: rotate(-2deg); background: var(--yellow-soft); }
.hero-facts li:nth-child(3) { transform: rotate(1.5deg); background: var(--pink-soft); }
.hero-facts b { font: 800 30px/1.1 var(--round); color: var(--pink); }
.hero-facts small { font-size: 14px; margin-left: 2px; color: var(--ink); }
.hero-facts span { font-size: 13px; color: var(--muted); font-weight: 700; }

/* ヒーローの通話画面 */
.hero-visual { position: relative; padding: 18px 10px 18px 18px; }
.call {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  border: 4px solid var(--ink); border-radius: 34px; box-shadow: 10px 10px 0 var(--ink);
  background: #f3dccb; color: #fff; text-decoration: none; transform: rotate(2deg);
  transition: transform 0.3s ease;
}
.call:hover { transform: rotate(0deg) translateY(-4px); }
.call-room { position: absolute; inset: 0; }
.call-room img { width: 100%; height: 100%; object-fit: cover; } /* 背景はぼかし済みの画像（CSS の filter は重いので使わない） */
.call-sprite { position: absolute; left: 50%; bottom: -2%; height: 102%; aspect-ratio: 1024 / 1536; transform: translateX(-50%); z-index: 1; }
/* 呼吸・揺れ・話すときの弾み（CSS アニメーション） */
.call-sprite-bob, .call-sprite-inner { position: relative; width: 100%; height: 100%; transform-origin: 50% 100%; will-change: transform; }
.call-sprite-inner { animation: breathe 4s ease-in-out infinite; }
.call-sprite-bob.talking { animation: talk-bob 0.45s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: rotate(-0.5deg) scale(1, 1); } 50% { transform: rotate(0.5deg) scale(1.004, 0.998); } }
@keyframes talk-bob { 50% { transform: translateY(-0.4%); } }
.call-base { width: 100%; height: 100%; user-select: none; }
.call-face { position: absolute; display: block; height: auto; pointer-events: none; }
.call-top { position: absolute; left: 16px; right: 16px; top: 16px; z-index: 3; display: flex; gap: 8px; font: 700 13px var(--round); }
.call-live { background: var(--live); padding: 3px 10px; border-radius: 8px; letter-spacing: 0.06em; }
.call-chip { background: rgba(43, 29, 42, 0.55); padding: 3px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* どの性格タイプの会話例かを出すラベル */
.call-type { margin-left: auto; background: var(--pink); color: #fff; }
.call-type[hidden] { display: none; }
/* 通話画面の中の会話：こちらの話しかけは右上、ミラの返事は下の字幕 */
.call-bubbles { position: absolute; right: 14px; top: 58px; width: 66%; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bubble {
  max-width: 100%; padding: 9px 14px; border-radius: 18px 18px 4px 18px; font: 700 14px/1.55 var(--sans);
  background: #fff; color: var(--ink); border: 2px solid var(--ink); word-break: auto-phrase;
  animation: bubble-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.bubble.out { animation: bubble-out 0.5s ease forwards; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(0.9); } }
@keyframes bubble-out { to { opacity: 0; transform: translateY(-8px); } }
.call-sub {
  position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); z-index: 3;
  width: calc(100% - 28px); min-height: 3.4em; display: flex; flex-direction: column; justify-content: center;
  padding: 10px 16px; border-radius: 14px; background: rgba(43, 29, 42, 0.74); color: #fff;
  font: 500 15px/1.6 var(--sans); text-align: center; word-break: auto-phrase;
}
.call-sub[hidden] { display: none; }
.call-voice {
  position: absolute; left: 14px; bottom: calc(62px + 3.4em + 18px); z-index: 3; padding: 3px 12px; border-radius: 999px;
  background: rgba(43, 29, 42, 0.62); color: #fff; font: 700 12px var(--round);
}
.call-voice[hidden] { display: none; }

.call-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 8px; }
.call-input { flex: 1; min-width: 0; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #9b8a94; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-send { padding: 10px 18px; border-radius: 999px; background: var(--pink); font: 800 14px var(--round); }

.sticker {
  position: absolute; z-index: 4; display: grid; place-items: center; text-align: center;
  width: 104px; height: 104px; border-radius: 50%; border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font: 800 19px/1.25 var(--round); pointer-events: none;
}
.sticker-free { left: -18px; top: 26%; background: var(--yellow); transform: rotate(-12deg); animation: bob 3.2s ease-in-out infinite; }
.sticker-voice { right: -14px; top: 20%; background: var(--mint); color: #fff; font-size: 17px; transform: rotate(10deg); animation: bob 3.6s ease-in-out -1.2s infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* 画面から湧き上がるハート（CSS だけで繰り返す。要素を足し続けない） */
.hearts-fx { position: absolute; right: 8%; bottom: 12%; width: 90px; height: 70%; pointer-events: none; z-index: 5; contain: strict; }
.hearts-fx i {
  position: absolute; bottom: 0; font-style: normal; font-size: 26px; line-height: 1; opacity: 0;
  animation: rise 4.8s ease-out infinite; will-change: transform, opacity;
}
.hearts-fx i:nth-child(even) { animation-name: rise-r; }
.hearts-fx i:nth-child(1) { left: 10px; color: #ff4f82; animation-delay: 0s; }
.hearts-fx i:nth-child(2) { left: 40px; color: #ff8fb0; animation-delay: 0.6s; font-size: 20px; }
.hearts-fx i:nth-child(3) { left: 24px; color: #ffd23f; animation-delay: 1.2s; font-size: 22px; }
.hearts-fx i:nth-child(4) { left: 52px; color: #ff4f82; animation-delay: 1.8s; font-size: 32px; }
.hearts-fx i:nth-child(5) { left: 4px; color: #33c9a8; animation-delay: 2.4s; }
.hearts-fx i:nth-child(6) { left: 34px; color: #ff4f82; animation-delay: 3s; font-size: 22px; }
.hearts-fx i:nth-child(7) { left: 58px; color: #ffd23f; animation-delay: 3.6s; }
.hearts-fx i:nth-child(8) { left: 18px; color: #ff8fb0; animation-delay: 4.2s; font-size: 28px; }
@keyframes rise {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  10% { opacity: 1; transform: translate(-4px, -24px) scale(1); }
  60%, 100% { opacity: 0; transform: translate(-18px, -320px) scale(1.1); }
}
@keyframes rise-r {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  10% { opacity: 1; transform: translate(4px, -24px) scale(1); }
  60%, 100% { opacity: 0; transform: translate(20px, -300px) scale(1.1); }
}

@media (max-width: 920px) {
  .hero { padding-top: calc(var(--header-h) + 16px); padding-bottom: 56px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-copy { text-align: center; }
  .hero-tags, .hero-facts { justify-content: center; }
  .hero-hello { transform-origin: center; }
  /* 通話画面を先に見せる */
  .hero-visual { order: -1; width: min(100%, 420px); margin: 0 auto; padding: 10px 10px 4px; }
  /* ステッカーは吹き出しと重なるので、スマホでは出さない */
  .sticker { display: none; }
  /* 会話が増えてもミラの顔が隠れないようにする */
  .call-chat { max-height: 46%; }
  .hero-title { margin-top: 16px; }
  .sticker { width: 84px; height: 84px; font-size: 15px; }
  .sticker-voice { font-size: 14px; }
  .sticker-free { left: -6px; }
  .sticker-voice { right: -6px; top: 16%; }
}

/* ---------- 流れる帯 ---------- */
.marquee { position: relative; height: 150px; overflow: hidden; margin: -10px 0; }
.marquee-band { position: absolute; left: -5%; width: 110%; border-block: var(--bw) solid var(--ink); overflow: hidden; }
.marquee-pink { top: 28px; background: var(--pink); color: #fff; transform: rotate(-2.5deg); z-index: 2; }
.marquee-yellow { top: 62px; background: var(--yellow); color: var(--ink); transform: rotate(2deg); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; will-change: transform; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 44s; }
.marquee-track span { padding: 10px 0; font: 800 22px var(--round); white-space: nowrap; }
.marquee-track span::after { content: "♥"; margin: 0 24px; opacity: 0.85; }
.marquee-yellow span::after { content: "★"; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- セクション共通 ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 128px) 0; }
.heading { text-align: center; font: 800 clamp(30px, 4vw, 46px)/1.35 var(--round); letter-spacing: 0.02em; }
.heading-sub { display: block; font-size: 0.55em; color: var(--pink); transform: rotate(-2deg); margin-bottom: 4px; }
.note { margin-top: 24px; text-align: center; font-size: 13px; color: var(--muted); }


/* ---------- ミラってこんな子 ---------- */
.profile { background: var(--paper); border-block: var(--bw) solid var(--ink); }
.profile::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffeef3 1px, transparent 1px), linear-gradient(90deg, #ffeef3 1px, transparent 1px); background-size: 32px 32px; }
.profile .container { position: relative; }
.profile-inner { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.id-card {
  position: relative; padding: 22px 24px 24px; border-radius: 26px; background: #fff;
  border: var(--bw) solid var(--ink); box-shadow: 8px 8px 0 var(--pink); transform: rotate(-1.5deg);
}
.id-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.id-label { font: 800 14px var(--round); letter-spacing: 0.24em; color: var(--pink); }
.id-live { display: inline-flex; align-items: center; gap: 6px; font: 800 12px var(--round); color: var(--mint); letter-spacing: 0.1em; }
.id-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: blink 1.4s infinite; }
.id-body { display: flex; gap: 20px; align-items: center; margin-top: 18px; }
.id-photo { width: 132px; aspect-ratio: 440 / 495; object-fit: cover; border-radius: 18px; border: var(--bw) solid var(--ink); background: var(--pink-soft); flex-shrink: 0; }
.id-name { font: 800 36px/1.1 var(--round); }
.id-name small { margin-left: 10px; font-size: 16px; color: var(--muted); letter-spacing: 0.1em; }
.id-list { margin: 12px 0 0; display: grid; gap: 4px; font-size: 15px; }
.id-list div { display: flex; gap: 12px; }
.id-list dt { min-width: 3.5em; color: var(--pink-deep); font-weight: 700; }
.id-list dd { margin: 0; }
.id-bio { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--yellow-soft); font-size: 16px; line-height: 1.8; }
.id-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.id-tags li { padding: 3px 12px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-deep); font: 700 14px var(--round); }


.faces-title { text-align: center; font-size: 26px; color: var(--ink); transform: rotate(-2deg); }
.face-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.polaroid {
  padding: 10px 10px 8px; background: #fff; border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: 4px 5px 0 rgba(43, 29, 42, 0.18); transition: transform 0.25s ease;
}
.polaroid img { width: 100%; aspect-ratio: 440 / 495; object-fit: cover; background: #f6e7de; border-radius: 3px; }
.polaroid span { display: block; margin-top: 6px; text-align: center; font-size: 15px; line-height: 1.4; }
.polaroid:nth-child(1) { --r: -4deg; } .polaroid:nth-child(2) { --r: 3deg; } .polaroid:nth-child(3) { --r: -2deg; }
.polaroid:nth-child(4) { --r: 2.5deg; } .polaroid:nth-child(5) { --r: -3deg; } .polaroid:nth-child(6) { --r: 4deg; }
.polaroid { transform: rotate(var(--r)); }
.polaroid:hover { transform: rotate(0deg) scale(1.06); z-index: 1; position: relative; }
@media (max-width: 900px) {
  .profile-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .id-card { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .face-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .id-photo { width: 104px; }
  .id-name { font-size: 30px; }
}

/* ---------- こんな夜に ---------- */
.nights { background: var(--yellow-soft); }
.night-list { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.night-list::before { content: ""; position: absolute; left: 8%; right: 8%; top: 40px; border-top: 3px dashed #e9c35a; }
.night { position: relative; padding: 28px 22px 24px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 26px; box-shadow: var(--shadow); }
.night:nth-child(2) { transform: translateY(24px); }
.night-time {
  position: absolute; top: -26px; left: 22px; padding: 2px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font: 800 26px/1.4 var(--round); letter-spacing: 0.04em;
}
.night-time span { color: var(--yellow); animation: blink 1s steps(1) infinite; }
.night-scene { margin-top: 12px; font: 800 19px var(--round); }
/* ライブチャット画面の縮小版 */
.mini-live { margin-top: 14px; border: var(--bw) solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; }
.mini-cam { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #f3dccb; }
.mini-room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-mira { position: absolute; left: 50%; top: 5%; width: 64%; transform: translateX(-50%); }
.mini-badge { position: absolute; left: 10px; top: 10px; padding: 1px 8px; border-radius: 6px; background: var(--live); color: #fff; font: 800 11px/1.7 var(--round); letter-spacing: 0.06em; }
.mini-sub {
  position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; border-radius: 10px;
  background: rgba(43, 29, 42, 0.74); color: #fff; font-size: 13px; line-height: 1.55; text-align: center;
}
.mini-chat { border-top: var(--bw) solid var(--ink); padding: 8px 12px 12px; background: #fff; }
.mini-head { display: flex; justify-content: space-between; align-items: center; font: 800 12px var(--round); color: var(--muted); }
.mini-head span { padding: 0 8px; border-radius: 999px; background: var(--pink-soft); color: var(--pink); border: 1.5px solid var(--ink); }
.mini-me { margin-top: 6px; font-size: 14px; line-height: 1.6; }
.mini-me b { margin-right: 8px; color: var(--mint); font-weight: 700; }
@media (max-width: 900px) {
  .night-list { grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: 520px; margin-inline: auto; }
  .night-list::before { display: none; }
  .night:nth-child(2) { transform: none; }
}

/* ---------- できること ---------- */
.points { background: var(--bg); }
.points-inner { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.point-col { display: grid; gap: 20px; }
.point { position: relative; padding: 20px 22px 20px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.point-num { position: absolute; top: -16px; right: 18px; padding: 0 12px; border-radius: 999px; background: var(--yellow); border: 2px solid var(--ink); font: 800 15px/1.7 var(--round); }
.point h3 { font: 800 20px var(--round); color: var(--ink); }
.point p { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.75; }
.point-hot { background: var(--pink); color: #fff; }
.point-hot h3, .point-hot p { color: #fff; }
.points-photo { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.points-photo::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 92%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--pink-soft); border: var(--bw) solid var(--ink); }
.points-photo img { position: relative; width: 100%; max-width: 340px; }
.photo-tag {
  position: absolute; top: 12%; left: -6%; padding: 10px 16px; border-radius: 18px 18px 18px 4px;
  background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-size: 16px; line-height: 1.5; transform: rotate(-5deg);
}
@media (max-width: 960px) {
  .points-inner { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; gap: 24px; }
  .points-photo { order: -1; max-width: 340px; margin: 0 auto 8px; }
  .photo-tag { left: -4%; }
}

/* ---------- 料金 ---------- */
.price { background: var(--bg-2); border-top: var(--bw) solid var(--ink); }
.heart-rule {
  margin: 44px auto 0; width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 20px;
  padding: 16px 28px 16px 18px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow);
}
.heart-coin {
  flex-shrink: 0; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--pink); color: #fff; font-size: 34px; border: var(--bw) solid var(--ink); animation: beat 1.4s ease-in-out infinite;
}
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(0.97); } }
.heart-rule p { font: 700 18px/1.6 var(--round); }
.heart-rule b { color: var(--pink-deep); font-weight: 800; }
.plan-grid { margin: 56px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 40px 30px 30px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); }
.plan-free { box-shadow: 8px 8px 0 var(--pink); border-color: var(--ink); }
.plan-ribbon {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%) rotate(-2deg); white-space: nowrap;
  padding: 4px 18px; border-radius: 999px; background: var(--yellow); border: 2px solid var(--ink); font: 800 15px var(--round);
}
.plan-ribbon-soon { background: #fff; color: var(--muted); }
/* いちばん選んでほしいプラン。帯の色を変えて、カードも少しだけ前に出す */
.plan-ribbon-best { background: var(--pink); color: #fff; }
.plan-best { box-shadow: 8px 8px 0 var(--pink); }
@media (min-width: 901px) {
  .plan-grid-3 .plan-best { transform: translateY(-10px); }
}
.plan-name { text-align: center; font: 800 24px var(--round); }
.plan-price { text-align: center; font: 800 22px var(--round); color: var(--muted); }
.plan-price b { font-size: 64px; line-height: 1.1; color: var(--pink); margin-right: 4px; }
.plan-price-soon { font-size: 40px; line-height: 1.6; color: #b9a6ae; }
.plan-list { margin: 20px 0 28px; padding-top: 20px; border-top: 2px dashed var(--line); display: grid; gap: 14px; flex: 1; align-content: start; }
.plan-list li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.6; }
.plan-list li::before { content: "♥"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink); font-size: 12px; }
/* 無料プランのハートは色を付けない（スタンダード・プロとの差を見せるため） */
.plan-free .plan-list li::before { background: #f1e8e4; color: #b9a6ae; }
.plan-list small { display: block; color: var(--muted); font-size: 13px; }
.plan-list b { color: var(--pink-deep); }
.plan-paid .plan-list b { color: inherit; }
.plan .btn { width: 100%; }
@media (max-width: 760px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .heart-rule { border-radius: 26px; padding: 16px 20px; }
  .heart-rule p { font-size: 16px; }
}
/* 料金ページの3プラン（無料・スタンダード・プロ）。2枚組の .plan-grid はそのまま */
.plan-grid-3 { max-width: 1060px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan-grid-3 .plan { padding: 36px 22px 26px; }
.plan-grid-3 .plan-price b { font-size: 46px; }
.plan-per { font-size: 15px; color: var(--muted); }
.plan-lead { margin-top: 6px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) {
  .plan-grid-3 { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: 40px; }
}

/* どのプランでも使える機能。
   いまは各プランのカードの中に並べているので、この箱は使っていない（旧ページ用に残してある） */
.plan-common {
  margin: 32px auto 0; max-width: 1060px; padding: 22px 26px;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.plan-common-title { font: 800 15px var(--round); }
.plan-common-title b { color: var(--pink-deep); }
.plan-common ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.plan-common li { position: relative; padding-left: 26px; font-size: 15px; }
.plan-common li::before {
  content: "♥"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); font-size: 11px;
}

/* ---------- 最後のCTA ---------- */
.final { padding: 40px 0 clamp(80px, 10vw, 120px); background: var(--bg-2); }
.final-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end;
  padding: 56px 0 0 56px; border-radius: 40px; background: var(--pink); color: #fff;
  border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
}
.final-card::before { /* 紙吹雪 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 60%); mask-image: linear-gradient(100deg, transparent 20%, #000 60%);
  background-image:
    radial-gradient(circle, var(--yellow) 5px, transparent 6px),
    radial-gradient(circle, #fff 4px, transparent 5px),
    radial-gradient(circle, var(--mint) 5px, transparent 6px);
  background-size: 140px 120px, 110px 150px, 170px 130px;
  background-position: 10px 20px, 60px 80px, 100px 40px;
}
.final-copy { position: relative; padding-bottom: 56px; }
.final-hello { font-size: 24px; color: var(--yellow); transform: rotate(-3deg); transform-origin: left; }
.final-title { margin-top: 6px; font: 800 clamp(34px, 4.6vw, 56px)/1.25 var(--round); }
.final-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }
.final-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; color: var(--ink); border: 2px solid var(--ink); font: 700 15px var(--round); }
.final-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-size: 14px; }
.final-mira { position: relative; width: 100%; max-width: 380px; justify-self: center; margin-top: -20px; filter: drop-shadow(6px 0 0 rgba(43, 29, 42, 0.25)); }
@media (max-width: 820px) {
  .final-card { grid-template-columns: minmax(0, 1fr); padding: 44px 22px 0; text-align: center; }
  .final-hello { transform-origin: center; }
  .final-steps { justify-content: center; }
  .final-copy { padding-bottom: 8px; }
  .final-mira { max-width: 260px; margin-top: 16px; }
  .final .btn-xl { font-size: 18px; padding: 0 24px; width: 100%; }
}

/* ---------- フッター ---------- */
.site-footer { padding: 48px 0 40px; background: var(--ink); color: #cbbcc6; font-size: 13px; }
.site-footer .logo-img { height: 28px; }
.footer-inner { display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 14px; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }


/* ---------- スマホ用の固定ボタン ---------- */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--bg) 65%, rgba(255, 246, 236, 0));
    transform: translateY(120%); transition: transform 0.3s ease;
  }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; }
  .lp .site-footer { padding-bottom: 120px; }
}

/* ---------- スクロールで表示 ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.2); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* ---------- 規約ページ ---------- */
.page main { padding: calc(var(--header-h) + 56px) 0 96px; }
.legal { padding: 40px clamp(20px, 5vw, 56px) 48px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); }
.legal h1 { font: 800 clamp(26px, 3.4vw, 34px)/1.4 var(--round); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font: 800 20px var(--round); margin: 36px 0 12px; padding-left: 14px; border-left: 5px solid var(--pink); }
.legal p, .legal li { color: #4d3f49; font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ol { list-style: decimal; padding-left: 1.4em; margin-top: 8px; }
.legal ul { list-style: disc; padding-left: 1.4em; margin-top: 8px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--pink-deep); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 16px; border-bottom: 1px solid var(--line); }
.legal th { width: 32%; font-weight: 700; background: var(--bg); }
.legal td { color: #4d3f49; }
.todo { color: #c2410c; font-weight: 700; background: #fff1d6; padding: 0 4px; border-radius: 4px; }
@media (max-width: 620px) {
  .legal th, .legal td { display: block; width: 100%; }
  .legal th { border-bottom: 0; padding-bottom: 8px; }
  .legal td { padding-top: 8px; }
}

/* =====================================================================
   下層ページ（ミラについて・はじめての方へ・使い方・料金・お知らせ・コラム・お問い合わせ など）
   ===================================================================== */

/* ---------- ヘッダーのメニュー（狭い画面ではボタンで開く） ---------- */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--yellow);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
.menu[open] summary span { box-shadow: none; transform: rotate(45deg); }
.menu[open] summary::after { content: ""; position: absolute; width: 18px; height: 2px; background: var(--ink); transform: rotate(-45deg); }
.menu-panel {
  position: absolute; right: -10px; top: 56px; width: min(86vw, 300px); padding: 12px; display: grid; gap: 4px;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow);
}
.menu-panel a { padding: 10px 14px; border-radius: 12px; text-decoration: none; font: 700 16px var(--round); }
.menu-panel a:hover { background: var(--pink-soft); color: var(--pink-deep); }
.site-nav a[aria-current="page"] { color: var(--pink); }
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .header-pill > .btn { margin-left: auto; }
  .menu { display: block; }
}
.btn { white-space: nowrap; }
@media (max-width: 420px) {
  .header-pill { gap: 10px; padding-left: 16px; }
  .header-pill .btn-sm { padding: 0 14px; font-size: 14px; }
  .logo-img { height: 24px; }
}

/* ---------- 下層ページの見出し ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 56px) 0 56px; background: var(--bg); border-bottom: var(--bw) solid var(--ink); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#f2d6c6 1.6px, transparent 1.6px); background-size: 24px 24px; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, #ffd0de, transparent 68%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { color: #c9b8b0; }
.page-hero-sub { margin-top: 18px; font-size: 20px; color: var(--pink); transform: rotate(-2deg); transform-origin: left; display: inline-block; }
.page-hero h1 { margin-top: 4px; font: 800 clamp(32px, 4.6vw, 52px)/1.3 var(--round); }
.page-hero .lead { margin-top: 14px; max-width: 720px; color: var(--muted); font-size: 17px; }

.block { padding: clamp(64px, 8vw, 104px) 0; }
.block-alt { background: #fff; border-block: var(--bw) solid var(--ink); }
.block-yellow { background: var(--yellow-soft); }
.block-pink { background: var(--bg-2); }
.block-title { font: 800 clamp(26px, 3.2vw, 36px)/1.4 var(--round); text-align: center; }
.block-title .heading-sub { font-size: 0.6em; }
.block-lead { margin: 14px auto 0; max-width: 720px; text-align: center; color: var(--muted); }

/* ---------- 女の子一覧 ---------- */
.char-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.char-card { position: relative; display: flex; flex-direction: column; background: #fff; border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--pink); overflow: hidden; }
.char-photo { position: relative; aspect-ratio: 4 / 4.2; background: var(--pink-soft); overflow: hidden; border-bottom: var(--bw) solid var(--ink); }
.char-photo img { position: absolute; left: 50%; top: 4%; width: 92%; transform: translateX(-50%); }
.char-online { position: absolute; left: 14px; top: 14px; padding: 2px 12px; border-radius: 999px; background: var(--mint); color: #fff; border: 2px solid var(--ink); font: 800 13px/1.7 var(--round); }
.char-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.char-name { font: 800 28px/1.2 var(--round); }
.char-name small { margin-left: 8px; font-size: 14px; color: var(--muted); }
.char-meta { font-size: 14px; color: var(--muted); }
.char-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.char-actions .btn { min-height: 48px; font-size: 14px; line-height: 1.35; padding: 8px 10px; text-align: center; }
.btn-white { background: #fff; color: var(--ink); }
.char-soon { box-shadow: 8px 8px 0 #e6d8d0; border-style: dashed; }
.char-soon .char-photo { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #fbf1ea, #fbf1ea 14px, #f6e6dc 14px, #f6e6dc 28px); }
.char-soon .char-photo span { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: #fff; border: var(--bw) dashed #c9b8b0; font: 800 54px var(--round); color: #c9b8b0; }
.char-soon .char-name { color: #b9a6ae; }
@media (max-width: 960px) { .char-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .char-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; } }

/* ---------- ミラのプロフィール ---------- */
.mira-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: end; }
.mira-hero-photo { position: relative; justify-self: center; width: min(100%, 400px); }
.mira-hero-photo::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 100%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--pink-soft); border: var(--bw) solid var(--ink); }
.mira-hero-photo img { position: relative; }
.mira-hero .id-card { transform: rotate(1deg); margin-bottom: 20px; }
/* 2列の下に、横幅いっぱいで「始める」ボタンを置く */
.mira-hero .start-cta { grid-column: 1 / -1; }
@media (max-width: 900px) { .mira-hero { grid-template-columns: minmax(0, 1fr); } .mira-hero-photo { width: min(100%, 300px); } }

/* 性格タイプ */
.type-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.type-card { position: relative; padding: 22px 20px 20px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.type-card:nth-child(4n + 1) { --c: var(--pink-soft); } .type-card:nth-child(4n + 2) { --c: var(--yellow-soft); }
.type-card:nth-child(4n + 3) { --c: var(--mint-soft); } .type-card:nth-child(4n + 4) { --c: #e6f2ff; }
.type-name { align-self: flex-start; padding: 2px 14px; border-radius: 999px; background: var(--c); border: 2px solid var(--ink); font: 800 18px/1.6 var(--round); }
.type-default { position: absolute; top: -12px; right: 14px; padding: 0 10px; border-radius: 999px; background: var(--pink); color: #fff; border: 2px solid var(--ink); font: 800 12px/1.8 var(--round); }
.type-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.type-say { margin-top: auto; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--c); font: 600 15px/1.6 var(--hand); }
@media (max-width: 1000px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .type-grid { grid-template-columns: minmax(0, 1fr); } }

/* いじわるへの反応 */
.react-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.react-card { padding: 22px 18px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); text-align: center; }
.react-card .react-word { display: inline-block; font: 600 34px/1.3 var(--hand); color: var(--pink); transform: rotate(-4deg); }
.react-card:nth-child(2) .react-word { color: #e0562b; transform: rotate(3deg); }
.react-card:nth-child(3) .react-word { color: #3d8fe0; }
.react-card:nth-child(4) .react-word { color: #7a5ac8; transform: rotate(2deg); }
.react-card h3 { margin-top: 8px; font: 800 19px var(--round); }
.react-card p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.react-note { margin: 32px auto 0; max-width: 640px; padding: 16px 22px; text-align: center; border-radius: 999px; background: #fff; border: 2px solid var(--ink); font: 700 16px/1.6 var(--round); }
.react-note b { color: var(--pink-deep); }

/* ---------- シチュエーション（一覧・詳細） ---------- */
/* ページの途中に置く「始める」ボタン */
.start-cta { margin-top: 32px; text-align: center; }

/* やりとりの見本（トップの通話画面と同じ部品を、動かさずに並べたもの）。
   小さく置くので、中の文字も一回り小さくする */
.call-mock { transform: none; box-shadow: 8px 8px 0 var(--ink); }
.call-mock .call-top { left: 10px; right: 10px; top: 10px; gap: 6px; font-size: 11px; }
.call-mock .call-bubbles { right: 10px; top: 42px; width: 74%; }
.call-mock .bubble { padding: 7px 11px; border-radius: 14px 14px 3px 14px; font-size: 12px; }
.call-mock .call-sub { bottom: 48px; width: calc(100% - 20px); min-height: 3.2em; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; }
.call-mock .call-bar { left: 10px; right: 10px; bottom: 10px; gap: 6px; }
.call-mock .call-input { padding: 7px 12px; font-size: 11px; }
.call-mock .call-send { padding: 7px 14px; font-size: 11px; }

/* 一覧：場面ごとに、見本と説明を左右に並べる */
.sit-rows { margin-top: 56px; display: grid; gap: 64px; }
.sit-row { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: 48px; align-items: center; }
/* 1つおきに左右を入れ替える。列の幅も入れ替えないと、見本だけが大きくなってしまう */
.sit-row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 350px); }
.sit-row:nth-child(even) .sit-row-visual { order: 2; }
.sit-row:nth-child(3n + 1) { --c: var(--pink-soft); }
.sit-row:nth-child(3n + 2) { --c: var(--yellow-soft); }
.sit-row:nth-child(3n + 3) { --c: var(--mint-soft); }
.sit-row-body { display: grid; gap: 14px; justify-items: start; }
.sit-name { padding: 2px 18px; border-radius: 999px; background: var(--c); border: 2px solid var(--ink); font: 800 20px/1.7 var(--round); }
.sit-summary { font-size: 16px; line-height: 1.8; }
.sit-lead { font-size: 14px; line-height: 1.85; color: var(--muted); }
.sit-meter { font: 700 13px/1.6 var(--round); color: var(--pink-deep); }
.sit-steps { display: grid; gap: 7px; padding-top: 14px; border-top: 2px dashed var(--line); font-size: 14px; }
.sit-steps li { position: relative; padding-left: 30px; color: var(--muted); line-height: 1.6; }
.sit-steps li b {
  position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c); border: 2px solid var(--ink); font: 800 11px var(--round); color: var(--ink);
}
.sit-note { margin: 32px auto 0; max-width: 720px; text-align: center; font-size: 14px; color: var(--muted); }
.sit-note a { color: var(--pink-deep); font-weight: 700; }

/* トップ・女の子のページに置く、シチュエーションのカード（場面ごとに見本・あらすじ・始めるボタン） */
.sit-cards { margin: 48px auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.sit-card { display: grid; gap: 12px; align-content: start; justify-items: start; }
.sit-card:nth-child(3n + 1) { --c: var(--pink-soft); }
.sit-card:nth-child(3n + 2) { --c: var(--yellow-soft); }
.sit-card:nth-child(3n + 3) { --c: var(--mint-soft); }
.sit-card-visual { width: 100%; margin-bottom: 8px; }
.sit-card .sit-name { font-size: 18px; }
.sit-card .sit-summary { font-size: 15px; line-height: 1.75; }
.sit-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 4px; }
.sit-card-more { font: 700 14px var(--round); color: var(--pink-deep); }
@media (max-width: 900px) {
  .sit-cards { grid-template-columns: minmax(0, 1fr); gap: 44px; max-width: 400px; }
}

/* 詳細：あらすじ */
.sit-detail { padding: 26px 28px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.sit-detail .sit-summary { font: 800 18px/1.7 var(--round); }

/* 詳細：この場面のたのしみ方（立場の差・仮面・剥がれ方） */
.sit-points { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sit-point { position: relative; padding: 26px 22px 22px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.sit-point-tag { position: absolute; top: -12px; left: 18px; padding: 1px 12px; border-radius: 999px; background: var(--yellow); border: 2px solid var(--ink); font: 800 12px/1.8 var(--round); }
.sit-point h3 { margin-top: 4px; font: 800 19px var(--round); }
.sit-point p { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* 詳細：レベルごとの見本 */
.sit-levels { margin: 48px auto 0; max-width: 940px; display: grid; gap: 44px; }
.sit-level { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: center; }
.sit-level-body { display: grid; gap: 10px; }
.sit-level-num { font: 800 13px var(--round); color: var(--muted); }
.sit-level-num b {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 8px; vertical-align: middle;
  border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-size: 17px; color: var(--ink);
}
.sit-level h3 { font: 800 22px/1.4 var(--round); }
.sit-level-line {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 10px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--ink); font-size: 14px; line-height: 1.75;
}
.sit-level-line span { font: 800 11px/1.9 var(--round); color: var(--muted); }
.sit-level-line.is-her { background: var(--pink-soft); }

/* 詳細：手応えが上がるとき・下がるとき */
.sit-ud { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sit-ud > div { padding: 22px 24px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.sit-ud h3 { font: 800 18px var(--round); }
.sit-ud ul { margin-top: 12px; display: grid; gap: 8px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.sit-ud li { position: relative; padding-left: 20px; }
.sit-ud li::before { content: "▲"; position: absolute; left: 0; top: 2px; font-size: 10px; color: var(--mint); }
.sit-down li::before { content: "▼"; color: var(--pink); }

/* 女の子を選んで始めるところ（ふつうのフォーム。JavaScript が動かなくても選べる） */
.pick { margin-top: 40px; display: grid; gap: 26px; justify-items: center; }
.pick-set { width: 100%; margin: 0; padding: 0; border: 0; }
.pick-legend { width: 100%; padding: 0 0 18px; text-align: center; font: 800 17px var(--round); }
/* 目には見せないが、読み上げには残す（見出しと同じ内容を2回出さないため） */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.pick-legend.visually-hidden { padding: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pick-card { display: block; cursor: pointer; }
.pick-card.is-soon { cursor: default; }
.pick-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick-body {
  display: grid; gap: 6px; padding: 14px 14px 16px; text-align: center;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.pick-card input:checked + .pick-body { border-color: var(--pink); box-shadow: 6px 6px 0 var(--pink); transform: translate(-2px, -2px); }
.pick-card input:focus-visible + .pick-body { outline: 3px solid var(--pink); outline-offset: 3px; }
.pick-photo { display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 16px; background: var(--pink-soft); border: 2px solid var(--ink); }
.pick-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.pick-photo-soon { display: grid; place-items: center; font: 800 34px var(--round); color: #cbb7ae; background: repeating-linear-gradient(45deg, #f6ece5 0 10px, #fff6ec 10px 20px); }
.pick-name { font: 800 17px var(--round); }
.pick-meta { font-size: 12px; line-height: 1.6; color: var(--muted); }
.pick-card.is-soon .pick-body { background: var(--bg); border-style: dashed; box-shadow: none; }
.pick-note { max-width: 560px; text-align: center; font-size: 13px; line-height: 1.8; color: var(--muted); }
.pick .btn { min-width: min(100%, 340px); }

@media (max-width: 900px) {
  .sit-row { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 440px; margin-inline: auto; }
  .sit-row:nth-child(even) .sit-row-visual { order: 0; }
  .sit-points { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .sit-level { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 420px; margin-inline: auto; }
  .sit-ud { grid-template-columns: minmax(0, 1fr); }
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  /* スマホでも2列のまま、カードを小さくする。
     1列にすると1枚で画面が埋まって、下の「始める」ボタンまで遠くなってしまう */
  .pick-grid { gap: 12px; }
  .pick-body { padding: 10px 10px 12px; border-radius: 18px; }
  .pick-photo { aspect-ratio: 1 / 1; border-radius: 12px; }
  .pick-name { font-size: 15px; }
  .pick-meta { font-size: 11px; }
  .pick-legend { font-size: 15px; }
}
@media (max-width: 960px) { .react-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .react-note { border-radius: 22px; } }

/* ---------- はじめての方へ ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.intro-text p + p { margin-top: 14px; }
.intro-text .big { font: 800 clamp(22px, 2.6vw, 28px)/1.6 var(--round); }
.intro-text mark { color: inherit; background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.intro .mini-live { margin: 0; box-shadow: 8px 8px 0 var(--ink); border-radius: 22px; }
.intro .mini-sub { font-size: 15px; }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } }

.check-grid { margin: 40px auto 0; max-width: 880px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check-grid li { position: relative; padding: 16px 20px 16px 58px; background: #fff; border: 2px solid var(--ink); border-radius: 18px; font: 700 17px/1.6 var(--round); }
.check-grid li::before { content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 16px; }
@media (max-width: 700px) { .check-grid { grid-template-columns: minmax(0, 1fr); } }

.feature-grid-2 { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-grid-2 .point { padding-top: 26px; }
@media (max-width: 900px) { .feature-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid-2 { grid-template-columns: minmax(0, 1fr); } }

.safe-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.safe-grid li { position: relative; padding: 26px 18px 22px; background: #fff; border: 2px solid var(--ink); border-radius: 20px; text-align: center; }
/* チェックマークは CSS で描く（文字やアイコンだと環境によって崩れるため） */
.safe-grid li::before {
  content: ""; position: absolute; left: 50%; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--mint); border: 2px solid var(--ink); transform: translateX(-50%);
}
.safe-grid li::after {
  content: ""; position: absolute; left: 50%; top: -7px; width: 14px; height: 8px;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff;
  transform: translateX(-50%) rotate(-45deg);
}
.safe-grid b { display: block; font: 800 18px/1.5 var(--round); color: var(--ink); }
.safe-grid span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) { .safe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 使い方 ---------- */
.howto { margin: 48px auto 0; max-width: 900px; display: grid; gap: 28px; }
.howto > li { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 22px; padding: 26px 28px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 26px; box-shadow: var(--shadow); }
.howto-num { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--yellow); border: var(--bw) solid var(--ink); font: 800 34px var(--round); }
.howto h3 { font: 800 22px/1.4 var(--round); }
.howto p { margin-top: 8px; color: var(--muted); }
.howto .tip { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--mint-soft); font-size: 14px; color: var(--ink); }
.ui-demo { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ui-demo span { padding: 6px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); font-size: 14px; color: var(--muted); }
.ui-demo .ui-on { border-color: var(--ink); background: #fff; color: var(--ink); font-weight: 700; }
.ui-demo .ui-btn { border-color: var(--ink); background: var(--pink); color: #fff; font-weight: 800; }
@media (max-width: 620px) {
  .howto > li { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 20px; }
  .howto-num { width: 56px; height: 56px; font-size: 26px; }
}

/* ---------- 料金 ---------- */
.cost-table { margin: 40px auto 0; max-width: 760px; width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.cost-table th, .cost-table td { padding: 16px 22px; text-align: left; border-bottom: 2px dashed var(--line); font-size: 16px; }
.cost-table tr:last-child th, .cost-table tr:last-child td { border-bottom: 0; }
.cost-table thead th { background: var(--ink); color: #fff; font: 800 15px var(--round); border-bottom: 0; white-space: nowrap; }
.cost-table td.num { text-align: right; white-space: nowrap; font: 800 20px var(--round); color: var(--pink); }
.cost-table small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.free-box { margin: 40px auto 0; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.free-box div { padding: 22px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; text-align: center; }
.free-box b { display: block; font: 800 44px/1.2 var(--round); color: var(--pink); }
.free-box span { font: 700 15px var(--round); color: var(--muted); }
@media (max-width: 560px) { .free-box { grid-template-columns: 1fr; } .cost-table th, .cost-table td { padding: 14px 14px; } }

/* ---------- お知らせ・コラム ---------- */
.news-list { margin: 40px auto 0; max-width: 860px; display: grid; gap: 14px; }
.news-list a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 24px; background: #fff; border: 2px solid var(--ink); border-radius: 18px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.news-list a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.news-date { font: 700 14px var(--round); color: var(--muted); white-space: nowrap; }
.chip { display: inline-block; padding: 0 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow-soft); font: 800 12px/1.9 var(--round); white-space: nowrap; }
.chip-pink { background: var(--pink-soft); }
.chip-mint { background: var(--mint-soft); }
.news-title { font-weight: 700; }
@media (max-width: 620px) { .news-list a { grid-template-columns: auto auto; } .news-title { grid-column: 1 / -1; } }

.column-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.column-card { display: flex; flex-direction: column; background: #fff; border: var(--bw) solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; transition: transform 0.15s ease; }
.column-card:hover { transform: translateY(-4px); }
.column-thumb { aspect-ratio: 16 / 9; background: var(--yellow-soft); border-bottom: var(--bw) solid var(--ink); position: relative; overflow: hidden; }
.column-thumb img { position: absolute; right: 4%; top: 8%; width: 40%; }
.column-thumb p { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 56%; font: 800 19px/1.5 var(--round); }
.column-body { padding: 18px 20px 22px; }
.column-body h2 { margin-top: 10px; font: 800 18px/1.5 var(--round); }
.column-soon { border-style: dashed; box-shadow: none; }
.column-soon .column-thumb { background: repeating-linear-gradient(45deg, #fbf1ea, #fbf1ea 14px, #f6e6dc 14px, #f6e6dc 28px); }
.column-soon h2 { color: #b9a6ae; }
@media (max-width: 900px) { .column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .column-grid { grid-template-columns: minmax(0, 1fr); } }

/* 記事本文 */
.article { margin: 0 auto; max-width: 780px; padding: clamp(28px, 5vw, 56px); background: #fff; border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.article h2 { margin: 44px 0 14px; padding: 10px 18px; border-radius: 14px; background: var(--pink-soft); font: 800 22px/1.5 var(--round); }
.article h3 { margin: 28px 0 10px; font: 800 19px var(--round); padding-left: 12px; border-left: 5px solid var(--yellow); }
.article p { margin-top: 14px; font-size: 17px; line-height: 2; }
.article ul { margin-top: 14px; display: grid; gap: 8px; }
.article ul li { position: relative; padding-left: 24px; }
.article ul li::before { content: "♥"; position: absolute; left: 0; color: var(--pink); font-size: 13px; top: 4px; }
.toc { margin-top: 28px; padding: 18px 24px; border-radius: 18px; background: var(--bg); border: 2px dashed #e0c9bc; }
.toc p { margin: 0; font: 800 16px var(--round); }
.toc ol { margin-top: 8px; padding-left: 1.4em; list-style: decimal; display: grid; gap: 4px; }
.toc a { color: var(--ink); }
.talk-box { margin-top: 20px; display: flex; gap: 14px; align-items: flex-start; }
.talk-box img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 2px solid var(--ink); background: var(--pink-soft); }
.talk-box p { margin: 0; padding: 14px 18px; border-radius: 4px 20px 20px 20px; background: var(--pink-soft); border: 2px solid var(--ink); font-size: 16px; line-height: 1.8; }
.article-cta { margin-top: 44px; padding: 26px; border-radius: 22px; background: var(--yellow-soft); border: 2px solid var(--ink); text-align: center; }
.article-cta p { margin: 0 0 16px; font: 800 18px/1.6 var(--round); }

/* ---------- お問い合わせ ---------- */
.form { margin: 0 auto; max-width: 720px; padding: clamp(24px, 5vw, 48px); background: #fff; border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font: 800 16px var(--round); }
.req, .opt { margin-left: 8px; padding: 0 8px; border-radius: 6px; font: 800 11px/1.8 var(--round); vertical-align: 2px; }
.req { background: var(--pink); color: #fff; }
.opt { background: #eee4df; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 2px solid #d9c3b8; background: var(--bg);
  font: 16px var(--sans); color: var(--ink);
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); background: #fff; }
.agree { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.agree input { width: 20px; height: 20px; accent-color: var(--pink); }
.form .btn { justify-self: center; min-width: 260px; }
.form-result { text-align: center; font-weight: 700; color: var(--pink-deep); min-height: 1.5em; }

/* ---------- 下層ページ共通の CTA ---------- */
.page-cta { padding: 64px 0 clamp(80px, 10vw, 112px); background: var(--bg-2); }
.page-cta .final-card { padding-top: 44px; }

/* ---------- フッター（サイトマップ） ---------- */
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; max-width: 900px; margin: 8px auto 12px; text-align: left; }
.footer-cols p { font: 800 14px var(--round); color: #fff; margin-bottom: 8px; }
.footer-cols ul { display: grid; gap: 6px; }
.footer-cols a { color: #cbbcc6; text-decoration: none; font-size: 14px; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 700px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
   マイページ（ライブチャット側の画面。mypage.html / mypage.js）
   ※ mypage.js が使うクラス名（.item .price .muted など）は変えないこと
   ===================================================================== */
.mypage-header { position: sticky; top: 0; z-index: 30; padding: 12px 16px; background: var(--bg); border-bottom: var(--bw) solid var(--ink); }
.mypage-header .inner { width: min(100%, 840px); margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.mypage-header .logo { margin-right: auto; }
.mypage { width: min(100% - 32px, 840px); margin: 0 auto; padding: 32px 0 96px; display: grid; gap: 24px; }
.mypage h1 { font: 800 clamp(26px, 4vw, 34px)/1.3 var(--round); }
.mypage .box { padding: 24px 26px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); }
.mypage .box h2 { font: 800 19px var(--round); margin-bottom: 14px; padding-left: 12px; border-left: 5px solid var(--pink); }
.mypage .box h3 { font: 800 16px var(--round); margin: 22px 0 10px; }
.mypage .box h3:first-of-type { margin-top: 4px; }
.mypage .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mypage .muted { color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ハートの残り */
.mypage .balance { display: flex; align-items: center; gap: 14px; font: 800 52px/1.1 var(--round); color: var(--pink); }
.mypage .balance::before { content: "♥"; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 30px; border: var(--bw) solid var(--ink); }
.mypage .balance span:last-child { font: 700 16px var(--round); color: var(--ink); }

/* 購入できるもの */
/* カードの最小幅は 210px。ただし画面がそれより狭いときは画面の幅に合わせる（スマホで横にはみ出さないように） */
.mypage .items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px; }
.mypage .item { display: grid; gap: 10px; align-content: start; padding: 20px 18px; background: var(--bg); border: 2px solid var(--ink); border-radius: 18px; }
.mypage .item > b { font: 800 18px var(--round); }
.mypage .item .price { font: 800 26px/1.2 var(--round); color: var(--pink); }
.mypage .item ul { margin: 0; padding: 0; display: grid; gap: 6px; list-style: none; font-size: 14px; }
.mypage .item ul li { position: relative; padding-left: 20px; }
.mypage .item ul li::before { content: "♥"; position: absolute; left: 0; top: 2px; color: var(--pink); font-size: 12px; }
/* 無料プランのハートは色を付けない（料金ページ・トップと同じ） */
.mypage .item.is-free ul li::before { color: #b9a6ae; }
.mypage .item button { width: 100%; }
/* おすすめのプラン。ほかのカードと見分けがつくように、枠と帯の色を変える */
.mypage .item[data-best] { position: relative; border-color: var(--pink); box-shadow: 4px 4px 0 var(--pink); }
.mypage .item-best {
  position: absolute; top: -12px; left: 16px; padding: 2px 12px; border-radius: 999px;
  background: var(--pink); color: #fff; border: 2px solid var(--ink); font: 800 12px var(--round);
}

/* ボタン */
.mypage button, .mypage-header button {
  font: 800 16px var(--round); padding: 12px 22px; border-radius: 999px; cursor: pointer;
  background: var(--pink); color: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mypage button:hover:not(:disabled), .mypage-header button:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.mypage button:active:not(:disabled), .mypage-header button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.mypage button.ghost, .mypage-header button.ghost { background: #fff; color: var(--ink); }
.mypage button:disabled, .mypage-header button:disabled { cursor: not-allowed; background: #eee4df; color: var(--muted); border-color: #c9b8b0; box-shadow: 3px 3px 0 #c9b8b0; }
.mypage-header button { font-size: 14px; padding: 8px 16px; }

/* 18歳以上の確認 */
.mypage .notice { padding: 12px 16px; border-radius: 14px; background: var(--pink-soft); border: 2px dashed var(--ink); font-size: 14px; }

/* チャットの一覧（キャラクターの顔つき。名前を変えたり、削除したりできる） */
.mypage .chat-list { display: grid; gap: 12px; margin-top: 14px; }
.mypage .chat-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px 18px; background: var(--bg); border: 2px solid var(--ink); border-radius: 18px;
}
.mypage .chat-body { display: grid; gap: 8px; min-width: 0; }
.mypage .chat-actions { gap: 14px; }
.mypage .chat-row .muted { font-size: 13px; line-height: 1.6; }

/* キャラクターの顔（通話画面と同じ絵を、顔まわりだけ切り取って出す） */
.face-thumb {
  position: relative; overflow: hidden; aspect-ratio: 1; width: 100%;
  background: var(--pink-soft); border: 2px solid var(--ink); border-radius: 16px;
}
.face-thumb-inner { position: absolute; }
.face-thumb-base { display: block; width: 100%; height: auto; }
.face-thumb-face { position: absolute; }
.mypage .chat-row input { flex: 1 1 220px; min-width: 0; padding: 10px 14px; font: 700 15px var(--round); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 14px; }
.mypage .chat-row input:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.mypage .chat-row button { font-size: 14px; padding: 9px 16px; }
.mypage .chat-saved { font: 700 13px var(--round); color: var(--pink); }
.mypage .chat-open { font: 700 13px var(--round); color: var(--muted); }
.mypage button.chat-delete { font-size: 13px; padding: 7px 14px; color: var(--pink-deep); }
.mypage button.chat-delete[hidden] { display: none; }

/* ハートの履歴 */
.mypage table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
/* 長い説明（アイテムの説明など）は折り返す。数字の列だけは折り返さない（スマホでページが横に広がらないように） */
.mypage th, .mypage td { text-align: left; padding: 10px 12px; border-bottom: 2px dashed var(--line); font-size: 14px; overflow-wrap: anywhere; }
.mypage th { font: 800 12px var(--round); color: var(--muted); }
.mypage td.num, .mypage th.num { text-align: right; font-weight: 700; white-space: nowrap; }
.mypage tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .mypage .box { padding: 20px 18px; border-radius: 20px; }
  .mypage .chat-row { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .mypage .chat-row input { flex-basis: 100%; }
  .mypage .balance { font-size: 42px; }
  .mypage th, .mypage td { padding: 8px 6px; font-size: 13px; }
}

/* =====================================================================
   ヘッダーの「ログイン／マイページ」
   ===================================================================== */
.header-account { display: flex; align-items: center; gap: 16px; font: 700 14px var(--round); }
.header-account a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.header-account a:hover { color: var(--pink); }
.site-nav + .header-account { margin-left: 0; }
@media (max-width: 1020px) {
  .site-nav { gap: 20px; }
  .header-account { gap: 12px; font-size: 13px; }
}
@media (max-width: 900px) {
  /* 狭い画面ではハンバーガーメニューの中に入れる */
  .header-account { display: none; }
}

/* =====================================================================
   アカウントのページ（会員登録・ログイン・パスワード設定）
   .mypage と同じ枠組みを使う
   ===================================================================== */
.account { width: min(100% - 32px, 520px); margin: 0 auto; padding: 40px 0 96px; display: grid; gap: 20px; }
.account h1 { font: 800 clamp(24px, 4vw, 30px)/1.3 var(--round); }
.account .lead { font-size: 15px; line-height: 1.85; color: var(--muted); }
.account form { display: grid; gap: 16px; }
.account label { display: grid; gap: 6px; font: 800 14px var(--round); }
.account input[type="email"],
.account input[type="password"] {
  width: 100%; padding: 13px 16px; font: 500 16px var(--sans); color: var(--text);
  background: #fff; border: 2px solid var(--ink); border-radius: 14px;
}
.account input:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.account .hint { font: 500 13px/1.7 var(--sans); color: var(--muted); }
.account .msg { padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.75; border: 2px solid var(--ink); }
.account .msg.ok { background: var(--mint-soft); }
.account .msg.ng { background: var(--pink-soft); border-style: dashed; }
.account .links { display: flex; flex-wrap: wrap; gap: 14px; font: 700 14px var(--round); }
.account .links a, .account .links button.link {
  color: var(--muted); text-decoration: underline; background: none; border: 0; padding: 0;
  box-shadow: none; font: 700 14px var(--round); cursor: pointer;
}
.account .links a:hover, .account .links button.link:hover { color: var(--pink); transform: none; box-shadow: none; }
.account .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 700 13px var(--round); }

/* 退会の最終確認（/leave/）。取り消せない操作なので、消えるものを並べて見せる */
.leave-list { padding: 20px 22px; background: #fff; border: 2px solid var(--ink); border-radius: 18px; display: grid; gap: 12px; }
.leave-list h2 { font: 800 16px var(--round); }
.leave-list ul { display: grid; gap: 8px; padding-left: 22px; font-size: 14px; line-height: 1.7; }
.leave-list li { list-style: disc; }
/* 会員登録・ログイン・退会のページのボタン。マイページと同じステッカー風にそろえる
   （これまでブラウザの既定のままで、ほかのページと見た目が違っていた） */
.account form button,
.account #google-box button,
.account button.leave-danger {
  padding: 13px 24px; font: 800 15px var(--round); color: #fff; cursor: pointer;
  background: var(--pink); border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}
.account form button:hover:not(:disabled),
.account #google-box button:hover:not(:disabled),
.account button.leave-danger:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.account form button:active:not(:disabled),
.account #google-box button:active:not(:disabled),
.account button.leave-danger:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.account form button:disabled,
.account button.leave-danger:disabled { cursor: not-allowed; background: #eee4df; color: var(--muted); border-color: #c9b8b0; box-shadow: 3px 3px 0 #c9b8b0; }
/* 退会は取り消せないので、ふつうのボタンより強い色にする */
.account button.leave-danger { width: 100%; background: var(--pink-deep); }
/* Googleのボタンは白地にして、メールのボタンと見分けやすくする */
.account #google-box button { width: 100%; background: #fff; color: var(--ink); }
/* hidden を付けたフォーム（ログイン画面のパスワード再設定）は、押すまで隠しておく（display: grid に負けないように） */
.account form[hidden] { display: none; }
.account .or::before, .account .or::after { content: ""; flex: 1; height: 2px; background: var(--line); }

/* マイページの設定（チェックボックス1行） */
.mypage .setting { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 15px; line-height: 1.6; cursor: pointer; }
.mypage .setting input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--pink); }

/* ログイン状態で出し分けるリンク（member.js が hidden を付け外しする） */
.header-account a[hidden], .menu-panel a[hidden] { display: none; }
