:root {
  color-scheme: light;
  --ink: #070707;
  --paper: #ffffff;
  --muted: rgba(7, 7, 7, 0.7);
  --line: rgba(7, 7, 7, 0.12);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  --home-background: url("assets/home-background1.png");
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    var(--home-background) center center / cover no-repeat fixed,
    var(--paper);
  color: var(--ink);
  font-family: "NotoSansJP-ExtraLight", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 200;
}

body.works-page {
  --home-background: url("assets/home-background3.png");
}

a {
  color: inherit;
}

.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(12px, 2vw, 24px);
  font-family: "NotoSansJP-ExtraLight", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 0.8rem;
  line-height: 1;
}

.site-header a,
.site-footer a {
  text-decoration: none;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
}

.site-header {
  align-items: flex-start;
}

.site-footer a {
  color: rgba(7, 7, 7, 0.68);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.32em;
  outline: none;
}

.nav-image {
  display: block;
  width: clamp(26px, 4vw, 48px);
  height: auto;
}

.hero {
  display: grid;
  align-items: end;
  padding: clamp(22px, 4vw, 40px);
}

.works {
  display: grid;
  align-items: center;
  padding: clamp(22px, 4vw, 40px);
}

.panel {
  width: min(100%, 460px);
  margin-left: auto;
  padding: 18px 18px 16px;
  background: rgba(7, 7, 7, 0.92);
  color: var(--paper);
  backdrop-filter: blur(4px);
}

.title {
  margin: 0 0 14px;
  font-family: "NotoSansJP-ExtraLight", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 200;
  line-height: 0.94;
  text-transform: uppercase;
}

.section-number {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1;
}

.copy {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.8;
}

.links {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.links a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  text-transform: uppercase;
}

.links a:hover,
.links a:focus-visible {
  outline: none;
  background: var(--paper);
  color: var(--ink);
}

.number {
  color: rgba(255, 255, 255, 0.58);
  font-family: "NotoSansJP-ExtraLight", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 0.72rem;
}

.links a:hover .number,
.links a:focus-visible .number {
  color: rgba(7, 7, 7, 0.55);
}

.label {
  font-family: "NotoSansJP-ExtraLight", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1.04rem;
  line-height: 1.1;
}

.arrow {
  width: 24px;
  padding-right: 6px;
  text-align: right;
  transition: transform 160ms ease;
}

.links a:hover .arrow,
.links a:focus-visible .arrow {
  transform: translateX(2px);
}

.works-panel {
  width: min(100%, 720px);
  margin-left: auto;
}

.work-list {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.work-item {
  margin: 0;
}

.work-item a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 64px auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  text-transform: uppercase;
}

.work-item a:hover,
.work-item a:focus-visible {
  outline: none;
  background: var(--paper);
  color: var(--ink);
}

.work-index,
.work-kind {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.1;
}

.work-item a:hover .work-index,
.work-item a:focus-visible .work-index,
.work-item a:hover .work-kind,
.work-item a:focus-visible .work-kind {
  color: rgba(7, 7, 7, 0.55);
}

.work-name {
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1;
}

.work-item a:hover .arrow,
.work-item a:focus-visible .arrow {
  transform: translateX(2px);
}

.meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.76);
  font-family: "NotoSansJP-ExtraLight", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.meta dt {
  color: var(--paper);
}

.meta dd {
  margin: 0;
  text-align: right;
}

.site-footer {
  color: rgba(7, 7, 7, 0.68);
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
  }

  .site-nav {
    max-width: 34vw;
  }

  .hero {
    align-items: end;
  }

  .works {
    align-items: end;
  }

  .panel {
    width: min(100%, 420px);
    margin-left: 0;
  }

  .works-panel {
    width: min(100%, 560px);
  }

  .work-item a {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 66px;
  }

  .work-kind {
    display: none;
  }
}

@media (max-width: 480px) {
  .panel {
    padding: 16px;
  }
}
