/* =========================================================
   夢造ラインナップ（Vol.1 / Vol.2 味わいの違い）専用スタイル
   手書きCSS（SCSSコンパイル不要）。全ルールを #taste-compare 配下に
   スコープし、他セクションへ影響させない。
   カラー: gold #DFC168 / blue #8FB0F2 / bg #090D11 / white #FFFFFF
   ========================================================= */

/* ---- 見出し ---- */
#taste-compare .lineup {
  margin: 1.6667vw 0 6.25vw;
}

#taste-compare .lineup__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.9167vw;
}

#taste-compare .lineup__head::after {
  content: "";
  width: 60px;
  height: 1px;
  margin-top: 1.6rem;
  background: #DFC168;
}

#taste-compare .lineup__eyebrow {
  margin-bottom: 0.9rem;
  color: #DFC168;
  font-family: "Noto Serif JP", serif;
  font-size: max(11px, 0.6771vw);
  letter-spacing: 0.34em;
}

#taste-compare .lineup__title {
  margin: 0;
  color: #FFFFFF;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: max(28px, 2.2917vw);
  line-height: 1.5;
  letter-spacing: 0.14em;
}

#taste-compare .lineup__subtitle {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Noto Serif JP", serif;
  font-size: max(10px, 0.625vw);
  letter-spacing: 0.34em;
}

/* ---- グリッド ---- */
#taste-compare .lineup__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4583vw;
}

@media (min-width: 1281px) {
  #taste-compare .lineup__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- 商品カード ---- */
#taste-compare .product-card {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 1.4583vw, 36px);
  padding: clamp(20px, 2.0833vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

#taste-compare .product-card__info {
  flex: 1.2 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#taste-compare .product-card--reverse .product-card__info {
  align-items: flex-end;
  text-align: right;
}

#taste-compare .product-card__name {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Noto Serif JP", serif;
  font-size: max(18px, 1.25vw);
  letter-spacing: 0.14em;
}

#taste-compare .product-card__name-en {
  display: block;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: max(9px, 0.5729vw);
  letter-spacing: 0.28em;
}

#taste-compare .product-card__vol {
  margin: 0.5rem 0 1.1rem;
  color: #8FB0F2;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: max(40px, 3.125vw);
  line-height: 1;
  letter-spacing: 0.02em;
}

#taste-compare .product-card--vol2 .product-card__vol {
  color: #DFC168;
}

#taste-compare .product-card__vol-num {
  font-size: 1.15em;
}

#taste-compare .product-card__lead {
  margin: 0 0 1.75rem;
  color: #FFFFFF;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: max(14px, 0.8854vw);
  line-height: 1.9;
  letter-spacing: 0.06em;
}

/* 購入するボタン（デザインは既存 .btn--cv を使用。3軸スライダーの下に配置） */
#taste-compare .product-card__buy {
  align-self: center;
  margin-top: clamp(20px, 2.0833vw, 40px);
  width: 100%;
}

/* 文章＋画像を文章幅でまとめるラッパー（文章の中心＝画像の中心） */
#taste-compare .product-card__stack {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
}

/* ボトル画像（文章の下・文章の中心に合わせて中央配置） */
#taste-compare .product-card__figure {
  align-self: center;
  display: flex;
  justify-content: center;
  margin: clamp(24px, 2.6vw, 48px) 0 0;
}

#taste-compare .product-card__img {
  width: auto;
  height: clamp(230px, 20vw, 380px);
  max-width: 100%;
  /* filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); */
}

/* スペック列 */
#taste-compare .product-card__spec {
  flex: 1.5 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 1.4vw, 34px);
}

/* ---- スペックスライダー ---- */
#taste-compare .spec {
  min-width: 0;
}

#taste-compare .spec__name {
  display: block;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 1);
  font-family: "Noto Serif JP", serif;
  font-size: max(14px, 0.8333vw);
  letter-spacing: 0.08em;
}

#taste-compare .spec__rail {
  position: relative;
  display: block;
  height: 22px;
}

#taste-compare .spec__rail::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.28));
  transform: translateY(-50%);
  content: "";
}

/* 5段階の等間隔目盛り線（ピンの取り得る位置） */
#taste-compare .spec__rail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 10px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-size: 1px 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 0 100%),
    linear-gradient(rgba(255, 255, 255, 0.3) 0 100%),
    linear-gradient(rgba(255, 255, 255, 0.3) 0 100%),
    linear-gradient(rgba(255, 255, 255, 0.3) 0 100%),
    linear-gradient(rgba(255, 255, 255, 0.3) 0 100%);
  background-position: 8% 50%, 29% 50%, 50% 50%, 71% 50%, 92% 50%;
  pointer-events: none;
}

#taste-compare .spec__pin {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8FB0F2;
  border: 2px solid #090D11;
  box-shadow: 0 0 0 1px rgba(143, 176, 242, 0.5), 0 0 14px rgba(143, 176, 242, 0.35);
  transform: translate(-50%, -50%);
}

#taste-compare .product-card--vol2 .spec__pin {
  background: #DFC168;
  box-shadow: 0 0 0 1px rgba(223, 193, 104, 0.5), 0 0 16px rgba(223, 193, 104, 0.4);
}

#taste-compare .spec__ends {
  position: relative;
  display: block;
  margin-top: 0.7rem;
  min-height: 1.4em;
  color: rgba(255, 255, 255, 0.4);
  font-size: max(11px, 0.625vw);
  letter-spacing: 0.02em;
}

#taste-compare .spec__ends span {
  position: absolute;
  top: 0;
  width: max-content;
  transform: translateX(-50%);
  text-align: center;
}

#taste-compare .spec__ends span:first-child {
  left: 8%;
}

#taste-compare .spec__ends span:last-child {
  left: 92%;
}

/* ---- レスポンシブ（カード内の縦積み） ---- */
@media (max-width: 768px) {

  /* スマホでは本文の改行を解除し、自然折り返し（2〜1行）に */
  #taste-compare .product-card__br {
    display: none;
  }

  #taste-compare .lineup {
    margin: 1.5rem 0 4rem;
  }

  #taste-compare .lineup__head {
    margin-bottom: 2.25rem;
  }

  #taste-compare .lineup__grid {
    gap: 2rem;
  }

  #taste-compare .product-card {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }

  #taste-compare .product-card__info {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 340px;
    order: 2;
  }

  #taste-compare .product-card--reverse .product-card__info {
    align-items: center;
    text-align: center;
  }

  /* スマホ：本文・画像は中央のまま、Vol番号だけ左上に */
  #taste-compare .product-card__stack {
    width: 100%;
  }

  #taste-compare .product-card__vol {
    text-align: left;
  }

  #taste-compare .product-card__img {
    height: clamp(260px, 62vw, 340px);
  }

  #taste-compare .product-card__spec {
    order: 3;
    width: 100%;
    max-width: 340px;
  }
}
