/* ============================================================
   ERO:NAVI / 同人の楽園 共通スタイル
   - PC: 4列グリッド / SP: 2列グリッド
   - 背景 #0e0e0e / アクセント #e91e8c / テキスト #d0d0d0
   ============================================================ */

:root {
  --bg: #0e0e0e;
  --bg-2: #141416;
  --bg-3: #1a1a1d;
  --bg-card: #161618;
  --line: #222226;
  --text: #d0d0d0;
  --text-dim: #8a8a90;
  --text-weak: #5a5a60;
  --pink: #e91e8c;
  --pink-soft: #ff4aa6;
  --warn: #ff8a3d;
  --radius: 8px;
  --radius-lg: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
/* WP の block-library / global-styles が後から白背景を注入した際の保険 */
html body,
html body.wp-singular,
html body.single,
html body.home,
html body.blog,
html body.archive { background: #0e0e0e !important; color: #d0d0d0 !important; }
body .wp-site-blocks,
body .is-layout-constrained,
body main,
body article { background: transparent !important; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ====== レイアウト幅 ====== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* スマホ時に下固定 CTA 分の余白を確保(＋ iOS ホームバー安全領域)*/
@media (max-width: 768px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body.no-fixed-cta { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* ====== ヘッダー ====== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  height: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
}
.site-header__back {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.site-header__back:hover { color: var(--text); }
.site-header__logo {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 17px;
  color: #fff;
}
.site-header__logo .accent { color: var(--pink); }
.site-header__action {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 20px;
  background: transparent; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  width: 44px; height: 44px;
}
.site-header__action:hover { color: var(--text); }
/* スマホでは下タブに ☰ があるので上のハンバーガーは絶対に出さない(高優先度) */
@media (max-width: 768px) {
  .site-header .site-header__action,
  button.site-header__action,
  #dnr-drawer-open { display: none !important; visibility: hidden !important; }
  /* 左右を対称にしてタイトルを中央固定 */
  .site-header__inner { grid-template-columns: 48px 1fr 48px; }
}

/* ドロワー(PC専用・スマホでは絶対出さない) */
body .drawer {
  position: fixed !important;
  top: 0; right: 0; bottom: 0; left: auto;
  width: 320px; max-width: 82vw;
  background: #111114; border-left: 1px solid var(--line);
  z-index: 200; padding: 20px 18px; overflow-y: auto;
  transform: translateX(110%); transition: transform .25s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,.35);
  color: var(--text);
}
body .drawer.is-open { transform: translateX(0); }
/* ドロワー自体はスマホでも閉じた状態で DOM にいる(下タブから開けるため)
   ※ 開閉トリガーの ☰(ヘッダー右上)だけはスマホ非表示 */
.drawer__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; background: transparent; border: 0; color: var(--text-dim);
  font-size: 20px; cursor: pointer;
}
.drawer__title { font-size: 11px; color: var(--text-weak); letter-spacing: .12em; text-transform: uppercase; margin: 14px 0 6px; }
.drawer__list { list-style: none; padding: 0; margin: 0 0 16px; }
.drawer__list a { display: block; padding: 10px 6px; color: var(--text); border-bottom: 1px solid var(--line); font-size: 13px; text-decoration: none; }
.drawer__list a:hover { color: var(--pink); }
.drawer__backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 150;
}
.drawer__backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ====== 一覧グリッド ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
}
@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 5px; padding: 5px; }
  /* スマホではタイトル1行まで、画像をより大きく見せる */
  .card__title { -webkit-line-clamp: 2; font-size: 11px; padding: 6px 8px; min-height: 36px; }
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .18s ease, background .15s ease;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
/* PCなどホバー可能な環境でのみズーム(スマホで"ホバー"が残る問題の防止) */
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); }
  .card:hover .card__thumb img { transform: scale(1.04); }
}
/* タッチ端末でのタップ反応: 一瞬沈んで離す(強めに) */
.card { will-change: transform; }
.card:active {
  transform: scale(.96);
  background: #22222a;
  box-shadow: 0 0 0 2px rgba(233,30,140,.35) inset;
  transition: transform .05s ease, background .05s ease;
}

