:root {
  color-scheme: light;
  --ink: #18202f;
  --muted: #5b6472;
  --line: #d9dee8;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --blue: #124a8a;
  --green: #176a4c;
  --red: #c64032;
  --gold: #b7812b;
  --navy: #12233f;
  --radius: 8px;
  --shadow: 0 16px 34px rgba(18, 35, 63, .12);
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Yu Gothic", "Meiryo", "Hiragino Sans", Arial, sans-serif;
  background: var(--soft);
  color: var(--ink);
}

body {
  margin: 0;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 158px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.button,
button {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.nav a:hover,
.button:hover,
button:hover {
  border-color: var(--ink);
}

.button.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.button.green {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 36px;
  align-items: center;
  min-height: min(680px, calc(100vh - 72px));
  padding: 42px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 46px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.feature-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0f172a;
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-caption {
  padding: 18px;
  background: var(--paper);
}

.meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef2f7;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.pill.red {
  background: #fff0ed;
  color: #9d2e24;
}

.pill.green {
  background: #edf8f1;
  color: #0f5a3e;
}

.section {
  padding: 54px 0;
}

.section.alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head p {
  color: var(--muted);
  max-width: 680px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(18, 35, 63, .06);
}

.card:hover {
  border-color: #9aa7ba;
  transform: translateY(-1px);
}

.card-media {
  aspect-ratio: 16 / 9;
  background: #dfe6ef;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-body p {
  color: var(--muted);
  margin-bottom: 12px;
}

.score-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.score-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  font-weight: 700;
}

.stars {
  color: var(--gold);
  white-space: nowrap;
}

.notice {
  border-left: 4px solid var(--red);
  background: #fff8f6;
  padding: 14px 16px;
  color: #5c2e28;
}

.search-box {
  display: flex;
  gap: 10px;
  max-width: 720px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 16px;
}

.search-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.result-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--paper);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.article-main,
.side-panel {
  min-width: 0;
}

.article-section {
  margin-bottom: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.youtube-embed,
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
}

.youtube-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  padding: 22px;
  color: white;
  text-align: center;
}

.video-placeholder strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.article-illustration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.article-illustration {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.article-illustration img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dfe6ef;
}

.article-illustration figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer {
  background: var(--ink);
  color: white;
  padding: 38px 0;
}

.site-footer a {
  color: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .article-layout,
  .article-illustration-grid,
  .grid.two,
  .grid.three,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 22px, 1120px);
  }

  .nav a,
  .button,
  button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-grid {
    padding: 28px 0;
  }

  h1 {
    font-size: 29px;
  }

  .search-box {
    flex-direction: column;
  }
}
