/* ==========================================
   TARO NOZAWA / 野沢太朗  — Photographer
   余白多め・細い明朝・英字は字間広め。写真が主役。
   ========================================== */
:root {
  --paper: #f3f1ec;
  --paper-2: #ebe8e1;
  --ink: #1c1c1a;
  --sub: #85827b;
  --line: rgba(28, 28, 26, 0.14);
  --night: #121211;
  --ja: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;
  --label: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ja);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* 読み込み中は少しだけ隠してチラつきを防ぐ */
body.loading main, body.loading .site-head { opacity: 0; }
main, .site-head { transition: opacity .8s var(--ease); }

/* ---------- 共通ラベル ---------- */
.label {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sub);
}
.more {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--label); font-size: 11px; letter-spacing: 0.3em;
}
.more::after {
  content: ""; width: 48px; height: 1px; background: currentColor;
  transition: width .5s var(--ease);
}
.more:hover::after { width: 80px; }

/* ---------- 名前(2パターン) ---------- */
.logo { display: inline-block; line-height: 1.2; }
.logo .main { display: block; }
.logo .sub {
  display: block; margin-top: 6px;
  font-family: var(--label); font-size: 9.5px; letter-spacing: 0.34em; opacity: .75;
}
/* 漢字表記 */
.name-ja .logo .main { font-family: var(--ja); font-weight: 500; font-size: 19px; letter-spacing: 0.42em; }
/* 英字表記 */
.name-en .logo .main { font-family: var(--en); font-weight: 400; font-size: 21px; letter-spacing: 0.3em; }
.name-en .logo .sub { font-family: var(--ja); letter-spacing: 0.3em; font-size: 10px; }

