:root {
  --white: #fff;
  --bg-alt: #f6f6f4;
  --page-bg: #fff;
  --ink: #111;
  --ink-soft: #33322f;
  --text-muted: #6b6a66;
  --border: #e7e6e2;
  --accent: #e8442e;
  --accent-strong: #c8341f;
  --accent-tint: rgba(232, 68, 46, 0.1);
  --accent-tint-strong: rgba(232, 68, 46, 0.18);
  --danger: #c8341f;
  --danger-tint: rgba(200, 52, 31, 0.08);
  --success: #1e8e3e;
  --focus: #005fcc;
  --hero-bg-color: #fff;
  --hero-bg-image: none;
  --hero-heading: #111;
  --hero-muted: #6b6a66;
  --hero-grid: rgba(17, 17, 17, 0.025);
  --campaign-featured-bg: linear-gradient(118deg, var(--accent-strong) 0%, var(--accent) 53%, #111 132%);
  --campaign-featured-art: rgba(255, 255, 255, 0.13);
  --feature-bg: linear-gradient(135deg, #242420 0%, #111 56%, #e8442e 138%);
  --product-stage-bg: radial-gradient(circle at 50% 42%, #fff 0%, #f1f1ed 55%, #d8d8d2 100%);
  --product-image-overlay: linear-gradient(145deg, transparent 62%, rgba(232, 68, 46, 0.14));
  --model-label-bg: rgba(17, 17, 17, 0.78);
  --ticker-accent: #e8442e;
  /* 外部ログインボタン用: スキン(通常/クリスマス)を問わず固定の各サービス慣例色 */
  --social-line: #06c755;
  --social-line-text: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 5px 22px rgba(17, 17, 17, 0.07);
  --shadow-lg: 0 18px 50px rgba(17, 17, 17, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* キャンペーン着せ替え（イベントスキン）用: 通常時は非表示・変化なし */
  --page-bg-image:
    radial-gradient(circle at 7% 18%, var(--accent-tint) 0, transparent 19rem),
    radial-gradient(circle at 91% 76%, var(--accent-tint) 0, transparent 22rem);
  --garland-height: 0px;
}

/* ===== キャンペーン着せ替え: クリスマス =====
   body.xmas スコープの変数・装飾だけを上書きする。DOM構造やレイアウトは一切変更しない。
   これにより「土台は同じ、着せ替えだけ変わる」構造を保つ。 */
body.xmas {
  --accent: #1e6b45;
  --accent-strong: #154d33;
  --accent-tint: rgba(30, 107, 69, 0.12);
  --accent-tint-strong: rgba(30, 107, 69, 0.2);

  --hero-bg-color: #0d2f22;
  --hero-bg-image: linear-gradient(160deg, #0f3d2c 0%, #0a2f3d 60%, #081c2e 100%);
  --hero-heading: #fff;
  --hero-muted: rgba(255, 255, 255, 0.82);
  --hero-grid: rgba(255, 255, 255, 0.05);

  --page-bg-image: linear-gradient(180deg, #eef3f7 0%, #fafcfe 100%);
  --garland-height: 6px;
}

/* クリスマス時のみ: ページ全体に降る雪（CSSのみ、JSは使わない）。
   position:fixed の疑似要素を画面全体に重ね、複数サイズの水玉を
   background-position アニメーションで下方向に流す。
   pointer-events:none なのでクリック操作を妨げない。薄く小さくして文字の可読性を保つ。 */
body.xmas::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0.8px, transparent 1.3px);
  background-size: 180px 180px, 260px 260px, 140px 140px;
  background-position: 0 0, 60px 40px, 100px 100px;
  animation: snowfall-drift 16s linear infinite;
}

@keyframes snowfall-drift {
  from { background-position: 0 0, 60px 40px, 100px 100px; }
  to { background-position: 40px 360px, 100px 520px, 130px 280px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 126px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--page-bg);
  background-image: var(--page-bg-image);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.45s ease;
}

button,
a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

button:not(:disabled),
a { cursor: pointer; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sticky-top-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 7px 22px rgba(17, 17, 17, 0.04);
}

/* クリスマス時のみ表示するガーランド帯。通常時は height:0 + overflow:hidden で
   レイアウトに一切影響を与えない（DOM構造は変えず、装飾だけ切り替える）。 */
.garland-strip {
  height: var(--garland-height);
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #c0392b 0 10px, #1e6b45 10px 20px);
  transition: height 0.3s ease;
}

.site-header,
.category-tabbar { background: rgba(255, 255, 255, 0.96); }

.site-header {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner,
.category-tabbar-inner,
.hero-inner,
.campaign-section,
.filter-bar,
.gacha-section,
.ticker-section,
.trust-section,
.footer-inner {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.logo {
  flex-shrink: 0;
  font-size: 27px;
  font-weight: 950;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
}

.logo span { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 19px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s var(--ease-out), box-shadow 0.18s ease;
}

.btn-outline { color: var(--ink); background: var(--white); }
.btn-fill { color: var(--white); background: var(--ink); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline:hover { background: var(--bg-alt); }
.btn-fill:hover { border-color: var(--accent); background: var(--accent); }
.btn:disabled { color: #a3a39d; border-color: #d2d2ce; background: #f1f1ee; box-shadow: none; cursor: not-allowed; transform: none; }
.header-mypage-link { padding: 8px 4px; color: var(--ink-soft); font-size: 12px; font-weight: 800; transition: color 0.18s ease; }
.header-mypage-link:hover { color: var(--accent); }

.category-tabbar { border-bottom: 1px solid var(--border); }

.category-tabbar-inner {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabbar-inner::-webkit-scrollbar { display: none; }

.category-tab {
  flex: 0 0 auto;
  padding: 13px 18px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.category-tab:hover:not(.active) { color: var(--accent); background: var(--bg-alt); }
.category-tab.active { color: var(--white); background: var(--ink); }

.hero {
  position: relative;
  padding: 66px 24px 72px;
  background-color: var(--hero-bg-color);
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px),
    var(--hero-bg-image);
  background-size: 48px 48px, 48px 48px, cover;
  background-position: 0 0, 0 0, center;
  overflow: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -245px;
  width: 540px;
  height: 540px;
  border: 1px solid var(--accent-tint-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 70px var(--accent-tint), 0 0 0 140px rgba(0, 0, 0, 0.015);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(38px, 5vw, 70px);
}

.hero-copy { flex: 1 1 420px; min-width: 0; }

.drop-badge,
.eyebrow {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.14em;
}

.drop-badge {
  display: inline-block;
  margin-bottom: 21px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 5px 14px var(--accent-tint-strong);
}

/* ヒーローラベルの着せ替え文言（JSで文字を書き換えず、spanのdisplay切り替えで対応） */
.badge-text-xmas { display: none; }
body.xmas .badge-text-normal { display: none; }
body.xmas .badge-text-xmas { display: inline; }

.hero h1 {
  margin: 0 0 19px;
  color: var(--hero-heading);
  font-size: clamp(41px, 5.15vw, 66px);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.045em;
  transition: color 0.45s ease;
}

.hero-sub {
  margin: 0 0 30px;
  color: var(--hero-muted);
  font-size: 16px;
  font-weight: 700;
  transition: color 0.45s ease;
}

.hero-char-row { display: flex; align-items: center; gap: 14px; }

.char-frame {
  position: relative;
  display: grid;
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 2px dashed var(--hero-heading);
  border-radius: 50%;
  color: var(--hero-muted);
  background: var(--accent-tint);
  font-size: 12px;
  font-weight: 800;
  transition: color 0.45s ease, border-color 0.45s ease;
}

.char-frame::before {
  position: absolute;
  inset: 8px;
  border: 1px solid var(--accent-tint-strong);
  border-radius: 50%;
  content: "";
}

.char-note { color: var(--hero-muted); font-size: 12px; font-weight: 650; transition: color 0.45s ease; }

.hero-feature-card {
  flex: 1 1 460px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.hero-feature-card:hover { transform: translateY(-5px) rotate(0.15deg); box-shadow: 0 24px 64px rgba(17, 17, 17, 0.2); }

.hero-feature-banner {
  position: relative;
  height: 218px;
  color: var(--white);
  background: var(--product-stage-bg);
  isolation: isolate;
  overflow: hidden;
}

.hero-feature-banner model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--product-stage-bg);
  --poster-color: transparent;
}

.model-fallback-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.model-fallback-text {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  margin: 0;
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--white);
  background: var(--model-label-bg);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

model-viewer:defined .model-fallback-poster,
model-viewer:defined .model-fallback-text { display: none; }

.model-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  color: var(--white);
  background: var(--model-label-bg);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.12);
  pointer-events: none;
}

.model-label strong {
  font-size: 11px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.03em;
}

.model-label small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-weight: 750;
  font-style: normal;
  letter-spacing: 0.16em;
  opacity: 0.78;
}

.card-banner small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 750;
  font-style: normal;
  letter-spacing: 0.16em;
  opacity: 0.78;
}

.hero-feature-body { padding: 24px 27px 28px; }
.badge-row,
.card-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge-row { margin-bottom: 17px; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.badge-prob { color: var(--ink); background: var(--bg-alt); }
.badge-guarantee { color: var(--accent-strong); border-color: var(--accent-tint-strong); background: var(--accent-tint); }
.badge-warn { color: var(--ink-soft); border-color: rgba(17, 17, 17, 0.12); background: rgba(17, 17, 17, 0.06); }

.stock-row { margin-bottom: 20px; }
.stock-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--text-muted); font-size: 11px; font-weight: 750; }
.stock-row .stock-label { font-size: 12px; }

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #ececea;
  overflow: hidden;
}

.progress-fill { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--accent); }

.hero-feature-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s var(--ease-out), box-shadow 0.18s ease;
}

.hero-feature-cta:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.campaign-section { padding: 35px 24px 0; }

.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); }
.campaign-heading,
.section-title { margin: 0; color: var(--ink); font-size: 24px; font-weight: 950; letter-spacing: -0.025em; }
.campaign-heading { font-size: 22px; }
.swipe-note,
.result-count { margin: 0; color: var(--text-muted); font-size: 10px; font-weight: 850; letter-spacing: 0.12em; }
.result-count strong { color: var(--accent); font-size: 16px; }

