/* ======================================================================
  Zoo Baby – Pink/Orange Theme (SP-first, compact)
  File: /assets/css/style.css
  Last update: 2025-09-19
====================================================================== */

/* -------- Reset -------- */
*,
*::before,
*::after { box-sizing: border-box; }
:root { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI",
    "YuGothic", "Meiryo", sans-serif;
  line-height: 1.6;
  color: #3a2a2a;
  background: #fff;
}

/* -------- Theme Vars -------- */
:root{
  --pink-50:#fff5fa;
  --pink-100:#ffe8f2;
  --pink-200:#ffd0e6;
  --pink-400:#ff7ac7;
  --pink-500:#ff4da6;
  --orange-50:#fff7ef;
  --orange-100:#ffefe1;
  --orange-300:#ffd0a3;
  --orange-500:#ffaf61;
  --bg:#fff7fb;
  --ink:#41363a;
  --muted:#8e7c82;
  --card:#ffffff;
  --border:rgba(0,0,0,.08);
  --shadow:0 8px 24px rgba(255,77,166,.08), 0 2px 8px rgba(0,0,0,.06);
  --radius-12:12px; --radius-16:16px; --radius-18:18px; --radius-24:24px;
  --grad:linear-gradient(135deg, var(--pink-500) 0%, var(--orange-500) 100%);
  --icon: 20px;          /* 基本アイコンサイズ（SP） */
  --icon-lg: 24px;       /* 大きめアイコン */
}

