/* ===== Kairos 同人 ===== */

@view-transition { navigation: auto; }

:root {
  color-scheme: dark light;

  --bg: #0a0a12;
  --bg-elev: rgba(255, 255, 255, 0.04);
  --bg-elev-strong: rgba(255, 255, 255, 0.07);
  --fg: #f2f0f5;
  --fg-muted: #a09cab;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --pink: #ff4d8d;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, var(--pink), var(--violet));

  /* 判定ラベルの色 */
  --c-lowest: #ff4d8d;
  --c-tie: #f59e0b;
  --c-sale: #22d3ee;
  --c-wait: #a3a3b2;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
  --header-h: 60px;
  --max: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f6fb;
    --bg-elev: rgba(255, 255, 255, 0.7);
    --bg-elev-strong: #fff;
    --fg: #17151f;
    --fg-muted: #625e70;
    --border: rgba(20, 10, 40, 0.08);
    --border-strong: rgba(20, 10, 40, 0.16);
    --c-wait: #6b6b7b;
    /* 明るい背景では原色の水色・橙は読めないので濃くする */
    --c-tie: #b45309;
    --c-sale: #0e7490;
    --shadow: 0 10px 30px -12px rgba(40, 20, 80, 0.18);
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  font-feature-settings: "palt";
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

/* メッシュグラデーションの背景 */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 15% 10%, rgba(255, 77, 141, 0.22), transparent 70%),
    radial-gradient(35% 30% at 85% 20%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(40% 40% at 60% 90%, rgba(34, 211, 238, 0.10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

a { color: inherit; }

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

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== 広告表記 ===== */
.pr {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-align: center;
  padding: 0.35rem 1rem;
  border-bottom: 1px solid var(--border);
}

/* ===== ヘッダー（ガラス風） ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
  view-transition-name: site-header;
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px -4px var(--pink);
}

.nav { display: flex; gap: 0.25rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }

.nav a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--fg-muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-elev-strong); color: var(--fg); }

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev-strong);
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  border: none;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--pink);
}

.btn-primary:hover { box-shadow: 0 12px 32px -8px var(--pink); }

/* ===== ヒーロー ===== */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 6vw, 4rem);
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-elev);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse { 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 1.2rem 0 1rem;
  font-weight: 900;
  text-wrap: balance;
}

.hero .lead {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--fg-muted);
  max-width: 34em;
  margin: 0 0 2rem;
}

.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ===== 買い時カード（ヒーローの見本） ===== */
.deal-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}

.deal-card:hover { transform: rotate(0) translateY(-4px); }

.deal-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 77, 141, 0.6), transparent 40%, transparent 60%, rgba(139, 92, 246, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.sample-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-elev-strong);
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
}

.deal-head { display: flex; gap: 1rem; align-items: center; }

.thumb {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.5), rgba(139, 92, 246, 0.5));
}

.deal-title { font-weight: 700; line-height: 1.4; margin: 0; }
.deal-meta { font-size: 0.8rem; color: var(--fg-muted); margin: 0.2rem 0 0; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.2rem 0 0.4rem;
  flex-wrap: wrap;
}

.price { font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: 0.9rem; font-weight: 700; }
.list-price { color: var(--fg-muted); text-decoration: line-through; font-size: 0.9rem; }
.off { font-weight: 800; color: var(--c-lowest); font-size: 0.95rem; }

.chart { margin-top: 0.8rem; }
.chart svg { width: 100%; height: auto; overflow: visible; }

.chart .line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 1.6s 0.3s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.chart .low-dot { fill: var(--c-lowest); }
.chart .low-ring { fill: none; stroke: var(--c-lowest); stroke-width: 1.5; opacity: 0.5; }

.chart-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 0.3rem;
}

/* ===== 判定ラベル ===== */
.badge {
  --c: var(--c-wait);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.lowest { --c: var(--c-lowest); }
.badge.tie { --c: var(--c-tie); }
.badge.sale { --c: var(--c-sale); }
.badge.wait { --c: var(--c-wait); }

/* ===== セクション ===== */
.section { padding: clamp(2.5rem, 7vw, 5rem) 0; }

.section-head { margin-bottom: 2rem; }

.section-head .kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.3;
  margin: 0.3rem 0 0.5rem;
  font-weight: 900;
  text-wrap: balance;
}

.section-head p { color: var(--fg-muted); margin: 0; }

/* ===== Bento グリッド ===== */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .b-wide { grid-column: span 4; }
  .bento .b-narrow { grid-column: span 2; }
  .bento .b-half { grid-column: span 3; }
}

.tile {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 1.5rem;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.tile .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--bg-elev-strong);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.tile h3 { margin: 0 0 0.4rem; font-size: 1.1rem; line-height: 1.4; }
.tile p { margin: 0; color: var(--fg-muted); font-size: 0.92rem; }

