

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

:root {
  --black:      #0a0a0a;
  --gray-900:   #111111;
  --gray-800:   #1c1c1c;
  --gray-700:   #2a2a2a;
  --gray-600:   #3d3d3d;
  --gray-400:   #888888;
  --gray-200:   #cccccc;
  --gray-100:   #e8e8e8;
  --white:      #ffffff;
  --accent:     #ffffff;
  --font-en:    'Jost', 'Century Gothic', 'Futura', sans-serif;
  --font-ja:    'Noto Sans JP', sans-serif;
  --font-body:  'Jost', 'Noto Sans JP', sans-serif;
  --transition: 0.3s ease;
  --radius:     4px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* iOSバグ対策: overflow-x はhtmlに移す */
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.75;
  /* overflow-x: hidden を body から除去（iOS Safariで縦スクロールが止まるバグ対策） */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  font-style: normal;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gray-600); border-radius: 3px; }

/* ---- SELECTION ---- */
::selection { background: var(--white); color: var(--black); }

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

.section-dark { background: var(--gray-900); }

section:not(#hero) {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--white);
  margin: 14px auto 0;
}

.schedule-month-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 16px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  font-family: var(--font-jp);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #c4b5fd;
  line-height: 1;
}
.schedule-month-label::before {
  content: '\f133';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.72rem;
  color: #a78bfa;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

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

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

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999; /* ドロワー(9999)より低く、他要素より高く */
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-en);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 900;
  font-style: normal;
  display: flex;
  align-items: baseline;
}
/* ロゴ画像モード */
.nav-logo.has-logo-img { padding: 0; }
.nav-logo.has-logo-img .logo-text-wrap { display: none; }
.nav-logo-img {
  display: none;
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}
.nav-logo.has-logo-img .nav-logo-img { display: block; }
/* テキストロゴ */
.logo-text-wrap { display: flex; align-items: baseline; }
.logo-S   { color: var(--white); opacity: 0.5; font-size: 1.15rem; font-weight: 900; text-transform: uppercase; }
.logo-c   { color: var(--white); opacity: 0.5; font-size: 0.65rem; font-weight: 700; text-transform: lowercase; }
.logo-sp  { color: var(--white); opacity: 0.3; font-size: 0.6rem; margin: 0 2px; }
.logo-V   { color: var(--white); font-size: 1.25rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.logo-e   { color: var(--white); font-size: 0.7rem; font-weight: 800; text-transform: lowercase; }
.logo-RA  { color: var(--white); font-size: 1.25rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }

/* =====================
   NAVIGATION LINKS（デスクトップ）
   ===================== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links li { list-style: none; }

.nav-links a {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-200);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--white);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.nav-active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.nav-active::after { width: 100%; }

/* 管理者メニュー（auth.jsから挿入） */
.nav-admin-link a,
.nav-image-edit-link a {
  color: rgba(168,85,247,0.85);
}
.nav-admin-link a:hover,
.nav-image-edit-link a:hover { color: #c084fc; }

/* =====================
   ヘッダー右エリア（ユーザー名 + ログアウト）
   auth.jsから動的挿入、ロゴ列に常時表示
   ===================== */
.nav-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 16px;
  flex-shrink: 0;
}

.nav-header-user {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: rgba(240,230,255,0.65);
  white-space: nowrap;
}
.nav-header-user .fa-user-circle {
  font-size: 0.95rem;
  color: rgba(168,85,247,0.75);
  flex-shrink: 0;
}
.nav-header-name {
  font-weight: 700;
  color: #f0e6ff;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-header-role {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 700;
  background: rgba(168,85,247,0.2);
  border: 1px solid rgba(168,85,247,0.3);
  color: #d8b4fe;
  white-space: nowrap;
}

/* カートボタン */
.nav-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 13px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 999px;
  color: rgba(147,197,253,0.9);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.nav-header-cart:hover {
  background: rgba(59,130,246,0.25);
  border-color: rgba(59,130,246,0.65);
  color: #93c5fd;
  transform: scale(1.04);
}
.nav-header-cart .fa-shopping-cart { font-size: 0.75rem; }
/* カートバッジ */
.nav-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 900;
  font-style: normal;
  border-radius: 999px;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  padding: 0 3px;
  text-align: center;
  pointer-events: none;
}

/* メッセージボタン */
.nav-header-msg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 13px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.35);
  border-radius: 999px;
  color: rgba(216,180,254,0.9);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.nav-header-msg:hover {
  background: rgba(168,85,247,0.25);
  border-color: rgba(168,85,247,0.65);
  color: #d8b4fe;
  transform: scale(1.04);
}
.nav-header-msg .fa-envelope { font-size: 0.75rem; }
.nav-msg-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #a855f7;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 900;
  border-radius: 999px;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  padding: 0 3px;
  text-align: center;
  pointer-events: none;
}

/* ベラポイボタン */
.nav-header-poi {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 13px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 999px;
  color: rgba(253,230,138,0.9);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.nav-header-poi:hover {
  background: rgba(245,158,11,0.25);
  border-color: rgba(245,158,11,0.65);
  color: #fde68a;
  transform: scale(1.04);
}
.nav-header-poi .fa-gift { font-size: 0.75rem; }
#nav-poi-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 900;
  border-radius: 999px;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  padding: 0 3px;
  text-align: center;
  pointer-events: none;
  display: none; /* JS で表示切替 */
  align-items: center;
  justify-content: center;
}

/* ログアウトボタン */
.nav-header-logout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.35);
  border-radius: 999px;
  color: rgba(252,165,165,0.9);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.nav-header-logout:hover {
  background: rgba(248,113,113,0.25);
  border-color: rgba(248,113,113,0.65);
  color: #fca5a5;
  transform: scale(1.04);
}
.nav-header-logout .fa-sign-out-alt { font-size: 0.75rem; }
.nav-header-logout span { display: inline; }

/* =====================
   ハンバーガートグルボタン
   ===================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 閉じるボタン行はデスクトップでは非表示 */
.nav-close-item { display: none; }

#hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0%   { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 16px;
  width: 100%;
}

.hero-sub {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 0.88;
  letter-spacing: 0.06em;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 0 100px rgba(255,255,255,0.07);
  margin: 0;
  visibility: hidden;  /* スペースは確保、中身だけ非表示 */
}


/* グラフィティロゴ画像（透過PNG） */
.hero-logo-img {
  display: block;
  width: min(75vw, 420px);
  height: auto;
  margin: 0 auto;
  position: relative;
  top: 60px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

/* ロゴなし時のスペース確保 */
.hero-title:empty,
.hero-title {
  min-height: 200px;
}

.hero-sc {
  color: var(--gray-400);
  font-size: 0.55em;
  vertical-align: super;
}

.hero-tagline {
  font-family: var(--font-en);
  font-size: clamp(0.7rem, 1.5vw, 0.88rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray-300, #bbb);
  margin: 18px 0 0;
}

/* ---- HERO CLOCK ---- */
.hero-clock-wrap {
  width: 100%;
  overflow: hidden;
  margin: 40px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0;
}
.hero-clock-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: clockMarquee 22s linear infinite;
  -webkit-animation: clockMarquee 22s linear infinite;
  will-change: transform;
}
.hero-clock-track .ck-item {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(0.85rem, 2.1vw, 1.08rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #60a5fa;
  padding: 0 12px;
  display: inline-block;
  -webkit-transform: skewX(-12deg);
  transform: skewX(-12deg);
}
.hero-clock-track .ck-item.ck-year  { color: #60a5fa; }
.hero-clock-track .ck-item.ck-date  { color: #60a5fa; }
.hero-clock-track .ck-item.ck-wday  { color: #60a5fa; }
.hero-clock-track .ck-item.ck-time  { color: #60a5fa; }
.hero-clock-track .ck-item.ck-venue { color: #60a5fa; }
.hero-clock-track .ck-item.ck-next       { color: #60a5fa; }
.hero-clock-track .ck-sep {
  color: rgba(255,255,255,0.18);
  font-size: 0.72rem;
  padding: 0 2px;
  letter-spacing: 0;
  font-family: 'Titillium Web', sans-serif;
}
.ck-blink {
  animation: clockBlink 1s step-end infinite;
  opacity: 0.6;
}
@keyframes clockBlink {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 0.1; }
}
@keyframes clockMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@-webkit-keyframes clockMarquee {
  0%   { -webkit-transform: translateX(0); }
  100% { -webkit-transform: translateX(-50%); }
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ========== ヒーロー自由配置画像レイヤー ========== */
#hero-image-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* 配置された画像アイテム */
.hero-placed-img {
  position: absolute;
  cursor: grab;
  pointer-events: all;
  user-select: none;
  touch-action: none;
}
.hero-placed-img:active { cursor: grabbing; }
.hero-placed-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* リサイズハンドル */
.hero-placed-img .resize-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #0d0d0d;
  border-radius: 50%;
  bottom: -8px;
  right: -8px;
  cursor: se-resize;
  z-index: 10;
}

/* 管理パネル */
.hero-img-panel {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(90vw, 340px);
}
.hip-inner {
  background: rgba(13,13,13,0.92);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hip-title {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}
.hip-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 10px;
  width: 100%;
  box-sizing: border-box;
}
.hip-input::placeholder { color: rgba(255,255,255,0.3); }
.hip-btns { display: flex; gap: 8px; }
.hip-btn {
  flex: 1;
  padding: 7px 0;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.hip-btn-set   { background: #fff; color: #000; }
.hip-btn-reset { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }
.hip-hint { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin: 0; }
.hip-upload-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  justify-content: center;
  transition: background 0.2s;
}
.hip-upload-label:hover { background: rgba(255,255,255,0.15); }
.hip-preview {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ---- PWA インストールボタン ---- */
.pwa-install-wrap {
  margin-top: 12px;
  text-align: center;
}
.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-en, 'Jost', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pwa-install-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}
.pwa-install-btn i { font-size: 0.85rem; opacity: 0.8; }

/* ---- PWA iPhone 手順モーダル ---- */
.pwa-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.pwa-modal-overlay.open { display: flex; }
.pwa-modal {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 28px 24px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  color: rgba(255,255,255,0.85);
}
.pwa-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  cursor: pointer;
}
.pwa-modal-icon { font-size: 2rem; text-align: center; margin-bottom: 10px; color: rgba(255,255,255,0.6); }
.pwa-modal-title { font-family: var(--font-en, 'Jost', sans-serif); font-size: 1.1rem; font-weight: 900; text-align: center; color: #fff; margin-bottom: 16px; }
.pwa-modal-steps { padding-left: 20px; line-height: 2; font-size: 0.9rem; }
.pwa-modal-steps li { margin-bottom: 4px; }
.pwa-modal-steps strong { color: #fff; }


/* ---- hero-member-btn-wrap（サブメニューボタン共通） ---- */
.hero-member-btn-wrap {
  position: relative;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.hero-sale-wrap {
  margin-top: 12px;
}

/* ---- サブメニューボタン ---- */
.ps-hero-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 6px;
}
.ps-hero-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}
.ps-hero-btn span:not(.ps-btn-pulse):not(.hero-new-badge) {
  flex: 1;
}
.ps-hero-btn > i:last-child {
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
}

/* パルスアニメーション */
.ps-btn-pulse {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 10px 0 0 10px;
}

/* NEWバッジ */
.hero-new-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .ps-hero-btn {
    font-size: 0.68rem;
    padding: 10px 14px;
    gap: 8px;
  }
}

/* ========== ボーナス受け取りバー ========== */
#bonus-bar-wrap {
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}
.bonus-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(135deg,rgba(139,92,246,0.22)0%,rgba(79,70,229,0.15)100%);
  border: 1px solid rgba(139,92,246,0.6);
  border-radius: 10px;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 6px;
  text-align: left;
}
.bonus-bar-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg,#7c3aed,#4f46e5);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s;
}
.bonus-bar-btn:active   { opacity: 0.75; }
.bonus-bar-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 残金集計ジャンプボタン */
.btn-arrears-jump {
  border-color: rgba(245,158,11,0.5) !important;
  color: #fbbf24 !important;
}
.btn-arrears-jump:hover {
  background: rgba(245,158,11,0.12) !important;
  border-color: #f59e0b !important;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gray-400);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gray-400), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.3; }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-lead {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--gray-200);
  margin-bottom: 40px;
  font-weight: 300;
}

.about-values { display: flex; flex-direction: column; gap: 24px; }

.value-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.value-item i {
  font-size: 1.4rem;
  color: var(--white);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item h3 {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--gray-400);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat-card {
  background: var(--gray-800);
  padding: 40px 24px;
  text-align: center;
  transition: background var(--transition);
}

.stat-card:hover { background: var(--gray-700); }

/* ---- About内 使用料月割ラップ ---- */
.about-fee-wrap {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--gray-700);
}

.about-fee-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-fee-title {
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}

.about-fee-lead {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 2;
  max-width: 600px;
  margin: 0 auto;
}

.stat-number {
  font-family: var(--font-en);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
  font-style: normal;
  color: var(--white);
  letter-spacing: -0.01em;
}

.stat-unit {
  font-family: var(--font-ja);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-200);
  margin-left: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 8px;
  letter-spacing: 0.1em;
}

.news-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--gray-600);
  border-radius: 100px;
  font-size: 0.85rem;
  font-family: var(--font-ja);
  color: var(--gray-400);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius);
  padding: 28px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.news-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--gray-700);
  color: var(--gray-200);
  letter-spacing: 0.05em;
}

