/* =============================================================
   MOTO KOHEI — Artist Brand Site
   Matte-black gallery theme. Original design.
   Sections:
     1  Design tokens
     2  Reset / base
     3  Typography utilities
     4  Layout
     5  Progress bar
     6  Header / Nav
     7  Hero
     8  Section framing (labels / headings)
     9  Statement
    10  Profile
    11  Works (museum grid)
    12  Story
    13  Instagram
    14  Contact
    15  Footer
    16  Lightbox
    17  Reveal / animations
    18  Responsive
   ============================================================= */

/* ---------- 1. Design tokens ---------------------------------- */
:root {
  /* Surfaces — matte black */
  --bg:        #0d0d0d;
  --bg-2:      #111111;
  --bg-3:      #161616;   /* frame cells / cards */
  --bg-4:      #1c1c1c;

  /* Ink — off-white / light gray only */
  --ink:       #f2f0ea;
  --ink-soft:  #d5d2ca;
  --ink-dim:   #9c988f;
  --ink-faint: #8a867d;   /* 2026-11: #6a665e → 背景との差 5:1 以上（WCAG AA）。小さい文字が読めるように */

  /* Hairlines */
  --line:       rgba(255,255,255,.10);
  --line-soft:  rgba(255,255,255,.055);
  --line-strong:rgba(255,255,255,.18);

  /* Type */
  --display: 'Inter', 'Noto Sans JP', system-ui, sans-serif;   /* name / monumental */
  --serif:   'Cormorant Garamond', 'Shippori Mincho', Georgia, serif; /* editorial accents */
  --sans:    'Inter', 'Noto Sans JP', system-ui, sans-serif;
  --mincho:  'Shippori Mincho', 'Cormorant Garamond', serif;
  --mono:    'Inter', 'Noto Sans JP', sans-serif;              /* tracked labels */

  /* Metrics */
  --max: 1440px;
  --content: 1180px;
  --gutter: clamp(22px, 5vw, 72px);
  --section-y: clamp(120px, 16vw, 300px);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Reset / base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--ink); color: var(--bg); }

/* faint vignette to warm the black */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.025), transparent 55%),
    radial-gradient(120% 120% at 50% 120%, rgba(0,0,0,.5), transparent 60%);
}

/* ---------- 3. Typography utilities -------------------------- */
.u-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- 4. Layout ---------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--max); }

.section {
  position: relative;
  z-index: 2;
  padding-block: var(--section-y);
}
.section--tight { padding-block: clamp(90px, 11vw, 180px); }
.section--alt { background: var(--bg-2); }

/* ---------- 5. Progress bar ---------------------------------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--ink-faint), var(--ink));
  z-index: 90;
  transition: width .1s linear;
}

/* ---------- 6. Header / Nav ---------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 80;
  padding-block: clamp(18px, 2.4vw, 30px);
  transition: padding .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);   /* backdrop-filter はアニメーションさせない（開いたメニューがヘッダーの中に閉じ込められるため） */
  border-bottom: 1px solid transparent;
}
/* 下へスクロールする間は隠す（js/script.js）。メニューを開いた時は必ず出す */
.site-header.is-hidden { transform: translateY(-110%); }
body.nav-open .site-header.is-hidden { transform: none; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
/* ページの一番上（ヘッダーが透明な時）は、ロゴ・メニュー・ボタン以外の余白を押しても下の絵や 3D の展示室に届くように */
.site-header:not(.is-scrolled) { pointer-events: none; }
.site-header:not(.is-scrolled) a, .site-header:not(.is-scrolled) button, .site-header:not(.is-scrolled) .lang-menu { pointer-events: auto; }
body.nav-open .site-header, body.nav-open .site-header .nav { pointer-events: auto; }
.site-header.is-scrolled {
  padding-block: 14px;
  background: rgba(13,13,13,.72);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--display);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity .3s var(--ease);
}
.brand:hover { opacity: .62; }
.brand .brand-mark { text-indent: .32em; }
.brand .brand-sub {
  font-size: 9.5px;
  letter-spacing: .3em;
  color: var(--ink-faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
}
.nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-block: 6px;
  transition: color .35s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-current { color: var(--ink); }
.nav a.nav-ig { color: var(--ink); }

/* mobile menu toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  z-index: 82;
}
.nav-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.4px;
  background: var(--ink);
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { bottom: 15px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 7. Hero（展示ページの見出しで使う名前と影） ------------- */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(13,13,13,.94) 2%, rgba(13,13,13,.35) 30%, rgba(13,13,13,.12) 55%, rgba(13,13,13,.45) 100%);
}
.hero-name {
  font-family: var(--display);
  font-weight: 200;
  line-height: .96;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(44px, 12vw, 168px);
  text-indent: .18em;
}

