/* ==========================================================================
   DESIGN B — CLEAN MINIMAL (Ciara全振り)
   背景#ffffff / 文字#282828 / アクセントは星の#ceb186のみ
   角丸0・shadowなし・余白と整列だけでレイアウト
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #282828;
  --gold: #ceb186;      /* レビュー星のみに使うベージュゴールド */
  --hairline: #dfdfdf;  /* 極薄の区切り線 */
  --soft-bg: #fafafa;   /* 割引バナー等の淡い面 */
  --muted: #8a8a8a;     /* 補助テキスト */
  --gap-s: 24px;
  --gap-m: 32px;
  --maxw: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

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

/* 下線テキストリンク型ボタン（塗りなし） */
.link-btn {
  display: inline-block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  /* タップ領域44px以上 */
  min-height: 44px;
  line-height: 44px;
  padding: 0 4px;
}

/* コンペ識別ラベル（控えめ） */
.compe-label {
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  padding: 6px 16px;
  font-weight: 400;
}

/* ==========================================================================
   1. アナウンスバー
   ========================================================================== */
.announce {
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* ==========================================================================
   2. ヘッダー
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gap-s);
  box-shadow: 0 1px #dfdfdf; /* 極薄ライン */
}

.logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 4px;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* スマホでは補助ナビは隠す（ロゴ主役） */
@media (max-width: 640px) {
  .header-nav { display: none; }
}

/* ==========================================================================
   共通セクション
   ========================================================================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gap-s);
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: var(--gap-m);
}

/* section-title 直後に sub が無いセクションは下余白を確保 */
.section-title + .model-grid,
.section-title + .taste-grid,
.section-title + .ranking-grid,
.section-title + .review-grid,
.section-title + .product-grid,
.section-title + .sns-grid {
  margin-top: var(--gap-m);
}

/* ==========================================================================
   3. ヒーロー（トリミングしない contain スライダー）
   ========================================================================== */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--gap-m) var(--gap-s) 8px;
}

.hero-track {
  position: relative;
}

.hero-slide {
  display: none;
  text-align: center;
}

.hero-slide.active {
  display: block;
  animation: fade 0.6s ease;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-slide img {
  width: 100%;
  height: 62vw;          /* 縦横比バラバラでも切れない領域を確保 */
  max-height: 520px;
  object-fit: contain;    /* トリミング禁止 */
  background: transparent;
}

.hero-slide .hero-caption {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--ink);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0;
  cursor: pointer;
  /* タップ領域確保のため外側に透明マージン */
  position: relative;
}

.hero-dot::after {
  content: "";
  position: absolute;
  inset: -18px;
}

.hero-dot.active {
  background: var(--ink);
}

/* ==========================================================================
   4. 割引バナー（彩色せず・細字＋下線・淡い面）
   ========================================================================== */
.discount {
  max-width: var(--maxw);
  margin: 0 auto;
}

.discount a {
  display: block;
  background: var(--soft-bg);
  text-align: center;
  padding: 20px var(--gap-s);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.discount a .discount-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: 1px;
  margin-left: 10px;
  font-weight: 400;
}

/* ==========================================================================
   5. 機種選択
   ========================================================================== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  max-width: 560px;
  margin: 0 auto;
}

.model-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  padding: 0 8px;
}

/* ==========================================================================
   6. テイストで探す
   ========================================================================== */
.taste-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-s);
}

.taste-grid a {
  display: block;
  text-align: center;
}

.taste-grid .taste-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.taste-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.taste-grid .taste-label {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* ==========================================================================
   7. 人気RANKING
   ========================================================================== */
.ranking-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-m) var(--gap-s);
}

.ranking-card,
.product-card {
  display: block;
  text-align: left;
}

.rank-media,
.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.rank-media img,
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 商品全体を見せる */
}

.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink);
  line-height: 1;
}

.rank-title,
.product-title {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  /* 2行でクランプ */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-price,
.product-price {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

.stars {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1;
  color: var(--gold); /* 唯一のアクセント色 */
  letter-spacing: 2px;
}

.stars .review-count {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

/* ==========================================================================
   8. みんなのレビュー
   ========================================================================== */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-m);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.review-card {
  text-align: center;
  padding-bottom: var(--gap-m);
  border-bottom: 1px solid var(--hairline);
}

.review-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-card .stars {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 14px;
}

.review-quote {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 12px;
}

.review-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.review-meta .review-product {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--ink);
  margin-left: 6px;
}

/* ==========================================================================
   10. 安心バッジ
   ========================================================================== */
.badge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}

.badge-item {
  padding: 24px 8px;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}

.badge-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.badge-text {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

.badge-item .link-btn {
  margin-top: 4px;
}

/* ==========================================================================
   11. SNS
   ========================================================================== */
.sns-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

/* ==========================================================================
   12. LINE CTA
   ========================================================================== */
.line-cta {
  text-align: center;
  background: var(--soft-bg);
  max-width: var(--maxw);
}

.line-cta .line-head {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.line-cta .line-text {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ==========================================================================
   13. フッター
   ========================================================================== */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 40px var(--gap-s);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.copyright {
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ==========================================================================
   PC拡張（1280px）— グリッドを広げる
   ========================================================================== */
@media (min-width: 768px) {
  .section {
    padding: 72px 40px;
  }
  .model-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .taste-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-m);
  }
  .ranking-grid,
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: var(--maxw);
    gap: var(--gap-m);
  }
  .review-card {
    border-bottom: none;
    padding-bottom: 0;
  }
  .badge-grid {
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--hairline);
    border-top: 1px solid var(--hairline);
    max-width: var(--maxw);
  }
  .badge-item {
    border-right: 1px solid var(--hairline);
  }
  .hero-slide img {
    height: 46vw;
  }
}