.news-badge.badge-イベント   { background: #1a1a2e; color: #8888ff; }
.news-badge.badge-試合結果   { background: #1a2a1a; color: #66cc66; }
.news-badge.badge-練習       { background: #2a1a1a; color: #cc6666; }

.news-date {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.news-card-title {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 10px;
}

.news-card-excerpt {
  font-size: 0.85rem;
  color: var(--gray-400);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px;
  color: var(--gray-400);
  font-size: 1rem;
}

/* ---- NEWS MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(6px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--gray-800);
  border: 1px solid var(--gray-600);
  border-radius: 8px;
  padding: 48px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 1.2rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.modal-close:hover { color: var(--white); }

.modal-category {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 8px;
}

.modal-date {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-700);
}

.modal-content {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--gray-200);
}

.schedule-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.tab-btn {
  min-width: 52px;
  padding: 10px 18px;
  border: 1px solid var(--gray-600);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-family: var(--font-ja);
  color: var(--gray-400);
  transition: all var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-weight: 700;
}

/* 「特」イベントタブ — ゴールド (#eab308 基調) */
.tab-btn-event {
  border-color: rgba(234,179,8,0.40);
  color: rgba(234,179,8,0.80);
}
.tab-btn-event:hover,
.tab-btn-event.active {
  background: rgba(234,179,8,0.18);
  color: rgba(234,179,8,1);
  border-color: rgba(234,179,8,0.75);
  font-weight: 700;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- 月切り替えスイッチャー ---- */
.schedule-month-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 3px;
  margin: 12px 0 16px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.month-switch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  padding: 4px 0;
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.3;
}
.month-switch-btn .msw-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--font-ja);
  pointer-events: none;
}
.month-switch-btn .msw-ym {
  font-size: 0.5rem;
  letter-spacing: 0.01em;
  opacity: 0.6;
  font-family: var(--font-en);
  pointer-events: none;
}
.month-switch-btn:hover:not(:disabled) {
  color: rgba(255,255,255,0.75);
}
.month-switch-btn.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
}
.month-switch-btn.active .msw-label {
  color: #fff;
}
.month-switch-btn:disabled {
  cursor: not-allowed;
}

/* 矢印アイコン */
.msw-arrow {
  color: rgba(255,255,255,0.2);
  font-size: 0.6rem;
  pointer-events: none;
}

/* 区切り線 */
.msw-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.15);
  margin: 0 2px;
  flex-shrink: 0;
}

/* PDF/PNG 縦積み */
.msw-dl-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

/* ---- スケジュール PDF/PNG 出力バー（月切替と統合） ---- */
.sch-dl-bar {
  display: none; /* 旧レイアウト非表示 */
}

.sch-dl-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.12);
  margin: 0 4px;
  flex-shrink: 0;
}

.sch-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 7px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-en);
}
.sch-dl-btn i { pointer-events: none; font-size: 0.58rem; }
.sch-dl-btn span { pointer-events: none; }

/* PDF ボタン：赤紫系 */
.sch-dl-pdf {
  background: rgba(139, 92, 246, 0.13);
  border-color: rgba(139, 92, 246, 0.38);
  color: rgba(196, 181, 253, 0.9);
}
.sch-dl-pdf:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.26);
  border-color: rgba(167, 139, 250, 0.7);
  color: #ddd6fe;
}

/* PNG ボタン：青緑系 */
.sch-dl-png {
  background: rgba(20, 184, 166, 0.13);
  border-color: rgba(20, 184, 166, 0.38);
  color: rgba(94, 234, 212, 0.9);
}
.sch-dl-png:hover:not(:disabled) {
  background: rgba(20, 184, 166, 0.26);
  border-color: rgba(45, 212, 191, 0.7);
  color: #99f6e4;
}

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

/* スケジュール切り替え時のフェードイン */
.schedule-list {
  animation: schedFadeIn 0.25s ease;
}
@keyframes schedFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

#ev-notice-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.ev-notice-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,210,80,0.18);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}
.ev-notice-card:hover {
  border-color: rgba(255,210,80,0.38);
}

.ev-notice-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ev-notice-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ev-notice-star {
  color: rgba(255,210,80,0.85);
  font-size: 0.65rem;
}
.ev-notice-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,230,120,0.95);
  line-height: 1.3;
}
.ev-notice-day {
  font-size: 0.65rem;
  color: var(--gray-400);
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1px 6px;
}
.ev-notice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ev-notice-date {
  font-size: 0.72rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ev-notice-date i { font-size: 0.62rem; }

/* カウントダウンバッジ */
.ev-countdown {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-family: var(--font-en);
  font-weight: 700;
  color: rgba(255,210,80,0.9);
  background: rgba(255,210,80,0.1);
  border: 1px solid rgba(255,210,80,0.3);
  border-radius: 20px;
  padding: 2px 10px;
}
.ev-countdown strong {
  font-size: 1.05rem;
  color: rgba(255,220,80,1);
}
.ev-countdown-today {
  color: rgba(80,220,160,0.95);
  background: rgba(80,220,160,0.1);
  border-color: rgba(80,220,160,0.35);
  animation: todayPulse 2s ease-in-out infinite;
}
@keyframes todayPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
.ev-countdown-far {
  color: var(--gray-400);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

.ev-notice-sub {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--gray-400);
}
.ev-notice-sub span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ev-notice-sub i { font-size: 0.6rem; }

.ev-notice-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.ev-notice-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.ev-notice-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
}
.ev-notice-video-wrap iframe,
.ev-notice-video-wrap video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 8px;
}

.ev-notice-note {
  font-size: 0.78rem;
  color: rgba(255,200,120,0.75);
  line-height: 1.55;
  margin: 0;
}

.ev-notice-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(130,200,255,0.85);
  border: 1px solid rgba(130,200,255,0.3);
  border-radius: 6px;
  padding: 6px 14px;
  align-self: flex-start;
  transition: all 0.2s;
  text-decoration: none;
}
.ev-notice-link:hover {
  background: rgba(130,200,255,0.1);
  border-color: rgba(130,200,255,0.6);
  color: rgba(160,220,255,1);
}

/* ---- 曜日ブロック ---- */
.schedule-day-block {
  display: flex;
  flex-direction: column;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.schedule-day-block:hover { border-color: var(--gray-400); }

/* 曜日ヘッダー行：横並び */
.schedule-day-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--gray-700);
  padding: 10px 18px;
  border-bottom: 1px solid var(--gray-600);
}

/* 曜日バッジ＋ラベルをひとまとめ */
.schedule-day-id {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}

.schedule-day-badge {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 900;
  font-style: normal;
  color: var(--white);
  line-height: 1;
}

/* 「特」バッジ専用 — ゴールド確定 */
.schedule-day-badge.tok-special {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 7px;
  border: 1.5px solid rgba(234,179,8,0.85);
  background: rgba(234,179,8,0.20);
  color: #eab308 !important;
  font-size: 1.5rem;
  text-shadow: 0 0 8px rgba(234,179,8,0.5);
}

.schedule-day-label {
  font-size: 0.62rem;
  color: var(--gray-400);
  letter-spacing: 0.1em;
}

/* ---- 月活動予定メモ（横書き） ---- */
.schedule-day-note {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(110,60,238,0.15);
  border: 1px solid rgba(168,85,247,0.28);
  border-radius: 100px;
  font-size: 0.7rem;
  color: #c084fc;
  line-height: 1.4;
  white-space: normal;
  word-break: break-all;
}
.schedule-day-note i {
  font-size: 0.65rem;
  flex-shrink: 0;
  color: #a855f7;
}
/* バッジ（①②…）を際立たせる */
.schedule-day-note .dn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(168,85,247,0.35);
  font-size: 0.6rem;
  font-weight: 900;
  color: #e9d5ff;
  flex-shrink: 0;
}

/* ---- スロット一覧 ---- */
.schedule-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.schedule-slots.single {
  grid-template-columns: 1fr;
}

.schedule-slot {
  padding: 22px 20px;
  border-left: 1px solid var(--gray-700);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--transition);
}
.schedule-slot:first-child { border-left: none; }
.schedule-slot:hover { background: var(--gray-700); }
.schedule-slot.empty-slot { opacity: 0.38; }

/* 時間帯 — 大きく均等 */
.slot-time {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
}

/* 場所タグ — 大きく均等 */
.slot-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--gray-600);
  color: var(--gray-200);
  width: fit-content;
}
.slot-location.loc-広陵中学校 { border-color: rgba(255,200,100,0.55); color: rgba(255,200,100,1); }
.slot-location.loc-東小学校   { border-color: rgba(100,200,180,0.55); color: rgba(100,200,180,1); }
.slot-location.loc-330アリーナ  { border-color: rgba(80,160,255,0.65);  color: rgba(80,160,255,1); }
.slot-location.loc-その他     { border-color: rgba(180,150,255,0.55); color: rgba(180,150,255,1); }
.slot-location.loc-custom     { border-color: rgba(180,150,255,0.55); color: rgba(180,150,255,1); }
.slot-location.loc-empty      { border-color: var(--gray-700); color: var(--gray-600); }

/* 区切り線 */
.slot-divider {
  height: 1px;
  background: var(--gray-700);
  margin: 2px 0;
}

/* 練習メニュー — 小さめ */
.slot-class {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--gray-200);
}

.slot-instructor {
  font-size: 0.65rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}
.slot-instructor i { font-size: 0.58rem; }

.slot-note {
  font-size: 0.62rem;
  color: var(--gray-600);
  font-style: normal;
}

/* 練習メニューリスト */
.slot-menu-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slot-menu-item {
  font-size: 0.65rem;
  color: var(--gray-400);
  font-style: normal;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.slot-menu-item::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-600);
  flex-shrink: 0;
  margin-top: 1px;
}

/* =====================
   FRIEND COMPANY
   ===================== */

/* ---- マーキーラッパー ---- */
.company-marquee-wrap {
  overflow: hidden;
  position: relative;
  margin-bottom: 48px;
  padding: 6px 0;
  /* 左右フェードマスク */
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.company-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: companyScroll 30s linear infinite;
}
.company-marquee-track:hover { animation-play-state: paused; }

