:root {
  color-scheme: dark;
  --bg: #01050d;
  --bg-soft: #050d1d;
  --panel: #0a1220;
  --panel-strong: #101a2d;
  --text: #f5f7fb;
  --muted: #b8c0d4;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #d6b56d;
  --accent-soft: rgba(214, 181, 109, 0.18);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
}

body::before {
  position: fixed;
  top: -8px;
  left: 50%;
  width: min(112vw, 1040px);
  aspect-ratio: 1;
  content: "";
  background-image: url("/images/yorugata-ningen-gakudan-symbol.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.14;
  pointer-events: none;
  transform: translateX(-50%);
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(1, 5, 13, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-logo {
  display: block;
  width: 52px;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

.eyebrow,
.status {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 1.12;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.3;
}

h4 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.3;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) 0;
}

.site-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
  width: min(var(--max), calc(100% - 36px));
  margin: clamp(18px, 3vw, 32px) auto 0;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(10, 18, 32, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-intro img {
  width: min(100%, 420px);
  height: auto;
  justify-self: center;
}

.site-intro-copy {
  max-width: none;
}

.site-intro h1 {
  margin-bottom: 10px;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  white-space: nowrap;
}

.site-intro p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

#works {
  padding-top: clamp(32px, 4vw, 48px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.work-category + .work-category {
  margin-top: clamp(28px, 4vw, 48px);
}

.category-title {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
}

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

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

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

.link-panel {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-panel {
  background: var(--panel);
}

.work-card {
  min-height: clamp(402px, 36vw, 486px);
}

.media-card {
  min-height: clamp(402px, 36vw, 486px);
}

.media-card .text-link {
  margin-top: 16px;
}

.work-preview {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(1, 5, 13, 0.52);
  color: var(--muted);
}

.placeholder-preview {
  padding: 24px;
  text-align: center;
}

.video-frame {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(1, 5, 13, 0.52);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.note-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.note-image {
  min-height: 100%;
  background: rgba(1, 5, 13, 0.52);
}

.note-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.note-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
}

.note-copy h3,
.note-copy p {
  margin-bottom: 0;
}

.note-title-link {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.note-title-link:hover {
  color: var(--accent);
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 4px;
}

.note-meta time {
  color: var(--muted);
  font-size: 0.92rem;
}

.link-panel p:not(.status) {
  color: var(--muted);
}

.text-link {
  width: fit-content;
  color: var(--text);
  font-weight: 700;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

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

.is-disabled,
[aria-disabled="true"] {
  color: var(--muted);
  cursor: not-allowed;
}

.muted-section {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - var(--max)) / 2));
  padding-left: max(18px, calc((100vw - var(--max)) / 2));
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.simple-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.simple-list a {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.simple-list span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  text-align: left;
}

.contact-section {
  max-width: var(--max);
}

.contact-section p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 32px 18px 26px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: min(520px, 92vw);
}

.subpage {
  min-height: calc(100vh - 170px);
}

.about-hero {
  max-width: var(--max);
  padding-top: clamp(34px, 5vw, 64px);
}

.about-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
}

.about-hero p:not(.eyebrow),
.about-grid p:not(.status) {
  max-width: 760px;
  color: var(--muted);
}

.about-grid .link-panel {
  min-height: 200px;
  justify-content: flex-start;
  gap: 18px;
}

.about-grid .status,
.about-grid h3,
.about-grid p {
  margin-bottom: 0;
}

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

  .site-intro {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 18px;
    padding: 22px;
  }

  .site-intro h1 {
    white-space: normal;
  }

  .site-intro img {
    width: min(88vw, 360px);
    justify-self: start;
  }

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

  .media-grid,
  .single-work-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    position: static;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  body::before {
    top: 22px;
    width: 132vw;
  }

  .simple-list a {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
