:root {
  --accent: #ff4655;
  --bg: #0f1923;
  --bg-soft: #1a2733;
  --card: #ffffff;
  --text: #1a2733;
  --text-on-dark: #ece8e1;
  --muted: #5b6b7a;
  --border: #d8dee4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--text);
  background: #f4f5f6;
  line-height: 1.6;
}

/* ---------- PR表記バー ---------- */
.pr-bar {
  background: #ece8e1;
  color: #444;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem 1rem;
}

/* ---------- ヒーロー ---------- */
.hero {
  background: var(--bg);
  color: var(--text-on-dark);
  padding: 3rem 1rem 2.2rem;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}
.hero h1 {
  margin: 0 0 0.6rem;
  font-size: 2.1rem;
  letter-spacing: 0.04em;
}
.hero h1 .accent { color: var(--accent); }
.hero .hero-img {
  display: block;
  width: 100%;
  max-width: 56rem;
  height: auto;
  margin: 1.2rem auto 1.4rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero .subtitle {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1rem;
  opacity: 0.92;
}
.hero .survey-note {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ---------- ナビ ---------- */
nav#category-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: center;
  background: var(--bg-soft);
  padding: 0.7rem 1rem;
}
nav#category-nav a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.2rem 0.4rem;
  border-bottom: 2px solid transparent;
}
nav#category-nav a:hover { border-bottom-color: var(--accent); }
nav#category-nav a.nav-soon { opacity: 0.65; font-weight: 400; }

.badge-soon {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  vertical-align: middle;
}

/* ---------- 本文 ---------- */
main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.category { margin-bottom: 2.8rem; scroll-margin-top: 4.5rem; }
.category h2 {
  font-size: 1.5rem;
  border-left: 6px solid var(--accent);
  padding-left: 0.6rem;
  margin: 0 0 1rem;
}

/* カテゴリの所感（タイトル直下の導入文） */
.category-summary {
  color: var(--muted);
  line-height: 1.8;
  margin: -0.4rem 0 1.2rem;
  max-width: 46em;
}

/* ---------- デバイス行（ランキングリスト） ----------
 * 左から: 使用人数 → 画像＋製品名 → 価格 → 説明 → 重量 → 発売日
 * 空欄の項目はセル自体を描画しないため、列が詰まる。 */
.device-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.device-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 5.5rem minmax(20rem, 2.6fr) minmax(9.5rem, 0.9fr) minmax(8rem, 0.9fr) 5rem 7.5rem;
  gap: 0.6rem 1.2rem;
  align-items: start;
}

