/* =============================================================
   りらみゅ — トップページ（ログインしていない人向け）だけの見た目
   front-page.php / inc/front.php。土台（.hero・.section・.ribbon-title・.card・.pill・.btn・.mock・.praise・.zukan-strip）は app.css
   ============================================================= */

/* ---------- ヒーロー ---------- */
.hero--lp .hero__inner { gap: var(--space-5); }
.hero--lp .hero__lead { text-align: center; margin-top: 0; } /* app.css の紹介ページ用の左寄せを戻す */
.hero__buddy { position: relative; display: inline-block; }
.hero--lp .hero__mascot { display: block; }
/* くっものふきだし（マスコットの右上）。せまい画面では隠して、「あなたは、どれ？」がその役 */
.hero__say {
  position: absolute; left: calc(100% - 28px); top: -6px; z-index: 2;
  width: max-content; max-width: min(300px, 38vw); margin: 0;
  padding: 10px 16px; border-radius: 18px; border-bottom-left-radius: 6px;
  background: #fff; box-shadow: var(--sh-md);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-900);
  text-align: left; text-wrap: balance;
}
.hero__say::before {
  content: ""; position: absolute; left: -8px; bottom: 14px; width: 14px; height: 14px;
  background: #fff; transform: rotate(45deg); border-radius: 2px;
}
.hero__say.is-say { animation: fade-up 420ms var(--ease-out) both; }

