/* -------------------------------------------
 * 中古車 初売りLP スタイル（初売りカラーに調整済み）
 * ------------------------------------------- */

/* Google Fonts: Noto Sans JP を適用 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  background-color: #C40018; /* 新春の深い赤 */
  color: #fff; /* 可読性のため白に */
}

/* 濃いセクション（落ち着いた金×赤の相性を取る淡金） */
.gray-section {
  background-color: #FFF2CC; /* 淡い金（初売り×高級感） */
  color: #1A1A1A;
}

/* 薄いセクション（柔らかいアイボリー系で視認性UP） */
.bg-dark-section {
  background-color: #F3ECD2; /* クリーム系に変更 */
  color: #1A1A1A;
}

/* メインボタン（ゴールド強め×赤背景に映える） */
.btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFD700; /* ゴールド */
  color: #8A0000; /* 赤背景と相性良いダークレッド */
  font-weight: 900;
  padding: 20px 36px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 1px;
}

.btn-yellow:hover {
  background-color: #FFC700;
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(255, 215, 0, 0.7);
}

/* フッター（黒ベースはそのまま） */
footer {
  background-color: #C40018;
  color: #aaa;
  text-align: center;
  padding: 24px 0;
  font-size: 0.875rem;
}

/* ===== Popup (予約確認モーダル) ===== */
#popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

#popup.active {
  display: flex;
}

#popup .popup-content {
  background: #fff;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  padding: 32px;
  text-align: center;
  color: #1a1a1a;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-50px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#popup img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 4px solid #C40018; /* LPテーマカラーの深赤 */
}

#popup button {
  background-color: #C40018; /* LPと統一 */
  color: #fff;
  padding: 14px 22px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  transition: 0.25s;
}

#popup button:hover {
  background-color: #A80014;
}


/* ---------- バッジ ---------- */
/* 左上 */
.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #D90000;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 4px;
}

/* 単体用（今まで通り右上） */
.badge-tokusen {
  background: linear-gradient(90deg, #D4AF37, #F7E28C);
  color: #7A5500;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

/* wrap がない場合は右上に配置 */
.relative > .badge-tokusen {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* 複数用ラッパー */
.badge-tokusen-wrap {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}



/* ---------- 日付帯 ---------- */
.sale-date-bar {
  background: #C40000; /* 深めの朱色 */
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
}

/* ---------- 情報ボックス ---------- */
.info-box {
  background: #FFF4D0;
  border: 1px solid #E6C885;
  border-radius: 6px;
  padding: 6px 8px;
}

.label {
  color: #B57200;
  font-weight: bold;
  margin-right: 4px;
}

/* ---------- ボタン ---------- */
.btn-inquiry {
  flex: 1;
  background: #E60000;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
}

.btn-detail {
  flex: 1;
  background: #F9D76E;
  color: #7A4C00;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  border: 1px solid #E6C885;
}

/* ▼ このカードだけ黄色枠に */
.special-pickup {
  border-color: #FFE109 !important;
}

/* ▼ このカードだけ黄色バナー + 黒文字に */
.special-pickup .sale-date-bar {
  background: #FFE109 !important;
  color: #000 !important;
  font-weight: bold;
}

.arrow-down {
  display: inline-block;
  margin-top: 4px;
  font-size: 20px;
  animation: bounce 1.2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}


.bounce-text {
  display: inline-block;
  animation: bounceText 1.4s infinite ease-in-out;
}

@keyframes bounceText {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* 車両カードの支払総額の金額を強調するためのカスタムスタイル */
.sale-price-gold-border {
  color: #FFE109;
  font-weight: 900;
  text-shadow:
    /* 3px */
    -3px -3px 0 #DC2626,
    -3px -2px 0 #DC2626,
    -3px -1px 0 #DC2626,
    -3px  0px 0 #DC2626,
    -3px  1px 0 #DC2626,
    -3px  2px 0 #DC2626,
    -3px  3px 0 #DC2626,
     3px -3px 0 #DC2626,
     3px -2px 0 #DC2626,
     3px -1px 0 #DC2626,
     3px  0px 0 #DC2626,
     3px  1px 0 #DC2626,
     3px  2px 0 #DC2626,
     3px  3px 0 #DC2626,
    -2px -3px 0 #DC2626,
    -1px -3px 0 #DC2626,
     0px -3px 0 #DC2626,
     1px -3px 0 #DC2626,
     2px -3px 0 #DC2626,
    -2px  3px 0 #DC2626,
    -1px  3px 0 #DC2626,
     0px  3px 0 #DC2626,
     1px  3px 0 #DC2626,
     2px  3px 0 #DC2626,

    /* 2px */
    -2px -2px 0 #DC2626,
     2px -2px 0 #DC2626,
    -2px  2px 0 #DC2626,
     2px  2px 0 #DC2626,

    /* 1px */
    -1px -1px 0 #DC2626,
     1px -1px 0 #DC2626,
    -1px  1px 0 #DC2626,
     1px  1px 0 #DC2626,

    /* 下影 */
    0 4px 5px rgba(0, 0, 0, 0.4);
}

/* ===== お知らせポップアップ ===== */
.notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* 中身 */
.notice-inner {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* 画像 */
.notice-inner img {
  width: 100%;
  display: block;
  pointer-events: none; /* ← 超重要 */
}

/* テキスト */
.notice-text {
  font-size: 14px;
  color: #555;
  margin: 20px;
}

/* OKボタン */
.notice-btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  background: #e60012;
  color: #fff;
  border: none;
  border-radius: 0 0 16px 16px;
  cursor: pointer;
}

.notice-btn:hover {
  opacity: 0.9;
}

/* 非表示 */
.is-hidden {
  display: none !important;
}
