:root {
  color-scheme: dark;
  --bg: #071126;
  --bg-soft: #0f1d3c;
  --panel: #121a2b;
  --panel-strong: #17233b;
  --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(7, 17, 38, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-logo {
  display: block;
  width: min(240px, 62vw);
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  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;
}

#works {
  padding-top: clamp(34px, 5vw, 64px);
}

.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: 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:
    linear-gradient(135deg, rgba(214, 181, 109, 0.14), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}

.work-card {
  min-height: 260px;
}

.media-card {
  min-height: 360px;
}

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

.work-preview {
  display: grid;
  min-height: 150px;
  place-items: center;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 38, 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(7, 17, 38, 0.52);
  aspect-ratio: 16 / 9;
}

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

.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;
}

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

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

  .media-grid,
  .single-work-grid {
    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;
  }
}
