@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&family=Laila:wght@300;400;500;600&family=Noto+Sans+JP:wght@400;500;600;700;800&family=Shippori+Mincho:wght@400;500;600&display=swap');

:root {
  /* 淡いマルチカラー パレット */
  --lavender: #b8a6f0;
  --lavender-soft: #efeafe;
  --pink: #f4a9cf;
  --pink-soft: #fde7f1;
  --peach: #f8b78f;
  --peach-soft: #ffeede;
  --mint: #7fd9b3;
  --mint-soft: #dcf6ec;
  --sky: #8fc9f3;
  --sky-soft: #e3f3fd;
  --lemon: #f5d871;
  --lemon-soft: #fdf6d8;

  --primary: #9a85ec;
  --primary-deep: #7f67e0;
  --text: #4a4068;
  --muted: #908aa6;
  --bg: #faf8ff;
  --card-bg: #fff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* グラスモーフィズム */
  --glass-bg: rgba(255, 255, 255, 0.30);
  --glass-border: 1px solid rgba(255, 255, 255, 0.50);
  --glass-blur: blur(14px) saturate(160%);

  /* 柔らかい多層シャドウ */
  --shadow-sm: 0 1px 2px rgba(74, 64, 104, 0.04), 0 2px 8px rgba(74, 64, 104, 0.05);
  --shadow-md: 0 6px 18px rgba(154, 133, 236, 0.10), 0 2px 8px rgba(244, 169, 207, 0.08);
  --shadow-lg: 0 18px 44px rgba(154, 133, 236, 0.18), 0 6px 16px rgba(143, 201, 243, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 美しいオーロラ背景 */
@keyframes aurora-drift {
  0%   { transform: scale(1)    translate(0px,   0px);  }
  25%  { transform: scale(1.04) translate(18px, -12px); }
  50%  { transform: scale(1.02) translate(-10px, 16px); }
  75%  { transform: scale(1.05) translate(8px,  -8px);  }
  100% { transform: scale(1)    translate(0px,   0px);  }
}
body::before {
  content: '';
  position: fixed;
  inset: -8%;
  z-index: -1;
  background:
    radial-gradient(ellipse 75% 55% at 18% 12%,  rgba(184, 166, 240, 0.52), transparent 58%),
    radial-gradient(ellipse 65% 50% at 84%  8%,  rgba(143, 201, 243, 0.46), transparent 55%),
    radial-gradient(ellipse 58% 68% at 78% 88%,  rgba(127, 217, 179, 0.42), transparent 55%),
    radial-gradient(ellipse 62% 52% at  8% 82%,  rgba(244, 169, 207, 0.46), transparent 55%),
    radial-gradient(ellipse 45% 58% at 52% 48%,  rgba(248, 183, 143, 0.22), transparent 58%),
    radial-gradient(ellipse 40% 40% at 32% 62%,  rgba(245, 216, 113, 0.18), transparent 52%),
    linear-gradient(160deg, #fdfcff 0%, #f6f2ff 35%, #eef6ff 65%, #f2fff8 100%);
  animation: aurora-drift 20s ease-in-out infinite;
}

/* Header：淡いマルチカラーのグラデーション */
header {
  background: linear-gradient(120deg, #cbb9f5 0%, #f6c2dd 40%, #c2e0f7 75%, #bfeede 100%);
  color: #463a6b;
  padding: 24px 0 0;
  box-shadow: 0 10px 34px rgba(154, 133, 236, 0.20);
  position: relative;
  overflow: hidden;
}
header::after {
  content: '';
  position: absolute;
  top: -55%;
  right: -8%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 65%);
  pointer-events: none;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.header-logo {
  display: block;
  text-decoration: none;
  width: fit-content;
}
.header-logo svg {
  width: auto;
  height: 96px;
}
.header-instruments {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
@keyframes instrument-bob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}
.header-instrument {
  height: 96px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  animation: instrument-bob 3.8s ease-in-out infinite;
  transition: opacity 0.4s var(--ease);
}
.header-instrument:nth-child(2) { animation-delay: 1.2s; }
header:hover .header-instrument { opacity: 0.7; }

/* ナビ：浮遊するグラスピル */
nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 16px 16px 0 0;
  transform: translateY(1px);
}
nav a {
  color: #5a4d80;
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
nav a:hover { color: #3f3266; background: rgba(255, 255, 255, 0.45); }
nav a.active {
  background: #fbf9ff;
  color: var(--primary-deep);
  font-weight: 700;
  box-shadow: 0 -2px 12px rgba(154, 133, 236, 0.18);
}
nav a:nth-child(1).active { color: #c050a0; background: rgba(192,80,160,0.12); }
nav a:nth-child(2).active { color: #c86040; background: rgba(200,96,64,0.12); }
nav a:nth-child(3).active { color: #4a86e0; background: rgba(74,134,224,0.12); }
nav a:nth-child(4).active { color: #28a876; background: rgba(40,168,118,0.12); }
nav a:nth-child(5).active { color: #2090d0; background: rgba(32,144,208,0.12); }
nav a:nth-child(6).active { color: #c07030; background: rgba(192,112,48,0.12); }
nav a:nth-child(7).active { color: #7055d0; background: rgba(112,85,208,0.12); }
nav a:nth-child(8).active { color: #c04090; background: rgba(192,64,144,0.12); }
nav a:nth-child(9).active { color: #5048c0; background: rgba(80,72,192,0.12); }

/* Main */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 24px 56px;
  flex: 1;
  width: 100%;
}

/* Demo banner */
.demo-banner {
  background: linear-gradient(120deg, var(--lemon-soft), #fffdf3);
  border: 1px solid #f3e09a;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  color: #9a7b2e;
  box-shadow: var(--shadow-sm);
}

/* Filters */
.filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
}
.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* 検索ボックス */
.search-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-wrap input[type="text"] {
  flex: 1;
}
.search-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 2px 10px rgba(154, 133, 236, 0.30);
  letter-spacing: 0.03em;
}
.search-btn:hover {
  background: var(--primary-deep);
  box-shadow: 0 4px 16px rgba(154, 133, 236, 0.45);
  transform: translateY(-1px);
}
.search-btn:active {
  transform: translateY(0);
}

.filters input[type="text"] {
  padding: 13px 18px 13px 46px;
  border: 1px solid rgba(154, 133, 236, 0.22);
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-family: inherit;
  background-color: rgba(255, 255, 255, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23908aa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 18px center;
  background-size: 17px 17px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.filters input[type="text"]::placeholder { color: #a8a3bb; }
.filters input[type="text"]:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(154, 133, 236, 0.15);
}

/* セレクト（都道府県） */
.filters select {
  padding: 11px 38px 11px 16px;
  border: 1px solid rgba(154, 133, 236, 0.22);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a85ec' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 15px;
  color: var(--text);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.filters select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(154, 133, 236, 0.15);
}

/* Filter Group (ボタングループ) */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border: 1px solid rgba(154, 133, 236, 0.22);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover {
  background: #fff;
  color: var(--primary-deep);
  border-color: rgba(154, 133, 236, 0.5);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: linear-gradient(120deg, #a892ee, #ef9fcb);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(184, 166, 240, 0.4);
}

/* Loading / no result */
.loading-msg, .no-result {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}
.hidden { display: none; }

/* インラインアイコン（SVG img） */
.ic-inline {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin-right: 3px;
  flex-shrink: 0;
}

/* Grid */
.concert-grid, .group-grid, .score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* Cards 共通 */
.concert-card, .group-card, .submit-card, .score-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.concert-card, .group-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

/* カード右上の編集ボタン */
.card-edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-deep);
  line-height: 1;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(155,134,217,0.35);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  cursor: pointer;
}
.concert-card:hover .card-edit-btn,
.group-card:hover .card-edit-btn {
  opacity: 1;
}
.card-edit-btn:hover {
  background: rgba(154,133,236,0.15);
}
/* カード上部のレインボーアクセントライン */
.concert-card::before, .group-card::before, .score-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f4a9cf, #f8b78f, #f5d871, #7fd9b3, #8fc9f3, #b8a6f0);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.concert-card:hover, .group-card:hover, .score-card:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.9);
}
.concert-card:hover::before, .group-card:hover::before, .score-card:hover::before { opacity: 1; }

.concert-card.past {
  opacity: 0.62;
  filter: grayscale(0.2);
}

/* チラシサムネイル（カード） */
.concert-card-flyer {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 14px;
  display: block;
}

/* チラシ（モーダル） */
.detail-flyer-wrap {
  text-align: center;
  margin-top: 18px;
  margin-bottom: 18px;
}
.detail-flyer {
  max-width: 100%;
  max-height: 320px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(120, 96, 220, 0.18);
  cursor: zoom-in;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.detail-flyer:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(120, 96, 220, 0.28);
}

/* チラシ拡大ライトボックス */
.flyer-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 6, 30, 0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.flyer-lightbox.open {
  display: flex;
  animation: fadeIn 0.18s ease;
}
.flyer-lightbox-inner {
  position: relative;
  max-width: min(90vw, 600px);
  max-height: 90vh;
}
#flyer-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 12px 60px rgba(0,0,0,0.6);
  object-fit: contain;
}
.flyer-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: background 0.15s;
}
.flyer-lightbox-close:hover { background: #fff; }

.card-date {
  font-size: 1.05rem;
  color: var(--primary-deep);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.past-label {
  background: rgba(144, 138, 166, 0.14);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}
.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.45;
  letter-spacing: 0.005em;
}
.card-group {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.card-venue {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.card-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
.card-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.tag {
  display: inline-block;
  background: var(--lavender-soft);
  color: var(--primary-deep);
  font-size: 0.74rem;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-bottom: 10px;
}
.badge-recruiting {
  display: inline-block;
  background: linear-gradient(120deg, #7fd9b3, #4898d0);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.detail-recruit-box {
  background: linear-gradient(135deg, rgba(127,217,179,0.12), rgba(143,201,243,0.12));
  border: 1.5px solid rgba(127,217,179,0.4);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
}
.detail-recruit-title {
  font-weight: 800;
  color: #2a8a6a;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.detail-recruit-row {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  margin-bottom: 7px;
  line-height: 1.5;
}
.detail-recruit-row span:first-child {
  color: var(--muted);
  min-width: 80px;
  flex-shrink: 0;
}
.detail-recruit-row a {
  color: var(--primary-deep);
  word-break: break-all;
}

.card-link {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(120deg, #9a85ec, #6aa9ea);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(154, 133, 236, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(143, 201, 243, 0.36); }
.card-link.secondary {
  background: transparent;
  border: 1.5px solid rgba(154, 133, 236, 0.4);
  color: var(--primary-deep);
  box-shadow: none;
}
.card-link.secondary:hover { background: var(--lavender-soft); box-shadow: none; }

/* Submit page */
.submit-page h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.submit-page > p { color: var(--muted); margin-bottom: 32px; font-size: 0.95rem; }

.submit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.submit-card {
  padding: 30px 26px;
  text-align: center;
}
.submit-card:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.submit-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.submit-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; line-height: 1.6; }

.btn {
  display: inline-block;
  background: linear-gradient(120deg, #9a85ec, #6aa9ea);
  color: white;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(154, 133, 236, 0.3);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(143, 201, 243, 0.4); }

.submit-note {
  background: linear-gradient(120deg, var(--mint-soft), #effbf5);
  border: 1px solid rgba(127, 217, 179, 0.45);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.submit-note h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; color: #2f9268; }
.submit-note ul { padding-left: 22px; }
.submit-note li { font-size: 0.9rem; color: #357a5c; margin-bottom: 6px; }

/* 楽譜フォーム PDFサポートバナー */
.pdf-support-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(120deg, #fff8e1, #fffde7);
  border: 1.5px solid #f5d871;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(245, 216, 113, 0.25);
}
.pdf-support-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.pdf-support-banner strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: #7a5c00;
  margin-bottom: 4px;
}
.pdf-support-banner p {
  font-size: 0.88rem;
  color: #8a6f1a;
  line-height: 1.7;
  margin: 0;
}
.pdf-support-link {
  color: #7a5c00;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 登録フォーム */
.submit-form-section {
  margin-bottom: 40px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
  animation: formIn 0.35s var(--ease);
}
@keyframes formIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-heading {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-heading::before {
  content: '';
  width: 6px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--pink), var(--lavender));
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 24px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.form-field.full { grid-column: 1 / -1; }
.form-field span em { color: var(--pink); font-style: normal; font-weight: 700; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border: 1px solid rgba(154, 133, 236, 0.22);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.form-field textarea { resize: vertical; line-height: 1.6; }
.form-field select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a85ec' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 38px;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #b3aec5; font-weight: 400; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(154, 133, 236, 0.15);
}
.submit-form .btn { border: none; cursor: pointer; }
.submit-form input[name="_honey"] { display: none !important; }

/* Footer */
footer {
  background: linear-gradient(120deg, #c2e0f7 0%, #cbb9f5 50%, #f6c2dd 100%);
  color: #50436f;
  text-align: center;
  padding: 24px 16px;
  font-size: 0.82rem;
}
footer a { color: #3f3266; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* 訪問者カウンター */
.visit-counter {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(80, 67, 111, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.vc-num { font-size: 0.85rem; font-weight: 600; color: rgba(100, 80, 140, 0.55); }
.vc-admin {
  font-size: 0.72rem;
  color: rgba(100, 80, 140, 0.3);
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s;
}
.vc-admin:hover { opacity: 0.7; }

/* 共通ページヒーロー */
.page-hero {
  text-align: center;
  padding: 48px 24px 40px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f4a9cf, #f8b78f, #f5d871, #7fd9b3, #8fc9f3, #b8a6f0);
}
.page-hero h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--primary-deep), #e07ab0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.35;
}
.page-hero p {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.85;
}
.page-hero-sub {
  font-size: 0.84rem !important;
  color: var(--muted) !important;
  max-width: 620px !important;
  margin: 14px auto 0 !important;
  line-height: 1.8 !important;
  padding: 12px 18px;
  background: rgba(154, 133, 236, 0.07);
  border-left: 3px solid rgba(154, 133, 236, 0.35);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: left;
}

/* ========================================
   団体一覧 — 掲載数バッジ
   ======================================== */
.groups-stat-wrap {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}
.groups-stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 38px;
  background: linear-gradient(130deg, var(--primary) 0%, #e07ab0 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 28px rgba(154, 133, 236, 0.38), 0 2px 8px rgba(224, 122, 176, 0.22);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.groups-stat-pill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 52%;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px 999px 50% 50% / 100% 100% 64% 64%;
  pointer-events: none;
}
.groups-stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
}
.groups-stat-unit {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.93;
  position: relative;
  z-index: 1;
}
.groups-count-bar {
  text-align: right;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 6px;
  padding: 0 4px;
}

/* Scores page */
.scores-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}
.scores-intro-text h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.scores-intro-text p { color: var(--muted); font-size: 0.92rem; line-height: 1.75; }
.scores-intro-instruments {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-shrink: 0;
}
.scores-intro-instruments img {
  height: 104px;
  width: auto;
  opacity: 0.55;
  filter: drop-shadow(0 6px 14px rgba(154, 133, 236, 0.22));
}

.scores-notice {
  background: linear-gradient(120deg, var(--lemon-soft), #fffdf3);
  border: 1px solid #f3e09a;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.83rem;
  color: #9a7b2e;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.scores-notice a { color: #876717; }

.license-alert {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, #fff8e6 0%, #fffcf2 60%, #fff3f0 100%);
  border: 1.5px solid #e8c060;
  border-left: 6px solid #e09030;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(232,144,48,0.13), 0 1px 4px rgba(232,144,48,0.08);
}
.license-alert-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  filter: drop-shadow(0 2px 4px rgba(200,100,0,0.18));
}
.license-alert-body { flex: 1; min-width: 0; }
.license-alert-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #7a4800;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.license-alert-lead {
  font-size: 0.93rem;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.7;
}
.license-alert-lead strong { color: #c05000; }
.license-alert-list {
  padding-left: 20px;
  font-size: 0.87rem;
  color: #5a4428;
  line-height: 1.9;
  list-style: disc;
}
.license-alert-list li { margin-bottom: 2px; }
.license-alert-footer {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #8a6030;
  border-top: 1px dashed #e8c880;
  padding-top: 10px;
}
.license-alert-footer a { color: #b06020; font-weight: 600; }
@media (max-width: 600px) {
  .license-alert { flex-direction: column; gap: 10px; padding: 18px 20px; }
  .license-alert-icon { font-size: 1.8rem; }
}

.score-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  overflow: hidden;
}
.score-card-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.score-price-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}
.score-price-badge.free {
  background: var(--mint-soft);
  color: #2f9268;
  border: 1px solid rgba(127, 217, 179, 0.5);
}
.score-price-badge.paid {
  background: var(--peach-soft);
  color: #d07a35;
  border: 1px solid rgba(248, 183, 143, 0.6);
}

.score-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.score-instrument {
  font-size: 0.82rem;
  color: var(--primary-deep);
  font-weight: 600;
}
.score-difficulty {
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--pink);
}
.score-license {
  font-size: 0.74rem;
  color: #b0abc2;
  margin-top: auto;
  padding-top: 6px;
}

.card-link.paid-link {
  background: linear-gradient(120deg, #f6a96a, #f3c069);
  box-shadow: 0 4px 12px rgba(248, 183, 143, 0.4);
}
.card-link.paid-link:hover { box-shadow: 0 8px 18px rgba(245, 216, 113, 0.5); }

.scores-cta {
  margin-top: 56px;
  text-align: center;
  padding: 40px 32px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.scores-cta p { color: var(--text); margin-bottom: 20px; font-size: 1rem; font-weight: 500; }

/* 過去の演奏会トグル */
.past-toggle-wrap {
  text-align: center;
  padding: 24px 0 8px;
}
.past-toggle-btn {
  background: transparent;
  border: 1.5px solid rgba(154, 133, 236, 0.35);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.past-toggle-btn:hover {
  background: var(--lavender-soft);
  color: var(--primary-deep);
  border-color: rgba(154, 133, 236, 0.6);
}

/* ========================================
   サイトの使い方ガイド（トップページ）
   ======================================== */
.site-guide {
  margin-bottom: 40px;
}
.site-guide-intro {
  text-align: center;
  margin-bottom: 28px;
}
.site-guide-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(120deg, var(--primary-deep), #6aa9ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-guide-desc {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.85;
}
.site-guide-desc strong { color: var(--text); }

/* ガイドカード3枚 */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}
.guide-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.guide-card--concert::before  { background: linear-gradient(90deg, #f4a9cf, #b8a6f0); }
.guide-card--scores::before   { background: linear-gradient(90deg, #7fd9b3, #8fc9f3); }
.guide-card--groups::before   { background: linear-gradient(90deg, #f8b78f, #f5d871); }
.guide-card--recruit::before  { background: linear-gradient(90deg, #7fd9b3, #b8a6f0); }
.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.9);
}
.guide-card:hover::before { opacity: 1; }

.gc-icon {
  padding: 22px 24px 0;
  line-height: 1;
  font-size: 2.2rem;
}
.gc-icon img {
  width: 46px;
  height: 46px;
  display: block;
}
.gc-body {
  padding: 14px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gc-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.gc-body p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.gc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gc-features li {
  font-size: 0.81rem;
  color: var(--text);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}
.gc-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
}
.gc-link {
  margin-top: auto;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
}

/* 登録バナー */
.guide-submit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(120deg, var(--lavender-soft), var(--sky-soft));
  border: 1px solid rgba(154, 133, 236, 0.25);
  border-radius: var(--radius);
  padding: 16px 24px;
  flex-wrap: wrap;
}
.gsb-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-deep);
}
.gsb-btn {
  display: inline-block;
  background: linear-gradient(120deg, #9a85ec, #6aa9ea);
  color: white;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(154, 133, 236, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.gsb-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(143, 201, 243, 0.36); }

/* Responsive */
@media (max-width: 720px) {
  .header-inner { padding: 0 18px; }
  main { padding: 28px 18px 44px; }
  .header-text h1 { font-size: 1.3rem; }
  .header-instrument { height: 56px; }
  .header-logo svg { height: 56px; }
  nav { overflow-x: auto; max-width: 100%; }
  nav a { padding: 9px 16px; white-space: nowrap; }
}

@media (max-width: 600px) {
  .filters { padding: 18px; gap: 16px; }
  .concert-grid, .group-grid, .score-grid { grid-template-columns: 1fr; }
  .scores-intro { flex-direction: column; align-items: flex-start; }
  .scores-intro-instruments img { height: 80px; }
  .guide-cards { grid-template-columns: 1fr; gap: 14px; }
  .site-guide-title { font-size: 1.2rem; }
  .guide-submit-banner { flex-direction: column; text-align: center; }
}

@media (min-width: 601px) and (max-width: 860px) {
  .guide-cards { grid-template-columns: 1fr 1fr; }
  .guide-card:last-child { grid-column: auto; }
  .gc-body p { display: none; }
}

.br-pc { display: block; }
@media (max-width: 600px) { .br-pc { display: none; } }

.hero-register-link {
  margin-top: 14px;
  font-size: 0.85rem;
}
.hero-register-link a {
  color: var(--primary-deep);
  font-weight: 600;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.hero-register-link a:hover { opacity: 1; }

/* =====================================================
   クリック可能カード
   ===================================================== */
.clickable-card {
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.clickable-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card-detail-hint {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.7;
}

/* =====================================================
   詳細モーダル（団体・団員募集 共通）
   ===================================================== */
.detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(74, 64, 104, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.detail-overlay.open {
  display: flex;
}
.detail-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 36px 32px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  animation: modal-in 0.22s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@media (max-width: 560px) {
  .detail-panel { padding: 28px 20px 24px; border-radius: var(--radius); }
}
.detail-close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(154, 133, 236, 0.12);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.1rem; line-height: 1;
  color: var(--primary-deep);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.detail-close:hover { background: rgba(154, 133, 236, 0.25); }

.detail-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.detail-tag {
  display: inline-block;
  padding: 3px 11px;
  background: rgba(184, 166, 240, 0.18);
  color: var(--primary-deep);
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 700;
}
.detail-tag--level {
  background: rgba(127, 217, 179, 0.18);
  color: #2a7a5a;
}
.detail-title {
  font-size: 1.25rem; font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 6px;
  line-height: 1.4;
}
.detail-location {
  font-size: 0.87rem; color: var(--muted);
  margin-bottom: 18px;
}
.detail-note {
  font-size: 0.88rem; color: var(--text);
  line-height: 1.7; margin-bottom: 18px;
}
.detail-section {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(154, 133, 236, 0.12);
}
.detail-section:last-of-type { border-bottom: none; }
.detail-label {
  font-size: 0.75rem; font-weight: 700;
  color: var(--primary-deep); margin-bottom: 4px; opacity: 0.75;
}
.detail-value {
  font-size: 0.88rem; color: var(--text); line-height: 1.7;
}
.detail-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.detail-part-tag {
  display: inline-block;
  padding: 3px 11px;
  background: rgba(143, 201, 243, 0.18);
  color: #2060a0;
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600;
}
.detail-links {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 20px; margin-bottom: 14px;
}
.detail-link-btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 700;
  text-decoration: none;
  background: linear-gradient(120deg, var(--primary), var(--primary-deep));
  color: #fff;
  transition: opacity 0.18s;
}
.detail-link-btn:hover { opacity: 0.85; }
.detail-link-btn.secondary {
  background: rgba(255,255,255,0.6);
  color: var(--primary-deep);
  border: 1.5px solid rgba(154,133,236,0.35);
}
.detail-link-btn.secondary:hover { background: rgba(184,166,240,0.18); }
.detail-manage-btn {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(154, 133, 236, 0.65);
  text-decoration: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.detail-manage-btn:hover {
  color: var(--primary-deep);
  background: rgba(184, 166, 240, 0.1);
}

/* ─────────────────────────────────────────────── */
/* A8.net アフィリエイト ウィジェット              */
/* ─────────────────────────────────────────────── */
.a8-widget {
  background: linear-gradient(135deg, var(--glass-bg), rgba(248, 183, 143, 0.15));
  border: var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-md);
}

.a8-widget-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.a8-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(154, 133, 236, 0.2);
}

.a8-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin: 0;
}

.a8-widget-badge {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.a8-widget-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.a8-widget-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(154, 133, 236, 0.15);
  transition: transform 0.18s, box-shadow 0.18s;
}

.a8-widget-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(154, 133, 236, 0.15);
}

.a8-widget-item-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.a8-widget-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.a8-widget-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.4;
}

.a8-widget-item-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.4;
}

.a8-widget-item-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

.a8-widget-item-link:hover {
  color: var(--primary-deep);
  text-decoration: underline;
}

.a8-widget-footer {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(154, 133, 236, 0.15);
}

.a8-link {
  display: inline-block;
  font-size: 0.78rem;
  color: rgba(154, 133, 236, 0.7);
  text-decoration: none;
  transition: color 0.15s;
}

.a8-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Empty widget fallback */
.a8-widget-empty .a8-widget-items {
  gap: 0;
}

.a8-widget-empty .a8-widget-item {
  text-align: center;
  padding: 24px 16px;
}

.a8-widget-empty .a8-widget-item-content {
  justify-content: center;
}

.a8-widget-empty .a8-widget-item-name {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 640px) {
  .a8-widget {
    padding: 16px;
  }

  .a8-widget-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .a8-widget-item {
    flex-direction: column;
  }

  .a8-widget-item-image {
    width: 100%;
    height: 150px;
  }
}