@keyframes companyScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- マーキー内ロゴアイテム ---- */
.company-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 160px;
  height: 72px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius);
  padding: 12px 20px;
  transition: border-color var(--transition);
  cursor: default;
  text-decoration: none;
}
.company-logo-item:hover { border-color: var(--gray-400); }

.company-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) brightness(1.4);
  transition: filter var(--transition);
}
.company-logo-item:hover img { filter: grayscale(0%) brightness(1); }

/* ロゴなし：テキスト表示 */
.company-logo-text {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

/* ---- 企業カードグリッド ---- */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

/* ---- 企業カード（シンプル版：画像16:9 + 企業名 + メッセージ） ---- */
.company-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s;
}
.company-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.company-card:hover {
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

/* 画像エリア（16:9） */
.company-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.05);
}
.company-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255,255,255,0.18);
  font-size: 0.55rem;
}
.company-card-img-placeholder i { font-size: 1rem; }

/* カードボディ */
.company-card-body {
  padding: 6px 8px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.company-card-name {
  font-weight: 800;
  font-size: 0.68rem;
  color: var(--white);
  line-height: 1.3;
}
.company-card-desc {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- レスポンシブ ---- */
@media (max-width: 768px) {
  .company-logo-item { width: 130px; height: 60px; }
}
@media (max-width: 480px) {
  .company-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================
   FEE SYSTEM
   ===================== */

/* イントロ */
.fee-system-intro {
  text-align: center;
  margin-bottom: 56px;
}

.fee-system-lead {
  font-size: 0.95rem;
  color: var(--gray-200);
  line-height: 2;
}

/* フロー */
.fee-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.fee-flow-step {
  flex: 1;
  min-width: 200px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  padding: 32px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.fee-flow-num {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 900;
  font-style: normal;
  color: var(--gray-600);
  line-height: 1;
  flex-shrink: 0;
}

.fee-flow-body h3 {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.fee-flow-body p {
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.fee-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: var(--gray-600);
  font-size: 0.8rem;
}

/* 参加タイプ別料金 */
.fee-types {
  margin-bottom: 56px;
}

.fee-types-label {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
  text-align: center;
}

.fee-types-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.fee-type-card {
  background: var(--gray-800);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border-left: 3px solid transparent;
  transition: background var(--transition);
}
.fee-type-card:hover { background: var(--gray-700); }

.fee-type-card.type-normal   { border-left-color: var(--gray-500); }
.fee-type-card.type-child    { border-left-color: rgba(100,200,180,0.7); }
.fee-type-card.type-family   { border-left-color: rgba(255,170,100,0.7); }
.fee-type-card.type-childonly{ border-left-color: rgba(130,180,255,0.7); }
.fee-type-card.type-guest    { border-left-color: rgba(255,200,100,0.7); }

.fee-type-icon {
  font-size: 1.3rem;
  color: var(--gray-400);
}
.fee-type-card.type-child     .fee-type-icon { color: rgba(100,200,180,0.85); }
.fee-type-card.type-family    .fee-type-icon { color: rgba(255,170,100,0.85); }
.fee-type-card.type-childonly .fee-type-icon { color: rgba(130,180,255,0.85); }
.fee-type-card.type-guest     .fee-type-icon { color: rgba(255,200,100,0.85); }

.fee-type-name {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 800;
  font-style: normal;
  color: var(--white);
  letter-spacing: 0.04em;
}

.fee-type-price {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 900;
  font-style: normal;
  color: var(--gray-200);
}
.fee-type-price span {
  color: var(--white);
  font-size: 0.85rem;
}

.fee-type-note {
  font-size: 0.62rem;
  color: var(--gray-600);
  font-style: normal;
}

/* CTA */
.fee-system-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================
   CONTACT
   ===================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--white);
  width: 36px;
  text-align: center;
  margin-top: 2px;
}

.contact-item h4 {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.28em;
  color: var(--gray-400);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.contact-item p {
  font-size: 0.95rem;
}

/* ---- FORM ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-200);
}

.required {
  color: #ff6b6b;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--gray-800);
  border: 1px solid var(--gray-600);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-ja);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  width: 100%;
}

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

.form-group select option { background: var(--gray-800); }

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

.form-submit { align-self: flex-start; }

.form-success {
  display: none;
  padding: 14px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--gray-600);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray-200);
  align-items: center;
  gap: 10px;
}

.form-success.visible { display: flex; }
.form-success .fa-check-circle { color: #66cc66; }

/* =====================
   FOOTER
   ===================== */
#site-footer {
  background: var(--black);
  border-top: 1px solid var(--gray-800);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 6px;
  letter-spacing: 0.2em;
}

.footer-logo { font-size: 2rem; }

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 700;
  font-style: normal;
  color: var(--gray-400);
  transition: color var(--transition);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-nav a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

/* =====================
   BACK TO TOP
   ===================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--white);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-2px); }

/* =====================
   ANIMATIONS
   ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .fee-types-grid { grid-template-columns: repeat(3, 1fr); }
  .fee-flow { flex-direction: column; }
  .fee-flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

@media (max-width: 768px) {
  section:not(#hero) { padding: 72px 0; }

  /* ---- NAV ---- */
  .nav-toggle { display: flex; }

  /* ドロワーパネル */
  .nav-links {
    position: fixed;
    top: 0;
    right: -320px;          /* 画面外に隠す */
    width: 280px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 40px;
    gap: 0;
    transition: right 0.3s ease;
    border-left: 1px solid var(--gray-800);
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,0.6);
  }
  .nav-links.open { right: 0; }
  /* ドロワー開放中はヘッダーをドロワーの裏に */
  body.nav-open #site-header { z-index: 100; }

  /* 閉じるボタン行 */
  .nav-close-item {
    display: flex !important;
    width: 100%;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--gray-800);
    margin-bottom: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 10000; /* ヘッダーより確実に上 */
  }
  .nav-close-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.05em;
    width: 100%;
    position: relative;
    z-index: 10000;
    -webkit-tap-highlight-color: rgba(255,255,255,0.2);
    touch-action: manipulation;
  }
  .nav-close-btn:hover,
  .nav-close-btn:active {
    background: rgba(255,255,255,0.18);
  }
  .nav-close-btn i { font-size: 1rem; }

  /* メニューリンク */
  .nav-links li { width: 100%; }
  .nav-links li:not(.nav-close-item) { padding: 0 20px; }
  .nav-links a {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--gray-200);
  }
  .nav-links a::after { display: none; } /* モバイルでは下線アニメ不要 */
  .nav-links a:hover,
  .nav-links a.nav-active { color: var(--white); background: none; }

  /* 管理者リンクはモバイルでも紫色 */
  .nav-admin-link a,
  .nav-image-edit-link a { color: rgba(192,132,252,0.9); }

  /* ヘッダー右エリア（ハンバーガー横） */
  .nav-header-right {
    margin-right: 10px;
    gap: 6px;
  }
  /* モバイル：ユーザー名・ロールは非表示 */
  .nav-header-user { display: none; }
  /* ログアウトボタン：アイコンのみ */
  .nav-header-logout span { display: none; }
  .nav-header-logout { padding: 7px 10px; }
  /* カートボタン：モバイルもアイコンのみ */
  .nav-header-cart { padding: 7px 10px; }

  .hero-title { font-size: clamp(4rem, 20vw, 8rem); }

  /* ---- スマホ ヒーロー調整 ---- */
  #hero { min-height: 100svh; }
  .hero-title { min-height: 160px; }
  .hero-clock-wrap { margin: 28px 0 16px; padding: 8px 0; }
  .hero-actions { gap: 10px; margin-bottom: 12px; }
  .hero-actions .btn { font-size: 0.78rem; padding: 10px 20px; }
  .hero-sale-wrap { margin-top: 10px; }
  .hero-member-btn-wrap { padding: 0 4px; }
  .ps-hero-btn { font-size: 0.67rem; padding: 9px 12px; gap: 7px; margin-bottom: 5px; }
  .hero-scroll-hint { display: none; }

  /* CONTACT */
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  /* SCHEDULE */
  .schedule-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }
  .schedule-time {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }

  /* FOOTER */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 48px 0;
  }

  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .about-stats    { grid-template-columns: 1fr 1fr; }
  .news-grid      { grid-template-columns: 1fr; }
  .sports-grid    { grid-template-columns: 1fr 1fr; }
  .fee-types-grid { grid-template-columns: 1fr 1fr; }
  .fee-type-card  { padding: 20px 12px; }
}

/* =====================
   ABOUT MODAL
   ===================== */
.about-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.about-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.about-modal-box {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: 8px;
  width: 100%;
  max-width: 680px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s ease;
  margin: auto;
}
.about-modal-overlay.open .about-modal-box {
  transform: translateY(0);
}

/* 閉じるボタン */
.about-modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 16px 16px 0 0;
  width: 36px;
  height: 36px;
  background: var(--gray-800);
  border: 1px solid var(--gray-600);
  border-radius: 50%;
  color: var(--gray-400);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}
.about-modal-close:hover {
  border-color: var(--white);
  color: var(--white);
}

/* スクロールコンテンツ */
.about-modal-content {
  padding: 0 32px 40px;
  overflow: hidden;
}

/* セクション */
.about-modal-section { padding-top: 32px; }

.about-modal-label {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.22em;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.about-modal-title {
  font-family: var(--font-en);
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 16px;
}

.about-modal-lead {
  font-size: 0.85rem;
  color: var(--gray-300);
  line-height: 2;
  margin-bottom: 28px;
}

/* バリュー */
.about-modal-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.about-modal-value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.about-modal-value > i {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.about-modal-value h3 {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 3px;
}
.about-modal-value p {
  font-size: 0.75rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* スタッツ */
.about-modal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}
.about-modal-stat {
  background: var(--gray-800);
  padding: 20px 10px;
  text-align: center;
}
.about-stat-num {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 900;
  font-style: normal;
  color: var(--white);
  letter-spacing: -0.02em;
}
.about-stat-unit {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-left: 2px;
}
.about-modal-stat p {
  font-size: 0.62rem;
  color: var(--gray-500);
  margin-top: 4px;
  letter-spacing: 0.08em;
}

/* 区切り線 */
.about-modal-divider {
  height: 1px;
  background: var(--gray-700);
  margin-top: 36px;
}

/* 3ステップフロー */
.about-modal-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}
.about-modal-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
}
.about-modal-step-num {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 900;
  font-style: normal;
  color: var(--gray-700);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  width: 36px;
}
.about-modal-step h4 {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 4px;
}
.about-modal-step p {
  font-size: 0.73rem;
  color: var(--gray-400);
  line-height: 1.7;
}
.about-modal-step-arrow {
  text-align: center;
  color: var(--gray-700);
  font-size: 0.7rem;
  padding: 2px 0 2px 18px;
}

/* 料金区分テーブル */
.about-modal-fee-grid {
  border: 1px solid var(--gray-700);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
}
.about-modal-fee-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-700);
  transition: background var(--transition);
}
.about-modal-fee-row:last-child { border-bottom: none; }
.about-modal-fee-row:hover { background: var(--gray-800); }
.about-fee-icon {
  width: 28px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  flex-shrink: 0;
}
.about-fee-name {
  flex: 1;
  font-size: 0.78rem;
  color: var(--gray-200);
  font-family: var(--font-jp);
}
.about-fee-price {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: normal;
  color: var(--white);
  letter-spacing: 0.06em;
}

/* CTA */
.about-modal-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* レスポンシブ */
@media (max-width: 640px) {
  .about-modal-content { padding: 0 20px 32px; }
  .about-modal-stats   { grid-template-columns: repeat(2, 1fr); }
  .about-modal-cta     { flex-direction: column; }
  .about-modal-cta .btn { text-align: center; justify-content: center; }
}

/* =====================================================
   ImgUpload 共通UI（全編集ページ共通）
   ===================================================== */

