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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: #fff;
  color: #1a1a1a;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

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

.content > figure img,
.grid img {
  width: 100%;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.page-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 22px 0 14px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 400;
}

h1 {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.chapter {
  scroll-margin-top: 76px;
}

.beat {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  column-gap: 36px;
  align-items: start;
  border-top: 1px solid #e6e6e6;
  padding: 28px 0 8px;
}

.chapter:first-of-type .beat:first-child {
  border-top: 0;
}

h2 {
  grid-column: 1;
  grid-row: 1;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.35;
}

.content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding-bottom: 36px;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: #8a8a8a;
  font-size: 14px;
  line-height: 1.55;
}

h3 {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.content p {
  margin-top: 10px;
}

.lines p {
  margin-top: 0;
}

.lines p + p {
  margin-top: 4px;
}

.content p + p {
  margin-top: 12px;
}

.lines p + p {
  margin-top: 4px;
}

.grid {
  display: grid;
  gap: 16px 14px;
  margin-top: 18px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.grid-follow {
  margin-top: 14px;
}

.grid-visit {
  grid-template-columns: 0.86fr 1.14fr;
  align-items: start;
}

.grid img {
  height: 280px;
  object-fit: cover;
  object-position: center;
}

.grid-3 img {
  height: 240px;
}

.grid-visit img {
  height: 320px;
}

.logos {
  border-left: 1px solid #e0e0e0;
  padding: 8px 0 8px 28px;
  max-width: 560px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo-row + .logo-row {
  margin-top: 28px;
}

.logo-row img {
  width: auto;
  max-width: min(320px, 70%);
  height: auto;
}

.logo-row span {
  color: #8a8a8a;
  font-size: 15px;
}

.summit-split {
  display: none;
}

.outline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.outline a {
  color: #8a8a8a;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
}

.outline a.is-active {
  color: #1a1a1a;
  font-weight: 650;
}

@media (max-width: 760px) {
  .page {
    padding: 0 18px 72px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 16px;
  }

  .chapter {
    scroll-margin-top: 108px;
  }

  h1 {
    font-size: 24px;
  }

  .beat {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-top: 22px;
  }

  h2,
  .content {
    grid-column: 1;
    grid-row: auto;
  }

  h2 {
    margin-bottom: 16px;
  }

  h3 {
    font-size: 20px;
  }

  .grid-2,
  .grid-3,
  .grid-visit {
    grid-template-columns: 1fr;
  }

  .grid img,
  .grid-3 img,
  .grid-visit img {
    height: auto;
    object-fit: initial;
  }

  .summit-full {
    display: none;
  }

  .summit-split {
    display: grid;
    gap: 10px;
  }

  .summit-split img {
    width: 100%;
    aspect-ratio: 1323 / 1524;
    object-fit: cover;
    object-position: left center;
  }

  .summit-split .half-right {
    object-position: right center;
  }
}
