@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #141414;
  --muted: #3f3f3f;
  --accent: #c87aff;
  --secondary: #0024cd;
  --line: rgba(20, 20, 20, 0.24);
  --line-strong: #141414;
  --sidebar: clamp(240px, 25vw, 360px);
}

* {
  box-sizing: border-box;
}

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

html {
  font-size: 62.5%;
}

body {
  position: relative;
  color: var(--text);
  background: var(--bg);
  font-family: "Nunito Sans", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 1.6rem;
  line-height: 1.62;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

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

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

.container {
  width: min(100% - 2.6rem, 1240px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0.9rem;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 0.9rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border-bottom: 2px solid var(--line-strong);
}

.site-title {
  margin: 0;
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-title a {
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  font-family: "Inconsolata", monospace;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 0.28rem 0.42rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  margin: clamp(1.4rem, 2.8vw, 2.2rem) auto 4rem;
}

h1,
h2 {
  margin: 0 0 1rem;
  font-family: "Tenor Sans", sans-serif;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.55rem, 2.9vw, 2.1rem);
  font-weight: 400;
}

p,
li {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.42rem, 1.7vw, 1.56rem);
}

p a,
li a {
  color: var(--secondary);
}

p a:hover,
li a:hover {
  color: var(--accent);
}

section + section {
  margin-top: 2.6rem;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 78vh, 860px);
  border: 2px solid var(--line-strong);
  background: #111;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.24) 25%, rgba(17, 17, 17, 0.8) 100%);
  pointer-events: none;
  content: "";
}

.home-hero-media {
  position: absolute;
  inset: 0;
}

.hero-image,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(88%);
}

.hero-video {
  pointer-events: none;
  background: #080b0f;
}

