@font-face {
  font-family: Questrial;
  src: url("assets/questrial.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #121310;
  --text: #f5f4ec;
  --soft-text: #c2c0b4;
  --line: #35362e;
  --accent: #f1ca54;
  --paper: #efede4;
  --ink: #20211b;
  --sans: Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --display: Questrial, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
}
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:enabled { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.frame { width: min(100% - clamp(36px, 8vw, 136px), 1320px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.skip-link:focus {
  position: absolute;
  z-index: 2;
  margin: 10px;
  padding: 8px 15px;
  color: var(--ink);
  background: var(--accent);
}

.site-header {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand, .site-nav { display: flex; align-items: center; }
.brand { gap: 10px; font: 400 1.35rem/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.site-nav { gap: clamp(12px, 3.2vw, 44px); }
.site-nav a { color: var(--soft-text); display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.site-nav a:hover, .social a:hover { color: var(--accent); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: center;
  gap: clamp(30px, 4vw, 66px);
  padding: clamp(28px, 3.5vw, 54px) 0 clamp(64px, 7vw, 104px);
}
.hero-copy { position: relative; z-index: 1; }
.hero-location {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: clamp(19px, 3vw, 37px);
  color: var(--accent);
  font-size: .875rem;
  letter-spacing: .095em;
}
.hero-location::before { content: ""; flex: 0 0 27px; height: 1px; background: currentColor; }
.hero h1 {
  font: 400 clamp(4.45rem, 11vw, 10rem)/.76 var(--display);
  letter-spacing: -.083em;
  margin-left: -.035em;
}
.hero-description {
  margin: clamp(23px, 3.4vw, 39px) 0 27px;
  color: var(--soft-text);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.85;
  letter-spacing: .045em;
}
.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  background: var(--accent);
  color: #17170f;
  font-size: .9375rem;
  font-weight: 700;
  transition: background 160ms ease;
}
.hero-action:hover { background: #ffdf75; }
.hero-image {
  height: clamp(400px, 45vw, 645px);
  min-width: 0;
  background: #282715;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

.works, .about, .awards { scroll-margin-top: 24px; }
.works { padding-bottom: clamp(56px, 7.5vw, 116px); }
.works-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: clamp(24px, 3.5vw, 46px) 0 22px;
}
h2 {
  font: 400 clamp(2.75rem, 5.8vw, 5.6rem)/.9 var(--display);
  letter-spacing: -.065em;
}
.filters {
  display: grid;
  grid-template-columns: repeat(6, clamp(82px, 7.6vw, 105px));
  gap: clamp(5px, .8vw, 11px);
}
.filters .theme-filter {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 44px;
  padding: 3px 3px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--soft-text);
  font-size: .875rem;
  line-height: 1.4;
  text-align: center;
  scroll-margin-top: 24px;
}
.filter-label { display: grid; gap: 2px; text-align: center; }
.filter-label small { font-size: .75rem; line-height: 1.2; }
.theme-filter img,
.filter-icon { width: 100%; aspect-ratio: 8 / 5; border-radius: 1px; }
.theme-filter img { height: auto; }
.filters .theme-filter:hover,
.filters .theme-filter[aria-pressed="true"] {
  border-color: #b5b3a7;
  color: var(--text);
}
.filters .theme-filter:focus-visible { outline-color: var(--text); }
.filters .theme-filter[aria-pressed="true"] { background: #2d2e28; }

.filter-icon {
  display: grid;
  grid: repeat(2, 9px) / repeat(2, 9px);
  place-content: center;
  gap: 3px;
  background: rgb(23 23 15 / 12%);
}
.filter-icon > span { border: 1px solid currentColor; border-radius: 1px; }
.filters .show-all,
.filters .show-all:hover,
.filters .show-all[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #17170f;
}
.filters .show-all[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #624c17; }
.filters .show-all:hover { background: #ffdf75; }

.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 16px); }
.photo {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #22231d;
  cursor: zoom-in;
}
.photo:focus-visible { outline-offset: -4px; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 280ms ease, opacity 180ms ease; }
@media (hover: hover) { .photo:hover img { transform: scale(1.035); opacity: .88; } }

.editorial { background: var(--paper); color: var(--ink); }
.editorial :focus-visible { outline-color: #61501a; }
.about, .awards { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(20px, 5vw, 96px); }
.about { padding: clamp(54px, 8vw, 112px) 0; }
.about-copy { max-width: 660px; }
.about-copy p { line-height: 1.95; font-size: clamp(1rem, 1.45vw, 1.25rem); }
.about-copy p[lang="en"] { margin-top: 22px; color: #515146; line-height: 1.65; }
.awards { border-top: 1px solid #c9c6bb; padding: clamp(45px, 7vw, 100px) 0 clamp(55px, 8vw, 112px); }
.award + .award { margin-top: 22px; padding-top: 22px; border-top: 1px solid #d2d0c4; }
.award h3 { margin-bottom: 7px; font-size: clamp(1rem, 1.7vw, 1.35rem); line-height: 1.35; }
.award ul { margin: 0; padding: 0; list-style: none; }
.award li + li { margin-top: 5px; }
.award li, .award p { color: #45463b; font-size: .9375rem; }
.award a { text-decoration: underline; text-decoration-color: #989486; text-underline-offset: .19em; }
.award a:hover { text-decoration-color: currentColor; }

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 32px;
  align-items: baseline;
  padding: clamp(40px, 6vw, 76px) 0 27px;
}
.footer-brand { font: 400 clamp(2.4rem, 6vw, 4.8rem)/.9 var(--display); letter-spacing: -.08em; }
.social { display: flex; flex-wrap: wrap; gap: 11px 21px; color: var(--soft-text); }
.social a, .copyright { font-size: .875rem; }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 15px; color: var(--soft-text); }

html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: max(54px, env(safe-area-inset-top)) 18px max(15px, env(safe-area-inset-bottom));
  background: #11120f;
  color: var(--text);
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 13px; }
.lightbox::backdrop { background: #11120f; }
.lightbox-photo { display: grid; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; text-align: center; }
.lightbox-photo img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox-caption { color: var(--soft-text); font-size: .9rem; }
.lightbox-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.lightbox-position { min-width: 5ch; text-align: center; color: var(--soft-text); font-size: .875rem; }
.lightbox button { border: 1px solid #55574a; background: #22241e; color: var(--text); min-width: 44px; min-height: 40px; padding: 5px 14px; }
.lightbox button:enabled:hover { border-color: var(--accent); }
.lightbox button:disabled { opacity: .4; }
.lightbox .lightbox-close { position: absolute; top: 7px; right: 10px; min-height: 44px; font-size: 1.65rem; line-height: 1; }

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(4.2rem, 11vw, 7rem); }
  .hero-image { height: clamp(325px, 53vw, 480px); }
  .site-header { min-height: 70px; }
}
@media (max-width: 820px) {
  .works-heading { display: block; }
  .filters {
    grid-template-columns: repeat(6, minmax(0, 96px));
    margin-top: 18px;
  }
}
@media (max-width: 560px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 96px)); }
}
@media (max-width: 630px) {
  .hero { grid-template-columns: 1fr; gap: 29px; padding-top: 40px; padding-bottom: 51px; }
  .hero h1 { font-size: clamp(4.15rem, 17vw, 6.55rem); }
  .hero-description { margin: 22px 0 17px; }
  .hero-break { display: none; }
  .hero-image { height: auto; aspect-ratio: 1.2; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .awards { grid-template-columns: 1fr; gap: 22px; }
  .about-copy br { display: none; }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .brand img { width: 26px; height: 26px; }
  .brand { gap: 6px; font-size: 1.125rem; }
  .site-nav { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