.hero__ask { display: grid; gap: var(--space-3); justify-items: center; width: 100%; max-width: 720px; }
.hero__ask-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--ink-900); }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.door {
  display: grid; justify-items: center; align-content: start; gap: 6px;
  padding: 14px 10px 12px; text-align: center; text-decoration: none;
  border-radius: var(--r-lg); background: rgba(255,255,255,.88);
  border: 2px solid rgba(255,255,255,.9); color: var(--ink-700); box-shadow: var(--sh-sm);
  transition: transform var(--dur-base) var(--ease-back), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.door:hover { transform: translateY(-4px); box-shadow: var(--sh-md); color: var(--ink-700); }
.door:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; }
.door__art { display: block; width: 72px; height: 72px; }
.door__art svg { display: block; width: 100%; height: 100%; }
.door__label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; color: var(--ink-900); }
.door__sub { font-size: 11px; color: var(--ink-500); line-height: 1.5; }
.door--lav.is-chosen  { border-color: var(--lav-300);  background: linear-gradient(170deg, #FBF8FF, #fff 60%, #F3EEFF); }
.door--sky.is-chosen  { border-color: var(--sky-300);  background: linear-gradient(170deg, #F7FCFF, #fff 60%, #E9F5FF); }
.door--rose.is-chosen { border-color: var(--rose-300); background: linear-gradient(170deg, #FFF8FB, #fff 60%, #FFEFF5); }
.door.is-chosen { box-shadow: var(--sh-md); }
.door.is-chosen .door__label { color: var(--sky-700); }
.door--lav.is-chosen .door__label  { color: var(--lav-500); }
.door--rose.is-chosen .door__label { color: var(--rose-600); }

/* ---------- 節の共通 ---------- */
.lp-sec { scroll-margin-top: calc(var(--header-h) + 8px); }
.ribbon-title { position: relative; }
.ribbon-title--rose { background: linear-gradient(135deg, #F591B4, #D9497C); box-shadow: 0 6px 0 rgba(185,47,99,.24), var(--sh-md); }
.ribbon-title--rose::before, .ribbon-title--rose::after { background: var(--rose-300); }
.ribbon-title--lav { background: linear-gradient(135deg, #A98AE0, #8E6FD8); box-shadow: 0 6px 0 rgba(142,111,216,.26), var(--sh-md); }
.ribbon-title--lav::before, .ribbon-title--lav::after { background: var(--lav-300); }
.section-title .accent--rose { color: var(--rose-600); }
.section-title .accent--lav { color: var(--lav-500); }

/* 「あなたのドア」の札（ドアを押した節にだけ出る） */
.door-tag { display: none; position: absolute; right: -10px; top: -14px; transform: rotate(6deg); font-size: 11px; padding: 3px 9px; letter-spacing: 0; }
html[data-persona="band"] [data-door-tag="band"],
html[data-persona="practice"] [data-door-tag="practice"],
html[data-persona="friends"] [data-door-tag="friends"] { display: inline-flex; }
.lp-ghosts .btn { position: relative; overflow: visible; } /* .btn は overflow:hidden なので、札がはみ出せるように */
.lp-ghosts .door-tag { right: -8px; top: -16px; }

/* 2カラム（横：まん中＋わき。せまい画面は縦） */
.lp-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-7); align-items: start; }
.lp-two__main { display: grid; gap: var(--space-4); min-width: 0; }
.lp-two__side { display: grid; gap: var(--space-4); min-width: 0; }
.lp-two:not(.lp-two--rev) .lp-two__side { order: -1; }
.lp-two--rev .lp-two__side { order: 1; }

/* 同じ形の3行＋ひねり */
.trio { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.trio li { font-size: var(--fs-base); color: var(--ink-700); line-height: 1.6; }
.trio .trio__twist { margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--ink-900); }
.trio--center { text-align: center; justify-items: center; margin-block: var(--space-6); }

/* ○の箇条書き */
.lp-circle { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-circle li { position: relative; padding-left: 1.4em; font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.7; }
.lp-circle li::before { content: "○"; position: absolute; left: 0; color: var(--sky-600); font-weight: 700; }
.lp-circle--2col { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px var(--space-5); }

/* アイコンつきの1行 */
.lp-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-lines li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.7; }
.lp-lines li > svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--sky-600); }
.lp-lines .pill { margin-left: 6px; vertical-align: middle; }

.lp-note { margin: 0; font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.7; }
.lp-note--quiet { font-size: var(--fs-xs); color: var(--ink-500); }
.lp-ask { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--ink-900); }
.lp-caption { margin: 0; text-align: center; font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.7; }

.lp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: var(--space-2); }
.lp-actions--center { justify-content: center; }
.lp-actions__sub { font-size: var(--fs-sm); color: var(--ink-700); }
a.lp-actions__sub { color: var(--sky-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ふきだしのコマ */
.koma { display: flex; gap: 10px; align-items: flex-end; }
.koma__face { flex: none; width: 56px; height: 56px; }
.koma__face svg, .koma__face img { display: block; width: 56px; height: auto; }
.koma__say {
  position: relative; margin: 0 0 8px; padding: 10px 14px; border-radius: 16px; border-bottom-left-radius: 4px;
  background: #fff; box-shadow: var(--sh-sm); font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-900);
}
.koma__say::before { content: ""; position: absolute; left: -6px; bottom: 10px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.koma__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 11px; color: var(--sky-700); }

/* ---------- ① バンド：募集のカード ---------- */
.lp-live { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: var(--fs-xs); }
.lp-recruits { display: grid; gap: 10px; }
.lp-recruit {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-sm); border: 1px solid var(--border);
}
.lp-recruit__poster { flex: none; width: 44px; height: 44px; }
.lp-recruit__poster svg { display: block; width: 44px; height: 44px; }
.lp-recruit__body { flex: 1; min-width: 0; display: grid; gap: 8px; padding-right: 64px; }
.lp-recruit__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); line-height: 1.4; color: var(--ink-900); overflow-wrap: anywhere; }
.lp-recruit__title a { color: inherit; text-decoration: none; }
.lp-recruit__title a:hover { color: var(--sky-700); text-decoration: underline; }
.lp-recruit__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-recruit__badge { position: absolute; right: 12px; top: 12px; }
.lp-recruit .recruit-apps { margin: 0; }
.lp-recruit--mock { background: rgba(255,255,255,.72); border-style: dashed; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips .chip { cursor: default; min-height: 32px; padding: 0 12px; font-size: var(--fs-xs); }

/* ---------- ① バンド：これからのイベント ---------- */
.lp-events-wrap { display: grid; gap: 10px; }
.lp-events__lead { margin: 0; font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.7; }
.lp-events { display: grid; gap: 10px; }
.lp-event {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-sm); border: 1px solid var(--border);
}
/* 左の日付の枠。種類の色で塗り分ける */
.lp-event__date {
  flex: none; width: 52px; min-height: 52px; display: grid; place-content: center; gap: 2px; text-align: center;
  border-radius: 12px; background: var(--sky-100); color: var(--sky-700); font-family: var(--font-display); line-height: 1.1;
}
.lp-event__date b { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.lp-event__date small { font-size: 11px; font-weight: 600; }
.lp-event--rose .lp-event__date { background: var(--rose-100); color: var(--rose-600); }
.lp-event--lemon .lp-event__date { background: var(--lemon-100); color: var(--lemon-700); }
.lp-event--lav .lp-event__date { background: var(--lav-100); color: var(--lav-500); }
.lp-event--mint .lp-event__date { background: var(--mint-100); color: var(--mint-600); }
.lp-event__body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.lp-event--mock .lp-event__body { padding-right: 48px; }
.lp-event__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-event__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); line-height: 1.4; color: var(--ink-900); overflow-wrap: anywhere; }
.lp-event__title a { color: inherit; text-decoration: none; }
.lp-event__title a:hover { color: var(--sky-700); text-decoration: underline; }
.lp-event__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-xs); color: var(--ink-700); }
.lp-event__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.lp-event__meta svg { flex: none; width: 14px; height: 14px; color: var(--sky-600); }
.lp-event__badge { position: absolute; right: 12px; top: 12px; }
.lp-event--mock { background: rgba(255,255,255,.72); border-style: dashed; }
.lp-events__more { justify-self: start; font-size: var(--fs-sm); font-weight: 700; color: var(--sky-700); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ② 練習：苦手チップ・研究所・見本 ---------- */
.nayami { display: flex; flex-wrap: wrap; gap: 8px; }
.nayami .chip { text-decoration: none; min-height: 42px; }
/* a / span の .chip は display の指定が無く、文字が上に寄る */
.nayami .chip, .lp-chips .chip, .lp-mock__chips .chip { display: inline-flex; align-items: center; }
a.nayami, .nayami a.chip:hover { border-color: var(--rose-300); color: var(--rose-600); background: #fff; }
.lp-labo { display: grid; gap: 8px; }
.lp-labo__head { margin: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--lemon-700); }

/* 端末の見本（mock--phone の中） */
.lp-mock { width: min(320px, 100%); margin-inline: auto; }
.lp-mock__screen { padding: 14px 12px; display: grid; gap: 10px; background: var(--surface-soft); }
.lp-mock__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--sky-700); }
.lp-mock__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-mock__chips .chip { min-height: 28px; padding: 0 10px; font-size: 11px; cursor: default; }
.lp-mock__chips .chip.is-on { background: var(--grad-blue); border-color: transparent; color: #fff; }
.lp-mock__rows { display: grid; gap: 6px; }
.lp-mock__row { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--r-sm); background: #fff; font-size: 11px; font-weight: 700; color: var(--ink-700); }
.lp-mock__row i { margin-left: auto; font-style: normal; font-weight: 400; color: var(--ink-500); }
.lp-mock__row svg { width: 14px; height: 14px; color: var(--rose-500); }
.lp-mock__praise { margin: 0; padding: 12px; gap: 8px; }
.lp-mock__praise .praise__head { font-size: var(--fs-sm); }
.lp-mock__praise .praise__body { font-size: 11px; line-height: 1.5; }
.lp-mock__praise .praise__face, .lp-mock__praise .praise__hop svg { width: 44px; height: 44px; }
.lp-mock__praise .praise__pt { font-size: 10px; padding: 2px 8px; }
.lp-mock .praise__top { grid-template-columns: auto 1fr auto; }

/* ---------- ③ 友だち：タイムラインの見本 ---------- */
.lp-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgba(255,255,255,.8); }
.lp-tabs span { flex: 1; text-align: center; padding: 6px 4px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; color: var(--ink-500); white-space: nowrap; }
.lp-tabs .is-on { background: #fff; color: var(--sky-700); box-shadow: var(--sh-xs); }
.lp-post { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-xs); }
.lp-post__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lp-post__head svg { flex: none; width: 34px; height: 34px; }
.lp-post__head b { font-size: 12px; color: var(--ink-900); }
.lp-post__head .pill { margin-left: auto; font-size: 10px; padding: 2px 8px; }
.lp-post__body { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-900); }
.lp-post__reply { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-sunk); font-size: 11px; line-height: 1.6; color: var(--ink-700); }
.lp-post__reply svg { flex: none; width: 26px; height: 26px; }
.lp-post__reply b { display: block; font-size: 10px; color: var(--sky-700); }
.lp-post__acts { display: flex; gap: 14px; font-size: 11px; font-weight: 700; color: var(--ink-500); }
.lp-post__acts span { display: inline-flex; align-items: center; gap: 4px; }
.lp-post__acts svg { width: 15px; height: 15px; }
.lp-post__acts .is-on { color: var(--rose-600); }
.lp-post__acts .is-on svg { fill: currentColor; }
.lp-post__audio { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: linear-gradient(120deg, #EAF6FF, #F6F0FF); }
.lp-post__play { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-blue); color: #fff; display: grid; place-items: center; }
.lp-post__play svg { width: 14px; height: 14px; }
.lp-post__audio .wavebars { height: 22px; }

/* ---------- 相棒：ほめ言葉 → つぎのすがた ---------- */
.lp-grow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-5); align-items: center; max-width: 820px; margin: 0 auto var(--space-5); }
.lp-grow__praise { margin: 0; }
.lp-grow__arrow { color: var(--lav-500); }
.lp-grow__next { margin: 0; display: grid; justify-items: center; gap: 4px; }
.lp-grow__next figcaption { text-align: center; font-size: var(--fs-xs); color: var(--ink-700); }
.lp-grow__next figcaption b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); color: var(--ink-900); }
.lp-bar i { --w: 72%; width: 72%; }
.js .lp-grow .lp-bar i, .js .lp-mock .lp-bar i { transform: scaleX(1); }