.card__thumb {
  width: 100%;
  aspect-ratio: 3/4;
  background: #1a1a22;
  overflow: hidden;
}
.card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform .25s ease;
}

.card__title {
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.badge-new {
  position: absolute; top: 7px; left: 7px;
  background: var(--pink);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 2px 7px;
  border-radius: 2px;
}

/* ====== 詳細ページ ====== */
.detail { padding-bottom: 80px; max-width: 960px; margin: 0 auto; }

/* ---- カバー + サンプルの統合カルーセル(デフォルト=モバイル) ---- */
.detail__carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16% 14px 6%;   /* 右余白で次画像ピークを出す */
  scrollbar-width: none;
  scroll-padding-left: 6%;
}
.detail__carousel::-webkit-scrollbar { display: none; }
.detail__carousel__item {
  flex: 0 0 88%;
  aspect-ratio: 3/4;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a22;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.detail__carousel__item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}

/* ページ位置ドット */
.detail__dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 0 2px;
}
.detail__dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #333;
  transition: width .2s ease, background .2s ease, border-radius .2s ease;
}
.detail__dots .dot.is-active {
  width: 18px; border-radius: 3px;
  background: var(--pink);
}

/* ---- PC: 表紙カルーセル(左) + 本文(右) ---- */
@media (min-width: 769px) {
  .detail { display: grid; grid-template-columns: 380px 1fr; column-gap: 36px; padding: 32px 24px 80px; align-items: start; }
  .detail__carousel { grid-column: 1; grid-row: 1; padding: 0; gap: 12px; }
  .detail__carousel__item { flex: 0 0 100%; }
  .detail__dots { grid-column: 1; grid-row: 2; padding: 12px 0 0; }
  .detail__body { grid-column: 2; grid-row: 1 / span 3; padding: 0; }
  .detail > .section { grid-column: 2; padding: 0; margin-top: 24px; }
  .detail > .section:has(.related) { grid-column: 1 / span 2; margin-top: 32px; }
  .detail > .scroll-down { display: none; }
  /* PCのカルーセル左右矢印 */
  .detail__carousel-wrap { position: relative; grid-column: 1; grid-row: 1; }
  .carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(0,0,0,.6); color: #fff; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; z-index: 5;
    transition: background .15s;
  }
  .carousel-arrow:hover { background: rgba(233,30,140,.85); }
  .carousel-arrow--prev { left: -8px; }
  .carousel-arrow--next { right: -8px; }
}
@media (max-width: 768px) {
  .carousel-arrow { display: none; }
}

.detail__thumbs {
  margin: 18px 0 0;
  padding: 0 10px 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 10px;
}
.detail__thumbs::-webkit-scrollbar { display: none; }
.detail__thumbs .thumb {
  flex: 0 0 auto;
  width: 64px;
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  background: #1e1e24;
  border: 2px solid transparent;
  cursor: pointer;
  scroll-snap-align: start;
  min-width: 44px; /* タップ領域確保 */
}
@media (max-width: 768px) {
  .detail__thumbs .thumb { width: 72px; } /* スマホは少し大きく(指タッチ) */
}
.detail__thumbs .thumb.is-active { border-color: var(--pink); }
.detail__thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail__body {
  padding: 20px 16px 0;
}

.detail__tag {
  display: inline-block;
  border: 1px solid var(--pink);
  color: var(--pink);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.detail__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.55;
  margin-bottom: 18px;
}

/* 1行コンパクト価格バー(詳細ページの Above the fold 用) */
.price-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0 6px;
  font-size: 13px;
  color: var(--text-weak);
}
.price-compact__now { font-size: 22px; font-weight: 700; color: var(--pink); }
.price-compact__was { text-decoration: line-through; color: var(--text-weak); font-size: 12px; }
.price-compact__off {
  background: var(--pink); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
}
.price-compact__end { margin-left: auto; color: var(--warn); font-size: 11px; font-weight: 600; }

/* 価格カード */
.price-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.price-card__row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-card__now {
  font-size: 28px;
  font-weight: 700;
  color: var(--pink);
}
.price-card__was {
  text-decoration: line-through;
  color: var(--text-weak);
  font-size: 14px;
}
.price-card__off {
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 4px;
}
.price-card__deadline {
  color: var(--text-weak);
  font-size: 12px;
  margin-top: 6px;
}
.price-card__deadline .left {
  color: var(--warn);
  font-weight: 600;
}