/* scroll cue */
@keyframes cueSlide {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(300%); }
  100% { transform: translateY(300%); }
}

/* ---------- 8. Section framing ------------------------------- */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(56px, 8vw, 120px);
}
.sec-head .sec-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-top: 4px;
}
.sec-head .sec-titles { display: flex; flex-direction: column; gap: 8px; }
.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: .01em;
  color: var(--ink);
}
.sec-title em { font-style: italic; color: var(--ink-soft); }
.sec-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- 9. Statement ------------------------------------- */
.statement {
  text-align: center;
  max-width: 940px;
  margin-inline: auto;
}
.statement .u-label { display: block; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- 10. Profile -------------------------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.profile-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
  overflow: hidden;
}
.profile-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03) brightness(.96);
  transition: filter 1.1s var(--ease), transform 1.4s var(--ease);
}
.profile-photo:hover img { filter: grayscale(0) contrast(1.02); transform: scale(1.03); }
.profile-photo::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}

.profile-body .u-label { display: block; margin-bottom: 26px; }
.profile-name {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(30px, 4.4vw, 54px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  text-indent: .16em;
}
.profile-name-jp {
  margin-top: 10px;
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--ink-dim);
}
.profile-text {
  margin-top: clamp(24px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 54ch;
  font-family: var(--sans);
  font-size: clamp(14.5px, 1.15vw, 16px);
  line-height: 2.05;
  color: var(--ink-soft);
}
.profile-meta {
  margin-top: clamp(30px, 4vw, 46px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.profile-meta div {
  background: var(--bg);
  padding: 20px 22px;
}
.profile-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.profile-meta dd {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: .02em;
}

/* ---------- 11. Works (museum grid) -------------------------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 40px) clamp(18px, 2vw, 32px);
}
.piece {
  display: block;
  text-align: left;
  width: 100%;
}
.piece-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 120% at 50% 30%, #1a1a1a, #0f0f0f);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: box-shadow .6s var(--ease);
}
.piece-frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(10px, 1.6vw, 22px);
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
  filter: saturate(.98);
}
.piece-frame::after {   /* hover veil */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.35));
  opacity: 0;
  transition: opacity .6s var(--ease);
}
@media (hover: hover) {   /* タッチ端末では、押した後に拡大したまま残るので付けない */
  .piece:hover .piece-frame { box-shadow: inset 0 0 0 1px var(--line-strong); }
  .piece:hover .piece-frame img { transform: scale(1.045); filter: saturate(1.05); }
  .piece:hover .piece-frame::after { opacity: 1; }
}
.piece:focus-visible .piece-frame { box-shadow: inset 0 0 0 1.5px var(--ink); outline: none; }

.piece-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 2px;
}
.piece-cap .piece-title {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: .01em;
}
.piece-cap .piece-idx {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--ink-faint);
  white-space: nowrap;
}
/* 売約済みの印（画廊の赤い丸） */
.piece-cap .piece-sold { margin-left: 10px; color: var(--ink-dim); }
.piece-cap .piece-price { margin-left: 10px; color: var(--ink-soft); letter-spacing: .06em; }
.piece-sold::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 50%; background: #b8433a; vertical-align: 1px;
}

/* text link with animated underline */
.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 16px 4px;
  transition: color .4s var(--ease), gap .4s var(--ease);
}
.ghost-link .arw { transition: transform .5s var(--ease); }
.ghost-link:hover { color: var(--ink); gap: 20px; }
.ghost-link:hover .arw { transform: translateX(4px); }

