/* ============================================================
   れこぐま 公式サイト site.css
   アプリ「れこぐま」のデザイントークンを踏襲。
   アイボリー背景 + パステル + マシュマロ質感。
   アイコンはすべてSVG。絵文字は一切使用しない。
   ============================================================ */

:root {
  --bg: #FBF6ED;
  --bg-2: #FFF9F1;
  --card: #FFFFFF;
  --card-2: #FAF1E6;
  --ink: #6A5D57;
  --ink-soft: #A99A91;
  --line: #EFE3D7;

  --feed: #F9CBD6;   --feed-edge: #ECA9BB;   --feed-ink: #A85D72;
  --poop: #C8E9DA;   --poop-edge: #A0D3BD;   --poop-ink: #3F8468;
  --sleep: #DCD3F2;  --sleep-edge: #BFB0E3;  --sleep-ink: #71619F;
  --temp: #F9E6B5;   --temp-edge: #E5CB8B;   --temp-ink: #997933;
  --growth: #C4E3F4; --growth-edge: #9BCBE4; --growth-ink: #41779B;
  --note: #EFE3CB;   --note-edge: #D8C5A2;   --note-ink: #8D744A;
  --photo: #F8DBC9;  --photo-edge: #E4B995;  --photo-ink: #99613A;

  --mama: #F09CB5; --papa: #85C3E8; --other: #ADA0DC;
  --memo-bg: #FFF8DE; --memo-line: #EFDFA8; --memo-ink: #7A5F2E; --memo-pen: #C9A94F;

  --accent: #F5AFC2;
  --accent-edge: #E289A3;
  --accent-ink: #FFFFFF;
  --accent-deep: #A85D72;

  --shadow: 0 10px 24px rgba(164, 120, 96, 0.14);
  --shadow-sm: 0 4px 14px rgba(164, 120, 96, 0.10);
  --shadow-lg: 0 24px 54px rgba(164, 120, 96, 0.22);
  --header-bg: rgba(255, 253, 248, 0.88);
  --radius: 24px;
}

:root[data-theme="dark"] {
  --bg: #1C1B2E;
  --bg-2: #232238;
  --card: #282741;
  --card-2: #302F4B;
  --ink: #EAE4EC;
  --ink-soft: #9C95AD;
  --line: #3A3856;

  --feed: #B57D8C;   --feed-edge: #8A5262;   --feed-ink: #FFE2EA;
  --poop: #6FA890;   --poop-edge: #4C7A63;   --poop-ink: #E2F7EC;
  --sleep: #9184BD;  --sleep-edge: #675A92;  --sleep-ink: #EFE9FF;
  --temp: #C3A566;   --temp-edge: #93783F;   --temp-ink: #FFF2D6;
  --growth: #6FA3C2; --growth-edge: #497795; --growth-ink: #E2F3FF;
  --note: #AE9A72;   --note-edge: #7F6E4B;   --note-ink: #FFF4DE;
  --photo: #C09068;  --photo-edge: #8F6543;  --photo-ink: #FFE9D6;

  --mama: #D77F9B; --papa: #5E9DC4; --other: #8D7FC0;
  --memo-bg: #403A26; --memo-line: #5E5535; --memo-ink: #F2E5BC; --memo-pen: #C9AE62;

  --accent: #C77E93;
  --accent-edge: #97576C;
  --accent-ink: #FFFFFF;
  --accent-deep: #F3C6D4;

  --shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 54px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(40, 39, 65, 0.9);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro",
    "Zen Maru Gothic", "Rounded Mplus 1c", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }
h1, h2, h3, h4 { line-height: 1.5; margin: 0; font-weight: 800; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.ic { display: inline-block; vertical-align: -0.22em; flex-shrink: 0; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--accent-edge); outline-offset: 3px; border-radius: 8px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1.5px solid var(--line);
}
.hd {
  display: flex; align-items: center; gap: 14px;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 19px; letter-spacing: .06em; }
.logo img { width: 38px; height: 38px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.logo small { display: block; font-size: 10px; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; line-height: 1.2; }
.gnav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.gnav > li { list-style: none; position: relative; }
.gnav a, .gnav button.navtop {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14.5px;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.gnav a:hover, .gnav button.navtop:hover { background: var(--card-2); }
.gnav li.is-current > a, .gnav li.is-current > button.navtop { color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 24%, transparent); }
.gnav .drop-ic { transition: transform .22s ease; }
.gnav li:hover .drop-ic, .gnav li:focus-within .drop-ic { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 8px);
  min-width: 268px; padding: 10px; margin: 0;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .2s ease;
}
.gnav li:hover .dropdown, .gnav li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown li { list-style: none; }
.dropdown a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 14px; width: 100%; font-size: 14px; }
.dropdown a span.t { display: block; }
.dropdown a small { display: block; font-size: 11.5px; color: var(--ink-soft); font-weight: 600; line-height: 1.5; }
.dropdown .di { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.hd-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.theme-btn, .menu-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .15s ease;
}
.theme-btn:active, .menu-btn:active { transform: translateY(2px) scale(.94); }
.menu-btn { display: none; }
:root[data-theme="dark"] .theme-btn .ic-sun { display: block; }
:root[data-theme="dark"] .theme-btn .ic-moon { display: none; }
.theme-btn .ic-sun { display: none; }