/* クーポンバナー(価格カードと CTA の間)*/
.coupon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 6px 0 14px;
  background: linear-gradient(135deg, rgba(233,30,140,.08), rgba(233,30,140,.02));
  border: 1px solid rgba(233,30,140,.45);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.coupon:hover { background: rgba(233,30,140,.12); border-color: var(--pink); }
.coupon:active { transform: scale(.98); }
.coupon__ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; letter-spacing: .04em;
}
.coupon__body { flex: 1; min-width: 0; }
.coupon__label { font-size: 10.5px; color: var(--pink); letter-spacing: .08em; font-weight: 700; }
.coupon__text  { font-size: 13.5px; color: #fff; margin-top: 2px; line-height: 1.4; }
.coupon__note  { font-size: 10.5px; color: var(--text-weak); margin-top: 3px; }
.coupon__countdown { font-size: 10.5px; color: var(--warn); margin-top: 3px; font-weight: 600; font-variant-numeric: tabular-nums; }
.coupon__arrow { flex: 0 0 auto; color: var(--text-dim); font-size: 16px; }

/* ライトボックス(タップで全画面表示・スワイプ切替・スクロール可能) */
.lb {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.96);
  z-index: 300;
  display: none;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.lb.is-open { display: flex; flex-direction: column; }
.lb__bar {
  height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.lb__count { color: var(--text-dim); font-size: 13px; }
.lb__close {
  width: 40px; height: 40px;
  background: transparent; border: 0; color: #fff;
  font-size: 24px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lb__track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lb__track::-webkit-scrollbar { display: none; }
.lb__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: auto;            /* 拡大中はここでスクロール */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  touch-action: pinch-zoom;  /* ピンチズーム許可 */
  -webkit-overflow-scrolling: touch;
}
.lb__slide img {
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}
.lb__slide.is-zoomed { align-items: flex-start; justify-content: flex-start; }
.lb__slide.is-zoomed img { max-width: 200%; cursor: zoom-out; }

/* ボトムシート(検索・お気に入り・メニュー) */
.sheet {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  max-height: 70vh;
  background: #111114;
  border-top: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  z-index: 170;
  transform: translateY(110%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding: 12px 16px 24px;
}
.sheet.is-open { transform: translateY(0); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.sheet__title { font-size: 13px; color: var(--text); font-weight: 600; }
.sheet__close { background: transparent; border: 0; color: var(--text-dim); font-size: 20px; cursor: pointer; width: 40px; height: 40px; }
.sheet .favorites-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px; grid-template-columns: 1fr 1fr;
}
.sheet .favorites-list li { background: var(--bg-card); border-radius: 8px; overflow: hidden; }
.sheet .favorites-list a { display: block; color: var(--text); text-decoration: none; }
.sheet .favorites-list img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; }
.sheet .favorites-list .ttl { padding: 6px 8px; font-size: 11.5px; line-height: 1.4; }
.sheet .empty { color: var(--text-weak); text-align: center; padding: 24px 12px; font-size: 13px; }

/* 下タブのハートが「お気に入り済み」状態 */
.cta-sticky__fav.is-fav { color: #fff; background: var(--pink); border-color: var(--pink); }
.tabbar a.is-fav-state { color: var(--pink); }

/* ボタン */
.btn {
  display: flex;
  align-items: center; justify-content: center;
  width: 100%;
  height: 56px; /* タップ領域を 44px 以上確保 */
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: #fff;
  margin-bottom: 10px;
  transition: background .15s, border-color .15s, transform .1s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* ダブルタップズーム無効化で反応を速く */
}
.btn:hover { background: var(--bg-3); }
.btn:active {
  transform: scale(.97);
  filter: brightness(1.1);
  transition: transform .05s ease, filter .05s ease;
}
.btn--primary {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.btn--primary:hover { background: #c4186f; border-color: #c4186f; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

/* 「続きを読む」ボタン: PC は主役 pink、スマホはページ内には出さない(下固定CTAが唯一のCTA) */
.btn--fanza { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 700; }
.btn--fanza:hover { background: #c4186f; border-color: #c4186f; }
@media (max-width: 768px) {
  .detail__body .btn--fanza { display: none; }
}

/* セクション見出し */
.section {
  margin-top: 28px;
  padding: 0 16px;
}
.section__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.section__head::before {
  content: "";
  width: 3px; height: 16px;
  background: var(--pink);
  border-radius: 2px;
  display: block;
}
.section__title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.section__body {
  color: var(--text);
  font-size: 13px;
  line-height: 1.9;
}
.section__body p + p { margin-top: .9em; }

/* スペックテーブル */
.spec {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.spec tr { border-bottom: 1px solid var(--line); }
.spec th, .spec td {
  padding: 10px 4px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.spec th {
  color: var(--text-dim);
  font-weight: 400;
  width: 100px;
  white-space: nowrap;
}
.spec td { color: #fff; }
.spec td .chip {
  display: inline-block;
  background: var(--bg-3);
  color: var(--text);
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  margin: 2px 4px 2px 0;
}

/* 関連作品(詳細内の2列) */
.related {
  padding: 0 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* スクロールバー */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* フッター */
.site-footer {
  margin-top: 48px;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-weak);
  font-size: 11px;
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--pink); }

/* トップへ戻るアイコン */
.scroll-down {
  display: flex; justify-content: center;
  margin: 32px 0 12px;
}
.scroll-down__btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-3);
  color: var(--text-dim);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* ====== ユーティリティ ====== */
.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; }
.nowrap { white-space: nowrap; }

/* ====== モバイル下部固定 CTA(詳細ページのみ) ====== */
.cta-sticky {
  display: none;
}
@media (max-width: 768px) {
  .cta-sticky {
    display: flex;
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(14,14,14,.6) 0%, rgba(14,14,14,.95) 40%, #0e0e0e 100%);
    z-index: 90;
    gap: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .cta-sticky__main {
    flex: 1;
    height: 52px;
    background: var(--pink);
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* 光って誘導するような派手な shadow は入れない */
  }
  .cta-sticky__main:active { transform: scale(.98); }
  .cta-sticky__fav {
    width: 52px; height: 52px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--pink);
    font-size: 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  /* 一覧ページでは固定 CTA 出さない */
  body.is-list .cta-sticky { display: none; }
  body.is-list { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* ====== モバイル下タブナビ(全ページ) ====== */
.tabbar { display: none; }
@media (max-width: 768px) {
  .tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #000;
    border-top: 1px solid var(--line);
    z-index: 80;
  }
  .tabbar a {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px;
    color: var(--text-weak);
    font-size: 10px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    min-height: 44px;
  }
  .tabbar a.is-active { color: var(--pink); }
  .tabbar a:active { background: rgba(233,30,140,.08); }
  .tabbar__icon { font-size: 20px; line-height: 1; }
  /* タブバー表示中は、さらに +56px のボトム余白が必要 */
  body.has-tabbar { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar.has-cta { padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .cta-sticky { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
}

/* スマホのスクロール慣性 */
html { -webkit-overflow-scrolling: touch; }

/* iPhone 横向き時の安全領域 */
@media (max-width: 768px) {
  .site-header__inner { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .grid { padding-left: max(5px, env(safe-area-inset-left)); padding-right: max(5px, env(safe-area-inset-right)); }
}

/* 画像プレースホルダ(モック用) */
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 11px;
}
.ph--a { background: linear-gradient(135deg,#3b1f46,#1b0f22); }
.ph--b { background: linear-gradient(135deg,#1a2a1f,#0f1a14); }
.ph--c { background: linear-gradient(135deg,#4a3a1a,#24200f); }
.ph--d { background: linear-gradient(135deg,#1f2342,#0f1126); }
.ph--e { background: linear-gradient(135deg,#421f22,#220f11); }
.ph--f { background: linear-gradient(135deg,#1f4242,#0f2222); }
.ph--g { background: linear-gradient(135deg,#421f3a,#220f1d); }
.ph--h { background: linear-gradient(135deg,#2a421f,#151f0f); }
