/* Rainy Concert Music Review - Main stylesheet */
/* Concert Of Rainy カラーパレット: #a66aaa / #390d6d / #83ccd2 / #e098c1 */
:root {
  --main: #a66aaa;
  --dark: #390d6d;
  --accent: #83ccd2;
  --sub: #e098c1;
  --bg-dark: #1a082c;
  --text: #ffffff;
  --text-muted: #bda8d1;
  --card-bg: rgba(30, 14, 48, 0.68);
  --card-inner: rgba(22, 10, 36, 0.75);
  --border-light: rgba(224, 152, 193, 0.3);
  --border-hover: rgba(131, 204, 210, 0.5);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  --shadow-lg: 0 30px 90px rgba(10, 2, 22, 0.6);
  --shadow-glow: 0 0 28px rgba(166, 106, 170, 0.3);
  --shadow-card: 0 8px 32px rgba(57, 13, 109, 0.35);
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  /* グラデーション定義 (画像サンプル準拠) */
  --grad-primary: linear-gradient(135deg, var(--sub), var(--main));
  --grad-dark:    linear-gradient(135deg, var(--main), var(--dark));
  --grad-accent:  linear-gradient(135deg, #9ae2e8, var(--accent));
  --grad-hero:    linear-gradient(135deg, rgba(57,13,109,0.8), rgba(166,106,170,0.4));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg-dark);
  background-image: url("image/login_pc.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.5;
  padding-bottom: 60px;
}

/* Background gradient overlay - 雨の音楽会の幻想的な夜空 */
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 0%, rgba(57, 13, 109, 0.72), transparent 68%),
    radial-gradient(circle at 10% 80%, rgba(131, 204, 210, 0.18), transparent 48%),
    radial-gradient(circle at 90% 40%, rgba(224, 152, 193, 0.22), transparent 58%),
    radial-gradient(circle at 60% 100%, rgba(166, 106, 170, 0.15), transparent 40%),
    linear-gradient(180deg, rgba(17, 7, 29, 0.78) 0%, rgba(26, 8, 44, 0.92) 100%);
}

/* Container Shell */
.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 24px;
}

/* Header - ガラスモーフィズム強化 */
header.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: rgba(28, 12, 46, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(57, 13, 109, 0.3), 0 1px 0 rgba(224, 152, 193, 0.15) inset;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text h1 {
  font-size: 1.6rem;
  font-weight: 400;
  font-family: 'Great Vibes', 'Georgia', cursive, serif;
  letter-spacing: 0.5px;
  /* サンプル画像準拠: サブカラー→メインカラーのグラデーションタイトル */
  background: linear-gradient(135deg, #ffffff 0%, var(--sub) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  padding: 6px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.header-center .umbrella-icon {
  font-size: 1.3rem;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(224, 152, 193, 0.35);
  border-radius: var(--radius-pill);
  /* 画像サンプル準拠: セカンダリボタンスタイル */
  background: linear-gradient(135deg, rgba(166, 106, 170, 0.25), rgba(57, 13, 109, 0.35));
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(57, 13, 109, 0.2);
}

.btn-logout:hover {
  background: linear-gradient(135deg, rgba(224, 152, 193, 0.35), rgba(166, 106, 170, 0.45));
  border-color: var(--sub);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224, 152, 193, 0.3);
}

/* Main Container Card - ガラスモーフィズム強化 */
.main-card {
  border: 1px solid var(--border-light);
  border-top: 1px solid rgba(224, 152, 193, 0.2);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 26px;
}

/* ===== 公開ホーム専用スタイル ===== */

/* キャッチコピー */
.public-catchcopy {
  text-align: center;
  margin-bottom: 20px;
  padding: 4px 0 8px;
}

.public-catchcopy p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.9;
  letter-spacing: 0.5px;
}

/* 公開ホーム用検索ボックス (横幅100%・余白調整) */
.search-box.search-box-public {
  margin-bottom: 20px;
  flex: none;
}

.search-box-public input {
  font-size: 0.92rem;
  padding: 12px 14px 12px 40px;
}

/* 気分セクション全体 */
.mood-section {
  margin-bottom: 24px;
}

/* Add Review Button */
.btn-add-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: linear-gradient(90deg, #be5296, #8c428a, #6c2f7b);
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(189, 79, 150, 0.35);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-add-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(189, 79, 150, 0.5);
  filter: brightness(1.08);
}