.campaign-banner-track-wrap {
  margin-top: 17px;
  padding: 1px 1px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) var(--border);
  scrollbar-width: thin;
}

.campaign-banner-track { display: flex; gap: 16px; width: max-content; }

.campaign-banner {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(372px, 78vw);
  aspect-ratio: 16 / 5;
  padding: 17px 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  background: linear-gradient(118deg, #33322f, #111);
  box-shadow: 0 5px 16px rgba(17, 17, 17, 0.08);
  scroll-snap-align: start;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.campaign-banner::after {
  position: absolute;
  z-index: -1;
  right: -24px;
  width: 128px;
  height: 128px;
  border: 26px solid var(--campaign-featured-art);
  border-radius: 50%;
  content: "";
}

.campaign-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.campaign-banner-featured { background: var(--campaign-featured-bg); }
.campaign-banner-midnight { background: linear-gradient(118deg, #111 0%, #292927 60%, #4a4a45 100%); }
.campaign-banner-light { color: var(--ink); background: linear-gradient(118deg, #fff, #e8e8e3); }
.campaign-banner-light::after { border-color: var(--accent-tint-strong); }
.campaign-kicker { margin-bottom: 5px; font-size: 9px; font-weight: 900; letter-spacing: 0.18em; opacity: 0.75; }
.campaign-banner strong { font-size: clamp(16px, 2.1vw, 22px); font-weight: 950; font-style: italic; letter-spacing: -0.02em; }
.campaign-banner small { margin-top: 2px; font-size: 10px; font-weight: 700; opacity: 0.68; }

/* キャンペーン1枚目の着せ替え文言（JSで文字を書き換えず、spanのdisplay切り替えで対応） */
.banner-text-xmas { display: none; }
body.xmas .banner-text-normal { display: none; }
body.xmas .banner-text-xmas { display: inline; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 24px 0;
}

.sort-tabs,
.price-chips { display: flex; gap: 6px; }

.sort-tabs {
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  overflow-x: auto;
}

.sort-tabs button,
.price-chips button {
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out);
}

.sort-tabs button { padding: 9px 15px; border: 0; color: var(--text-muted); background: transparent; }
.sort-tabs button.active { color: var(--white); background: var(--ink); }
.sort-tabs button:hover:not(.active) { color: var(--ink); background: var(--white); }
.price-chips { flex-wrap: wrap; }
.price-chips button { padding: 9px 14px; border: 1.5px solid var(--border); color: var(--ink-soft); background: var(--white); }
.price-chips button:hover,
.price-chips button.active { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-tint); transform: translateY(-1px); }

.gacha-section { padding: 30px 24px 8px; }
.gacha-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }

.gacha-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s ease, border-color 0.28s ease;
}

.gacha-card[hidden] { display: none; }

.gacha-card:hover { border-color: var(--accent-tint-strong); transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-banner {
  position: relative;
  display: grid;
  height: 158px;
  place-items: center;
  padding: 12px;
  color: var(--white);
  font-size: 25px;
  font-weight: 950;
  font-style: italic;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.card-banner::before,
.card-banner::after { position: absolute; z-index: -1; content: ""; }
.card-banner::before { inset: 0; background: repeating-linear-gradient(118deg, transparent 0 34px, rgba(255, 255, 255, 0.035) 34px 35px); }
.card-banner::after { right: -42px; bottom: -72px; width: 180px; height: 180px; border: 30px solid rgba(255, 255, 255, 0.08); border-radius: 50%; }
.card-banner.product-banner { width: 100%; height: auto; aspect-ratio: 1000 / 836; padding: 0; background: var(--product-stage-bg); overflow: visible; }
.product-banner::before { display: none; }
.product-banner::after { inset: 0; z-index: 1; width: auto; height: auto; border: 0; border-radius: 0; background: var(--product-image-overlay); pointer-events: none; }
.product-banner img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-1 { background: linear-gradient(135deg, #111, #3a3a38); }
.banner-2 { color: var(--ink); background: linear-gradient(135deg, #9a9a95, #e1e1dc 68%); }
.banner-3 { background: linear-gradient(135deg, #111, #2c2c2a 47%, var(--accent)); }
.banner-4 { background: linear-gradient(135deg, #432723, #111 61%, var(--accent)); }
.banner-5 { color: var(--ink); background: linear-gradient(135deg, #f2f2ef, #cfcfc8 70%, var(--accent)); }
.banner-6 { background: linear-gradient(135deg, #0b0b0a, #111 55%, #5a5a56); }
.banner-7 { background: linear-gradient(135deg, var(--accent-strong), var(--accent) 55%, #111); }
.banner-8 { background: linear-gradient(135deg, #111, #3a3a38 40%, var(--accent)); }

.card-body { display: flex; flex: 1; flex-direction: column; gap: 11px; padding: 19px 20px 20px; }
.card-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-name { margin: 0; color: var(--ink); font-size: 15px; font-weight: 900; }
.card-badges .badge { min-height: 24px; padding: 4px 9px; font-size: 10.5px; }
.card-price { margin: 1px 0; color: var(--ink); font-size: 20px; font-weight: 950; letter-spacing: -0.025em; }
.card-price span { margin-left: 4px; color: var(--text-muted); font-size: 11px; font-weight: 750; letter-spacing: 0; }

.card-cta-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: auto; }
.card-cta-row button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 2px;
  border: 1px solid var(--accent-tint-strong);
  border-radius: 9px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--white), var(--bg-alt));
  box-shadow: 0 3px 0 rgba(17, 17, 17, 0.12), 0 6px 12px rgba(17, 17, 17, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out), box-shadow 0.18s ease;
}
.card-cta-row .primary {
  color: var(--white);
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 4px 0 var(--accent-strong), 0 8px 16px var(--accent-tint-strong), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.card-cta-row button:hover:not(:disabled) {
  color: var(--white);
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 5px 0 var(--accent-strong), 0 10px 20px var(--accent-tint-strong), 0 0 0 3px var(--accent-tint);
  transform: translateY(-3px);
}
.card-cta-row button:active:not(:disabled) {
  box-shadow: 0 1px 0 var(--accent-strong), 0 3px 7px var(--accent-tint-strong);
  transform: translateY(2px);
}
.card-cta-row button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--accent-tint-strong);
}

.card-cta-row .cta-1000 {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  min-height: 52px;
  overflow: hidden;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: linear-gradient(110deg, #ff3d77, #ffb000, #48c774, #27a9e8, #7957d5, #ff3d77);
  background-size: 220% 220%;
  box-shadow: 0 5px 0 #5830a1, 0 11px 22px rgba(121, 87, 213, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(17, 17, 17, 0.55);
  animation: cta-rainbow 8s linear infinite;
}

.card-cta-row .cta-1000::before {
  position: absolute;
  top: -55%;
  bottom: -55%;
  left: -40%;
  z-index: -1;
  width: 24%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-18deg);
  animation: cta-shine 4.2s ease-in-out infinite;
  pointer-events: none;
}

.card-cta-row .cta-1000:hover:not(:disabled) {
  color: var(--white);
  border-color: var(--white);
  background: linear-gradient(110deg, #ff3d77, #ffb000, #48c774, #27a9e8, #7957d5, #ff3d77);
  background-size: 220% 220%;
  box-shadow: 0 7px 0 #5830a1, 0 15px 28px rgba(121, 87, 213, 0.4), 0 0 0 4px var(--accent-tint-strong);
  transform: translateY(-3px);
}

.card-cta-row .cta-1000:active:not(:disabled) {
  box-shadow: 0 2px 0 #5830a1, 0 5px 10px rgba(121, 87, 213, 0.3);
  transform: translateY(3px);
}

.card-cta-row .cta-1000:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--accent);
}

@keyframes cta-rainbow {
  to { background-position: 220% 50%; }
}

@keyframes cta-shine {
  0%, 56% { left: -40%; }
  78%, 100% { left: 125%; }
}

.sticker-badge {
  position: absolute;
  top: 148px;
  left: 15px;
  z-index: 3;
  padding: 6px 12px;
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  box-shadow: var(--shadow);
  font-size: 10px;
  font-weight: 900;
  transform: rotate(-6deg);
}

.product-banner .sticker-badge { top: auto; bottom: -10px; }

.soldout { filter: grayscale(0.58); }
.soldout:hover { transform: none; }
.soldout .card-banner { filter: grayscale(1) brightness(0.87); }
.soldout .card-cta-row button { cursor: not-allowed; color: #9c9c97; border-color: #d2d2ce; background: #f1f1ee; box-shadow: none; }
.soldout .card-cta-row .cta-1000 { color: #9c9c97; border-color: #d2d2ce; background: #f1f1ee; box-shadow: none; text-shadow: none; animation: none; }
.soldout .card-cta-row .cta-1000::before { display: none; animation: none; }
.soldout-ribbon { position: absolute; top: 18px; right: -40px; z-index: 4; width: 176px; padding: 7px 0; color: var(--white); background: var(--ink); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24); font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-align: center; transform: rotate(35deg); }
.empty-message { margin: 40px 0; color: var(--text-muted); font-size: 14px; font-weight: 700; text-align: center; }

.ticker-section { padding: 0 24px; margin-top: 34px; }
.ticker-box { padding: 20px 0 23px; border-radius: var(--radius); color: var(--white); background: var(--ink); overflow: hidden; }
.ticker-box h2 { margin: 0 0 14px; padding: 0 24px; font-size: 15px; font-weight: 850; }
.ticker-box h2 span { color: var(--ticker-accent); }
.ticker-track-wrap { width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: ticker-scroll 32s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 999px; color: var(--white); background: rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 650; white-space: nowrap; }
.ticker-item .time { color: var(--ticker-accent); font-weight: 900; }
.ticker-item .win { font-weight: 850; }

.trust-section { padding: 0 24px; margin-top: 62px; }
.trust-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 23px; }
.trust-card { padding: 29px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease; }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trust-icon { position: relative; display: grid; width: 57px; height: 57px; margin: 0 auto 16px; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--bg-alt); font-size: 23px; font-weight: 900; }
.trust-icon-search::before { width: 17px; height: 17px; border: 3px solid currentColor; border-radius: 50%; content: ""; transform: translate(-3px, -3px); }
.trust-icon-search::after { position: absolute; width: 12px; height: 3px; border-radius: 2px; background: currentColor; content: ""; transform: translate(10px, 10px) rotate(45deg); }
.trust-icon-license::before { width: 23px; height: 28px; border: 2px solid currentColor; border-radius: 2px; content: ""; }
.trust-icon-license::after { position: absolute; width: 13px; height: 8px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; }
.trust-card h3 { margin: 0 0 9px; font-size: 14px; font-weight: 900; line-height: 1.55; }
.trust-card p { margin: 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.8; }

.site-footer { margin-top: 66px; padding: 40px 24px 104px; color: #c9c9c5; background: var(--ink); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 19px; text-align: center; }
.footer-logo { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-links button,
.footer-links a { padding: 3px 0; border: 0; color: inherit; background: transparent; font-size: 12px; font-weight: 650; }
.footer-links button:hover,
.footer-links a:hover { color: var(--white); }
.footer-copy { color: #8c8c88; font-size: 11px; }

.mobile-tabbar { display: none; }

/* ===== キャンペーン着せ替えデモ用の切り替えUI（右下固定） ===== */
.skin-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.skin-switcher .skin-note { margin: 0; color: var(--text-muted); font-size: 10.5px; font-weight: 750; letter-spacing: 0.02em; }
.skin-switcher .skin-buttons { display: flex; gap: 6px; }
.skin-switcher button {
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  transition: color 0.15s ease, background 0.15s ease;
}
.skin-switcher button.is-active { color: var(--white); background: var(--ink); }

/* ガチャ詳細ページは下部に追従購入バーが常時固定表示されるため、
   切り替えUIをその上に重ならない高さへ上げる。 */
.detail-page .skin-switcher { bottom: 96px; }

/* My page */
.pt-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  background: var(--bg-alt);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.pt-chip span { color: var(--text-muted); font-size: 10px; font-weight: 750; }
.btn-charge-sm { min-height: 38px; padding: 8px 15px; font-size: 12px; }
.mypage-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 2px solid var(--accent); border-radius: 50%; color: var(--white); background: var(--ink); font-size: 11px; font-weight: 900; transition: transform 0.18s var(--ease-out), box-shadow 0.18s ease; }
.mypage-icon:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.profile-summary { padding: 34px 24px; border-bottom: 1px solid var(--border); background: var(--white); }
.profile-summary-inner { display: flex; width: min(100%, 1240px); align-items: center; justify-content: space-between; gap: 32px; margin-inline: auto; }
.profile-left { display: flex; min-width: 0; flex: 1 1 380px; align-items: center; gap: 18px; }
.avatar-circle { display: grid; width: 64px; height: 64px; flex: 0 0 auto; place-items: center; border: 2px solid var(--accent); border-radius: 50%; color: var(--white); background: var(--ink); font-size: 13px; font-weight: 900; }
.profile-info { min-width: 0; flex: 1; }
.profile-name { margin: 0 0 9px; font-size: 20px; font-weight: 950; line-height: 1.3; }
.rank-badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 9px; }
.mypage-rank-badge { flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; color: var(--white); background: linear-gradient(135deg, #a87513, #dca92f); font-size: 12px; font-weight: 900; letter-spacing: 0.02em; }
.rank-next-note { color: var(--text-muted); font-size: 12px; font-weight: 750; }
.rank-progress { max-width: 340px; }
.profile-right { flex: 0 0 auto; text-align: right; }
.pt-balance-label { margin: 0 0 4px; color: var(--text-muted); font-size: 12px; font-weight: 750; }
.pt-balance-value { margin: 0 0 14px; font-size: 31px; font-weight: 950; line-height: 1; letter-spacing: -0.035em; }
.pt-balance-value span { margin-left: 5px; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.btn-charge-lg { min-height: 48px; padding: 12px 25px; color: var(--white); border-color: var(--ink); background: var(--ink); font-size: 14px; }

.mypage-tabs-wrap,
.mypage-section { width: min(100%, 1240px); margin-inline: auto; }
.mypage-tabs-wrap { padding: 27px 24px 0; }
.mypage-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-alt); }
.mypage-tab-btn { padding: 10px 18px; border: 0; border-radius: 999px; color: var(--text-muted); background: transparent; font-size: 13px; font-weight: 800; transition: color 0.18s ease, background 0.18s ease; }
.mypage-tab-btn.active { color: var(--white); background: var(--ink); }
.mypage-tab-btn:hover:not(.active) { color: var(--ink); background: var(--white); }
.mypage-tab-btn:focus-visible { outline-offset: 2px; }
.mypage-section { padding: 24px 24px 8px; }
.mypage-section .section-title { margin: 5px 0 19px; font-size: 21px; }

.items-action-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); }
.select-all-label { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 750; }
.select-all-label input,
.item-checkbox { width: 18px; height: 18px; accent-color: var(--ink); }
.select-all-label input:disabled,
.item-checkbox:disabled { cursor: not-allowed; opacity: 0.58; }
.items-action-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-sm { min-height: 39px; padding: 8px 15px; font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease, border-color 0.22s ease; }
.product-card:hover { border-color: var(--accent-tint-strong); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card.locked { filter: grayscale(0.42); }
.product-thumb { position: relative; display: grid; height: 172px; place-items: center; padding: 10px; background: var(--product-stage-bg); overflow: hidden; }
.product-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.item-checkbox { position: absolute; top: 11px; left: 11px; z-index: 2; }
.status-badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 5px 10px; border-radius: 999px; color: var(--white); font-size: 10px; font-weight: 900; }
.status-ok { background: var(--success); }
.status-prep { background: var(--text-muted); }
.status-done { border: 1px solid var(--border); color: var(--ink-soft); background: rgba(255, 255, 255, 0.88); }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.product-name { margin: 0; font-size: 14px; font-weight: 900; line-height: 1.4; }
.product-source { margin: 0; color: var(--accent-strong); font-size: 12px; font-weight: 750; line-height: 1.4; }
.product-meta-row { display: flex; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: 11px; font-weight: 700; }
.product-pt { margin: 2px 0 4px; font-size: 17px; font-weight: 950; }
.product-pt span { margin-left: 4px; color: var(--text-muted); font-size: 10px; font-weight: 700; }
.product-cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.btn-mini { min-height: 40px; padding: 8px 4px; border: 1.5px solid var(--ink); border-radius: 9px; color: var(--white); background: var(--ink); font-size: 11px; font-weight: 850; }
.btn-mini.outline { color: var(--ink); background: var(--white); }
.btn-mini:disabled { color: #a3a39d; border-color: #d2d2ce; background: #f1f1ee; cursor: not-allowed; }

.history-table-wrap { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow-x: auto; }
.history-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.history-table th { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); background: var(--bg-alt); font-size: 12px; font-weight: 750; text-align: left; white-space: nowrap; }
.history-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--ink-soft); white-space: nowrap; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table .pos { color: var(--success); font-weight: 850; }
.history-table .neg { color: var(--accent-strong); font-weight: 850; }

.address-card { max-width: 440px; margin-bottom: 18px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow); }
.address-badge { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; color: var(--accent-strong); background: var(--accent-tint); font-size: 11px; font-weight: 850; }
.address-name { margin: 0 0 8px; font-size: 16px; font-weight: 900; }
.address-detail { margin: 0 0 8px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.address-phone { margin: 0; color: var(--text-muted); font-size: 13px; font-weight: 650; }

.settings-list { display: flex; max-width: 520px; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); }
.settings-row-title { margin: 0 0 4px; font-size: 14px; font-weight: 900; }
.settings-row-desc { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.toggle-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-slider { position: absolute; inset: 0; border-radius: 999px; background: #dededa; cursor: pointer; transition: background 0.18s ease; }
.toggle-slider::before { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(17, 17, 17, 0.3); content: ""; transition: transform 0.18s var(--ease-out); }
.toggle-switch input:checked + .toggle-slider { background: var(--ink); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:focus-visible + .toggle-slider { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn-logout { min-height: 44px; padding: 10px 23px; border: 1.5px solid var(--danger); border-radius: 999px; color: var(--danger); background: var(--white); font-size: 13px; font-weight: 850; transition: color 0.18s ease, background 0.18s ease; }
.btn-logout:hover { color: var(--white); background: var(--danger); }

/* Gacha detail */
.breadcrumb,
.overview-inner,
.trust-minibar,
.prize-section-wrap,
.explain-section,
.accordion-section,
.sticky-purchase-inner {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 20px 24px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.breadcrumb a:hover { color: var(--accent); text-decoration-color: currentColor; }
.breadcrumb a:focus-visible { border-radius: 3px; }

.overview-section { padding: 24px 24px 28px; }
.overview-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); gap: 30px; align-items: stretch; }

.overview-visual {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--product-stage-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.overview-visual img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1000 / 836;
  object-fit: contain;
  object-position: center;
}

.detail-info-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-info-panel .eyebrow { margin-bottom: 9px; }
.detail-info-panel h1 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 52px); font-weight: 950; line-height: 1.05; letter-spacing: -0.045em; }
.detail-info-panel .stock-row { margin-top: 21px; }
.detail-price { margin: 25px 0 18px; color: var(--ink); font-size: clamp(30px, 3.5vw, 44px); font-weight: 950; line-height: 1; letter-spacing: -0.04em; }
.detail-price span { margin-left: 7px; color: var(--text-muted); font-size: 13px; font-weight: 800; letter-spacing: 0; }
.detail-cta-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.detail-cta-row button { min-height: 48px; font-size: 11px; }
.limit-note { margin: 14px 0 0; color: var(--text-muted); font-size: 11px; font-weight: 700; text-align: center; }

.trust-minibar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 24px;
  border-block: 1px solid var(--border);
  color: var(--ink-soft);
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.prize-section-wrap { padding: 64px 24px 10px; }
.detail-section-title { margin: 6px 0 28px; font-size: clamp(25px, 3vw, 36px); font-weight: 950; line-height: 1.2; letter-spacing: -0.035em; }
.prize-tier + .prize-tier { margin-top: 48px; }
.prize-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.prize-section-head h3 { margin: 0; }
.prize-section-count { color: var(--text-muted); font-size: 12px; font-weight: 850; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 7px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.04em;
}

.rank-badge.rank-s { border-color: var(--accent); background: var(--accent); }
.rank-badge.rank-a { color: var(--ink); background: var(--white); }
.rank-badge.rank-b { color: var(--ink-soft); border-color: var(--border); background: var(--bg-alt); }
.rank-badge.rank-last { border-color: var(--accent-strong); background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }

.prize-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.prize-card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease, border-color 0.22s ease; }
.prize-card:hover { border-color: var(--accent-tint-strong); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prize-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

.prize-visual {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  padding: 12px;
  background: var(--product-stage-bg);
  overflow: hidden;
}

.prize-visual img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.prize-count-badge { position: absolute; right: 9px; bottom: 9px; min-width: 34px; padding: 6px 9px; border-radius: 999px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); font-size: 11px; font-weight: 900; line-height: 1; text-align: center; }
.prize-card-body { padding: 15px 16px 17px; }
.prize-name { margin: 0; font-size: 13px; font-weight: 900; line-height: 1.5; overflow-wrap: anywhere; }
.prize-size { margin: 7px 0 0; color: var(--text-muted); font-size: 10.5px; font-weight: 750; line-height: 1.4; }

.explain-section { padding: 64px 24px 0; }
.explain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.explain-card { padding: 25px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.explain-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 900; }
.explain-card p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.85; }

.accordion-section { padding: 64px 24px 0; }
.accordion-item { border-top: 1px solid var(--border); background: var(--white); }
.accordion-item:last-child { border-bottom: 1px solid var(--border); }
.accordion-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4px; border: 0; color: var(--ink); background: transparent; font-size: 14px; font-weight: 850; text-align: left; transition: color 0.18s ease, background 0.18s ease; }
.accordion-trigger:hover { color: var(--accent); background: var(--accent-tint); }
.accordion-trigger:focus-visible { outline-offset: -3px; }
.accordion-icon { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-alt); font-size: 19px; font-weight: 500; line-height: 1; transition: color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease-out); }
.accordion-item.is-open .accordion-icon { color: var(--white); border-color: var(--accent); background: var(--accent); transform: rotate(45deg); }
.accordion-panel { padding: 0 42px 22px 4px; }
.accordion-panel p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.85; }

.sticky-purchase-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 190;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -7px 24px rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(12px);
}

.sticky-purchase-inner { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 76px; padding: 10px 24px; }
.sticky-purchase-info { display: flex; min-width: 0; flex-direction: column; }
.sticky-purchase-info strong { overflow: hidden; font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.sticky-purchase-info span { color: var(--text-muted); font-size: 11px; font-weight: 750; }
.sticky-purchase-cta { min-width: 210px; min-height: 50px; padding: 11px 24px; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--white); background: linear-gradient(135deg, var(--accent), var(--accent-strong)); box-shadow: 0 4px 0 var(--accent-strong), 0 8px 18px var(--accent-tint-strong); font-size: 14px; font-weight: 900; transition: transform 0.18s var(--ease-out), box-shadow 0.18s ease; }
.sticky-purchase-cta:hover { box-shadow: 0 6px 0 var(--accent-strong), 0 12px 22px var(--accent-tint-strong); transform: translateY(-2px); }
.sticky-purchase-cta:active { box-shadow: 0 1px 0 var(--accent-strong), 0 3px 8px var(--accent-tint-strong); transform: translateY(2px); }
.sticky-purchase-cta:focus-visible { outline-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-tint-strong); }

.detail-page .site-footer { padding-bottom: 132px; }
.gacha-card-image-link { display: block; width: 100%; height: 100%; }
.gacha-card-image-link img { transition: transform 0.28s var(--ease-out); }
.gacha-card-image-link:hover img { transform: scale(1.025); }
.gacha-card-image-link:focus-visible { outline-offset: -4px; }
.gacha-card-name-link { transition: color 0.18s ease; }
.gacha-card-name-link:hover { color: var(--accent); }
.gacha-card-name-link:focus-visible { border-radius: 3px; }

/* ===== ミッションページ ===== */
.mission-head,
.mission-section,
.mission-note { width: min(100%, 1240px); margin-inline: auto; }
.mission-head { padding: 34px 24px 6px; }
.mission-head .section-title { margin: 0 0 8px; }
.mission-head-sub { margin: 0; color: var(--text-muted); font-size: 14px; font-weight: 700; }

.mission-section { padding: 30px 24px 0; }
.mission-group-title { margin: 0 0 18px; font-size: 18px; font-weight: 900; letter-spacing: -0.015em; }

.mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mission-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mission-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease, border-color 0.22s ease;
}

.mission-card:hover { border-color: var(--accent-tint-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mission-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mission-reward-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 11px; border-radius: 999px; color: var(--accent-strong); background: var(--accent-tint); font-size: 12px; font-weight: 900; letter-spacing: -0.01em; }
.mission-status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 10px; border-radius: 999px; color: var(--white); font-size: 10.5px; font-weight: 900; white-space: nowrap; }
.mission-card-title { margin: 2px 0 0; font-size: 15px; font-weight: 900; line-height: 1.4; }
.mission-card-desc { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.mission-progress-text { margin: 0; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.mission-progress-row { display: flex; flex-direction: column; gap: 7px; }
.mission-progress-row .mission-progress-text { text-align: right; }

.mission-claim-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid #d2d2ce;
  border-radius: 999px;
  color: #a3a39d;
  background: #f1f1ee;
  font-size: 13px;
  font-weight: 850;
  cursor: not-allowed;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out), box-shadow 0.18s ease;
}

.mission-claim-btn.is-active { color: var(--white); border-color: var(--ink); background: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.mission-claim-btn.is-active:hover { border-color: var(--accent); background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mission-claim-btn.is-active:focus-visible { outline-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-tint-strong); }

.mission-note { margin-top: 26px; padding: 0 24px 44px; color: var(--text-muted); font-size: 11.5px; line-height: 1.8; }

.tab-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  z-index: 1;
  display: grid;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--white);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

/* ===== ログイン / 新規登録ページ ===== */
.auth-main { display: flex; justify-content: center; padding: 56px 24px 96px; }
.auth-section { width: 100%; }

.auth-card {
  width: min(440px, 100%);
  margin-inline: auto;
  padding: 40px 36px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.auth-tabs { display: flex; gap: 6px; margin-bottom: 28px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-alt); }
.auth-tab-btn { flex: 1; padding: 12px 16px; border: 0; border-radius: 999px; color: var(--text-muted); background: transparent; font-size: 14px; font-weight: 850; transition: color 0.18s ease, background 0.18s ease; }
.auth-tab-btn.active { color: var(--white); background: var(--ink); }
.auth-tab-btn:hover:not(.active) { color: var(--ink); background: var(--white); }
.auth-tab-btn:focus-visible { outline-offset: 2px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field-label { color: var(--ink-soft); font-size: 12px; font-weight: 800; }

.auth-field input {
  min-height: 46px;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-field input::placeholder { color: #a3a39d; }
.auth-field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }

.auth-checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.65; }
.auth-checkbox input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--ink); }
.auth-checkbox a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; transition: color 0.18s ease; }
.auth-checkbox a:hover { color: var(--accent); }

.auth-submit { width: 100%; min-height: 50px; margin-top: 6px; font-size: 14px; }

.auth-link {
  display: block;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.auth-link:hover { color: var(--accent); }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 30px 0 20px; color: var(--text-muted); font-size: 11px; font-weight: 850; letter-spacing: 0.08em; }
.auth-divider::before,
.auth-divider::after { flex: 1; height: 1px; background: var(--border); content: ""; }

.auth-social { display: flex; flex-direction: column; gap: 10px; }

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 850;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s ease;
}

