/* ============================================================
   PCA DESIGN C — HYBRID（ポップ×すっきりの中間・バランス型）
   CASETIFY × Ciara の折衷 / 現行Shopify案のベンチマーク
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #282828;
  --ink-soft: #6b6b6b;
  --line: #d9d9d9;
  --line-light: #ececec;
  --star: #ceb186;              /* ベージュゴールド */
  --sale-bg: #FBE8E5;           /* CASETIFY SALE 背景 */
  --sale-accent: #F15B41;       /* CASETIFY SALE 強調 */
  --radius-img: 16px;
  --radius-pill: 40px;
  --maxw: 1200px;
  --gap: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-weight: 900; letter-spacing: 0.01em; margin: 0; }

/* コンペ識別ラベル（控えめ） */
.compe-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-align: center;
  padding: 6px 8px;
  background: #fafafa;
  border-bottom: 1px solid var(--line-light);
}

/* 共通コンテナ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* セクション共通 */
.section { padding: 40px 0; }
.section-head {
  text-align: center;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: 22px;
  font-weight: 900;
}
.section-head .sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ============================================================
   1. アナウンスバー
   ============================================================ */
.announce {
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  padding: 9px 12px;
  letter-spacing: 0.02em;
}

/* ============================================================
   2. ヘッダー
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
}
.logo {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
}

/* ============================================================
   3. ヒーロー（カルーセル・画像トリミング禁止）
   ============================================================ */
.hero {
  position: relative;
  background: #f6f6f6;
}
.hero-track {
  position: relative;
  width: 100%;
  min-height: 340px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;   /* 絶対にトリミングしない */
}
.hero-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}
.hero-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(40,40,40,0.28);
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.is-active {
  background: var(--ink);
  transform: scale(1.25);
}

/* ============================================================
   4. 割引バナー（CASETIFY SALE配色）
   ============================================================ */
.discount {
  background: var(--sale-bg);
  padding: 16px;
}
.discount a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  flex-wrap: wrap;
}
.discount .tag {
  display: inline-block;
  background: var(--sale-accent);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}
.discount .arrow { color: var(--sale-accent); font-weight: 900; }

/* ============================================================
   5. 機種選択
   ============================================================ */
.models .section-head h2 { font-size: 20px; }
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.model-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 14px 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.model-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ============================================================
   6. テイストで探す
   ============================================================ */
.taste-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.taste-card { text-align: center; }
.taste-thumb {
  overflow: hidden;
  border-radius: var(--radius-img);
  background: #f2f2f2;
  aspect-ratio: 1 / 1;
}
.taste-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.taste-card:hover .taste-thumb img { transform: scale(1.05); }
.taste-label {
  margin-top: 10px;
  font-weight: 700;
  font-size: 14px;
}

/* ============================================================
   7. 人気RANKING
   ============================================================ */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
}
.rank-card { position: relative; }
.rank-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: #f2f2f2;
  aspect-ratio: 1 / 1;
}
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.rank-card:hover .rank-thumb img { transform: scale(1.05); }
.rank-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  border-radius: 50%;
  letter-spacing: 0;
}
.rank-badge.top { background: var(--sale-accent); }
.rank-title {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.rank-price { font-weight: 900; font-size: 15px; }
.stars { color: var(--star); font-size: 13px; letter-spacing: 1px; line-height: 1; }
.review-count { font-size: 12px; color: var(--ink-soft); }

/* ============================================================
   8. みんなのレビュー
   ============================================================ */
.reviews { background: #fafafa; }
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-img);
  padding: 20px;
}
.review-card .stars { font-size: 15px; }
.review-quote {
  margin: 10px 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.review-author { font-size: 12.5px; color: var(--ink-soft); }
.review-product {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.review-product:hover { border-color: var(--ink); }

/* ============================================================
   9. NEW ARRIVAL
   ============================================================ */
.arrival-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
}
.product-card { position: relative; }
.product-thumb {
  overflow: hidden;
  border-radius: var(--radius-img);
  background: #f2f2f2;
  aspect-ratio: 1 / 1;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-title {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { margin-top: 5px; font-weight: 900; font-size: 15px; }
.new-tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   10. 安心バッジ
   ============================================================ */
.badge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.badge-card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-img);
  padding: 18px;
  background: #fff;
}
.badge-title {
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 6px;
}
.badge-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.badge-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.badge-link:hover { border-color: var(--ink); }

/* ============================================================
   11. SNS
   ============================================================ */
.sns { text-align: center; }
.sns-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.sns-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sns-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ============================================================
   12. LINE CTA
   ============================================================ */
.line-cta {
  background: var(--sale-bg);
}
.line-cta .wrap {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.line-cta h2 { font-size: 20px; }
.line-cta p {
  margin: 10px 0 20px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s, opacity 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.92; }

/* ============================================================
   13. フッター
   ============================================================ */
.footer {
  border-top: 1px solid var(--line-light);
  padding: 32px 0 40px;
}
.footer-logo {
  text-align: center;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ============================================================
   PC（1280px）拡張グリッド
   ============================================================ */
@media (min-width: 768px) {
  .hero-track { min-height: 460px; }
  .hero-slide img { max-height: 460px; }
  .section-head h2 { font-size: 26px; }

  .model-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .taste-grid { grid-template-columns: repeat(4, 1fr); }
  .rank-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .arrival-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
  .badge-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .hero-track { min-height: 560px; }
  .hero-slide img { max-height: 560px; }
}