/* Dashboard Summary Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

/* ダッシュボードスタットカード (画像サンプル準拠: パープルガラスコート) */
.stat-card {
  padding: 16px 20px;
  background: rgba(57, 13, 109, 0.35);
  border: 1px solid rgba(224, 152, 193, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  border-color: rgba(131, 204, 210, 0.35);
  box-shadow: 0 4px 16px rgba(57, 13, 109, 0.3);
}

.stat-info h3 {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sub);
}

/* Control Panel - 画像サンプル準拠のコントロールバー */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(57, 13, 109, 0.3);
  border: 1px solid rgba(224, 152, 193, 0.2);
  border-radius: var(--radius-md);
}

.search-box {
  flex: 1 1 240px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid rgba(224, 152, 193, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(57, 13, 109, 0.25);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(131, 204, 210, 0.15);
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ===== 公開ホーム: 検索 + 気分フィルターセクション ===== */
.public-search-mood-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  padding: 18px 18px 20px;
  background: var(--card-inner);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

/* 気分で探すタイトル */
.mood-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

/* 気分アイコンカード グリッド */
.mood-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* 各アイコンカードボタン */
.mood-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.mood-card-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s ease;
}

.mood-card-btn:hover::before {
  background: rgba(255, 255, 255, 0.1);
}

.mood-card-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.mood-card-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* アクティブ状態: 枠線 + 輝きエフェクト */
.mood-card-btn.active {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
  filter: brightness(1.12);
}

/* 山カード色定義 (画像準拠: Rainy Concert パレット統一) */
.mood-genki {
  /* 元気: ローズピンク×ピンクパープル (サブカラー) */
  background: linear-gradient(145deg, #e098c1, #c278a0);
}

.mood-ochitsuku {
  /* 落ち着く: アクアブルー×ティール (アクセントカラー) */
  background: linear-gradient(145deg, #83ccd2, #5aa5ae);
}

.mood-emoi {
  /* エモい: メインパープル×ダークプール (メインカラー) */
  background: linear-gradient(145deg, #a66aaa, #7a4a90);
}

.mood-shuchu {
  /* 集中: ゴールド×オーバーライト (アクセント梨色) */
  background: linear-gradient(145deg, #f7d268, #d4a93a);
}

.mood-card-icon {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mood-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 旧フィルターボタン (管理画面で使用継続) */
.mood-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mood-btn {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mood-btn:hover,
.mood-btn.active {
  background: var(--main);
  color: #ffffff;
  border-color: var(--sub);
}

.sort-box select {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  background: rgba(20, 9, 32, 0.9);
  color: var(--text);
  font-size: 0.84rem;
  outline: none;
  cursor: pointer;
}

/* 一覧ヘッダーバー (画像準拠: ブランドカラーボーダー) */
.list-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(224, 152, 193, 0.2);
}

.list-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-header-title h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* List Title Header (管理画面で継続使用) */
.list-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.list-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}


/* Album Card List */
.album-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}

/* アルバムカード (画像サンプル準拠: アンバーカード暗色ガラスコート) */
.album-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--card-inner);
  border: 1px solid rgba(224, 152, 193, 0.15);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.album-card:hover {
  transform: translateY(-3px);
  border-color: rgba(131, 204, 210, 0.4);
  box-shadow: 0 12px 32px rgba(57, 13, 109, 0.35), 0 0 0 1px rgba(131, 204, 210, 0.2);
}

.album-cover {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  background: #28143f;
  box-shadow: 0 4px 16px rgba(57, 13, 109, 0.5);
  /* 軽微なピンク輪郭で電山感 */
  outline: 2px solid rgba(224, 152, 193, 0.2);
  outline-offset: 1px;
}

.album-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.album-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.album-artist {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  /* 画像サンプル準拠: ゴールドからイエローの艦「温かい光」 */
  color: #f7d268;
  font-size: 0.95rem;
}

.rating-score {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Badges & Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.badge-tag {
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

/* 気分タグカラー (画像サンプル準拠: Rainy Concert パレット統一) */
.tag-元気 {
  /* ローズピンク系 (サブカラー系統) */
  background: rgba(224, 152, 193, 0.2);
  color: #f0b8d8;
  border: 1px solid rgba(224, 152, 193, 0.45);
}

.tag-落ち着く {
  /* アクアブルー系 (アクセントカラー系統) */
  background: rgba(131, 204, 210, 0.18);
  color: #a2dde3;
  border: 1px solid rgba(131, 204, 210, 0.45);
}

.tag-エモい {
  /* ディープパープル系 (メインカラー系統) */
  background: rgba(166, 106, 170, 0.22);
  color: #d4a8e0;
  border: 1px solid rgba(166, 106, 170, 0.45);
}

.tag-集中 {
  /* ゴールド系 (アクセント暖色) */
  background: rgba(247, 210, 104, 0.18);
  color: #f7d268;
  border: 1px solid rgba(247, 210, 104, 0.4);
}

/* Status Badges */
.badge-status {
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-published {
  /* 公開中バッジ: アクアブルー (accent) */
  background: rgba(131, 204, 210, 0.22);
  color: #a2dde3;
  border: 1px solid rgba(131, 204, 210, 0.45);
}

.badge-draft {
  /* 非公開バッジ: サブカラー淡色 */
  background: rgba(166, 106, 170, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(166, 106, 170, 0.25);
}

/* Action Buttons */
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* アクションボタン (画像サンプル準拠: 丸型グラデーション) */
.btn-icon-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(224, 152, 193, 0.2);
  background: rgba(166, 106, 170, 0.12);
  color: var(--text);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-icon-text svg {
  width: 18px;
  height: 18px;
  margin-bottom: 3px;
  fill: currentColor;
}

.btn-edit:hover {
  /* 編集: メイン〜ダークグラデーション */
  background: linear-gradient(135deg, var(--main), var(--dark));
  border-color: var(--accent);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(131, 204, 210, 0.3);
}

.btn-delete:hover {
  /* 削除: ローズピンクグラデーション */
  background: linear-gradient(135deg, #e04d8b, #c9357a);
  border-color: #f77aba;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(224, 77, 139, 0.4);
}

/* 続きを読む リンクボタン (index.html用) */
.btn-read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(131, 204, 210, 0.35);
  background: rgba(131, 204, 210, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-read-more-link:hover {
  background: rgba(131, 204, 210, 0.28);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateX(2px);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(224, 152, 193, 0.2);
  background: rgba(57, 13, 109, 0.2);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: rgba(166, 106, 170, 0.3);
  border-color: rgba(224, 152, 193, 0.4);
  color: #ffffff;
}

.page-btn.active {
  background: linear-gradient(135deg, var(--main), var(--sub));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(166, 106, 170, 0.4);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Loading & Empty state */
.loading-state,
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    background-image: url("image/login_phone.png");
  }

  header.app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .header-center {
    border: none;
    padding: 0;
    justify-content: center;
  }

  .btn-logout {
    align-self: center;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .album-card {
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }

  .album-cover {
    width: 70px;
    height: 70px;
  }

  .card-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ==========================================
   Modal Overlay & Glassmorphic Form Styles
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 3, 18, 0.75);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: min(580px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: rgba(28, 12, 46, 0.92);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  padding: 28px;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(224, 152, 193, 0.2);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Modal Form Fields */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-label span.required {
  color: var(--sub);
  margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(224, 152, 193, 0.2);
  border-radius: var(--radius-md);
  background: rgba(57, 13, 109, 0.3);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(131, 204, 210, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.star-rating-input {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.star-rating-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.38);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.star-rating-button:hover,
.star-rating-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
  transform: translateY(-1px);
}

.star-rating-button.active {
  border-color: rgba(224, 152, 193, 0.75);
  background: rgba(166, 106, 170, 0.34);
  color: #ffd978;
  box-shadow: 0 8px 18px rgba(166, 106, 170, 0.22);
}

.form-error {
  color: #ff6b81;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 18px;
}

/* Mood Checkbox Group */
.mood-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.mood-checkbox-label input[type="checkbox"] {
  display: none;
}

.mood-checkbox-label:has(input:checked) {
  background: var(--main);
  color: #ffffff;
  border-color: var(--sub);
  box-shadow: 0 2px 8px rgba(166, 106, 170, 0.3);
}

/* Image Preview Area */
.image-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.image-preview-box {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-placeholder {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* Form Actions */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(224, 152, 193, 0.2);
}

.btn-secondary {
  padding: 10px 20px;
  border: 1px solid rgba(224, 152, 193, 0.3);
  border-radius: var(--radius-md);
  background: rgba(166, 106, 170, 0.15);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(166, 106, 170, 0.28);
  border-color: var(--sub);
}

.btn-submit {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--main), #8c428a);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(166, 106, 170, 0.4);
  transition: all 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.form-error-msg {
  color: #ff6b81;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Review Detail View Styles (review.html)
   ========================================== */
.detail-shell {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

/* Header Bar */
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 8px 4px;
}

.detail-header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-circle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(224, 152, 193, 0.3);
  background: rgba(166, 106, 170, 0.15);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-icon-circle:hover {
  background: rgba(166, 106, 170, 0.3);
  border-color: var(--sub);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(166, 106, 170, 0.3);
}

.detail-header .btn-icon-circle:first-child {
  border-color: rgba(131, 204, 210, 0.75);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(131, 204, 210, 0.28);
  font-size: 1.45rem;
  font-weight: 800;
}

.detail-header .btn-icon-circle:first-child:hover {
  background: rgba(131, 204, 210, 0.32);
  border-color: rgba(255, 255, 255, 0.85);
}

/* Detail Card Base */
.detail-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-section-card {
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(28px);
  box-shadow: 0 20px 60px rgba(10, 2, 22, 0.5), var(--shadow-glow);
}

.detail-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Section (Album Main) */
.album-detail-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.album-detail-cover {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  background: #25123d;
}

.album-detail-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.album-detail-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.album-detail-artist {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
}

.album-detail-submeta {
  font-size: 0.88rem;
  color: rgba(224, 152, 193, 0.85);
  font-weight: 500;
}

.album-detail-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  /* 画像準拠色統一: ゴールドからイエロー */
  color: #f7d268;
  font-size: 1.1rem;
  margin-top: 4px;
}

/* Review Text */
.review-body-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* Date Meta Cards */
.dates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.date-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--card-inner);
}

.date-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(166, 106, 170, 0.2);
  border: 1px solid rgba(224, 152, 193, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sub);
  font-size: 1.1rem;
}

.date-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
}

.date-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-action-filled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #a66aaa, #7b328c);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(166, 106, 170, 0.4);
  transition: all 0.25s ease;
}

.btn-action-filled:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 30px rgba(166, 106, 170, 0.6);
}

/* 404 Error State */
.error-card-404 {
  padding: 60px 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(28px);
}

.error-icon-404 {
  font-size: 4rem;
  margin-bottom: 16px;
}

.error-title-404 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.error-desc-404 {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .album-detail-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .album-detail-cover {
    width: 160px;
    height: 160px;
  }

  .album-detail-rating {
    justify-content: center;
  }

  .dates-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Public Home Page (index.html) Styles
   ========================================== */
/* 公開ホームヒーロー (画像サンプル準拠: 強化グラデーション枝) */
.public-hero {
  margin-bottom: 24px;
  padding: 28px 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(57, 13, 109, 0.55), rgba(30, 14, 48, 0.7));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(57, 13, 109, 0.3), 0 1px 0 rgba(224, 152, 193, 0.15) inset;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 莞光くる光のエフェクト */
.public-hero::after {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(224, 152, 193, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.public-hero h2 {
  font-size: 1.7rem;
  font-weight: 700;
  font-family: 'Georgia', serif;
  font-style: italic;
  margin-bottom: 8px;
  /* 画像サンプル準拠: 白→サブ→アクセントの強調されたグラデーション */
  background: linear-gradient(135deg, #ffffff 0%, var(--sub) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.public-hero p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.public-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  min-height: 320px;
}

/* 公開アルバムカード (画像準拠: ガラスコート強化) */
.public-album-card {
  display: flex;
  flex-direction: column;
  background: var(--card-inner);
  border: 1px solid rgba(224, 152, 193, 0.15);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
}

.public-album-card:hover {
  transform: translateY(-5px);
  border-color: rgba(131, 204, 210, 0.4);
  box-shadow: 0 20px 50px rgba(57, 13, 109, 0.45), 0 0 24px rgba(131, 204, 210, 0.18);
}

.public-card-header {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(57, 13, 109, 0.25);
  border-bottom: 1px solid rgba(224, 152, 193, 0.12);
}

.public-card-cover {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #241038;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.public-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.public-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-card-artist {
  font-size: 0.85rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-card-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}

.public-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.public-card-review {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(224, 152, 193, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.public-card-date {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(166, 106, 170, 0.2);
  border: 1px solid rgba(166, 106, 170, 0.4);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.public-album-card:hover .btn-read-more {
  background: linear-gradient(135deg, var(--main), var(--sub));
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(166, 106, 170, 0.4);
  transform: translateX(2px);
}

/* App Footer */
.app-footer {
  margin-top: 32px;
  padding: 20px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: rgba(22, 9, 36, 0.55);
  backdrop-filter: blur(16px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-brand {
  font-family: 'Great Vibes', 'Georgia', cursive, serif;
  font-size: 1.25rem;
  color: var(--sub);
  letter-spacing: 0.5px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 600px) {
  .public-album-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Diagnosis Page & Component Styles (今日の気分診断)
   ========================================================================== */

/* ヒーローエリアの診断ボタン */
.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.btn-diagnosis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--main), #6b2680);
  border: 1px solid rgba(224, 152, 193, 0.5);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(166, 106, 170, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-diagnosis:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(166, 106, 170, 0.6), 0 0 15px rgba(131, 204, 210, 0.4);
  border-color: var(--accent);
}

/* 診断メインエリア */
.diagnosis-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 0;
}

.diagnosis-card {
  background: var(--card-inner);
  border: 1px solid rgba(224, 152, 193, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 16px 40px rgba(18, 6, 30, 0.6);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* ヘッダー・進捗 */
.diagnosis-header {
  margin-bottom: 24px;
}

.question-counter {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* プログレスバー */
.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--sub));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

/* 質問文 */
.question-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 24px 0 20px;
  line-height: 1.5;
}

/* 選択肢リスト */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(30, 12, 48, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.option-btn:hover {
  background: rgba(166, 106, 170, 0.2);
  border-color: rgba(224, 152, 193, 0.4);
  transform: translateX(4px);
}

.option-btn.selected {
  background: linear-gradient(135deg, rgba(166, 106, 170, 0.35), rgba(57, 13, 109, 0.6));
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(131, 204, 210, 0.25);
  color: #ffffff;
}

.option-btn .radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-btn.selected .radio-indicator {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.option-btn.selected .radio-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #12061e;
  border-radius: 50%;
}

/* 診断ナビゲーション（次へ・戻る） */
.diagnosis-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-nav-prev,
.btn-nav-next {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-prev {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-nav-prev:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-nav-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-nav-next {
  background: linear-gradient(135deg, var(--sub), var(--main));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(224, 152, 193, 0.35);
}

.btn-nav-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(224, 152, 193, 0.5);
}

/* エラーメッセージ */
.diagnosis-error {
  background: rgba(235, 87, 87, 0.15);
  border: 1px solid rgba(235, 87, 87, 0.4);
  color: #ff8e8e;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 診断結果画面 */
.result-section {
  text-align: center;
}

.result-hero {
  padding: 24px 16px;
  background: linear-gradient(135deg, rgba(57, 13, 109, 0.6), rgba(166, 106, 170, 0.2));
  border-radius: 16px;
  border: 1px solid rgba(131, 204, 210, 0.3);
  margin-bottom: 32px;
}

.result-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.result-mood-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.result-mood-highlight {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(131, 204, 210, 0.5);
  display: inline-block;
  padding: 0 4px;
}

.result-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* おすすめレビューセクション */
.recommendations-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.recommendations-title-bar h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.empty-recommendations {
  padding: 40px 20px;
  text-align: center;
  background: rgba(30, 12, 48, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-retry {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: rgba(166, 106, 170, 0.25);
  border: 1px solid rgba(166, 106, 170, 0.5);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-retry:hover {
  background: rgba(166, 106, 170, 0.4);
  transform: translateY(-2px);
}

.btn-home-back {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-home-back:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .diagnosis-card {
    padding: 24px 16px;
  }

  .question-title {
    font-size: 1.15rem;
  }

  .option-btn {
    padding: 14px 16px;
    font-size: 0.92rem;
  }

  .result-mood-title {
    font-size: 1.6rem;
  }

  .recommendations-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ヒーローセクション 診断選択肢 (index.html) ===== */
.hero-diagnosis-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 680px;
  margin: 20px auto 0;
}

.hero-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  background: rgba(30, 14, 48, 0.7);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 24px rgba(57, 13, 109, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-option-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(45, 20, 72, 0.82);
  box-shadow: 0 12px 32px rgba(131, 204, 210, 0.35);
}

.hero-option-card.hero-option-ai {
  border-color: rgba(224, 152, 193, 0.45);
}

.hero-option-card.hero-option-ai:hover {
  border-color: var(--sub);
  box-shadow: 0 12px 32px rgba(224, 152, 193, 0.35);
}

.hero-option-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.hero-option-content {
  flex: 1;
  text-align: left;
}

.hero-option-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.hero-option-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-option-arrow {
  font-size: 1.3rem;
  color: var(--sub);
  transition: transform 0.25s ease;
}

.hero-option-card:hover .hero-option-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ===== AI気分診断画面専用スタイル (ai-mood.html) ===== */

.ai-diagnosis-container {
  width: 100%;
  margin: 0 auto;
}

.ai-diagnosis-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 32px 28px;
}

/* 案内人プロファイル */
.ai-concierge-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(224, 152, 193, 0.2);
}

.concierge-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(224, 152, 193, 0.3), rgba(57, 13, 109, 0.6));
  border: 2px solid var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 20px rgba(224, 152, 193, 0.3);
}

.concierge-info {
  display: flex;
  flex-direction: column;
}

.concierge-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.concierge-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* チャットコンテナ */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

/* メッセージ履歴 */
.chat-history {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding: 16px 12px;
  background: rgba(18, 7, 31, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  scroll-behavior: smooth;
}

.chat-history::-webkit-scrollbar {
  width: 6px;
}

.chat-history::-webkit-scrollbar-thumb {
  background: rgba(166, 106, 170, 0.4);
  border-radius: 4px;
}

/* メッセージバブル */
.chat-bubble {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: fadeInBubble 0.35s ease forwards;
}

@keyframes fadeInBubble {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble.ai-bubble {
  align-self: flex-start;
}

.chat-bubble.user-bubble {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(57, 13, 109, 0.7);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.user-bubble .chat-avatar {
  background: rgba(131, 204, 210, 0.2);
  border-color: var(--accent);
}

.chat-content {
  display: flex;
  flex-direction: column;
}

.chat-sender {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  padding: 0 4px;
}

.user-bubble .chat-sender {
  text-align: right;
}

.chat-text {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ffffff;
  word-break: break-word;
}

.ai-bubble .chat-text {
  background: linear-gradient(135deg, rgba(57, 13, 109, 0.8), rgba(30, 14, 48, 0.9));
  border: 1px solid rgba(224, 152, 193, 0.3);
  border-top-left-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.user-bubble .chat-text {
  background: linear-gradient(135deg, rgba(166, 106, 170, 0.5), rgba(131, 204, 210, 0.4));
  border: 1px solid rgba(131, 204, 210, 0.4);
  border-top-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ai-mood-tag-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 入力フォーム */
.chat-input-form {
  width: 100%;
}

.input-wrapper {
  display: flex;
  gap: 12px;
  background: rgba(22, 10, 36, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s ease;
}

.input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(131, 204, 210, 0.3);
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: var(--font);
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.btn-chat-send {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(166, 106, 170, 0.4);
}

.btn-chat-send:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(224, 152, 193, 0.5);
}

.btn-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ローディング & エラー */
.chat-loading-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(57, 13, 109, 0.4);
  border: 1px solid rgba(224, 152, 193, 0.3);
  color: var(--sub);
  font-size: 0.9rem;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(224, 152, 193, 0.3);
  border-top-color: var(--sub);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.chat-error-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ffb3b3;
  font-size: 0.9rem;
}

/* おすすめレビューセクション */
.recommend-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed rgba(224, 152, 193, 0.3);
  animation: fadeIn 0.4s ease forwards;
}

.recommend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.recommend-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recommend-title-bar h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.detected-moods-badges {
  display: flex;
  gap: 8px;
}

.chat-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.btn-chat-reset {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: rgba(166, 106, 170, 0.25);
  border: 1px solid rgba(224, 152, 193, 0.4);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-chat-reset:hover {
  background: rgba(166, 106, 170, 0.45);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .ai-diagnosis-card {
    padding: 20px 14px;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .chat-history {
    max-height: 380px;
    padding: 12px 8px;
  }

  .hero-diagnosis-options {
    grid-template-columns: 1fr;
  }
}