:root {
  --blue: #1f7ae0;
  --blue-deep: #0d5bb5;
  --blue-soft: #e8f3ff;
  --sky: #5eb0ff;
  --ink: #152033;
  --muted: #5a6a80;
  --line: #d7e4f4;
  --bg: #f5f9ff;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(21, 70, 140, 0.08);
  --max: 1120px;
  --font-display: "Sora", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9ecff 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #cfe4ff 0%, transparent 50%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 40%, #eef5ff 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#ads img {
  max-width: 65px;
  height: 65px;
}

a {
  color: var(--blue-deep);
  text-decoration: none;
}

a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 255, 0.88);
  border-bottom: 1px solid rgba(215, 228, 244, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand span {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-deep);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 0 3.2rem;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(94, 176, 255, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(31, 122, 224, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(232, 243, 255, 0.9), rgba(255, 255, 255, 0.2));
  opacity: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.hero-brand em {
  font-style: normal;
  color: var(--blue);
}

.hero-lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(31, 122, 224, 0.28);
}

.btn-primary:hover {
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue-deep);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  animation: floaty 6s ease-in-out infinite;
}

.hero-visual img {
  width: min(100%, 360px);
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 4px solid rgba(255, 255, 255, 0.85);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.section {
  padding: 3.2rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 0.55rem;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.prose p {
  margin: 0 0 1rem;
  color: #243247;
}

.prose h3 {
  margin: 1.8rem 0 0.7rem;
  font-size: 1.25rem;
  font-family: var(--font-display);
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: #243247;
}

.prose li {
  margin-bottom: 0.4rem;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
}

.feature-split.reverse .feature-copy {
  order: 2;
}

.feature-split.reverse .feature-media {
  order: 1;
}

.feature-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--white);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.2rem 0 1.8rem;
}

.shot-grid figure {
  margin: 0;
}

.shot-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.25s ease;
}

.shot-grid img:hover {
  transform: translateY(-4px);
}

.shot-grid figcaption {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.guide-list {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0;
}

.guide-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.guide-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.guide-item p {
  margin: 0;
  color: var(--muted);
}

.toc {
  background: linear-gradient(180deg, #ffffff, var(--blue-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.4rem 0 2rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
}

.toc a {
  font-weight: 500;
}

.page-hero {
  padding: 2.6rem 0 1.2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 0.6rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 44rem;
}

.page-body {
  padding: 0 0 3.5rem;
}

.legal .prose h2 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
}

.crumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.crumb a {
  color: var(--muted);
}

.related {
  margin-top: 2.4rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.related h2 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.related ul {
  margin: 0;
  padding-left: 1.1rem;
}

.site-footer {
  margin-top: 1rem;
  background: #0f2a4a;
  color: #d7e6f8;
  padding: 2.4rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  color: #b9d4f5;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  color: #fff;
  font-family: var(--font-display);
}

.site-footer p,
.site-footer li {
  color: #a9c3e0;
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer-brand:hover {
  color: #fff;
  text-decoration: none;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.copyright {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #8eabc9;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin: 0 0 0.6rem;
  color: var(--blue);
}

.error-page p {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-split,
  .feature-split.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-split.reverse .feature-copy,
  .feature-split.reverse .feature-media {
    order: initial;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: var(--blue-soft);
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-visual img {
    width: min(100%, 280px);
  }
}

@media (max-width: 560px) {
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .section {
    padding: 2.4rem 0;
  }
}
