/* レニー 紹介ページ(トップ・レニーのこと・安全のこと・よくある質問)のスタイル
 * 見た目は lp/ のデザイン(Claude Design)を写したもの。規約などの文書ページは style.css。
 * CSP が style-src 'self' なので、style 属性や <style> は使わず、すべてここに書く。
 * 外部のフォントは読み込まない(閲覧者の情報を第三者に送らないため)。スマートフォンの幅から組む。
 */

:root {
  color-scheme: light;
  --ink: #2c3540;
  --text-2: #535e6a;
  /* 小さい文字の薄い色。グラデーションの上でも 4.5:1 を保つ(デザインの #7c8792・#93a0aa から濃くした) */
  --text-3: #5c6772;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --line: #eef0ef;
  --band: #2c3540;
  --band-text: #e7eaec;
  --band-muted: #a9b3ba;
  --grad-page: linear-gradient(160deg, #d4f1e3 0%, #d9e9f8 34%, #e9e4f6 66%, #f6f2f9 100%);
  --grad-soft: linear-gradient(120deg, rgba(212, 241, 227, 0.75), rgba(217, 233, 248, 0.6) 48%, rgba(233, 228, 246, 0.5) 80%, rgba(251, 251, 250, 0));
  --grad-band: linear-gradient(120deg, #d4f1e3, #d9e9f8 48%, #e9e4f6 82%);
  /* 白い文字が 4.5:1 を保つよう、デザインの #1ea583・#4b83c8・#7f6cc2 を少し深くした */
  --grad-cta: linear-gradient(135deg, #177f66, #3f73b6, #6e5bb5);
  --shadow-card: 0 10px 28px rgba(20, 27, 34, 0.08);
  --shadow-soft: 0 2px 10px rgba(44, 53, 64, 0.04);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "YuGothic", Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1280px;
  --gutter: 20px;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 40px;
  }
}

@media (min-width: 64rem) {
  :root {
    --gutter: 56px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* body のグラデーションをページの外(引っぱったときの余白)に繰り返させない */
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  line-break: strict;
  /* 日本語を文節で折り返す(対応している Chrome だけ。Safari は見出しなどの .phrase で補う) */
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #4b83c8;
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* 最後の行に1〜2文字だけ残るのを避ける(対応しているブラウザだけ) */
p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 見出しの句で折り返す。狭い画面でも「、」の途中で切れにくくし、広い画面ではデザインどおり句ごとに改行する */
.phrase {
  display: inline-block;
}

@media (min-width: 48rem) {
  h1 .phrase,
  h2 .phrase,
  .lines .phrase {
    display: block;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 本文へ移動(キーボード操作用) */
.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 0.875rem;
  text-decoration: none;
}

.skip:focus {
  top: 8px;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: relative;
  z-index: 2;
}

.page .site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-top: 14px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(20, 27, 34, 0.12);
}

.site-nav {
  order: 3;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  font-size: 0.9375rem;
}

.site-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-2);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.site-header .store {
  display: none;
}

@media (min-width: 48rem) {
  .site-header .wrap {
    flex-wrap: nowrap;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .site-nav {
    order: 0;
    width: auto;
    margin-left: auto;
    gap: 0 26px;
  }

  .site-header .store {
    display: inline-flex;
  }
}

/* ---------- App Store のボタン ----------
 * 公開までは <span class="store is-soon">App Store で近日公開</span>。
 * 公開したら <a class="store" href="https://apps.apple.com/jp/app/id6817677064">App Store でダウンロード</a> に替える(web/README.md)。
 */

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--grad-cta);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
}

a.store:hover {
  filter: brightness(1.08);
}

.store.is-soon {
  cursor: default;
}

.store-sm {
  padding: 11px 20px;
  font-size: 0.875rem;
}

.store-lg {
  padding: 17px 34px;
  font-size: 1rem;
  box-shadow: 0 12px 28px rgba(20, 27, 34, 0.16);
}

.store-dark {
  background: var(--ink);
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-soft {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.btn-soft:hover {
  background: #fff;
}

.more {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- 共通の部品 ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.section-title {
  font-size: clamp(1.5rem, 5.6vw, 2rem);
  line-height: 1.6;
}

.body {
  max-width: 36em;
  font-size: 1rem;
  line-height: 2.05;
  color: var(--text-2);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

/* スマートフォンの枠に入れた画面 */
.phone {
  width: 220px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--ink);
  border: 8px solid var(--ink);
  border-radius: 38px;
  box-shadow: 0 24px 50px rgba(20, 27, 34, 0.18);
}

.phone img {
  width: 100%;
}

.phone-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone-fig figcaption {
  max-width: 250px;
  text-align: center;
}

.phone-fig strong {
  display: block;
  font-size: 1rem;
  line-height: 1.7;
}

.phone-fig span {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--text-2);
}

.card {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-card);
}

.card-plain {
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.card h2,
.card h3,
.card-plain h2 {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.card p,
.card-plain p {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--text-2);
}

.card-plain p a {
  font-weight: 700;
  color: var(--ink);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

@media (min-width: 48rem) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .card-plain {
    padding: 30px;
  }

  .card-plain h2 {
    font-size: 1.125rem;
  }
}

@media (min-width: 60rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .card {
    padding: 28px;
  }
}

/* ---------- トップ ---------- */

.home {
  background: var(--grad-page);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 36px var(--gutter) 40px;
  text-align: center;
}

.hero-mascot {
  width: 150px;
}

.hero-kicker {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3e4a56;
}

.hero h1 {
  font-size: clamp(1.75rem, 7.4vw, 3.5rem);
  line-height: 1.5;
}

.hero .body {
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  padding-top: 4px;
}

.hero-meta {
  font-size: 0.8125rem;
  color: var(--text-3);
}

@media (min-width: 48rem) {
  .hero {
    gap: 22px;
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .hero-mascot {
    width: 200px;
  }

  .hero .body {
    font-size: 1.0625rem;
  }
}

/* ヒーローの飾り */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
}

.hero > :not(.hero-glow) {
  position: relative;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* 下の端で切れて見えないよう、下に向かって消す */
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  mask-image: linear-gradient(#000 55%, transparent 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob-1 {
  top: 6%;
  left: -140px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(30, 165, 131, 0.2), rgba(30, 165, 131, 0) 70%);
}

.blob-2 {
  top: -120px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(75, 131, 200, 0.2), rgba(75, 131, 200, 0) 70%);
}

.blob-3 {
  bottom: -220px;
  left: 42%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(127, 108, 194, 0.18), rgba(127, 108, 194, 0) 70%);
}

.hero-art {
  position: relative;
}

/* 「入力中…」の小さな吹き出し */
.bubble-deco {
  position: absolute;
  width: 46px;
  height: 30px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 50%, #a7b2be 2.6px, transparent 3.2px),
    radial-gradient(circle at 50% 50%, #a7b2be 2.6px, transparent 3.2px),
    radial-gradient(circle at 70% 50%, #a7b2be 2.6px, transparent 3.2px),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(20, 27, 34, 0.08);
}

.bubble-deco::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(45deg);
}

.bubble-deco-1 {
  top: 10%;
  right: -40px;
}

.bubble-deco-1::after {
  left: 9px;
}

.bubble-deco-2 {
  top: 40%;
  left: -52px;
  width: 38px;
  height: 26px;
}

.bubble-deco-2::after {
  right: 8px;
}

/* 4つの角のきらめき */
.twinkle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ffffff, #cfe3f5);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.twinkle-1 {
  top: 2%;
  left: -18px;
}

.twinkle-2 {
  right: -14px;
  bottom: 16%;
  width: 11px;
  height: 11px;
}

/* 3台のスマートフォン。狭い画面では横に送る */
.phones {
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 12px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch;
}

.phones > li {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.phones-hint {
  padding: 0 var(--gutter);
  font-size: 0.8125rem;
  color: var(--text-3);
  text-align: center;
}

@media (min-width: 60rem) {
  .phones {
    justify-content: center;
    align-items: flex-end;
    gap: 34px;
    padding-top: 16px;
    padding-bottom: 0;
    overflow: visible;
  }

  .phones .phone {
    width: 250px;
    border-width: 9px;
    border-radius: 42px;
  }

  .phones .is-main {
    padding-bottom: 44px;
  }

  .phones .is-main .phone {
    width: 290px;
    border-width: 10px;
    border-radius: 48px;
    box-shadow: 0 30px 60px rgba(20, 27, 34, 0.22);
  }

  .phones .is-main strong {
    font-size: 1.0625rem;
  }

  .phones .is-main figcaption {
    max-width: 290px;
  }

  .phones-hint {
    display: none;
  }
}

/* できること: 絵のあるカードを大小で組む(広い画面では 4+2 / 2+2+2) */
.features {
  margin-top: 48px;
  padding: 56px 0 64px;
  background: var(--bg);
}

.bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 24px 26px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* カードの上の方に、やわらかい色をしく */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 64%;
  background: radial-gradient(120% 90% at 50% 0%, rgba(212, 241, 227, 0.8), rgba(217, 233, 248, 0.55) 48%, rgba(233, 228, 246, 0.3) 72%, rgba(255, 255, 255, 0) 100%);
}

.bento-card:nth-child(2)::before,
.bento-card:nth-child(5)::before {
  background: radial-gradient(120% 90% at 50% 0%, rgba(233, 228, 246, 0.85), rgba(217, 233, 248, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
}

.bento-card:nth-child(3)::before {
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 238, 214, 0.75), rgba(233, 228, 246, 0.4) 55%, rgba(255, 255, 255, 0) 100%);
}

.bento-card:nth-child(4)::before {
  background: radial-gradient(120% 90% at 50% 0%, rgba(217, 233, 248, 0.85), rgba(212, 241, 227, 0.45) 55%, rgba(255, 255, 255, 0) 100%);
}

.bento-card > * {
  position: relative;
}

.bento-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 176px;
}

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

.bento-no {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.bento-card h3 {
  margin-top: 2px;
  font-size: 1.125rem;
  line-height: 1.6;
}

.bento-card p {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--text-2);
}

@media (hover: hover) {
  .bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(20, 27, 34, 0.12);
  }
}