.home-hero-caption {
  position: relative;
  z-index: 2;
  min-height: inherit;
  max-width: 760px;
  padding: clamp(2rem, 4vw, 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.home-kicker {
  color: rgba(250, 250, 248, 0.95);
  font-family: "Inconsolata", monospace;
  font-size: clamp(1.2rem, 1.8vw, 1.35rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-hero-title {
  margin: 0;
  color: #f8f8f6;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.08;
}

.home-hero-text {
  max-width: 54ch;
  color: rgba(250, 250, 248, 0.95);
  font-size: clamp(1.4rem, 2.1vw, 1.62rem);
}

.home-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.7rem;
  pointer-events: auto;
}

.home-link {
  border: 2px solid rgba(250, 250, 248, 0.78);
  color: #f8f8f6;
  background: rgba(20, 20, 20, 0.16);
  text-decoration: none;
  font-family: "Inconsolata", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.42rem 0.88rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #141414;
}

.gallery {
  display: grid;
  gap: 2.4rem 1.2rem;
  grid-template-columns: 1fr;
}

.scrapbox-link-card {
  position: relative;
  background: #ececec;
}

.scrapbox-link-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 2px solid var(--line-strong);
  background:
    linear-gradient(132deg, rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.18)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 36px
    ),
    linear-gradient(45deg, #e8dfd5, #c8d9d3);
}

.scrapbox-page {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.scrapbox-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.scrapbox-kicker {
  font-family: "Inconsolata", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
}

.scrapbox-tools {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 430px;
}

.scrapbox-tools label {
  font-family: "Inconsolata", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.scrapbox-tools input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-family: "Nunito Sans", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 1.45rem;
  padding: 0.45rem 0.62rem;
}

.scrapbox-tools input:disabled {
  opacity: 0.6;
}

.scrapbox-status {
  color: var(--muted);
}

.scrapbox-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.scrapbox-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

.scrapbox-card:hover {
  border-color: var(--line-strong);
  background: rgba(20, 20, 20, 0.02);
}

.scrapbox-card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.scrapbox-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

.scrapbox-meta {
  font-family: "Inconsolata", monospace;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.03em;
}

.scrapbox-excerpt {
  font-size: 1.4rem;
  line-height: 1.68;
}

.scrapbox-viewer {
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.scrapbox-viewer-nav {
  font-family: "Inconsolata", monospace;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-content {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.viewer-content h1 {
  margin-bottom: 0.35rem;
}

.viewer-content h2 {
  margin: 1rem 0 0.1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.viewer-content p {
  color: var(--muted);
}

.viewer-space {
  height: 0.85rem;
}

.viewer-image {
  width: min(100%, 860px);
  height: auto;
  border: 1px solid var(--line);
}

.viewer-video-wrap {
  position: relative;
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.viewer-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.viewer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.viewer-tag {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 0.18rem 0.48rem;
  font-family: "Inconsolata", monospace;
  font-size: 1.2rem;
  color: var(--text);
}

.work-link {
  position: relative;
  display: block;
  width: 100%;
  border-top: 2px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
}

.work-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-bottom: 2px solid var(--line-strong);
  transition: filter 0.25s ease;
}

.work-link:hover img {
  filter: grayscale(1);
}

.work-meta {
  position: static;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.32rem;
  color: var(--text);
  padding: 0.62rem 0 0.92rem;
  border-bottom: 2px solid var(--line-strong);
}

.work-link:hover .work-name {
  color: var(--accent);
}

.work-year {
  font-family: "Inconsolata", monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-name {
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.work-detail,
.about-content {
  max-width: 1080px;
  margin-inline: auto;
}

.work-detail > h1,
.about-content > section:first-child h1 {
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--line-strong);
}

.work-detail > section,
.about-content > section {
  padding-top: 1rem;
  border-top: 2px solid var(--line-strong);
}

.work-detail > h1 + section,
.about-content > section:first-child {
  border-top: 0;
}

.work-image,
.about-image {
  width: min(100%, 780px);
  height: auto;
  margin-inline: auto;
  border: 2px solid var(--line-strong);
}

.about-chronology {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 2px solid var(--line-strong);
}

.about-entry {
  display: grid;
  grid-template-columns: minmax(13rem, 21rem) 1fr;
  column-gap: 1.2rem;
  align-items: start;
  margin: 0;
  padding: 0.55rem 0;
  border-top: 2px solid var(--line-strong);
}

.about-entry-with-location {
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr) minmax(13rem, 22rem);
}

.about-date,
.about-location {
  font-family: "Inconsolata", monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.about-detail {
  color: var(--muted);
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-link-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  text-decoration: none;
}

.youtube-link-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(90%);
  transition: transform 0.28s ease, filter 0.28s ease;
}

.youtube-link-card:hover .youtube-link-image,
.youtube-link-card:focus-visible .youtube-link-image {
  transform: scale(1.03);
  filter: saturate(100%);
}

.youtube-link-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  background: rgba(20, 20, 20, 0.28);
}

.youtube-play {
  position: relative;
  width: 5.8rem;
  height: 4rem;
  border-radius: 0.8rem;
  background: rgba(209, 74, 31, 0.92);
  box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.24);
}

.youtube-play::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 0.9rem solid transparent;
  border-bottom: 0.9rem solid transparent;
  border-left: 1.35rem solid #fff;
  transform: translate(-50%, -50%);
  content: "";
}

.youtube-link-text {
  padding: 0.28rem 0.65rem;
  background: rgba(20, 20, 20, 0.54);
  font-family: "Inconsolata", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.video-link {
  display: inline-block;
  border: 1px solid var(--text);
  padding: 0.32rem 0.82rem;
  font-family: "Inconsolata", monospace;
  font-size: 1.2rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.video-link:hover {
  background: var(--text);
  color: #fff;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.work-gallery-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.work-gallery-pairs img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.work-gallery-pairs img:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.note,
.video-note {
  color: #575757;
}

.video-note {
  margin-top: 0.7rem;
}

ul {
  padding-left: 1.3rem;
  margin: 0;
}

li + li {
  margin-top: 0.35rem;
}

.site-footer {
  padding: 3rem 0 2.2rem;
}

.footer-inner {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  background: var(--surface);
}

.footer-inner a,
.footer-inner p {
  font-family: "Inconsolata", monospace;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    height: 100vh;
    margin: 0;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    border-right: 2px solid var(--line-strong);
    border-bottom: 0;
  }

  .site-header::after {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid var(--line-strong);
    color: var(--muted);
    font-family: "Inconsolata", monospace;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    content: "Sound / Moving Image / Urban Listening";
  }

  .site-title {
    padding-bottom: 0.9rem;
    border-bottom: 2px solid var(--line-strong);
    font-size: clamp(3.4rem, 5.5vw, 7.2rem);
    line-height: 0.95;
    letter-spacing: 0;
  }

  .site-nav {
    display: block;
    font-size: 1.55rem;
    letter-spacing: 0.08em;
  }

  .site-nav a {
    position: relative;
    display: block;
    margin-top: -2px;
    padding: 0.42rem 2rem 0.42rem 0;
    border-top: 2px solid var(--line-strong);
    border-bottom: 2px solid var(--line-strong);
  }

  .site-nav a::after {
    position: absolute;
    right: 0.2rem;
    content: "->";
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    opacity: 1;
  }

  body > main.container {
    width: calc(100% - var(--sidebar));
    max-width: none;
    margin: 0 0 4rem var(--sidebar);
    padding: 1.2rem 1.4rem 0;
  }

  .site-footer {
    margin-left: var(--sidebar);
    padding-top: 1rem;
  }

  .site-footer .container {
    width: auto;
    margin: 0;
    padding-inline: 1.4rem;
  }

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

  .home-hero {
    min-height: calc(100vh - 2.4rem);
  }

  .work-detail,
  .about-content {
    margin-inline: 0;
  }
}

@media (min-width: 1280px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.95rem;
  }

  .site-nav {
    gap: 0.65rem;
  }

  .work-meta {
    width: 100%;
    border-bottom: 2px solid var(--line-strong);
  }

  .work-name {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .work-year {
    font-size: 1rem;
  }

  .footer-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.4rem, 1240px);
  }

  .site-title {
    font-size: clamp(2rem, 8.2vw, 2.6rem);
  }

  .site-nav {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
  }

  .home-hero {
    min-height: 68vh;
  }

  .home-hero-caption {
    padding: 1.4rem;
  }

  .home-link {
    font-size: 1.12rem;
    padding: 0.38rem 0.74rem;
  }

  .youtube-link-text {
    font-size: 1.05rem;
  }

  .about-entry {
    grid-template-columns: 1fr;
    row-gap: 0.15rem;
  }

  .about-date,
  .about-location {
    white-space: normal;
  }

  .work-gallery-pairs {
    grid-template-columns: 1fr;
  }

  .work-gallery-pairs img:last-child:nth-child(odd) {
    grid-column: auto;
  }

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

/* IRCAM Forum-inspired system refresh */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eaf0f8;
  --text: #101826;
  --muted: #5b687c;
  --accent: #4053ff;
  --accent-hover: #2639d8;
  --secondary: #0d2a8a;
  --line: #d8e0eb;
  --line-strong: #101826;
  --dark: #111a2a;
  --dark-2: #172235;
  --shadow: 0 1.4rem 3.8rem rgba(16, 24, 38, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 18rem),
    linear-gradient(rgba(16, 24, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 38, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 4.8rem 4.8rem, 4.8rem 4.8rem, auto;
  font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 1.6rem;
  line-height: 1.68;
  padding-bottom: 8.4rem;
}

body::before {
  display: none;
}

a {
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

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

.container {
  width: min(100% - 2.8rem, 1240px);
}

.site-header {
  position: sticky;
  top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.9rem 2.6rem rgba(16, 24, 38, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-title {
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.site-title a {
  display: inline-flex;
  align-items: center;
  min-height: 5rem;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.site-title a:hover,
.site-title a[aria-current="page"] {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.site-nav {
  justify-content: flex-end;
  gap: 0.62rem;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 5rem;
  padding: 0 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

main {
  margin: 1.35rem auto 6.8rem;
}

h1,
h2,
.work-name,
.home-hero-title {
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

h1 {
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.04;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
}

p,
li {
  color: var(--muted);
  font-size: 1.55rem;
}

p a,
li a {
  color: var(--accent);
  border-bottom: 1px solid rgba(64, 83, 255, 0.35);
}

p a:hover,
li a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

section + section {
  margin-top: 2.2rem;
}

.home-hero {
  min-height: min(74vh, 760px);
  border: 1px solid rgba(16, 24, 38, 0.18);
  border-radius: 8px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.home-hero::after {
  display: none;
}

.hero-image,
.hero-video {
  filter: none;
}

.home-hero-caption {
  max-width: 720px;
  gap: 1rem;
  padding: 3.2rem;
}

.home-kicker,
.work-year,
.about-date,
.about-location,
.youtube-link-text,
.video-link,
.scrapbox-kicker,
.scrapbox-meta,
.viewer-tag,
.viewer-tags,
.footer-inner a,
.footer-inner p {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
}

.home-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 2.6rem;
  align-items: center;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
  font-weight: 700;
}

.home-hero-title {
  color: #fff;
  font-size: 4.6rem;
  font-weight: 700;
}

.home-hero-text {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.62rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.8rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.home-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.gallery {
  gap: 1.2rem;
}

.work-link,
.scrapbox-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 0.8rem 2.2rem rgba(16, 24, 38, 0.06);
}

.work-link {
  display: grid;
  grid-template-rows: auto 1fr;
}

.work-link:hover,
.scrapbox-card:hover {
  color: var(--text);
  border-color: rgba(64, 83, 255, 0.5);
  box-shadow: 0 1.2rem 3rem rgba(16, 24, 38, 0.12);
  transform: translateY(-2px);
}

.work-link img {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  filter: saturate(92%);
}

.work-link:hover img {
  filter: saturate(106%);
}

.work-meta {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  min-height: 13.6rem;
  padding: 1.15rem;
  border-bottom: 0;
}

.work-year {
  display: inline-flex;
  width: fit-content;
  min-height: 2.6rem;
  align-items: center;
  padding: 0 0.72rem;
  border: 1px solid rgba(64, 83, 255, 0.25);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(64, 83, 255, 0.08);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: none;
}

.work-name {
  align-self: end;
  color: var(--text);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.04;
}

.work-link:hover .work-name {
  color: var(--accent);
}

.work-detail,
.about-content,
.scrapbox-page,
.scrapbox-viewer {
  max-width: 1040px;
  margin-inline: auto;
}

.work-detail > h1,
.about-content > section:first-child h1,
.viewer-content h1 {
  margin-bottom: 1.2rem;
  padding: 1.3rem 0 1.1rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.work-detail > section,
.about-content > section {
  padding: 1.45rem 0 0;
  border-top: 1px solid var(--line);
}

.work-detail > h1 + section,
.about-content > section:first-child {
  border-top: 0;
}

.work-image,
.about-image,
.viewer-image,
.viewer-video-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 0.9rem 2.4rem rgba(16, 24, 38, 0.08);
}

.work-gallery-pairs {
  gap: 1rem;
}

.work-gallery-pairs img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 0.7rem 1.8rem rgba(16, 24, 38, 0.06);
}

.work-links,
.viewer-tags {
  gap: 0.55rem;
}

.video-link,
.viewer-tag {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  border: 1px solid rgba(64, 83, 255, 0.35);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(64, 83, 255, 0.08);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: none;
}

.video-link:hover {
  color: #fff;
  background: var(--accent);
}

.about-chronology {
  gap: 0.62rem;
  border-bottom: 0;
}

.about-entry {
  grid-template-columns: minmax(12rem, 19rem) 1fr;
  column-gap: 1.1rem;
  padding: 0.82rem 0;
  border-top: 1px solid var(--line);
}

.about-entry-with-location {
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr) minmax(12rem, 22rem);
}

.about-date,
.about-location {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.about-detail {
  color: var(--text);
}

.scrapbox-link-media {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(17, 26, 42, 0.86), rgba(64, 83, 255, 0.36)),
    linear-gradient(45deg, #dfe7f2, #f6f8fb);
}

.scrapbox-tools input {
  min-height: 4.2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}

.youtube-link-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

.youtube-link-overlay {
  background: rgba(17, 26, 42, 0.3);
}

.youtube-play {
  border-radius: 8px;
  background: var(--accent);
}

.youtube-link-text {
  border-radius: 999px;
  background: rgba(17, 26, 42, 0.74);
  font-size: 1.2rem;
}

.video-panel {
  width: min(100%, 900px);
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1rem 2.8rem rgba(16, 24, 38, 0.09);
}

.video-panel-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.video-panel-label {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  padding: 0 0.75rem;
  border: 1px solid rgba(64, 83, 255, 0.28);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(64, 83, 255, 0.08);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.video-panel-title {
  overflow: hidden;
  color: var(--text);
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-panel-screen {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--dark);
  box-shadow: none;
}

.video-panel-screen::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 26, 42, 0) 40%, rgba(17, 26, 42, 0.72) 100%),
    linear-gradient(90deg, rgba(17, 26, 42, 0.42) 0, rgba(17, 26, 42, 0.02) 58%);
  pointer-events: none;
  content: "";
}

.video-panel-screen .youtube-link-image {
  filter: saturate(94%) contrast(1.02);
}

.video-panel-screen:hover .youtube-link-image,
.video-panel-screen:focus-visible .youtube-link-image {
  transform: scale(1.018);
  filter: saturate(108%) contrast(1.02);
}

.video-panel-screen .youtube-link-overlay {
  inset: auto 1rem 1rem 1rem;
  z-index: 1;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.7rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  min-height: 4.4rem;
  padding: 0.62rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(17, 26, 42, 0.74);
  box-shadow: 0 0.8rem 2rem rgba(7, 11, 19, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.video-panel-screen .youtube-play {
  width: 3.2rem;
  height: 3.2rem;
  flex: 0 0 3.2rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

.video-panel-screen .youtube-play::after {
  border-top-width: 0.62rem;
  border-bottom-width: 0.62rem;
  border-left-width: 0.92rem;
}

.video-panel-screen .youtube-link-text {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.work-detail .work-image,
.work-detail .youtube-link-card {
  width: 100%;
  margin-inline: 0;
}

.simple-youtube-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 0.9rem 2.4rem rgba(16, 24, 38, 0.08);
}

.simple-youtube-link::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 26, 42, 0) 55%, rgba(17, 26, 42, 0.48) 100%);
  pointer-events: none;
  content: "";
}

.simple-youtube-link .youtube-link-image {
  filter: saturate(96%) contrast(1.02);
}

.simple-youtube-link:hover .youtube-link-image,
.simple-youtube-link:focus-visible .youtube-link-image {
  transform: scale(1.012);
  filter: saturate(104%) contrast(1.02);
}

.simple-youtube-link .youtube-link-overlay {
  inset: auto 1rem 1rem auto;
  z-index: 1;
  display: block;
  width: auto;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(17, 26, 42, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.simple-youtube-link .youtube-link-text {
  padding: 0;
  background: transparent;
  color: #fff;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.note,
.video-note {
  color: var(--muted);
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  padding: 0.8rem 0;
  background: rgba(244, 247, 251, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.footer-inner {
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.footer-inner a,
.footer-inner p {
  color: var(--muted);
  font-size: 1.2rem;
  text-transform: none;
}

.footer-inner p {
  margin-left: 1.15rem;
}

.footer-inner a {
  margin-right: 1.2rem;
}

@media (min-width: 1024px) {
  .site-header {
    position: sticky;
    inset: auto;
    top: 1rem;
    width: min(100% - 2.8rem, 1240px);
    height: auto;
    margin: 1rem auto 0;
    padding: 1.05rem 1.2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: stretch;
    gap: 1.2rem;
    border: 1px solid var(--line);
  }

  .site-header::after {
    display: none;
  }

  .site-title {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 2.8rem;
    line-height: 1;
  }

  .site-nav {
    display: flex;
    justify-content: flex-end;
    font-size: 1.5rem;
  }

  .site-nav a {
    display: inline-flex;
    margin-top: 0;
    min-height: 5rem;
    padding: 0 1.2rem;
    border: 1px solid transparent;
  }

  .site-nav a::after {
    display: none;
  }

  body > main.container {
    width: min(100% - 2.8rem, 1240px);
    max-width: 1240px;
    margin: 1.35rem auto 6.8rem;
    padding: 0;
  }

  .site-footer {
    margin-left: 0;
  }

  .site-footer .container {
    width: min(100% - 2.8rem, 1240px);
    margin-inline: auto;
    padding-inline: 0;
  }

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

  .home-hero {
    min-height: min(74vh, 760px);
  }

  .work-detail,
  .about-content {
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: stretch;
    top: 0.7rem;
    padding: 0.85rem;
  }

  .site-title a {
    width: 100%;
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
    gap: 0.4rem;
    font-size: 1.3rem;
  }

  .site-nav a {
    min-height: 4.2rem;
    padding: 0 0.86rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .home-hero-caption {
    padding: 2rem;
  }

  .home-hero-title {
    font-size: 3.3rem;
  }

  .work-meta {
    min-height: 11.8rem;
    border-bottom: 0;
  }

  .work-name {
    font-size: 2.35rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.2rem, 1240px);
  }

  .site-title {
    font-size: 2.2rem;
  }

  .site-nav {
    font-size: 1.2rem;
    letter-spacing: 0;
  }

  .site-nav a {
    min-height: 3.8rem;
    padding: 0 0.7rem;
  }

  .home-hero {
    min-height: 68vh;
  }

  .home-hero-caption {
    padding: 1.45rem;
  }

  .home-hero-title {
    font-size: 2.65rem;
  }

  .home-link {
    min-height: 3.5rem;
    font-size: 1.2rem;
  }

  .work-name {
    font-size: 2.2rem;
  }

  .work-year {
    font-size: 1.1rem;
  }

  .video-panel {
    padding: 0.72rem;
  }

  .video-panel-meta {
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .video-panel-title {
    white-space: normal;
  }

  .video-panel-screen .youtube-link-overlay {
    inset: auto 0.65rem 0.65rem 0.65rem;
    min-height: 3.8rem;
    padding: 0.48rem 0.62rem;
  }

  .video-panel-screen .youtube-play {
    width: 2.8rem;
    height: 2.8rem;
    flex-basis: 2.8rem;
  }

  .video-panel-screen .youtube-link-text {
    font-size: 1.1rem;
  }

  .about-entry,
  .about-entry-with-location {
    grid-template-columns: 1fr;
    row-gap: 0.18rem;
  }

}

.listing-page,
.tag-index-page {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tag-browser {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.tag-browser-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.tag-browser h1,
.tag-browser h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.tag-summary {
  margin-top: 2.2rem;
}

.tag-index-link {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  padding: 0 0.9rem;
  border: 1px solid rgba(64, 83, 255, 0.35);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(64, 83, 255, 0.08);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.tag-index-link:hover {
  color: #fff;
  background: var(--accent);
}

.tag-list,
.detail-tag-list,
.work-card-tags,
.tag-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.tag-result-tags {
  padding: 0 1.05rem 1.05rem;
}

.tag-button,
.tag-chip {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  padding: 0 0.74rem;
  border: 1px solid rgba(64, 83, 255, 0.26);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(64, 83, 255, 0.07);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.tag-button {
  cursor: pointer;
}

.tag-button:hover,
.tag-button.is-active,
.tag-chip:hover,
.tag-chip:focus-visible {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.tag-status {
  margin-top: 0.78rem;
  color: var(--muted);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.work-card-tags {
  padding: 0 1.15rem 1.15rem;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 0.8rem 2.2rem rgba(16, 24, 38, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.work-card:hover {
  border-color: rgba(64, 83, 255, 0.5);
  box-shadow: 0 1.2rem 3rem rgba(16, 24, 38, 0.12);
  transform: translateY(-2px);
}

.work-card .work-link {
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.work-card .work-link:hover {
  box-shadow: none;
  transform: none;
}

.work-card-tags .tag-chip {
  min-height: 2.7rem;
  font-size: 1.08rem;
  cursor: pointer;
}

.work-link.is-hidden-by-tag {
  display: none;
}

.work-card.is-hidden-by-tag {
  display: none;
}

.tag-detail-panel {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.tag-detail-panel h2 {
  margin-bottom: 0.7rem;
  font-size: 1.8rem;
}

.tag-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.tag-result-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 0.8rem 2.2rem rgba(16, 24, 38, 0.06);
}

.tag-result-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  color: var(--text);
}

.tag-result-link:hover {
  color: var(--text);
}

.tag-result-link img,
.tag-result-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
}

.tag-result-placeholder {
  display: grid;
  place-items: center;
  color: rgba(64, 83, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(17, 26, 42, 0.86), rgba(64, 83, 255, 0.36)),
    linear-gradient(45deg, #dfe7f2, #f6f8fb);
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  font-size: 6rem;
  font-weight: 700;
}

.tag-result-body {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 1.05rem;
}

.tag-result-meta {
  color: var(--accent);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.tag-result-body h2 {
  margin: 0;
  color: var(--text);
  font-size: 2rem;
}

@media (max-width: 640px) {
  .tag-browser {
    padding: 0.82rem;
  }

  .tag-button,
  .tag-chip {
    min-height: 2.8rem;
    font-size: 1.08rem;
  }

  .work-card-tags {
    padding: 0 1rem 1rem;
  }
}

.site-header {
  grid-template-columns: auto 1fr auto;
}

.lang-switch {
  display: flex;
  justify-self: end;
  align-self: center;
  gap: 0.28rem;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lang-switch a {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  padding: 0 0.65rem;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--muted);
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .lang-switch {
    justify-self: center;
    align-self: center;
  }
}

/* IRCAM Forum reference pass: editorial list, hard rules, large typography */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-soft: #f0f1f1;
  --text: #0b0b0b;
  --muted: #5f5f5f;
  --accent: #d94a2b;
  --accent-hover: #9f2f18;
  --secondary: #005c7a;
  --line: rgba(11, 11, 11, 0.24);
  --line-strong: #0b0b0b;
  --dark: #070707;
  --shadow: none;
}

html {
  background: var(--bg);
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.58;
  padding-bottom: 0;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.container {
  width: min(100% - clamp(2rem, 5vw, 7rem), 1440px);
}

.site-header.container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  border-radius: 0;
  background: rgba(250, 250, 250, 0.94);
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header > *,
.site-nav,
.lang-switch,
.page-intro,
.tag-list {
  min-width: 0;
}

.site-title {
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  font-size: clamp(2.4rem, 4vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: none;
}

.site-title a {
  display: flex;
  min-height: clamp(6.2rem, 8vw, 8.4rem);
  align-items: center;
  padding: 0 clamp(1.2rem, 3vw, 3rem);
  border: 0;
  border-right: 2px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  background: transparent;
}

.site-title a:hover,
.site-title a[aria-current="page"] {
  border-right-color: var(--line-strong);
  color: #fff;
  background: var(--line-strong);
}

.site-title a[aria-current="page"] {
  border-left: 4px solid var(--accent);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-nav a {
  display: flex;
  min-width: 0;
  min-height: clamp(6.2rem, 8vw, 8.4rem);
  align-items: center;
  padding: 0 clamp(1rem, 2.2vw, 2.2rem);
  border: 0;
  border-left: 2px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  background: transparent;
}

.site-nav a[hidden] {
  display: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--line-strong);
}

.site-nav a[aria-current="page"] {
  border-left-width: 4px;
  border-left-color: var(--accent);
}

.lang-switch {
  display: flex;
  justify-self: stretch;
  align-self: stretch;
  gap: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lang-switch a {
  display: flex;
  min-width: 0;
  min-height: clamp(6.2rem, 8vw, 8.4rem);
  align-items: center;
  padding: 0 0.9rem;
  border: 0;
  border-left: 2px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  background: transparent;
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: #fff;
  background: var(--accent);
}

main,
body > main.container {
  width: min(100% - clamp(2rem, 5vw, 7rem), 1440px);
  max-width: 1440px;
  margin: clamp(1.8rem, 3vw, 4rem) auto 7rem;
  padding: 0;
}

h1,
h2,
.work-name,
.home-hero-title {
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

h1 {
  max-width: 12ch;
  font-size: clamp(4.4rem, 9vw, 11rem);
  font-weight: 700;
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.1rem, 3vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
}

p,
li {
  color: var(--muted);
  font-size: clamp(1.46rem, 1.2vw, 1.68rem);
}

p a,
li a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

p a:hover,
li a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

section + section {
  margin-top: clamp(2.2rem, 4vw, 4.8rem);
}

.home-hero {
  min-height: calc(100vh - clamp(10rem, 12vw, 13rem));
  overflow: hidden;
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  border-radius: 0;
  background: var(--dark);
  box-shadow: none;
}

.home-hero::after {
  display: block;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.76) 0%, rgba(7, 7, 7, 0.38) 42%, rgba(7, 7, 7, 0.08) 100%),
    linear-gradient(180deg, rgba(7, 7, 7, 0) 52%, rgba(7, 7, 7, 0.74) 100%);
}

.home-hero.image-only::after {
  display: none;
}

.home-hero.image-only .hero-image {
  filter: none;
}

.hero-image,
.hero-video {
  filter: saturate(92%) contrast(1.06);
}

.home-hero-caption {
  max-width: 980px;
  padding: clamp(2rem, 5vw, 6rem);
  gap: 1rem;
}

.home-kicker {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero-title {
  max-width: 8ch;
  color: #fff;
  font-size: clamp(5.2rem, 13vw, 14rem);
  font-weight: 700;
  line-height: 0.84;
}

.home-hero-text {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.5rem, 1.6vw, 1.9rem);
}

.home-hero-links {
  gap: 0;
}

.home-link {
  display: inline-flex;
  min-height: 4rem;
  align-items: center;
  margin-right: -1px;
  padding: 0 1rem;
  border: 1px solid #fff;
  border-radius: 0;
  color: var(--text);
  background: #fff;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-link:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.listing-page,
.tag-index-page {
  gap: 0;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 42rem);
  gap: 1.2rem clamp(2rem, 5vw, 6rem);
  align-items: end;
  padding: 0 0 clamp(1.8rem, 3vw, 3.2rem);
  border-top: 0;
  border-bottom: 2px solid var(--line-strong);
}

.page-type {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-intro h1 {
  margin: 0;
  padding: 0;
  border: 0;
}

.page-intro > p:not(.page-type):not(.tag-status) {
  max-width: 42ch;
  color: var(--text);
}

.page-intro .tag-list,
.page-intro .tag-status {
  grid-column: 1 / -1;
}

.page-intro .tag-list {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.gallery {
  display: block;
}

.work-card,
.gallery > .work-link {
  position: relative;
  overflow: visible;
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.18s ease;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(22rem, 34vw) minmax(0, 1fr);
  grid-template-rows: minmax(clamp(19rem, 23vw, 32rem), auto) auto;
}

.work-card:hover,
.gallery > .work-link:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  box-shadow: none;
  transform: none;
}

.work-card .work-link,
.gallery > .work-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(22rem, 34vw) minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.work-card .work-link {
  display: contents;
}

.work-card .work-link:hover {
  box-shadow: none;
  transform: none;
}

.work-link::after {
  position: absolute;
  top: clamp(1.2rem, 2.2vw, 2.4rem);
  right: clamp(1.2rem, 2.2vw, 2.4rem);
  color: var(--muted);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  content: "->";
  transition: color 0.18s ease, transform 0.18s ease;
}

.work-link:hover::after {
  color: var(--accent);
  transform: translateX(0.25rem);
}

.work-card .work-link::after {
  content: none;
}

.work-card::after {
  position: absolute;
  top: clamp(1.2rem, 2.2vw, 2.4rem);
  right: clamp(1.2rem, 2.2vw, 2.4rem);
  color: var(--muted);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  content: "->";
  transition: color 0.18s ease, transform 0.18s ease;
}

.work-card:hover::after {
  color: var(--accent);
  transform: translateX(0.25rem);
}

.work-link img,
.tag-result-link img,
.tag-result-placeholder {
  border-radius: 0;
}

.work-link img {
  width: 100%;
  height: 100%;
  min-height: clamp(19rem, 23vw, 32rem);
  aspect-ratio: 4 / 3;
  border: 0;
  border-right: 1px solid var(--line);
  object-position: center center;
  object-fit: cover;
  filter: grayscale(0.14) saturate(86%) contrast(1.04);
}

.work-card .work-link img {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.work-link:hover img {
  filter: grayscale(0) saturate(104%) contrast(1.03);
}

.work-meta {
  min-height: clamp(19rem, 23vw, 32rem);
  padding: clamp(1.4rem, 3.2vw, 3.6rem);
  border: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 2rem;
}

.work-card .work-meta {
  grid-column: 2;
  grid-row: 1;
  padding-bottom: 1.2rem;
}

.work-year {
  display: block;
  width: fit-content;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-name {
  align-self: center;
  max-width: 12ch;
  color: var(--text);
  font-size: clamp(3.8rem, 7.2vw, 10rem);
  font-weight: 700;
  line-height: 0.88;
}

.work-link:hover .work-name {
  color: var(--text);
}

.work-card-tags {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0;
  padding: 0 clamp(1.4rem, 3.2vw, 3.6rem) clamp(1.4rem, 2.4vw, 2.4rem);
}

.tag-browser {
  padding: 0;
  border-top: 0;
}

.tag-browser-head {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--line-strong);
}

.tag-browser h1,
.tag-browser h2 {
  max-width: none;
  font-size: clamp(3.8rem, 7vw, 8rem);
  line-height: 0.92;
}

.tag-list,
.detail-tag-list,
.work-card-tags,
.tag-result-tags {
  width: 100%;
  max-width: 100%;
  gap: 0.45rem;
}

.tag-button,
.tag-chip,
.tag-index-link,
.video-link,
.viewer-tag,
.work-year,
.video-panel-label {
  border-radius: 0;
}

.tag-button,
.tag-chip,
.tag-index-link {
  max-width: 100%;
  min-height: 3.1rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.tag-button:hover,
.tag-button.is-active,
.tag-chip:hover,
.tag-chip:focus-visible,
.tag-index-link:hover {
  border-color: var(--line-strong);
  color: #fff;
  background: var(--line-strong);
}

.tag-status {
  margin-top: 0.75rem;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-detail,
.about-content,
.scrapbox-page,
.scrapbox-viewer {
  max-width: 1120px;
}

.work-detail > h1,
.about-content > section:first-child h1,
.viewer-content h1 {
  max-width: 12ch;
  margin-bottom: clamp(1.4rem, 3vw, 3rem);
  padding: 0 0 clamp(1.2rem, 2vw, 2.2rem);
  border-top: 0;
  border-bottom: 2px solid var(--line-strong);
}

.about-content > section:first-child h1 {
  font-size: clamp(3.8rem, 7vw, 8rem);
  line-height: 0.92;
}

.about-content > .about-statement-section:first-child h1 {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(3.6rem, 5.2vw, 7rem);
  line-height: 0.96;
}

.about-statement-section .about-statement {
  grid-column: 1 / -1;
}

@media (min-width: 921px) {
  .about-statement {
    white-space: nowrap;
  }
}

.about-content > .about-statement-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.work-detail > section,
.about-content > section,
.tag-detail-panel {
  padding-top: clamp(1.4rem, 2.4vw, 2.8rem);
  border-top: 1px solid var(--line);
}

.work-detail > section h2,
.about-content > section h2,
.tag-detail-panel h2 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.work-image,
.about-image,
.viewer-image,
.viewer-video-wrap,
.work-gallery-pairs img,
.simple-youtube-link,
.video-panel,
.youtube-link-card {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
}

.about-statement {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.1rem, 1.8vw, 2rem) 0;
  border-bottom: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 1.35vw, 1.72rem);
  font-weight: 400;
  line-height: 1.75;
}

.about-chronology {
  gap: 0;
  border-bottom: 2px solid var(--line-strong);
}

.about-entry {
  align-items: center;
  padding: 1rem 0;
  border-top: 2px solid var(--line-strong);
}

.about-entry > * {
  align-self: center;
}

.about-date,
.about-location {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-entry-with-location {
  grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr) minmax(18rem, 34rem);
}

.about-detail {
  color: var(--text);
}

.youtube-link-overlay,
.simple-youtube-link .youtube-link-overlay,
.video-panel-screen .youtube-link-overlay {
  border-radius: 0;
}

.youtube-link-text,
.simple-youtube-link .youtube-link-text,
.video-panel-screen .youtube-link-text {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer {
  position: static;
  padding: 0;
  border-top: 2px solid var(--line-strong);
  background: var(--line-strong);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-footer .container {
  width: min(100% - clamp(2rem, 5vw, 7rem), 1440px);
  margin-inline: auto;
}

.footer-inner {
  padding: 1.1rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-inner a,
.footer-inner p {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-index-page {
  display: grid;
  grid-template-columns: minmax(24rem, 34rem) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 5rem);
}

.tag-index-page .tag-browser {
  position: sticky;
  top: calc(clamp(6.2rem, 8vw, 8.4rem) + 2rem);
  align-self: start;
}

.tag-results {
  display: block;
}

.tag-result-card {
  overflow: visible;
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tag-result-link {
  display: grid;
  grid-template-columns: minmax(16rem, 30%) minmax(0, 1fr);
}

.tag-result-link img,
.tag-result-placeholder {
  height: 100%;
  min-height: 15rem;
  border: 0;
  border-right: 1px solid var(--line);
}

.tag-result-body {
  justify-content: space-between;
  min-height: 15rem;
  padding: 1.4rem;
}

.tag-result-meta {
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-result-body h2 {
  font-size: clamp(2.8rem, 4.5vw, 5.4rem);
  line-height: 0.94;
}

.tag-result-tags {
  padding: 0 1.4rem 1.4rem;
  margin-left: min(30%, 34rem);
}

@media (min-width: 921px) {
  .listing-page .page-intro h1,
  .work-detail > h1 {
    max-width: none;
    font-size: clamp(3.6rem, 5.2vw, 7rem);
    line-height: 0.96;
    white-space: nowrap;
  }

  .work-name {
    max-width: none;
    font-size: clamp(3rem, 4.4vw, 6.1rem);
    line-height: 0.94;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: stretch;
    gap: 0;
    border: 0;
    border-bottom: 2px solid var(--line-strong);
  }

  .site-header::after {
    display: none;
  }

  .site-title {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: clamp(2.4rem, 4vw, 5.6rem);
  }

  .site-nav {
    display: flex;
    justify-content: flex-end;
    font-size: 1.25rem;
  }

  .site-nav a {
    display: flex;
    margin-top: 0;
    min-height: clamp(6.2rem, 8vw, 8.4rem);
    padding: 0 clamp(1rem, 2.2vw, 2.2rem);
    border: 0;
    border-left: 2px solid var(--line-strong);
  }

  .site-nav a::after {
    display: none;
  }

  body > main.container {
    width: min(100% - clamp(2rem, 5vw, 7rem), 1440px);
    max-width: 1440px;
    margin: clamp(1.8rem, 3vw, 4rem) auto 7rem;
    padding: 0;
  }

  .site-footer {
    margin-left: 0;
  }
}

@media (max-width: 920px) {
  .site-header,
  .site-header.container {
    grid-template-columns: 1fr;
  }

  .site-title a,
  .site-nav a,
  .lang-switch a {
    min-height: 4.6rem;
  }

  .site-title a {
    justify-content: center;
    border-right: 0;
    border-bottom: 2px solid var(--line-strong);
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    justify-self: stretch;
  }

  .site-nav:has(a[hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    justify-content: center;
  }

  .site-nav a:first-child {
    border-left: 0;
  }

  .lang-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    justify-self: stretch;
    border-top: 2px solid var(--line-strong);
  }

  .lang-switch a {
    justify-content: center;
  }

  .lang-switch a:first-child {
    border-left: 0;
  }

  .page-intro,
  .tag-index-page {
    grid-template-columns: 1fr;
  }

  .tag-index-page .tag-browser {
    position: static;
  }

  .work-card,
  .work-card .work-link,
  .gallery > .work-link,
  .tag-result-link {
    grid-template-columns: minmax(16rem, 38%) minmax(0, 1fr);
  }

  .tag-result-tags {
    margin-left: 38%;
  }

  .work-card-tags {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .container,
  main,
  body > main.container,
  .site-footer .container {
    width: min(100% - 1.2rem, 1440px);
  }

  .site-title {
    font-size: 2.8rem;
  }

  .site-nav {
    font-size: 1.08rem;
  }

  .site-nav a,
  .lang-switch a {
    min-height: 4rem;
    padding: 0 0.5rem;
  }

  h1 {
    font-size: clamp(4rem, 16vw, 6.6rem);
  }

  .home-hero {
    min-height: 72vh;
  }

  .home-hero-title {
    font-size: clamp(4.5rem, 20vw, 7rem);
  }

  .home-hero-caption {
    padding: 1.6rem;
  }

  .home-link {
    min-height: 3.7rem;
    font-size: 1.08rem;
  }

  .page-intro {
    gap: 1rem;
  }

  .work-card,
  .work-card .work-link,
  .gallery > .work-link,
  .tag-result-link {
    grid-template-columns: 1fr;
  }

  .work-card {
    grid-template-rows: auto auto auto;
  }

  .work-card .work-link img {
    grid-column: 1;
    grid-row: 1;
  }

  .work-card .work-meta {
    grid-column: 1;
    grid-row: 2;
  }

  .work-card-tags {
    grid-column: 1;
    grid-row: 3;
  }

  .work-link img,
  .tag-result-link img,
  .tag-result-placeholder {
    min-height: 18rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .work-meta {
    min-height: 15rem;
  }

  .work-name {
    font-size: clamp(3.4rem, 14vw, 5.8rem);
  }

  .work-card-tags,
  .tag-result-tags {
    margin-left: 0;
    padding: 0 1.4rem 1.4rem;
  }

  .about-entry,
  .about-entry-with-location {
    grid-template-columns: 1fr;
  }
}