/* ---------- ボタン(マシュマロ) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border: 0; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 800; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  color: #fff;
  box-shadow: 0 5px 0 var(--accent-edge), var(--shadow), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--accent-edge), var(--shadow), inset 0 1px 0 rgba(255,255,255,.5); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--accent-edge), 0 4px 10px rgba(164,120,96,.2); }
.btn.ghost {
  background: var(--card); color: var(--ink);
  box-shadow: 0 5px 0 var(--line), var(--shadow-sm);
}
.btn.ghost:hover { box-shadow: 0 7px 0 var(--line), var(--shadow-sm); }
.btn.ghost:active { box-shadow: 0 2px 0 var(--line); }
.btn.small { padding: 10px 20px; font-size: 14px; box-shadow: 0 4px 0 var(--accent-edge), var(--shadow-sm); }
.btn.small.ghost { box-shadow: 0 4px 0 var(--line), var(--shadow-sm); }

/* ストアバッジ */
.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #1c1b2e; color: #fff; text-decoration: none;
  border-radius: 16px; padding: 11px 24px; min-width: 196px;
  box-shadow: 0 5px 0 #0d0c18, 0 12px 24px rgba(0,0,0,.2);
  transition: transform .15s ease, box-shadow .15s ease;
}
:root[data-theme="dark"] .badge { background: #0f0f1c; box-shadow: 0 5px 0 #000, 0 12px 24px rgba(0,0,0,.5); }
.badge:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #0d0c18, 0 14px 26px rgba(0,0,0,.22); }
.badge:active { transform: translateY(3px); box-shadow: 0 2px 0 #0d0c18; }
.badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.badge .t { text-align: left; line-height: 1.3; }
.badge .t small { display: block; font-size: 10px; opacity: .82; }
.badge .t b { font-size: 16px; letter-spacing: .02em; }

/* ---------- セクション ---------- */
section { padding: 74px 0; position: relative; }
section.tight { padding: 46px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); color: var(--accent-deep);
  border-radius: 999px; padding: 5px 16px; font-size: 12.5px; font-weight: 800;
  box-shadow: var(--shadow-sm); letter-spacing: .08em; margin-bottom: 14px;
}
h2.sec-title { font-size: clamp(23px, 4.2vw, 31px); color: var(--accent-deep); letter-spacing: .04em; }
.sec-lead { color: var(--ink-soft); font-weight: 700; font-size: 14.5px; margin-top: 8px; }
.sec-head { text-align: center; margin-bottom: 40px; }
h3.blk-title { font-size: 19px; color: var(--accent-deep); margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }

/* ---------- カード ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card {
  background: var(--card); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); border: 1.5px solid transparent;
}
.card.soft { background: var(--card-2); }
.card.link { text-decoration: none; color: inherit; display: block; transition: transform .18s ease, box-shadow .18s ease; }
.card.link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }
.tile {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  margin-bottom: 14px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.5);
}
.t-feed { background: var(--feed); color: var(--feed-ink); }
.t-poop { background: var(--poop); color: var(--poop-ink); }
.t-sleep { background: var(--sleep); color: var(--sleep-ink); }
.t-temp { background: var(--temp); color: var(--temp-ink); }
.t-growth { background: var(--growth); color: var(--growth-ink); }
.t-note { background: var(--note); color: var(--note-ink); }
.t-photo { background: var(--photo); color: var(--photo-ink); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--accent-deep); margin-top: 12px; }
.card.link:hover .more .ic { transform: translateX(3px); }
.more .ic { transition: transform .18s ease; }

/* ---------- ヒーロー ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--feed) 46%, var(--bg)), var(--bg) 78%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5.6vw, 46px); color: var(--accent-deep); letter-spacing: .03em; margin-bottom: 14px; }
.hero .lede { font-size: 16.5px; font-weight: 700; }
.hero .sub { font-size: 14px; color: var(--ink-soft); font-weight: 700; margin-top: 6px; }
.hero .badges { justify-content: flex-start; margin-top: 26px; }
.trial-note { margin-top: 16px; font-weight: 800; color: var(--accent-deep); font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; }

/* ページヒーロー(下層) */
.page-hero { padding: 34px 0 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--tone, var(--feed)) 42%, var(--bg)), var(--bg)); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(25px, 4.6vw, 36px); color: var(--accent-deep); letter-spacing: .03em; margin-bottom: 10px; }
.page-hero .lede { font-size: 15.5px; font-weight: 700; max-width: 640px; }
.page-hero .ph-grid { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
.page-hero .ph-ic { width: 92px; height: 92px; border-radius: 30px; display: grid; place-items: center; box-shadow: var(--shadow), inset 0 -4px 0 rgba(0,0,0,.06); }

/* パンくず */
.crumbs { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs .ic { opacity: .6; }

/* 装飾 */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; }
.deco-star { position: absolute; pointer-events: none; opacity: .75; animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .3; transform: scale(.85); } 50% { opacity: .9; transform: scale(1.08); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@keyframes floaty-s { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(-2deg); } }

/* ---------- スマホモックアップ ---------- */
.phone {
  position: relative; width: 268px; margin-inline: auto;
  border-radius: 40px; padding: 10px;
  background: linear-gradient(160deg, #fff, #EFE3D7 60%, #D8C7B6);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.7);
}
:root[data-theme="dark"] .phone { background: linear-gradient(160deg, #4A4869, #2A2942 60%, #191828); }
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 20px; border-radius: 999px; background: #16131E;
}
.phone img { border-radius: 31px; width: 100%; }
.phone.float { animation: floaty 6s ease-in-out infinite; }
.phone.tilt { transform: rotate(-3deg); }
.phone.tilt.r { transform: rotate(3deg); }
.phone-row { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.phone-cap { text-align: center; font-size: 13px; font-weight: 800; color: var(--ink-soft); margin-top: 14px; }
.phone-wrap { position: relative; }

/* ---------- アプリ風モックアップ(HTML製) ---------- */
.appmock {
  width: 300px; border-radius: 30px; background: var(--bg-2); border: 1.5px solid var(--line);
  padding: 16px 14px 14px; box-shadow: var(--shadow-lg); margin-inline: auto;
}
.appmock .am-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.appmock .am-title { font-weight: 900; font-size: 15px; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.appmock .am-title .ic { color: var(--accent); }
.am-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--ink-soft); }
.am-baby { text-align: center; margin-bottom: 12px; }
.am-baby img { width: 74px; height: 74px; border-radius: 50%; margin-inline: auto; box-shadow: 0 6px 16px rgba(164,120,96,.2); border: 3px solid var(--card); }
.am-baby .nm { font-weight: 900; font-size: 17px; margin-top: 6px; }
.am-baby .dy { font-size: 12.5px; color: var(--accent-deep); font-weight: 800; }
.am-elapsed { background: linear-gradient(180deg, var(--card), var(--card-2)); border-radius: 20px; padding: 10px; text-align: center; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.am-elapsed .lb { font-size: 11.5px; color: var(--ink-soft); font-weight: 700; }
.am-elapsed .vl { font-size: 26px; font-weight: 900; color: var(--accent-deep); line-height: 1.2; }
.am-elapsed .vl small { font-size: 14px; }
.rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rec-grid .span2 { grid-column: span 2; }
.rec-btn {
  border: 0; font-family: inherit; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--b) 62%, #fff), var(--b));
  color: var(--bi); border-radius: 18px; padding: 10px 4px 9px;
  display: grid; place-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 800; line-height: 1.2;
  box-shadow: 0 5px 0 var(--be), 0 8px 16px rgba(164,120,96,.16), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .12s ease, box-shadow .12s ease;
}
.rec-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--be), 0 10px 18px rgba(164,120,96,.18), inset 0 1px 0 rgba(255,255,255,.55); }
.rec-btn:active, .rec-btn.press { transform: translateY(4px); box-shadow: 0 1px 0 var(--be), 0 2px 6px rgba(164,120,96,.2); }
.rec-btn.big { padding: 15px 4px; font-size: 13.5px; border-radius: 22px; }
.c-feed { --b: var(--feed); --be: var(--feed-edge); --bi: var(--feed-ink); }
.c-poop { --b: var(--poop); --be: var(--poop-edge); --bi: var(--poop-ink); }
.c-sleep { --b: var(--sleep); --be: var(--sleep-edge); --bi: var(--sleep-ink); }
.c-temp { --b: var(--temp); --be: var(--temp-edge); --bi: var(--temp-ink); }
.c-growth { --b: var(--growth); --be: var(--growth-edge); --bi: var(--growth-ink); }
.c-note { --b: var(--note); --be: var(--note-edge); --bi: var(--note-ink); }
.c-photo { --b: var(--photo); --be: var(--photo-edge); --bi: var(--photo-ink); }
@keyframes bounce { 0% { transform: translateY(4px) scale(.97); } 55% { transform: translateY(-6px) scale(1.04); } 100% { transform: translateY(0) scale(1); } }
.rec-btn.bounce { animation: bounce .44s ease; }

/* 吹き出し */
.bubble {
  position: relative; background: var(--card); border-radius: 18px; padding: 9px 15px;
  font-size: 13px; font-weight: 800; color: var(--ink); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 7px;
}
.bubble .ic { color: var(--accent); }
.bubble::after { content: ""; position: absolute; left: -7px; top: 50%; transform: translateY(-50%); border: 8px solid transparent; border-right-color: var(--card); }

/* ---------- 日記デモ ---------- */
/* 日記カード(アプリの「きろく」画面と同じ作り) */
.diary {
  max-width: 540px; margin-inline: auto; background: var(--card); border-radius: 24px;
  overflow: hidden; border: 1.5px solid color-mix(in srgb, var(--feed) 55%, transparent);
  box-shadow: var(--shadow);
}
.diary .d-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; font-weight: 800; font-size: 15px; color: var(--feed-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0)), var(--feed);
}
.diary .d-head > span { display: inline-flex; align-items: center; gap: 6px; }
.diary .d-print {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  background: var(--card); color: var(--feed-ink); border-radius: 999px;
  padding: 4px 12px; font-size: 12.5px; font-weight: 800; box-shadow: var(--shadow-sm);
}
.diary .d-body {
  padding: 14px 18px 20px;
  border-left: 4px solid color-mix(in srgb, var(--feed) 45%, transparent);
  background-color: var(--card);
  background-image: repeating-linear-gradient(transparent, transparent 29px,
    color-mix(in srgb, var(--ink) 13%, transparent) 29px,
    color-mix(in srgb, var(--ink) 13%, transparent) 30px);
}
.diary .d-body p { line-height: 30px; font-size: 14.5px; margin: 0; }
.d-open { font-weight: 800; font-size: 16px; color: var(--feed-ink); }
.d-close { margin-top: 8px; font-weight: 800; color: var(--sleep-ink); text-align: right; word-break: keep-all; }