@media (min-width: 48rem) {
  .bento {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .bento-card.is-wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding: 28px 44px;
  }

  .bento-card.is-wide::before {
    inset: 0 auto 0 0;
    width: 58%;
    height: auto;
    background: radial-gradient(95% 120% at 0% 50%, rgba(212, 241, 227, 0.85), rgba(217, 233, 248, 0.6) 45%, rgba(233, 228, 246, 0.35) 70%, rgba(255, 255, 255, 0) 100%);
  }

  .bento-card.is-wide .bento-art {
    flex: 0 0 46%;
    height: 250px;
  }

  .bento-card.is-wide h3 {
    font-size: 1.5rem;
  }

  .bento-card.is-wide p {
    font-size: 1rem;
  }
}

@media (min-width: 64rem) {
  .features {
    margin-top: 64px;
    padding: 72px 0 88px;
  }

  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento-card {
    grid-column: span 2;
  }

  .bento-card.is-wide {
    grid-column: span 4;
  }

  .bento-art {
    height: 188px;
  }
}

/* レニー: 誰も起きていない時間なので、夜の空にする */
.night {
  position: relative;
  /* hidden だとこの段がスクロールの箱になり、中のスクロール連動の動きが止まる。clip は箱にならない */
  overflow: hidden;
  overflow: clip;
  padding: 64px 0;
  color: #f1f3f8;
  background: linear-gradient(165deg, #1d2644 0%, #29305c 48%, #3d3066 100%);
}

.night-sky,
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stars-1 {
  background-image:
    radial-gradient(1.6px 1.6px at 22px 34px, #fff 50%, transparent 55%),
    radial-gradient(1px 1px at 112px 84px, #fff 50%, transparent 55%),
    radial-gradient(1.9px 1.9px at 204px 22px, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 262px 146px, #fff 50%, transparent 55%),
    radial-gradient(1px 1px at 64px 176px, #fff 50%, transparent 55%);
  background-size: 300px 210px;
}

.stars-2 {
  background-image:
    radial-gradient(1.3px 1.3px at 46px 62px, #dfe4ff 50%, transparent 55%),
    radial-gradient(2.1px 2.1px at 172px 112px, #fff 50%, transparent 55%),
    radial-gradient(1px 1px at 232px 42px, #fff 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 92px 204px, #e9e4f6 50%, transparent 55%);
  background-size: 270px 250px;
  background-position: 40px 24px;
}

.night .wrap {
  position: relative;
}

.night .eyebrow {
  color: #b8c1e4;
}

.night .body {
  color: rgba(241, 243, 248, 0.88);
}

.night .more {
  color: #fff;
}

.night-art {
  position: relative;
}

.night-art::before {
  content: "";
  position: absolute;
  inset: 6% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 204, 255, 0.38), rgba(196, 204, 255, 0) 66%);
}

.night-art img {
  position: relative;
  width: 250px;
  margin: 0 auto;
}

/* 会話の扱いの2行 */
.night-points {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-width: 34em;
}

.night-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(241, 243, 248, 0.88);
}

.night-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #cdd5f5;
}

/* やりとりの例。返事の枠と「入力中」を同じ場所に重ねる */
.chat-demo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin-top: 4px;
}

.msg {
  margin: 0;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.85;
}

.msg-me {
  align-self: flex-end;
  max-width: 88%;
  color: #fff;
  background: linear-gradient(135deg, #3f73b6, #6e5bb5);
  border-bottom-right-radius: 6px;
}

.reply {
  display: grid;
  justify-items: start;
}

.reply > .msg {
  grid-area: 1 / 1;
}

.msg-leny {
  max-width: 94%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border-bottom-left-radius: 6px;
}

.msg-who {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
}

.msg-typing {
  display: none;
  align-self: start;
  gap: 5px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom-left-radius: 6px;
}

.msg-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa5b1;
}

@media (min-width: 60rem) {
  .night {
    padding: 96px 0;
  }

  .night .split {
    grid-template-columns: 420px 1fr;
    gap: 64px;
  }

  .night-art img {
    width: 390px;
  }
}

.promises {
  padding: 56px 0;
  background: var(--bg);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--grad-band);
  color: var(--ink);
}

.section-more {
  margin-top: 20px;
}

@media (min-width: 60rem) {
  .promises {
    padding: 56px 0;
  }
}

.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px var(--gutter);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.cta-band img {
  width: 120px;
}

.cta-title {
  font-size: clamp(1.375rem, 4.8vw, 1.625rem);
  font-weight: 700;
  line-height: 1.6;
}

@media (min-width: 60rem) {
  .cta-band {
    padding: 56px var(--gutter);
  }

  .cta-band img {
    width: 130px;
  }
}

/* ---------- 下層ページ(レニーのこと・安全のこと・よくある質問) ---------- */

.page-hero {
  background: var(--grad-soft);
}

.page-hero .split {
  padding-top: 44px;
  padding-bottom: 44px;
}

.page-hero h1 {
  font-size: clamp(2rem, 7.2vw, 3rem);
  line-height: 1.5;
}

.page-hero-art img {
  margin: 0 auto;
}

.art-listen {
  width: 160px;
}

.art-wave {
  width: 130px;
}

@media (min-width: 60rem) {
  .page-hero .split {
    grid-template-columns: 1fr 380px;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .art-listen {
    width: 220px;
  }

  .art-wave {
    width: 170px;
  }
}

.section {
  padding: 40px 0;
}

@media (min-width: 60rem) {
  .section {
    padding: 56px 0;
  }
}

.section-head {
  margin-bottom: 24px;
}

/* 安全のこと: 項目と説明の組 */
.rows {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row h2 {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.row p {
  max-width: 42em;
  font-size: 0.9375rem;
  line-height: 2.05;
  color: var(--text-2);
}

.row p + p {
  margin-top: 8px;
}

.row a {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 48rem) {
  .row {
    grid-template-columns: 220px 1fr;
    gap: 36px;
    padding: 28px 0;
  }
}

.inapp {
  padding: 40px 0 16px;
  border-top: 1px solid var(--line);
}

.inapp .section-head {
  align-items: center;
  text-align: center;
}

.phones-2 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 48px;
}

.help {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 32px 0 56px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.help img {
  width: 96px;
}

.help-title {
  font-size: 1.0625rem;
  font-weight: 700;
}

.help-text {
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--text-2);
}

@media (min-width: 48rem) {
  .help {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    margin-bottom: 64px;
    padding: 26px 28px;
  }

  .help img {
    width: 110px;
  }

  .help .more {
    margin-left: auto;
    white-space: nowrap;
  }
}

/* よくある質問 */
.faq-more {
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.faq-more a {
  color: var(--ink);
  font-weight: 700;
}

.cta-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px var(--gutter) 64px;
  text-align: center;
}

.cta-inline img {
  width: 110px;
}

.cta-inline .stack {
  align-items: center;
  gap: 14px;
}

@media (min-width: 48rem) {
  .cta-inline {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    text-align: left;
  }

  .cta-inline .stack {
    align-items: flex-start;
  }
}

/* ---------- フッター ---------- */

.site-footer {
  padding: 44px 0 32px;
  background: var(--band);
  color: var(--band-text);
  font-size: 0.875rem;
}

.footer-main {
  display: grid;
  gap: 28px;
}

.site-footer a {
  color: var(--band-text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer .brand img {
  width: 34px;
  height: 34px;
}

.footer-note {
  margin-top: 12px;
  max-width: 34em;
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--band-muted);
}

.footer-note a {
  color: var(--band-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer li a {
  display: inline-block;
  padding: 4px 0;
}

.footer-docs a {
  color: var(--band-muted);
}

.footer-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(231, 234, 236, 0.14);
  font-size: 0.8125rem;
  color: var(--band-muted);
}

@media (min-width: 48rem) {
  .footer-main {
    grid-template-columns: 1fr auto auto;
    gap: 40px 64px;
    align-items: start;
  }
}

/* ---------- 上に留めるヘッダー(広い画面) ---------- */

@media (min-width: 48rem) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(251, 251, 250, 0.8);
    border-bottom: 1px solid rgba(44, 53, 64, 0.06);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }

  .page .site-header {
    background: transparent;
    border-bottom: 0;
  }
}

/* ---------- 動き ----------
 * 「動きを減らす」を選んでいる人には、どれも動かさない。
 * スクロールに合わせて出す動き(animation-timeline)は、対応しているブラウザだけ。対応していないブラウザでは、最初から表示する。
 */

@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes reveal-up {
  from { opacity: 0; translate: 0 36px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes msg-in {
  from { opacity: 0; translate: 0 14px; scale: 0.96; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes typing-box {
  0% { opacity: 0; }
  20%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(48px, 32px) scale(1.14); }
}

@keyframes pop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-9px) scale(1.07); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.65) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(25deg); }
}

@keyframes twinkle-layer {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes glow {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-6deg); }
  30% { transform: rotate(5deg); }
  45% { transform: rotate(-3deg); }
  60% { transform: rotate(0deg); }
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes header-frost {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  /* 開いたとき、上から順に */
  .hero-art,
  .hero-kicker,
  .hero h1,
  .hero .body,
  .hero-actions,
  .hero-meta {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-kicker { animation-delay: 0.12s; }
  .hero h1 { animation-delay: 0.22s; }
  .hero .body { animation-delay: 0.36s; }
  .hero-actions { animation-delay: 0.5s; }
  .hero-meta { animation-delay: 0.62s; }

  /* ふわふわ */
  .hero-mascot { animation: bob 6s ease-in-out infinite; }
  .blob-1 { animation: drift 18s ease-in-out infinite alternate; }
  .blob-2 { animation: drift 23s ease-in-out -6s infinite alternate-reverse; }
  .blob-3 { animation: drift 20s ease-in-out -3s infinite alternate; }
  .bubble-deco-1 { animation: pop 4.8s ease-in-out infinite; }
  .bubble-deco-2 { animation: pop 5.6s ease-in-out -2s infinite; }
  .twinkle-1 { animation: twinkle 3.4s ease-in-out infinite; }
  .twinkle-2 { animation: twinkle 4.2s ease-in-out -1.5s infinite; }

  .store-lg {
    background-size: 220% 220%;
    animation: sheen 7s ease-in-out infinite;
  }

  .phones .phone { animation: bob 7s ease-in-out infinite; }
  .phones li:nth-child(2) .phone { animation-delay: -2.3s; }
  .phones li:nth-child(3) .phone { animation-delay: -4.6s; }

  .bento-art img { animation: bob 6.4s ease-in-out infinite; }
  .bento-card:nth-child(2) .bento-art img { animation-delay: -1.3s; }
  .bento-card:nth-child(3) .bento-art img { animation-delay: -2.6s; }
  .bento-card:nth-child(4) .bento-art img { animation-delay: -3.9s; }
  .bento-card:nth-child(5) .bento-art img { animation-delay: -5.2s; }

  @media (hover: hover) {
    .bento-card:hover .bento-art img { animation-duration: 2.4s; }
  }

  .night-art img { animation: bob 8s ease-in-out infinite; }
  .night-art::before { animation: glow 6s ease-in-out infinite; }
  .stars-1 { animation: twinkle-layer 4s ease-in-out infinite; }
  .stars-2 { animation: twinkle-layer 5.5s ease-in-out -2s infinite; }
  .msg-typing span { animation: typing-dot 1.2s ease-in-out infinite; }
  .msg-typing span:nth-child(2) { animation-delay: 0.15s; }
  .msg-typing span:nth-child(3) { animation-delay: 0.3s; }

  .cta-band img {
    transform-origin: 50% 90%;
    animation: wave 3.6s ease-in-out infinite;
  }

  /* 下層ページ */
  .page-hero-art img { animation: bob 6.5s ease-in-out infinite; }
  .phones-2 .phone { animation: bob 7.5s ease-in-out infinite; }
  .phones-2 li:nth-child(2) .phone { animation-delay: -3s; }
  .help img,
  .cta-inline img { animation: bob 6s ease-in-out -1s infinite; }

  @supports (animation-timeline: view()) {
    /* スクロールして見えてきたら、下から出す */
    .reveal,
    .page .grid-2 > .card-plain,
    .page .rows > .row,
    .page .phones-2 > li,
    .page .help,
    .page .faq-more {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    .page .grid-2 > .card-plain:nth-child(even),
    .page .phones-2 > li:nth-child(2) {
      animation-range: entry 8% entry 63%;
    }

    .bento-card:nth-child(2),
    .bento-card:nth-child(4),
    .promises .card:nth-child(2) {
      animation-range: entry 8% entry 63%;
    }

    .bento-card:nth-child(5),
    .promises .card:nth-child(3) {
      animation-range: entry 16% entry 71%;
    }

    /* やりとりの例: 相手の言葉 → 入力中 → レニーの返事、をスクロールに合わせて */
    .chat-demo {
      view-timeline-name: --chat;
    }

    .msg-me {
      animation: msg-in linear both;
      animation-timeline: --chat;
      animation-range: entry 10% entry 100%;
    }

    .msg-typing {
      display: flex;
      animation: typing-box linear both;
      animation-timeline: --chat;
      animation-range: cover 18% cover 32%;
    }

    .msg-leny {
      animation: msg-in linear both;
      animation-timeline: --chat;
      animation-range: cover 26% cover 36%;
    }
  }

  /* 広い画面では、ヘッダーはスクロールしてから曇りガラスにする */
  @supports (animation-timeline: scroll()) {
    @media (min-width: 48rem) {
      .home .site-header::before {
        animation: header-frost linear both;
        animation-timeline: scroll(root);
        animation-range: 0 140px;
      }
    }
  }
}

/* 印刷 */
@media print {
  .skip,
  .site-header .store,
  .phones-hint,
  .hero-glow,
  .bubble-deco,
  .twinkle,
  .night-sky,
  .msg-typing {
    display: none;
  }

  body,
  .home {
    background: #fff;
  }

  .phones {
    overflow: visible;
    flex-wrap: wrap;
  }
}
