:root {
  --blue: #4dd9ff;
  --purple: #b388ff;
  --brown: #d4a373;
  --pink: #ff6bcb;
  --green: #6ee87f;
  --ink: #2d2740;
  --muted: #6f657c;
  --paper: #fffaf3;
  --white: #ffffff;
  --line: rgba(45, 39, 64, 0.12);
  --shadow: 0 18px 45px rgba(45, 39, 64, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 12%, rgba(77, 217, 255, 0.25), transparent 28%),
    radial-gradient(circle at 78% 10%, rgba(255, 107, 203, 0.22), transparent 24%),
    linear-gradient(180deg, #fff7fb 0%, var(--paper) 48%, #f8fff7 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(45, 39, 64, 0.08);
  backdrop-filter: blur(14px);
}

.brand-mark,
.site-nav {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 8px;
  min-width: max-content;
  padding: 6px 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: conic-gradient(from 20deg, var(--blue), var(--purple), var(--pink), var(--green), var(--brown), var(--blue));
  box-shadow: 0 0 0 4px rgba(77, 217, 255, 0.16);
}

.site-nav {
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #514766;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
}

.site-nav a:hover {
  background: rgba(179, 136, 255, 0.14);
}

.hero {
  min-height: 82vh;
  display: grid;
  align-items: center;
  padding: 64px 16px 54px;
}

.hero-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: #745b8d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 13vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 0 auto;
  color: #514766;
  font-size: clamp(1.08rem, 3.5vw, 1.45rem);
  font-weight: 700;
}

.hero-actions,
.hero-friends {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions {
  gap: 10px;
  margin-top: 28px;
}

.button-primary,
.button-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(45, 39, 64, 0.2);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.hero-friends {
  gap: 12px;
  margin-top: 34px;
}

.tone {
  width: 46px;
  height: 46px;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.tone-blue { background: var(--blue); }
.tone-purple { background: var(--purple); }
.tone-brown { background: var(--brown); }
.tone-pink { background: var(--pink); }
.tone-green { background: var(--green); }

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 26px;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.story-content p,
.goods-panel p,
.notice-form p {
  color: var(--muted);
}

.character-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.character-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--accent-line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, var(--accent-bg), rgba(255, 255, 255, 0.92)),
    var(--white);
  box-shadow: 0 14px 34px var(--accent-glow);
}

.character-card::before {
  content: "";
  position: absolute;
  inset: auto -42px -58px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent-glow);
}

.character-card.featured {
  border-width: 2px;
}

.character-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.character-art {
  position: relative;
  overflow: hidden;
  width: 168px;
  height: 168px;
  margin: 4px auto 18px;
  border-radius: 42px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(45, 39, 64, 0.05);
}

.character-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.character-card h3 {
  margin-bottom: 8px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.character-card p {
  margin-bottom: 0;
  color: #5e536e;
  font-weight: 700;
}

.story-band {
  margin: 34px 0;
  padding: 74px 16px;
  background:
    linear-gradient(135deg, rgba(77, 217, 255, 0.2), rgba(255, 107, 203, 0.18) 44%, rgba(110, 232, 127, 0.2)),
    rgba(255, 255, 255, 0.58);
}

.story-content {
  width: min(840px, 100%);
  margin: 0 auto;
}

.story-content p {
  font-size: 1.08rem;
  font-weight: 700;
}

.goods-panel {
  display: grid;
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.notice-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.notice-row {
  display: grid;
  gap: 10px;
}

.notice-row input,
.notice-row button {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
}

.notice-row input {
  border: 1px solid var(--line);
  padding: 0 16px;
  background: #f9f6fb;
  color: #897f95;
}

.notice-row button {
  border: 0;
  padding: 0 18px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: var(--white);
  opacity: 0.8;
  cursor: not-allowed;
}

.notice-form p {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

#sound-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(45, 39, 64, 0.16);
  backdrop-filter: blur(12px);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

#sound-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
}

.character-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 399px) {
  .site-header {
    width: calc(100% - 20px);
    gap: 8px;
    padding: 8px;
  }

  .brand-mark {
    padding-inline: 6px;
    font-size: 0.95rem;
  }

  .site-nav {
    gap: 0;
    font-size: 0.84rem;
  }

  .site-nav a {
    padding: 7px 6px;
  }

  .hero {
    min-height: 78vh;
    padding-top: 48px;
  }

  .character-card,
  .goods-panel {
    padding: 20px;
    border-radius: 22px;
  }
}

@media (min-width: 640px) {
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .notice-row button {
    width: auto;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 920px) {
  .character-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .character-card {
    min-height: 360px;
    padding: 20px;
  }

  .character-card.featured {
    transform: translateY(-14px);
  }

  .character-art {
    width: 150px;
    height: 150px;
    border-radius: 38px;
  }

  .character-card h3 {
    font-size: 1.35rem;
  }

  .goods-panel {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    align-items: center;
    padding: 34px;
  }
}