/* ---------- ヘッダー ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--ink);
  transition: background .5s var(--ease), color .5s var(--ease), padding .5s var(--ease), opacity .8s var(--ease);
}
.site-head.on-photo { color: #fff; }
.site-head.solid { background: rgba(243, 241, 236, 0.94); color: var(--ink); padding-top: 14px; padding-bottom: 14px; backdrop-filter: blur(6px); }
.nav { display: flex; gap: clamp(20px, 3vw, 44px); font-family: var(--label); font-size: 11px; letter-spacing: 0.32em; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; width: 32px; height: 20px; position: relative; }
.menu-btn span { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:nth-child(1) { top: 6px; }
.menu-btn span:nth-child(2) { top: 14px; }
.menu-open .menu-btn span:nth-child(1) { top: 10px; transform: rotate(20deg); }
.menu-open .menu-btn span:nth-child(2) { top: 10px; transform: rotate(-20deg); }

@media (max-width: 760px) {
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: center; justify-content: center; gap: 36px;
    background: var(--paper); color: var(--ink); font-size: 13px;
    opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
  }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .site-head { color: var(--ink); }
}

/* ---------- トップ:写真 ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--night); color: #fff; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 2.4s var(--ease), transform 9s linear;
}
.hero-slide.show { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.22), transparent 30%, transparent 62%, rgba(0,0,0,.38)); }
.hero-foot {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 56px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero-name .main { line-height: 1.3; }
.name-ja .hero-name .main { font-family: var(--ja); font-weight: 400; font-size: clamp(30px, 5vw, 56px); letter-spacing: 0.5em; }
.name-en .hero-name .main { font-family: var(--en); font-weight: 300; font-size: clamp(34px, 6vw, 72px); letter-spacing: 0.22em; }
.hero-name .sub { font-family: var(--label); font-size: 11px; letter-spacing: 0.4em; margin-top: 12px; opacity: .85; }
.name-en .hero-name .sub { font-family: var(--ja); letter-spacing: 0.35em; }
.hero-count { font-family: var(--label); font-size: 11px; letter-spacing: 0.3em; white-space: nowrap; }
.hero-count i { display: inline-block; width: 40px; height: 1px; background: rgba(255,255,255,.4); vertical-align: middle; margin: 0 10px; position: relative; overflow: hidden; }
.hero-count i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: bar 7s linear infinite; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scroll-cue {
  position: absolute; z-index: 2; right: var(--gutter); top: 50%;
  writing-mode: vertical-rl; font-family: var(--label); font-size: 10px; letter-spacing: 0.4em;
  display: flex; align-items: center; gap: 14px;
}
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(#fff, transparent); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ---------- 言葉(ステートメント) ---------- */
.statement {
  padding: clamp(110px, 18vw, 220px) var(--gutter);
  display: flex; justify-content: center; gap: clamp(48px, 9vw, 140px);
  flex-direction: row-reverse;
}
.v-title {
  writing-mode: vertical-rl;
  font-family: var(--ja); font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.32em; line-height: 2;
  margin: 0;
}
.statement p { margin: 0; align-self: flex-end; font-size: 15px; line-height: 2.5; letter-spacing: 0.1em; max-width: 36em; color: #3a3935; }
@media (max-width: 760px) {
  .statement { flex-direction: column; gap: 40px; }
  .v-title { writing-mode: horizontal-tb; font-size: 22px; letter-spacing: 0.18em; line-height: 1.9; }
  .statement p { align-self: auto; font-size: 14px; line-height: 2.3; }
  .statement p br { display: none; }
  .statement .v-title { word-break: keep-all; overflow-wrap: anywhere; }
}
@media (max-width: 520px) {
  .name-en .hero-name .main { font-size: 30px; letter-spacing: 0.14em; white-space: nowrap; }
  .name-ja .hero-name .main { font-size: 30px; letter-spacing: 0.4em; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---------- セクション見出し ---------- */
.sec { padding: 0 var(--gutter) clamp(100px, 14vw, 180px); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 { margin: 0; font-family: var(--en); font-weight: 300; font-size: clamp(34px, 5vw, 58px); letter-spacing: 0.18em; line-height: 1; }
.sec-head h2 small { display: block; margin-top: 14px; font-family: var(--ja); font-size: 12px; letter-spacing: 0.3em; color: var(--sub); }

/* ---------- 作品(トップの抜粋) ---------- */
.selected { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(12px, 2vw, 28px); row-gap: clamp(56px, 8vw, 120px); align-items: start; }
.selected figure { margin: 0; cursor: zoom-in; }
.selected figure:nth-child(6n+1) { grid-column: 1 / span 7; }
.selected figure:nth-child(6n+2) { grid-column: 9 / span 4; margin-top: 22%; }
.selected figure:nth-child(6n+3) { grid-column: 2 / span 5; }
.selected figure:nth-child(6n+4) { grid-column: 8 / span 5; margin-top: 30%; }
.selected figure:nth-child(6n+5) { grid-column: 1 / span 7; }
.selected figure:nth-child(6n+6) { grid-column: 9 / span 4; margin-top: 26%; }
@media (max-width: 760px) {
  .selected { grid-template-columns: repeat(6, 1fr); row-gap: 44px; }
  .selected figure:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .selected figure:nth-child(3n+2) { grid-column: 2 / -1; }
  .selected figure:nth-child(3n+3) { grid-column: 1 / span 5; }
}
.photo-wrap { overflow: hidden; background: var(--paper-2); }
.photo-wrap img { width: 100%; height: auto; transition: transform 1.4s var(--ease), opacity 1s var(--ease); }
figure:hover .photo-wrap img { transform: scale(1.03); }
figcaption { display: flex; gap: 14px; align-items: baseline; margin-top: 14px; font-family: var(--label); font-size: 10px; letter-spacing: 0.3em; color: var(--sub); }
figcaption b { font-weight: 400; color: var(--ink); }
figcaption span:last-child { font-family: var(--ja); letter-spacing: 0.12em; font-size: 12px; }
.sec-foot { margin-top: clamp(60px, 8vw, 100px); text-align: right; }

/* ---------- 自己紹介(トップ) ---------- */
.about-teaser { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
.about-teaser h3 { margin: 18px 0 28px; font-weight: 400; font-size: clamp(19px, 2vw, 24px); letter-spacing: 0.2em; line-height: 1.9; }
.about-teaser p { margin: 0 0 40px; color: #3a3935; }
@media (max-width: 760px) { .about-teaser { grid-template-columns: 1fr; } .about-teaser .photo-wrap { width: 78%; } }

/* ---------- 連絡先 ---------- */
.contact { background: var(--night); color: #e9e6df; padding: clamp(90px, 13vw, 160px) var(--gutter); }
.contact .sec-head h2 small { color: #8f8b83; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.contact-lead { margin: 0; color: #c9c5bc; }
.contact-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-links li { border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-links a, .contact-links .soon {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-family: var(--label); font-size: 12px; letter-spacing: 0.24em;
}
.contact-links a span:last-child { font-family: var(--en); font-size: 18px; letter-spacing: 0.08em; text-transform: none; transition: transform .5s var(--ease); }
.contact-links a:hover span:last-child { transform: translateX(-8px); }
.contact-links .soon { color: #8f8b83; font-family: var(--ja); letter-spacing: 0.14em; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- フッター ---------- */
.site-foot {
  background: var(--night); color: #8f8b83;
  padding: 0 var(--gutter) 40px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
}
.site-foot .logo { color: #e9e6df; }
.site-foot small { font-family: var(--label); font-size: 10px; letter-spacing: 0.24em; }

/* ---------- 下層ページの見出し ---------- */
.page-head { padding: clamp(150px, 20vw, 230px) var(--gutter) clamp(50px, 7vw, 90px); }
.page-head h1 { margin: 0; font-family: var(--en); font-weight: 300; font-size: clamp(48px, 9vw, 120px); letter-spacing: 0.14em; line-height: 1; }
.page-head p { margin: 20px 0 0; font-size: 12px; letter-spacing: 0.3em; color: var(--sub); }

/* ---------- WORKS ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0 var(--gutter); margin-bottom: clamp(40px, 6vw, 64px); }
.filters button { font-family: var(--label); font-size: 11px; letter-spacing: 0.3em; color: var(--sub); padding: 6px 0; position: relative; }
.filters button sup { font-size: 8px; margin-left: 4px; letter-spacing: 0; }
.filters button.on { color: var(--ink); }
.filters button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }
.masonry { columns: 3 300px; column-gap: clamp(12px, 2vw, 28px); padding: 0 var(--gutter) clamp(100px, 14vw, 170px); }
.masonry figure { break-inside: avoid; margin: 0 0 clamp(28px, 4vw, 56px); cursor: zoom-in; animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.empty-note { padding: 0 var(--gutter) 120px; color: var(--sub); }

/* ---------- ABOUT ---------- */
.about-page { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 8vw, 130px); padding: 0 var(--gutter) clamp(110px, 15vw, 190px); align-items: start; }
.about-page .photo-wrap { position: sticky; top: 110px; }
.about-body { display: flex; flex-direction: row-reverse; gap: clamp(32px, 5vw, 72px); justify-content: flex-end; }
.about-body .text p { margin: 0 0 2em; color: #3a3935; line-height: 2.5; }
.about-body .sign { margin-top: 3em; }
@media (max-width: 1000px) { .about-body { flex-direction: column; } .about-body .v-title { writing-mode: horizontal-tb; letter-spacing: 0.18em; font-size: 22px; } }
@media (max-width: 760px) { .about-page { grid-template-columns: 1fr; } .about-page .photo-wrap { position: static; width: 82%; } }

/* ---------- 拡大表示 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18, 18, 17, 0.97); color: #e9e6df;
  display: grid; grid-template-rows: 1fr auto; padding: 56px 72px 28px;
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; align-self: center; justify-self: center; }
.lb-cap { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; font-family: var(--label); font-size: 10px; letter-spacing: 0.3em; color: #8f8b83; }
.lb-cap .t { font-family: var(--ja); font-size: 12px; letter-spacing: 0.14em; color: #e9e6df; }
.lb-btn { position: absolute; font-family: var(--label); font-size: 11px; letter-spacing: 0.3em; padding: 14px; color: #c9c5bc; }
.lb-btn:hover { color: #fff; }
.lb-close { top: 10px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) { .lightbox { padding: 56px 12px 20px; } .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } .lb-cap { padding-bottom: 36px; } }

/* ---------- ふわっと出す ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transition: opacity 1s; transform: none !important; }
}
