@import url('https://fonts.googleapis.com/css2?family=Calistoga:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

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

body {
  margin: 0;
  padding: 0 0 96px;
  background: #ffffff;
  color: #000000;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.055) 0 1px, transparent 1px 64px);
}

main, footer, .dock { position: relative; z-index: 1; }

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

a { color: #000000; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1.05em; }

ul, ol { margin: 0 0 1.05em; padding-left: 1.25em; }

.skip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  padding: 12px 18px;
  background: #000000;
  color: #ffffff;
  font-size: 16px;
  transform: translateY(-140%);
  transition: transform 0.18s ease;
}
.skip:focus { transform: translateY(0); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 68px) 20px clamp(26px, 4vw, 52px);
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  min-width: 0;
}

.hero-tag {
  display: inline-block;
  margin: 0;
  padding: 5px 14px;
  border: 1px solid #000000;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.5;
  background: #ffffff;
  box-shadow: 3px 3px 0 #000000;
}

.hero h1 {
  font-family: Calistoga, Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5.6vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.hero-fig {
  position: relative;
  overflow: hidden;
  border: 1px solid #000000;
  border-radius: 10px;
  aspect-ratio: 4 / 5;
  background: #ffffff;
  box-shadow: 6px 6px 0 #000000;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: grayscale(1) contrast(1.06);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, #000000 0 1px, transparent 1px 12.5%);
  background-color: #ffffff;
  border-left: 0;
}

/* ---------- layout ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 24px;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 22px;
  padding-top: 8px;
  min-width: 0;
}

.rail-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin: 0 0 10px;
  text-transform: none;
}

.rail hr {
  width: 34px;
  height: 0;
  margin: 0 0 16px;
  border: 0;
  border-top: 3px solid #000000;
}

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  border-left-color: #000000;
  background: #f2f2f2;
}

.shell { min-width: 0; }
.doc { min-width: 0; }

.doc > article {
  counter-increment: sec;
  scroll-margin-top: 26px;
  padding: 46px 0 12px;
  border-top: 1px solid #000000;
}

.doc > article:first-child { border-top: 0; padding-top: 8px; }

.doc { counter-reset: sec; }

.doc > article::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin: 0 0 12px;
  color: #000000;
}

.doc h2 {
  font-family: Calistoga, Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.68rem, 3.4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.doc h3 {
  font-size: clamp(1.2rem, 2.1vw, 1.42rem);
  margin: 30px 0 10px;
  letter-spacing: -0.01em;
}

.doc hr {
  width: 62px;
  height: 0;
  border: 0;
  border-top: 3px solid #000000;
  margin: 0 0 22px;
}

.doc p, .doc li { max-width: 68ch; }
.doc p { margin: 0 0 1.05em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.45em; }

.doc blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid #000000;
  font-size: 1.06em;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 16px;
}
.doc th, .doc td {
  border-bottom: 1px solid #000000;
  padding: 10px 12px;
  text-align: left;
}

.doc article.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.doc article.rv.is-in { opacity: 1; transform: none; }

/* ---------- footer ---------- */

.foot {
  border-top: 2px solid #000000;
  margin-top: 64px;
  padding: 44px 20px 30px;
  background: #ffffff;
}

.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 30px;
}

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

.foot-mark {
  margin: 0;
  font-family: Calistoga, Inter, sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.foot-addr {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  display: block;
}

.foot-name { display: block; font-weight: 600; }
.foot-host {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  color: #333333;
  word-break: break-all;
}

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

.foot-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease;
}
.foot-list a:hover, .foot-list a:focus-visible { border-bottom-color: #000000; }

.foot-copy {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid #000000;
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* ---------- dock ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 2vw, 26px);
  padding: 7px 14px;
  background: #000000;
  color: #ffffff;
  border-top: 1px solid #000000;
}

.dock-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.3;
  border-bottom: 2px solid transparent;
  transition: border-color 0.16s ease, opacity 0.16s ease;
}
.dock a:hover, .dock a:focus-visible { border-bottom-color: #ffffff; }

.dock-brand {
  font-family: Calistoga, Inter, sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  padding: 8px 16px;
  white-space: nowrap;
}

:focus-visible { outline: 2px solid #000000; outline-offset: 3px; }
.dock :focus-visible { outline-color: #ffffff; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-fig { aspect-ratio: 16 / 10; max-width: 520px; margin: 0 auto; width: 100%; }
  .wrap { grid-template-columns: 1fr; }
  .rail { position: static; }
  .rail-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .rail-nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 8px 10px; }
  .rail-nav a:hover { border-bottom-color: #000000; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 210px; font-size: 17px; }
  .dock { flex-wrap: wrap; gap: 2px; padding: 6px 8px 10px; }
  .dock-brand {
    order: -1;
    width: 100%;
    padding: 6px 0;
    font-size: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.45);
  }
  .dock-nav { flex: 1 1 auto; display: flex; justify-content: center; }
  .dock-nav ul { flex-wrap: wrap; justify-content: center; gap: 2px; }
  .dock a { padding: 8px 7px; font-size: 15px; }
  .hero { padding-top: 26px; }
  .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.6rem); }
  .hero-tag { font-size: 13px; letter-spacing: 0.12em; box-shadow: 2px 2px 0 #000000; }
  .wrap { padding-bottom: 18px; }
  .doc > article { padding-top: 34px; }
  .foot { padding: 34px 16px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-copy { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .doc article.rv { transition: none; }
  .lift, .hero-img { transition: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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