/* ------------------------------------------------------------------
   Atsuya Tsuchida — dark theme
   トップページは作品を1点ずつ全画面で見せるリール構成、
   下層ページは 860px の一列組みで、共通の固定トップバーを持つ。
------------------------------------------------------------------ */

:root {
  /* 地色はオレンジ固定。他の色はすべてこの2つから導く。
     明るい地色なので、派生色は暗い側へ濃く重ねる。 */
  --bg-rgb: 244, 140, 52;
  --ink-rgb: 28, 18, 10;

  --bg: rgb(var(--bg-rgb));
  --ink: rgb(var(--ink-rgb));
  --muted: rgba(var(--ink-rgb), 0.82);
  --faint: rgba(var(--ink-rgb), 0.74);
  --hair: rgba(var(--ink-rgb), 0.26);
  --pad: clamp(16px, 4.5vw, 48px);
  --col: 860px;
  /* Schibsted Grotesk の最軽量は 400。見出しの 200/300 指定は英字では 400 に
     丸められ、日本語側だけ Zen Kaku の 300 が使われる。 */
  --font: "Schibsted Grotesk", "Zen Kaku Gothic New", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 内容が短いページでもフッターが画面下に着くようにする */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

/* 旧デザインの背景ノードが復元された場合の保険 */
#shader-bg,
.work-photo-bg,
.bg-shape {
  display: none !important;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px 20px;
  padding: 18px var(--pad);
  /* 全画面画像の上でも、スクロールで潜り込む本文の上でも文字が読めるようにする */
  background: rgba(var(--bg-rgb), 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.14);
}

.logo {
  font-size: clamp(12px, 1.3vw, 14px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.site-header nav a {
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.76;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.site-header nav a:hover,
.site-header nav a.active {
  opacity: 1;
}

.site-header nav a.ig {
  display: flex;
  align-items: center;
  /* 文字リンクと視覚的な重さを揃える */
  opacity: 0.68;
}

.site-header nav a.ig:hover {
  opacity: 1;
}

.site-header nav a.ig svg {
  display: block;
  width: 18px;
  height: 18px;
}

@media (max-width: 560px) {
  .site-header nav a.ig svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 14px var(--pad) 12px;
  }
}

/* ------------------------------------------------------------ lang switch */
/* script.js が body 末尾に生成するため固定配置で右下に置く */

.lang-switch {
  position: fixed;
  right: var(--pad);
  bottom: 14px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lang-switch button {
  border: 0;
  margin: 0;
  /* WCAG 2.5.8 の最小タップ領域 24x24 を確保する */
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  /* 選択中は塗りつぶし、非選択は地色のまま。透明度差だけだと判別しづらい。 */
  background: transparent;
  color: var(--muted);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-switch button:hover {
  color: var(--ink);
  background: rgba(var(--ink-rgb), 0.10);
}

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

.lang-switch button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ reel */
/* トップページ。1作品 = 1画面。 */

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  height: min(86svh, 880px);
  border-top: 1px solid var(--hair);
  text-decoration: none;
  color: inherit;
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(0.92) saturate(1);
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease;
}

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1);
  filter: brightness(1.04) saturate(1.05);
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(var(--bg-rgb), 0.93) 0%,
    rgba(var(--bg-rgb), 0.55) 18%,
    rgba(var(--bg-rgb), 0.06) 44%,
    rgba(var(--bg-rgb), 0.16) 100%
  );
}

.cap {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(24px, 4.5vh, 52px);
}

.cap h2 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
  font-size: clamp(24px, 5.6vw, 78px);
  overflow-wrap: break-word;
}

.cap .meta {
  margin-top: 12px;
  font-size: clamp(10px, 1.1vw, 12.5px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 700px) {
  .shot {
    height: 56svh;
  }
}

/* ------------------------------------------------------- 下層ページの器 */

main {
  padding: 0 var(--pad);
}

/* リールは端まで使う */
.reel main {
  padding: 0;
}

.about,
.contact {
  width: min(100%, var(--col));
  margin: 0 auto;
  padding: clamp(34px, 6vh, 76px) 0 clamp(50px, 9vh, 104px);
}

.about h2,
.contact h2 {
  margin: 0 0 clamp(20px, 3.4vh, 38px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 0.94;
  font-size: clamp(34px, 7vw, 92px);
  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* 作品ページの見出しは作品名そのものなので大文字化しない */
.work-page .about h2 {
  text-transform: none;
  font-size: clamp(26px, 5.2vw, 62px);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------- about */

.about-lead {
  padding-bottom: clamp(22px, 3.6vh, 38px);
  border-bottom: 1px solid var(--hair);
  /* 顔写真を左、氏名と紹介文を右に置く */
  display: grid;
  grid-template-columns: clamp(132px, 22%, 196px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  width: 100%;
  /* width/height 属性があると高さがそのまま効いてしまうので打ち消す */
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}

/* 狭い画面では縦に積み、写真は小さく回り込ませない */
@media (max-width: 620px) {
  .about-lead {
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vh, 24px);
  }

  .about-portrait {
    width: min(48%, 168px);
  }
}

.about-nameplate {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.about-name-en {
  font-size: clamp(19px, 2.5vw, 29px);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.about-name-ja {
  font-size: 14.5px;
  color: var(--muted);
}

.about-intro {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.95;
  color: var(--muted);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4.5vh, 46px);
  margin-top: clamp(26px, 4.5vh, 46px);
}

.about-block h3 {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.about-year {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 6px 20px;
  margin-top: 18px;
}

.about-year h4 {
  margin: 0;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding-top: 4px;
}

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

.about-list li {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
  overflow-wrap: break-word;
}

@media (max-width: 560px) {
  .about-year {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* --------------------------------------------------------------- contact */

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-links a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  color: var(--muted);
  font-size: clamp(14px, 1.7vw, 19px);
  letter-spacing: -0.005em;
  transition: color 0.22s ease, padding-left 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow-wrap: break-word;
}

.contact-links a:first-child {
  border-top: 1px solid var(--hair);
}

.contact-links a:hover {
  color: var(--ink);
  padding-left: 12px;
}

/* ---------------------------------------------------------- 作品詳細ページ */

.work-detail {
  display: block;
}

.work-meta {
  margin: 0 0 clamp(22px, 3.6vh, 38px);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.work-hero {
  margin: 0 0 clamp(26px, 4.5vh, 48px);
}

.work-hero img {
  width: 100%;
  border-radius: 2px;
}

/* 動画の埋め込み。16:9 を保ったまま横幅に追従する。 */
.work-video {
  margin: 0 0 clamp(26px, 4.5vh, 48px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(var(--ink-rgb), 0.08);
}

.work-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-block {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px 30px;
  padding: clamp(20px, 3.2vh, 30px) 0;
  border-top: 1px solid var(--hair);
}

.work-block h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 5px;
  overflow-wrap: break-word;
}

.work-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.work-detail p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--muted);
}

/* .work-lead はコンセプト冒頭の段落を示す目印。
   見た目は他の段落と揃えるので、あえて独自の指定を持たせない。 */

.work-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-list li {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: break-word;
}

.overview-list li {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

@media (max-width: 760px) {
  .work-block {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .work-block h3 {
    padding-top: 0;
  }
}

/* ---------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--hair);
  padding: 34px var(--pad) 76px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}