/* ---------- 12. Story ---------------------------------------- */
.story {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.story-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.55;
  color: var(--ink);
}
.story-text {
  margin-top: clamp(28px, 4vw, 46px);
  font-family: var(--mincho);
  font-weight: 300;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 2.4;
  letter-spacing: .06em;
  color: var(--ink-dim);
}

/* ---------- 13. Instagram ------------------------------------ */
.ig {
  text-align: center;
}
.ig .u-label { display: block; margin-bottom: 26px; }

/* ---------- 14. Contact -------------------------------------- */
.contact {
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}
.contact .u-label { display: block; margin-bottom: clamp(26px, 4vw, 40px); }
.contact-lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 4vw, 50px);
  line-height: 1.35;
  color: var(--ink);
}
.contact-socials {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.contact-socials a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.contact-socials a:hover {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- 15. Footer --------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(48px, 7vw, 88px);
}
.footer-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  line-height: 2;
}
.to-top {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .35s var(--ease);
}
.to-top:hover { color: var(--ink); }

/* ---------- 16. Lightbox ------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,8,8,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage {
  position: relative;
  width: min(92vw, 1400px);
  height: min(86svh, 1000px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  opacity: 0;
  transform: scale(.985);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.lightbox.is-ready .lb-img { opacity: 1; transform: none; }

.lb-caption {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
  max-width: 90vw;
}
.lb-caption .lb-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
}
.lb-caption .lb-count {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .28em;
  color: var(--ink-faint);
}

.lb-btn {
  position: absolute;
  z-index: 2;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
  border-radius: 50%;
  transition: color .35s var(--ease), background .35s var(--ease);
}
.lb-btn:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.lb-btn svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.3; fill: none; }
.lb-close { top: clamp(16px, 3vw, 34px); right: clamp(16px, 3vw, 34px); }
.lb-prev  { top: 50%; left: clamp(10px, 3vw, 34px); transform: translateY(-50%); }
.lb-next  { top: 50%; right: clamp(10px, 3vw, 34px); transform: translateY(-50%); }
.lb-index {
  position: absolute;
  top: clamp(20px, 3vw, 38px);
  left: clamp(20px, 3vw, 38px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-faint);
}

/* ---------- 17. Reveal / animations -------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s var(--ease), transform 1.5s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--sm { transform: translateY(18px); }
.reveal--fade { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
        }

/* ---------- 18. Responsive ----------------------------------- */
@media (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 56px); }
  .profile-photo { max-width: 440px; }
}

@media (max-width: 760px) {
  :root { --section-y: clamp(96px, 20vw, 160px); }

  .nav { position: fixed; inset: 0; z-index: 81;
    flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(11,11,11,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s var(--ease);
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  .nav a { font-size: 15px; letter-spacing: .28em; color: var(--ink-soft); }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }

  
  .profile-meta { grid-template-columns: 1fr; }

  .sec-head { flex-direction: column; gap: 12px; }
    .footer-meta { text-align: left; }

  .lb-btn { width: 46px; height: 46px; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
}

@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; gap: 40px; }
  .piece-frame { aspect-ratio: 3 / 4; }
}

/* =============================================================
   19. Works v2 — scene badge / hover cue / carousel / marquee / dot-nav
   ============================================================= */

/* multi-scene badge on tile */
.piece-scenes {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(10,10,10,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  opacity: .82;
  transition: opacity .5s var(--ease), background .5s var(--ease);
}
.piece-scenes .dotpip {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-soft);
  box-shadow: 8px 0 0 -1.5px var(--ink-dim);
}
@media (hover: hover) { .piece:hover .piece-scenes { opacity: 1; background: rgba(10,10,10,.7); } }

