/* ========================================
   カラーパレット
======================================== */
:root {
  --primary-color: #ff6b6b; /* コーラルレッド */
  --primary-light: #ffa0a0;
  --primary-dark: #ee5a5a;
  --secondary-color: #4ecdc4; /* ターコイズブルー */
  --secondary-light: #7ed7d1;
  --accent-color: #ffe66d; /* イエロー */
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e1e8ed;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========================================
   基本スタイル
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
  padding-top: 80px;
  padding-bottom: 40px;
}

/* ========================================
   ヘッダー
======================================== */
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.logo i {
  font-size: 28px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s;
}

.main-nav a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.btn-login {
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
}

.btn-login:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.btn-register {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.btn-register:hover {
  background-color: var(--primary-dark) !important;
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* 管理者ヘッダー */
.admin-header {
  background: linear-gradient(135deg, var(--text-dark) 0%, #34495e 100%);
}

.admin-header .logo,
.admin-header .main-nav a {
  color: white;
}

.admin-header .main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   ボタン
======================================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-warning {
  background-color: var(--warning-color);
  color: white;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* ========================================
   カード
======================================== */
.card {
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 18px;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-light);
}

/* ========================================
   イベントカード
======================================== */
.event-card {
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--bg-light);
}

.event-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.event-card-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.event-card-badge-location {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* カテゴリーバッジは単色（プライマリカラー統一） */
.badge-ai,
.badge-networking,
.badge-business {
  background-color: var(--primary-color);
}

.event-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 14px;
}

.event-card-meta i {
  width: 20px;
  color: var(--primary-color);
}

.event-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-capacity {
  font-size: 14px;
  color: var(--text-light);
}

.capacity-low {
  color: var(--danger-color);
  font-weight: 600;
}

/* ========================================
   グリッドレイアウト
======================================== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   フォーム
======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-label.required::after {
  content: " *";
  color: var(--danger-color);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-light);
}

.form-error {
  color: var(--danger-color);
  font-size: 14px;
  margin-top: 4px;
}

/* ========================================
   テーブル
======================================== */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
}

.table thead {
  background-color: var(--bg-light);
}

.table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
}

.table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background-color: var(--bg-light);
}

/* ========================================
   バッジ
======================================== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.badge-success {
  background-color: #d5f5e3;
  color: #27ae60;
}

.badge-warning {
  background-color: #fcf3cf;
  color: #d68910;
}

.badge-danger {
  background-color: #fadbd8;
  color: #c0392b;
}

.badge-info {
  background-color: #d6eaf8;
  color: #2874a6;
}

/* ========================================
   フッター
======================================== */
.footer {
  background-color: var(--text-dark);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 16px;
  color: var(--primary-color);
}