/* -------- Container / Background -------- */
.container{
  width: min(980px, 100%);
  margin-inline: auto;
  padding: 16px clamp(12px, 3.5vw, 24px);
  background:
    radial-gradient(1200px 600px at 80% -200px, #ffe5f3 0, transparent 60%),
    radial-gradient(800px 400px at -100px 30%, #fff2e3 0, transparent 60%);
}

/* ------------------------------------------------------------------ */
/* Header（SPは1行固定）                                             */
/* ------------------------------------------------------------------ */
.site-header{
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(180deg, #fffdfa 0%, rgba(255,253,250,.92) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  min-height: 48px; /* 1行高さ */
}
.site-header__left,
.site-header__right{ display:flex; align-items:center; gap:8px; }

.brand{ display:flex; align-items:center; gap:8px; min-width: 0; }
.brand__icon{ font-size: var(--icon); line-height: 1; }
.brand__title{
  font-size: 14px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 70vw;
}
.pill-btn.like-btn{
  width: 36px; height: 36px; border-radius: 999px; border:1px solid var(--border);
  display:grid; place-items:center; background:#fff;
}

/* ------------------------------------------------------------------ */
/* Tabbar（上部の4タブ）                                              */
/* ------------------------------------------------------------------ */
.tabbar{
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 10px; padding: 10px; margin: 10px 12px 0;
  background: linear-gradient(135deg, #fff, var(--orange-50));
  border: 1px solid var(--border); border-radius: 16px;
}
.tabbar__link{
  display:grid; grid-template-columns: 22px 1fr; align-items:center; gap:8px;
  min-height:44px; padding: 10px 12px;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: 12px; text-decoration:none; color:var(--ink);
  font-weight:700; letter-spacing:.02em;
  box-shadow: 0 1px 0 #fff inset;
}
.tabbar__link.is-active{
  color:#fff; background: var(--grad); border-color: transparent;
}
.tabbar__icon{ font-size: var(--icon); line-height: 1; }
.tabbar__link :where(svg,img){ width: var(--icon); height: var(--icon); }

/* ------------------------------------------------------------------ */
/* Page hero / segmented                                              */
/* ------------------------------------------------------------------ */
.page-hero{ padding: 8px 0 4px; }
.page-title{ margin: 8px 0 12px; font-size: clamp(20px, 5vw, 28px); letter-spacing:.02em; }
.segmented{ display:flex; gap:8px; flex-wrap: wrap; }
.segmented__btn{
  border:1px solid var(--border); background:#fff; color:var(--ink);
  padding:8px 12px; border-radius:999px; font-weight:700;
}
.segmented__btn.is-selected{ background:var(--grad); color:#fff; border-color:transparent; }

/* ------------------------------------------------------------------ */
/* Card / Panel                                                       */
/* ------------------------------------------------------------------ */
.card{
  background:var(--card); border:1px solid var(--border);
  border-radius: var(--radius-18); box-shadow: var(--shadow);
  padding: 14px; margin: 16px 0;
}
.card--panel{ padding: 14px; }
.card--message{ background: linear-gradient(180deg, #fff, var(--pink-50)); }

.panel-head{ display:flex; align-items:center; gap:12px; margin-bottom: 8px; }
.panel-icon{
  width:36px; height:36px; border-radius:12px; display:grid; place-items:center;
  background: linear-gradient(135deg, #ffe4f0, #ffe7d5);
  border:1px solid var(--border);
  font-size: var(--icon-lg); line-height: 1; /* ← ここでアイコン肥大を抑制 */
}
.panel-head :where(svg,img){ width: var(--icon-lg); height: var(--icon-lg); }

/* === Card thumbnail fix (news / babies 共通) ====================== */
.card .thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2;
}
.card .thumb > img{
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-height: none !important;   /* アイコン用 max-height を打ち消す */
}

/* ------------------------------------------------------------------ */
/* Calendar Head                                                      */
/* ------------------------------------------------------------------ */
.calendar-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin: 12px 0 10px;
}
.chip{
  display:inline-grid; grid-auto-flow:column; gap:8px; align-items:center;
  padding:8px 12px; border-radius:999px; background: #fff;
  border:1px solid var(--border); font-weight:800;
}
.chip--calendar{ background: linear-gradient(135deg, #fff, #fff7f0); }
.chip__icon{ font-size: var(--icon); line-height: 1; }
.chip :where(svg,img){ width: var(--icon); height: var(--icon); }
.nav-icon{
  width:40px; height:40px; display:grid; place-items:center;
  border-radius:12px; border:1px solid var(--border); background:#fff;
  font-size:16px; font-weight:900;
}

/* ------------------------------------------------------------------ */
/* Calendar Grid                                                      */
/* ------------------------------------------------------------------ */
.calendar{ margin-top: 2px; }
.calendar__weekday{
  display:grid; grid-template-columns:repeat(7,1fr); gap:6px;
  padding: 6px 2px; color:#6b6b6b; font-weight:700; text-align:center;
}
.calendar__grid{
  display:grid; grid-template-columns:repeat(7,1fr); gap:6px;
}
.cal-day{
  position:relative; height:52px;
  display:grid; place-items:center;
  background:#fff; border:1px solid var(--border); border-radius:12px;
  font-weight:700; color:#2e2a2b;
}
.cal-day--muted{ color:#b8aeb2; background: #fffdfa; }
.cal-day--has{ box-shadow: inset 0 0 0 2px rgba(255, 77, 166, .25); }
.cal-day__date{
  position:absolute; top:6px; right:8px; color:#6b6b6b;
  font-size:11px; font-weight:900;
}
.cal-day__dot{
  position:absolute; bottom:6px; left:50%; transform:translateX(-50%);
  width:6px; height:6px; border-radius:50%; background: var(--pink-400);
}
.cal-day__dot--past{ background:#96a0ad; }

/* Legend */
.legend{
  display:flex; align-items:center; gap:16px; margin-top:8px;
  color:#6b6b6b; font-size:13px;
}
.dot{ display:inline-block; width:10px; height:10px; border-radius:50%; transform:translateY(1px); margin-right:4px; }
.dot--future{ background: var(--pink-400); }
.dot--past{ background: #96a0ad; }

/* ------------------------------------------------------------------ */
/* Birthday List                                                      */
/* ------------------------------------------------------------------ */
.bday-list{ display:grid; gap:10px; }
.bday-card{
  display:grid; grid-template-columns: 48px 1fr auto; gap:12px; align-items:center;
  padding:12px; border:1px solid var(--border); border-radius:16px; background:#fff;
}
.bday-card__avatar{
  width:48px; height:48px; border-radius:12px; display:grid; place-items:center;
  background: linear-gradient(135deg, #ffe4f0, #ffe7d5);
  border:1px solid var(--border);
  font-size: var(--icon-lg);
}
.bday-card__title{ margin:0; font-size:16px; font-weight:800; }
.bday-card__meta{ margin:2px 0 0; color:#7c6e73; font-size:12px; }
.bday-chip{
  background: var(--grad); color:#fff; border-radius:999px; font-weight:800;
  padding:6px 10px; font-size:12px; white-space:nowrap;
}

/* ------------------------------------------------------------------ */
/* Message card                                                       */
/* ------------------------------------------------------------------ */
.card--message h3{ display:flex; align-items:center; gap:8px; margin:0 0 8px; font-size:18px; }
.icon-heart{
  width:28px; height:28px; border-radius:8px; display:grid; place-items:center;
  background: var(--grad); color:#fff; font-size: var(--icon);
}

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */
.site-footer{ color:#7a6d72; text-align:center; padding: 24px 16px; font-size:12px; }

/* ------------------------------------------------------------------ */
/* アイコン暴走ガード（カード／ボタン内の svg/img/emoji を強制縮小）   */
/* ------------------------------------------------------------------ */
.tabbar__link :where(svg,img),
.panel-head :where(svg,img),
.chip :where(svg,img),
.nav-icon :where(svg,img),
.bday-card__avatar :where(svg,img) { width: var(--icon); height: var(--icon); }

.card :where(.panel-icon, .tabbar__icon, .icon, .emoji){ font-size: var(--icon); line-height: 1; }

/* ※カード内部で意図的に大きな画像を使う場合は data-allow-big を付けて回避 */
.card :where(svg,img):not([data-allow-big]){ max-height: 40px; }
/* ↑ ただし thumbnail は上の .card .thumb > img で必ず上書き（max-height:none!important） */

/* ------------------------------------------------------------------ */
/* Desktop enhancements                                               */
/* ------------------------------------------------------------------ */
@media (min-width: 720px){
  :root{ --icon: 22px; --icon-lg: 26px; }
  .panel-icon{ width:40px; height:40px; }
  .calendar__grid .cal-day{ height:64px; }
  .bday-card{ grid-template-columns: 56px 1fr auto; padding:14px; }
  .bday-card__avatar{ width:56px; height:56px; }
  .tabbar{ margin-inline: auto; width:min(980px, 100%); }
}

/* =========================
  Hotfix: header/tabbar/segmented (SP)
  2025-09-19
========================= */

/* ① Header（1行固定・アイコン/タイトルのサイズを強制） */
.site-header{
  min-height: 48px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__left,
.site-header__right{
  display: flex;
  align-items: center;
  gap: 8px;
}

/* brand を1行に・はみ出し省略 */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;            /* ← 省略記号に必須 */
}
.brand__title{
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70vw;         /* タイトルが長くても1行 */
}
/* ロゴ/ハートの暴走抑制 */
.brand__icon,
.site-header .icon{
  width: 20px;
  height: 20px;
  display: inline-block;
}
.pill-btn.like-btn{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

/* ② Tabbar（横並び固定・アイコン/テキストの行揃え） */
.tabbar{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  padding: 10px;
}
.tabbar__link{
  display: flex;                 /* ← グリッドではなくフレックスで横並び */
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
}
.tabbar__icon{
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.tabbar__text{
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* ③ Segmented（横スクロール可・アイコン/テキストを1行に） */
.segmented{
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;              /* 画面幅が狭い時は横スクロール */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.segmented__btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;           /* 折り返し防止 */
}
.segmented__btn .icon{
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

/* 汎用：SVGサイズの最終ガード（対象セクション内） */
.site-header svg,
.tabbar svg,
.segmented svg { width: 1em; height: 1em; }

/* Tabbar: テキストがSPで収まるための段階的フォールバック */

/* まずは省略の保険（1行固定＋ellipsis） */
.tabbar__text{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 340–379px：少しだけ詰める */
@media (max-width: 379px) {
  .tabbar{
    gap: 8px;
    padding: 8px;
  }
  .tabbar__link{
    min-height: 40px;
    padding: 8px 10px;
    gap: 6px;
  }
  .tabbar__text{
    font-size: 12px;
    letter-spacing: 0.02em;
    max-width: 18ch; /* 日本語も詰めすぎない程度で */
  }
  .tabbar__icon{
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
}

/* <340px：テキスト非表示＝アイコンのみ（横幅を最優先） */
@media (max-width: 339px) {
  .tabbar{
    gap: 6px;
    padding: 6px;
  }
  .tabbar__link{
    justify-content: center;
    min-height: 40px;
    padding: 8px;
    gap: 0;
  }
  .tabbar__text{
    display: none; /* ← アイコンのみ表示に切替 */
  }
  .tabbar__icon{
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}

/* ===============================
   ここから追記：Candy Header + Stacked Tabbar（PCも絵文字）
   =============================== */

/* Palette / tokens（追加） */
:root{
  --grad-header: linear-gradient(135deg, var(--pink-500), #ff6aa0, var(--orange-500));
  --header-shadow: 0 6px 24px rgba(255,77,166,.18);
  --tabbar-bg: linear-gradient(135deg, #fff, #fff0f5);
  --tab-item-bg: #fff;
  --tab-item-border: rgba(0,0,0,.06);
  --tab-item-ink: #7b2d47;
  --tab-active-bg: linear-gradient(135deg, var(--pink-500), var(--orange-500));
  --tab-active-ink: #fff;
}

/* Header: Candy gradient + emoji-first */
.site-header.site-header--candy{
  background: var(--grad-header);
  color: #fff;
  border-bottom: none;
  box-shadow: var(--header-shadow);
}
.brand__emoji{
  display:inline-grid; place-items:center;
  width: 28px; height: 28px; border-radius: 8px;
  background: #fff; color: var(--pink-500); font-size: 18px; line-height: 1;
  box-shadow: 0 1px 0 rgba(255,255,255,.7), 0 1px 6px rgba(0,0,0,.08);
  }
.site-header--candy .brand__icon{ display:none; }             /* SP既定は非表示 */
@media (min-width: 720px){
  .site-header--candy .brand__icon{ display:none; }           /* PCでも非表示（絵文字統一） */
}
.site-header--candy .brand__title{
  color:#fff; letter-spacing:.01em; font-weight: 900;
}

/* Header buttons */
.pill-btn{
  width: 36px; height: 36px; border-radius: 999px;
  display:grid; place-items:center; border:1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.95);
  position: relative;
}
.pill-btn .emoji-icon{ font-size: 18px; line-height: 1; }
.pill-btn.like-btn.is-on{
  box-shadow: 0 6px 20px rgba(255,77,166,.25);
}
.pill-btn .badge{
  position:absolute; top:-4px; right:-4px; width:14px; height:14px;
  border-radius:999px; background:#fff; color: var(--pink-500);
  font-size:10px; font-weight:900; display:grid; place-items:center;
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
}

/* Tabbar 台座 */
.tabbar{
  background: var(--tabbar-bg);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  padding: 12px;
  margin: 10px 12px 0;
}

/* === スタック型（SP/PC共通） === */
.tabbar--stack{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.tabbar--stack .tabbar__link{
  /* 縦積み・中央ぞろえ・省略なし */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 60px; padding: 10px 8px; text-align: center; border-radius: 14px;
  background: var(--tab-item-bg); border:1px solid var(--tab-item-border);
  color: var(--tab-item-ink); font-weight: 800; font-size: 13px; text-decoration:none;
  box-shadow: 0 1px 0 #fff inset, 0 1px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s ease, transform .06s ease;
}
.tabbar--stack .tabbar__link:active{ transform: translateY(1px); }
.tabbar--stack .tabbar__link.is-active,
.tabbar--stack .tabbar__link[aria-current="page"]{
  background: var(--tab-active-bg); color: var(--tab-active-ink); border-color: transparent;
  box-shadow: 0 6px 20px rgba(255,77,166,.25);
}
.tabbar--stack .tabbar__text{
  white-space: normal;               /* ← 折り返し許可（…を出さない） */
  overflow: visible; text-overflow: clip;
}
.tabbar--stack .tab-emoji{ font-size: 18px; line-height: 1; }
.tabbar__icon{ display: none !important; } /* SVGは常時非表示（PCもSPも） */

/* PCでも縦積みのまま（サイズ少し拡大） */
@media (min-width: 720px){
  .tabbar--stack .tabbar__link{
    min-height: 66px;
    font-size: 14px;
    gap: 8px;
  }
  .tabbar--stack .tab-emoji{
    font-size: 20px;
  }
}

/* 旧メディアクエリの“テキスト非表示”を無効化（スタック型では常に表示） */
@media (max-width: 339px) {
  .tabbar--stack .tabbar__text{ display: inline !important; }
  .tabbar--stack .tabbar__link{
    justify-content: center;
    gap: 4px;
  }
}
/* ==========================================
   Hero (今月お誕生日の赤ちゃん) – layout styles
   ========================================== */
.hero__list{
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.hero-card{
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 0 #fff inset, 0 1px 8px rgba(0,0,0,.04);
}

.hero-card__avatar{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe4f0, #ffe7d5);
  border: 1px solid var(--border);
  font-size: var(--icon-lg);
  line-height: 1;
}

.hero-card__title{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.hero-card__meta{
  margin: 2px 0 0;
  color: #7c6e73;
  font-size: 12px;
}

.hero-card__cta{
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

@media (min-width: 720px){
  .hero-card{ grid-template-columns: 56px 1fr auto; padding: 14px; }
  .hero-card__avatar{ width: 56px; height: 56px; }
  .hero-card__title{ font-size: 17px; }
}
/* ===== PCでヘッダー/タブバーを中央に収める（共通幅：980px） ===== */
@media (min-width: 980px){
  /* ヘッダーは全幅のまま、内側だけ中央寄せ（左右パディングでガターを作る） */
  .site-header{
    padding-left: calc((100vw - 980px) / 2);
    padding-right: calc((100vw - 980px) / 2);
  }
}

/* タブバーはPC/タブレットで中央寄せ＆幅を制限 */
.tabbar{
  width: min(980px, 100%);
  margin-inline: auto;
}

/* ===== カレンダー：0〜3歳の年齢バッジ（未定義の場合の補完） ===== */
.badge-wrap{
  position:absolute; bottom:6px; left:50%; transform:translateX(-50%);
  display:flex; gap:4px;
}
.age-badge{
  display:inline-grid; place-items:center;
  width:16px; height:16px; border-radius:999px;
  font-size:11px; font-weight:900; line-height:1; color:#fff;
  background: var(--pink-400);
  box-shadow:0 1px 0 rgba(0,0,0,.08);
}
.age-badge--past{ background:#96a0ad; }
/* ==== News: 画像なしプレースホルダー（グラデ＋🐾） ==== */
.thumb.is-placeholder{
  background: radial-gradient(800px 400px at 120% -20%, #ffe0f0 0, transparent 60%),
              radial-gradient(600px 300px at -10% 30%, #fff0e0 0, transparent 60%),
              linear-gradient(135deg, #ffe5f2 0%, #fff1e4 100%);
  position: relative;
}
.thumb.is-placeholder::after{
  content:'🐾';
  position:absolute; inset:0; display:grid; place-items:center;
  font-size:48px; opacity:.9; filter:drop-shadow(0 2px 0 rgba(255,255,255,.8));
}

/* ==== News: ピル/バッジ ==== */
.pill{display:inline-grid;place-items:center;padding:4px 8px;border-radius:999px;background:#fff;border:1px solid var(--border);font-size:11px;font-weight:800}
.pill--new{background:linear-gradient(135deg,var(--pink-500),var(--orange-500));color:#fff;border-color:transparent}
.pill--yt{background:#ffefe6;border-color:#ffd2b3}
.pill--zoo{background:#eef7ff;border-color:#cfe3ff}
.pill--web{background:#f5f3ff;border-color:#e1dcff}
/* ==== Candy風「もっと読む」ボタン（共通） ==== */
.more-wrap{ display:flex; justify-content:center; margin:18px 0 36px; }
#more{
  display:inline-grid; grid-auto-flow:column; place-items:center; gap:8px;
  padding:12px 18px; font-size:14px; font-weight:900; letter-spacing:.02em;
  color:#fff; background: var(--grad);
  border: 1px solid transparent; border-radius: 999px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease, filter .12s ease;
}
#more::before{ content:"✨"; font-size:14px; line-height:1; }
#more:hover{ transform: translateY(-1px); filter: saturate(1.05); }
#more:active{ transform: translateY(0); }
#more:focus-visible{ outline: 3px solid rgba(255,77,166,.35); outline-offset: 2px; }
#more[disabled]{ opacity:.6; cursor:not-allowed; }
#more.loading{ pointer-events:none; opacity:.92; }
#more.loading::after{
  content:""; width:14px; height:14px; margin-left:4px;
  border:2px solid rgba(255,255,255,.95); border-right-color: transparent; border-radius:50%;
  animation: zb-spin 1s linear infinite;
}
@keyframes zb-spin{ to{ transform: rotate(1turn); } }

/* ==== 画像なしプレースホルダー（パステル＋🐾） ==== */
.thumb.is-placeholder{
  position: relative; overflow: hidden;
  background:
    radial-gradient(26px 26px at 18% 24%, rgba(255,122,199,.18) 0 60%, transparent 61%),
    radial-gradient(22px 22px at 42% 76%, rgba(255,175,97,.18) 0 60%, transparent 61%),
    radial-gradient(30px 30px at 84% 38%, rgba(255,77,166,.15) 0 60%, transparent 61%),
    linear-gradient(135deg, #fff6fb 0%, #fff2ea 100%) !important;
  border: 1px dashed rgba(255,77,166,.28);
}
.thumb.is-placeholder::after{
  content:'🐾';
  position:absolute; inset:0; display:grid; place-items:center;
  font-size:52px; text-shadow: 0 2px 0 rgba(255,255,255,.75);
  animation: zb-paw-bob 2.4s ease-in-out infinite;
}
@keyframes zb-paw-bob{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-4px) } }

/* ==== ピル（共通） ==== */
.pill{display:inline-grid;place-items:center;padding:4px 8px;border-radius:999px;background:#fff;border:1px solid var(--border);font-size:11px;font-weight:800}
.pill--new{background:linear-gradient(135deg,var(--pink-500),var(--orange-500));color:#fff;border-color:transparent}
.pill--yt{background:#ffefe6;border-color:#ffd2b3}
.pill--zoo{background:#eef7ff;border-color:#cfe3ff}
.pill--web{background:#f5f3ff;border-color:#e1dcff}

/* ==== 年齢ピル（赤ちゃん） ==== */
.pill--age-0{ background:#fff1f7; border-color:#ffd3ea; color:#c22b7c; }
.pill--age-1{ background:#fff4e8; border-color:#ffd9b5; color:#c85a14; }
.pill--age-2{ background:#fffbe1; border-color:#ffec9a; color:#8a6a00; }
.pill--age-3{ background:#ecfff2; border-color:#c9f4d9; color:#1b7a44; }
.pill--muted{ background:#f5f5f7; border-color:#e2e2e6; color:#6d6d76; }
.pill--soon{ background:linear-gradient(135deg,var(--pink-500),var(--orange-500)); color:#fff; border-color:transparent; }
.pill--month{ background:#ffeef8; border-color:#ffd6ef; color:#ae2c73; }

/* 近々誕生日インジケータ（カード右上の点） */
.soon-dot{ position:absolute; top:8px; right:8px; width:10px; height:10px; border-radius:50%; background:var(--pink-500); box-shadow:0 0 0 3px rgba(255,77,166,.15); }
/* ===== Hero v4 – SP 縦3件 / 月送りは別行 ===== */
.hero__head{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
}
.hero__badge{ /* 既存のアイコンでOK */ }
.hero__title{
  font-size: clamp(18px, 4.2vw, 22px);
  line-height: 1.28;
  text-wrap: balance;
  margin: 0;
}
/* 月送りを「常に次の行の全幅」に */
.hero__nav{
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
}
.pill{
  display:inline-flex; align-items:center; justify-content:center;
  height:32px; padding:0 10px; border-radius:999px; border:1px solid var(--border);
  background:#fff; font-weight:800;
}
.pill--nav{ width:36px; padding:0; font-size:16px; }
.pill--label{ background:linear-gradient(135deg,#fff,#fff7f0); font-variant-numeric: tabular-nums; }

/* SP：縦スタック3件 */
#hero-list{ display:grid; gap:10px; margin-top:6px; }
.hero-card{
  border:1px solid var(--border); border-radius:16px; background:#fff;
  box-shadow: var(--shadow);
  display:grid; grid-template-columns:56px 1fr; gap:12px; align-items:center;
  padding:12px; min-height:72px;
}
.hero-card__avatar{
  width:56px; height:56px; border-radius:14px; display:grid; place-items:center;
  background: linear-gradient(135deg,#ffe4f0,#ffe7d5); border:1px solid var(--border);
  font-size:24px;
}
.hero-card__title{ margin:0; font-size:16px; font-weight:800; line-height:1.3; }
.hero-card__meta{ margin:6px 0 0; display:flex; flex-wrap:wrap; gap:6px; }
.meta-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700;
  background:#fff; border:1px solid var(--border); color:#6f5b62;
}
.meta-chip--date{ background:linear-gradient(135deg,#fff,#fff7f0); }
.meta-chip--zoo { background:linear-gradient(135deg,#fff,#fff5fb); }
.meta-chip--age { background:linear-gradient(135deg,#fff,#fff0f7); }

/* Skeleton / states */
.hero__skeleton{ display:grid; gap:10px; margin-top:6px; }
.hero-card--skel{
  height:84px; border-radius:16px; border:1px solid var(--border);
  background: linear-gradient(90deg,#eee 25%,#f7f7f7 37%,#eee 63%);
  background-size:400% 100%; animation:shimmer 1.35s infinite;
}
@keyframes shimmer{ 0%{background-position:100% 0} 100%{background-position:0 0} }
.hero__empty{ margin-top:8px; color:#6b6b6b; }
.hero__error{
  margin-top:8px; background:#fff7f7; border:1px solid #ffdede; color:#a40000;
  padding:10px 12px; border-radius:10px;
}

/* タブレット以上：横レール6件 */
@media (min-width: 600px){
  #hero-list{ display:flex; gap:10px; overflow-x:auto; -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory; padding-right:2px; }
  #hero-list::-webkit-scrollbar{ display:none; }
  .hero-card{ flex:0 0 260px; scroll-snap-align:start; grid-template-columns:48px 1fr; }
  .hero-card__avatar{ width:48px; height:48px; font-size:22px; border-radius:12px; }
  /* 月送りは見出し右に戻す（横幅余裕があるとき） */
  .hero__nav{ grid-column:auto; justify-self:end; }
}
