/*
Theme Name: THE GOOD CARS Theme
Description: Custom theme for THE GOOD CARS
Author: THE GOOD CARS
Version: 1.0.0
*/

/* ==================================================
   1. 基本設定 (色とフォント)
   ================================================== */
body,
#page,
.wrapper {
  background-color: #121212 !important;
  color: #f8f9fa !important;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
}

/* アンカーリンクのスクロール位置調整（固定ヘッダー対応） */
html {
  scroll-padding-top: 70px; /* ヘッダーの高さ分だけ下にずらす */
  scroll-behavior: smooth; /* スムーズスクロールを有効化 */
}

section[id] {
  scroll-margin-top: 70px; /* 各セクションのスクロールマージンを設定 */
}

/* リンクと見出しの色強制 */
a,
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: #f8f9fa !important;
}

/* ==================================================
   2. ナビゲーションバーの修正 (Bootstrap 4対応)
   ================================================== */
/* ロゴの色 */
.navbar-brand {
  color: #fd7e14 !important;
}

/* メニューを右寄せにする */
.navbar-nav.ms-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* メニュー文字色 */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff !important;
}

/* ヘッダーの電話番号とお問い合わせボタン */
.navbar-nav .nav-link.btn {
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* オレンジボタンのスタイル */
.btn-orange {
  background-color: #fd7e14 !important;
  border-color: #fd7e14 !important;
  color: #121212 !important;
  font-weight: bold !important;
}

.btn-orange:hover {
  background-color: #e66a00 !important;
  border-color: #e66a00 !important;
  color: #121212 !important;
}

/* ヘッダーの電話番号を確実にオレンジに */
.navbar-nav .nav-link.text-orange {
  color: #fd7e14 !important;
}

.navbar-nav .nav-link.text-orange:hover {
  color: #e66a00 !important;
}

/* Contact Form 7のスタイル調整 */
.wpcf7-form {
  color: #f8f9fa !important;
}

.wpcf7-form label {
  color: #f8f9fa !important;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  background-color: #1a1a1a !important;
  border: 1px solid #495057 !important;
  color: #f8f9fa !important;
  padding: 0.75rem;
  border-radius: 4px;
  width: 100%;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  background-color: #2a2a2a !important;
  border-color: #fd7e14 !important;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
}

.wpcf7-form input[type="submit"] {
  background-color: #fd7e14 !important;
  border-color: #fd7e14 !important;
  color: #121212 !important;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: #e66a00 !important;
  border-color: #e66a00 !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok {
  background-color: #1a1a1a !important;
  border: 1px solid #495057 !important;
  color: #f8f9fa !important;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.wpcf7-mail-sent-ok {
  border-color: #28a745 !important;
  color: #28a745 !important;
}

.wpcf7-validation-errors {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

@media (max-width: 991px) {
  .navbar-nav .nav-link.btn {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }
}

/* ==================================================
   3. トップの画面分割セクション (修正版：枠線・隙間あり)
   ================================================== */
.split-screen {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;

  /* 高さを少し抑え、隙間を作る */
  min-height: 60vh;
  padding: 3rem 2rem;
  gap: 2rem; /* タイル間の隙間 */
  align-items: stretch;
}

.split {
  /* 幅は50%から隙間分を引く */
  width: calc(50% - 1rem) !important;

  /* 枠線をくっきりさせる */
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 4px; /* 角を少し丸める */

  padding: 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;

  /* 背景色を少し濃く */
  background-color: rgba(18, 18, 18, 0.85) !important;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* マウスを乗せた時の動き */
.split:hover {
  transform: translateY(-5px); /* 少し浮き上がる */
  border-color: #fd7e14 !important; /* オレンジ色の枠 */
  background-color: rgba(0, 0, 0, 0.95) !important;
}

/* 背景画像エリア */
#locations {
  background: 
    /* 下側を暗くするグラデーション */ linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.5) 60%,
      transparent 100%
    ),
    /* 左側を暗くするグラデーション */
      linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
      ),
    /* 全体の暗めのオーバーレイ */
      linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("./img/back_img2.JPG") center center !important;
  background-size: 100% !important; /* 画像を少し小さくしてぼやけを防ぐ */
  background-attachment: fixed !important;
  background-position: center right !important;
  background-repeat: no-repeat !important; /* 背景画像の繰り返しを防ぐ */
}

