:root {
  color-scheme: light;
  --ink: #152033;
  --muted: #667085;
  --surface: #ffffff;
  --background: #f3f6fb;
  --line: #dfe5ee;
  --accent: #0b6ef3;
  --accent-dark: #0758c7;
  --shadow: 0 18px 50px rgb(21 32 51 / 10%);
  font-family:
    Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 15%, rgb(54 152 255 / 30%), transparent 27rem),
    radial-gradient(circle at 5% 100%, rgb(95 61 255 / 22%), transparent 24rem),
    #101b30;
  color: white;
}

.hero::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 76px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #6faeff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: #80b9ff;
  font-weight: 500;
}

.hero__description {
  margin: 30px 0 0;
  color: #c5d0df;
  font-size: 1.05rem;
}

.hero__count {
  margin: 32px 0 0;
  color: #9eacc0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__count strong {
  margin-right: 6px;
  color: white;
  font-size: 1.35rem;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  letter-spacing: -0.035em;
}

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

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 4px 18px rgb(21 32 51 / 5%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dce4ef;
}

.card__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.card:hover .card__thumbnail img {
  transform: scale(1.018);
}

.card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, #1d2b45, #0b6ef3);
  color: rgb(255 255 255 / 65%);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.card__body {
  padding: 24px;
}

.card time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card h2 {
  margin: 10px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.card h2 a {
  text-decoration: none;
}

.card h2 a:hover {
  color: var(--accent);
}

.card__description {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 17px;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

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

.button--primary:hover {
  background: var(--accent-dark);
}

.button--secondary {
  border: 1px solid var(--line);
  background: white;
}

.button--secondary:hover {
  border-color: #aab6c6;
  background: #f7f9fc;
}

.button:focus-visible,
.card a:focus-visible,
footer a:focus-visible {
  outline: 3px solid rgb(11 110 243 / 32%);
  outline-offset: 3px;
}

.empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed #b7c2d1;
  border-radius: 16px;
  padding: 64px 24px;
  color: var(--muted);
  text-align: center;
}

footer {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .hero__inner {
    padding: 68px 0 58px;
  }

  main {
    padding: 52px 0 72px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
