/**
 * 料金・プランページ - D-abyss ラグジュアリーデザイン
 * 白ベース + ゴールドアクセント（SWELLコンテナ対応版）
 */

/* ========================================
   CSS変数 - カラースキーム
   ======================================== */

:root {
  --luxury-gold: #D4AF37;
  --luxury-gold-light: rgba(212, 175, 55, 0.2);
  --luxury-gold-hover: rgba(212, 175, 55, 0.7);
  --luxury-dark: #1a1a1a;
  --luxury-text: #333333;
  --luxury-text-light: #666666;
  --luxury-text-muted: #999999;
  --luxury-bg: #fafaf8;
  --luxury-card-bg: #fff;
  --luxury-repeater-bg: #faf8f0;
}

/* ========================================
   ページ全体の設定
   ======================================== */

.page-pricing-template {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--luxury-text);
  background: var(--luxury-bg);
}

/* ========================================
   セクション余白の統一
   ======================================== */

.page-pricing-template section,
.page-pricing-template .pricing-section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .page-pricing-template section,
  .page-pricing-template .pricing-section {
    padding: 48px 0;
  }
}

/* ========================================
   ヒーローセクション（Coverブロック）
   ======================================== */

.page-pricing-template .wp-block-cover {
  min-height: 70vh;
}

.page-pricing-template .wp-block-cover__background {
  opacity: 0.5;
}

.page-pricing-template .wp-block-cover h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  color: #fff;
}

.page-pricing-template .wp-block-cover p {
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #fff;
}

/* ========================================
   見出しスタイル
   ======================================== */

.page-pricing-template h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--luxury-dark);
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  position: relative;
  text-align: center;
}

.page-pricing-template h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--luxury-gold);
}

.page-pricing-template h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--luxury-dark);
  margin: 0 0 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--luxury-gold-light);
  position: relative;
}

.page-pricing-template h3::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--luxury-gold);
}

.page-pricing-template h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--luxury-dark);
  margin: 0 0 0.8rem 0;
}

/* ========================================
   料金グリッド - モバイル対応
   ======================================== */

.page-pricing-template .price-grid,
.page-pricing-template .swell-block-pricing-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 2rem 0 3rem 0;
}