/* hover "View" cue */
.piece-view {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.piece-view > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10,10,10,.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.piece:focus-visible .piece-view > span { opacity: 1; transform: scale(1); }
@media (hover: hover) { .piece:hover .piece-view > span { opacity: 1; transform: scale(1); } }

/* Lightbox: column layout w/ footer (caption + thumbnails) */
.lightbox { flex-direction: column; }
.lightbox .lb-stage {
  flex: 1 1 auto;
  width: min(92vw, 1400px);
  height: auto;
  min-height: 0;
  padding-top: clamp(56px, 8vh, 96px);
}
.lb-footer {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 16px max(20px, env(safe-area-inset-bottom));
}
.lightbox .lb-caption {
  position: static;
  transform: none;
  left: auto; bottom: auto;
}
.lb-thumbs {
  display: flex;
  gap: 10px;
  max-width: min(92vw, 780px);
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.lb-thumbs::-webkit-scrollbar { height: 4px; }
.lb-thumbs::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 2px; }
.lb-thumb {
  flex: 0 0 auto;
  width: 58px; height: 58px;
  border-radius: 3px;
  overflow: hidden;
  opacity: .42;
  scroll-snap-align: center;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: opacity .35s var(--ease), box-shadow .35s var(--ease);
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .8; }
.lb-thumb.is-active { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--ink); }
.lightbox .lb-prev, .lightbox .lb-next { top: 44%; }

/* Section dot-nav (desktop) */
.dot-nav {
  position: fixed;
  top: 50%;
  right: clamp(18px, 2.4vw, 34px);
  transform: translateY(-50%);
  z-index: 70;
  display: none;
  flex-direction: column;
  gap: 18px;
}
.dot-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 10px; height: 10px;
}
.dot-nav a::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--ink-dim);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.dot-nav a:hover::after { border-color: var(--ink); transform: scale(1.2); }
.dot-nav a.is-active::after { background: var(--ink); border-color: var(--ink); }
.dot-nav a .dot-label {
  position: absolute;
  right: 20px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.dot-nav a:hover .dot-label { opacity: 1; transform: none; }
@media (min-width: 1180px) {
  .dot-nav { display: flex; }
}

@media (max-width: 760px) {
  .lb-thumb { width: 48px; height: 48px; }
}

/* =============================================================
   20. News / Exhibitions
   ============================================================= */
.news-list {
  border-top: 1px solid var(--line-soft);
  max-width: 960px;
}
.news-item {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: clamp(24px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left .5s var(--ease);
}
.news-item:hover { padding-left: 10px; }
.news-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.news-body .news-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
}
.news-title .news-link {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), opacity .4s var(--ease);
}
.news-title .news-link:hover { border-color: var(--line-strong); opacity: .85; }
.news-body .news-place {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-dim);
  letter-spacing: .02em;
}
.news-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 13px;
  white-space: nowrap;
}

/* subtle "beyond the canvas" line */
.beyond {
  margin-top: clamp(30px, 4vw, 46px);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: .04em;
  color: var(--ink-faint);
}
.beyond strong { color: var(--ink-dim); font-weight: 400; }

@media (max-width: 680px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-tag { justify-self: start; margin-top: 6px; }
}

/* =============================================================
   21. i18n / header tools / vertical statement / footer-nav /
       exhibitions / art-wine
   ============================================================= */

/* language visibility (ja / en / zh = Simplified Chinese) */
html[data-lang="ja"] .lang-en, html[data-lang="ja"] .lang-zh { display: none !important; }
html[data-lang="en"] .lang-ja, html[data-lang="en"] .lang-zh { display: none !important; }
html[data-lang="zh"] .lang-ja, html[data-lang="zh"] .lang-en { display: none !important; }
html:not([data-lang]) .lang-en, html:not([data-lang]) .lang-zh { display: none !important; }
html[data-lang="zh"] .lang-zh em { font-style: normal; }   /* 中国語の斜体は字形が崩れるので、強調は色だけ */
/* Chinese: Chinese system fonts instead of the Japanese web fonts (simplified characters are missing from Noto Sans JP / Shippori Mincho) */
html[data-lang="zh"] {
  --display: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', system-ui, sans-serif;
  --sans:    'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', system-ui, sans-serif;
  --mono:    'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif;
  --serif:   'Cormorant Garamond', 'Songti SC', 'STSong', 'Noto Serif SC', 'Noto Serif CJK SC', 'Source Han Serif SC', 'SimSun', Georgia, serif;
  --mincho:  'Songti SC', 'STSong', 'Noto Serif SC', 'Noto Serif CJK SC', 'Source Han Serif SC', 'SimSun', 'Cormorant Garamond', serif;
}

