/* =========================================================
   トレカショップ比較攻略 － ダークプレミアムテーマ
   ========================================================= */

:where([class^="ri-"])::before { content: "\f3c2"; }

:root {
  --base:      #0A0E17;
  --surface:   #141A28;
  --surface-2: #1C2435;
  --line:      rgba(255, 255, 255, 0.08);
  --text:      #E6EAF2;
  --text-dim:  #97A3BA;
  --primary:   #FF6B6B;
  --secondary: #4ECDC4;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: var(--text);
  background-color: var(--base);
  background-image:
    radial-gradient(55rem 38rem at 12% -8%, rgba(78, 205, 196, 0.13), transparent 62%),
    radial-gradient(48rem 34rem at 96% 4%, rgba(255, 107, 107, 0.11), transparent 62%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(78, 205, 196, 0.32); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--base); }
::-webkit-scrollbar-thumb { background: #2A3348; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #3B4763; }

/* ===== ヘッダー / サイドナビ ===== */
.site-header {
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.side-nav {
  background: rgba(16, 21, 33, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--line);
}

.scrollspy-item {
  position: relative;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.scrollspy-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}
.scrollspy-active {
  color: var(--secondary);
  font-weight: 600;
  border-left-color: var(--secondary);
  background: linear-gradient(90deg, rgba(78, 205, 196, 0.16), transparent 70%);
}

/* ===== セクション見出し ===== */
.section-title {
  position: relative;
  padding-left: 0.9rem;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}

/* ===== パネル(汎用カード) ===== */
.panel {
  background: linear-gradient(158deg, rgba(28, 36, 53, 0.92), rgba(18, 24, 37, 0.92));
  border: 1px solid var(--line);
  border-radius: 16px;
}

.panel-sub {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .3s ease, background-color .3s ease, transform .3s ease;
}
.panel-sub:hover {
  border-color: rgba(78, 205, 196, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

/* ===== ヒーロー ===== */
.hero-shell {
  background:
    radial-gradient(38rem 26rem at 78% 40%, rgba(78, 205, 196, 0.18), transparent 62%),
    radial-gradient(34rem 24rem at 20% 110%, rgba(255, 107, 107, 0.16), transparent 62%),
    linear-gradient(140deg, #131B2C 0%, #0C1220 56%, #0A0E17 100%);
}
/* 背景の薄いグリッド(中央から外側へフェード) */
.hero-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 40%, #000 28%, transparent 100%);
  mask-image: radial-gradient(75% 75% at 50% 40%, #000 28%, transparent 100%);
}
.hero-logo {
  filter:
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 28px rgba(78, 205, 196, 0.28));
}
.hero-title {
  background: linear-gradient(102deg, #FFFFFF 0%, #B8F5EF 46%, #FFC6C6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== ショップカード ===== */
.shop-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(28, 36, 53, 0.95), rgba(16, 21, 33, 0.95));
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease, border-color .35s ease;
}
.shop-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.7), rgba(255, 107, 107, 0.7), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.shop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 205, 196, 0.34);
  box-shadow:
    0 20px 52px -14px rgba(0, 0, 0, 0.85),
    0 0 34px -10px rgba(78, 205, 196, 0.36);
}
.shop-card:hover::after { opacity: 1; }

/* 広告バナー・写真の枠 */
.shop-media {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
}
.shop-media img { border-radius: 8px; height: auto; max-width: 100%; }
@media (min-width: 768px) {
  .shop-media {
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
}

/* ===== ボタン ===== */
.btn-primary {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  box-shadow: 0 10px 26px -10px rgba(255, 107, 107, 0.75);
  transition: filter .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 32px -10px rgba(255, 107, 107, 0.9);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transition: background-color .2s ease, border-color .2s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

/* 貼り付けタグ内のテキストリンク(ボタン枠・バナー枠) */
.cta-tag a,
.banner-slot a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
}
.cta-tag a:hover,
.banner-slot a:hover { text-decoration: underline; }

.banner-slot img { border-radius: 6px; }

/* ===== スクロール表示アニメーション =====
   JS が動いているときだけ隠す(JS 無効・エラー時は最初から表示される) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .shop-card, .panel-sub, .btn-primary { transition: none; }
  .shop-card:hover, .panel-sub:hover, .btn-primary:hover { transform: none; }
}
