:root {
  --gold: #FFD700;
}

/* ============================
   components.css（UI部品）
============================ */

/* ボタン（青×金） */
.btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-accent-light));
  border: none;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-accent-light), var(--blue-accent));
  transform: translateY(-2px);
}

/* ミニ編集ボタン */
.btn-mini-edit {
  font-size: 12px;
  padding: 4px 10px;
  margin-left: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.btn-mini-edit:hover {
  background: rgba(255,255,255,0.25);
}

/* テーブル（ガラスUI） */
.table-glass {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.38);
}

.table-glass th,
.table-glass td {
  padding: 1rem 1.2rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.18);
}

.table-glass th {
  background: rgba(255,215,0,0.90);
  color: #0a1a2f;
  font-weight: 700;
}

.table-glass tr:nth-child(even) {
  background: rgba(255,255,255,0.06);
}

/* 国旗アイコン */
.flag-icon {
  width: 40px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  background: #333;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* セクションタイトル */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 20px 0 12px;  /* ← 上の余白を半分に */
  padding-bottom: 0;    /* ← 金ライン用の余白を削除 */
}

/* 戻るボタン */
.back-to-top {
  display: inline-block;
  margin: 30px auto 0;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: 0.2s ease;
}

/* ガラスボックス（entry.html と統一） */
.glass-box {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(10px);
}

/* メールラベル */
.email-label {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 6px;
  display: block;
}

/* メール入力欄 */
.email-input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 15px;
  outline: none;
}

/* ===========================
   Ten UI (共通)
=========================== */

/* テン画像（共通サイズ） */
.ten-img {
  width: 120px;
}

/* テン吹き出し（共通UI） */
.ten-balloon {
  padding: 20px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 500px;
}

/* スマホ時のテン吹き出し */
@media (max-width: 640px) {
  .ten-img {
    width: 100px;
  }
  .ten-balloon {
    max-width: 100%;
  }
}

.back-to-top:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* ===========================
   UI Components (共通)
=========================== */

/* 大きめカード */
.ui-card-lg {
  padding: 32px;
  border-radius: 20px;
}

/* 中サイズカード */
.ui-card-md {
  padding: 20px;
  border-radius: 16px;
}

/* タイトル */
.ui-title-lg {
  font-size: 28px;
  font-weight: 700;
}

.ui-title-md {
  font-size: 24px;
  font-weight: 700;
}

/* テキスト */
.ui-text-lead {
  font-size: 18px;
  opacity: 0.9;
}

.ui-text-body {
  font-size: 16px;
  line-height: 1.6;
}

/* ===========================
   Luxury Strong Button (共通UI)
=========================== */

.luxury-btn-strong {
  background: linear-gradient(135deg, #f7d774 0%, #eac24f 40%, #cfa32b 100%);
  color: #000;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  letter-spacing: 0.5px;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.25),
    inset 0 2px 4px rgba(255,255,255,0.4);
  transition: 0.2s ease;
  width: 100%;
  max-width: 320px;
}

.luxury-btn-strong:hover {
  background: linear-gradient(135deg, #ffe58f 0%, #f7d774 40%, #eac24f 100%);
  transform: translateY(-2px);
  box-shadow:
    0 6px 14px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.5);
}

.luxury-btn-strong:active {
  transform: translateY(0);
  box-shadow:
    0 3px 6px rgba(0,0,0,0.2),
    inset 0 1px 3px rgba(255,255,255,0.3);
}

/* ===========================
   Text Emphasis (Gold)
=========================== */

.text-gold {
  color: #FFD700;
  font-weight: 700;
}
/* ===========================
   input
=========================== */
.ui-input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
}
/* ===========================
   modal
=========================== */
.ui-modal {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

.ui-modal-card {
  padding: 24px;
  border-radius: 16px;
}

.ten-intro-box {
  width: 100%;
  max-width: 100%;
  padding: 24px 28px;
  margin: 0 auto 24px;

  /* ガラスUIの統一 */
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

/* .ui-card-lg の padding を上書き（HTML変更なしで安全） */
.ten-intro-box.ui-card-lg {
  padding: 24px 28px;
}

/* ローディングオーバーレイ */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  display: none;              /* 初期は非表示 */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

/* 表示用クラス */
#loading-overlay.is-active {
  display: flex;
}

/* スピナー本体 */
.loading-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 18px rgba(0,0,0,0.4);
}

/* テキスト */
.loading-text {
  margin-top: 14px;
  font-size: 14px;
  color: #fff;
  opacity: 0.9;
}

/* 回転アニメーション */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------------------
   luxury-btn（標準ゴールドボタン）
---------------------------------------- */
.luxury-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;

  color: #fff;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  border: 1px solid rgba(255, 255, 255, 0.35);

  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);

  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.luxury-btn:hover {
  background: linear-gradient(135deg, #e6c14a, #c9970e);
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.luxury-btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}
