/*
Theme Name: Which×2
Theme URI: https://which2.jp
Description: 商品・サービス比較投票サイト
Author: Your Name
Version: 1.0
*/

/* CSSは assets/css/which2.css に記述 */

/* =============================
   Which×2 — 一覧ページ
   ============================= */

.which2-archive {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.which2-archive__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

.which2-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* カード */
.battle-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.battle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 22, 18, 0.10);
}

.battle-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink3);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.battle-card__versus {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.battle-card__side {
  flex: 1;
  text-align: center;
}

.battle-card__side img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}

.battle-card__side .brand {
  font-size: 0.7rem;
  color: var(--ink3);
  margin-bottom: 2px;
}

.battle-card__side .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.battle-card__side .score {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
}

.battle-card__vs {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink3);
  flex-shrink: 0;
}

/* 投票バー（一覧） */
.battle-card__bar {
  display: flex;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
}

.battle-card__bar .bar-a {
  background: var(--rose);
  transition: width 0.4s ease;
  font-size: 0;
}

.battle-card__bar .bar-b {
  background: var(--sage);
  transition: width 0.4s ease;
  font-size: 0;
}


/* =============================
   Which×2 — 詳細ページ
   ============================= */

.which2-single {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.which2-single__title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

.which2-single__versus {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}

/* 各サイド */
.which2-side {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.which2-side:hover {
  box-shadow: 0 8px 24px rgba(26, 22, 18, 0.08);
}

.which2-side img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 16px;
}

.which2-side .brand {
  font-size: 0.75rem;
  color: var(--ink3);
  margin-bottom: 4px;
}

.which2-side .name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.which2-side .price {
  font-size: 0.9rem;
  color: var(--ink3);
  margin-bottom: 8px;
}

.which2-side .score {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}

/* 投票ボタン */
.vote-btn {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 10px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  margin-bottom: 12px;
}

.vote-btn:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.vote-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vote-count {
  font-size: 0.8rem;
  color: var(--ink3);
}

/* VS */
.which2-vs {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink3);
  padding-top: 80px;
  flex-shrink: 0;
}

/* 投票バー（詳細） */
.which2-bar {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}

.which2-bar .bar-a {
  background: var(--rose);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10px;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 600;
  transition: width 0.5s ease;
}

.which2-bar .bar-b {
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 600;
  transition: width 0.5s ease;
}

/* 投票完了メッセージ */
.which2-voted {
  text-align: center;
  font-size: 0.9rem;
  color: var(--sage);
  font-weight: 600;
  margin-top: 8px;
}

/* =============================
   レスポンシブ
   ============================= */

@media (max-width: 640px) {
  .which2-single__versus {
    flex-direction: column;
  }

  .which2-vs {
    padding-top: 0;
    text-align: center;
  }

  .which2-archive__grid {
    grid-template-columns: 1fr;
  }
}


/* =============================
   Which×2 — 24件表示・日付指定フロントページ専用
   ============================= */

.which2-archive--daily {
  padding: 100px 0 120px;
  background-color: var(--cream);
}

.archive-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header__sub {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.section-header__main {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  margin: 12px 0;
  color: var(--ink);
  line-height: 1.1;
}

.section-header__date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ink3);
  font-size: 1.3rem;
  margin-top: 5px;
}

/* 24件を美しく並べるグリッドシステム */
.which2-archive__grid--24 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 48px 32px;
}

/* カードデザインのアップグレード */
.battle-card--premium {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border-radius: 28px;
  padding: 36px 30px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(26, 22, 18, 0.02);
  border: 1px solid rgba(26, 22, 18, 0.03);
}

.battle-card--premium:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 50px rgba(26, 22, 18, 0.1);
  border-color: rgba(191, 160, 106, 0.2); /* var(--gold) の薄い色 */
}

.battle-card__title--premium {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  min-height: 3.2em;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.battle-card__versus--premium {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 10px;
}

.battle-card__side--premium {
  width: 44%;
  text-align: center;
}

.battle-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 15px;
  background: #fdfdfd;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.02);
}

.battle-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.battle-card--premium:hover .battle-card__img-wrap img {
  transform: scale(1.08);
}

.battle-card__vs--premium {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 900;
  color: var(--gold);
  font-size: 1.4rem;
  padding-top: 45px;
}

.battle-card__bar--premium {
  display: flex;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: #f0f0f0;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .archive-container { padding: 0 20px; }
  .which2-archive--daily { padding: 60px 0 80px; }
  .which2-archive__grid--24 { grid-template-columns: 1fr; gap: 30px; }
  .battle-card--premium { padding: 30px 20px; }
}

/* トップページ・グリッド全体の強制設定 */
.which2-archive--daily {
  width: 100%;
  background-color: #F8F4EF; /* var(--cream) */
  padding: 100px 0;
}

.which2-archive__grid--24 {
  display: grid !important;
  /* 画面幅に合わせて自動で3列〜1列に調整 */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 40px 24px !important;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* カード内の要素を正しく配置 */
.battle-card--premium {
  display: flex !important;
  flex-direction: column;
  background: #fff !important;
  border-radius: 24px !important;
  padding: 30px !important;
  text-decoration: none !important;
  border: 1px solid rgba(0,0,0,0.05) !important;
}

.battle-card__versus--premium {
  display: flex !important;
  flex-direction: row !important; /* 強制的に横並び */
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

/* 画像エリアの固定 */
.battle-card__side--premium {
  width: 42% !important;
  text-align: center;
}

.battle-card__img-wrap {
  width: 100% !important;
  aspect-ratio: 1/1 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  margin-bottom: 10px;
}

.battle-card__img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.battle-card__vs--premium {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: #BFA06A; /* var(--gold) */
  font-size: 1.2rem;
  flex-shrink: 0;
}
/* ===== スマホ対応修正 ===== */
@media (max-width: 768px) {

  /* ヒーローを縦2分割に */
  .hero {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    height: 100svh !important;
  }

  /* VS仕切り線を横向きに */
  .hero-divider {
    top: 50% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    width: 100% !important;
    transform: translateY(-50%) !important;
  }

  .hero-divider::before {
    background: linear-gradient(to right, transparent, rgba(255,255,255,.35) 25%, rgba(255,255,255,.35) 75%, transparent) !important;
  }

  /* テキストの余白調整 */
  .duel-content {
    padding: 0 20px 24px !important;
  }

  .duel-name {
    font-size: clamp(20px, 6vw, 32px) !important;
  }

  /* カードグリッドを1列に */
  .which2-archive__grid--24 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 16px !important;
  }

  /* カード内テキスト調整 */
  .battle-card__title--premium {
    font-size: 1rem !important;
    min-height: auto !important;
  }

  .battle-card--premium {
    padding: 20px 16px !important;
  }

  .archive-container {
    padding: 0 12px !important;
  }

  .which2-archive--daily {
    padding: 60px 0 80px !important;
  }
	
}