/* 沿革風の縦タイムライン(アプリと同じ) */
.tl { position: relative; padding: 2px 0 4px; }
.tl::before {
  content: ""; position: absolute; left: 63px; top: 14px; bottom: 14px;
  width: 2px; border-radius: 2px;
  background: color-mix(in srgb, var(--feed-edge) 45%, transparent);
}
.tl-item { position: relative; display: grid; grid-template-columns: 48px 32px 1fr; align-items: start; }
.tl-when { text-align: right; line-height: 30px; }
.tl-when b { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--feed-ink); }
.tl-when small { display: block; font-size: 10px; font-weight: 700; color: var(--ink-soft); line-height: 1; margin-top: -7px; }
.tl-dot {
  --d: var(--note-edge); justify-self: center; margin-top: 10px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--d);
  border: 2px solid var(--card); box-shadow: 0 0 0 2px color-mix(in srgb, var(--d) 40%, transparent);
  position: relative; z-index: 1;
}
.tl-dot[data-cat="feed"]   { --d: var(--feed-edge); }
.tl-dot[data-cat="poop"]   { --d: var(--poop-edge); }
.tl-dot[data-cat="sleep"]  { --d: var(--sleep-edge); }
.tl-dot[data-cat="temp"]   { --d: var(--temp-edge); }
.tl-dot[data-cat="growth"] { --d: var(--growth-edge); }
.tl-dot[data-cat="note"]   { --d: var(--note-edge); }
.tl-dot[data-cat="photo"]  { --d: var(--photo-edge); }
.tl-text { line-height: 30px; font-size: 14.5px; padding-left: 2px; min-width: 0; }
/* 手書きメモ(淡い黄色のカード+右上にペン) */
.tl-memo {
  position: relative; background: var(--memo-bg); border: 1.5px solid var(--memo-line);
  border-radius: 14px; padding: 8px 34px 9px 12px; margin: 5px 0 7px; line-height: 1.7;
  box-shadow: 0 2px 6px rgba(150, 120, 60, .08);
}
.tl-memo .memo-pen { position: absolute; top: 3px; right: 3px; padding: 7px; color: var(--memo-pen); display: grid; place-items: center; }
.tl-memo .memo-head { font-size: 11px; font-weight: 700; color: var(--ink-soft); margin-bottom: 2px; }
.tl-memo .memo-body { font-size: 15px; font-weight: 600; color: var(--memo-ink); }
/* 呼びかたバッジ */
.wb { display: inline-block; padding: 0 9px; border-radius: 999px; color: #fff; font-weight: 800; font-size: .82em; line-height: 1.7; margin: 0 1px; vertical-align: .06em; }
.wb.m { background: var(--mama); } .wb.p { background: var(--papa); } .wb.o { background: var(--other); }
@media (max-width: 480px) {
  .diary .d-body { padding: 12px 12px 18px; }
  .tl::before { left: 55px; }
  .tl-item { grid-template-columns: 42px 28px 1fr; }
  .tl-text, .diary .d-body p { font-size: 13.5px; }
}

/* メモカード */
.memo {
  background: var(--memo-bg); color: var(--memo-ink); border-radius: 18px; padding: 14px 18px;
  box-shadow: var(--shadow-sm); font-weight: 700; font-size: 14.5px;
  background-image: repeating-linear-gradient(transparent, transparent 27px, var(--memo-line) 27px, var(--memo-line) 28px);
  line-height: 28px;
}

/* ---------- ステップ ---------- */
.steps { counter-reset: st; display: grid; gap: 16px; }
.step { position: relative; background: var(--card); border-radius: 22px; padding: 22px 24px 22px 74px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 22px; top: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 62%, #fff), var(--accent));
  color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 17px;
  box-shadow: 0 3px 0 var(--accent-edge);
}
.step h3 { font-size: 16.5px; margin-bottom: 5px; }
.step p { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }

/* リスト */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; font-weight: 700; }
.ticks li .ic { color: var(--poop-ink); margin-top: 5px; flex-shrink: 0; }
:root[data-theme="dark"] .ticks li .ic { color: var(--poop); }

