* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7ff;
  --bg2: #eaf6ff;
  --text: #33233f;
  --sub: #6c5b78;

  --pink: #ff74ad;
  --hot-pink: #ff4f9f;
  --purple: #9b7cff;
  --blue: #63c8ff;
  --yellow: #ffd86b;
  --mint: #7ee6c7;

  --white: rgba(255, 255, 255, 0.88);
  --line: rgba(93, 61, 120, 0.14);
  --shadow: 0 18px 45px rgba(139, 89, 180, 0.2);
  --bold-shadow: 0 18px 0 rgba(93, 61, 120, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Arial Rounded MT Bold",
    "Hiragino Maru Gothic ProN",
    "Yu Gothic",
    system-ui,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 116, 173, 0.28), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(99, 200, 255, 0.28), transparent 32%),
    radial-gradient(circle at 55% 92%, rgba(255, 216, 107, 0.32), transparent 34%),
    linear-gradient(135deg, var(--bg), var(--bg2));
  overflow-x: hidden;
}

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

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(155, 124, 255, 0.22) 2px, transparent 2.5px),
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 26px 26px, 58px 58px, 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.72;
}

.page-bg::before {
  width: 180px;
  height: 180px;
  right: 8%;
  top: 18%;
  background: rgba(255, 216, 107, 0.35);
}

.page-bg::after {
  width: 240px;
  height: 240px;
  left: 5%;
  bottom: 10%;
  background: rgba(255, 116, 173, 0.22);
}

.novel-page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* =========================
   hero
========================= */

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 34px;
  padding: 78px 0 54px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.label,
.section-label,
.card-no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border: 2px solid rgba(51, 35, 63, 0.12);
  border-radius: 999px;
  color: #7b47d9;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  box-shadow: 0 8px 0 rgba(155, 124, 255, 0.12);
}

.label::before,
.section-label::before,
.card-no::before {
  content: "★";
  color: var(--hot-pink);
  letter-spacing: 0;
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(4.2rem, 10vw, 8.7rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
  color: #fff;
  -webkit-text-stroke: 2px rgba(51, 35, 63, 0.78);
  text-shadow:
    5px 5px 0 var(--pink),
    10px 10px 0 var(--yellow),
    0 18px 34px rgba(155, 124, 255, 0.28);
}

h1 span {
  display: block;
}

.catch {
  width: fit-content;
  margin: 30px 0 0;
  padding: 12px 18px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--hot-pink), var(--purple));
  font-size: clamp(1.18rem, 2.8vw, 1.85rem);
  font-weight: 900;
  box-shadow: 0 12px 0 rgba(93, 61, 120, 0.18);
  transform: rotate(-1.2deg);
}

.lead {
  width: min(710px, 100%);
  margin: 24px 0 0;
  color: var(--sub);
  line-height: 1.9;
  font-weight: 800;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn,
.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 25px;
  border: 2px solid rgba(51, 35, 63, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  font-family: inherit;
  font-weight: 900;
  box-shadow: 0 10px 0 rgba(93, 61, 120, 0.12);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn.primary,
.play-btn {
  border-color: rgba(255, 79, 159, 0.28);
  color: #fff;
  background: linear-gradient(135deg, var(--hot-pink), var(--purple));
}

.btn:hover,
.play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 0 rgba(93, 61, 120, 0.12);
}

/* =========================
   hero visual
========================= */

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 58px 20px 24px;
  border: 3px solid rgba(51, 35, 63, 0.1);
  border-radius: 42px;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 216, 107, 0.58), transparent 28%),
    radial-gradient(circle at 78% 30%, rgba(99, 200, 255, 0.5), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 236, 248, 0.78));
  box-shadow: var(--bold-shadow), var(--shadow);
  transform: rotate(1.2deg);
}

.hero-visual::after {
  content: "きみのOC、出番です";
  position: absolute;
  right: 26px;
  bottom: 18px;
  z-index: 4;
  padding: 10px 15px;
  border: 2px solid rgba(51, 35, 63, 0.12);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 8px 0 rgba(93, 61, 120, 0.13);
  transform: rotate(-2deg);
}

.hero-badge {
  position: absolute;
  top: 38px;
  left: 12px;
  z-index: 5;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--yellow), var(--hot-pink));
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 0 rgba(93, 61, 120, 0.12);
  transform: rotate(-8deg);
}

.character-card {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  border: 4px solid #fff;
  background: #fff;
  box-shadow:
    0 16px 0 rgba(93, 61, 120, 0.1),
    0 22px 44px rgba(155, 124, 255, 0.26);
}

.character-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-card.main {
  width: min(78%, 430px);
  aspect-ratio: 4 / 5;
  right: 48px;
  top: 94px;
  border-radius: 34px;
  transform: rotate(2deg);
}

.character-card.sub {
  width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
}