.cell-users {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.rank {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
}
.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.15rem;
  color: #4a3200;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.55),
    inset 0 -4px 6px rgba(0, 0, 0, 0.18),
    0 2px 5px rgba(0, 0, 0, 0.25);
}
.medal-1 { background: radial-gradient(circle at 32% 30%, #ffe98a, #f6c453 55%, #d99a16); }
.medal-2 { background: radial-gradient(circle at 32% 30%, #ffffff, #dfe3ea 55%, #a9adb8); color: #3c414d; }
.medal-3 { background: radial-gradient(circle at 32% 30%, #ffc890, #eda76a 55%, #b06a32); color: #4d2703; }
.device-row.top-1 { border-color: #d9a514; box-shadow: 0 0 0 1px #d9a514; }
.device-row.top-2 { border-color: #b6bcc8; box-shadow: 0 0 0 1px #b6bcc8; }
.device-row.top-3 { border-color: #c47f42; box-shadow: 0 0 0 1px #c47f42; }
.users { font-size: 0.85rem; color: var(--muted); }
.users strong { color: var(--text); font-size: 1.5rem; line-height: 1.2; }

.cell-name {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.device-img-link { flex: none; }
.device-img {
  width: 100%;
  max-width: 14rem;
  height: 10rem;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-sizing: border-box;
  display: block;
}
.name-body { min-width: 0; }
.device-name { margin: 0 0 0.3rem; font-size: 1.12rem; line-height: 1.4; }
.players { margin: 0; font-size: 0.82rem; line-height: 1.55; color: #333; }
.players-label { color: var(--muted); }
.players-toggle {
  margin-left: 0.45rem;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.cell-name .note { margin: 0.3rem 0 0; font-size: 0.8rem; color: #9a6a00; }

.cell-price { min-width: 0; }
.price-line { margin: 0 0 0.25rem; }
.price-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0 0.35rem;
  margin-right: 0.45rem;
  vertical-align: middle;
}
.launch-price { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price { font-size: 1.25rem; font-weight: 800; }
.price-asof { font-size: 0.78rem; color: var(--muted); }
.price-check { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.drop-rate {
  display: inline-block;
  background: #ffe9eb;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 0.3rem;
  padding: 0.1rem 0.5rem;
}
.price-note { margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--muted); }

.cell-desc .desc { margin: 0; font-size: 0.9rem; }

.cell-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.weight, .release { font-size: 0.92rem; font-weight: 600; }
.release-note { font-size: 0.82rem; font-weight: 500; color: var(--muted); }

.amazon-btn {
  display: inline-block;
  margin-top: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 0.55rem 1rem;
  border-radius: 0.4rem;
}
.amazon-btn:hover { opacity: 0.88; }

.cell-price .amazon-btn,
.cell-price .rakuten-btn { display: block; }
.rakuten-btn {
  margin-top: 0.45rem;
  background: #bf0000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 0.55rem 1rem;
  border-radius: 0.4rem;
}
.rakuten-btn:hover { opacity: 0.88; }
.shop-btn {
  margin-top: 0.45rem;
  background: #1d4e9e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 0.55rem 1rem;
  border-radius: 0.4rem;
}
.shop-btn:hover { opacity: 0.88; }
.cell-price .shop-btn { display: block; }

/* 1枠で複数モデルを紹介するミニカード（シグネチャー系など） */
.models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.7rem;
}
.model-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
}
.model-img {
  width: 100%;
  height: 6.5rem;
  object-fit: contain;
  display: block;
}
.model-name { font-weight: 700; font-size: 0.92rem; margin-top: 0.4rem; }
.model-meta { color: var(--muted); font-size: 0.8rem; }
.model-btn {
  display: block;
  margin-top: 0.45rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  text-align: center;
  padding: 0.4rem 0.5rem;
  border-radius: 0.4rem;
}
.model-btn:hover { opacity: 0.88; }

.coming-soon .soon-text { color: var(--muted); }

/* ---------- フッター ---------- */
footer {
  background: var(--bg);
  color: var(--text-on-dark);
  padding: 2rem 1rem;
  font-size: 0.85rem;
}
footer .footer-inner { max-width: 72rem; margin: 0 auto; }
footer h2 { font-size: 1rem; margin: 0 0 0.5rem; }
footer p { margin: 0.4rem 0; opacity: 0.9; }
footer .copyright { margin-top: 1.2rem; opacity: 0.6; font-size: 0.78rem; }

/* ---------- タブレット ---------- */
@media (max-width: 1024px) {
  .device-row {
    grid-template-columns: 6rem minmax(11rem, 1.4fr) minmax(10rem, 1.1fr) minmax(9rem, 1.2fr);
  }
  .cell-weight, .cell-release { grid-column: auto; }
  .device-img { height: 8.5rem; }
}

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
  .hero { padding: 2.2rem 1rem 1.6rem; }
  .hero h1 { font-size: 1.55rem; }
  nav#category-nav { justify-content: flex-start; }
  .device-row {
    grid-template-columns: 1fr 1fr;
    padding: 0.9rem;
  }
  .cell-users {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: baseline;
    gap: 0.6rem;
  }
  .cell-name { grid-column: 1 / -1; }
  .cell-price { grid-column: 1 / -1; }
  .cell-desc { grid-column: 1 / -1; }
  .device-img { height: 8rem; }
}

/* ---------- 選手の写真（製品画像の左に横並び・同じ大きさ） ---------- */
.name-media {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.name-media > * {
  flex: 0 1 13rem;
  min-width: 0;
}
.name-media .device-img {
  width: 100%;
  max-width: none;
  height: 9.3rem;
}
.player-photo {
  margin: 0;
}
.player-photo img {
  display: block;
  width: 100%;
  height: 9.3rem;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
}
.player-photo figcaption {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
}
@media (max-width: 600px) {
  .name-media > * { flex: 1 1 100%; }
  .name-media .device-img, .player-photo img { height: 10rem; }
}

/* ---------- カード型レイアウト（マウスカテゴリで試験導入） ---------- */
.device-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.device-card.top-1 { border-color: #d9a514; box-shadow: 0 0 0 1px #d9a514; }
.device-card.top-2 { border-color: #b6bcc8; box-shadow: 0 0 0 1px #b6bcc8; }
.device-card.top-3 { border-color: #c47f42; box-shadow: 0 0 0 1px #c47f42; }
.card-band {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: -1rem -1rem 0.9rem;
  padding: 0.65rem 1rem;
  background: var(--bg);
  color: var(--text-on-dark);
  border-bottom: 3px solid var(--accent);
  border-radius: 0.6rem 0.6rem 0 0;
}
.card-rank-label { font-weight: 800; font-size: 1.05rem; }
.card-users { color: #b9c4cf; font-size: 0.9rem; }
.card-users strong { color: #fff; font-size: 1.25rem; }
.card-main {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.card-img-box { flex: 0 0 40%; max-width: 40%; }
.card-img-link { display: block; }
.card-img {
  width: 100%;
  height: 11rem;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-sizing: border-box;
  display: block;
}
.card-info { flex: 1; min-width: 0; }
.card-info .device-name { margin: 0 0 0.5rem; }
.spec-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6rem; }
.spec-badge {
  background: var(--surface-muted, #f0f1f4);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
}
/* 重量バッジ：軽いほど強調する（40g台＝赤の輪郭、30g台＝赤地に白文字） */
.spec-badge.w-light { border-color: var(--accent); color: var(--accent); }
.spec-badge.w-ultra { background: var(--accent); border-color: var(--accent); color: #fff; }
/* 発売1年以内の発売日バッジ：赤枠＋「最新」ピルで目立たせる */
.spec-badge.rel-new { border-color: var(--accent); }
.new-pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0 0.45rem;
  margin-right: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: 0.08em;
}
.model-meta .new-pill { margin: 0 0 0 0.3rem; }
.card-price { margin: 0.3rem 0 0; }
.card-price .price { font-size: 1.35rem; }
.card-price-sub { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.85rem; }
.price-disclaimer { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.72rem; }
.card-details { margin-top: 0.9rem; display: grid; gap: 0.9rem; }
.detail-title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
}
.detail-title::before { content: "■ "; color: var(--accent); }
.player-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}
.player-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 3.9rem;
}
.player-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
  background: #fff;
}
.player-icon-name {
  margin-top: 0.2rem;
  font-size: 0.62rem;
  line-height: 1.15;
  color: var(--muted);
  max-width: 3.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.player-more {
  align-self: center;
  background: var(--surface-muted, #f0f1f4);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.card-cta {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}
.cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.cta-btn:hover { opacity: 0.88; }
.cta-amazon { background: var(--accent); }
.cta-rakuten { background: #bf0000; }
.cta-shop { background: #1d4e9e; }
@media (max-width: 600px) {
  .card-main { flex-direction: column; }
  .card-img-box { flex: none; max-width: 100%; width: 100%; }
  .card-img { height: 12rem; }
  .card-cta { flex-direction: column; }
}

/* ---------- 推しポイント ---------- */
.oshi {
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 70, 85, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0.3rem;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.45;
}
.oshi-label {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.05rem 0.45rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  vertical-align: 0.08em;
}
.cell-desc .oshi { font-size: 0.82rem; }
.model-note { color: var(--muted); font-weight: 600; font-size: 0.82em; }

/* ---------- セール訴求 ---------- */
.sale-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
}
.off-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.55rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  vertical-align: 0.12em;
  white-space: nowrap;
}
.cell-price .off-badge { margin-left: 0; }

/* ---------- 複数モデル画像の帯 ---------- */
.img-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.strip-item { margin: 0; text-align: center; min-width: 0; }
.strip-img {
  width: 100%;
  height: 8.5rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.4rem;
  box-sizing: border-box;
  display: block;
}
.strip-item figcaption { margin: 0.35rem 0 0.3rem; font-size: 0.8rem; font-weight: 700; }
@media (max-width: 600px) {
  .strip-img { height: 6.5rem; }
  .strip-item figcaption { font-size: 0.7rem; }
  .img-strip { gap: 0.4rem; }
  .strip-price { font-size: 0.8rem; }
  .strip-weight { font-size: 0.7rem; }
  .strip-note { font-size: 0.58rem; }
  .strip-bf .bf-pill { font-size: 0.6rem; padding: 0.1em 0.4em; }
  .strip-item .model-btn { font-size: 0.64rem; padding: 0.32rem 0.15rem; }
}
.strip-weight { margin: 0 0 0.35rem; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.strip-link { display: block; }
.strip-item .model-btn { white-space: nowrap; font-size: 0.72rem; padding: 0.35rem 0.3rem; }
.strip-price { margin: 0 0 0.15rem; font-size: 0.92rem; font-weight: 800; }
.strip-note { margin: 0 0 0.3rem; font-size: 0.65rem; color: var(--muted); line-height: 1.35; }
.model-price { margin: 0.3rem 0 0; font-size: 0.95rem; font-weight: 800; }

/* ブラックフライデーのセール対象タグ */
.bf-pill { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.78rem; line-height: 1.5; padding: 0.1em 0.65em; border-radius: 999px; margin-left: 0.5em; vertical-align: 0.12em; white-space: nowrap; }
.strip-bf { margin: 0.2rem 0 0; }
.strip-bf .bf-pill { margin-left: 0; }