/* ファイル選択ボタン */
.img-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(168,85,247,0.15);
  border: 1.5px solid rgba(168,85,247,0.5);
  border-radius: 8px;
  color: rgba(200,150,255,0.95);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  user-select: none;
  -webkit-user-select: none;
}
.img-upload-btn:hover {
  background: rgba(168,85,247,0.28);
  border-color: rgba(168,85,247,0.85);
}
.img-upload-btn i { font-size: 0.82rem; }

/* クリアボタン */
.img-upload-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(248,113,113,0.4);
  border-radius: 6px;
  color: rgba(248,113,113,0.85);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}
.img-upload-clear-btn:hover { background: rgba(248,113,113,0.12); }

/* プレビューラップ */
.img-upload-preview-wrap {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* エラーメッセージ */
.img-upload-error {
  color: #f87171;
  font-size: 0.72rem;
  min-height: 14px;
  margin-top: 2px;
}

/* ---- カレンダーブロック全体 ---- */
.ev-cal-block {
  background: linear-gradient(135deg, #0f0c29 0%, #1a1060 40%, #24243e 100%);
  border: 1.5px solid rgba(130,80,255,0.50);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 24px rgba(120,80,255,0.18);
}
.ev-cal-block:hover {
  border-color: rgba(180,120,255,0.80);
  box-shadow: 0 6px 36px rgba(120,80,255,0.28);
}

/* 曜日ヘッダー */
.ev-cal-block .schedule-day-header {
  background: linear-gradient(160deg, #6e3cee 0%, #a855f7 50%, #ec4899 100%);
  border-right: 1px solid rgba(255,255,255,0.15);
  gap: 4px;
  box-shadow: 2px 0 14px rgba(168,85,247,0.35);
}
.ev-cal-block .schedule-day-badge {
  font-size: 1.9rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255,255,255,0.80), 0 2px 8px rgba(0,0,0,0.40);
}
/* イベントカレンダー内「特」バッジはゴールド上書き */
.ev-cal-block .schedule-day-badge[style*='eab308'],
.ev-cal-block .schedule-day-id .schedule-day-badge {
  color: #eab308 !important;
  text-shadow: 0 0 12px rgba(234,179,8,0.60), 0 2px 6px rgba(0,0,0,0.40);
}
.ev-cal-block .schedule-day-label {
  color: rgba(255,220,255,0.80);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

/* スロットエリア */
.ev-cal-slots {
  display: flex;
  flex-wrap: wrap;
}
.ev-cal-slots .schedule-slot {
  flex: 1 1 200px;
  min-width: 180px;
  border-left: 1px solid rgba(160,100,255,0.20);
  background: rgba(255,255,255,0.03);
  padding: 20px 18px;
  gap: 10px;
  transition: background 0.2s;
}
.ev-cal-slots .schedule-slot:first-child { border-left: none; }
.ev-cal-slots .schedule-slot:hover {
  background: rgba(168,85,247,0.14);
  border-left-color: rgba(168,85,247,0.40);
}

/* 時間帯 — 明るいゴールドイエロー */
.ev-cal-slots .slot-time {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffd60a;
  text-shadow: 0 0 14px rgba(255,214,10,0.70), 0 0 4px rgba(255,214,10,0.40);
  letter-spacing: 0.04em;
}

/* 場所タグ — スカイブルー */
.ev-cal-slots .slot-location {
  border: 1px solid rgba(56,189,248,0.65);
  color: #38bdf8;
  background: rgba(56,189,248,0.10);
  font-size: 0.78rem;
  border-radius: 20px;
  padding: 2px 10px;
}
.ev-cal-slots .slot-location i { color: rgba(56,189,248,0.80); }

/* 区切り線 */
.ev-cal-slots .slot-divider {
  background: linear-gradient(90deg, rgba(168,85,247,0.50), rgba(236,72,153,0.40), transparent);
  height: 1px;
  margin: 4px 0;
}

/* イベント名 */
.ev-cal-slots .slot-class {
  font-size: 0.92rem;
  font-weight: 900;
  color: #f0e6ff;
  letter-spacing: 0.05em;
  font-style: normal;
  text-shadow: 0 0 10px rgba(200,150,255,0.45);
}

/* 持ち物 */
.slot-items {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 0.66rem;
  color: #7dd3fc;
  line-height: 1.55;
}
.slot-items i {
  font-size: 0.62rem;
  color: #38bdf8;
  margin-top: 2px;
  flex-shrink: 0;
}

/* 備考 */
.ev-cal-slots .slot-note {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 0.65rem;
  color: #fbbf24;
  font-style: normal;
  line-height: 1.55;
}
.ev-cal-slots .slot-note::before {
  content: '📌';
  font-size: 0.60rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 編集ボタン */
.ev-cal-slot { position: relative; }
.ev-edit-chip-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: rgba(255,255,255,0.45);
  font-size: 0.58rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
  z-index: 2;
}
.ev-cal-slot:hover .ev-edit-chip-btn { opacity: 1; }
.ev-edit-chip-btn:hover {
  background: rgba(200,150,255,0.25);
  color: #d4aaff;
  border-color: rgba(200,150,255,0.55);
}

/* 新規追加ボタン */
.ev-add-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; margin-top: 10px; padding: 9px 0;
  background: transparent;
  border: 1px dashed rgba(160,120,255,0.40);
  border-radius: 4px;
  color: rgba(180,140,255,0.70);
  font-family: var(--font-en); font-size: 0.63rem; font-weight: 700;
  font-style: normal; letter-spacing: 0.14em; cursor: pointer;
  transition: all var(--transition);
}
.ev-add-btn:hover {
  border-color: rgba(180,140,255,0.80);
  color: #d4aaff;
  background: rgba(160,120,255,0.07);
}

/* コンパクトニュースグリッド — 最大2件 */
.news-grid-compact { grid-template-columns: repeat(2, 1fr); }
.news-grid-compact .news-card-title   { font-size: 0.78rem; }
.news-grid-compact .news-card-excerpt { font-size: 0.72rem; -webkit-line-clamp: 1; }
@media (max-width: 580px) { .news-grid-compact { grid-template-columns: 1fr; } }

/* イベント編集モーダル */
.ev-edit-overlay { z-index: 3500; }
.ev-edit-box { max-width: 480px; padding: 0; overflow: hidden; }
.ev-edit-mode-label {
  display: block;
  font-family: var(--font-en); font-size: 0.62rem; font-weight: 900;
  font-style: normal; letter-spacing: 0.22em; color: var(--gray-500);
  padding: 20px 28px 0;
}
.ev-edit-form {
  padding: 16px 28px 8px;
  display: flex; flex-direction: column; gap: 14px;
}
.ev-field { display: flex; flex-direction: column; gap: 5px; }
.ev-label {
  font-family: var(--font-en); font-size: 0.58rem; font-weight: 700;
  font-style: normal; letter-spacing: 0.15em; color: var(--gray-500);
}
.ev-req { color: #ff6b6b; margin-left: 3px; }
.ev-input {
  background: var(--gray-800); border: 1px solid var(--gray-700); border-radius: 4px;
  padding: 9px 12px; color: var(--white); font-family: var(--font-jp);
  font-size: 0.82rem; width: 100%; transition: border-color var(--transition);
}
.ev-input:focus { outline: none; border-color: var(--gray-400); }
.ev-input::placeholder { color: var(--gray-600); }
.ev-input option { background: var(--gray-800); }
.ev-textarea { min-height: 68px; resize: vertical; line-height: 1.7; }
.ev-form-error {
  font-size: 0.72rem; color: #ff6b6b; display: none;
  padding: 7px 10px;
  background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.3); border-radius: 4px;
}
.ev-edit-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px 20px; border-top: 1px solid var(--gray-700); margin-top: 4px;
}
.ev-btn-cancel {
  background: transparent; border: 1px solid var(--gray-600); border-radius: 4px;
  padding: 8px 18px; color: var(--gray-400);
  font-family: var(--font-en); font-size: 0.63rem; font-weight: 700;
  font-style: normal; letter-spacing: 0.10em; cursor: pointer;
  transition: all var(--transition);
}
.ev-btn-cancel:hover { border-color: var(--gray-300); color: var(--gray-200); }
.ev-btn-save {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--white); border-radius: 4px;
  padding: 8px 20px; color: var(--black);
  font-family: var(--font-en); font-size: 0.63rem; font-weight: 900;
  font-style: normal; letter-spacing: 0.10em; cursor: pointer;
  transition: all var(--transition);
}
.ev-btn-save:hover { background: transparent; color: var(--white); }
.ev-btn-save:disabled { opacity: 0.4; pointer-events: none; }
.ev-btn-change {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(100,180,255,0.6); border-radius: 4px;
  padding: 8px 18px; color: rgba(120,190,255,0.9);
  font-family: var(--font-en); font-size: 0.63rem; font-weight: 700;
  font-style: normal; letter-spacing: 0.10em; cursor: pointer;
  transition: all var(--transition);
}
.ev-btn-change:hover { border-color: rgba(100,180,255,1); color: #64b4ff; }
.ev-btn-change:disabled { opacity: 0.4; pointer-events: none; }
.ev-btn-delete {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(255,100,100,0.4); border-radius: 4px;
  padding: 8px 16px; color: rgba(255,120,120,0.8);
  font-family: var(--font-en); font-size: 0.63rem; font-weight: 700;
  font-style: normal; letter-spacing: 0.10em; cursor: pointer;
  transition: all var(--transition);
}
.ev-btn-delete:hover { border-color: rgba(255,100,100,0.8); color: #ff6b6b; }

/* ====================================================
   イベントカレンダー — カード表示・カウントダウン・メディア
   ==================================================== */

/* ヒントテキスト（モーダル内） */
.ev-hint {
  font-size: 0.52rem;
  color: var(--gray-600);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 4px;
}

/* ── スロットヘッダー（時間・場所 + カウントダウン 横並び） ── */
.ev-slot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ev-slot-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

/* ── カウントダウン（数字表示） ── */
.ev-cd-wrap { flex-shrink: 0; }
.ev-cd {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid;
  line-height: 1;
}
.ev-cd-num {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 900;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ev-cd-unit {
  font-family: var(--font-en);
  font-size: 0.50rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.10em;
  margin-top: 2px;
}

/* 今日 — ピンク点滅 */
.ev-cd-today {
  color: #f472b6;
  border-color: rgba(244,114,182,0.50);
  background: rgba(244,114,182,0.08);
  animation: ev-pulse 1.6s ease-in-out infinite;
}
@keyframes ev-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.50; }
}
/* 7日以内 — アンバー */
.ev-cd-near {
  color: #fbbf24;
  border-color: rgba(251,191,36,0.40);
  background: rgba(251,191,36,0.07);
}
/* それ以降 — グレー控えめ */
.ev-cd-far {
  color: var(--gray-500);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

/* ── カード画像 ── */
.ev-card-media {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}
.ev-card-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: transform 0.35s ease;
}
.ev-cal-slot:hover .ev-card-img { transform: scale(1.025); }

/* ── カード動画（16:9 レスポンシブ） ── */
.ev-card-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #000;
}
.ev-card-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  border-radius: 6px;
}

/* ── カードボディ ── */
.ev-card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ── 外部リンクボタン ── */
.ev-card-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(52,211,153,0.45);
  border-radius: 100px;
  color: #34d399;
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  width: fit-content;
  margin-top: 4px;
}
.ev-card-ext-link:hover {
  background: rgba(52,211,153,0.12);
  border-color: rgba(52,211,153,0.80);
  color: #6ee7b7;
}
.ev-card-ext-link i { font-size: 0.58rem; }

