:root {
  color-scheme: light;
  --bg: #f7fcff;
  --bg-soft: #eef8ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #102033;
  --text-muted: #5a6c80;
  --primary: #1b8cff;
  --primary-strong: #0067d8;
  --primary-soft: #dff2ff;
  --accent: #00b8d9;
  --line: rgba(33, 118, 184, 0.14);
  --shadow: 0 18px 48px rgba(21, 86, 140, 0.14);
  --shadow-soft: 0 10px 28px rgba(21, 86, 140, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content: 1120px;
  --reader: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #071423;
    --bg-soft: #0b2035;
    --surface: rgba(15, 34, 55, 0.78);
    --surface-solid: #0e2136;
    --surface-strong: rgba(17, 41, 66, 0.94);
    --text: #edf7ff;
    --text-muted: #a9bfd3;
    --primary: #66bdff;
    --primary-strong: #9bd4ff;
    --primary-soft: rgba(83, 180, 255, 0.16);
    --accent: #42d9f2;
    --line: rgba(144, 207, 255, 0.18);
    --shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 10% 0%, rgba(79, 196, 255, 0.28), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(27, 140, 255, 0.2), transparent 28rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
  pointer-events: none;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  backdrop-filter: blur(22px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content);
  min-height: 68px;
  padding: 0 18px;
  margin: 0 auto;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 13px;
  box-shadow: var(--shadow-soft);
}

.brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.brand-mark.has-image .brand-letter {
  display: none;
}

.nav-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.nav-links {
  position: absolute;
  top: 68px;
  right: 14px;
  left: 14px;
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.nav-links.is-open {
  display: grid;
}

.nav-links a {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 13px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.hero,
.section,
.page-head {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 22px;
  padding: 34px 0 28px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(218, 242, 255, 0.7)),
    var(--hero-image, linear-gradient(135deg, rgba(27, 140, 255, 0.2), rgba(0, 184, 217, 0.2)));
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .hero-panel {
    background:
      linear-gradient(135deg, rgba(7, 20, 35, 0.88), rgba(10, 38, 64, 0.74)),
      var(--hero-image, linear-gradient(135deg, rgba(27, 140, 255, 0.24), rgba(0, 184, 217, 0.14)));
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 388px;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 10vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 5vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.lead {
  max-width: 62ch;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 16px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  touch-action: manipulation;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
}

.button.ghost {
  color: var(--primary-strong);
  background: var(--primary-soft);
  box-shadow: none;
}

.section {
  padding: 26px 0;
}

.page-head {
  padding: 34px 0 14px;
}

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

.grid.two,
.grid.three {
  grid-template-columns: 1fr;
}

.card {
  padding: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.card p {
  color: var(--text-muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.meta li,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  color: var(--primary-strong);
  font-size: 0.84rem;
  font-weight: 800;
  background: var(--primary-soft);
  border-radius: 999px;
}

.feature-strip {
  display: grid;
  gap: 12px;
}

.feature {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.sns-button {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.sns-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 17px;
}

.reader-list {
  max-width: var(--reader);
  margin-right: auto;
  margin-left: auto;
}

.novel-card {
  padding: 22px;
}

.novel-card p,
.reader-note {
  font-size: 1rem;
  line-height: 1.9;
}

.app-card {
  display: grid;
  gap: 14px;
}

.app-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.video-frame {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 22px;
  color: var(--text-muted);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(27, 140, 255, 0.14), rgba(0, 184, 217, 0.12)),
    var(--surface);
  border: 1px dashed color-mix(in srgb, var(--primary) 42%, transparent);
  border-radius: var(--radius-md);
}

.site-footer {
  width: min(100% - 32px, var(--content));
  padding: 34px 0 44px;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--primary-strong);
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-panel {
    min-height: 520px;
    padding: 42px;
  }

  .hero-content {
    min-height: 436px;
  }

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

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

  .feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (prefers-reduced-motion: no-preference) {
  .button,
  .card,
  .nav-links a {
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  }

  .button:hover,
  .card:hover {
    transform: translateY(-2px);
  }
}
