@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');

:root {
  --sky: #c8e0f4;
  --teal: #3a7c7c;
  --ink: #171f26;
  --shell: #d7e6f3;
  --shell-2: #c3d9ee;
  --raise: -6px -6px 16px rgba(255, 255, 255, .9), 6px 6px 18px rgba(58, 96, 128, .22);
  --sink: inset -4px -4px 10px rgba(255, 255, 255, .85), inset 4px 4px 10px rgba(58, 96, 128, .22);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 28px;
  --serif: "Noto Serif JP", "Songti SC", Georgia, serif;
  --sans: "Noto Sans JP", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--shell);
}

body.soft {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(1200px 620px at 8% -8%, #eaf3fb 0%, rgba(234, 243, 251, 0) 62%),
    linear-gradient(160deg, var(--shell) 0%, var(--shell-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--sky);
  box-shadow: var(--raise);
  z-index: 40;
  transition: top .18s ease;
}
.skip:focus { top: 12px; }

/* ---------- 头部 ---------- */
.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(14px, 4vw, 46px) 10px;
  flex-wrap: wrap;
}

.mark {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #e3eefa, var(--shell-2));
  box-shadow: var(--raise);
  transition: transform .15s ease;
}
.mark:active { transform: scale(.94); }
.mark-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.mark-glyph {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--teal);
  letter-spacing: .02em;
}
.mark-glyph.small { font-size: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--shell-2); box-shadow: var(--sink); }

.topnav { flex: 1 1 320px; min-width: 0; }

.pill-row,
.mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 16px;
  color: var(--ink);
  background: linear-gradient(145deg, #e2eefb, var(--shell-2));
  box-shadow: var(--raise);
  transition: box-shadow .15s ease, transform .15s ease, color .15s ease;
}
.pill:hover { color: var(--teal); transform: translateY(-2px); }
.pill:active { box-shadow: var(--sink); transform: scale(.97); }

.minibar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 8px clamp(10px, 4vw, 46px);
  background: rgba(213, 230, 243, .93);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 18px rgba(58, 96, 128, .18);
}
.minibar .pill { min-height: 40px; padding: 7px 12px; font-size: 16px; }

/* ---------- 主视觉 ---------- */
main { display: block; }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(18px, 4vw, 60px);
  padding: clamp(24px, 6vw, 70px) clamp(16px, 5vw, 70px);
  position: relative;
  overflow: hidden;
}

.hero-copy { text-align: center; }

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.24;
  letter-spacing: .01em;
  margin: 0 0 18px;
  text-wrap: balance;
  color: var(--ink);
}

.hero-desc {
  max-width: 30ch;
  margin: 0 auto 26px;
  font-size: 17px;
  color: #2c4149;
  text-wrap: pretty;
}

