@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

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

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --soft: #f5f5f5;
  --mid: #6a6a6a;
  --line: rgba(31, 31, 31, 0.14);
  --sh: 0 4px 6px rgba(0, 0, 0, 0.05), 0 16px 34px rgba(0, 0, 0, 0.06);
  --wrap: 1180px;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px clamp(12px, 3vw, 22px);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow: hidden;
}

.mark img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs a {
  flex: 0 0 auto;
  padding: 12px 9px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.tabs a:hover {
  background: var(--soft);
  border-bottom-color: var(--ink);
}

.cta {
  flex: 0 0 auto;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.cta:hover {
  background: #000;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(18px, 4vw, 40px);
  min-height: 70vh;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(30px, 7vw, 74px) clamp(18px, 5vw, 56px);
  background: var(--paper);
  box-shadow: var(--sh);
  scroll-margin-top: 86px;
}

.hero-txt {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6.2vw, 3.5rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 32em;
  margin: 0 auto 26px;
  font-size: 17px;
  line-height: 1.7;
  color: #3c3c3c;
}

.hero-cta {
  display: inline-block;
  padding: 14px 26px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.hero-cta:hover {
  background: #000;
  transform: translateY(-2px);
}

.hero-fig {
  position: relative;
  z-index: 2;
  margin: 0;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.hero-bg {
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  z-index: 1;
  font-size: clamp(92px, 23vw, 290px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.055em;
  color: #eaeaea;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.body {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  max-width: var(--wrap);
  margin: clamp(16px, 2.4vw, 26px) auto 0;
  padding: 0 clamp(12px, 3vw, 22px);
}

.side {
  position: sticky;
  top: 86px;
  padding: 20px 18px;
  background: var(--paper);
  box-shadow: var(--sh);
}

.side small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--mid);
}

.side h2 {
  margin: 6px 0 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.side ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: navi;
}

.side li {
  counter-increment: navi;
  border-top: 1px solid var(--line);
}

.side li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 2px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
}

.side li a::before {
  content: counter(navi, decimal-leading-zero);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  color: #b2b2b2;
}

.side li a:hover {
  background: var(--soft);
}

.prose {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  min-width: 0;
  counter-reset: sec;
}

.prose > div {
  position: relative;
  overflow: hidden;
  counter-increment: sec;
  padding: clamp(20px, 4vw, 44px);
  background: var(--paper);
  box-shadow: var(--sh);
  scroll-margin-top: 86px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.prose > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.06), 0 22px 44px rgba(0, 0, 0, 0.09);
}

.prose > div::before {
  content: "0" counter(sec);
  position: absolute;
  right: 12px;
  top: 4px;
  z-index: 0;
  font-size: clamp(46px, 8vw, 86px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #f0f0f0;
  pointer-events: none;
}

.prose small {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--mid);
}

.prose h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  padding-right: 2.4em;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.prose h3 {
  margin: 22px 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.4;
}

.prose p {
  margin: 0 0 16px;
}

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

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.prose li {
  margin-bottom: 6px;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: var(--soft);
  border-left: 4px solid var(--ink);
}

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

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
}

.prose figure {
  margin: 0 0 16px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px clamp(14px, 3vw, 26px);
  margin-top: clamp(20px, 3vw, 30px);
  padding: 16px clamp(12px, 3vw, 22px);
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.f-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.f-brand .mark {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.f-nav dl {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  margin: 0;
}

.f-nav dt {
  margin: 0;
}

.f-nav dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a2a2a2;
}

.f-nav a {
  display: inline-block;
  padding: 11px 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
}

.f-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.f-box form {
  display: flex;
}

.f-box input {
  width: 150px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
}

.f-box button {
  padding: 10px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
}

.f-box button:hover {
  background: #000;
}

.sub-msg {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #3c3c3c;
}

.sub-msg:empty {
  display: none;
}

.f-legal {
  font-size: 15px;
  color: #4a4a4a;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 11px 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: var(--sh);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.to-top.on {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 860px) {
  .body {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 clamp(12px, 3vw, 18px);
  }

  .side {
    position: static;
  }

  .side ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 34px;
  }

  .hero-bg {
    font-size: clamp(76px, 25vw, 150px);
  }

  .prose h2 {
    padding-right: 1.9em;
  }
}

@media (max-width: 620px) {
  .cta {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .f-box,
  .f-box form {
    width: 100%;
  }

  .f-box input {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .f-legal {
    font-size: 14px;
  }
}

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

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

  .prose > div:hover {
    transform: none;
  }
}

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