.footer-section h4 {
  margin-bottom: 12px;
  color: var(--accent-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 12px;
  font-size: 24px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdc3c7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========================================
   通知トースト
======================================== */
.toast {
  position: fixed;
  top: 90px;
  right: 20px;
  padding: 16px 24px;
  background-color: var(--text-dark);
  color: white;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  transform: translateX(400px);
  transition: transform 0.3s;
  z-index: 2000;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background-color: var(--success-color);
}

.toast.error {
  background-color: var(--danger-color);
}

.toast.warning {
  background-color: var(--warning-color);
}

/* ========================================
   モーダル
======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
}

.modal-close:hover {
  color: var(--text-dark);
}

/* ========================================
   ユーティリティクラス
======================================== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 32px;
}
.mt-5 {
  margin-top: 40px;
}

.mb-1 {
  margin-bottom: 8px;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}
.mb-4 {
  margin-bottom: 32px;
}
.mb-5 {
  margin-bottom: 40px;
}

.p-1 {
  padding: 8px;
}
.p-2 {
  padding: 16px;
}
.p-3 {
  padding: 24px;
}
.p-4 {
  padding: 32px;
}
.p-5 {
  padding: 40px;
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 8px;
}
.gap-2 {
  gap: 16px;
}
.gap-3 {
  gap: 24px;
}

.hide {
  display: none !important;
}

/* ========================================
   モバイルメニュー
======================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: right 0.3s;
  overflow-y: auto;
}

.mobile-menu.show {
  right: 0;
}

.mobile-menu-header {
  padding: 20px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
}

.mobile-menu-header i {
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu ul {
  list-style: none;
  padding: 20px;
}

.mobile-menu ul li {
  margin-bottom: 16px;
}

.mobile-menu ul li a {
  display: block;
  padding: 12px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.mobile-menu ul li a:hover {
  background-color: var(--bg-light);
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    padding: 60px 0 !important;
  }

  .hero h1 {
    font-size: 32px !important;
  }
}

@media (max-width: 480px) {
  .container,
  .container-wide {
    padding: 0 16px;
  }

  .logo {
    font-size: 20px;
  }

  .logo i {
    font-size: 24px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  main {
    padding-top: 70px;
  }
}

/* ========================================
   ページ固有スタイル
======================================== */

/* ヒーローセクション */
/* ヒーローセクション */
.hero {
  position: relative;
  /* background: linear-gradient(...) removed */
  color: white;
  padding: 100px 0;
  text-align: center;
  border-radius: 0 0 50% 50% / 0 0 30px 30px;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background-color: #000; /* Fallback */
}

.hero-video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Overlay to make text readable */
  z-index: -1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero .btn {
  margin: 0 10px;
}

/* セクション */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  margin-top: -30px;
  margin-bottom: 40px;
}

/* ページヘッダー */
.page-header {
  background-color: var(--bg-white);
  padding: 40px 0;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
}

.page-breadcrumb {
  display: flex;
  gap: 8px;
  color: var(--text-light);
  margin-top: 12px;
}

.page-breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

/* 検索・フィルター */
.search-filter {
  background-color: var(--bg-white);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

/* 統計カード（ダッシュボード用） */
.stat-card {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.stat-card.secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #3db8af 100%);
}

.stat-card.success {
  background: linear-gradient(135deg, var(--success-color) 0%, #27ae60 100%);
}

.stat-card.warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, #d68910 100%);
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}

/* 画像プレビュー */
.image-preview {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  margin-top: 12px;
}

/* プロフィール */
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
}

.profile-info {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

/* 空状態 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state i {
  font-size: 64px;
  color: var(--border-color);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

/* ローディング */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

.spinner {
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* カレンダー */
.calendar {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.calendar-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.calendar-nav {
  display: flex;
  gap: 12px;
}

.calendar-nav button {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}

.calendar-nav button:hover {
  background-color: var(--primary-color);
  color: white;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-weekday {
  text-align: center;
  font-weight: 600;
  color: var(--text-light);
  font-size: 14px;
  padding: 8px;
}

.calendar-weekday.sunday {
  color: var(--danger-color);
}

.calendar-weekday.saturday {
  color: #3498db;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px;
  border-radius: 8px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.calendar-day:hover {
  background-color: var(--bg-light);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.other-month {
  opacity: 0.3;
}

.calendar-day.today {
  background-color: #fff8f5;
  border-color: var(--primary-color);
  border-width: 2px;
}

.calendar-day.has-event {
  background-color: #fafafa;
}

.calendar-day-number {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.calendar-day.today .calendar-day-number {
  background-color: var(--primary-color);
  color: white;
}

.calendar-day.sunday .calendar-day-number {
  color: var(--danger-color);
}

.calendar-day.saturday .calendar-day-number {
  color: #3498db;
}

.calendar-events {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}

.calendar-event-item {
  width: 100%;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
  transition: all 0.2s;
}

.calendar-event-item:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.calendar-event-item.ai-seminar {
  background-color: #9b59b6;
}

.calendar-event-item.networking {
  background-color: #3498db;
}

.calendar-event-item.business {
  background-color: #e67e22;
}

.calendar-event-more {
  width: 100%;
  padding: 2px 4px;
  font-size: 10px;
  color: var(--text-light);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

.calendar-event-more:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .calendar {
    padding: 16px;
  }

  .calendar-title {
    font-size: 18px;
  }

  .calendar-day {
    min-height: 80px;
    padding: 4px 3px;
  }

  .calendar-day-number {
    font-size: 11px;
    width: 20px;
    height: 20px;
  }

  .calendar-event-item {
    font-size: 9px;
    padding: 1px 3px;
    /* 時間を非表示にしてタイトルのみ表示 */
  }

  .calendar-event-more {
    font-size: 9px;
    padding: 1px 3px;
  }
}

@media (max-width: 480px) {
  .calendar-day {
    min-height: 70px;
  }
    .calendar-event-item {
        font-size: 8px;
        padding: 1px 2px;
    }
}

/* カレンダーイベント（地域別・過去） */
.event-loc-kagoshima {
    background-color: #e74c3c; /* 鹿児島：赤 */
    color: white;
}

.event-loc-osaka {
    background-color: #2980b9; /* 大阪：青 */
    color: white;
}

.event-loc-vietnam {
    background-color: #7d5a3c; /* ベトナム：茶 */
    color: white;
}

.event-loc-other {
    background-color: #7f8c8d; /* その他：グレー */
    color: white;
}

.event-past {
    background-color: #95a5a6 !important; /* Gray */
    color: #ecf0f1 !important;
    opacity: 0.8;
}

/* イベントカード：地域別の上部ボーダーアクセント */
.event-card-loc-kagoshima {
    border-top: 4px solid #e74c3c;
}

.event-card-loc-osaka {
    border-top: 4px solid #2980b9;
}

.event-card-loc-vietnam {
    border-top: 4px solid #7d5a3c;
}

.event-card-loc-other {
    border-top: 4px solid var(--border-color);
}

/* ========================================
   場所フィルタータグ
======================================= */
.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  margin-top: -8px;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--border-color);
  background-color: white;
  color: var(--text-gray);
  transition: all 0.2s;
  user-select: none;
}

.location-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: rgba(var(--primary-rgb, 99, 102, 241), 0.05);
  transform: translateY(-1px);
}

.location-tag-active {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
}

.location-tag-active:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .location-tag {
    font-size: 12px;
    padding: 5px 11px;
  }
}

/* ========================================
   バナーグリッド（常に2列横並び）
======================================= */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

/* ========================================
   LINEバナー
======================================= */
.line-banner {
  background-color: #06C755;
  color: white;
  width: 100%;
  min-height: 56px;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.3);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

.line-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.45);
}

.line-banner-content {
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.line-banner-content h3 {
  font-size: 16px;
  margin: 0;
  padding: 0;
  font-weight: 700;
  line-height: 1.2;
}

.line-banner-content p {
  display: none;
}

.line-banner-icon {
  font-size: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.line-banner-btn {
  background-color: white;
  color: #06c755;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.3s;
}

.line-banner-btn:hover {
  background-color: #f0f0f0;
}

@media (max-width: 640px) {
  .line-banner {
    padding: 8px 8px;
    gap: 4px;
  }

  .line-banner-content h3 {
    font-size: 12px;
  }

  .line-banner-icon {
    font-size: 14px;
    margin-right: 4px;
  }
}

/* ========================================
   初めての方へバナー
======================================= */
.beginner-banner {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #3db8af 100%);
  color: white;
  width: 100%;
  min-height: 56px;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

.beginner-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.beginner-banner-content {
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.beginner-banner-content h3 {
  font-size: 16px;
  margin: 0;
  padding: 0;
  font-weight: 700;
  line-height: 1.2;
}

.beginner-banner-content p {
  display: none;
}

.beginner-banner-icon {
  font-size: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.beginner-banner-btn {
  background-color: white;
  color: var(--secondary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.3s;
}

.beginner-banner-btn:hover {
  background-color: #f0f0f0;
}

@media (max-width: 640px) {
  .beginner-banner {
    padding: 8px 8px;
    gap: 4px;
  }

  .beginner-banner-content h3 {
    font-size: 12px;
  }

  .beginner-banner-icon {
    font-size: 14px;
    margin-right: 4px;
  }
}

/* ========================================
   右下フローティングバナー
======================================= */
.floating-banner {
  position: fixed;
  bottom: 32px;
  right: 0;
  width: 72px;
  background: linear-gradient(180deg, #1a3a5c 0%, #0f2540 40%, #1a3a5c 100%);
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 16px;
  gap: 10px;
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-right: none;
  animation: floatingBannerIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.floating-banner:hover {
  transform: translateX(-5px);
  box-shadow: -8px 6px 28px rgba(0, 0, 0, 0.45);
}

@keyframes floatingBannerIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 閉じるボタン */
.floating-banner-close {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.floating-banner-close:hover {
  background: rgba(255, 255, 255, 0.35);
  color: white;
}

/* WELCOME! テキスト */
.floating-banner-welcome {
  font-family: 'Georgia', serif;
  font-size: 10px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* アイコン */
.floating-banner-icon {
  font-size: 22px;
  color: white;
  opacity: 0.9;
  line-height: 1;
}

/* メインテキスト（縦書き1列） */
.floating-banner-text {
  font-size: 18px;
  font-weight: 900;
  color: white;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floating-banner-text span {
  display: block;
}

/* CLICKエリア */
.floating-banner-click {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* 丸いCLICKボタン */
.floating-banner-btn {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a3a5c;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.floating-banner:hover .floating-banner-btn {
  transform: scale(1.1);
}

/* CLICK! テキスト */
.floating-banner-click-label {
  font-family: 'Georgia', serif;
  font-size: 10px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* スマホ対応 */
@media (max-width: 640px) {
  .floating-banner {
    width: 58px;
    bottom: 20px;
    padding: 10px 6px 12px;
    gap: 7px;
  }

  .floating-banner-welcome,
  .floating-banner-click-label {
    font-size: 8px;
  }

  .floating-banner-icon {
    font-size: 18px;
  }

  .floating-banner-text {
    font-size: 16px;
  }

  .floating-banner-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}