@media (max-width: 640px) {
  .page-pricing-template .price-grid,
  .page-pricing-template .swell-block-pricing-table {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========================================
   料金カード - 白ベース + ゴールドアクセント
   ======================================== */

.page-pricing-template .price-card,
.page-pricing-template .pricing-item {
  background: var(--luxury-card-bg);
  border-radius: 4px;
  padding: 28px 24px;
  border: 1px solid var(--luxury-gold-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 0;
  overflow: visible;
}

.page-pricing-template .price-card:hover,
.page-pricing-template .pricing-item:hover {
  transform: translateY(-4px);
  border-color: var(--luxury-gold-hover);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12);
}

/* ========================================
   おすすめカード（featured）- ダーク背景 + ゴールドアクセント
   ======================================== */

.page-pricing-template .price-card.featured,
.page-pricing-template .pricing-item.featured {
  background: var(--luxury-dark);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #fff;
  transform: none;
  position: relative;
  overflow: visible;
}

.page-pricing-template .price-card.featured:hover,
.page-pricing-template .pricing-item.featured:hover {
  transform: translateY(-6px);
  border-color: var(--luxury-gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.page-pricing-template .price-card.featured h4,
.page-pricing-template .pricing-item.featured h4 {
  color: var(--luxury-gold);
  font-size: 1.1em;
}

.page-pricing-template .price-card.featured .desc,
.page-pricing-template .pricing-item.featured .desc {
  color: rgba(255, 255, 255, 0.8);
}

.page-pricing-template .price-card.featured .price,
.page-pricing-template .pricing-item.featured .price {
  color: var(--luxury-gold);
}

/* おすすめバッジ - HTMLの.badgeをスタイリング */
.page-pricing-template .price-card .badge,
.page-pricing-template .pricing-item .badge {
  display: none;  /* 通常カードでは非表示 */
}

.page-pricing-template .price-card.featured .badge,
.page-pricing-template .pricing-item.featured .badge {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 16px;
  right: auto;
  transform: none;  /* インラインスタイルの上書き */
  background: var(--luxury-gold);
  color: var(--luxury-dark);
  padding: 6px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* ========================================
   カード内の価格表示 - 強調
   ======================================== */

.page-pricing-template .price-card .price,
.page-pricing-template .pricing-item .price {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 600;
  color: var(--luxury-gold);
  margin: 0.8rem 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.page-pricing-template .price-card .price .yen,
.page-pricing-template .pricing-item .price .yen {
  font-size: 0.6em;
  vertical-align: top;
  margin-right: 2px;
}

.page-pricing-template .price-card .price .tax,
.page-pricing-template .pricing-item .price .tax {
  font-size: 12px;
  font-weight: 400;
  color: var(--luxury-text-muted);
  margin-left: 4px;
}

.page-pricing-template .price-card.featured .price .tax,
.page-pricing-template .pricing-item.featured .price .tax {
  color: rgba(255, 255, 255, 0.5);
}

.page-pricing-template .price-card .desc,
.page-pricing-template .pricing-item .desc {
  font-size: 13px;
  color: var(--luxury-text-light);
  line-height: 1.7;
  margin-top: 0.8rem;
}

/* カード内のCTAボタン - 通常カード用（ダークアウトライン） */
.page-pricing-template .price-card .card-btn,
.page-pricing-template .pricing-item .card-btn,
.page-pricing-template .price-card a[href*="hotpepper"],
.page-pricing-template .pricing-item a[href*="hotpepper"],
.page-pricing-template .price-card .wp-block-button__link,
.page-pricing-template .pricing-item .wp-block-button__link {
  display: block;
  margin-top: 1.5rem;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--luxury-dark);
  color: var(--luxury-dark);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.page-pricing-template .price-card .card-btn:hover,
.page-pricing-template .pricing-item .card-btn:hover,
.page-pricing-template .price-card a[href*="hotpepper"]:hover,
.page-pricing-template .pricing-item a[href*="hotpepper"]:hover,
.page-pricing-template .price-card .wp-block-button__link:hover,
.page-pricing-template .pricing-item .wp-block-button__link:hover {
  background: var(--luxury-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* カード内のCTAボタン - featuredカード用（ゴールド） */
.page-pricing-template .price-card.featured .card-btn,
.page-pricing-template .pricing-item.featured .card-btn,
.page-pricing-template .price-card.featured a[href*="hotpepper"],
.page-pricing-template .pricing-item.featured a[href*="hotpepper"],
.page-pricing-template .price-card.featured .wp-block-button__link,
.page-pricing-template .pricing-item.featured .wp-block-button__link {
  background: var(--luxury-gold);
  color: var(--luxury-dark);
  border-color: var(--luxury-gold);
  font-weight: 700;
}

.page-pricing-template .price-card.featured .card-btn:hover,
.page-pricing-template .pricing-item.featured .card-btn:hover,
.page-pricing-template .price-card.featured a[href*="hotpepper"]:hover,
.page-pricing-template .pricing-item.featured a[href*="hotpepper"]:hover,
.page-pricing-template .price-card.featured .wp-block-button__link:hover,
.page-pricing-template .pricing-item.featured .wp-block-button__link:hover {
  background: #fff;
  color: var(--luxury-dark);
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ========================================
   リピーター特典カード（統一デザイン）
   ======================================== */

.page-pricing-template .repeater-card,
.page-pricing-template .price-card.repeater {
  background: var(--luxury-repeater-bg);
  border-radius: 2px;
  padding: 28px 24px;
  border: 1px solid var(--luxury-gold-light);
  transition: all 0.4s ease;
  position: relative;
}

.page-pricing-template .repeater-card:hover,
.page-pricing-template .price-card.repeater:hover {
  border-color: var(--luxury-gold-hover);
  box-shadow: 0 2px 20px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

/* ========================================
   フォトカルーセル（Swiper）改善
   ======================================== */

.page-pricing-template .gallery-swiper,
.page-pricing-template .photo-carousel {
  position: relative;
  margin: 2rem 0;
}

/* 画像のアスペクト比固定 */
.page-pricing-template .gallery-swiper .swiper-slide img,
.page-pricing-template .photo-carousel .swiper-slide img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* ドットインジケーター非表示 */
.page-pricing-template .gallery-swiper .swiper-pagination,
.page-pricing-template .photo-carousel .swiper-pagination {
  display: none;
}

/* カウンター（X / Y形式） */
.page-pricing-template .swiper-counter,
.page-pricing-template .gallery-counter {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--luxury-text-muted);
  font-weight: 300;
  text-align: center;
  margin-top: 1rem;
}

/* 矢印ボタン - シンプルゴールドスタイル */
.page-pricing-template .gallery-swiper .swiper-button-prev,
.page-pricing-template .gallery-swiper .swiper-button-next,
.page-pricing-template .photo-carousel .swiper-button-prev,
.page-pricing-template .photo-carousel .swiper-button-next {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
}

.page-pricing-template .gallery-swiper .swiper-button-prev::after,
.page-pricing-template .gallery-swiper .swiper-button-next::after,
.page-pricing-template .photo-carousel .swiper-button-prev::after,
.page-pricing-template .photo-carousel .swiper-button-next::after {
  font-size: 24px;
  font-weight: 300;
  color: var(--luxury-gold);
  font-family: system-ui, sans-serif;
}

.page-pricing-template .gallery-swiper .swiper-button-prev::after,
.page-pricing-template .photo-carousel .swiper-button-prev::after {
  content: '←';
}

.page-pricing-template .gallery-swiper .swiper-button-next::after,
.page-pricing-template .photo-carousel .swiper-button-next::after {
  content: '→';
}

.page-pricing-template .gallery-swiper .swiper-button-prev:hover::after,
.page-pricing-template .gallery-swiper .swiper-button-next:hover::after,
.page-pricing-template .photo-carousel .swiper-button-prev:hover::after,
.page-pricing-template .photo-carousel .swiper-button-next:hover::after {
  color: var(--luxury-dark);
}

/* ========================================
   「こんな方におすすめ」ボックス
   ======================================== */

.page-pricing-template .recommend-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--luxury-gold-light);
  border-radius: 4px;
  padding: 24px;
  margin: 2rem 0;
}

/* ========================================
   SWELLボックスブロック
   ======================================== */

.page-pricing-template .swell-block-box {
  border-radius: 4px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--luxury-gold-light);
  background: var(--luxury-card-bg);
}

.page-pricing-template .swell-block-box strong {
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--luxury-dark);
}

.page-pricing-template .swell-block-box ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.page-pricing-template .swell-block-box ul li {
  position: relative;
  padding-left: 1.5em;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--luxury-text);
}

.page-pricing-template .swell-block-box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  background: var(--luxury-gold);
  border-radius: 50%;
}

/* ========================================
   テーブルスタイル
   ======================================== */

.page-pricing-template .wp-block-table {
  margin: 2rem 0;
}

.page-pricing-template .wp-block-table table {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border-collapse: collapse;
  border: 1px solid var(--luxury-gold-light);
  background: var(--luxury-card-bg);
}

.page-pricing-template .wp-block-table thead tr {
  background: rgba(212, 175, 55, 0.15);
  color: var(--luxury-dark);
}

.page-pricing-template .wp-block-table thead th {
  padding: 1rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 14px;
  text-align: left;
  border: none;
  color: var(--luxury-dark);
}

.page-pricing-template .wp-block-table tbody td {
  padding: 1rem 1.5rem;
  font-size: 14px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--luxury-text);
}

.page-pricing-template .wp-block-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

/* ========================================
   カラムレイアウト
   ======================================== */

.page-pricing-template .wp-block-columns {
  gap: 20px;
  margin-top: 2rem;
}

.page-pricing-template .wp-block-column {
  background: var(--luxury-card-bg);
  padding: 2rem 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--luxury-gold-light);
  transition: all 0.3s ease;
}

.page-pricing-template .wp-block-column:hover {
  border-color: var(--luxury-gold-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.1);
}

/* ========================================
   リストスタイル
   ======================================== */

.page-pricing-template ul {
  list-style: none;
  padding-left: 0;
}

.page-pricing-template ul li {
  position: relative;
  padding-left: 1.5em;
  line-height: 1.8;
  margin-bottom: 0.8rem;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--luxury-text);
}