.character-card.sub-a {
  left: 8px;
  bottom: 88px;
  transform: rotate(-7deg);
}

.character-card.sub-b {
  right: 0;
  bottom: 54px;
  transform: rotate(8deg);
}

/* =========================
   sections
========================= */

.section {
  padding: 62px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p:not(.section-label) {
  margin: 12px 0 0;
  color: var(--sub);
  font-weight: 800;
}

/* =========================
   game cards
========================= */

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

.game-card,
.text-box,
.note-list {
  border: 3px solid rgba(51, 35, 63, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--bold-shadow), var(--shadow);
}

.game-card {
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow:
    0 22px 0 rgba(93, 61, 120, 0.1),
    0 28px 55px rgba(155, 124, 255, 0.28);
}

.card-thumb.image-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 216, 107, 0.55), transparent 28%),
    linear-gradient(135deg, rgba(255, 116, 173, 0.4), rgba(99, 200, 255, 0.42));
}

.card-thumb.image-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) brightness(1.02);
  transition: transform 0.22s ease;
}

.game-card:hover .card-thumb.image-thumb img {
  transform: scale(1.04);
}

.card-thumb.image-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 42%, rgba(51, 35, 63, 0.48)),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.36), transparent 34%);
}

.card-thumb.image-thumb span {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 9px 14px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 79, 159, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 8px 0 rgba(93, 61, 120, 0.12);
}

.card-body {
  padding: 22px;
}

.card-no {
  padding: 7px 12px;
  font-size: 0.7rem;
  box-shadow: none;
}

.card-body h3 {
  margin: 14px 0 10px;
  font-size: 1.38rem;
  line-height: 1.35;
}

.card-body p {
  min-height: 92px;
  margin: 0;
  color: var(--sub);
  line-height: 1.75;
  font-size: 0.95rem;
  font-weight: 800;
}

.play-btn {
  min-width: 118px;
  margin-top: 18px;
  letter-spacing: 0.08em;
}

/* =========================
   about / notes
========================= */

.text-box {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.text-box::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 216, 107, 0.28);
}

.text-box p {
  position: relative;
  margin: 0 0 16px;
  color: var(--sub);
  line-height: 1.9;
  font-weight: 800;
}

.text-box p:last-child {
  margin-bottom: 0;
}

.text-box strong {
  color: var(--text);
  font-size: 1.2rem;
  background: linear-gradient(transparent 62%, rgba(255, 216, 107, 0.72) 62%);
}

.note-list {
  margin: 0;
  padding: 30px 30px 30px 54px;
}

.note-list li {
  margin-bottom: 14px;
  color: var(--sub);
  line-height: 1.8;
  font-weight: 800;
}

.note-list li::marker {
  color: var(--hot-pink);
}

.note-list li:last-child {
  margin-bottom: 0;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 44px 16px;
  text-align: center;
  color: rgba(51, 35, 63, 0.55);
  font-weight: 900;
}

/* =========================
   responsive
========================= */

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
    text-align: center;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    width: min(620px, 100%);
    min-height: 470px;
    margin: 0 auto;
  }

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

@media (max-width: 760px) {
  .novel-page {
    width: min(100% - 22px, 1160px);
  }

  .hero {
    padding-top: 38px;
    gap: 18px;
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5.6rem);
    -webkit-text-stroke: 1.4px rgba(51, 35, 63, 0.78);
    text-shadow:
      3px 3px 0 var(--pink),
      6px 6px 0 var(--yellow),
      0 15px 28px rgba(155, 124, 255, 0.24);
  }

  .catch {
    margin-top: 24px;
    font-size: 1.1rem;
  }

  .lead {
    font-size: 0.94rem;
  }

  .hero-buttons {
    width: 100%;
  }

  .btn {
    flex: 1 1 150px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-visual::before {
    inset: 46px 8px 24px;
    border-radius: 30px;
  }

  .hero-badge {
    top: 24px;
    left: 0;
    font-size: 0.78rem;
  }

  .character-card.main {
    width: 72%;
    right: 24px;
    top: 78px;
    border-radius: 26px;
  }

  .character-card.sub {
    width: 124px;
    border-radius: 22px;
  }

  .character-card.sub-a {
    left: 0;
    bottom: 54px;
  }

  .character-card.sub-b {
    right: 0;
    bottom: 34px;
  }

  .hero-visual::after {
    right: 10px;
    bottom: 0;
    font-size: 0.75rem;
  }

  .section {
    padding: 44px 0;
  }

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

  .game-card,
  .text-box,
  .note-list {
    border-radius: 24px;
  }

  .card-body p {
    min-height: 0;
  }

  .note-list {
    padding-left: 36px;
  }
}

@media (max-width: 420px) {
  .character-card.sub {
    width: 108px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .card-thumb.image-thumb span {
    font-size: 0.74rem;
  }
}
