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

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

body {
  margin: 0;
  background: #f5f5f5;
  color: #1f1f1f;
  font-family: 'Poppins', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: #1f1f1f;
}

h1,
h2,
h3,
h4 {
  font-family: 'Righteous', 'Poppins', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.12;
}

hr {
  border: 0;
  border-top: 1px solid #e4e4e4;
  margin: 0.65rem 0 1.15rem;
}

::selection {
  background: #1f1f1f;
  color: #fff;
}

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
}

.brand-img {
  height: 34px;
  width: auto;
  display: block;
}

.brand-txt {
  font-family: 'Righteous', 'Poppins', 'PingFang SC', system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.burger {
  margin-left: auto;
  min-height: 44px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #d9d9d9;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1f1f1f;
  cursor: pointer;
  transition: background 0.2s ease;
}

.burger:hover {
  background: #f5f5f5;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.cta:hover {
  opacity: 0.84;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 20px 40px;
  background: #fff;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.sheet.on {
  visibility: visible;
  opacity: 1;
}

.sheet-nav {
  width: 100%;
  max-width: 520px;
}

.sheet-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  text-align: center;
}

.sheet-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 8px 18px;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sheet-nav a:hover {
  background: #f5f5f5;
}

body.menu-open {
  overflow: hidden;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero {
  grid-column: span 3;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  margin: 0;
  background: #fff;
  min-height: 45vh;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 14px 30px rgba(0, 0, 0, 0.05);
}

.hero-art {
  background: #ebebeb;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  gap: 14px;
  padding: 28px;
}

.hero-lead {
  margin: 0;
  font-size: 1rem;
  color: #5e5e5e;
}

.wrap > section:not(.hero) {
  grid-column: span 2;
  background: #fff;
  padding: 26px;
  scroll-margin-top: 92px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wrap > section:not(.hero):nth-child(3n + 1) {
  grid-column: span 3;
}

.wrap > section:not(.hero):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.09);
}

.wrap > section:not(.hero) h2 {
  font-size: 1.45rem;
}

.wrap > section:not(.hero) h3 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.6rem;
}

.wrap > section:not(.hero) p {
  margin: 0 0 1em;
}

.wrap > section:not(.hero) ul,
.wrap > section:not(.hero) ol {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

.wrap > section:not(.hero) li {
  margin: 0 0 0.45em;
}

.wrap > section:not(.hero) a {
  text-underline-offset: 3px;
}

.wrap > section:not(.hero) blockquote {
  margin: 0 0 1em;
  padding: 2px 0 2px 16px;
  border-left: 3px solid #1f1f1f;
  color: #444;
}

.side {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: 84px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.side-title {
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.side-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.side-nav a:hover {
  background: #f7f7f7;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 32px;
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 26px 20px 40px;
  border-top: 1px solid #e2e2e2;
}

.foot-brand {
  max-width: 300px;
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.foot-desc {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #6d6d6d;
}

.foot-nav {
  flex: 1 1 320px;
}

.foot-nav dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}

.foot-nav dt {
  width: 100%;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: #8a8a8a;
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.92rem;
  text-decoration: none;
}

.foot-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-end {
  margin-left: auto;
  text-align: right;
}

.copy {
  margin: 0;
  font-size: 0.85rem;
  color: #7a7a7a;
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.9rem;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .hero,
  .side,
  .wrap > section:not(.hero),
  .wrap > section:not(.hero):nth-child(3n + 1) {
    grid-column: 1 / -1;
  }

  .side {
    grid-row: auto;
    align-self: stretch;
    position: static;
  }
}

@media (max-width: 620px) {
  .wrap {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-art {
    min-height: 140px;
    max-height: 170px;
  }

  .hero-copy {
    padding: 20px;
    gap: 10px;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .top {
    padding: 8px 12px;
    gap: 8px;
  }

  .cta {
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .burger {
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .wrap > section:not(.hero) {
    padding: 20px;
  }

  .sheet-nav a {
    font-size: 1.15rem;
  }

  .foot {
    flex-direction: column;
    gap: 14px;
    padding: 22px 16px 36px;
  }

  .foot-nav {
    flex: 1 1 auto;
  }

  .foot-end {
    margin-left: 0;
    text-align: left;
  }
}

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

  .reveal {
    transition: none;
  }

  .wrap > section:not(.hero):hover {
    transform: none;
  }
}

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