@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&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.6);
  --glass-border: 1px solid rgba(255, 255, 255, 0.75);
  --glass-blur: blur(18px) saturate(180%);

  /* 柔らかい多層シャドウ */
  --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: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', 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;
}

/* 装飾的な背景（カラフルなぼかしグラデーション） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px circle at 6% -4%, rgba(244, 169, 207, 0.30), transparent 55%),
    radial-gradient(680px circle at 96% 4%, rgba(143, 201, 243, 0.30), transparent 52%),
    radial-gradient(580px circle at 88% 92%, rgba(127, 217, 179, 0.26), transparent 55%),
    radial-gradient(560px circle at 10% 96%, rgba(245, 216, 113, 0.24), transparent 55%),
    radial-gradient(620px circle at 50% 45%, rgba(184, 166, 240, 0.22), transparent 60%),
    linear-gradient(180deg, #fbf9ff 0%, #f6f2fe 100%);
}

/* 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-text h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #3f3266;
}
.tagline {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.78;
  margin: 6px 0 0;
}
.header-instruments {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.header-instrument {
  height: 76px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
header:hover .header-instrument { opacity: 0.65; transform: translateY(-2px); }

/* ナビ：浮遊するグラスピル */
nav {
  display: inline-flex;
  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: 10px 22px;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  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);
}

/* 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-wrap: wrap;
  align-items: flex-end;
  gap: 18px 24px;
  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);
}

/* 検索ボックス */
.filters input[type="text"] {
  flex: 1 1 100%;
  width: 100%;
  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; }

/* 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;
}
/* カード上部のレインボーアクセントライン */
.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);
}

.card-date {
  font-size: 0.8rem;
  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;
}

.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-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; }

/* 登録フォーム */
.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; }

/* 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; }

.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; }

/* 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; }
  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; }
}