/* ── 編集ボタン ── */
.ev-cal-slot { position: relative; }
.ev-edit-chip-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: rgba(255,255,255,0.45);
  font-size: 0.58rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
  z-index: 2;
}
.ev-cal-slot:hover .ev-edit-chip-btn { opacity: 1; }
.ev-edit-chip-btn:hover {
  background: rgba(200,150,255,0.25);
  color: #d4aaff;
  border-color: rgba(200,150,255,0.55);
}

/* ── 画像プレビュー（モーダル内） ── */
.ev-image-preview {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gray-700);
}

/* =============================================
   NEWS PANEL (右からスライドインドロワー)
   ============================================= */
.news-panel-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 3000; opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.news-panel-overlay.open { opacity: 1; pointer-events: auto; }

.news-panel {
  position: fixed; top: 0; right: 0;
  width: min(640px, 100vw); height: 100dvh;
  background: var(--gray-900);
  border-left: 1px solid var(--gray-700);
  z-index: 3100;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.55);
}
.news-panel.open { transform: translateX(0); }

/* パネルヘッダー */
.news-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--gray-700);
  flex-shrink: 0;
}
.news-panel-title {
  font-family: var(--font-en); font-size: 1.4rem; font-weight: 900;
  font-style: normal; letter-spacing: 0.06em; color: var(--white); margin: 0;
}
.news-panel-close {
  width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--gray-600); border-radius: 50%;
  color: var(--gray-400); font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.news-panel-close:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.06); }

/* パネルボディ */
.news-panel-body {
  flex: 1; overflow-y: auto;
  padding: 24px 28px 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.news-panel-body::-webkit-scrollbar { width: 4px; }
.news-panel-body::-webkit-scrollbar-track { background: transparent; }
.news-panel-body::-webkit-scrollbar-thumb { background: var(--gray-600); border-radius: 2px; }

.news-panel-body .news-filter { margin-bottom: 4px; }
.news-panel-body .news-grid   { grid-template-columns: 1fr; }

@media (max-width: 480px) {
  .news-panel-header { padding: 18px 20px 16px; }
  .news-panel-body   { padding: 18px 16px 28px; }
}

/* =============================================
   ACTIVITY LOCATIONS
   ============================================= */
/* アコーディオンリスト */
.loc-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

/* 各アイテム */
.loc-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.loc-item.is-open {
  border-color: rgba(167,139,250,0.45);
}

/* ヘッダー（クリックで開閉） */
.loc-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  gap: 10px;
}
.loc-item-header:hover { background: rgba(255,255,255,0.04); }

.loc-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.loc-item-icon {
  width: 32px; height: 32px;
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #a78bfa;
  font-size: 0.75rem;
}
.loc-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 編集ボタン */
.loc-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.loc-edit-chip {
  opacity: 0;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: opacity 0.2s, color 0.2s;
}
.loc-edit-chip:hover { color: #fff; }
.loc-item:hover .loc-edit-chip { opacity: 1; }

/* 開閉シェブロン */
.loc-item-chevron {
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.loc-item.is-open .loc-item-chevron {
  transform: rotate(180deg);
}

/* 本文（折りたたみ部分） */
.loc-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1),
              opacity    0.25s ease;
  opacity: 0;
}
.loc-item.is-open .loc-item-body {
  max-height: 800px;
  opacity: 1;
}
.loc-item-body-inner {
  padding: 4px 16px 16px 58px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.loc-item-body-empty {
  color: rgba(255,255,255,0.25);
  font-style: italic;
}

/* URL リンク */
.loc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #38bdf8;
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px solid rgba(56,189,248,0.35);
  transition: color 0.2s, border-color 0.2s;
}
.loc-link::before {
  content: '\f0c1';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7em;
  flex-shrink: 0;
}
.loc-link:hover {
  color: #7dd3fc;
  border-bottom-color: rgba(125,211,252,0.6);
}

.loc-edit-box { max-width: 520px; }

/* =============================================
   DONATIONS — 購入目標セクション
   ============================================= */

/* ── 購入目標エリア（公開表示） ── */
/* ---- 寄付金 総計バナー ---- */
.don-total-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,210,80,0.07);
  border: 1px solid rgba(255,210,80,0.2);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 12px;
}
.don-total-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,210,80,0.7);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.don-total-amount {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(255,230,100,0.95);
}
.don-total-amount small {
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 3px;
  opacity: 0.7;
}

/* ---- 内訳テーブル ---- */
.don-table-wrap {
  overflow-x: auto;
}
.don-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.don-table th {
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}
.don-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.75);
}
.don-amount-badge {
  background: rgba(255,210,80,0.1);
  border: 1px solid rgba(255,210,80,0.25);
  color: rgba(255,220,80,0.9);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 700;
}
.don-count-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.68rem;
}
.don-subtotal {
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}
.don-empty {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 16px 0;
}

.don-goals-section {
  margin-top: 20px;
}
.don-goals-heading {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,210,80,0.85);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.don-goals-heading i { font-size: 0.85rem; }

/* カードグリッド */
.don-goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

/* カード */
.don-goal-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,210,80,0.18);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.25s;
}
.don-goal-card:hover {
  border-color: rgba(255,210,80,0.42);
  transform: translateY(-3px);
}

/* 画像 */
.don-goal-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.05);
}
.don-goal-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
}
.don-goal-card-img-placeholder i { font-size: 1.2rem; }

/* テキスト */
.don-goal-card-body {
  padding: 8px 10px 10px;
  flex: 1;
}
.don-goal-card-msg {
  font-size: 0.72rem;
  color: rgba(255,230,120,0.9);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── 購入目標エディタ（モーダル内） ── */
.don-goal-editor-row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.don-goal-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.don-goal-editor-num {
  font-size: 0.68rem;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,210,80,0.7);
}

/* 画像プレビュー（エディタ内） */
.don-goal-img-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s;
}
.don-goal-img-preview:hover { border-color: rgba(255,210,80,0.5); }
.don-goal-img-preview i { font-size: 1.6rem; }

.don-goal-img-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.2s;
  width: fit-content;
}
.don-goal-img-upload-label:hover { background: rgba(255,255,255,0.12); }

.don-goal-img-clear-btn {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  width: 24px; height: 24px;
  color: #fff;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.don-goal-img-size-hint {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
  margin-top: -4px;
}

@media (max-width: 480px) {
  .don-goals-grid { grid-template-columns: 1fr; }
}

.ev-card-players-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(251,146,60,0.85);
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}
.ev-card-players-summary:hover { background: rgba(251,146,60,0.07); }
.ev-card-players-summary::-webkit-details-marker { display: none; }
.ev-card-players-summary i { font-size: 0.65rem; }
.ev-players-count {
  margin-left: auto;
  font-size: 0.58rem;
  opacity: 0.6;
}
.ev-card-players[open] .ev-card-players-summary {
  background: rgba(251,146,60,0.08);
  border-bottom: 1px solid rgba(251,146,60,0.20);
}
.ev-card-players-body { padding: 10px 12px; }
.ev-players-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
}
.ev-players-table tr + tr {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ev-players-name {
  padding: 5px 10px 5px 0;
  color: var(--gray-200);
  font-weight: 700;
  white-space: nowrap;
  width: 35%;
}
.ev-players-data {
  padding: 5px 0;
  color: rgba(251,146,60,0.90);
  font-weight: 500;
}

/* ---- 活動なしトグル ---- */
.ev-none-toggle-wrap { margin: 2px 0 4px; }
.ev-none-toggle-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.ev-none-toggle-label input[type="checkbox"] { display: none; }
.ev-none-toggle-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(220,80,80,0.35);
  border-radius: 100px;
  color: rgba(220,100,100,0.75);
  font-size: 0.72rem;
  font-weight: 700;
  transition: all var(--transition);
}
.ev-none-toggle-box i { font-size: 0.75rem; }
.ev-none-toggle-label:hover .ev-none-toggle-box {
  border-color: rgba(220,80,80,0.65);
  color: rgba(240,120,120,0.95);
  background: rgba(220,60,60,0.06);
}
.ev-none-toggle-label input:checked + .ev-none-toggle-box {
  background: rgba(200,50,50,0.20);
  border-color: rgba(240,90,90,0.80);
  color: #f87171;
  box-shadow: 0 0 10px rgba(220,60,60,0.20);
}

.ev-news-block { margin-top: 16px; }

/* イベント編集モーダル */
.ev-edit-overlay {
  z-index: 3500;
}
.ev-edit-box {
  max-width: 480px;
  padding: 0;
  overflow: hidden;
}
.ev-edit-mode-label {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.2em;
  color: var(--gray-500);
  padding: 20px 28px 0;
  display: block;
}
.ev-edit-form {
  padding: 16px 28px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ev-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ev-label {
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.15em;
  color: var(--gray-500);
}
.ev-req { color: #ff6b6b; margin-left: 3px; }
.ev-input {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 4px;
  padding: 9px 12px;
  color: var(--white);
  font-family: var(--font-jp);
  font-size: 0.82rem;
  width: 100%;
  transition: border-color var(--transition);
}
.ev-input:focus { outline: none; border-color: var(--gray-400); }
.ev-input::placeholder { color: var(--gray-600); }
.ev-input option { background: var(--gray-800); }
.ev-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.7;
}
.ev-form-error {
  font-size: 0.72rem;
  color: #ff6b6b;
  display: none;
  padding: 7px 10px;
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: 4px;
}
.ev-edit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px 20px;
  border-top: 1px solid var(--gray-700);
  margin-top: 4px;
}
.ev-btn-cancel {
  background: transparent;
  border: 1px solid var(--gray-600);
  border-radius: 4px;
  padding: 8px 18px;
  color: var(--gray-400);
  font-family: var(--font-en);
  font-size: 0.63rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
}
.ev-btn-cancel:hover { border-color: var(--gray-300); color: var(--gray-200); }
.ev-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 4px;
  padding: 8px 20px;
  color: var(--black);
  font-family: var(--font-en);
  font-size: 0.63rem;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
}
.ev-btn-save:hover { background: transparent; color: var(--white); }
.ev-btn-save:disabled { opacity: 0.4; pointer-events: none; }
.ev-btn-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(100,180,255,0.6);
  border-radius: 4px;
  padding: 8px 18px;
  color: rgba(120,190,255,0.9);
  font-family: var(--font-en);
  font-size: 0.63rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
}
.ev-btn-change:hover { border-color: rgba(100,180,255,1); color: #64b4ff; }
.ev-btn-change:disabled { opacity: 0.4; pointer-events: none; }
.ev-btn-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,100,100,0.4);
  border-radius: 4px;
  padding: 8px 16px;
  color: rgba(255,120,120,0.8);
  font-family: var(--font-en);
  font-size: 0.63rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
}
.ev-btn-delete:hover { border-color: rgba(255,100,100,0.8); color: #ff6b6b; }

/* イベントカレンダー セクション区切り */
.ev-news-block {
  margin-top: 16px;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .ev-cal-slots .schedule-slot { flex: 1 1 100%; }
  .ev-edit-form  { padding: 14px 18px 6px; }
  .ev-edit-footer { padding: 10px 18px 16px; }
  .ev-edit-mode-label { padding: 16px 18px 0; }
}

/* =============================================
   SPORTS PANEL (右からスライドインドロワー)
   ============================================= */
.sports-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.sports-panel-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sports-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(600px, 100vw);
  height: 100dvh;
  background: var(--gray-900);
  border-left: 1px solid var(--gray-700);
  z-index: 3100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.55);
}
.sports-panel.open {
  transform: translateX(0);
}

/* パネルヘッダー */
.sports-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--gray-700);
  flex-shrink: 0;
}
.sports-panel-title {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 0;
}
.sports-panel-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--gray-600);
  border-radius: 50%;
  color: var(--gray-400);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.sports-panel-close:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* パネルボディ（スクロール） */
.sports-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}
.sports-panel-body::-webkit-scrollbar { width: 4px; }
.sports-panel-body::-webkit-scrollbar-track { background: transparent; }
.sports-panel-body::-webkit-scrollbar-thumb { background: var(--gray-600); border-radius: 2px; }

