@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; }

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

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 1.03rem;
  font-weight: 400;
  line-height: 1.85;
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
}

p { margin: 0 0 1.1rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: #000000; }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: #ffffff;
  border-top: 2px solid #000000;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dock-nav {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: .4rem;
  padding: .3rem .9rem;
}

.dock-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem;
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}

.dock-left { justify-content: flex-end; }
.dock-right { justify-content: flex-start; }

.dock-side a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .55rem;
  font-size: .94rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .22s ease, opacity .22s ease;
}

.dock-side a:hover { border-bottom-color: #000000; }

.dock-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .9rem;
  text-decoration: none;
  font-family: "Noto Serif JP", serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .06em;
  border-left: 1px solid #000000;
  border-right: 1px solid #000000;
  transition: opacity .22s ease;
}

.dock-brand:hover { opacity: .6; }
.brand-mark { height: 24px; width: auto; }

.dock-host {
  align-self: center;
  margin-left: .5rem;
  padding-left: .6rem;
  border-left: 1px solid #d8d8d8;
  font-size: .72rem;
  letter-spacing: .06em;
  color: #8a8a8a;
  max-width: 20ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 9vw, 6rem) clamp(1.25rem, 4vw, 2rem) clamp(4.5rem, 9vw, 6rem);
  overflow: hidden;
  background: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: clamp(58px, 9vw, 96px);
  background: #000000;
  transform: skewY(-3.5deg);
  transform-origin: left bottom;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 54rem;
}

.hero-h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 7vw, 4.1rem);
  letter-spacing: -.01em;
  font-weight: 700;
  word-break: break-word;
}

.hero-desc {
  margin: 0 auto;
  max-width: 38em;
  font-size: clamp(.98rem, 1.6vw, 1.06rem);
  color: #2b2b2b;
}

.hero-fig {
  position: relative;
  z-index: 1;
  margin: clamp(1.8rem, 4.5vw, 2.8rem) 0 0;
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: 0 26px 54px -36px rgba(0, 0, 0, .6);
}

.hero-fig.is-blank { background: #ededed; }
.hero-fig img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 正文 + 侧栏 ---------- */
.stream-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2rem) 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.stream {
  min-width: 0;
  counter-reset: sec;
}

.stream > section {
  counter-increment: sec;
  position: relative;
  padding-top: 2.5rem;
  margin-bottom: 2.8rem;
  border-top: 1px solid #dcdcdc;
  scroll-margin-top: 1.5rem;
}

.stream > section::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: 1.55rem;
  left: 0;
  font-size: .72rem;
  letter-spacing: .24em;
  color: #8a8a8a;
}

.stream > section:last-child { margin-bottom: 1rem; }

.stream > section h2,
.stream > section h3 {
  margin: 0 0 1rem;
  padding-bottom: .55rem;
  border-bottom: 3px solid #000000;
  font-size: clamp(1.35rem, 2.7vw, 1.9rem);
}

.stream > section h3 {
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  border-bottom-width: 1px;
}

.stream > section h2 span,
.stream > section h3 span { display: inline; }

.stream > section p { margin: 0 0 1.15rem; }

.stream ul,
.stream ol {
  margin: 0 0 1.3rem;
  padding-left: 1.3rem;
}

.stream li { margin-bottom: .45rem; }

.stream img {
  margin: 1.2rem 0;
  border-radius: 18px;
}

.stream blockquote {
  margin: 1.4rem 0;
  padding: .9rem 1.2rem;
  border-left: 4px solid #000000;
  background: #f5f5f5;
  border-radius: 0 16px 16px 0;
}

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

.stream figure { margin: 1.4rem 0; }
.stream figure img { margin: 0; }

.stream a {
  text-decoration: underline;
  text-underline-offset: .2em;
  transition: opacity .22s ease;
}

.stream a:hover { opacity: .55; }

.stream table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: .96rem;
}

.stream th,
.stream td {
  border: 1px solid #1a1a1a;
  padding: .55rem .7rem;
  text-align: left;
  vertical-align: top;
}

.stream th { background: #f2f2f2; }

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 1.5rem;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 28px;
  padding: 1.3rem 1.25rem 1.1rem;
  box-shadow: 0 20px 42px -32px rgba(0, 0, 0, .55);
}

.rail-h {
  margin: 0 0 .7rem;
  font-size: 1rem;
  letter-spacing: .16em;
  border-bottom: 2px solid #000000;
  padding-bottom: .55rem;
}

.rail-list {
  list-style: none;
  padding: 0;
  counter-reset: r;
}

.rail-list li {
  counter-increment: r;
  border-top: 1px solid #ececec;
}

.rail-list li:first-child { border-top: 0; }

.rail-list a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  min-height: 44px;
  padding: .5rem 0;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}

.rail-list a::before {
  content: counter(r, decimal-leading-zero);
  font-size: .68rem;
  letter-spacing: .1em;
  color: #8a8a8a;
  flex: 0 0 auto;
}

.rail-list a:hover { transform: translateX(4px); }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 2.5rem;
  padding: clamp(2.2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem) 1.4rem;
  border-top: 2px solid #000000;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.foot-block { min-width: 0; }

.foot-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: opacity .22s ease;
}

.foot-brand:hover { opacity: .6; }

.foot-h {
  margin: 0 0 .75rem;
  font-size: .92rem;
  letter-spacing: .2em;
  font-weight: 600;
}

.foot-list {
  list-style: none;
  padding: 0;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: .93rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.foot-list a:hover { border-bottom-color: #000000; }

.foot-host {
  margin: 0;
  font-size: .9rem;
  color: #3a3a3a;
  word-break: break-all;
}

.foot-form {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.foot-form input {
  min-height: 44px;
  padding: .55rem .9rem;
  border: 1px solid #000000;
  border-radius: 16px;
  background: #ffffff;
}

.foot-form button {
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
  letter-spacing: .12em;
  transition: opacity .2s ease;
}

.foot-form button:hover { opacity: .75; }
.foot-form button:disabled { opacity: .55; cursor: default; }

.foot-base {
  grid-column: 1 / -1;
  margin-top: .6rem;
  padding-top: 1rem;
  border-top: 1px solid #dcdcdc;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}

.foot-copy {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .06em;
  color: #4a4a4a;
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .3rem .2rem;
  font-size: .86rem;
  letter-spacing: .1em;
  text-decoration: none;
  border-bottom: 1px solid #000000;
  transition: opacity .2s ease;
}

.to-top:hover { opacity: .55; }

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

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

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .stream-wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 840px) {
  body { padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px)); }

  .dock-nav {
    flex-wrap: wrap;
    gap: .1rem;
    padding: .25rem .4rem .35rem;
  }

  .dock-brand {
    order: -1;
    width: 100%;
    justify-content: center;
    min-height: 38px;
    padding: .2rem;
    font-size: .95rem;
    border: 0;
  }

  .dock-side {
    flex: 1 1 100%;
    justify-content: center;
    gap: 0;
  }

  .dock-side a {
    font-size: 1rem;
    min-height: 42px;
    padding: .5rem .45rem;
  }

  .dock-host { display: none; }
}

@media (max-width: 620px) {
  .foot { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { min-height: 66vh; }
  .hero-fig { border-radius: 22px; }
  .rail { border-radius: 22px; }
}

@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}