.auth-social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.auth-social-line { color: var(--social-line-text); background: var(--social-line); }
.auth-social-google { color: var(--ink); border-color: var(--border); background: var(--white); }

/* ===== 規約系テンプレートページ ===== */
.legal-main { padding-bottom: 48px; }

.legal-content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
  width: min(100%, 1240px);
  align-items: start;
  margin-inline: auto;
  padding: 30px 24px 0;
}

.legal-notice {
  display: flex;
  grid-column: 1 / -1;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1.5px solid var(--accent-tint-strong);
  border-radius: var(--radius-sm);
  color: var(--accent-strong);
  background: var(--accent-tint);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.7;
}

.legal-notice-icon { flex: 0 0 auto; font-size: 16px; line-height: 1.4; }
.legal-notice p { margin: 0; }

.legal-body { display: flex; min-width: 0; flex-direction: column; gap: 36px; }
.legal-page-title { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 950; letter-spacing: -0.03em; }
.legal-section h2 { margin: 0 0 14px; font-size: 19px; font-weight: 900; letter-spacing: -0.015em; scroll-margin-top: 132px; }
.legal-section p { margin: 0 0 12px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.9; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-toc {
  position: sticky;
  top: 140px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-toc-title { margin: 0 0 12px; color: var(--text-muted); font-size: 11px; font-weight: 850; letter-spacing: 0.08em; }
.legal-toc ol { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.legal-toc a { color: var(--ink-soft); font-size: 13px; font-weight: 750; transition: color 0.18s ease; }
.legal-toc a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .gacha-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-inner { grid-template-columns: minmax(0, 1fr) minmax(330px, 0.88fr); gap: 22px; }
  .prize-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 112px; }
  .header-inner { padding: 11px 16px; }
  .logo { font-size: 23px; }
  .btn { min-height: 37px; padding: 8px 13px; font-size: 11px; }
  .header-mypage-link { display: none; }
  .logged-in-actions { gap: 7px; }
  .pt-chip { padding: 8px 11px; font-size: 12px; }
  .btn-charge-sm { padding-inline: 12px; }
  .mypage-icon { width: 38px; height: 38px; }
  .category-tabbar-inner { padding: 0 16px; gap: 2px; }
  .category-tab { padding: 11px 14px; font-size: 12px; }
  .hero { padding: 30px 16px 40px; }
  .hero-inner { flex-direction: column; gap: 24px; }
  .hero-copy { flex-basis: auto; text-align: center; }
  .drop-badge { margin-bottom: 16px; }
  .hero h1 { margin-bottom: 14px; font-size: clamp(34px, 10.3vw, 43px); line-height: 1.14; }
  .hero-sub { margin-bottom: 20px; font-size: 14px; }
  .hero-char-row { justify-content: center; }
  .hero-feature-card { flex-basis: auto; width: 100%; }
  .hero-feature-banner { height: 270px; }
  .campaign-section { padding: 25px 16px 0; }
  .campaign-heading { font-size: 19px; }
  .campaign-banner-track { gap: 12px; }
  .campaign-banner { width: 76vw; min-width: 270px; }
  .filter-bar { align-items: stretch; flex-direction: column; padding: 23px 16px 0; }
  .sort-tabs { width: 100%; }
  .sort-tabs button { flex: 1 0 auto; }
  .price-chips { gap: 7px; }
  .price-chips button { padding-inline: 12px; }
  .gacha-section { padding: 25px 16px 8px; }
  .gacha-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-banner { height: 220px; }
  .ticker-section { padding: 0 16px; margin-top: 28px; }
  .trust-section { padding: 0 16px; margin-top: 38px; }
  .site-footer { padding: 35px 16px 100px; }
  .profile-summary { padding: 24px 16px; }
  .profile-summary-inner { align-items: stretch; flex-direction: column; gap: 21px; }
  .profile-left { flex: 1 1 auto; }
  .profile-right { text-align: left; }
  .rank-progress { max-width: none; }
  .btn-charge-lg { width: 100%; }
  .mypage-tabs-wrap { padding: 21px 16px 0; overflow: hidden; }
  .mypage-tabs { display: flex; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mypage-tabs::-webkit-scrollbar { display: none; }
  .mypage-tab-btn { flex: 0 0 auto; }
  .mypage-section { padding: 20px 16px 8px; }
  .items-action-bar { align-items: stretch; flex-direction: column; gap: 13px; }
  .items-action-buttons { flex-direction: column; }
  .items-action-buttons .btn { width: 100%; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-thumb { height: 210px; }
  .mission-head { padding: 24px 16px 4px; }
  .mission-section { padding: 22px 16px 0; }
  .mission-grid,
  .mission-grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .mission-note { padding: 0 16px 36px; }
  .breadcrumb { padding: 16px 16px 0; }
  .overview-section { padding: 18px 16px 24px; }
  .overview-inner { grid-template-columns: 1fr; gap: 16px; }
  .detail-info-panel { padding: 24px 20px; }
  .detail-info-panel h1 { font-size: clamp(30px, 10vw, 42px); }
  .detail-price { margin-block: 22px 16px; }
  .trust-minibar { padding-inline: 16px; font-size: 11px; }
  .prize-section-wrap,
  .explain-section,
  .accordion-section { padding-right: 16px; padding-left: 16px; }
  .prize-section-wrap { padding-top: 48px; }
  .prize-tier + .prize-tier { margin-top: 40px; }
  .prize-grid { gap: 12px; }
  .prize-card-body { padding: 12px 12px 14px; }
  .prize-name { font-size: 12px; }
  .explain-section,
  .accordion-section { padding-top: 48px; }
  .explain-grid { grid-template-columns: 1fr; gap: 12px; }
  .explain-card { padding: 21px 20px; }
  .sticky-purchase-bar { bottom: 66px; }
  .sticky-purchase-inner { justify-content: space-between; gap: 12px; min-height: 70px; padding: 9px 16px; }
  .sticky-purchase-info { flex: 1 1 auto; }
  .sticky-purchase-cta { min-width: 0; flex: 0 0 auto; min-height: 46px; padding: 10px 20px; font-size: 13px; }
  .detail-page .site-footer { padding-bottom: 172px; }
  .auth-main { padding: 32px 16px 72px; }
  .auth-card { padding: 30px 22px 26px; }
  .legal-content-wrap { grid-template-columns: 1fr; gap: 22px; padding: 22px 16px 0; }
  .legal-notice { padding: 15px 16px; font-size: 12.5px; }
  .legal-body { gap: 30px; }
  .legal-toc { position: static; order: -1; }
  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    display: flex;
    height: 66px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -5px 18px rgba(17, 17, 17, 0.08);
    backdrop-filter: blur(12px);
  }
  .mobile-tabbar a,
  .mobile-tabbar button { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; border: 0; color: var(--text-muted); background: transparent; font-size: 10px; font-weight: 750; }
  .mobile-tabbar .active { color: var(--ink); }
  .tab-icon { position: relative; display: block; width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 6px; }
  .tab-icon-gacha::before { position: absolute; inset: 4px; border: 1.5px solid currentColor; border-radius: 50%; content: ""; }
  .tab-icon-mission { border-radius: 50%; }
  .tab-icon-mission::before { position: absolute; inset: 4px; border: 2px solid currentColor; border-radius: 50%; content: ""; }
  .tab-icon-prize::before { position: absolute; top: 4px; right: -3px; left: -3px; height: 3px; border-radius: 2px; background: currentColor; content: ""; }
  .tab-icon-user { border-radius: 50%; }
  .tab-icon-user::before { position: absolute; top: 3px; left: 6px; width: 5px; height: 5px; border: 1.5px solid currentColor; border-radius: 50%; content: ""; }
  .skin-switcher { right: 10px; bottom: 84px; padding: 10px 12px; }
  .detail-page .skin-switcher { bottom: 154px; }
  .tab-icon-user::after { position: absolute; bottom: 3px; left: 3px; width: 10px; height: 5px; border: 1.5px solid currentColor; border-radius: 8px 8px 3px 3px; content: ""; }
}

@media (max-width: 420px) {
  .header-actions { gap: 6px; }
  .btn { padding-inline: 11px; }
  .logged-in-actions { gap: 5px; }
  .pt-chip { padding-inline: 9px; font-size: 11.5px; }
  .btn-charge-sm { padding-inline: 9px; }
  .mypage-icon { width: 36px; height: 36px; font-size: 10px; }
  .avatar-circle { width: 54px; height: 54px; font-size: 11px; }
  .profile-left { gap: 13px; }
  .profile-name { font-size: 18px; }
  .rank-badge-row { gap: 7px; }
  .mypage-rank-badge { padding-inline: 11px; font-size: 11px; }
  .rank-next-note { font-size: 10.5px; }
  .pt-balance-value { font-size: 27px; }
  .mypage-tab-btn { padding-inline: 14px; font-size: 12px; }
  .product-thumb { height: 180px; }
  .product-meta-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .settings-row { align-items: flex-start; }
  .hero-feature-body { padding: 21px 20px 23px; }
  .card-cta-row { gap: 3px; }
  .card-cta-row button { padding-inline: 1px; font-size: 9.5px; letter-spacing: -0.025em; }
  .detail-cta-row { gap: 4px; }
  .detail-cta-row button { min-height: 46px; font-size: 9.5px; }
  .detail-section-title { margin-bottom: 22px; }
  .rank-badge { min-height: 32px; padding: 6px 12px; font-size: 12px; }
  .prize-visual { padding: 8px; }
  .prize-count-badge { right: 6px; bottom: 6px; min-width: 30px; padding: 5px 7px; font-size: 10px; }
  .prize-card-body { padding: 10px; }
  .prize-name { font-size: 11px; line-height: 1.45; }
  .prize-size { margin-top: 5px; font-size: 9.5px; }
  .sticky-purchase-inner { padding-inline: 12px; }
  .sticky-purchase-info strong { max-width: 148px; }
  .sticky-purchase-cta { padding-inline: 16px; }
  .skin-switcher button { padding: 7px 10px; font-size: 11px; }
  .auth-card { padding: 26px 18px 22px; }
  .auth-tab-btn { padding: 10px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker-track { transform: none; }
  .card-cta-row .cta-1000,
  .card-cta-row .cta-1000::before { animation: none; }
}
