:root {
  --bg: #f5f5f7;
  --panel: rgba(255,255,255,0.72);
  --text: #111214;
  --muted: rgba(17,18,20,0.68);
  --line: rgba(17,18,20,0.08);
  --shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
  --hero-a: #dfe7ff;
  --hero-b: #f9e6d8;
  --hero-c: #f2f7ff;
  --accent: #1f5eff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; }
body {
  min-height: 100vh;
  position: relative;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(255,255,255,0.52), rgba(255,255,255,0) 45%),
    radial-gradient(circle at 12% 10%, var(--hero-a), transparent 28%),
    radial-gradient(circle at 88% 18%, var(--hero-b), transparent 26%),
    radial-gradient(circle at 50% 120%, var(--hero-c), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 1px, transparent 1px 120px),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 100%);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  filter: blur(26px);
  opacity: .34;
  pointer-events: none;
  z-index: -1;
  animation: floatOrb 16s ease-in-out infinite;
}
body::before {
  top: 10vh;
  right: -10vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, white) 0%, transparent 68%);
}
body::after {
  bottom: 8vh;
  left: -8vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--hero-b) 58%, white) 0%, transparent 70%);
  animation-delay: -8s;
}
body.theme-kotoba {
  --hero-a: #dce7ff;
  --hero-b: #ffe9db;
  --hero-c: #eef5ff;
  --accent: #1668e3;
}
body.theme-ayame {
  --hero-a: #efe3ff;
  --hero-b: #ffe4f1;
  --hero-c: #faf5ff;
  --accent: #7c3aed;
}
body.theme-aimyon {
  --hero-a: #ffe6c8;
  --hero-b: #ffe7a6;
  --hero-c: #fff7ea;
  --accent: #d97706;
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(18px);
  background: rgba(250,250,252,0.74);
  border-bottom: 1px solid rgba(17,18,20,0.06);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-links a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  opacity: .76;
  transition: opacity .25s ease, color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--accent);
}
.nav-links a:hover::after { transform: scaleX(1); }
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 22px 62px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 22px 22px 0;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,255,255,0.42)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 14%, white), transparent 36%);
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.08);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  right: 54px;
  top: 52px;
  width: 160px;
  height: 160px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 28%, white), rgba(255,255,255,0.02)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.35) 0 8px, transparent 8px 18px);
  opacity: .5;
  transform: rotate(12deg);
  animation: floatCard 14s ease-in-out infinite;
  z-index: -1;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.68);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
  animation: fadeRise .7s ease both;
}
.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(54px, 11vw, 116px);
  line-height: .9;
  letter-spacing: -.05em;
  max-width: 980px;
  background: linear-gradient(135deg, #0e1117 0%, color-mix(in srgb, var(--accent) 78%, #0e1117) 55%, #0e1117 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeRise .85s ease both;
  animation-delay: .08s;
}
.hero p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(18px, 2.5vw, 25px);
  line-height: 1.62;
  color: var(--muted);
  animation: fadeRise .9s ease both;
  animation-delay: .16s;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.hero-pill {
  position: relative;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  animation: fadeRise .85s ease both;
}
.hero-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.4), transparent 46%, rgba(255,255,255,0.3) 60%, transparent 74%);
  transform: translateX(-120%);
  transition: transform .8s ease;
}
.hero-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.12);
  border-color: rgba(17,18,20,0.14);
}
.hero-pill:hover::before {
  transform: translateX(120%);
}
.hero-pill strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-pill span {
  font-size: 17px;
}
.hero-pill:nth-child(1) { animation-delay: .24s; }
.hero-pill:nth-child(2) { animation-delay: .32s; }
.hero-pill:nth-child(3) { animation-delay: .4s; }
.section {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px 44px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.04em;
  position: relative;
  padding-left: 22px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 10px;
  height: .9em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 32%, white));
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 10%, transparent);
}
.section-head p {
  margin: 0;
  max-width: 480px;
  color: var(--muted);
  line-height: 1.7;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  grid-column: span 4;
  padding: 28px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
  animation: fadeRise .8s ease both;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.34), transparent 36%),
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 8%, white), transparent 32%);
  opacity: .9;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 85px rgba(15, 23, 42, 0.13);
  border-color: rgba(17,18,20,0.14);
}
.card.wide { grid-column: span 6; }
.card.full { grid-column: span 12; }
.grid > *:nth-child(1) { animation-delay: .06s; }
.grid > *:nth-child(2) { animation-delay: .14s; }
.grid > *:nth-child(3) { animation-delay: .22s; }
.grid > *:nth-child(4) { animation-delay: .3s; }
.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -.02em;
}
.card p, .card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.visual-card {
  overflow: hidden;
  padding: 18px;
}
.card-image {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 22px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card-image.tall { aspect-ratio: 4 / 5; }
.card-image.square { aspect-ratio: 1 / 1; }
.card-image.contain {
  object-fit: contain;
  padding: 18px;
}
.card-image.no-crop {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  padding: 0;
  background: transparent;
}
.visual-card:hover .card-image {
  transform: scale(1.02);
  box-shadow: 0 28px 66px rgba(15, 23, 42, 0.14);
}
.visual-card:hover .card-image.no-crop {
  transform: none;
}
.media-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.link-card {
  color: inherit;
  text-decoration: none;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.86), rgba(255,255,255,0.58)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 16%, white), transparent 34%);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 90px rgba(15, 23, 42, 0.12);
  border-color: rgba(17,18,20,0.14);
}
.link-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(17,18,20,0.06);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.friend-host {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.friend-copy {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
}
.friend-arrow {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.quote {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.24;
  letter-spacing: -.03em;
  position: relative;
  padding-left: 24px;
}
.quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: .16em;
  bottom: .16em;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--hero-b) 65%, white));
}
.quote small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.timeline {
  display: grid;
  gap: 12px;
}
.timeline-item {
  position: relative;
  padding: 16px 0 16px 18px;
  border-top: 1px solid var(--line);
}
.timeline-item:first-child { border-top: 0; padding-top: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 12%, transparent);
}
.timeline-item:first-child::before { top: 4px; }
.timeline-item strong {
  display: inline-block;
  min-width: 88px;
  color: var(--accent);
}
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 56px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  border-top: 1px solid rgba(17,18,20,0.08);
}
.footer a {
  color: inherit;
  text-decoration-color: rgba(17,18,20,.24);
}
@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -18px, 0) scale(1.06); }
}
@keyframes floatCard {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 900px) {
  .card, .card.wide, .card.full { grid-column: span 12; }
  .hero {
    padding-top: 54px;
    padding-bottom: 48px;
  }
  .hero::before {
    inset: 12px 22px 0;
    border-radius: 28px;
  }
  .hero::after {
    width: 108px;
    height: 108px;
    right: 30px;
    top: 42px;
  }
  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