/* スマホ用の背景画像設定 */
@media (max-width: 768px) {
  #locations {
    position: relative;
    background: rgba(
      0,
      0,
      0,
      0.1
    ) !important; /* 少し暗くするだけのシンプルなオーバーレイ */
    background-image: none !important; /* デスクトップ用の背景画像を無効化 */
  }

  /* 疑似要素で背景画像を固定（セクション内のみ） */
  #locations::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("./img/cast/IMG_1146.jpg") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
  }

  /* スマホでの横スクロールを防ぐ */
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  #locations .split-screen {
    position: relative;
    z-index: 1;
  }
}
#locations .split-screen {
  position: relative;
  z-index: 1;
}
#locations .split {
  margin: 0 !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .split-screen {
    flex-direction: column !important;
    padding: 2rem 1rem !important;
    gap: 1rem !important;
  }
  .split {
    width: 100% !important;
    min-height: 40vh !important;
  }
}

/* ==================================================
   3-1. LINE友達追加アイコンのスタイル
   ================================================== */
.line-add-card {
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 100 !important;
}

.line-add-card:hover {
  box-shadow: 0 6px 20px rgba(253, 126, 20, 0.4);
  border-color: #fd7e14 !important;
  transform: translateY(-2px);
}

.line-add-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.line-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #06c755;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.3);
  position: relative;
}

.line-add-icon:hover {
  background-color: #05b04a;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.5);
  text-decoration: none !important;
}

.line-icon-text {
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.line-add-text {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* LINEアイコンのデザイン（チャットバブル風） */
.line-add-icon::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.line-add-icon::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .line-add-icon {
    width: 45px;
    height: 45px;
  }

  .line-icon-text {
    font-size: 0.7rem;
  }

  .line-add-text {
    font-size: 0.8rem;
  }
}

/* ==================================================
   4. グリッドの隙間修正 (Bootstrap 4対応)
   ================================================== */
.row.g-5 {
  margin-right: -2rem !important;
  margin-left: -2rem !important;
}
.row.g-5 > [class*="col-"] {
  padding-right: 2rem !important;
  padding-left: 2rem !important;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

/* ==================================================
   5. コンテンツデザインの修正
   ================================================== */
/* オレンジ色のテキスト */
.text-orange {
  color: #fd7e14 !important;
}

/* ボタンのデザイン */
.btn-outline-orange {
  color: #fd7e14 !important;
  border: 2px solid #fd7e14 !important;
  background-color: transparent !important;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.3s;
}
.btn-outline-orange:hover {
  color: #121212 !important;
  background-color: #fd7e14 !important;
}

/* 画像の角丸 */
.rounded {
  border-radius: 10px !important;
}

/* セクション内の画像高さを統一（split-screen以外のすべてのセクション） */
section:not(#locations) img.img-fluid,
#services img.img-fluid,
#recommend img.img-fluid,
#topics img.img-fluid,
#maintenance img.img-fluid,
#body-paint img.img-fluid,
#custom-service img.img-fluid,
#vehicle-sales img.img-fluid,
#concept img.img-fluid,
#camping-car-sales img.img-fluid,
#news .card-img-top {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
}

/* セクション内の画像の明るさ調整 */
#services img.img-fluid,
#recommend img.img-fluid {
  filter: brightness(0.7);
}

/* 車検・点検、一般整備、NeoTune・CASTセクションの画像を暗く */
#maintenance img.img-fluid {
  filter: brightness(0.7);
}

#custom-service .row:first-child img.img-fluid {
  filter: brightness(0.7);
}

/* カード画像にも暗さを適用 */
#news .card-img-top {
  filter: brightness(0.65);
  height: 250px;
  object-fit: cover;
  object-position: center;
}