.hero-jump {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: #f2fafd;
  background: linear-gradient(145deg, #4d9090, #2f6868);
  box-shadow: -5px -5px 14px rgba(255, 255, 255, .7), 6px 6px 16px rgba(31, 68, 68, .42);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: scale(.97); box-shadow: var(--sink); }

.cta.ghost {
  color: var(--ink);
  background: linear-gradient(145deg, #e6f0fb, var(--shell-2));
  box-shadow: var(--raise);
  font-weight: 500;
}

.hero-art {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: 40px;
  background: linear-gradient(145deg, #dcebf9, var(--shell-2));
  box-shadow: var(--raise);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-photo { width: 100%; height: 100%; object-fit: cover; }

.dotfield {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(58, 124, 124, .32) 1.4px, rgba(58, 124, 124, 0) 1.5px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 35% 30%, #000 0%, rgba(0, 0, 0, .15) 75%);
  -webkit-mask-image: radial-gradient(circle at 35% 30%, #000 0%, rgba(0, 0, 0, .15) 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(145deg, #eaf4fd, #bcd6ec);
  box-shadow: var(--raise);
}
.orb-a { width: 78px; height: 78px; top: 12%; left: 9%; opacity: .85; }
.orb-b { width: 42px; height: 42px; right: 12%; bottom: 14%; box-shadow: var(--sink); }

/* ---------- 板面 ---------- */
.board {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 42px);
  padding: clamp(20px, 4vw, 56px) clamp(14px, 4vw, 60px) 10px;
  align-items: start;
}

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

.rail-head,
.rail-foot { margin: 0; }

.rail-head span,
.rail-foot span {
  display: inline-block;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .16em;
  color: #42606d;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: var(--sink);
}

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 16px;
  color: #1e343c;
  background: rgba(255, 255, 255, .34);
  box-shadow: -3px -3px 8px rgba(255, 255, 255, .85), 3px 3px 8px rgba(58, 96, 128, .16);
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.rail-list a:hover { color: var(--teal); transform: translateX(2px); }
.rail-list a:active { box-shadow: var(--sink); }

.dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .55;
}

/* ---------- 正文流 ---------- */
.flow { min-width: 0; }

.flow article {
  padding: clamp(24px, 4vw, 48px) clamp(18px, 3.4vw, 44px);
  margin: 0 0 clamp(20px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #e5f0fb 0%, var(--shell-2) 100%);
  box-shadow: var(--raise);
  scroll-margin-top: 90px;
}

.flow h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
  margin: 0 0 16px;
  text-wrap: balance;
  color: var(--ink);
}

.flow h2 > span { display: inline-block; }

.flow h2 > span::after {
  content: "";
  display: block;
  width: 46px;
  height: 5px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--teal);
  opacity: .55;
}

.flow h3 {
  font-family: var(--serif);
  font-size: 1.16rem;
  margin: 22px 0 10px;
  color: #22414a;
}
.flow h3 > span { display: inline-block; }

.flow p { margin: 0 0 14px; text-wrap: pretty; }

.flow ul,
.flow ol { margin: 0 0 16px; padding-left: 1.3em; }
.flow li { margin: 0 0 8px; }

.flow figure,
.flow aside {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--sink);
  background: rgba(255, 255, 255, .3);
}

.flow blockquote {
  margin: 18px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(255, 255, 255, .38);
}

.flow a {
  color: var(--teal);
  border-bottom: 1px solid rgba(58, 124, 124, .42);
}
.flow a:hover { border-bottom-color: var(--teal); }

.flow table { width: 100%; border-collapse: collapse; font-size: 16px; }
.flow th,
.flow td { padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(58, 96, 128, .22); }

.flow img { border-radius: var(--r-md); }

.page-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin: 0 0 12px;
  text-wrap: balance;
}
.page-desc { color: #2c4149; margin: 0 0 18px; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(24px, 4vw, 54px);
  padding: 0 clamp(14px, 4vw, 60px) 28px;
}

.foot-cta {
  text-align: center;
  padding: clamp(28px, 5vw, 52px) 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #dceaf8, var(--shell-2));
  box-shadow: var(--raise);
}

.foot-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin: 0 0 18px;
  text-wrap: balance;
}
.foot-cta h2 > span { display: inline-block; }
.foot-cta-line { margin: 0; }

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--sink);
  background: rgba(255, 255, 255, .26);
}

.foot-brand { display: flex; align-items: center; gap: 9px; }
.foot-name { font-family: var(--serif); font-size: 16px; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: 16px;
  color: #24424b;
}
.foot-nav a:hover { box-shadow: var(--sink); color: var(--teal); }

.foot-copy { margin: 0 auto 0 0; font-size: 16px; color: #3a5560; }

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 899px) {
  .minibar { display: block; }
  .masthead { padding-bottom: 16px; }
  .topnav .pill-row { justify-content: flex-start; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 40px;
    gap: 22px;
  }
  .hero-art { aspect-ratio: 16 / 10; border-radius: var(--r-lg); order: 2; }
  .hero-desc { max-width: 34ch; }

  .board { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .rail-list { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

@media (max-width: 420px) {
  body.soft { font-size: 16px; }
  .hero-title { font-size: 1.85rem; }
  .flow article { padding: 22px 16px; border-radius: 22px; }
  .foot-row { justify-content: flex-start; }
  .foot-copy { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

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