/* header right cluster + language switch */
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}
/* 地球儀のボタン → 小さなメニュー（日本語 / English / 简体中文） */
.lang-switch { position: relative; display: inline-flex; align-items: center; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em;
  color: var(--ink-dim); padding: 6px 2px;
  transition: color .3s var(--ease);
}
.lang-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { color: var(--ink); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: -12px; z-index: 95;
  display: flex; flex-direction: column; min-width: 148px; padding: 8px 0;
  background: rgba(17,17,17,.97); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  font-family: var(--sans); font-size: 13px; letter-spacing: .04em; color: var(--ink-dim);
  padding: 10px 18px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.lang-menu button::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: transparent; flex: none; }
.lang-menu button:hover, .lang-menu button:focus-visible { color: var(--ink); background: rgba(255,255,255,.04); outline: none; }
.lang-menu button.is-active { color: var(--ink); }
.lang-menu button.is-active::before { background: var(--ink); }
.lang-menu button:lang(zh-Hans) { font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }

/* Exhibitions archive */
.ex-hero {
  position: relative;
  height: min(66svh, 620px);
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  z-index: 2;
}
.ex-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.ex-hero .hero-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(13,13,13,.92), rgba(13,13,13,.15) 60%, rgba(13,13,13,.5)); }
.ex-hero .ex-hero-in { position: relative; z-index: 2; width:100%;
  max-width: var(--max); margin-inline:auto; padding: 0 var(--gutter) clamp(40px,6vw,72px); }

.ex-item {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 100px);
  border-top: 1px solid var(--line-soft);
}
.ex-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ex-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.ex-photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ex-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.ex-photo:hover img { transform: scale(1.04); }
.ex-meta .ex-date {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em;
  color: var(--ink-dim); margin-bottom: 16px;
}
.ex-meta .ex-title {
  font-family: var(--serif); font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 400; color: var(--ink); line-height: 1.15; margin-bottom: 20px;
}
.ex-meta .ex-desc {
  font-family: var(--sans); font-size: 14.5px; line-height: 2.0;
  color: var(--ink-soft); max-width: 46ch;
}
.ex-meta .ex-venue {
  margin-top: 22px; display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-dim); border-bottom: 1px solid var(--line); padding-bottom: 6px;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.ex-meta .ex-venue:hover { color: var(--ink); border-color: var(--ink); }

/* Art Wine feature */
.aw-hero { text-align: center; }
.aw-lead {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(26px, 4.4vw, 58px); line-height: 1.3; color: var(--ink);
  max-width: 16ch; margin: 0 auto;
}
.aw-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 72px); align-items: center;
}
.aw-body p { font-family: var(--sans); font-size: 15px; line-height: 2.05; color: var(--ink-soft); }
.aw-body p + p { margin-top: 18px; }
.aw-figure { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-3); }
.aw-figure img { width:100%; height:100%; object-fit: cover; filter: saturate(1.02); }

@media (max-width: 860px) {
  .ex-item { grid-template-columns: 1fr; gap: 28px; }
  .aw-cols { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .header-right { gap: 14px; }
}
@media (max-width: 350px) {          /* 幅 320px の端末でもメニューボタンが画面に収まるように */
  .header-right { gap: 10px; }
  .brand { letter-spacing: .2em; gap: 8px; }
  .header-inner { gap: 12px; }
}

/* =============================================================
   22. Story studio images / footer sitemap
   ============================================================= */
.story-media-cap {
  margin-top: 18px;
  text-align: center;
}

/* Footer sitemap */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(30px, 5vw, 68px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.footer-logo { width: min(250px, 58vw); height: auto; opacity: .9; }
.footer-tag {
  margin-top: 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-faint);
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-h {
  font-family: var(--mono); font-size: 10px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px;
}
.footer-col a {
  font-family: var(--sans); font-size: 14px; color: var(--ink-dim);
  letter-spacing: .02em; transition: color .3s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: var(--ink); }
.footer-base {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line-soft);
}
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* =============================================================
   23. Story split (profile-style) + Contact form
   ============================================================= */
/* ---- Story: text left / single studio image right ---- */
.story--split {
  max-width: none;
  text-align: left;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.story--split .story-quote { text-align: left; }
.story--split .story-text { max-width: 46ch; }

.story-figure {
  position: relative;
  margin: 0;
}
.story-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--bg-3);
  filter: grayscale(.35) brightness(.9);
  transition: filter 1.1s var(--ease), transform 1.4s var(--ease);
}
.story-figure::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.story-figure:hover img { filter: grayscale(0) brightness(1); transform: scale(1.02); }
.story-figure .story-media-cap { margin-top: 16px; text-align: left; }