/* パネル内スポーツグリッド — 2列 */
.sports-panel-body .sports-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 480px) {
  .sports-panel-body .sports-grid { grid-template-columns: 1fr; }
  .sports-panel-header { padding: 18px 20px 16px; }
  .sports-panel-body   { padding: 18px 16px; }
}

/* =============================================
   NEWS PANEL (右からスライドインドロワー)
   ============================================= */
.news-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.news-panel-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.news-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(640px, 100vw);
  height: 100dvh;
  background: var(--gray-900);
  border-left: 1px solid var(--gray-700);
  z-index: 3100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.55);
}
.news-panel.open {
  transform: translateX(0);
}

/* パネルヘッダー */
.news-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--gray-700);
  flex-shrink: 0;
}
.news-panel-title {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 0;
}
.news-panel-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--gray-600);
  border-radius: 50%;
  color: var(--gray-400);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.news-panel-close:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* パネルボディ */
.news-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-panel-body::-webkit-scrollbar { width: 4px; }
.news-panel-body::-webkit-scrollbar-track { background: transparent; }
.news-panel-body::-webkit-scrollbar-thumb { background: var(--gray-600); border-radius: 2px; }

/* パネル内フィルターバー */
.news-panel-body .news-filter {
  margin-bottom: 4px;
}

/* パネル内ニュースグリッド — 1列 */
.news-panel-body .news-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 480px) {
  .news-panel-header { padding: 18px 20px 16px; }
  .news-panel-body   { padding: 18px 16px 28px; }
}

/* =============================================
   ACTIVITY LOCATIONS  （旧 loc-card 系は削除済み）
   ============================================= */

/* =============================================
   DONATIONS SECTION
   ============================================= */

/* 総計バナー */
.don-total-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 24px;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1060 50%, #24243e 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius);
  margin-bottom: 20px;
  text-align: center;
}
.don-total-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(180, 150, 255, 0.85);
  text-transform: uppercase;
}
.don-total-label i {
  color: #f472b6;
  margin-right: 6px;
}
.don-total-amount {
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 900;
  font-style: normal;
  color: #f0e6ff;
  line-height: 1;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
}
.don-total-amount small {
  font-size: 1rem;
  font-style: normal;
  opacity: 0.75;
  margin-left: 4px;
}

/* 内訳テーブル */
.don-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-700);
}
.don-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.don-table thead tr {
  background: rgba(168, 85, 247, 0.12);
}
.don-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(200, 170, 255, 0.8);
  border-bottom: 1px solid var(--gray-700);
}
.don-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-800);
  color: var(--gray-300);
}
.don-table tbody tr:last-child td {
  border-bottom: none;
}
.don-table tbody tr:hover {
  background: rgba(168, 85, 247, 0.06);
}
.don-amount-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 20px;
  color: #d8b4fe;
  font-weight: 700;
  font-size: 0.78rem;
}
.don-count-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.4);
  border-radius: 20px;
  color: #f9a8d4;
  font-weight: 700;
  font-size: 0.78rem;
}
.don-subtotal {
  font-weight: 700;
  color: #ffd60a;
}
.don-empty {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.8rem;
  padding: 24px 0;
}

/* 編集モーダル */
.don-edit-box {
  max-width: 560px;
  width: 100%;
}
.don-tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  margin-bottom: 4px;
}
.don-tab {
  padding: 6px 14px;
  border: 1px solid var(--gray-700);
  border-radius: 20px;
  background: transparent;
  color: var(--gray-400);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
}
.don-tab.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.6);
  color: #d8b4fe;
}
.don-tab-panel {
  padding: 12px 20px;
  max-height: 400px;
  overflow-y: auto;
}

/* 各行 */
.don-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-800);
}
.don-row:last-child { border-bottom: none; }
.don-row-fields {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.don-row-field {
  flex: 1;
  min-width: 100px;
}
.don-row-field--full {
  flex: 0 0 100%;
}
.don-row-label {
  display: block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.don-del-btn {
  flex-shrink: 0;
  margin-top: 18px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 107, 107, 0.7);
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.don-del-btn:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
}

/* 行追加ボタン */
.don-add-row-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 20px 4px;
  padding: 7px 14px;
  border: 1px dashed rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  background: transparent;
  color: rgba(168, 85, 247, 0.8);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.don-add-row-btn:hover {
  border-color: #a855f7;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.08);
}

/* タブ内アクションバー（追加＋変更・決定） */
.don-tab-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 20px;
  margin-top: 2px;
}
.don-tab-action-bar .don-add-row-btn {
  margin: 0;
}
.don-tab-save-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 600px) {
  .don-total-amount { font-size: 2rem; }
  .don-row-field { flex: 0 0 100%; }
}

/* =============================================
   DONATIONS — 寄付メッセージバー
   ============================================= */
.don-msg-wrap {
  margin-bottom: 20px;
}
.don-msg-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(244,114,182,0.12) 0%, rgba(168,85,247,0.10) 100%);
  border: 1px solid rgba(244,114,182,0.30);
  border-radius: var(--radius);
  border-left: 4px solid #f472b6;
  font-size: 0.84rem;
  color: #fce7f3;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.don-msg-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #f472b6;
  animation: don-pulse 2.2s ease-in-out infinite;
}
@keyframes don-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.92); }
}

/* =============================================
   DONATIONS — 購入目標 グリッド
   ============================================= */
/* メッセージエディタ */
.don-msg-editor {
  padding: 4px 0 8px;
}

@media (max-width: 600px) {
  .don-msg-bar { font-size: 0.78rem; padding: 12px 14px; }
}

/* =============================================
   MESSAGE BAR — ワンタッチ インライン編集
   ============================================= */
/* =============================================
   MESSAGE BAR — ネオン発光ライン style
   ============================================= */
.msg-bar-wrap {
  position: relative;
  background: linear-gradient(90deg,
    #080614 0%,
    #110d2e 30%,
    #1a0f3d 50%,
    #110d2e 70%,
    #080614 100%);
  overflow: hidden;
}
/* 上下ネオンライン */
.msg-bar-wrap::before,
.msg-bar-wrap::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
}
.msg-bar-wrap::before {
  top: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(168,85,247,0.6) 30%,
    rgba(196,130,255,0.9) 50%,
    rgba(168,85,247,0.6) 70%,
    transparent 100%);
  box-shadow: 0 0 8px rgba(168,85,247,0.5);
}
.msg-bar-wrap::after {
  bottom: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(168,85,247,0.3) 30%,
    rgba(168,85,247,0.5) 50%,
    rgba(168,85,247,0.3) 70%,
    transparent 100%);
}

.msg-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.msg-bar:hover {
  background: rgba(168,85,247,0.07);
}
.msg-bar.editing {
  cursor: text;
  background: rgba(168,85,247,0.12);
}

/* LIVE バッジ */
.msg-bar-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(168,85,247,0.6);
  animation: msg-pulse 2.4s ease-in-out infinite;
}
.msg-bar-icon i { font-size: 0.62rem; }
@keyframes msg-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(168,85,247,0.6); }
  50%       { box-shadow: 0 0 18px rgba(168,85,247,0.95); }
}

/* テキスト表示 */
.msg-bar-text {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ede0ff;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* インライン入力欄 */
.msg-bar-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(168,85,247,0.7);
  outline: none;
  color: #ede0ff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  padding: 0 2px 2px;
  caret-color: #c084fc;
}
.msg-bar-input::placeholder {
  color: rgba(168,85,247,0.38);
  font-weight: 400;
}

/* ヒントテキスト */
.msg-bar-hint {
  flex-shrink: 0;
  font-size: 0.6rem;
  color: rgba(168,85,247,0.45);
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.msg-bar-hint i { font-size: 0.56rem; }
.msg-bar:hover .msg-bar-hint { opacity: 1; }

/* 保存中スピナー */
.msg-bar-saving {
  flex-shrink: 0;
  color: rgba(168,85,247,0.7);
  font-size: 0.72rem;
}

/* 保存完了フラッシュ */
.msg-bar.saved {
  background: rgba(100,200,150,0.08);
  transition: background 0.3s;
}

@media (max-width: 600px) {
  .msg-bar      { padding: 10px 14px; }
  .msg-bar-text { font-size: 0.8rem; }
  .msg-bar-hint { display: none; }
}

/* =============================================
   TWEET FEED (index.html)
   ============================================= */
.tweet-bar-section {
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ヘッダー */
.tw-feed-hd {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tw-feed-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}
.tw-feed-btn { display: none; }
.tw-feed-post {
  font-size: 0.82rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
}
.tw-feed-post:hover { opacity: 1; }

/* 各ツイート行 */
.tw-item {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tw-item:last-child { border-bottom: none; }

/* 1行目：名前・タグ・時刻 — 固定グレー背景 */
.tw-row1 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 16px;
  margin: 0 -16px 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.tw-tag {
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.85;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 1px 6px;
  /* color は親 .tw-row1 から継承 */
}
.tw-time {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: auto;
}

/* 2行目：本文 */
.tw-row2 {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}

.tw-empty {
  text-align: center;
  padding: 20px;
  color: #4b5563;
  font-size: 0.78rem;
}

/* 旧クラス — 念のため非表示（tw-feed-wrapは除く） */
.tw-feed-item,
.tw-feed-av,
.tw-feed-body,
.tw-feed-meta,
.tw-feed-name,
.tw-feed-text,
.tw-feed-time,
.tw-feed-tag,
.tw-feed-pin,
.tw-feed-empty,
.tw-feed-name-bar,
.tw-feed-tag-bar,
.tw-feed-post-link,
.tw-feed-meta-left,
.tw-feed-tag-label { display: none; }

@media (max-width: 600px) {
  .tw-feed-hd { padding: 9px 14px; }
  .tw-item    { padding: 10px 14px; }
}

/* =============================================
   TWEET FEED — 過去投稿タッチバー
   ============================================= */
.tw-feed-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0 12px;
  background: rgba(255,255,255,0.02);
}
.tw-feed-bar--hidden {
  display: none !important;
}

/* "過去の投稿" ラベル */
.tw-bar-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #4b5563;
  padding: 0 16px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tw-bar-label i { font-size: 0.6rem; }

/* 横スクロールトラック */
.tw-bar-scroll {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0 16px 8px;
  scrollbar-width: none;
}
.tw-bar-scroll::-webkit-scrollbar { display: none; }

/* 各カード */
.tw-bar-card {
  -webkit-box-flex: 0 !important;
  -ms-flex: 0 0 200px !important;
  flex: 0 0 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 12px;
  box-sizing: border-box;
}

/* カード上部：名前・タグ・時刻 */
.tw-bar-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #d1d5db;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
}
.tw-bar-tag {
  font-size: 0.58rem;
  font-weight: 600;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 1px 5px;
  color: #9ca3af;
  flex-shrink: 0;
}
.tw-bar-time {
  font-size: 0.68rem;
  color: #4b5563;
  margin-left: auto;
  flex-shrink: 0;
}

/* カード本文 */
.tw-bar-body {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  white-space: pre-wrap;
}

/* =============================================
   TWEET FEED → SCHEDULE セクション間スペース
   ============================================= */
.tweet-bar-section {
  margin-bottom: 0;
}
#schedule {
  padding-top: 80px !important;   /* ツイートとの間にゆとり（確実に上書き） */
  padding-bottom: 72px !important;
}

/* =============================================
   CONTACT INFO EDIT MODAL
   ============================================= */
