:root {
  --font-display: "Inter", "Noto Sans JP", sans-serif;
  --font-body: "Inter", "Noto Sans JP", sans-serif;
  --bg: #cdced1;
  --ink: #141517;
  --ink-soft: rgba(20, 21, 23, 0.42);
  --menu-left: 32px;
  --menu-top: 30px;
  --menu-width: 240px;
  --content-left-gap: 92px;
  --content-top: 30px;
  --content-max: 920px;
  --page-column: 860px;
  --line-soft: rgba(20, 21, 23, 0.1);
  --line-strong: rgba(20, 21, 23, 0.22);
  --work-label-col: 210px;
  --work-copy-col: minmax(0, 62ch);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable both-edges;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  display: none;
}

body::after {
  display: none;
}

#shader-bg,
.work-photo-bg,
.bg-shape {
  display: none !important;
}

.lang-switch {
  position: fixed;
  right: 42px;
  top: 168px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(20, 21, 23, 0.24);
  transition: color 0.16s ease;
}

.lang-switch button:hover,
.lang-switch button.active {
  color: var(--ink);
}

.site-header {
  position: fixed;
  top: var(--menu-top);
  left: var(--menu-left);
  width: var(--menu-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  z-index: 20;
}

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

.logo {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.03em;
}

nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.nav-works {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-header .nav-works > a,
.site-header nav > a {
  width: 100%;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 300;
  color: rgba(20, 21, 23, 0.36);
  transition: color 0.16s ease;
}

.site-header nav a.active,
.site-header nav a:hover {
  color: var(--ink);
}

.site-header nav a.nav-instagram {
  margin-top: 24px;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: rgba(20, 21, 23, 0.46);
}

.site-header nav a.nav-instagram:hover {
  color: rgba(20, 21, 23, 0.72);
}

.site-header nav a.active {
  position: relative;
}

.site-header nav a.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateY(-50%);
}

.works-dropdown {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  margin-top: 0;
  padding-left: 4px;
  transform: translateY(-4px);
  transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-works:hover .works-dropdown,
.nav-works:focus-within .works-dropdown,
.work-page .works-dropdown {
  max-height: 520px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  margin-top: 8px;
}

.works-dropdown a {
  display: block;
  text-decoration: none;
  color: rgba(20, 21, 23, 0.52);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 4px;
}

.works-dropdown a.active,
.works-dropdown a:hover {
  color: var(--ink);
}

main {
  width: 100%;
  margin-top: var(--content-top);
  margin-left: 0;
  margin-bottom: 84px;
  padding: 0 24px;
}

.section-head h2,
.about h2,
.contact h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 68px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 300;
  text-transform: uppercase;
}

.work-page .about h2 {
  text-transform: none;
}

.work-detail {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 860px;
}

.work-hero {
  grid-column: 1 / -1;
  margin: 0;
}

.work-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(20, 21, 23, 0.12);
}

.work-meta {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  color: rgba(20, 21, 23, 0.62);
}

.work-block {
  display: grid;
  grid-template-columns: var(--work-label-col) var(--work-copy-col);
  column-gap: 28px;
  align-items: start;
}

.work-detail h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.work-copy {
  display: grid;
  gap: 16px;
}

.work-detail p {
  margin: 0;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.88;
  letter-spacing: -0.008em;
  color: rgba(20, 21, 23, 0.76);
}

.work-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.work-list li {
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: -0.008em;
  color: rgba(20, 21, 23, 0.76);
}

.gravitation-detail {
  gap: 24px;
}

.gravitation-detail .work-block {
  column-gap: 24px;
}

.gravitation-detail .work-block + .work-block {
  margin-top: 2px;
}

.gravitation-detail .overview-list li {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: rgba(20, 21, 23, 0.72);
}

.work-lead {
  font-size: 19px;
  line-height: 1.72;
  letter-spacing: -0.012em;
  color: rgba(20, 21, 23, 0.88);
}

.works,
.about,
.contact {
  width: min(100%, var(--page-column));
  margin: 0 auto;
}

.works .section-head {
  width: 100%;
  margin: 0 0 14px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  margin: 0;
}

.work-card {
  margin: 0;
  width: 100%;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(1px);
}

.work-link {
  display: block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.work-thumb {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.75) contrast(0.94);
  transition: transform 0.26s ease, filter 0.26s ease;
}