/* カードのデザイン */
.card {
  background-color: #212529 !important;
  border: 1px solid #495057 !important;
}
.card-body {
  color: #fff;
}
.card-title {
  color: #fff !important;
  font-weight: bold;
}
.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ==================================================
   7. 文字サイズのバランス調整
   ================================================== */
/* 基本フォントサイズ */
body {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* split-screen内の見出し（display-3） */
.split-screen .display-3 {
  font-size: 2.5rem !important;
  line-height: 1.2 !important;
  margin-bottom: 1rem !important;
}

/* split-screen内のリード文 */
.split-screen .lead {
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1.5rem !important;
}

/* セクション見出し（display-4） */
.display-4 {
  font-size: 2rem !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
}

/* ヒーローセクションの見出し（display-2） */
.display-2 {
  font-size: 2.75rem !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
}

/* リード文（セクション内） */
.lead {
  font-size: 1.125rem !important;
  line-height: 1.7 !important;
  font-weight: 300 !important;
}

/* h3見出し（サブセクション） */
h3,
.h3 {
  font-size: 1.5rem !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}

/* h4見出し（小見出し） */
h4,
.h4 {
  font-size: 1.25rem !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  margin-bottom: 0.75rem !important;
}

/* h5見出し（カードタイトルなど） */
h5,
.h5,
.card-title {
  font-size: 1.125rem !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

/* 本文 */
p {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  margin-bottom: 1rem !important;
}

/* 小さなテキスト */
small,
.small {
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

/* アドレス */
address {
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .split-screen .display-3 {
    font-size: 1.75rem !important;
  }

  .display-4 {
    font-size: 1.5rem !important;
  }

  .display-2 {
    font-size: 2rem !important;
  }

  h3,
  .h3 {
    font-size: 1.25rem !important;
  }

  h4,
  .h4 {
    font-size: 1.125rem !important;
  }

  .lead {
    font-size: 1rem !important;
  }
}

/* ==================================================
   6. ドロップダウンメニューのスタイル
   ================================================== */
.dropdown-menu {
  background-color: #212529 !important;
  border: 1px solid #495057 !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
}

.dropdown-item {
  color: #f8f9fa !important;
  padding: 0.5rem 1rem !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #343a40 !important;
  color: #fd7e14 !important;
}

.dropdown-item.active {
  background-color: #fd7e14 !important;
  color: #121212 !important;
  font-weight: bold !important;
}

/* ==================================================
   8. セクションタイトルアニメーション
   ================================================== */
/* お問い合わせページ以外でのみアニメーションを適用 */
body:not(.template-contact) section h2.display-4,
body:not(.template-contact) section h2.display-3,
body:not(.template-contact) section h2.display-2,
body:not(.template-contact) section h1.display-2,
body:not(.template-contact) section h3,
body:not(.template-contact) section h4 {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* アニメーション対象の本文（段落、リード文） */
body:not(.template-contact) section p.lead,
body:not(.template-contact) section p:not(.lead),
body:not(.template-contact) section .lead {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* アニメーション対象の画像 */
body:not(.template-contact) section img.img-fluid {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* アニメーション対象のカード */
body:not(.template-contact) section .card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* アニメーション対象のテーブル */
body:not(.template-contact) section .table-responsive,
body:not(.template-contact) section .table {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* アニメーション対象のボタン */
body:not(.template-contact) section .btn {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* アニメーションがトリガーされたときの状態 */
body:not(.template-contact) section h2.display-4.animate-slide-up,
body:not(.template-contact) section h2.display-3.animate-slide-up,
body:not(.template-contact) section h2.display-2.animate-slide-up,
body:not(.template-contact) section h1.display-2.animate-slide-up,
body:not(.template-contact) section h3.animate-slide-up,
body:not(.template-contact) section h4.animate-slide-up,
body:not(.template-contact) section p.lead.animate-slide-up,
body:not(.template-contact) section p.animate-slide-up,
body:not(.template-contact) section .lead.animate-slide-up,
body:not(.template-contact) section img.img-fluid.animate-slide-up,
body:not(.template-contact) section .card.animate-slide-up,
body:not(.template-contact) section .table-responsive.animate-slide-up,
body:not(.template-contact) section .table.animate-slide-up,
body:not(.template-contact) section .btn.animate-slide-up {
  opacity: 1;
  transform: translateY(0);
}

/* アニメーションの遅延を設定（タイトルが最初、その後に本文） */
body:not(.template-contact) section h2.display-4.animate-slide-up,
body:not(.template-contact) section h2.display-3.animate-slide-up,
body:not(.template-contact) section h2.display-2.animate-slide-up,
body:not(.template-contact) section h1.display-2.animate-slide-up {
  transition-delay: 0s;
}

/* タイトルの直後のリード文 */
body:not(.template-contact) section h2.display-4.animate-slide-up + p.lead,
body:not(.template-contact) section h2.display-3.animate-slide-up + p.lead,
body:not(.template-contact) section h2.display-2.animate-slide-up + p.lead,
body:not(.template-contact) section h1.display-2.animate-slide-up + p.lead {
  transition-delay: 0.1s;
}

/* その他の段落（タイトルやリード文の後） */
body:not(.template-contact) section p.lead.animate-slide-up,
body:not(.template-contact) section p.animate-slide-up {
  transition-delay: 0.2s;
}

/* h3見出し */
body:not(.template-contact) section h3.animate-slide-up {
  transition-delay: 0.15s;
}

/* h3の後の段落 */
body:not(.template-contact) section h3.animate-slide-up + p {
  transition-delay: 0.25s;
}

/* 画像 */
body:not(.template-contact) section img.img-fluid.animate-slide-up {
  transition-delay: 0.3s;
}

/* カード */
body:not(.template-contact) section .card.animate-slide-up {
  transition-delay: 0.2s;
}

/* テーブル */
body:not(.template-contact) section .table-responsive.animate-slide-up,
body:not(.template-contact) section .table.animate-slide-up {
  transition-delay: 0.3s;
}

/* ボタン */
body:not(.template-contact) section .btn.animate-slide-up {
  transition-delay: 0.4s;
}

/* モーションを減らしたいユーザーへの配慮 */
@media (prefers-reduced-motion: reduce) {
  body:not(.template-contact) section h2.display-4,
  body:not(.template-contact) section h2.display-3,
  body:not(.template-contact) section h2.display-2,
  body:not(.template-contact) section h1.display-2,
  body:not(.template-contact) section h3,
  body:not(.template-contact) section h4,
  body:not(.template-contact) section p.lead,
  body:not(.template-contact) section p,
  body:not(.template-contact) section .lead,
  body:not(.template-contact) section img.img-fluid,
  body:not(.template-contact) section .card,
  body:not(.template-contact) section .table-responsive,
  body:not(.template-contact) section .table,
  body:not(.template-contact) section .btn {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==================================================
   9. Booking Package カレンダーのスタイル調整
   ================================================== */
/* Booking Packageカレンダーにサイトのスタイルを適用しない */
/* カレンダーコンテナを直接指定 */
.card-body [id*="booking"],
.card-body [class*="booking"],
.card-body [id*="Booking"],
.card-body [class*="Booking"],
.card-body [id*="booking-package"],
.card-body [class*="booking-package"],
.card-body [id*="bookingPackage"],
.card-body [class*="bookingPackage"] {
  /* サイトの色設定をリセット */
  color: #333 !important;
  background-color: #fff !important;
}

/* Booking Packageカレンダー内のすべての要素 */
.card-body [id*="booking"] *,
.card-body [class*="booking"] *,
.card-body [id*="Booking"] *,
.card-body [class*="Booking"] *,
.card-body [id*="booking-package"] *,
.card-body [class*="booking-package"] *,
.card-body [id*="bookingPackage"] *,
.card-body [class*="bookingPackage"] * {
  /* サイトの色設定をリセット */
  color: #333 !important;
}

/* カレンダーのテーブル要素 */
.card-body [id*="booking"] table,
.card-body [class*="booking"] table,
.card-body [id*="Booking"] table,
.card-body [class*="Booking"] table,
.card-body [id*="booking-package"] table,
.card-body [class*="booking-package"] table {
  color: #333 !important;
  background-color: #fff !important;
}

/* カレンダーのテーブルセル */
.card-body [id*="booking"] td,
.card-body [class*="booking"] td,
.card-body [id*="Booking"] td,
.card-body [class*="Booking"] td,
.card-body [id*="booking-package"] td,
.card-body [class*="booking-package"] td,
.card-body [id*="booking"] th,
.card-body [class*="booking"] th,
.card-body [id*="Booking"] th,
.card-body [class*="Booking"] th,
.card-body [id*="booking-package"] th,
.card-body [class*="booking-package"] th {
  color: #333 !important;
  background-color: #fff !important;
  border-color: #ddd !important;
}

/* カレンダーのリンク */
.card-body [id*="booking"] a,
.card-body [class*="booking"] a,
.card-body [id*="Booking"] a,
.card-body [class*="Booking"] a,
.card-body [id*="booking-package"] a,
.card-body [class*="booking-package"] a {
  color: #007bff !important;
}

.card-body [id*="booking"] a:hover,
.card-body [class*="booking"] a:hover,
.card-body [id*="Booking"] a:hover,
.card-body [class*="Booking"] a:hover,
.card-body [id*="booking-package"] a:hover,
.card-body [class*="booking-package"] a:hover {
  color: #0056b3 !important;
}

/* カレンダーのボタン */
.card-body [id*="booking"] button,
.card-body [class*="booking"] button,
.card-body [id*="Booking"] button,
.card-body [class*="Booking"] button,
.card-body [id*="booking-package"] button,
.card-body [class*="booking-package"] button,
.card-body [id*="booking"] input[type="button"],
.card-body [class*="booking"] input[type="button"],
.card-body [id*="Booking"] input[type="button"],
.card-body [class*="Booking"] input[type="button"],
.card-body [id*="booking-package"] input[type="button"],
.card-body [class*="booking-package"] input[type="button"],
.card-body [id*="booking"] input[type="submit"],
.card-body [class*="booking"] input[type="submit"],
.card-body [id*="Booking"] input[type="submit"],
.card-body [class*="Booking"] input[type="submit"],
.card-body [id*="booking-package"] input[type="submit"],
.card-body [class*="booking-package"] input[type="submit"] {
  color: #fff !important;
  background-color: #007bff !important;
  border-color: #007bff !important;
}

.card-body [id*="booking"] button:hover,
.card-body [class*="booking"] button:hover,
.card-body [id*="Booking"] button:hover,
.card-body [class*="Booking"] button:hover,
.card-body [id*="booking-package"] button:hover,
.card-body [class*="booking-package"] button:hover {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}

/* カレンダーの入力フィールド */
.card-body [id*="booking"] input[type="text"],
.card-body [class*="booking"] input[type="text"],
.card-body [id*="Booking"] input[type="text"],
.card-body [class*="Booking"] input[type="text"],
.card-body [id*="booking-package"] input[type="text"],
.card-body [class*="booking-package"] input[type="text"],
.card-body [id*="booking"] input[type="email"],
.card-body [class*="booking"] input[type="email"],
.card-body [id*="Booking"] input[type="email"],
.card-body [class*="Booking"] input[type="email"],
.card-body [id*="booking-package"] input[type="email"],
.card-body [class*="booking-package"] input[type="email"],
.card-body [id*="booking"] input[type="tel"],
.card-body [class*="booking"] input[type="tel"],
.card-body [id*="Booking"] input[type="tel"],
.card-body [class*="Booking"] input[type="tel"],
.card-body [id*="booking-package"] input[type="tel"],
.card-body [class*="booking-package"] input[type="tel"],
.card-body [id*="booking"] textarea,
.card-body [class*="booking"] textarea,
.card-body [id*="Booking"] textarea,
.card-body [class*="Booking"] textarea,
.card-body [id*="booking-package"] textarea,
.card-body [class*="booking-package"] textarea,
.card-body [id*="booking"] select,
.card-body [class*="booking"] select,
.card-body [id*="Booking"] select,
.card-body [class*="Booking"] select,
.card-body [id*="booking-package"] select,
.card-body [class*="booking-package"] select {
  color: #333 !important;
  background-color: #fff !important;
  border-color: #ced4da !important;
}

/* カレンダーのラベル */
.card-body [id*="booking"] label,
.card-body [class*="booking"] label,
.card-body [id*="Booking"] label,
.card-body [class*="Booking"] label,
.card-body [id*="booking-package"] label,
.card-body [class*="booking-package"] label {
  color: #333 !important;
}

/* カレンダーの見出し */
.card-body [id*="booking"] h1,
.card-body [class*="booking"] h1,
.card-body [id*="Booking"] h1,
.card-body [class*="Booking"] h1,
.card-body [id*="booking-package"] h1,
.card-body [class*="booking-package"] h1,
.card-body [id*="booking"] h2,
.card-body [class*="booking"] h2,
.card-body [id*="Booking"] h2,
.card-body [class*="Booking"] h2,
.card-body [id*="booking-package"] h2,
.card-body [class*="booking-package"] h2,
.card-body [id*="booking"] h3,
.card-body [class*="booking"] h3,
.card-body [id*="Booking"] h3,
.card-body [class*="Booking"] h3,
.card-body [id*="booking-package"] h3,
.card-body [class*="booking-package"] h3 {
  color: #333 !important;
}

/* カレンダーの段落 */
.card-body [id*="booking"] p,
.card-body [class*="booking"] p,
.card-body [id*="Booking"] p,
.card-body [class*="Booking"] p,
.card-body [id*="booking-package"] p,
.card-body [class*="booking-package"] p {
  color: #333 !important;
}

/* ==================================================
   10. ソーシャルメディアアイコンのスタイル
   ================================================== */
.social-link {
  text-decoration: none !important;
  transition: transform 0.3s ease;
  display: inline-block;
  flex: 1;
  max-width: 200px;
}

.social-link:hover {
  transform: translateY(-5px);
  text-decoration: none !important;
}

.social-icon-wrapper {
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  min-width: 150px;
  box-sizing: border-box;
}

.social-link:hover .social-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fd7e14;
  box-shadow: 0 5px 15px rgba(253, 126, 20, 0.3);
}

.social-icon-wrapper i {
  display: block;
  margin-bottom: 0.5rem;
}

.social-icon-wrapper p {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Instagramアイコンのグラデーション */
#instagram-link .social-icon-wrapper i {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem !important;
}

/* ソーシャルメディアアイコンを横並びにするコンテナ */
.d-flex.gap-4 {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.d-flex.gap-4 > .social-link {
  flex: 1 1 auto;
  min-width: 150px;
  max-width: 200px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .social-link {
    margin-bottom: 1rem;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .social-icon-wrapper {
    padding: 1rem;
    min-width: auto;
  }

  .social-icon-wrapper i {
    font-size: 2.5rem !important;
  }

  .d-flex.gap-4 > .social-link {
    min-width: auto;
    max-width: 100%;
  }
}

/* ==================================================
   11. お問い合わせページの店舗案内スタイル
   ================================================== */
.store-notice {
  border: 3px solid #ffc107 !important;
  background-color: rgba(255, 193, 7, 0.1) !important;
  padding: 1.5rem !important;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.store-notice-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.store-notice i {
  margin-bottom: 0.5rem;
}

.store-notice p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.store-notice .text-warning {
  color: #ffc107 !important;
}

.store-notice a:hover {
  color: #ffd54f !important;
  text-decoration: underline !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .store-notice {
    padding: 1rem !important;
  }

  .store-notice p {
    font-size: 1rem;
  }
}

/* BookingPackage処理中ダイアログのスタイル上書き */
#bookingBlockPanel,
#bookingBlockPanel .loader {
  background: transparent !important;
  box-shadow: none !important;
}
#bookingBlockPanel .loader #spinner {
  opacity: 0 !important;
  visibility: hidden !important;
}
