/* 爆乳郵便 共通スタイル
   日本のまとめサイト風：白背景＋ピンク〜赤アクセント／縦1カラム／スマホ優先 */

:root {
  --bg: #fff7f9;
  --bg-soft: #ffeef4;
  --card: #ffffff;
  --card-border: #f3b8cd;
  --text: #26222a;
  --text-sub: #8a7f8c;
  --accent: #e6007e;        /* メインのピンク */
  --accent-strong: #c4006b;
  --accent-red: #e60012;    /* 価格・強調用の赤 */
  --sale: #e60012;
  --pr-bg: #ffe0ec;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- ヘッダー ---------- */
.site-header {
  background: linear-gradient(180deg, #ff5da2, var(--accent));
  border-bottom: 3px solid var(--accent-strong);
  padding: 18px 16px 12px;
  text-align: center;
}
.site-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.site-title .moon { color: #ffe3f0; }
.site-title a { color: #fff; }
.site-tagline {
  margin: 4px 0 0;
  color: #ffe3f0;
  font-size: 0.85rem;
}
.site-nav {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 700;
}
.site-nav a {
  color: var(--accent-strong);
  background: #fff;
  border-radius: 999px;
  padding: 3px 14px;
}
.site-nav a:hover { text-decoration: none; background: var(--bg-soft); }

/* ---------- レイアウト ---------- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 12px 16px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), #ff5da2);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 26px 0 14px;
}

/* ---------- トップ：記事リスト（縦1カラム） ---------- */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.entry {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}
.entry a.entry-link { color: inherit; display: block; }
.entry a.entry-link:hover { text-decoration: none; }
.entry-body { padding: 12px 14px 14px; }
.entry-meta {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin: 0 0 6px;
}
.cat-badge {
  display: inline-block;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 8px;
  margin-right: 6px;
  vertical-align: 1px;
}
.cat-video { background: var(--accent); }
.cat-manga { background: #ff7a00; }
.entry-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.45;
  color: var(--text);
}
.entry a.entry-link:hover .entry-title { color: var(--accent); }
.entry-thumb { margin: 0 0 10px; }
.entry-thumb img { width: 100%; height: auto; }
.entry-comment {
  font-size: 0.92rem;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 8px 10px;
  margin: 0 0 10px;
}
.entry-comment::before {
  content: "✎ ";
  color: var(--accent);
  font-weight: 700;
}
.btn-more {
  display: block;
  text-align: center;
  background: linear-gradient(180deg, #ff5da2, var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
}
.entry a.entry-link:hover .btn-more { opacity: 0.9; }

/* ランキング */
.ranking-list {
  line-height: 2;
  padding-left: 1.6em;
}
.ranking-list li::marker {
  color: var(--accent-red);
  font-weight: 800;
}

/* ---------- 旧カード（テンプレート互換用） ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--card);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card a.card-link { color: inherit; }
.card a.card-link:hover { text-decoration: none; }
.thumb-placeholder {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(
    45deg, #ffe0ec, #ffe0ec 12px, #ffd3e4 12px, #ffd3e4 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.card-body { padding: 12px 14px 14px; }
.card-meta {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin: 0 0 4px;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.5;
}
.card-comment {
  font-size: 0.88rem;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 10px;
}
.card-comment::before {
  content: "✎ ";
  color: var(--accent);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-red);
}
.price-old {
  font-size: 0.85rem;
  color: var(--text-sub);
  text-decoration: line-through;
}
.badge-sale {
  background: var(--sale);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 7px;
}
.badge-genre {
  background: var(--pr-bg);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 7px;
}

/* ---------- PR表記 ---------- */
.pr-note {
  display: inline-block;
  background: var(--pr-bg);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

/* ---------- 記事ページ ---------- */
.article {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.article h1 {
  font-size: 1.45rem;
  line-height: 1.5;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
}
.article .thumb-placeholder { border-radius: 8px; margin-bottom: 16px; }
.article > img { border-radius: 8px; margin-bottom: 16px; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.spec-table th, .spec-table td {
  border-bottom: 1px solid var(--card-border);
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  width: 7.5em;
  color: var(--accent-strong);
  font-weight: 700;
  white-space: nowrap;
}
.synopsis {
  background: #faf5f7;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.synopsis h2, .my-comment h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--accent);
}
.my-comment {
  border: 2px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 22px;
}
.my-comment p { margin: 0; }
.comment-type {
  font-size: 0.75rem;
  color: var(--text-sub);
}

/* アフィリエイトリンクボタン（プレースホルダ） */
.affiliate-box { text-align: center; margin: 10px 0 4px; }
.btn-affiliate {
  display: block;
  background: linear-gradient(180deg, #ff5da2, var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 10px;
  padding: 14px 18px;
}
.btn-affiliate:hover { text-decoration: none; opacity: 0.92; }
.affiliate-caption {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 6px;
}

/* ---------- フッター ---------- */
.site-footer {
  border-top: 3px solid var(--accent);
  background: var(--bg-soft);
  margin-top: 40px;
  padding: 22px 16px 34px;
  text-align: center;
  color: var(--text-sub);
  font-size: 0.8rem;
}
.site-footer p { margin: 4px 0; }

/* ---------- 年齢確認ゲート ---------- */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 0, 20, 0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.age-gate-box {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 28px 22px;
  text-align: center;
}
.age-gate-box .gate-moon { font-size: 2.2rem; }
.age-gate-box h2 { margin: 8px 0 6px; font-size: 1.3rem; }
.age-gate-box p { color: var(--text-sub); font-size: 0.9rem; }
.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.btn-yes {
  background: linear-gradient(180deg, #ff5da2, var(--accent));
  color: #fff;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 1rem;
  cursor: pointer;
}
.btn-no {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.95rem;
  cursor: pointer;
}
body.age-gate-locked { overflow: hidden; }

/* ---------- 漫画表紙のズーム切り抜き（まとめサイト風の演出） ----------
   対象は漫画のみ。動画パッケージには適用しない。
   画像自体は編集せず、CSS の object-fit: cover で表示上の切り抜きだけを行う。
   横長の枠に表紙の上半身〜胸元寄りの帯を見せる。位置は作品ごとに
   object-position（.zp-* クラス）で調整する。 */
.cover-zoom {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.cover-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-zoom-lg {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  margin-bottom: 16px;
}
/* ---------- いいねボタン ----------
   ハートはインラインSVG（ページ冒頭の defs で定義した
   ピンク→赤グラデーション塗り＋白い楕円ハイライトのツヤ）。
   常時ゆっくり鼓動し、押下時はバウンド＋小ハートが浮かぶ。
   いいね済みはボタン全体がピンクグラデ地＋ハート白系で鼓動継続。 */
.like-area { margin: 12px 0; }
.entry .like-area { margin: 0; padding: 0 14px 14px; }
.article .like-area { text-align: center; margin: 0 0 18px; }

.like-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: #fff;
  border: 2px solid var(--card-border);
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 48px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.like-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(230, 0, 126, 0.25);
}
.like-btn:disabled { opacity: 0.6; cursor: wait; }
.like-btn .like-count { font-variant-numeric: tabular-nums; }

/* ハート本体：SVG。ゆっくりした2拍子の鼓動を常時かける */
.like-heart {
  width: 28px;
  height: 28px;
  flex: none;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(230, 0, 126, 0.45))
          drop-shadow(0 0 6px rgba(255, 93, 162, 0.35));
  transform-origin: center;
  animation: like-beat 1.8s ease-in-out infinite;
}
.like-heart-shine { opacity: 0.55; }
@keyframes like-beat {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.1); }
  24%      { transform: scale(1.02); }
  36%      { transform: scale(1.07); }
  55%      { transform: scale(1); }
}

/* 押した瞬間のバウンド（JSが .like-pop を付けて外す） */
.like-heart.like-pop { animation: like-bounce 0.55s ease-out; }
@keyframes like-bounce {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.5) rotate(-6deg); }
  60%  { transform: scale(0.88); }
  80%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* 押下時にふわっと浮かぶ小ハート（JSが一時要素を追加） */
.like-float {
  position: absolute;
  left: 22px;
  top: 2px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  animation: like-float-up 0.9s ease-out forwards;
}
@keyframes like-float-up {
  0%   { transform: translate(0, 0) scale(0.6) rotate(0deg); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(var(--float-x, 6px), -34px) scale(1.1) rotate(var(--float-r, 10deg)); opacity: 0; }
}

/* いいね済み：ボタン自体もピンクグラデに染め、ハートは白系で鼓動継続 */
.like-btn.liked {
  background: linear-gradient(180deg, #ff5da2, var(--accent));
  border-color: var(--accent-strong);
  color: #fff;
  box-shadow: 0 2px 12px rgba(230, 0, 126, 0.4);
}
.like-btn.liked .like-heart-body { fill: url(#like-grad-liked); }
.like-btn.liked .like-heart {
  filter: drop-shadow(0 1px 2px rgba(120, 0, 60, 0.5))
          drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
  animation-duration: 1.15s;
}
.like-btn.liked .like-heart-shine { opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  .like-heart, .like-heart.like-pop, .like-float { animation: none; }
}

/* 切り抜き位置（縦方向の基準点。値が小さいほど表紙の上の方を見せる）
   2026-11-16 実画像解析で最適化：各表紙の胸中心の実測位置から、
   16:9枠（カード）で胸が枠中央付近に来る値を算出し、PIL再現で目視検証済み。
   007（胸中心 y=57.7%）/ 008（同 57.0%）/ 009（同 73.8%）。
   記事ページの 16:10 枠（.cover-zoom-lg）は同じ値だと上端が口元にかかる
   008 のみ、lg 側で 68% に補正する。 */
.zp-15 { object-position: 50% 15%; }
.zp-18 { object-position: 50% 58%; }
.zp-22 { object-position: 50% 62%; }
.zp-28 { object-position: 50% 90%; }
.cover-zoom-lg .zp-22 { object-position: 50% 68%; }

/* ---------- ランキングページ（いいね数ランキング） ---------- */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: inherit;
}
a.rank-item:hover { text-decoration: none; border-color: var(--accent); }
a.rank-item:hover .rank-title { color: var(--accent); }
.rank-num {
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-item.rank-top .rank-num {
  background: linear-gradient(180deg, #ff5da2, var(--accent));
  color: #fff;
}
.rank-main { flex: 1; min-width: 0; }
.rank-title { font-weight: 800; line-height: 1.45; margin: 2px 0 0; }
.rank-likes {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-strong);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.rank-likes svg { width: 20px; height: 20px; }
.rank-status { color: var(--text-sub); font-size: 0.92rem; }
.rank-note { color: var(--text-sub); font-size: 0.78rem; }

/* 正面イチオシ・ミルの一言 */
.featured .entry-thumb { position: relative; }
.rank-badge { position: absolute; top: 0; left: 0; z-index: 2; background: #e6007e; color: #fff; font-weight: 700; font-size: .9rem; padding: 5px 14px; border-radius: 0 0 12px 0; }
.mil-say { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.mil-say img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.mil-bubble { position: relative; margin: 4px 0 0; background: #fff; border: 2px solid #ff9ecb; border-radius: 12px; padding: 8px 12px; font-size: .95rem; line-height: 1.5; }
.mil-bubble::before { content: ""; position: absolute; left: -9px; top: 16px; border: 5px solid transparent; border-right: 6px solid #ff9ecb; }