.work-title {
  position: absolute;
  left: 24px;
  bottom: 20px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.work-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.work-link::before {
  display: none;
}

.work-link:hover .work-thumb {
  transform: scale(1.02);
  filter: saturate(0.72) contrast(0.9) blur(2px);
}

.work-link:hover .work-title,
.work-link:hover::after {
  opacity: 1;
}

.about p,
.contact p {
  margin: 0;
  max-width: 100%;
  font-size: 18px;
  color: rgba(20, 21, 23, 0.74);
}

.about-lead {
  max-width: 760px;
  margin: 0 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(20, 21, 23, 0.14);
}

.about-nameplate {
  margin: 0 0 16px;
  display: grid;
  gap: 4px;
}

.about-name-en,
.about-name-ja {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
}

.about-name-en {
  font-size: 36px;
  line-height: 0.95;
  letter-spacing: -0.026em;
  font-weight: 500;
}

.about-name-ja {
  font-size: 19px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: rgba(20, 21, 23, 0.68);
}

.about-intro {
  margin: 0;
  max-width: 50ch;
  font-size: 17px;
  line-height: 1.74;
  letter-spacing: -0.004em;
  color: rgba(20, 21, 23, 0.74);
}

.about-content {
  display: grid;
  gap: 28px;
  max-width: 760px;
  padding-top: 0;
}

.about-block h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  font-weight: 500;
  color: var(--ink);
}

.about-block h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.003em;
  font-weight: 500;
  color: rgba(20, 21, 23, 0.62);
}

.about-year {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  margin-top: 16px;
}

.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.about-list li {
  font-size: 15px;
  line-height: 1.58;
  letter-spacing: -0.004em;
  color: rgba(20, 21, 23, 0.76);
  max-width: 58ch;
}

.about-award-single-line {
  white-space: nowrap;
  max-width: none;
}

.contact-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.contact-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 21, 23, 0.24);
  font-size: 16px;
}

.contact-links a:hover {
  border-bottom-color: rgba(20, 21, 23, 0.7);
}

footer {
  position: fixed;
  left: var(--menu-left);
  bottom: 24px;
  width: var(--menu-width);
  z-index: 20;
}

footer small {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(20, 21, 23, 0.24);
  font-weight: 300;
  white-space: nowrap;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.js .reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .logo {
    font-size: 34px;
  }

  .site-header .nav-works > a,
  .site-header nav > a {
    font-size: 44px;
  }

  .section-head h2,
  .about h2,
  .contact h2 {
    font-size: 58px;
  }

  footer small {
    font-size: 18px;
  }

  .lang-switch {
    right: 28px;
    top: 128px;
  }

  .lang-switch button {
    font-size: 28px;
  }
}

@media (max-width: 860px) {
  :root {
    --menu-left: 18px;
    --menu-top: 18px;
    --menu-width: 170px;
    --content-left-gap: 26px;
    --content-top: 18px;
  }

  .logo {
    font-size: 26px;
  }

  .site-header {
    gap: 16px;
  }

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

  .site-header .nav-works > a,
  .site-header nav > a {
    font-size: 28px;
  }

  .works-dropdown a {
    font-size: 11px;
  }

  .section-head h2,
  .about h2,
  .contact h2 {
    font-size: 46px;
    margin-bottom: 14px;
  }

  .about p,
  .contact p,
  .contact-links a {
    font-size: 15px;
  }

  .about-nameplate {
    margin-bottom: 10px;
    gap: 1px;
  }

  .about-name-en {
    font-size: 24px;
  }

  .about-name-ja {
    font-size: 16px;
  }

  .about-intro {
    max-width: none;
    font-size: 15px;
    line-height: 1.58;
  }

  .about-lead {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .about-content {
    gap: 20px;
  }

  .about-block h3 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .about-block h4 {
    font-size: 16px;
    margin: 0;
  }

  .about-year {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 10px;
  }

  .about-list li {
    font-size: 15px;
    line-height: 1.55;
    max-width: none;
  }

  .about-award-single-line {
    white-space: normal;
  }

  .work-detail h3 {
    font-size: 23px;
  }

  .work-hero img {
    border-radius: 6px;
  }

  .work-detail p,
  .work-list li,
  .work-meta {
    font-size: 15px;
    line-height: 1.75;
  }

  .gravitation-detail .overview-list li {
    font-size: 14px;
    line-height: 1.6;
  }

  .work-lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .work-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .work-copy {
    gap: 12px;
  }

  .work-title {
    font-size: 23px;
  }

  .work-card {
    width: 100%;
  }

  footer {
    bottom: 14px;
  }

  footer small {
    font-size: 14px;
  }

  .lang-switch {
    right: 14px;
    top: 90px;
  }

  .lang-switch button {
    font-size: 18px;
  }

  .site-header nav a.nav-instagram {
    margin-top: 16px;
    font-size: 17px;
  }

}