.tile .big-num {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.tile .glow {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.25), transparent 70%);
  pointer-events: none;
}

.badge-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* ===== ラベルの見方 ===== */
.legend { display: grid; gap: 0.75rem; }

@media (min-width: 720px) { .legend { grid-template-columns: repeat(2, 1fr); } }

.legend-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

.legend-item p { margin: 0; color: var(--fg-muted); font-size: 0.9rem; }

/* ===== 記事カード ===== */
.post-list { display: grid; gap: 1rem; }

@media (min-width: 720px) { .post-list { grid-template-columns: repeat(2, 1fr); } }

.post-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 1.4rem;
  transition: border-color 0.25s, transform 0.25s;
}

.post-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.post-card .tag { font-size: 0.75rem; font-weight: 700; color: var(--pink); }
.post-card h3 { margin: 0.3rem 0; font-size: 1.1rem; line-height: 1.5; }
.post-card p { margin: 0; font-size: 0.88rem; color: var(--fg-muted); }
.post-card .more { display: inline-block; margin-top: 0.8rem; font-size: 0.85rem; font-weight: 700; }

/* ===== 記事ページ ===== */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

.article { max-width: 42rem; margin-inline: auto; padding: clamp(2rem, 6vw, 4rem) 0; }

.article .crumbs { font-size: 0.8rem; color: var(--fg-muted); }
.article .crumbs a { text-decoration: none; }

.article h1 {
  font-size: clamp(1.8rem, 5.5vw, 2.6rem);
  line-height: 1.3;
  font-weight: 900;
  margin: 0.8rem 0 1rem;
  text-wrap: balance;
  word-break: auto-phrase; /* 日本語を文節で折り返す（対応ブラウザのみ） */
}
.article h1 .grad-text { white-space: nowrap; } /* 強調した語の途中で折り返さない */

.article .meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }

.article h2 {
  font-size: 1.35rem;
  line-height: 1.4;
  margin: 3rem 0 1rem;
  padding-top: 0.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.article h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad);
  margin-bottom: 0.8rem;
}

.article p, .article li { font-size: 1.02rem; }

.toc {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 1rem 1.3rem;
}

.toc strong { font-size: 0.85rem; }
.toc ol { margin: 0.4rem 0 0; padding-left: 1.3rem; }
.toc a { text-decoration: none; color: var(--fg-muted); font-size: 0.92rem; }
.toc a:hover { color: var(--fg); }

.callout {
  display: flex;
  gap: 0.9rem;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  background: color-mix(in srgb, var(--violet) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--violet) 30%, transparent);
}

.callout .ci { font-size: 1.2rem; line-height: 1.6; }
.callout p { margin: 0; }

.page-plain { max-width: 42rem; margin-inline: auto; padding: clamp(2rem, 6vw, 4rem) 0; }
.page-plain h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 900; line-height: 1.3; }
.page-plain h2 { font-size: 1.15rem; margin-top: 2.2rem; }
.page-plain p, .page-plain li { color: var(--fg-muted); }

/* ===== 商品カード ===== */
.product-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.product-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.pc-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.3), rgba(139, 92, 246, 0.3));
}

.pc-body { padding: 0.8rem; display: grid; gap: 0.3rem; align-content: start; }
.pc-body .badge { justify-self: start; }
.pc-body h3 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-maker { margin: 0; font-size: 0.75rem; color: var(--fg-muted); }
.pc-price { margin: 0; display: flex; flex-wrap: wrap; column-gap: 0.5rem; align-items: baseline; }
.pc-price > * { white-space: nowrap; }
.pc-price .price { font-size: 1.2rem; }
.pc-price .off { font-size: 0.8rem; }
.pc-reason { margin: 0; font-size: 0.75rem; line-height: 1.5; font-weight: 700; color: var(--fg); }
.pc-left { margin: 0; font-size: 0.72rem; color: var(--c-sale); font-weight: 700; }
.more-link { margin: 1rem 0 0; text-align: right; font-weight: 700; }
.more-link a { color: var(--fg); }
/* 記録があるときのトップは、ヒーローを短くして作品を最初の画面に入れる */
.hero:has(+ .home-deals) { grid-template-columns: 1fr; padding-block: 2rem 0.5rem; }
.hero:has(+ .home-deals) :is(.lead, .cta) { display: none; }
.hero:has(+ .home-deals) h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-block: 0.8rem 0; }
.hero + .home-deals { padding-top: 1rem; }

