@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: #1f1f1f;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --line: #e6e6e6;
  --muted: #6f6f6f;
  --r: 18px;
  --shadow: 0 4px 6px rgba(0, 0, 0, .05), 0 16px 36px rgba(0, 0, 0, .05);
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: .01em;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Noto Serif JP", "Songti SC", "SimSun", Georgia, serif;
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: .01em;
}

p { margin: 0 0 14px; }
a { color: inherit; }
img { max-width: 100%; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 99;
  padding: 10px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* 顶栏：品牌居中，菜单分列两侧 */
.bar {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar__brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px;
  text-decoration: none;
  font-family: "Noto Serif JP", "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
}
.bar__brand img { width: 26px; height: 26px; object-fit: contain; }

.bar__nav ul,
.rail ul,
.side ul,
.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar__nav ul { display: flex; gap: 2px; }
.bar__nav--l ul { justify-content: flex-start; }
.bar__nav--r ul { justify-content: flex-end; }

.bar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 16px;
  transition: background .2s ease, color .2s ease;
}
.bar__nav a:hover,
.bar__nav a:focus-visible { background: var(--mist); color: var(--ink); }

.bar__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}

.bar__menu-btn {
  display: none;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}

/* 二级粘性锚点条 */
.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 245, 245, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail ul {
  display: flex;
  gap: 6px;
  padding: 9px 16px;
  white-space: nowrap;
}
.rail a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  color: var(--muted);
  font-size: 16px;
  transition: color .2s ease, box-shadow .2s ease, background .2s ease;
}
.rail a:hover { color: var(--ink); box-shadow: var(--shadow); }
.rail a[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* 主区：正文左侧，侧栏右侧 */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas:
    "lead side"
    "fig side"
    "body side";
  gap: 22px 28px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 20px 0;
}

.lead {
  grid-area: lead;
  padding: 12px 4px 0;
}
.lead h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  word-break: break-word;
}
.lead p {
  margin: 14px 0 0;
  max-width: 48ch;
  color: var(--muted);
}

.collage {
  grid-area: fig;
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 14px;
  align-content: start;
  margin: 0;
  min-height: min(70vh, 560px);
}
.collage__a,
.collage__b {
  overflow: hidden;
  border-radius: var(--r);
  background: linear-gradient(145deg, #ececec, #f9f9f9);
  box-shadow: var(--shadow);
}
.collage__a { grid-column: 1; height: min(54vh, 430px); }
.collage__b { grid-column: 2; height: min(40vh, 320px); margin-top: min(12vh, 92px); }
.collage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.collage__badge {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
  font-size: 16px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.stage__body {
  grid-area: body;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.stage__body > div {
  padding: 26px 26px 30px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
  transition: transform .35s cubic-bezier(.22, .8, .3, 1), box-shadow .35s ease;
}
.stage__body > div:nth-child(even) { margin-left: 26px; }
.stage__body > div:nth-child(3n) { margin-right: 34px; }
.stage__body > div:hover {
  transform: scale(1.012);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .06), 0 24px 48px rgba(0, 0, 0, .07);
}

.stage__body small {
  display: block;
  margin-bottom: 6px;
  color: #9a9a9a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  letter-spacing: .16em;
}
.stage__body h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 28px);
}
.stage__body h3 { margin: 26px 0 8px; font-size: 20px; }
.stage__body ul,
.stage__body ol { margin: 0 0 14px; padding-left: 1.3em; }
.stage__body li { margin: 0 0 6px; }
.stage__body a {
  color: #0d0d0d;
  text-decoration: underline;
  text-decoration-color: #c9c9c9;
  text-underline-offset: 3px;
}
.stage__body blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--mist);
  color: #3a3a3a;
}
.stage__body figure { margin: 18px 0; }
.stage__body figure img { border-radius: 14px; }
.stage__body table { width: 100%; border-collapse: collapse; }
.stage__body th,
.stage__body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* 右侧栏 */
.side {
  grid-area: side;
  position: sticky;
  top: 84px;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.side .card {
  padding: 22px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.side small {
  display: block;
  margin-bottom: 6px;
  color: #9a9a9a;
  font-size: 16px;
  letter-spacing: .16em;
}
.side h2 { margin: 0 0 14px; font-size: 20px; }
.side ul li { margin: 0 0 2px; }
.side a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 16px;
  transition: background .2s ease, color .2s ease;
}
.side a:hover { background: var(--mist); color: var(--ink); }
.side .card--thumb {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.side .card--thumb img { display: block; width: 100%; height: 210px; object-fit: cover; }

/* 页脚：四栏 + 分列底栏 */
.foot {
  margin-top: 72px;
  padding: 52px 20px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.foot__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "Noto Serif JP", "Songti SC", serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.foot address {
  margin-top: 6px;
  font-style: normal;
  color: var(--muted);
  font-size: 16px;
  word-break: break-all;
}
.foot__kw { margin: 4px 0 0; color: var(--muted); }
.foot ul li { margin: 0; }
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  text-decoration: none;
  color: var(--muted);
  font-size: 16px;
  transition: color .2s ease;
}
.foot a:hover { color: var(--ink); }
.foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.foot__bar p { margin: 0; }

/* 入场动效 */
main.anim .stage__body > div {
  opacity: 0;
  transform: translateY(16px);
}
main.anim .stage__body > div.in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .6s cubic-bezier(.22, .8, .3, 1), box-shadow .35s ease;
  transition-delay: calc(var(--i, 0) * 55ms);
}
main.anim .stage__body > div.in:hover {
  transform: scale(1.012);
  transition-delay: 0ms;
}

@media (max-width: 1000px) {
  .bar { grid-template-columns: 1fr auto 1fr; }
  .bar__brand { grid-column: 2; grid-row: 1; font-size: 17px; }
  .bar__menu-btn { display: inline-flex; }
  .bar__cta { display: none; }
  .bar__nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .bar.is-open .bar__nav { display: block; }
  .bar.is-open .bar__nav ul { display: block; padding: 6px 0 2px; }
  .bar.is-open .bar__nav a {
    display: flex;
    min-height: 48px;
    padding: 0 14px;
    color: var(--ink);
  }
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "lead"
      "fig"
      "body"
      "side";
    gap: 20px;
    padding-top: 20px;
  }
  .lead { padding: 8px 2px 0; }
  .collage { min-height: 0; grid-template-columns: 1fr; }
  .collage__a { grid-column: 1; height: min(38vh, 300px); }
  .collage__b { display: none; }
  .collage__badge { bottom: 14px; }
  .stage__body > div { padding: 22px 20px 26px; }
  .stage__body > div:nth-child(even) { margin-left: 0; }
  .stage__body > div:nth-child(3n) { margin-right: 0; }
  .side { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .foot { padding-top: 40px; }
  .foot__grid { grid-template-columns: 1fr; gap: 18px; }
  .foot__bar { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage__body > div,
  .rail a,
  .bar__nav a,
  .side a,
  .foot a { transition: none; }
  .stage__body > div:hover { transform: none; }
  main.anim .stage__body > div { opacity: 1; transform: none; }
}

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