* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;

  --hero-pad: 18px;
  --hero-radius: 16px;
  --hero-frame: rgba(51, 51, 136, 0.75);
  --hero-title: #333388;
  --hero-title-accent: #ff5599;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.header {
  margin-bottom: 20px;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 320px;
  margin-bottom: 20px;
  border-radius: var(--hero-radius);
  overflow: hidden;
  display: flex;
  align-items: end;

  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.10) 0px,
      rgba(255, 255, 255, 0.10) 12px,
      rgba(255, 255, 255, 0) 12px,
      rgba(255, 255, 255, 0) 24px
    ),
    linear-gradient(
      180deg,
      #7f88f4 0%,
      #a5b1ff 45%,
      #dbe4ff 100%
    );
}

/* 背景の柔らかい光 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.04) 42%,
      rgba(255, 255, 255, 0) 100%
    );
}

/* 最前面フレーム */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 10px var(--hero-frame);
  pointer-events: none;
  z-index: 10;
}

.hero-overlay {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: var(--hero-pad);
  color: white;
}

.hero h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--hero-title);
  text-shadow:
    0 2px 8px rgba(255, 255, 255, 1),
    0 0 2px rgba(255, 255, 255, 0.4);
}

.hero h1::first-letter {
  color: var(--hero-title-accent);
}

.hero .sub {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 0 2px rgba(0, 0, 0, 0.4);
}

.sub {
  margin: 0;
  color: var(--muted);
}

/* ===== Hero character / logos ===== */

.hero-chara {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1;

  height: 94%;
  width: auto;
  max-width: 48%;
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  z-index: 3;
  display: block;
  width: auto;
  height: auto;
  max-width: 18%;
  pointer-events: none;
}

.hero-logo-azure {
  top: var(--hero-pad);
  right: var(--hero-pad);
  max-height: 42px;
}

.hero-logo-pika {
  right: var(--hero-pad);
  bottom: var(--hero-pad);
  max-height: 44px;
  opacity: 0.92;
}

/* ===== Panels ===== */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.controls {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 12px;
  align-items: end;
}

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

.field label {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== 入力欄統一 ===== */

input[type="text"],
select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  line-height: 1.2;
}

select {
  appearance: auto;
  -webkit-appearance: menulist;
}

/* ===== Checkbox ===== */

.checkbox {
  justify-content: center;
}

.checkbox label {
  font-weight: 500;
}

/* ===== Summary ===== */

.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Song cards ===== */

.list {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}

.title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.artist {
  color: var(--muted);
  margin-top: 6px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.85rem;
}

.badge-status {
  background: #fff7ed;
  color: #c2410c;
}

.meta {
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

/* ===== Notice ===== */

.notice {
  margin: 18px 0;
}

.notice-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  background: linear-gradient(135deg, #7a6df2, #9aa5ff);
  color: white;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.notice-text {
  font-weight: 700;
  font-size: 1rem;
}

.notice-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notice-links a {
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.notice-links a:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .hero {
    min-height: 280px;
  }

  .hero-chara {
    max-width: 56%;
  }

  .hero-logo {
    max-width: 22%;
  }

  .hero-logo-azure {
    max-height: 36px;
  }

  .hero-logo-pika {
    max-height: 38px;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 16px;
  }

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

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

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

  .meta {
    text-align: left;
    white-space: normal;
  }

  .hero {
    min-height: 240px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-chara {
    max-width: 72%;
  }

  .hero-logo {
    max-width: 28%;
  }

  .hero-logo-azure {
    max-height: 30px;
  }

  .hero-logo-pika {
    max-height: 32px;
  }
}