/* ===== 商品ページ ===== */
.product { max-width: 52rem; margin-inline: auto; padding: clamp(1.5rem, 5vw, 3rem) 0; }
.product .crumbs, .section > .crumbs { font-size: 0.8rem; color: var(--fg-muted); }
.product .crumbs a, .section > .crumbs a { text-decoration: none; }
.section > .crumbs { margin-bottom: 1rem; }
.product h1 { font-size: clamp(1.3rem, 4vw, 1.9rem); line-height: 1.4; margin: 0.6rem 0 0.3rem; }

.product-head { display: grid; gap: 1.5rem; margin-top: 1rem; }

/* 縦長の画像でもスマホでグラフと購入ボタンを押し下げすぎないよう、高さを抑えて全体を見せる */
.product-img { width: 100%; max-height: 280px; object-fit: contain; background: var(--bg-elev); border-radius: var(--radius-sm); border: 1px solid var(--border); }
@media (min-width: 720px) { .product-head { grid-template-columns: 1fr 240px; align-items: start; } }

/* 結論（買い時／待ち）。ページの最初に大きく出す */
.verdict {
  margin-top: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  padding: 1rem 1.3rem;
  --v: var(--c-wait);
  border-left: 6px solid var(--v);
}
.verdict-buy { --v: var(--c-lowest); background: color-mix(in srgb, var(--c-lowest) 12%, var(--bg-elev)); }
.verdict-sale { --v: var(--c-sale); }
.verdict-wait { --v: var(--c-tie); }
.verdict p { margin: 0; }
.verdict-head { font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 900; line-height: 1.2; color: var(--v); }
.verdict-reason { font-weight: 700; }
.verdict-left { font-size: 0.9rem; color: var(--fg-muted); }

/* 購入ボタン。記事の終わりまで画面の下に残る（親指の届く位置） */
.buybar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.buybar-price { display: flex; align-items: baseline; gap: 0.5rem; }
.buybar .price { font-size: 1.4rem; }
.buybar .buy { flex: 1; max-width: 18rem; }

/* セール特集 */
.same-circle { margin-top: 2rem; }
.same-circle h2 { margin: 0 0 1rem; font-size: 1.1rem; line-height: 1.5; }

/* ===== サークル一覧 ===== */
.circle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.circle-list a {
  display: grid; gap: 0.2rem; padding: 0.9rem 1rem; text-decoration: none; color: var(--fg);
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-elev);
  transition: border-color 0.25s;
}
.circle-list a:hover { border-color: var(--border-strong); }
.circle-name { font-weight: 700; overflow-wrap: anywhere; }

/* トップの大型セール特集。ほかの一覧と見分けられるよう、枠と背景で囲む */
.sale-feature .wrap {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.12), rgba(139, 92, 246, 0.12));
  padding: clamp(1rem, 4vw, 2rem);
}
.sale-feature h2 { overflow-wrap: anywhere; }
.sale-feature .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (min-width: 720px) { .sale-feature .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.sale-feature-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-weight: 700; }
.sale-feature-meta .pc-left { margin: 0; font-size: inherit; }
.campaign { margin-top: 2.5rem; scroll-margin-top: 5rem; }
.campaign h2 { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.campaign-meta { margin: 0.2rem 0 1rem; }

.card-block {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 1.2rem 1.4rem;
}
.card-block h2 { margin: 0 0 0.8rem; font-size: 1.05rem; }
.note { color: var(--fg-muted); font-size: 0.85rem; }

/* ===== フッター ===== */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer p { margin: 0; }
.credit { display: block; margin: 0; padding: 0 1rem 1.5rem; text-align: center; font-size: 0.8rem; }
.credit a { color: var(--fg-muted); text-decoration: none; }
.credit a:hover { color: var(--fg); }

/* ===== 年齢確認 ===== */
.age-gate {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--fg);
  max-width: min(420px, 100% - 2rem);
  width: 100%;
}

.age-gate::backdrop {
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.age-gate .box {
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: 2rem 1.6rem 1.6rem;
  text-align: center;
}

.age-gate .r18 {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 8px 30px -6px var(--pink);
  margin-bottom: 1rem;
}

.age-gate h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.age-gate p { margin: 0 0 1.4rem; color: var(--fg-muted); font-size: 0.92rem; }
.age-gate .actions { display: grid; gap: 0.6rem; }
.age-gate .btn { width: 100%; }

.age-gate[open] .box { animation: pop 0.35s cubic-bezier(.2, .9, .3, 1.2); }

@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.96); } }

/* ===== スクロールで表示 ===== */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  @keyframes reveal { from { opacity: 0; transform: translateY(24px); } }
}

/* ===== 動きを減らす設定 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .chart .line { stroke-dashoffset: 0; }
  .deal-card { transform: none; }
}

@media (max-width: 480px) {
  .site-header .wrap { gap: 0.5rem; }
  .nav { gap: 0; }
  .nav a { padding: 0.45rem 0.5rem; font-size: 0.8rem; }
  .logo-text { font-size: 0.95rem; }
}