/* 図鑑：12体＋かくれた子4体＝16。4列・8列（app.css）で割り切れる */
.lp-zukan { margin-top: var(--space-5); }
.zukan-strip__item.is-secret .zukan-strip__art { display: grid; place-items: center; width: 100%; max-width: 120px; padding: 6px; border-radius: var(--r-md); background: var(--surface-sunk); }
.zukan-strip__item.is-secret svg { width: 100%; max-width: none; padding: 0; background: none; border-radius: 0; filter: brightness(0) opacity(.16); }
.zukan-strip__item.is-secret figcaption { color: var(--ink-500); }
.zukan-strip__item.is-secret figcaption small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 10px; color: var(--ink-500); }

.lp-room { display: grid; gap: var(--space-4); justify-items: center; margin-top: var(--space-6); }
.lp-room__card { display: flex; gap: 14px; align-items: flex-start; max-width: 620px; width: 100%; }
.lp-room__card h3 { font-size: var(--fs-lg); color: var(--lav-500); margin: 0 0 4px; }
.lp-room__card p { margin: 0; font-size: var(--fs-sm); line-height: 1.7; }
.lp-room__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- はじめかた・ぜんぶ無料 ---------- */
.lp-step__art { background: var(--sky-100); }
.lp-step__art--rose { background: var(--rose-100); }
.lp-step__art--lav { background: var(--lav-100); }
.lp-step__icon { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; color: var(--sky-700); box-shadow: var(--sh-sm); }
.lp-step__art--rose .lp-step__icon { color: var(--rose-600); }
.lp-step__art--lav .lp-step__icon { color: var(--lav-500); }
.lp-step__icon svg { width: 40px; height: 40px; }
.free-box { margin-top: var(--space-7); display: grid; gap: var(--space-4); background: linear-gradient(135deg, #EAFBF5 0%, #F2F8FF 60%, #FFF3F8 100%); }
.free-box__head { display: grid; gap: 8px; justify-items: start; }
.free-box__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); color: var(--ink-900); }

