/*============================
  SYSTEMページ：全体ラッパー
============================*/
#price-system-section {
  padding: 15px 5px;
  margin: 15px auto;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  max-width: 1300px;
  width: 95%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/*============================
  タイトル（CAST一覧と統一）
============================*/
#price-system-title {
  background: linear-gradient(to right, #d0e7ff, #ffffff);
  padding: 42px 20px 30px;
  border-bottom: 2px solid #4296e4;
  text-align: center;
}

#price-system-title .castpage-heading {
  font-size: 72px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Cinzel', 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}

#price-system-title .castpage-intro {
  color: #222;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/*============================
  タブ切り替えボタン（常に3つ横並び）
============================*/
.tab-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 40px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tab-buttons button {
  flex: 1 1 0;
  max-width: calc(33.33% - 8px);
  min-width: 0;
  padding: 12px 10px;
  font-size: 1rem;
  font-weight: bold;
  background: #fff;
  border: 2px solid #4296e4;
  color: #4296e4;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(66, 150, 228, 0.1);
}

.tab-buttons button.active,
.tab-buttons button:hover {
  background: #4296e4;
  color: #fff;
  box-shadow: 0 4px 10px rgba(66, 150, 228, 0.2);
}

/*============================
  タブコンテンツ切り替え
============================*/
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/*============================
  テーブル（2列・3列どちらも対応）
============================*/
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table th,
table td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  word-wrap: break-word;
}

table th {
  background: #f0f4f8;
  font-weight: bold;
  color: #333;
}

/* 2列幅（基本・オプションなど） */
table th:first-child,
table td:first-child {
  width: 60%;
}
table th:last-child,
table td:last-child {
  width: 40%;
}

/* 3列幅（デートコースなど） */
.price-table th,
.price-table td {
  width: 33.33%;
}

/*============================
  補足説明・注意書き
============================*/
.price-notes {
  margin-top: 10px;
  padding: 16px;
  background: #fefefe;
  border-left: 4px solid #4296e4;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.price-notes p {
  margin-bottom: 10px;
}

/*============================
  情報ボックス（SM・フリー指名など）
============================*/
.info-box {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #ccc;
  border-radius: 12px;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/*============================
  レスポンシブ調整（フォントと表のみ）
============================*/
@media screen and (max-width: 768px) {
  #price-system-title .castpage-heading {
    font-size: 2.4rem;
  }

  #price-system-title .castpage-intro {
    font-size: 0.95rem;
  }

  table th,
  table td {
    font-size: 13px;
    padding: 10px;
  }

  table th:first-child,
  table td:first-child,
  table th:last-child,
  table td:last-child {
    width: 50% !important;
  }

  .price-table th,
  .price-table td {
    width: 33.33% !important;
  }
}

@media screen and (max-width: 768px) {
  .tab-buttons {
    flex-direction: row !important;   /* ← 常に横並びに */
    flex-wrap: nowrap !important;     /* ← 折り返し禁止 */
    justify-content: center;
    gap: 8px;
  }

  .tab-buttons button {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(33.33% - 8px);
    padding: 10px 6px;
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
  }
}