@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 {
  --ink: #171f26;
  --ink-up: #1e2a34;
  --ink-down: #141c23;
  --ice: #c8e0f4;
  --rose: #f5e0e8;
  --text: #d6e3ef;
  --muted: #9db0c0;
  --line: rgba(200, 224, 244, 0.12);
  --raised: -6px -6px 16px rgba(200, 224, 244, 0.07), 8px 8px 20px rgba(0, 0, 0, 0.55);
  --raised-sm: -3px -3px 8px rgba(200, 224, 244, 0.08), 4px 4px 10px rgba(0, 0, 0, 0.5);
  --sunk: inset -4px -4px 10px rgba(200, 224, 244, 0.07), inset 5px 5px 12px rgba(0, 0, 0, 0.6);
  --card: 28px;
  --pill: 16px;
  --sans: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #171f26;
}

body {
  margin: 0;
  padding: 0 0 148px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(860px 560px at 10% -8%, rgba(200, 224, 244, 0.11), transparent 62%),
    radial-gradient(720px 500px at 94% 4%, rgba(245, 224, 232, 0.09), transparent 64%);
  background-repeat: no-repeat;
  overflow-x: hidden;
  word-break: break-word;
}

a {
  color: var(--ice);
}

.brand-mark {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  text-decoration: none;
  color: #101820;
  background: linear-gradient(145deg, #d9ecfb, #b9d6ec);
  box-shadow: var(--raised);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-mark:active {
  transform: scale(0.95);
  box-shadow: var(--sunk);
}

.brand-glyph {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 70vh;
  margin: 20px 0 0;
  padding: 0;
  border-radius: var(--card);
  overflow: hidden;
  text-align: center;
  background: linear-gradient(150deg, #1c2731, #131a20);
  box-shadow: var(--raised);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.4s ease;
  will-change: transform;
}

.hero-img.is-on {
  opacity: 0.5;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(20, 28, 35, 0.58);
  background-image: radial-gradient(rgba(200, 224, 244, 0.22) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 22%, transparent 84%);
  mask-image: radial-gradient(circle at 50% 42%, #000 22%, transparent 84%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 56px 22px;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 6.4vw, 3.4rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: #eef6fd;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-sub {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: 1rem;
  line-height: 1.85;
  color: #c3d4e2;
}

.hero-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 26px;
  padding: 0 22px;
  border-radius: var(--pill);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #101a22;
  background: linear-gradient(145deg, var(--ice), #aecfe8);
  box-shadow: -4px -4px 10px rgba(200, 224, 244, 0.22), 5px 5px 14px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-jump:active {
  transform: scale(0.97);
  box-shadow: var(--sunk);
}

.zone {
  margin-top: 54px;
}

.prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 22px 38px;
  border-radius: var(--card);
  background: linear-gradient(150deg, #1d2833, #172028);
  box-shadow: var(--raised);
}

.prose small {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: none;
}

.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.zone-title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.4vw, 2.15rem);
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: #eaf3fb;
}

.prose h2 {
  margin: 2em 0 0.7em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.38rem, 4.2vw, 1.9rem);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #e9f3fb;
}

.prose h3 {
  margin: 1.8em 0 0.6em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.12rem, 3.4vw, 1.35rem);
  line-height: 1.7;
  color: #dfeaf4;
}

.prose p {
  margin: 0 0 1.25em;
}

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

.prose li {
  margin: 0.45em 0;
}

.prose li::marker {
  color: var(--ice);
}

.prose strong {
  color: #f4f9fd;
  font-weight: 700;
}

.prose a {
  text-decoration-color: rgba(200, 224, 244, 0.5);
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 20px;
  border-radius: var(--pill);
  background: #1a232b;
  box-shadow: var(--sunk);
  color: #c8d8e5;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--raised-sm);
}

.prose figure {
  margin: 1.6em 0;
}

.prose figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.prose section[id] {
  scroll-margin-top: 96px;
  scroll-margin-bottom: 120px;
}

.prose section + section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.prose section + section::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: -31px 0 26px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ice), var(--rose));
  opacity: 0.7;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(23, 31, 38, 0.86), rgba(20, 27, 33, 0.98));
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.dock-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.dock-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(145deg, #1f2b36, #1a232c);
  box-shadow: var(--raised-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.dock-nav a:active {
  transform: scale(0.97);
  box-shadow: var(--sunk);
}

.foot {
  margin-top: 70px;
  padding: 42px 16px 30px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: left;
}

.foot dl {
  margin: 0;
}

.foot dt {
  margin-bottom: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.foot dd {
  margin: 0 0 2px;
}

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
}

.foot dd a:hover {
  color: var(--ice);
}

.foot-name {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--ice);
  font-family: var(--serif);
  letter-spacing: 0.08em;
}

.foot-huge {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 15vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(160deg, #dceefc 12%, #f0dde6 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  user-select: none;
}

.foot-copy {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

@media (min-width: 900px) {
  body {
    padding: 0 0 70px;
  }

  main,
  .foot {
    padding-right: 172px;
  }

  .wrap {
    padding: 0 28px;
  }

  .dock {
    top: 50%;
    right: 18px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    padding: 12px;
    border-top: 0;
    border-radius: 22px;
    background: linear-gradient(150deg, #1f2b36, #172028);
    box-shadow: var(--raised);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .dock-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: none;
  }

  .dock-nav a {
    min-width: 128px;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .dock-nav a:hover {
    color: #101a22;
    background: linear-gradient(145deg, #d9ecfb, #b8d4ea);
    box-shadow: -3px -3px 8px rgba(200, 224, 244, 0.24), 4px 4px 10px rgba(0, 0, 0, 0.55);
  }

  .foot {
    text-align: center;
  }

  .hero-copy {
    padding: 72px 32px;
  }
}

@media (max-width: 420px) {
  .foot-cols {
    gap: 10px;
  }

  .foot dd a,
  .foot-name {
    font-size: 0.95rem;
  }

  .prose {
    padding: 26px 16px 30px;
    border-radius: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

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