:root {
  --bg: #fff;
  --fg: #0c0c0c;
  --mute: #6b6b6b;
  --line: #e3e3e3;
  --red: #1a1f7a;
  --chip: #f4f4f4;
  --img1: #cfd8dc;
  --img2: #90a4ae;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] {
  --bg: #121212;
  --fg: #f2f2f2;
  --mute: #a0a0a0;
  --line: #2e2e2e;
  --red: #8c93ff;
  --chip: #1e1e1e;
  --img1: #37474f;
  --img2: #263238;
}
html {
  scroll-padding-top: calc(70px + env(safe-area-inset-top, 0px));
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Arial, sans-serif;
}
a {
  color: inherit;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 10;
}
.bar {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 14px 0;
  border-bottom: 3px solid var(--line);
  position: relative;
}
.bar:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 3px;
  width: var(--p, 0%);
  background: var(--red);
}
.logo {
  font-weight: 900;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: var(--red);
  white-space: nowrap;
}
.logo b {
  color: var(--fg);
  font-weight: 800;
  font-size: 19px;
  margin-left: 6px;
}
nav {
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 15px;
  font-weight: 500;
  overflow: visible;
  min-width: 0;
}
nav a {
  text-decoration: none;
}
.sp {
  flex: 1;
}
.tbtn {
  align-self: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--fg);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.tbtn:hover {
  background: var(--chip);
}
.tbtn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.tbtn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  grid-area: 1/1;
}
.burger,
.i-close {
  display: none;
}
.i-sun {
  display: none;
}
:root[data-theme="dark"] .i-sun {
  display: block;
}
:root[data-theme="dark"] .i-moon {
  display: none;
}
.btn {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  border-radius: 8px;
  padding: 8px 16px;
  font: 600 14px inherit;
  font-family: inherit;
  cursor: pointer;
}
.btn:focus-visible,
.share button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.head {
  position: relative;
  margin: 28px 0 0;
  padding: 0;
}
.head:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 14px;
  background: var(--red);
}
h1 {
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0;
  max-width: 18em;
}
.meta {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.9;
}
.meta b {
  font-weight: 600;
}
figure {
  margin: 0;
}
.hero {
  margin-top: 28px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, var(--img1), var(--img2));
  position: relative;
}
.hero svg,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero img,
.inline .img img {
  display: block;
  object-fit: cover;
  object-position: center;
}
figcaption {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mute);
  margin: 14px auto 0;
  max-width: 560px;
}
figcaption i {
  color: var(--mute);
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
  margin-top: 26px;
}
.share {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: calc(80px + env(safe-area-inset-top, 0px));
  align-self: start;
}
.share button {
  width: 50px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.share svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share.row {
  flex-direction: row;
  position: static;
  margin-top: 28px;
}
article {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 20px;
  line-height: 2.15;
  min-width: 0;
}
article p {
  margin: 0 0 30px;
}
article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
article h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 26px;
  line-height: 1.2;
  margin: 44px 0 18px;
  font-weight: 800;
}
.inline {
  margin: 10px 0 34px;
}
.inline .img {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--img2), var(--img1));
  display: grid;
  place-items: center;
  color: var(--mute);
  font:
    600 14px "Helvetica Neue",
    Arial,
    sans-serif;
}
.inline .img img {
  width: 100%;
  height: 100%;
}
.inline figcaption {
  margin: 12px 0 0;
  max-width: none;
}
blockquote {
  margin: 0 0 30px;
  padding-left: 22px;
  border-left: 4px solid var(--red);
  font-style: italic;
}
.end {
  width: 105px;
  height: 18px;
  background: var(--red);
  margin: 10px 0 0;
}
.more {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.3fr);
  gap: 60px;
}
h3 {
  font-size: 34px;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  font-weight: 800;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 28px;
}
.card {
  text-decoration: none;
  display: block;
}
.card .img {
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--img1), var(--img2));
  margin-bottom: 12px;
}
.card h4 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 500;
}
.card:hover h4 {
  text-decoration: underline;
}
.card small {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mute);
}
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
ol li {
  display: flex;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
ol li b {
  font-size: 24px;
  min-width: 20px;
}
ol a {
  text-decoration: none;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
}
ol a:hover {
  text-decoration: underline;
}
footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--mute);
  font-size: 14px;
}
@media (max-width: 960px) {
  .burger {
    display: grid;
  }
  .bar.open .i-burger {
    display: none;
  }
  .bar.open .i-close {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 0;
    background: var(--bg);
    border-bottom: 3px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }
  .bar.open nav {
    display: flex;
  }
  nav a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  nav a:last-child {
    border-bottom: 0;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .share:not(.row) {
    display: none;
  }
  .more {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    aspect-ratio: 16/10;
  }
}
@media (max-width: 560px) {
  article {
    font-size: 18px;
    line-height: 2;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .bar {
    gap: 12px;
  }
}