@media (max-width: 860px) {
  .story--split { grid-template-columns: 1fr; gap: clamp(30px, 7vw, 48px); }
  .story-figure { max-width: 420px; }
  .story-figure img { aspect-ratio: 4 / 5; }
}

/* ---- Contact form ---- */
.cform {
  text-align: left;
  max-width: 640px;
  margin: clamp(40px, 5vw, 60px) auto 0;
}
.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 22px);
}
.cform-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: clamp(16px, 2vw, 22px);
}
.cform-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cform input,
.cform textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.cform textarea { resize: vertical; min-height: 128px; line-height: 1.7; }
.cform input::placeholder,
.cform textarea::placeholder { color: var(--ink-faint); }
.cform input:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(255,255,255,.04);
}

.cform-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 clamp(24px, 3vw, 32px);
  cursor: pointer;
}
.cform-agree input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.cform-agree input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.cform-agree input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 5px; height: 9px;
  margin: 1px auto 0;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cform-agree input[type="checkbox"]:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 2px; }
.cform-agree-text {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  letter-spacing: .02em;
}
.cform-agree-text a { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
.cform-agree-text a:hover { color: var(--ink); }

.cform-submit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 15px 42px;
  cursor: pointer;
  transition: color .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), opacity .4s var(--ease);
}
.cform-submit:not(:disabled):hover {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}
.cform-submit:disabled { opacity: .35; cursor: not-allowed; }

.cform-status {
  min-height: 1em;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink-dim);
}
.cform-status.is-ok { color: var(--ink-soft); }
.cform-status.is-error { color: #cf9a9a; }

@media (max-width: 560px) {
  .cform-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---- Signature: hero drifting petals（花びら。html の <canvas class="hero-petals"> と js の該当ブロックで制御。止める場合は canvas を削除） ---- */
.hero-petals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;            /* 画像＋スクリムの上・タイトル文字の下 */
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-petals { display: none; }
}

/* Footer privacy link */
.footer-meta a {
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line-soft);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer-meta a:hover { color: var(--ink); border-color: var(--line-strong); }

/* =============================================================
   22. Atmosphere — 全ページ共通の「光」の演出
   ============================================================= */
/* ページ遷移：照明が落ちるように暗転 → 次のページで明るくなる。
   到着時のフェードは CSS だけで完結（JS が無くても必ず消える）。離れる時の暗転は js/script.js */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  background: #080808;
  opacity: 0;
  animation: veilOut .75s var(--ease-soft) both;
  transition: opacity .36s var(--ease-soft);
}
@keyframes veilOut { from { opacity: 1; } to { opacity: 0; } }
html.is-leaving::after { animation: none; opacity: 1; }

/* 写真は「光の一線」から上下に開く（class="reveal reveal--slit"） */
/* 枠（観測対象）は見せたまま、中の画像だけを閉じておく。枠ごと閉じると画面に入ったことを検知できない */
.reveal.reveal--slit { opacity: 1; transform: none; }
.reveal--slit > img {
  clip-path: inset(50% 0 50% 0);
  transform: scale(1.14);
  transition: clip-path 1.7s cubic-bezier(.7, 0, .2, 1), transform 2.4s var(--ease), filter 1.1s var(--ease);
}
.reveal--slit.is-visible > img { clip-path: inset(0 0 0 0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  html::after { display: none; }
  .reveal--slit > img { clip-path: none !important; transform: none !important; }
}

/* 画面には出さず、読み上げにだけ使う文字 */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 言語ボタン：指で押せる範囲を広げる（見た目の位置と大きさは変えない） */
@media (pointer: coarse) {
  .lang-toggle { padding: 13px 8px; margin: -7px -6px; }
  .lang-menu button { padding: 13px 20px; }
}
