:root {
  color-scheme: light;
  --panel: #ffffff;
  --ink: #273044;
  --muted: #71809a;
  --line: #eadff7;
  --pink: #ff7eb7;
  --pink-strong: #f05f9d;
  --lavender: #9b7cf4;
  --blue: #58b8f7;
  --mint: #78dcb0;
  --yellow: #ffd36f;
  --shadow: 0 18px 50px rgba(120, 105, 180, 0.18);
  --soft-shadow: 0 10px 30px rgba(120, 105, 180, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 126, 183, 0.24), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(155, 124, 244, 0.2), transparent 28%),
    linear-gradient(110deg, #ffe1ec 0%, #fff0bd 18%, #dcf7d7 38%, #d5f4ff 58%, #dfddff 78%, #ffe0f2 100%);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

/* body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 7% 10%, rgba(255, 126, 183, 0.2) 0 2px, transparent 3px 16px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
} */

button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

button:active {
  transform: translateY(0);
}

button:focus-visible {
  outline: 3px solid rgba(88, 184, 247, 0.55);
  outline-offset: 3px;
}

.app-shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 24px 16px 42px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 8px 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  padding: 34px 18px 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 254, 0.54)),
    linear-gradient(110deg, rgba(255, 126, 183, 0.28), rgba(255, 211, 111, 0.24), rgba(120, 220, 176, 0.22), rgba(88, 184, 247, 0.25), rgba(155, 124, 244, 0.22));
  box-shadow: var(--shadow);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(155, 124, 244, 0.2);
  border-radius: 22px;
  pointer-events: none;
}

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  border: 1px solid rgba(255, 126, 183, 0.32);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--pink-strong);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(255, 126, 183, 0.14);
}

.title {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6875rem, 7.2vw, 2.5rem);
  line-height: 1.1;
  position: relative;
  display: inline-block;
  letter-spacing: 0.03em;
}

.title::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 0;

  color: #fff;
  -webkit-text-stroke: 7px #fff;

  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9))
    drop-shadow(0 12px 22px rgba(120, 80, 180, 0.28));

  pointer-events: none;
}

.title span {
  position: relative;
  z-index: 1;

  background: linear-gradient(
    90deg,
    #ff5fa2 0%,
    #ff8a5c 16%,
    #ffd84d 32%,
    #7bdc72 48%,
    #45c7ff 64%,
    #6d7cff 80%,
    #d46bff 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* iPhone/Safari対策 */
  -webkit-text-fill-color: transparent;
}


.lead {
  position: relative;
  margin: 0 auto 26px;
  padding: 0 10px;
  color: #46516a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
}

.primary-button {
  position: relative;
  background: linear-gradient(135deg, #ff7eb7, #a77cf4 55%, #58b8f7);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(155, 124, 244, 0.28);
}

.secondary-button {
  border: 1px solid rgba(155, 124, 244, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.result-section {
  margin-top: 22px;
}

.result-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: rgba(255, 252, 255, 0.88);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.result-header {
  padding: 24px 18px;
  background:
    linear-gradient(110deg, rgba(255, 126, 183, 0.2), rgba(255, 211, 111, 0.18), rgba(120, 220, 176, 0.16), rgba(88, 184, 247, 0.18), rgba(155, 124, 244, 0.17)),
    #fff7fd;
  border-bottom: 1px dashed rgba(155, 124, 244, 0.25);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #4a4f7d;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 950;
  line-height: 1.15;
}

.section-title::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(120, 105, 180, 0.16);
}

.section-title-info::before {
  content: "✦";
  background: linear-gradient(135deg, #ff8abc, #a77cf4);
  font-size: 1.25rem;
}

.section-title-setlist::before {
  content: "♪";
  background: linear-gradient(135deg, #77c8fb, #8ee1bd);
  font-size: 1.25rem;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.time-grid div {
  min-width: 0;
  border: 1px solid rgba(155, 124, 244, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 235, 244, 0.92), rgba(255, 255, 255, 0.54));
  padding: 14px 12px;
  box-shadow: 0 8px 18px rgba(120, 105, 180, 0.08);
}

.time-grid div:nth-child(2) {
  background: linear-gradient(135deg, rgba(228, 246, 255, 0.94), rgba(255, 255, 255, 0.56));
}

.time-grid div:nth-child(3) {
  background: linear-gradient(135deg, rgba(224, 250, 229, 0.86), rgba(246, 255, 249, 0.56));
}

.time-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.time-grid dd {
  margin: 4px 0 0;
  color: #273044;
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-weight: 950;
}

.setlist {
  padding: 24px 18px 26px;
}

.setlist h3 {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 24px 0 12px;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(155, 124, 244, 0.1);
  color: #6c5bd6;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.setlist ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: setlist-counter var(--start-index, 0);
}

.setlist li {
  counter-increment: setlist-counter;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(155, 124, 244, 0.12);
  border-radius: 16px;
  padding: 8px 12px 8px 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(120, 105, 180, 0.08);
  line-height: 1.55;
  font-weight: 750;
}

.setlist li::before {
  content: counter(setlist-counter, decimal-leading-zero) ".";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff89bd, #9b7cf4);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
}

.setlist ol:nth-of-type(2n) li::before {
  background: linear-gradient(135deg, #77c8fb, #8ee1bd);
}

.setlist ol:nth-of-type(3n) li::before {
  background: linear-gradient(135deg, #ffd36f, #ff9bbd);
}

.setlist li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0 0;
}

.status-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: #4a4f7d;
  font-weight: 900;
  text-align: center;
}

.notice {
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: #65728c;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.75;
  box-shadow: 0 10px 28px rgba(120, 105, 180, 0.08);
}

.notice p {
  margin: 0;
}

@media (min-width: 680px) {
  .app-shell {
    padding: 42px 28px 56px;
  }

  .hero {
    padding: 58px 48px 50px;
  }

  .result-header,
  .setlist {
    padding-left: 30px;
    padding-right: 30px;
  }

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

@media (max-width: 430px) {
  .app-shell {
    padding: 14px 12px 34px;
  }

  .hero {
    border-radius: 24px;
    padding: 42px 16px 38px;
  }

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

  .setlist li {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-right: 10px;
  }
}