.page-pricing-template ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--luxury-gold);
  border-radius: 50%;
}

/* ========================================
   CTAボタン
   ======================================== */

.page-pricing-template .swell-block-cta {
  margin: 3rem 0;
  padding: 2.5rem;
  border-radius: 4px;
  text-align: center;
  background: var(--luxury-bg);
  border: 1px solid var(--luxury-gold-light);
}

.page-pricing-template .cta-button,
.page-pricing-template .pricing-button {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  background: var(--luxury-gold);
  color: var(--luxury-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--luxury-gold);
}

.page-pricing-template .cta-button:hover,
.page-pricing-template .pricing-button:hover {
  background: var(--luxury-dark);
  color: #fff;
  border-color: var(--luxury-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========================================
   reserve-btnスタイル - 通常カード用（ダークアウトライン）
   ======================================== */

.page-pricing-template .price-card:not(.featured) .reserve-btn,
.page-pricing-template .pricing-item:not(.featured) .reserve-btn {
  display: block;
  margin-top: 1.2rem;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--luxury-dark);
  color: var(--luxury-dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-pricing-template .price-card:not(.featured) .reserve-btn:hover,
.page-pricing-template .pricing-item:not(.featured) .reserve-btn:hover {
  background: var(--luxury-dark);
  color: #fff;
}

/* reserve-btnスタイル - featuredカード用（ゴールドべた塗り） */
.page-pricing-template .price-card.featured .reserve-btn,
.page-pricing-template .pricing-item.featured .reserve-btn {
  display: block;
  margin-top: 1.2rem;
  padding: 12px 24px;
  background: var(--luxury-gold);
  border: 1px solid var(--luxury-gold);
  color: var(--luxury-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-pricing-template .price-card.featured .reserve-btn:hover,
.page-pricing-template .pricing-item.featured .reserve-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--luxury-dark);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ========================================
   レスポンシブ - タブレット
   ======================================== */

@media (max-width: 768px) {
  .page-pricing-template .wp-block-columns {
    flex-direction: column;
  }

  .page-pricing-template .swell-block-box {
    padding: 1.5rem;
  }

  .page-pricing-template .wp-block-table thead th,
  .page-pricing-template .wp-block-table tbody td {
    padding: 0.8rem 1rem;
    font-size: 13px;
  }

  /* カルーセル矢印を非表示 */
  .page-pricing-template .gallery-swiper .swiper-button-prev,
  .page-pricing-template .gallery-swiper .swiper-button-next,
  .page-pricing-template .photo-carousel .swiper-button-prev,
  .page-pricing-template .photo-carousel .swiper-button-next {
    display: none;
  }
}

/* ========================================
   レスポンシブ - モバイル
   ======================================== */

@media (max-width: 640px) {
  .page-pricing-template .price-card,
  .page-pricing-template .pricing-item {
    padding: 20px 16px;
  }

  .page-pricing-template .price-card.featured .badge,
  .page-pricing-template .pricing-item.featured .badge {
    left: 16px;
    font-size: 10px;
    padding: 4px 12px;
  }

  .page-pricing-template h2 {
    font-size: 24px;
    margin-bottom: 2rem;
  }

  .page-pricing-template h3 {
    font-size: 20px;
    margin-bottom: 1.5rem;
  }

  .page-pricing-template h4 {
    font-size: 16px;
  }

  .page-pricing-template .wp-block-cover {
    min-height: 50vh;
  }

  .page-pricing-template .wp-block-cover h1 {
    font-size: 24px;
    letter-spacing: 0.1em;
  }
}

/* ========================================
   レスポンシブ - 超小型スマートフォン
   ======================================== */

@media (max-width: 375px) {
  .page-pricing-template .price-card,
  .page-pricing-template .pricing-item {
    padding: 16px 12px;
  }

  .page-pricing-template .price-card .price,
  .page-pricing-template .pricing-item .price {
    font-size: 22px;
  }

  .page-pricing-template .swell-block-box {
    padding: 1rem;
  }

  .page-pricing-template .wp-block-column {
    padding: 1.2rem 1rem;
  }
}

@media (max-width: 320px) {
  .page-pricing-template h2 {
    font-size: 20px;
  }

  .page-pricing-template h3 {
    font-size: 18px;
  }

  .page-pricing-template .price-card,
  .page-pricing-template .pricing-item {
    padding: 14px 10px;
  }
}

/* ========================================
   セクション背景の交互切り替え
   ======================================== */

.page-pricing-template .swell-block-fullWide:nth-child(even) {
  background: var(--luxury-bg);
}

/* ========================================
   サブスクカードの強化
   ======================================== */

.page-pricing-template .subscrip-card,
.page-pricing-template .subscription-card,
.page-pricing-template .wp-block-column.subscription {
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

/* 左サイドのゴールドラインアクセント */
.page-pricing-template .subscrip-card::before,
.page-pricing-template .subscription-card::before,
.page-pricing-template .wp-block-column.subscription::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--luxury-gold);
}

/* サブスクカードホバー */
.page-pricing-template .subscrip-card:hover,
.page-pricing-template .subscription-card:hover,
.page-pricing-template .wp-block-column.subscription:hover {
  border-color: var(--luxury-gold);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

/* ========================================
   リピーター特典カード（破線廃止・統一デザイン）
   ======================================== */

/* リピーター特典カード - 破線を実線に強制変更 */
.page-pricing-template [style*="dashed"],
.page-pricing-template .repeater-benefit,
.page-pricing-template .swell-block-box[style*="dashed"],
.page-pricing-template div[style*="border"][style*="dashed"] {
  border-style: solid !important;  /* インラインスタイル上書きに必要 */
  border-width: 1px !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
  background: var(--luxury-repeater-bg) !important;
  border-radius: 4px;
  padding: 24px;
}

/* ========================================
   グリッドの高さ揃え
   ======================================== */

.page-pricing-template .price-grid {
  align-items: stretch;
}

.page-pricing-template .price-card,
.page-pricing-template .pricing-item {
  display: flex;
  flex-direction: column;
}

.page-pricing-template .price-card .reserve-btn,
.page-pricing-template .pricing-item .reserve-btn,
.page-pricing-template .price-card .card-btn,
.page-pricing-template .pricing-item .card-btn {
  margin-top: auto;
}