.ci-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 16px;
}
.ci-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.ci-modal-box {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.ci-modal-overlay.open .ci-modal-box {
  transform: translateY(0);
}
.ci-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--gray-800);
}
.ci-modal-title {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--white);
}
.ci-modal-body {
  padding: 20px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ci-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--gray-800);
  margin-top: 6px;
}
/* se-field / se-label / se-input / se-error は index.html 内で使うため再定義 */
.ci-modal-box .se-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ci-modal-box .se-label {
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.15em;
  color: var(--gray-500);
}
.ci-modal-box .se-input {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--white);
  font-family: var(--font-jp);
  font-size: 0.85rem;
  width: 100%;
  transition: border-color var(--transition);
}
.ci-modal-box .se-input:focus {
  outline: none;
  border-color: var(--gray-400);
}
.ci-modal-box .se-input::placeholder {
  color: var(--gray-600);
}
.ci-modal-box .se-error {
  font-size: 0.72rem;
  color: #f87171;
  min-height: 18px;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .ci-modal-box { border-radius: 8px; }
  .ci-modal-header { padding: 18px 16px 12px; }
  .ci-modal-body   { padding: 16px 16px 8px; }
  .ci-modal-footer { padding: 12px 16px 16px; }
}

/* ================================================
   問い合わせモーダル（共通 .inq-* クラス）
   partner-sale / goods で共用
   ============================================== */