/* 表 */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); font-size: 14.5px; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; border-bottom: 1.5px solid var(--line); }
.tbl thead th { background: var(--card-2); font-weight: 800; color: var(--accent-deep); font-size: 13.5px; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th { font-weight: 800; }
.tbl tbody th { min-width: 104px; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.qa { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.qa summary {
  cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; position: relative;
  font-weight: 800; font-size: 15.5px; display: flex; gap: 10px; align-items: flex-start;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .q { color: var(--accent-deep); font-weight: 900; flex-shrink: 0; }
.qa summary::after {
  content: ""; position: absolute; right: 20px; top: 24px; width: 11px; height: 11px;
  border-right: 2.6px solid var(--ink-soft); border-bottom: 2.6px solid var(--ink-soft);
  transform: rotate(45deg); transition: transform .2s ease; border-radius: 2px;
}
.qa[open] summary::after { transform: rotate(-135deg); top: 28px; }
.qa .a { padding: 8px 20px 20px 46px; font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }
.qa .a a { font-weight: 800; }

/* 料金 */
.plans { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.plan { background: var(--card); border-radius: 26px; padding: 30px 36px; text-align: center; box-shadow: var(--shadow-sm); min-width: 250px; position: relative; border: 2.5px solid transparent; }
.plan.reco { border-color: var(--accent-edge); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent-deep); color: #fff; font-size: 11.5px; font-weight: 800; padding: 3px 16px; border-radius: 999px; white-space: nowrap; }
:root[data-theme="dark"] .plan .tag { color: #2A2942; }
.plan .name { font-weight: 800; color: var(--ink-soft); font-size: 14px; }
.plan .price { font-size: 36px; font-weight: 900; color: var(--accent-deep); line-height: 1.3; }
.plan .price small { font-size: 14px; color: var(--ink-soft); }
.plan .note { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }

/* CTA帯 */
.cta-band { background: linear-gradient(180deg, color-mix(in srgb, var(--feed) 40%, var(--bg)), color-mix(in srgb, var(--sleep) 30%, var(--bg))); padding: 62px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(21px, 4vw, 28px); color: var(--accent-deep); margin-bottom: 8px; }
.cta-band p { color: var(--ink-soft); font-weight: 700; font-size: 14.5px; margin-bottom: 24px; }
.cta-bear { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 14px; box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite; }

/* 関連リンク */
.rel { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rel a { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 15px 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); font-weight: 800; font-size: 14.5px; transition: transform .16s ease; }
.rel a:hover { transform: translateY(-3px); }
.rel a > .ic:last-child { margin-left: auto; color: var(--ink-soft); }
.rel .ri { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }

/* ノート(補足) */
.note-box { background: var(--card-2); border-radius: 20px; padding: 18px 22px; font-size: 14px; font-weight: 700; color: var(--ink-soft); display: flex; gap: 12px; align-items: flex-start; }
.note-box .ic { color: var(--temp-ink); flex-shrink: 0; margin-top: 4px; }
:root[data-theme="dark"] .note-box .ic { color: var(--temp); }

/* ---------- フッター ---------- */
.site-footer { background: color-mix(in srgb, var(--note) 40%, var(--bg)); padding: 54px 0 30px; margin-top: 20px; border-top: 1.5px solid var(--line); }
.f-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px; margin-top: 36px; padding-top: 30px; border-top: 1.5px solid var(--line); }
.f-brand { display: grid; gap: 14px; justify-items: start; }
.f-brand .logo { margin-bottom: 0; }
.f-brand p { font-size: 13px; color: var(--ink-soft); font-weight: 700; max-width: 420px; }
.f-brand .badges { justify-content: flex-start; }
.f-col h4 { font-size: 13.5px; color: var(--accent-deep); margin-bottom: 12px; letter-spacing: .06em; }
.f-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.f-col a { font-size: 13.5px; color: var(--ink); text-decoration: none; font-weight: 700; }
.f-col a:hover { color: var(--accent-deep); text-decoration: underline; }
.f-bottom { margin-top: 34px; padding-top: 20px; border-top: 1.5px solid var(--line); text-align: center; font-size: 12px; color: var(--ink-soft); font-weight: 700; line-height: 2; }

/* モバイル下部CTA */
.mob-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none;
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .3s ease;
}
.mob-cta.show { transform: translateY(0); }
.mob-cta .inner { display: flex; gap: 10px; align-items: center; }
.mob-cta img { width: 38px; height: 38px; border-radius: 12px; }
.mob-cta .tx { font-size: 12px; font-weight: 800; line-height: 1.4; }
.mob-cta .tx small { display: block; color: var(--ink-soft); font-size: 10.5px; }
.mob-cta .btn { margin-left: auto; }

/* スクロール表示 */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .42s ease, transform .42s cubic-bezier(.2,.8,.3,1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .phone.float, .cta-bear, .deco-star { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- モバイルメニュー ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 80; background: var(--bg);
  padding: 18px 20px calc(30px + env(safe-area-inset-bottom));
  overflow-y: auto; transform: translateX(100%); transition: transform .28s ease; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer .dr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer nav ul { list-style: none; padding: 0; margin: 0; }
.drawer nav > ul > li { border-bottom: 1.5px solid var(--line); }
.drawer nav > ul > li > a, .drawer .acc-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 15px 4px;
  font-size: 16px; font-weight: 800; color: var(--ink); text-decoration: none;
  background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.drawer .acc-btn > .ic:last-child { margin-left: auto; transition: transform .2s ease; }
.drawer .acc-btn[aria-expanded="true"] > .ic:last-child { transform: rotate(180deg); }
.drawer .sub { display: none; padding: 0 0 12px 8px; }
.drawer .sub.open { display: block; }
.drawer .sub a { display: flex; gap: 9px; align-items: center; padding: 11px 12px; border-radius: 14px; font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--card); margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.drawer .dr-foot { margin-top: 22px; display: grid; gap: 12px; }

@media (max-width: 900px) {
  .gnav { display: none; }
  .menu-btn { display: grid; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .badges { justify-content: center; }
  .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .mob-cta { display: block; }
  body { padding-bottom: 0; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .card { padding: 22px 20px; }
  .page-hero .ph-grid { grid-template-columns: 1fr; }
  .page-hero .ph-ic { width: 72px; height: 72px; border-radius: 24px; }
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { padding: 26px 24px; width: 100%; }
  .step { padding: 20px 20px 20px 66px; }
}

/* ---------- 2カラム ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split.narrow-l { grid-template-columns: 340px 1fr; }
.split.narrow-r { grid-template-columns: 1fr 340px; }
.split .txt h3 { font-size: clamp(19px, 3vw, 24px); color: var(--accent-deep); margin-bottom: 12px; }
.split .txt p { font-size: 15px; }
@media (max-width: 860px) {
  .split, .split.narrow-l, .split.narrow-r { grid-template-columns: 1fr; gap: 30px; }
  .split.flip > *:first-child { order: 2; }
}

/* ---------- 記録デモ ---------- */
.demo { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
.demo-hint { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13.5px; font-weight: 800; color: var(--accent-deep); margin-bottom: 14px; }
.demo-panel { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.dm-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.dm-row { display: flex; align-items: center; gap: 12px; background: var(--card-2); border-radius: 14px; padding: 8px 14px; font-weight: 800; font-size: 14px; animation: pop .34s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.dm-time { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 13px; }
.dm-chip { padding: 1px 12px; border-radius: 999px; font-size: 13px; }
.dm-chip.feed { background: var(--feed); color: var(--feed-ink); }
.dm-chip.poop { background: var(--poop); color: var(--poop-ink); }
.dm-chip.sleep { background: var(--sleep); color: var(--sleep-ink); }
.dm-chip.temp { background: var(--temp); color: var(--temp-ink); }
.dm-chip.growth { background: var(--growth); color: var(--growth-ink); }
.dm-empty { color: var(--ink-soft); font-size: 14px; font-weight: 700; text-align: center; padding: 10px 0 18px; }
.demo-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.txt-btn { background: none; border: 0; font-family: inherit; color: var(--ink-soft); font-weight: 800; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; }
.txt-btn:hover { background: var(--card-2); color: var(--accent-deep); }

/* ---------- 共感カード ---------- */
.arrow-down { display: grid; place-items: center; margin: 26px 0 6px; color: var(--accent); }

/* ---------- ヒーロー装飾 ---------- */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .bubble { position: absolute; z-index: 3; }
.hero-visual .b1 { top: 12%; right: -6px; }
.hero-visual .b2 { bottom: 18%; left: -14px; }
.hero-visual .b2::after { left: auto; right: -7px; border-right-color: transparent; border-left-color: var(--card); }
@media (max-width: 560px) {
  /* スマホでも吹き出しはスマホ画面に重ねる(上に積み上げない) */
  .hero-visual .bubble { font-size: 11.5px; padding: 7px 12px 7px 10px; gap: 6px; }
  .hero-visual .bubble .ic { width: 15px; height: 15px; }
  .hero-visual .b1 { top: 23%; right: -4px; }
  .hero-visual .b2 { bottom: 19%; left: -6px; }
}
@media (max-width: 360px) {
  .hero-visual .bubble { font-size: 10.5px; padding: 6px 10px 6px 8px; }
  .hero-visual .b1 { right: -8px; }
  .hero-visual .b2 { left: -8px; }
}

/* 数字 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat { background: var(--card); border-radius: 20px; padding: 20px 16px; text-align: center; box-shadow: var(--shadow-sm); }
.stat .n { font-size: 30px; font-weight: 900; color: var(--accent-deep); line-height: 1.3; }
.stat .n small { font-size: 14px; }
.stat .l { font-size: 12.5px; color: var(--ink-soft); font-weight: 800; }

/* 印刷イメージ */
.paper {
  background: #fff; color: #6A5D57; border-radius: 6px; padding: 22px 24px; max-width: 380px; margin-inline: auto;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: rotate(-1.5deg);
  font-size: 12px; line-height: 2;
}
.paper h4 { text-align: center; color: #A85D72; font-size: 15px; margin-bottom: 4px; }
.paper .pdate { text-align: center; color: #A99A91; font-size: 11px; margin-bottom: 12px; font-weight: 700; }
.paper .prow { display: flex; gap: 10px; border-bottom: 1px dashed #EFE3D7; padding: 3px 0; }
.paper .prow b { color: #A85D72; min-width: 46px; font-variant-numeric: tabular-nums; }

/* ポラロイド */
.polaroid { background: #fff; padding: 12px 12px 40px; border-radius: 4px; box-shadow: var(--shadow-lg); transform: rotate(2.5deg); max-width: 250px; margin-inline: auto; position: relative; }
.polaroid .ph { aspect-ratio: 1; border-radius: 2px; background: linear-gradient(160deg, #FFE3EA, #DCD3F2 60%, #C8E9DA); display: grid; place-items: center; color: #A85D72; }
.polaroid .cap { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #8D744A; font-size: 12.5px; font-weight: 800; }

/* タイムライン */
.tl { list-style: none; padding: 0; margin: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2.5px; background: var(--line); border-radius: 2px; }
.tl li { position: relative; padding: 0 0 18px 44px; }
.tl li .dot { position: absolute; left: 5px; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg); }
.tl li b { display: block; font-size: 15px; }
.tl li p { font-size: 14px; color: var(--ink-soft); font-weight: 600; margin: 2px 0 0; }

/* 比較表の丸 */
.ok { color: var(--poop-ink); font-weight: 900; }
:root[data-theme="dark"] .ok { color: var(--poop); }

/* 大きな引用 */
.pull { font-size: clamp(20px, 3.6vw, 24px); font-weight: 900; color: var(--accent-deep); line-height: 1.95; text-align: center; }

/* 見出し付きボックス */
.hbox { background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.hbox > h3 { background: color-mix(in srgb, var(--tone, var(--feed)) 55%, var(--card)); color: var(--ink); padding: 13px 20px; font-size: 15.5px; display: flex; gap: 8px; align-items: center; }
.hbox > div { padding: 20px 22px; }
.hbox p { font-size: 14.5px; }

/* ---------- モバイルのヘッダー調整 ---------- */
@media (max-width: 900px) {
  .hd { height: 60px; gap: 10px; }
  .hd-cta { display: none; }
  .hd-actions { margin-left: auto; }
  .logo { font-size: 17.5px; }
  .logo img { width: 34px; height: 34px; }
  .logo small { display: none; }
  .hero { padding: 34px 0 30px; }
  .hero .lede { font-size: 15.5px; }
  .deco-star { display: none; }
}

/* ライト/ダークで差しかえる画像 */
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

/* 小さめのスマホモックアップ(4台並べるとき) */
.phone.sm { width: 226px; padding: 8px; border-radius: 34px; }
.phone.sm::after { width: 62px; height: 16px; top: 16px; }
.phone.sm img { border-radius: 27px; }
.phone-row { gap: 20px; }

/* ============================================================
   背景のシルエット装飾(哺乳瓶・おもちゃ・星など)
   ============================================================ */
.deco-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deco-layer > span {
  position: absolute; display: block; line-height: 0; opacity: .26;
  transform: rotate(var(--rot, 0deg)) scaleX(var(--sx, 1));
  animation: sway 9s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(var(--rot, 0deg)) scaleX(var(--sx, 1)) translateY(0); }
  50% { transform: rotate(var(--rot, 0deg)) scaleX(var(--sx, 1)) translateY(-16px); }
}
:root[data-theme="dark"] .deco-layer > span { opacity: .18; }
.deco-layer .d-feed { color: var(--feed-edge); }
.deco-layer .d-poop { color: var(--poop-edge); }
.deco-layer .d-sleep { color: var(--sleep-edge); }
.deco-layer .d-temp { color: var(--temp-edge); }
.deco-layer .d-growth { color: var(--growth-edge); }
.deco-layer .d-photo { color: var(--photo-edge); }
.deco-layer .d-note { color: var(--note-edge); }
.hero > .wrap, .page-hero > .wrap, .cta-band > .wrap, .has-deco > .wrap, .has-deco > .wrap-narrow { position: relative; z-index: 1; }
.has-deco { overflow: hidden; }
@media (max-width: 700px) {
  .deco-layer > span { opacity: .2; transform: rotate(var(--rot, 0deg)) scale(.66) scaleX(var(--sx, 1)); }
  .deco-layer > span:nth-child(n+5) { display: none; }
}

/* ============================================================
   かわいい動き
   ============================================================ */
/* アイコンタイルがぷるんと揺れる */
@keyframes wiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-9deg) scale(1.08); }
  55% { transform: rotate(7deg) scale(1.08); }
  80% { transform: rotate(-3deg) scale(1.02); }
}
.tile, .ri, .ph-ic, .logo img, .cta-bear { transition: transform .25s ease; }
.card:hover .tile, .rel a:hover .ri, .logo:hover img { animation: wiggle .62s ease; }
.card.link:hover { transform: translateY(-5px) rotate(-.4deg); }
.page-hero .ph-ic:hover { animation: wiggle .62s ease; }
.cta-bear:hover { animation: hop .6s ease; }
@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-14px) scale(1.06); }
  60% { transform: translateY(0) scale(.96); }
}

/* モックアップを持ちあげる */
.phone { transition: transform .45s cubic-bezier(.2, .8, .3, 1), box-shadow .45s ease; }
.phone:hover { box-shadow: 0 30px 64px rgba(164, 120, 96, .3); }
:root[data-theme="dark"] .phone:hover { box-shadow: 0 30px 64px rgba(0, 0, 0, .6); }
.phone:not(.tilt):hover { transform: translateY(-10px) scale(1.015); }
.phone.tilt:hover { transform: rotate(-1.2deg) translateY(-10px) scale(1.015); }
.phone.tilt.r:hover { transform: rotate(1.2deg) translateY(-10px) scale(1.015); }
.phone.float:hover { animation-play-state: paused; }
.polaroid, .paper { transition: transform .4s cubic-bezier(.2, .8, .3, 1), box-shadow .4s ease; }
.polaroid:hover { transform: rotate(0deg) scale(1.03); }
.paper:hover { transform: rotate(0deg) scale(1.02); }

/* ストアバッジに光がすっと走る */
.badge { position: relative; overflow: hidden; }
.badge::after {
  content: ""; position: absolute; top: -60%; left: 0; width: 34%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: translateX(-180%) rotate(14deg);
}
.badge:hover::after { transition: transform .75s ease; transform: translateX(420%) rotate(14deg); }

/* 吹き出しがぽんっと出る */
@keyframes popin {
  0% { opacity: 0; transform: scale(.6) translateY(10px); }
  62% { opacity: 1; transform: scale(1.07) translateY(0); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-visual .bubble { animation: popin .6s .45s backwards ease-out, bob 4.6s 1.1s ease-in-out infinite; }
.hero-visual .b2 { animation-delay: .8s, 1.6s; }

/* ドロップダウンの項目がすっと降りてくる */
.dropdown li { opacity: 0; transform: translateY(-5px); transition: opacity .2s ease, transform .2s ease; }
.gnav li:hover .dropdown li, .gnav li:focus-within .dropdown li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 32ms); }
.dropdown a { transition: background .18s ease, transform .18s ease; }
.dropdown a:hover { background: var(--card-2); transform: translateX(3px); }
.dropdown a:hover .di { animation: wiggle .5s ease; }

/* FAQ の答えがふわっと開く */
@keyframes slidedown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.qa[open] .a { animation: slidedown .32s ease; }
.qa summary { transition: background .18s ease; }
.qa summary:hover { background: var(--card-2); }

/* 数字のカウントアップ中は少しはずむ */
.stat .n { transition: transform .3s ease; }
.stat:hover .n { transform: scale(1.08); }

/* 記録ボタンから飛び出すハート */
.burst { position: absolute; pointer-events: none; z-index: 5; color: var(--accent-edge); }
.burst span { position: absolute; display: block; line-height: 0; animation: burst-fly .9s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes burst-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(.4) rotate(0deg); }
  70% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(1.1) rotate(var(--br)); }
}

/* ステップの番号がふわっと */
.step { transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.step:hover::before { animation: hop .55s ease; }

/* タイムラインの点 */
.tl li .dot { transition: transform .25s ease; }
.tl li:hover .dot { transform: scale(1.18) rotate(-8deg); }

/* 呼びかたバッジ */
.wb { transition: transform .2s ease; }
.diary:hover .wb { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .deco-layer > span, .hero-visual .bubble, .cta-bear, .badge::after { animation: none !important; }
  .card:hover .tile, .rel a:hover .ri, .logo:hover img, .page-hero .ph-ic:hover,
  .cta-bear:hover, .step:hover::before, .dropdown a:hover .di { animation: none !important; }
  .burst { display: none; }
}

/* スマホでは下層ページのアイコンを右上の飾りに */
@media (max-width: 560px) {
  /* 右上のアイコンを避けるのは見出しまで(本文は全幅で使う) */
  .page-hero .ph-grid > div:first-child > .eyebrow,
  .page-hero .ph-grid > div:first-child > h1 { max-width: calc(100% - 82px); }
  .page-hero .ph-ic {
    position: absolute; top: 12px; right: 16px; z-index: 2;
    width: 58px; height: 58px; border-radius: 20px;
  }
  .page-hero .ph-ic svg { width: 26px; height: 26px; }
}

/* ---------- 開発レター(便箋) ---------- */
.letter {
  position: relative; max-width: 730px; margin-inline: auto;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 46px 46px 42px; box-shadow: var(--shadow-lg);
}
.letter::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 128px; height: 26px;
  background: color-mix(in srgb, var(--feed) 72%, transparent);
  box-shadow: 0 2px 6px rgba(164, 120, 96, .16);
  transform: translateX(-50%) rotate(-2.5deg);
}
.letter .lt-head {
  display: flex; align-items: center; gap: 9px; justify-content: center;
  color: var(--accent-deep); font-weight: 900; font-size: 15px; letter-spacing: .1em;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 2px dotted var(--line);
}
.letter .lt-body {
  background-image: repeating-linear-gradient(
    transparent, transparent 33px,
    color-mix(in srgb, var(--ink) 13%, transparent) 33px,
    color-mix(in srgb, var(--ink) 13%, transparent) 34px);
}
.letter .lt-body p { line-height: 34px; font-size: 15px; margin: 0 0 34px; }
.letter .lt-body p:last-child { margin-bottom: 0; }
.letter .lt-line { color: var(--accent-deep); font-weight: 900; font-size: 17px; }
.letter .lt-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; padding-top: 22px; border-top: 2px dotted var(--line); }
.letter .lt-sign { text-align: right; font-weight: 800; line-height: 1.9; color: var(--ink-soft); font-size: 14px; }
.letter .lt-sign b { display: block; color: var(--ink); font-size: 15px; }
.letter .lt-stamp {
  flex-shrink: 0;
  width: 104px; height: 104px; border-radius: 50%;
  border: 2.5px dashed var(--accent-edge); color: var(--accent-deep);
  display: grid; place-items: center; gap: 0; transform: rotate(-9deg);
  background: color-mix(in srgb, var(--feed) 22%, var(--card));
}
.letter .lt-stamp span { font-size: 10px; font-weight: 900; letter-spacing: .08em; margin-top: -2px; }
.letter .lt-stamp { gap: 1px; }
@media (max-width: 700px) {
  .letter { padding: 34px 16px 30px; }
  .letter .lt-body p.lt-line { font-size: 14.5px; letter-spacing: -.01em; }
  .letter::before { width: 96px; height: 22px; }
  .letter .lt-body p { font-size: 14.5px; }
  .letter .lt-stamp { width: 86px; height: 86px; transform: rotate(-6deg); }
  .letter .lt-sign { font-size: 13px; }
}

/* 引用見出しは2カラム内でも24px相当を保つ(.split .txt p より優先) */
.pull, .split .txt p.pull, .card p.pull {
  font-size: clamp(20px, 3.6vw, 24px);
  line-height: 1.95;
  font-weight: 900;
  color: var(--accent-deep);
}

/* ---------- スマホ下部CTAの調整 ---------- */
.btn { white-space: nowrap; }
.mob-cta { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.mob-cta .inner { gap: 12px; }
.mob-cta img { width: 40px; height: 40px; flex-shrink: 0; }
.mob-cta .tx { min-width: 0; line-height: 1.45; }
.mob-cta .tx small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob-cta .btn { flex-shrink: 0; }

/* フッターは案内に徹する(ストアバッジはCTA帯に一本化) */
.f-store { margin-top: 14px; font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.f-store a { color: var(--accent-deep); font-weight: 800; }
.f-store a:hover { text-decoration: underline; }

/* スマホでは演出を少し短めに(スクロールが速いため) */
@media (max-width: 700px) {
  .js .rv { transition-duration: .34s; }
}

/* PC/スマホで文言を出し分け(ヒーローのリード文) */
.only-sp { display: none; }
@media (max-width: 620px) {
  .only-pc { display: none; }
  .only-sp { display: inline; }
}

/* 「こんな夜、ありませんか」= 状況の提示(利用者の声ではない) */
.scene {
  background: var(--card); border-radius: 22px; padding: 24px 22px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
}
.scene .si {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 12px;
}
.scene h3 { font-size: 15.5px; margin-bottom: 8px; color: var(--accent-deep); line-height: 1.6; }
.scene p { font-size: 14px; color: var(--ink-soft); }

/* スタンプのくまは大きく表示するので線を細く(小さいアイコンと見た目の太さを揃える) */
.letter .lt-stamp svg { stroke-width: 1.0; }
