@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

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

:root {
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --ink: #171f26;
  --mute: #4d5f6c;
  --base: #e9f1f7;
  --hi: rgba(255, 255, 255, 0.94);
  --lo: rgba(23, 31, 38, 0.13);
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Noto Serif JP", "Songti SC", "SimSun", Georgia, serif;
  --raise: -6px -6px 16px var(--hi), 7px 7px 18px var(--lo);
  --raise-sm: -4px -4px 10px var(--hi), 4px 4px 10px var(--lo);
  --sink: inset 3px 3px 8px var(--lo), inset -3px -3px 8px var(--hi);
  --r: 28px;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  color: var(--ink);
  background: linear-gradient(168deg, #eef5fa 0%, #e6eff7 46%, #ebf1f6 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 90;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--raise-sm);
  transition: top 0.18s ease;
}

.skip:focus {
  top: 12px;
}

/* ---------- 顶部两行 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(237, 244, 250, 0.97), rgba(233, 241, 247, 0.88));
  backdrop-filter: blur(10px);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 10px 22px rgba(23, 31, 38, 0.07);
  transition: box-shadow 0.2s ease;
}

.top.is-stuck {
  box-shadow: 0 14px 30px rgba(23, 31, 38, 0.14);
}

.top-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 14px;
}

.brandrow {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--raise-sm);
  background: var(--pink);
}

.brand-t {
  font-family: var(--serif);
  font-size: 1.26rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.menuroll {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  padding: 6px;
  border-radius: 999px;
  background: rgba(236, 244, 250, 0.7);
  box-shadow: var(--sink);
  scrollbar-width: none;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pills a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(145deg, #f1f8fd, #dbe9f4);
  box-shadow: var(--raise-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pills a:hover {
  box-shadow: -5px -5px 12px var(--hi), 5px 5px 12px var(--lo);
}

.pills a:active {
  box-shadow: var(--sink);
  transform: scale(0.97);
}

.cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(145deg, #f8e8ef, #e6c9da);
  box-shadow: var(--raise-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cta:active {
  box-shadow: var(--sink);
  transform: scale(0.97);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 34px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 20px 12px;
  min-height: 70vh;
  overflow: hidden;
}

.hero::before {
  content: "01";
  position: absolute;
  right: 2%;
  top: -3%;
  font-family: var(--serif);
  font-size: min(32vw, 300px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(23, 31, 38, 0.055);
  pointer-events: none;
  z-index: 0;
}

.hero-txt {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.26;
}

.hero-desc {
  margin: 0 auto;
  max-width: 32ch;
  color: var(--mute);
  font-size: 1.02rem;
}

.hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(145deg, #dcecf8, #f6e2ea);
  box-shadow: var(--raise);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-blob {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff, #f4dfe9 56%, #c8e0f4);
  box-shadow: inset -10px -10px 22px rgba(23, 31, 38, 0.12), inset 10px 10px 22px rgba(255, 255, 255, 0.92);
}

/* ---------- 主体两栏 ---------- */

.stage {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 20px 0;
}

.rail {
  position: sticky;
  top: 156px;
  padding: 18px 16px 20px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #eff7fc, #dee9f3);
  box-shadow: var(--raise);
}

.rail small {
  display: block;
  font-size: 14px;
  letter-spacing: 0.42em;
  color: var(--mute);
}

.rail h2 {
  margin: 2px 0 12px;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.rail li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
  background: rgba(252, 254, 255, 0.72);
  box-shadow: -3px -3px 8px var(--hi), 3px 3px 8px rgba(23, 31, 38, 0.09);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.rail li a:active {
  box-shadow: var(--sink);
  transform: scale(0.98);
}

.stage-main {
  min-width: 0;
}

/* ---------- 正文 ---------- */

.prose div {
  margin: 0 0 26px;
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--r);
  background: linear-gradient(145deg, #f4fafd, #e6f0f7);
  box-shadow: var(--raise);
  scroll-margin-top: 156px;
  overflow-wrap: break-word;
}

.prose div:nth-of-type(even) {
  background: linear-gradient(145deg, #fdf5f9, #f6e6ee);
}

.prose small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--mute);
  margin-bottom: 6px;
}

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.42;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 1.16rem;
  line-height: 1.5;
}

.prose p {
  margin: 0 0 14px;
  line-height: 1.85;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: #1b5b88;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose time {
  display: inline-block;
  font-size: 15px;
  color: var(--mute);
}

.prose figure {
  margin: 18px 0;
  border-radius: 16px;
  overflow: hidden;
}

.prose blockquote {
  margin: 18px 0;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--sink);
}

/* ---------- 页脚 ---------- */

.foot {
  margin-top: 60px;
  padding: 42px 20px 0;
  background: linear-gradient(180deg, #e4edf4, #dae6ef);
  box-shadow: inset 0 10px 24px rgba(255, 255, 255, 0.85);
  border-radius: var(--r) var(--r) 0 0;
}

.foot > div,
.f-base {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.f-brand,
.f-nav,
.f-info {
  margin-bottom: 26px;
}

.f-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
}

.f-desc {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--mute);
  max-width: 40ch;
}

.f-nav nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.f-nav nav dt {
  margin: 0;
}

.f-nav nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  background: rgba(252, 254, 255, 0.7);
  box-shadow: var(--raise-sm);
}

.f-nav nav a:active {
  box-shadow: var(--sink);
}

.f-info {
  display: flex;
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  background: linear-gradient(145deg, #f8e8ef, #e6c9da);
  box-shadow: var(--raise-sm);
}

.f-base {
  padding: 18px 0 26px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.f-base p {
  margin: 0;
  font-size: 14px;
  color: var(--mute);
  letter-spacing: 0.06em;
}

/* ---------- 动效 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--d, 0ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 22px;
    padding-top: 24px;
  }

  .hero-txt {
    order: 1;
  }

  .hero-art {
    order: 2;
    aspect-ratio: 16 / 10;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7.4vw, 2.2rem);
  }

  .hero::before {
    font-size: 42vw;
    top: -1%;
    right: -2%;
  }

  .stage {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 22px;
  }

  .rail {
    position: static;
    padding: 14px;
    border-radius: 22px;
  }

  .rail small {
    letter-spacing: 0.3em;
  }

  .rail h2 {
    font-size: 1.1rem;
  }

  .rail ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .rail ul::-webkit-scrollbar {
    display: none;
  }

  .rail li {
    flex: 0 0 auto;
  }

  .rail li a {
    min-height: 40px;
    padding: 8px 14px;
    white-space: nowrap;
  }

  .prose div {
    scroll-margin-top: 178px;
  }

  .top-in {
    padding-left: 14px;
    padding-right: 14px;
  }

  .stage,
  .hero,
  .foot {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 560px) {
  .brand-t {
    font-size: 1.08rem;
  }

  .cta {
    padding: 10px 14px;
    font-size: 14px;
  }

  .pills a {
    padding: 10px 14px;
    font-size: 14px;
  }

  .foot {
    padding-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .top,
  .rail,
  .to-top {
    display: none;
  }
}

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