:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6f6f6f;
  --line: #e8e8e8;
  --accent: #ff5a00;
  --card: #f7f7f7;
  --max: 1320px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header__inner {
  max-width: var(--max);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.text-link:hover {
  color: var(--accent);
}

.hero {
  padding: 48px 0 18px;
}

.hero--compact {
  padding-bottom: 0;
}

.hero__inner,
.section,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.hero__eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: end;
}

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

.hero__title {
  margin: 0;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 10ch;
}

.hero__title--archive {
  max-width: none;
}

.hero__text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 34em;
}

.section {
  padding-top: 18px;
  padding-bottom: 48px;
}

.section--works,
.section--about,
.section--links {
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-top: 16px;
}

.section__title {
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section__sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 180ms ease;
}

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

.work-card {
  display: block;
  min-width: 0;
}

.work-card__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--card);
}

.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.work-card:hover .work-card__thumb img {
  transform: scale(1.8);
}

.work-card__body {
  padding-top: 12px;
}

.work-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 180ms ease;
}

.work-card:hover .work-card__title {
  color: var(--accent);
}

.work-card__meta {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.work-card__platform {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-card__date {
  font-size: 12px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  padding-top: 16px;
}

.split__body p {
  margin: 0 0 1em;
  color: var(--muted);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 14px;
  transition: border-color 180ms ease, color 180ms ease;
}

.link-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-footer {
  padding-top: 0;
  padding-bottom: 42px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .site-header__inner {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 18px;
  }

  .hero__grid,
  .split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .hero {
    padding-top: 36px;
  }

  .hero__inner,
  .section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-bottom: 40px;
  }

  .section__head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .works-grid,
  .works-grid--archive,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .work-card__title {
    font-size: 16px;
  }

  .link-card {
    min-height: 64px;
  }
}
