@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: #1F3B2C;
  --ink-2: #2C5140;
  --ink-3: #3E6B55;
  --paper: #E8DFC9;
  --paper-2: #F3EDDF;
  --accent: #C9553D;
  --line: rgba(31, 59, 44, 0.18);
  --line-soft: rgba(31, 59, 44, 0.1);
  --serif: "Noto Serif JP", "Songti SC", "Hiragino Mincho ProN", "Times New Roman", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Microsoft YaHei", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img { border: 0; }
p { margin: 0 0 1.15em; }
a { color: var(--accent); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page { position: relative; }

/* ---------- 页头：品牌行 + 菜单行 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(232, 223, 201, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brandrow {
  display: flex;
  align-items: center;
  padding: 8px 18px 6px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 2px 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.14em;
}

.brandmark-img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brandname { line-height: 1.3; }

.menurow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 8px;
  border-top: 1px solid var(--line-soft);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
}

.menu-cell { position: relative; }

.menu-cell > .menu-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.menu-cell > .menu-link:hover { color: var(--accent); border-color: var(--accent); }

.menu-drop > .menu-link::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 176px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border-top: 2px solid var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
  z-index: 70;
  box-shadow: 0 18px 34px rgba(18, 34, 25, 0.28);
}

.menu-drop:hover .drop,
.menu-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drop-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(232, 223, 201, 0.14);
}

.drop-link:last-child { border-bottom: 0; }
.drop-link:hover { background: var(--ink-3); color: #fff; }

.cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 18px;
  background: var(--accent);
  color: var(--paper-2);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}

.cta:hover { background: #a8412d; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 98px);
  background: var(--ink);
  color: var(--paper);
}

.hero-layer {
  position: absolute;
  inset: -14% 0;
  z-index: 0;
  will-change: transform;
}

.hero-layer--base {
  background:
    radial-gradient(120% 80% at 50% 0%, #35604A 0%, #1F3B2C 55%, #16281D 100%);
}

.hero-layer--photo img,
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) contrast(1.06) brightness(0.86);
}

.hero-layer--veil {
  background:
    linear-gradient(180deg, rgba(31, 59, 44, 0.5) 0%, rgba(31, 59, 44, 0.72) 58%, rgba(22, 40, 29, 0.94) 100%);
}

.hero-ghost {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  will-change: transform;
}

.hero-ghost span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(58px, 15vw, 190px);
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: rgba(232, 223, 201, 0.12);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 26px;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(27px, 5vw, 54px);
  line-height: 1.42;
  letter-spacing: 0.05em;
  color: #F6F0E2;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.42);
}

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, rgba(232, 223, 201, 0), rgba(232, 223, 201, 0.95));
  transform: translateX(-50%);
  animation: cue 2.6s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) scaleY(0.55); }
  50% { opacity: 1; transform: translateX(-50%) scaleY(1); }
}

/* ---------- 主体：左栏 + 正文 ---------- */

.stage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.rail { grid-row: 1; grid-column: 1; }
.story { grid-row: 2; grid-column: 1; min-width: 0; }

.rail-head {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--accent);
}

.subtitle {
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: rgba(31, 59, 44, 0.72);
  margin: 0 0 14px;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 2px 0 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.rail-list a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 12px;
  background: rgba(31, 59, 44, 0.07);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.rail-list a:hover { color: var(--accent); }
.rail-list a[aria-current] { color: var(--accent); border-color: var(--accent); background: rgba(201, 85, 61, 0.1); }

.rail-list .num {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}

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

.story-body > div {
  position: relative;
  padding: 52px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 132px;
}

.story-body > div:first-child { border-top: 0; padding-top: 8px; }

.story-body > div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--accent);
}

.story-body > div:first-child::before { display: none; }

.story-body h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 3vw, 31px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.story-body h3 {
  margin: 1.9em 0 0.6em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.story-body h4 {
  margin: 1.6em 0 0.5em;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.story-body p { max-width: 68ch; }

.story-body h2 + .subtitle,
.story-body h3 + .subtitle {
  margin-top: -4px;
  margin-bottom: 1.1em;
  padding-left: 12px;
  border-left: 2px solid rgba(201, 85, 61, 0.55);
  font-size: 15px;
}

.story-body ul,
.story-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  max-width: 68ch;
}

.story-body li { margin-bottom: 0.45em; }
.story-body li::marker { color: var(--accent); }

.story-body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.story-body blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: rgba(31, 59, 44, 0.055);
  border-left: 3px solid var(--ink-3);
  font-family: var(--serif);
  color: var(--ink-2);
}

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

