:root {
  color-scheme: dark;
  --ink: #f7f3fb;
  --muted: #c4bccf;
  --subtle: #9c93aa;
  --base: #120b18;
  --panel: #1d1326;
  --line: #ffffff1f;
  --pink: #ffadd8;
  --cyan: #93ebff;
  --header: 64px;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: var(--base);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 14px; background: var(--panel); }
.en { display: block; margin-top: .5em; color: var(--subtle); font-size: .88em; }
.eyebrow { color: var(--pink); font: 700 12px/1 "Aptos Mono", "SFMono-Regular", Consolas, monospace; letter-spacing: .22em; }

.topbar { position: sticky; top: 0; z-index: 10; height: var(--header); background: #120b18e6; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font: italic 900 20px/1 system-ui, sans-serif; letter-spacing: .06em; }
.wordmark-3d { color: var(--pink); margin-right: 2px; }
.topbar nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 14px; color: var(--muted); }
.topbar nav a:hover { color: var(--ink); }

.hero { position: relative; padding: clamp(88px, 16vw, 168px) 0 clamp(72px, 12vw, 128px); overflow: hidden;
  background: radial-gradient(60% 80% at 85% 10%, #ff7cc233, transparent 70%), radial-gradient(50% 70% at 0% 100%, #7c8cff2e, transparent 70%); }
.hero-inner { display: grid; justify-items: start; gap: 28px; }
.hero h1 { font-size: clamp(28px, 6.4vw, 72px); line-height: 1.18; font-weight: 900; letter-spacing: .02em; }
.hero-line { display: block; }
.hero-line + .hero-line { color: var(--pink); }
.hero-lead { max-width: 640px; color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--pink); color: #2a0f1f; }
.button-ghost { border: 1px solid #ffffff4d; }
.button-ghost:hover { background: #ffffff12; }

.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; }

.feature-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feature-media { display: block; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .4s; }
.feature-media:hover img { transform: scale(1.03); }
.feature-body { display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(24px, 4vw, 44px); }
.feature-body h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.feature-sub { color: var(--pink); font-weight: 700; font-size: 14px; }
.feature-body > p:not(.tag):not(.feature-sub) { color: var(--muted); font-size: 15px; }
.tag { display: inline-flex; gap: 8px; color: var(--subtle); font: 700 11px/1 "Aptos Mono", "SFMono-Regular", Consolas, monospace; letter-spacing: .2em; }
.tag span { color: var(--pink); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.link-card { position: relative; display: grid; gap: 8px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, background .15s; }
.link-card:hover { border-color: #ffadd880; background: #24172f; }
.link-card h3 { font-size: 20px; }
.link-card p:last-of-type { color: var(--muted); font-size: 14px; }
.link-card-lg { gap: 14px; padding: clamp(28px, 4vw, 44px); min-height: 300px; align-content: start;
  background: linear-gradient(160deg, #2a1736, var(--panel) 60%); }
.link-card-lg h3 { font: italic 900 clamp(34px, 4.4vw, 48px)/1 system-ui, sans-serif; letter-spacing: .03em; }
.link-card-lg .card-lead { color: var(--pink); font-weight: 700; font-size: 16px; }
.link-card-lg p:not(.tag):not(.card-lead) { color: var(--muted); font-size: 15px; }
.card-cta { margin-top: auto; padding-top: 8px; color: var(--ink); font-weight: 700; font-size: 15px; }
.card-cta span { color: var(--pink); }
.card-arrow { position: absolute; top: 24px; right: 24px; color: var(--pink); font-size: 20px; }

.link-list { display: grid; border-top: 1px solid var(--line); }
.link-list a { display: grid; grid-template-columns: 120px 1fr auto 24px; align-items: center; gap: 16px; padding: 22px 4px; border-bottom: 1px solid var(--line); transition: background .15s; }
.link-list a:hover { background: #ffffff08; }
.link-name { font-weight: 900; font-size: 18px; }
.link-handle { color: var(--muted); overflow-wrap: anywhere; }
.link-note { color: var(--subtle); font-size: 13px; }
.link-list a > span:last-child { color: var(--pink); }

.about { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.about .section-head { margin: 0; }
.about-body { display: grid; gap: 12px; color: var(--muted); max-width: 680px; }

.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 13px; }
.footer-inner { display: grid; gap: 8px; }

@media (max-width: 820px) {
  .feature-card, .card-grid, .about { grid-template-columns: 1fr; }
  .about { gap: 0; }
  .about .section-head { margin-bottom: 24px; }
  .link-list a { grid-template-columns: 84px 1fr 20px; }
  .link-note { display: none; }
  .link-handle { font-size: 14px; }
}
@media (max-width: 480px) {
  .topbar nav { gap: 12px; font-size: 13px; }
  .wordmark { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  * { transition: none !important; }
}