/* ---------- 最後のCTA ---------- */
.lp-ghosts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-share { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin: 0; font-size: var(--fs-sm); }
.lp-share__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill);
  background: rgba(255,255,255,.8); color: var(--sky-700); font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--sh-xs);
}
.lp-share__btn:hover { background: #fff; }
.lp-share__btn:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 2px; }
.lp-share__line { color: var(--sky-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 画面の下の帯 ---------- */
.door-bar {
  /* 左右の余白で中央に置く（transform で寄せると、fade-up の keyframes の transform:none に消される） */
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-header);
  display: flex; align-items: center; gap: 4px; width: min(520px, calc(100% - 24px)); margin: 0 auto; padding: 6px;
  border-radius: var(--r-pill); background: rgba(255,255,255,.94); box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.9);
  animation: fade-up 320ms var(--ease-out) both;
}
.door-bar[hidden] { display: none; }
.door-bar__item {
  flex: 1; text-align: center; min-height: 40px; display: grid; place-items: center; padding: 0 6px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-700); text-decoration: none; white-space: nowrap;
}
.door-bar__item:hover { background: var(--sky-50); color: var(--sky-700); }
.door-bar__item[aria-current="true"] { background: var(--sky-100); color: var(--sky-700); }
.door-bar__item--lav[aria-current="true"]  { background: var(--lav-100);  color: var(--lav-500); }
.door-bar__item--rose[aria-current="true"] { background: var(--rose-100); color: var(--rose-600); }
.door-bar__cta { flex: none; }
body.has-door-bar .lp { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

/* ---------- 幅 ---------- */
@media (max-width: 860px) {
  .lp-two { grid-template-columns: 1fr; gap: var(--space-5); }
  .lp-two:not(.lp-two--rev) .lp-two__side { order: 0; }
  .lp-two--rev .lp-two__side { order: 0; }
  .lp-grow { grid-template-columns: 1fr; justify-items: center; }
  .lp-grow__arrow { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .hero__say { display: none; }
}
@media (max-width: 480px) {
  /* 初画面に3つのドアまで入るように、上の余白とマスコットを小さく */
  .hero--lp { padding-top: calc(var(--header-h) + var(--space-5)); padding-bottom: var(--space-8); }
  .hero--lp .hero__inner { gap: var(--space-4); }
  .hero--lp .hero__mascot { width: 124px; }
  .hero--lp .hero__lead { font-size: var(--fs-base); }
  .doors { gap: 8px; }
  .door { padding: 10px 4px 8px; border-radius: var(--r-md); }
  .door__art { width: 56px; height: 56px; }
  .door__label { font-size: 11px; } /* 「バンドメンバー、」が1行に入る幅 */
  .door__sub { display: none; }
  .lp-recruit__body { padding-right: 0; }
  .lp-recruit__badge { position: static; align-self: flex-start; }
  .lp-event--mock .lp-event__body { padding-right: 0; }
  .lp-event__badge { position: static; align-self: flex-start; }
  .door-bar__item { font-size: var(--fs-xs); padding: 0 4px; }
  .door-bar__cta { min-height: 36px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__say.is-say, .door-bar { animation: none; }
}