.story-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em 0;
  background: rgba(31, 59, 44, 0.08);
}

.story-body figure { margin: 1.6em 0; }
.story-body figcaption {
  font-size: 13px;
  color: rgba(31, 59, 44, 0.66);
  padding-top: 6px;
}

.story-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}

.story-body th,
.story-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.story-body th { background: rgba(31, 59, 44, 0.06); font-weight: 600; }

.story-body code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.92em;
  background: rgba(31, 59, 44, 0.08);
  padding: 1px 5px;
}

.story-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

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

.foot {
  margin-top: 56px;
  padding: 30px 18px calc(30px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  justify-items: center;
  border-top: 3px solid var(--accent);
}

.brandmark--foot { color: var(--paper); font-size: 16px; }
.brandmark--foot .brandmark-img { filter: brightness(0) invert(0.92); }

.foot-nav dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
}

.foot-nav dt { margin: 0; }
.foot-nav dd { margin: 0; display: none; }

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
  color: rgba(232, 223, 201, 0.82);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.foot-nav a:hover { color: #fff; border-color: var(--accent); }

.foot-legal { text-align: center; }
.foot-legal p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(232, 223, 201, 0.55);
}

/* ---------- 滚动显现 ---------- */

.js .story-body > div,
.js .rail-list li,
.js .foot {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s cubic-bezier(0.22, 0.7, 0.3, 1), transform 0.72s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.js .story-body > div.is-in,
.js .rail-list li.is-in,
.js .foot.is-in {
  opacity: 1;
  transform: none;
}

.js .story-body > div > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .story-body > div.is-in > * { opacity: 1; transform: none; }

.js .story-body > div.is-in > *:nth-child(1) { transition-delay: 0.05s; }
.js .story-body > div.is-in > *:nth-child(2) { transition-delay: 0.1s; }
.js .story-body > div.is-in > *:nth-child(3) { transition-delay: 0.15s; }
.js .story-body > div.is-in > *:nth-child(4) { transition-delay: 0.2s; }
.js .story-body > div.is-in > *:nth-child(5) { transition-delay: 0.25s; }
.js .story-body > div.is-in > *:nth-child(6) { transition-delay: 0.3s; }
.js .story-body > div.is-in > *:nth-child(7) { transition-delay: 0.35s; }
.js .story-body > div.is-in > *:nth-child(8) { transition-delay: 0.4s; }

/* ---------- 响应式 ---------- */

@media (max-width: 899px) {
  .masthead { position: static; }
  .story-body > div { scroll-margin-top: 24px; }

  .menu-drop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-drop > .menu-link::after { display: none; }

  .menu-drop .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    box-shadow: none;
    border-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .menu-drop .drop-link {
    color: var(--ink);
    background: rgba(31, 59, 44, 0.06);
    border-bottom: 0;
    margin: 0 4px 4px 0;
    padding: 4px 11px;
    min-height: 44px;
  }

  .menu-drop .drop-link:hover { background: rgba(31, 59, 44, 0.12); color: var(--accent); }
}

@media (min-width: 900px) {
  body { font-size: 17.5px; }

  .brandrow { padding: 10px 32px 8px; }
  .menurow { padding: 0 26px 10px; }

  .stage {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 58px;
    padding: 44px 32px 0;
  }

  .rail {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
    position: sticky;
    top: 118px;
    padding-bottom: 20px;
    border-right: 1px solid var(--line-soft);
    padding-right: 18px;
  }

  .story { grid-row: 1; grid-column: 2; }

  .rail-list {
    flex-direction: column;
    overflow: visible;
    gap: 1px;
    padding-bottom: 0;
  }

  .rail-list a {
    background: none;
    padding: 3px 10px;
    border-left: 2px solid transparent;
    white-space: normal;
    line-height: 1.5;
    font-size: 14.5px;
  }

  .rail-list a:hover { background: rgba(31, 59, 44, 0.05); }

  .story-body > div { padding: 66px 0; }
  .story-body > div:first-child { padding-top: 4px; }

  .foot {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    justify-items: center;
    gap: 30px;
    padding: 26px 32px;
  }

  .foot-legal { justify-self: end; min-width: 132px; }
  .foot-mark { justify-self: start; }
}

@media (min-width: 1100px) {
  .hero-title { letter-spacing: 0.06em; }
  .story-body h2 { letter-spacing: 0.05em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cue { animation: none; opacity: 0.8; }
  .hero-layer,
  .hero-ghost { transform: none !important; }
  .js .story-body > div,
  .js .story-body > div > *,
  .js .rail-list li,
  .js .foot {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

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