.inq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 4500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.inq-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.inq-box {
  background: var(--gray-900, #111);
  border: 1px solid var(--gray-700, #333);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: inqSlideUp 0.28s ease;
}
@keyframes inqSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.inq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--gray-800, #222);
}
.inq-title {
  font-family: var(--font-en, 'Jost', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white, #fff);
  display: flex;
  align-items: center;
  gap: 8px;
}
.inq-title i { color: #60a5fa; font-size: 0.8rem; }

.inq-close {
  background: transparent;
  border: 1px solid var(--gray-700, #333);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400, #aaa);
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.inq-close:hover { border-color: var(--gray-300); color: var(--white); }

.inq-body {
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 商品プレビュー */
.inq-product-info {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gray-800, #222);
  border-radius: 10px;
  padding: 12px 14px;
}
.inq-product-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inq-product-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gray-700, #333);
  flex-shrink: 0;
}
.inq-product-thumb-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--gray-700, #333);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600, #666);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.inq-product-company {
  font-size: 0.65rem;
  color: var(--gray-500, #888);
  font-weight: 500;
  margin-bottom: 2px;
}
.inq-product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white, #fff);
  line-height: 1.3;
}

/* フォームフィールド */
.inq-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.inq-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray-400, #aaa);
  text-transform: uppercase;
}
.inq-req {
  color: #f87171;
  margin-left: 2px;
}
.inq-input,
.inq-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gray-700, #333);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--white, #fff);
  font-family: var(--font-jp, 'Noto Sans JP', sans-serif);
  font-size: 0.82rem;
  width: 100%;
  transition: border-color 0.2s;
}
.inq-input:focus,
.inq-textarea:focus {
  outline: none;
  border-color: #60a5fa;
}
.inq-input::placeholder,
.inq-textarea::placeholder { color: var(--gray-600, #666); }
.inq-textarea { resize: vertical; min-height: 100px; }

.inq-note {
  font-size: 0.7rem;
  color: var(--gray-500, #888);
  line-height: 1.5;
}
.inq-note i { margin-right: 4px; color: #fbbf24; }

.inq-error {
  font-size: 0.72rem;
  color: #f87171;
  min-height: 18px;
}

/* フッター */
.inq-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--gray-800, #222);
}

.inq-btn-cancel {
  background: transparent;
  border: 1px solid var(--gray-700, #333);
  border-radius: 100px;
  padding: 8px 20px;
  color: var(--gray-400, #aaa);
  font-family: var(--font-en, 'Jost', sans-serif);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  cursor: pointer;
  transition: all 0.2s;
}
.inq-btn-cancel:hover { border-color: var(--gray-400); color: var(--gray-200); }

.inq-btn-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 100px;
  padding: 9px 22px;
  color: #fff;
  font-family: var(--font-en, 'Jost', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.inq-btn-send:hover { background: #1d4ed8; border-color: #1d4ed8; }
.inq-btn-send i { font-size: 0.7rem; }

/* 問い合わせ起動ボタン（カード上） */
.ps-card-inq-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  background: rgba(37, 99, 235, 0.85);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  backdrop-filter: blur(4px);
  opacity: 0;
}
.ps-card:hover .ps-card-inq-btn { opacity: 1; }
.ps-card-inq-btn:hover { background: rgba(29, 78, 216, 0.95); transform: scale(1.1); }

/* 詳細モーダル内の問い合わせボタン */
.ps-inq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  color: #fff;
  font-family: var(--font-jp, 'Noto Sans JP', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.ps-inq-btn:hover { opacity: 0.88; }
.ps-inq-btn i { font-size: 0.78rem; }

/* グッズ詳細モーダルの問い合わせボタン */
.goods-modal-inq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 100px;
  padding: 9px 20px;
  color: #fff;
  font-family: var(--font-jp, 'Noto Sans JP', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.goods-modal-inq-btn:hover { opacity: 0.88; }
.goods-modal-inq-btn i { font-size: 0.7rem; }

/* グッズ詳細モーダル カタログPDFボタン */
.gm-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.45);
  border-radius: 100px;
  padding: 8px 18px;
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  margin-bottom: 10px;
}
.gm-pdf-btn:hover {
  background: rgba(248,113,113,0.22);
  border-color: rgba(248,113,113,0.7);
  color: #fff;
}
.gm-pdf-btn i { font-size: 0.85rem; }

/* レスポンシブ */
@media (max-width: 480px) {
  .inq-box {
    border-radius: 12px;
    max-height: 95vh;
  }
  .inq-body { padding: 16px 16px 12px; gap: 12px; }
  .inq-footer { padding: 12px 16px 16px; }
  .inq-header { padding: 16px 16px 12px; }
}

/* =============================================
   ENTRY SYSTEM
   ============================================= */

/* イベントカード内エントリーフッター */
.ev-entry-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ev-entry-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.73rem;
  color: #999;
  line-height: 1.5;
}
.ev-entry-deadline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
}
.ev-entry-deadline.open   { color: #22c55e; }
.ev-entry-deadline.soon   { color: #f97316; }
.ev-entry-deadline.closed { color: #6b7280; }

.ev-entry-count {
  font-size: 0.7rem;
  color: #888;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ev-entry-count:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  color: #a5b4fc;
}

/* 追加参加者バッジ（エントリーモーダル内） */
.entry-item-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.entry-extra-badge {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
  border-radius: 100px;
  padding: 1px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.ev-entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.ev-entry-btn:hover   { opacity: 0.85; transform: scale(1.03); }
.ev-entry-btn.open    { background: linear-gradient(135deg,#22c55e,#16a34a); color: #fff; }
.ev-entry-btn.soon    { background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; }
.ev-entry-btn.closed  { background: #1f2937; color: #6b7280; cursor: default; }
.ev-entry-btn.entered { background: linear-gradient(135deg,#3b82f6,#1d4ed8); color: #fff; }
.ev-entry-btn:disabled { opacity: 0.55; cursor: default; transform: none; }

/* メンバーを見るボタン */
.sa-members-btn {
  font-size: 0.68rem;
  font-weight: 600;
  color: #a0aec0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}
.sa-members-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ======================================
   エントリー一覧ポップアップ
   display:none / display:flex で制御
   pointer-events は display で管理するため不要
   ====================================== */
.entry-list-overlay {
  display: none; /* JS で flex に切り替え */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 6000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.entry-list-overlay.is-open {
  display: flex;
}
#entry-list-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  width: 100%;
  max-width: 380px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}
.entry-list-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.entry-list-hd h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.entry-list-hd button {
  background: none;
  border: none;
  color: #888;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.entry-list-hd button:hover { color: #fff; }
#entry-list-count {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 14px;
  margin-top: 0;
}
#entry-list-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* メンバー一覧ポップアップ */
#sa-members-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 16px;
}
#sa-members-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  width: 100%;
  max-width: 360px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
}
#sa-members-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
#sa-members-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
#sa-members-close {
  background: none;
  border: none;
  color: #888;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}
#sa-members-close:hover { color: #fff; }
#sa-members-count {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 14px;
}
#sa-members-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sa-member-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-member-av {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgba(168,85,247,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}
.sa-member-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
}
.sa-member-note {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 2px;
}

/* エントリー済みカウントバッジ */
.ev-entered-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
}

/* standalone_events カード */
.sa-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.sa-card:hover { border-color: #3a3a3a; }
.sa-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.sa-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg,#a855f7,#7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.sa-card-info { flex: 1; min-width: 0; }
.sa-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-card-meta {
  font-size: 0.73rem;
  color: #999;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sa-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.sa-card-body {
  padding: 0 18px 16px;
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.6;
}
.sa-card-footer {
  border-top: 1px solid #222;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sa-admin-btns {
  display: flex;
  gap: 8px;
}
.sa-admin-edit-btn {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #9ca3af;
  font-size: 0.65rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.sa-admin-edit-btn:hover { border-color: #6b7280; color: #d1d5db; }

/* エントリーモーダル内エントリー済み一覧 */
.entry-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: #ddd;
}
.entry-list-item .entry-item-name { font-weight: 600; }
.entry-list-item .entry-item-memo { color: #888; font-size: 0.72rem; }
.entry-list-item .entry-cancel-btn {
  background: transparent;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #9ca3af;
  font-size: 0.65rem;
  padding: 4px 9px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.entry-list-item .entry-cancel-btn:hover { border-color: #ef4444; color: #ef4444; }

/* 管理者フォーム共通 */
.sa-lbl {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.sa-input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.sa-input:focus { outline: none; border-color: #555; }
.sa-input::placeholder { color: #555; }
textarea.sa-input { resize: vertical; }

/* ================================================================
   ⚡ PERFORMANCE OPTIMIZATIONS — 2026-05-11
   ロジック・レイアウト変更なし。GPU合成レイヤー＆タッチ応答改善のみ。
   ================================================================ */

/* --- 1. アニメーション要素をGPUレイヤーに昇格 ---
   will-changeは既にmarqueeに設定済み。gridもGPU処理させる。      */
.hero-grid {
  will-change: transform;
  transform: translateZ(0);            /* GPU合成レイヤー昇格 */
}

/* --- 2. fixed要素のGPU合成 ---
   iOSでfixedヘッダーの再描画コストを削減                          */
#site-header {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* --- 3. モーダル・ドロワーをGPUレイヤーに昇格 ---
   ボトムシートのアニメーションを滑らかにする                       */
#idx-ev-sheet,
#idx-poll-sheet,
.nav-links {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* --- 4. touch-action: manipulation でタップ遅延(300ms)を排除 ---
   iOSのダブルタップズーム判定待ちを無効化し、ボタン応答を即時にする */
a,
button,
[role="button"],
input,
select,
textarea,
label {
  touch-action: manipulation;
}

/* --- 5. スクロールコンテナの慣性スクロール（iOS） ---             */
.nav-links {
  -webkit-overflow-scrolling: touch;
}

/* --- 6. テキストレンダリング最適化 ---                           */
body {
  text-rendering: optimizeSpeed;      /* geometricPrecision→speedに変更でGPU負荷軽減 */
}

/* --- 7. backdrop-filterのiOS最適化 ---
   -webkit-プレフィックス追加でiOSのブラー処理を確実に適用           */
#site-header.scrolled {
  -webkit-backdrop-filter: blur(12px);
}

/* --- 8. 画像のGPU合成ヒント ---                                  */
img {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* --- 9. containによるレイアウト計算コスト削減 ---
   各セクションを独立した描画コンテキストにする（親要素への影響を遮断）*/
section {
  contain: layout style;
}

/* --- 10. フォームの高速化 ---
   focus時のアウトラインを確実に無効化（独自スタイル使用のため）      */
:focus-visible {
  outline: 2px solid rgba(255,255,255,0.3);
  outline-offset: 2px;
}

/* --- iOS Safari 縦スクロールの詰まり対策 ---                     */
html {
  -webkit-overflow-scrolling: touch;
}

/* --- 高リフレッシュレート対応（120fps ProMotion） ---
   アニメーションをより滑らかにする                                  */
@media (prefers-reduced-motion: no-preference) {
  .hero-clock-track {
    animation-timing-function: linear;
    -webkit-animation-timing-function: linear;
  }
}

/* --- アクセシビリティ: アニメーション無効設定への対応 ---           */
@media (prefers-reduced-motion: reduce) {
  .hero-grid,
  .hero-clock-track,
  .ck-blink {
    animation: none !important;
    -webkit-animation: none !important;
  }
}

@media (max-width: 480px) {
  .ev-entry-footer { flex-direction: column; align-items: flex-start; }
  .sa-card-header   { gap: 10px; }
}

/* =============================================
   EVENT REPORTS（イベント状況タイムライン）
   ============================================= */

/* タイムライン全体 */
.er-timeline {
  position: relative;
  padding-left: 28px;
}
.er-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, #3730a3, #1e1b4b 80%, transparent);
  border-radius: 2px;
}

/* 各カード */
.er-card {
  position: relative;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.er-card:hover { border-color: #333; }

/* タイムラインドット */
.er-card::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4f46e5;
  border: 2px solid #0a0a0a;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.25);
}

/* カードヘッダー（常時表示） */
.er-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
  user-select: none;
}
.er-card-header:hover { background: rgba(255,255,255,0.02); }

.er-cat-badge {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.er-cat-経過状況 { background: rgba(251,191,36,0.12);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.er-cat-結果    { background: rgba(239,68,68,0.15);   color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.er-cat-報告    { background: rgba(99,102,241,0.14);  color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }

.er-card-title-wrap { flex: 1; min-width: 0; }
.er-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.er-card-date {
  font-size: 0.68rem;
  color: #6b7280;
  margin-top: 2px;
}

.er-chevron {
  flex-shrink: 0;
  color: #4b5563;
  font-size: 0.72rem;
  transition: transform 0.25s ease;
}
.er-card.open .er-chevron { transform: rotate(180deg); }

/* 展開コンテンツ */
.er-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.er-card.open .er-card-body { max-height: 1200px; }

.er-card-body-inner {
  padding: 0 14px 14px;
  border-top: 1px solid #1c1c1c;
}

/* 本文 */
.er-body-text {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.75;
  white-space: pre-wrap;
  margin: 10px 0 12px;
}

/* 動画 */
.er-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #000;
}
.er-video-wrap iframe,
.er-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 画像サムネイルグリッド */
.er-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 4px;
}
.er-img-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: #1a1a1a;
  position: relative;
}
.er-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s, opacity 0.3s;
  opacity: 0;
}
.er-img-thumb img.loaded { opacity: 1; }
.er-img-thumb:hover img { transform: scale(1.06); }

/* 残り枚数バッジ */
.er-img-more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
}

/* ============================================================
   ライトボックス共通スタイル (lightbox.js)
   ============================================================ */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#lb-overlay.lb-open {
  display: flex;
}
#lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}
#lb-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 94vw;
  max-height: 90vh;
}
#lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  transition: opacity 0.2s;
  display: block;
}
#lb-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}
#lb-counter {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  white-space: nowrap;
}
#lb-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#lb-close:hover { background: rgba(255,255,255,0.3); }
#lb-prev,
#lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#lb-prev { left: 12px; }
#lb-next { right: 12px; }
#lb-prev:hover,
#lb-next:hover { background: rgba(255,255,255,0.3); }

/* タップ可能な画像のホバー演出 */
img.lb-trigger {
  cursor: zoom-in;
  transition: opacity 0.2s;
}
img.lb-trigger:hover { opacity: 0.88; }

/* 管理者ボタン */
.er-admin-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1c1c1c;
}
.er-admin-btn {
  font-size: 0.65rem;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #374151;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}
.er-admin-btn:hover { border-color: #6b7280; color: #e5e7eb; }
.er-admin-btn.del:hover { border-color: #ef4444; color: #ef4444; }

/* スライダーオーバーレイのドット */
.er-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.er-slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

@media (max-width: 480px) {
  .er-img-grid { grid-template-columns: repeat(2, 1fr); }
  .er-timeline { padding-left: 22px; }
}

/* ---- イメージ編集 サブメニュー ---- */
.nav-icon-edit-link {
  position: relative;
}
.nav-sub-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 6px 0;
  margin-top: 4px;
  list-style: none;
}
.nav-icon-edit-link.sub-open .nav-sub-menu {
  display: flex;
}
.nav-sub-menu li a {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 0.82rem;
  color: #bbb;
  transition: color 0.2s, background 0.2s;
}
.nav-sub-menu li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* =============================================
   TROUBLE SHOOTING MODAL
   フッターのトラブル・アカウント設定ボタン＋モーダル
   ============================================= */

/* ── フッター ボタングループ（トラブル＋ガイド） ── */
.footer-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ── フッター トラブルジャンプボタン ── */
.footer-trouble-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: rgba(129,140,248,0.12);
  border: 1.5px solid rgba(129,140,248,0.55);
  border-radius: 10px;
  color: #a5b4fc;
  font-family: var(--font-jp,'Noto Sans JP',sans-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.footer-trouble-btn:hover {
  background: rgba(129,140,248,0.22);
  border-color: rgba(129,140,248,0.9);
  color: #e0e7ff;
  transform: translateY(-2px);
}
.footer-trouble-btn i {
  font-size: 0.78rem;
  color: #818cf8;
}
/* ── ガイドボタンのアイコン色だけ変える ── */
.footer-guide-btn i {
  color: #c084fc;
}
.footer-guide-btn {
  border-color: rgba(192,132,252,0.5);
}
.footer-guide-btn:hover {
  border-color: rgba(192,132,252,0.9);
}

/* ── フッター ガイドボタン（紫系） ── */
.footer-guide-btn {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.5);
  color: #c084fc;
}
.footer-guide-btn:hover {
  background: rgba(168,85,247,0.22);
  border-color: rgba(168,85,247,0.9);
  color: #e9d5ff;
}
.footer-guide-btn i {
  color: #a855f7;
}

/* ── オーバーレイ ── */
.trouble-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 7000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.trouble-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── モーダル本体（ボトムシート風） ── */
.trouble-modal {
  width: 100%;
  max-width: 480px;
  background: #111;
  border: 1px solid #1f2937;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  max-height: 92svh;
  overflow-y: auto;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32,0.72,0,1);
  overscroll-behavior: contain;
}
.trouble-overlay.open .trouble-modal {
  transform: translateY(0);
}
.trouble-modal::-webkit-scrollbar { display: none; }

/* ── ヘッダー ── */
.trouble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  background: #111;
  z-index: 1;
}
.trouble-header-left {
  display: flex;
  align-items: center;
}
.trouble-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f3f4f6;
  letter-spacing: 0.03em;
}
.trouble-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.trouble-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── ステップインジケーター ── */
.trouble-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 20px 0;
}
.ts-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  background: #1f2937;
  color: #6b7280;
  border: 1px solid #374151;
  transition: all 0.25s;
  flex-shrink: 0;
}
.ts-dot.active { background: #818cf8; color: #fff; border-color: #818cf8; }
.ts-dot.done   { background: rgba(74,222,128,0.15); color: #4ade80; border-color: rgba(74,222,128,0.4); }
.ts-line {
  flex: 1;
  height: 1px;
  background: #374151;
  max-width: 28px;
}

/* ── パネル共通 ── */
.trouble-panel { display: none; padding: 20px 20px 8px; }
.trouble-panel.active { display: block; }

.ts-panel-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 4px;
}
.ts-panel-desc {
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ── エラーボックス ── */
.ts-err {
  display: none;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.75rem;
  color: #f87171;
  margin-bottom: 14px;
  line-height: 1.6;
}
.ts-err.show { display: block; }

/* ── フォーム ── */
.ts-label {
  display: block;
  font-size: 0.68rem;
  color: #6b7280;
  margin-bottom: 5px;
  letter-spacing: 0.05em;
}
.ts-input {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #f3f4f6;
  padding: 10px 13px;
  font-size: 0.85rem;
  font-family: var(--font-jp,'Noto Sans JP',sans-serif);
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.ts-input:focus { border-color: #818cf8; }

/* ── パスコード ── */
.ts-passcode {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}
.ts-passcode .ts-pc-digit {
  width: 54px;
  height: 60px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-en,'Jost',sans-serif);
  background: #0d0d0d;
  border: 1px solid #374151;
  border-radius: 10px;
  color: #f3f4f6;
  outline: none;
  margin-bottom: 0;
  padding: 0;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.ts-passcode .ts-pc-digit:focus { border-color: #818cf8; }

/* ── ボタン ── */
.ts-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-jp,'Noto Sans JP',sans-serif);
  transition: opacity 0.2s;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.ts-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ts-btn-primary { background: #818cf8; color: #fff; }
.ts-btn-primary:not(:disabled):hover { opacity: 0.85; }
.ts-btn-ghost {
  background: transparent;
  border: 1px solid #374151;
  color: #6b7280;
}
.ts-btn-ghost:hover { border-color: #6b7280; color: #d1d5db; }

/* ── トップメニュー ── */
.ts-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.ts-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #0d0d0d;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}
.ts-menu-item:hover {
  border-color: rgba(129,140,248,0.5);
  background: rgba(129,140,248,0.05);
}
.ts-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(129,140,248,0.12);
  border: 1px solid rgba(129,140,248,0.25);
  color: #818cf8;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ts-menu-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.ts-menu-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f3f4f6;
  display: block;
}
.ts-menu-sub {
  font-size: 0.68rem;
  color: #6b7280;
  display: block;
  line-height: 1.4;
}
.ts-menu-arrow {
  color: #374151;
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* ── カードグリッド ── */
.ts-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 2px;
}
.ts-card-grid::-webkit-scrollbar { width: 3px; }
.ts-card-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.ts-card-item {
  border: 2px solid #1f2937;
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  position: relative;
  background: #0d0d0d;
}
.ts-card-item:hover { transform: translateY(-1px); border-color: #374151; }
.ts-card-item.selected { border-color: #818cf8; box-shadow: 0 0 0 2px rgba(129,140,248,0.25); }

.ts-card-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #818cf8;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}
.ts-card-item.selected .ts-card-check { display: flex; }

.ts-card-icon { font-size: 1.2rem; color: #818cf8; margin-bottom: 7px; }
.ts-card-name { font-size: 0.76rem; font-weight: 700; color: #f3f4f6; line-height: 1.3; margin-bottom: 2px; }
.ts-card-role { font-size: 0.62rem; color: #6b7280; }
.ts-card-used { font-size: 0.58rem; color: #f59e0b; margin-top: 2px; }

.ts-loading {
  grid-column: span 2;
  text-align: center;
  padding: 20px;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.7;
}

/* ── スピナー ── */
.ts-spin {
  display: inline-block;
  animation: ts-rotate 0.8s linear infinite;
}
@keyframes ts-rotate { to { transform: rotate(360deg); } }

/* ── 完了パネル ── */
.ts-complete {
  text-align: center;
  padding: 16px 0 8px;
}
.ts-complete-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.ts-complete-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 6px;
}
.ts-complete-desc {
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 16px;
}
.ts-complete-card {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ── キャッシュクリアパネル ── */
.ts-cache-result {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.ts-cache-result:empty { display: none; }
.ts-cache-ok {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
}
.ts-cache-err {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ── デスクトップ：中央寄せ ── */
@media (min-width: 600px) {
  .trouble-overlay {
    align-items: center;
    padding: 20px;
  }
  .trouble-modal {
    border-radius: 20px;
    border-bottom: 1px solid #1f2937;
    max-height: 88vh;
  }
}
