:root {
  --p: #6514ff;
  --s: #bf00ff;
  --ink: #1c1726;
  --ink2: #241c33;
  --ink3: #2f2547;
  --fg: #f3eeff;
  --fg2: #bdb1d6;
  --r: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .012em;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -40px;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(101, 20, 255, .58) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: .5;
  animation: dotshift 18s linear infinite;
}

@keyframes dotshift {
  to {
    background-position: 26px 26px;
  }
}

img {
  max-width: 100%;
}

/* ---------- 顶部导航 ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(28, 23, 38, .93);
  backdrop-filter: blur(9px);
  border-bottom: 2px solid rgba(101, 20, 255, .55);
}

.nav {
  padding: 10px 16px;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  max-width: 1180px;
}

.nav-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink3);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.nav-row a:hover,
.nav-row a:focus-visible {
  background: var(--s);
  color: #fff;
  transform: translateY(-2px);
}

.brand {
  flex: 1 1 230px;
  gap: 8px;
  background: linear-gradient(135deg, var(--p), var(--s));
  color: #fff !important;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand:hover {
  filter: brightness(1.15);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--r);
  object-fit: cover;
}

.brand-txt {
  white-space: nowrap;
}

/* ---------- 主区网格 ---------- */
.mn {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 48px;
  align-items: start;
}

.mn > section {
  scroll-margin-top: 104px;
}

/* ---------- Hero ---------- */
.hero {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 48px;
  min-height: 70vh;
  padding: 56px 0 8px;
  text-align: right;
}

.hero-fig {
  flex: 1 1 46%;
  align-self: stretch;
  min-height: 320px;
  margin: 0;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(135deg, var(--p), var(--s) 55%, var(--ink3));
  box-shadow: 18px 18px 0 rgba(191, 0, 255, .22);
  transition: background .8s ease;
}

.hero-fig::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .28) 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .5;
  mix-blend-mode: overlay;
}

.hero-fig.tone-b {
  background: linear-gradient(135deg, var(--s), var(--p) 60%, var(--ink));
}

.hero-fig.tone-c {
  background: linear-gradient(160deg, var(--ink3), var(--s) 52%, var(--p));
}

.hero-fig img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.hero-txt {
  flex: 1 1 54%;
  min-width: 0;
}

.hero-kick {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--ink3);
  color: #dcc9ff;
  font-size: 14px;
  letter-spacing: .1em;
}

.hero-h1 {
  margin: 0 0 18px;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(31px, 5.2vw, 54px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: .02em;
  background: linear-gradient(118deg, #ffffff 32%, #d9b8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0;
  color: var(--fg2);
  font-size: 16px;
}

/* ---------- 正文块 ---------- */
.mn > section:not(.hero) {
  grid-column: 1;
  padding: 34px 32px;
  background: var(--ink2);
  border-radius: var(--r);
  transition: transform .24s ease, box-shadow .24s ease;
}

.mn > section:not(.hero):hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 0 -6px rgba(101, 20, 255, .45);
}

.mn > section:not(.hero) > *:first-child {
  margin-top: 0;
}

.mn > section h2 {
  margin: .2em 0 .8em;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 700;
  line-height: 1.45;
}

.mn > section h2 > span {
  position: relative;
  display: inline-block;
}

.mn > section h2 > span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--p), var(--s));
}

.mn > section h3 {
  margin: 1.6em 0 .5em;
  font-family: 'Noto Serif JP', serif;
  font-size: 19px;
  line-height: 1.5;
  color: #e6d9ff;
}

.mn > section p {
  margin: 0 0 1.1em;
}

.mn > section ul,
.mn > section ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.mn > section li {
  margin: .35em 0;
}

.mn > section a {
  color: #cda9ff;
  text-underline-offset: 3px;
}

.mn > section a:hover {
  color: #fff;
}

.mn > section strong {
  color: #fff;
  background: linear-gradient(transparent 62%, rgba(191, 0, 255, .55) 62%);
}

.mn > section img {
  height: auto;
  margin: 1em 0;
  border-radius: var(--r);
}

.mn > section figure {
  margin: 1.2em 0;
}

.mn > section figcaption {
  font-size: 14px;
  color: var(--fg2);
}

.mn > section blockquote {
  margin: 1.2em 0;
  padding: 14px 20px;
  background: var(--ink3);
  border-left: 4px solid var(--s);
  border-radius: var(--r);
}

.mn > section blockquote p:last-child {
  margin-bottom: 0;
}

/* ---------- 右侧栏 ---------- */
.sd {
  grid-column: 2;
  grid-row: 2 / -1;
  align-self: start;
  position: sticky;
  top: 104px;
  display: grid;
  gap: 20px;
}

.sd-box {
  padding: 22px 20px;
  background: var(--ink2);
  border-radius: var(--r);
}

.sd-h {
  margin: 0 0 14px;
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #e0ccff;
}

.sd-h > span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--p);
}

.sd-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--r);
  background: var(--ink3);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}

.sd-list a:hover {
  background: var(--p);
  color: #fff;
  padding-left: 18px;
}

.sd-box p {
  margin: 0;
}

.sd-totop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--r);
  background: var(--s);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}

.sd-totop:hover {
  background: var(--p);
}

/* ---------- 页脚 ---------- */
.ft {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  border-top: 2px solid rgba(101, 20, 255, .55);
}

.ft-mark {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(38px, 9vw, 88px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: .04em;
  background: linear-gradient(100deg, var(--p), var(--s) 62%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ft-col {
  margin: 0;
  font-size: 15px;
  color: var(--fg2);
}

.ft-t {
  display: block;
  margin-bottom: 8px;
  color: #9a7bff;
  font-size: 12px;
  letter-spacing: .22em;
}

.ft-col strong {
  display: block;
  color: var(--fg);
  font-size: 17px;
  font-weight: 600;
}

.ft-col a {
  display: inline-block;
  min-height: 40px;
  margin-right: 12px;
  padding: 8px 0;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(191, 0, 255, .5);
}

.ft-col a:hover {
  color: var(--s);
}

.ft-legal {
  grid-column: 1 / 3;
  margin: 24px 0 0;
}

.ft-legal small {
  color: #9285ac;
  font-size: 13px;
}

.ft-back {
  grid-column: 4 / 5;
  margin: 24px 0 0;
  text-align: right;
}

.ft-back a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r);
  background: var(--ink3);
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.ft-back a:hover {
  background: var(--s);
  color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 940px) {
  .mn {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 0 18px 72px;
  }

  .hero {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 26px;
    min-height: 0;
    padding: 34px 0 0;
    text-align: left;
  }

  .hero-fig {
    flex: 0 0 auto;
    width: 100%;
    min-height: 190px;
    box-shadow: 10px 10px 0 rgba(191, 0, 255, .22);
  }

  .hero-txt {
    flex: 0 0 auto;
  }

  .mn > section:not(.hero) {
    padding: 26px 20px;
  }

  .mn > section:not(.hero):hover {
    transform: none;
    box-shadow: none;
  }

  .sd {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .ft {
    grid-template-columns: 1fr 1fr;
    padding: 48px 18px 40px;
  }

  .ft-legal,
  .ft-back {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .hd {
    position: static;
  }

  .nav {
    padding: 8px 10px;
  }

  .nav-row {
    gap: 6px;
  }

  .nav-row a {
    padding: 9px 12px;
    font-size: 14px;
    min-height: 42px;
  }

  .brand {
    flex: 1 1 100%;
  }

  .hero-h1 {
    font-size: clamp(28px, 8.4vw, 38px);
  }

  .mn > section:not(.hero) {
    padding: 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
