/* サンプルHP「灯」の共通スタイル（1ページ目 index.html・2ページ目 exhibition/ で共有） */
/* =========================================================
   サンプルHP：ポートレートフォトグラファー「灯」
   「個展」の見せ方。写真が主役で、文字は作品の札（キャプション）程度に抑える
   黒基調。差し色 --accent は最小限（細い線だけ）
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #0E0E0E;
  --text: #EAE6DF;
  --sub: #9A968F;          /* 補助：#0E0E0E の上で 6.6:1。写真の上では使わない */
  --line: #2A2927;
  --accent: #B89B6A;
  --mincho: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --gutter: 24px;
  --band-h: 40px;          /* サンプル表示の帯の高さ（JSで実測して上書き） */
}
@media (min-width: 960px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mincho);
  font-size: .9375rem;
  line-height: 2;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }
.nw { white-space: nowrap; }

/* 英字の小さなラベル（字間広め） */
.label {
  font-family: var(--en);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
}

/* ---------- サンプルであることを示す帯（常に最上部・小さめ） ---------- */
.sample-band {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 5px 16px;
  background: #000;
  color: var(--text);
  font-family: var(--sans);
  font-size: .6875rem;
  line-height: 1.6;
  letter-spacing: .04em;
  text-align: center;
}
.sample-band a { margin-left: .8em; white-space: nowrap; text-underline-offset: 3px; }

/* ---------- ヘッダー（トップ写真の上） ---------- */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
}
.header a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.header .logo { font-size: .9375rem; letter-spacing: .16em; }
.header .logo span { margin-left: .6em; font-family: var(--en); font-size: .8125rem; letter-spacing: .3em; }
.header .label { font-size: .75rem; }

/* ---------- 1. 入口 ---------- */
.entrance {
  position: relative;
  height: calc(100svh - var(--band-h));
  min-height: 480px;
  overflow: hidden;
}
.entrance img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
/* 上（ヘッダー）と左下（名前）の背後だけ暗くする。白い文字が 4.5:1 以上になる濃さ */
.entrance::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, .7) 0, rgba(14, 14, 14, 0) 120px),
    linear-gradient(0deg, rgba(14, 14, 14, .85) 0, rgba(14, 14, 14, .5) 160px, rgba(14, 14, 14, 0) 300px);
}
.entrance-name {
  position: absolute;
  left: var(--gutter);
  bottom: 32px;
  z-index: 1;
}
.entrance-name h1 { font-size: 1.375rem; font-weight: 400; letter-spacing: .2em; line-height: 1.6; }
.entrance-name h1 span { margin-left: .6em; font-family: var(--en); font-size: 1rem; font-weight: 300; letter-spacing: .32em; }
.entrance-name .label { margin-top: 4px; font-size: .75rem; }
@media (min-width: 960px) {
  .entrance img { object-position: 50% 40%; }
  .entrance-name { bottom: 48px; }
}

/* ---------- 2. ステートメント ---------- */
.statement {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 120px var(--gutter);
  text-align: center;
}
.statement > img,
.journey > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.statement::before,
.journey::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 14, 14, .72);
}
.statement-text p {
  font-size: clamp(1.0625rem, .9rem + .8vw, 1.5rem);
  line-height: 2.4;
  letter-spacing: .14em;
  word-break: keep-all;
}
.statement-text p + p { margin-top: .4em; }

/* ---------- 3. 作品 ---------- */
.works-head { padding: 120px var(--gutter) 40px; text-align: center; }
.works-head .label { color: var(--sub); }
.work { position: relative; margin: 0; }
.work-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: zoom-in;
}
.work img { width: 100%; height: 100%; object-fit: cover; }
.caption {
  font-family: var(--en);
  font-size: .8125rem;
  letter-spacing: .24em;
  line-height: 1.6;
}
/* 画面いっぱいに見せる写真。キャプションは左下、背後を暗くする */
.work-full { height: 100svh; min-height: 480px; }
.work-full .work-open { height: 100%; }
.work-full::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(14, 14, 14, .8), rgba(14, 14, 14, 0));
}
.work-full .caption { position: absolute; left: var(--gutter); bottom: 24px; z-index: 1; }
/* 壁に掛けたように、大きな余白の中に置く写真。キャプションは右下の札 */
.work-hung {
  display: grid;
  justify-content: center;
  align-content: center;
  padding: 96px var(--gutter);
}
.work-hung img { width: min(calc(100vw - var(--gutter) * 2), 520px); height: auto; }
.work-hung .caption { justify-self: end; margin-top: 16px; color: var(--sub); }
@media (min-width: 960px) {
  .work-hung { min-height: 100svh; padding: 14svh var(--gutter); }
  .work-hung img { width: auto; height: 72svh; }
  .work-full .caption { bottom: 32px; }
}

/* 大きく表示 */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 5, 5, .96);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(5, 5, 5, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; }
.lightbox .caption { margin-top: 14px; color: var(--sub); text-align: center; }
.lightbox-close {
  position: fixed;
  top: 12px; right: 12px;
  min-width: 44px; min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-family: var(--en);
  font-size: .8125rem;
  letter-spacing: .24em;
  cursor: pointer;
}

/* ---------- 3.5 こんな人に（強みと、相談の入口） ---------- */
.for { padding: 140px var(--gutter) 120px; text-align: center; }
.for .label { margin-bottom: 48px; color: var(--sub); }
.for ul { display: grid; gap: 18px; }
.for li {
  font-size: clamp(1rem, .9rem + .5vw, 1.25rem);
  line-height: 2;
  letter-spacing: .14em;
  word-break: keep-all;
}
.for-note { margin-top: 48px; color: var(--sub); font-size: .875rem; letter-spacing: .1em; word-break: keep-all; }
.for-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 32px;
  padding: 10px 36px;
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: var(--sans);
  font-size: .8125rem;
  letter-spacing: .14em;
  text-decoration: none;
  transition: background-color .2s;
}
.for-cta:hover { background-color: rgba(184, 155, 106, .14); }
@media (prefers-reduced-motion: reduce) { .for-cta { transition: none; } }

/* ---------- 4. 歩みと今 ---------- */
.journey {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: 120px var(--gutter);
}
.journey > img { object-position: 60% 50%; }
.journey::before { background: rgba(14, 14, 14, .8); }
.journey-inner { width: 100%; max-width: 560px; margin: 0 auto; }
.journey .label { margin-bottom: 40px; }
.journey li {
  display: grid;
  white-space: nowrap;
  grid-template-columns: 4.2em 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(234, 230, 223, .2);
  font-size: .875rem;
  line-height: 1.8;
}
.journey time { font-family: var(--en); font-size: 1.0625rem; letter-spacing: .12em; }
.journey-now { margin-top: 40px; font-size: .9375rem; letter-spacing: .12em; }
.journey-now .label { display: inline; margin: 0 1em 0 0; }
.journey-now .label::after { content: ""; display: inline-block; width: 24px; height: 1px; margin-left: 1em; vertical-align: middle; background: var(--accent); }

/* ---------- 5. 声 ---------- */
.voices { padding: 160px var(--gutter) 120px; text-align: center; }
.voices .label { margin-bottom: 64px; color: var(--sub); }
.voices ul { display: grid; gap: 64px; max-width: 960px; margin: 0 auto; }
/* 声は4件。PCは2列×2段 */
@media (min-width: 960px) { .voices ul { grid-template-columns: repeat(2, 1fr); gap: 72px 80px; max-width: 820px; } }
.voices blockquote { font-size: 1rem; line-height: 2.1; letter-spacing: .1em; word-break: keep-all; }
.voices .who { margin-top: 16px; color: var(--sub); font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; }
.tag { margin-left: .8em; padding: 1px 8px; border: 1px solid var(--sub); font-size: .625rem; }

/* ---------- 6. Information ---------- */
.info { padding: 120px var(--gutter) 96px; font-family: var(--sans); font-size: .8125rem; line-height: 1.9; }
.info-inner { max-width: 720px; margin: 0 auto; }
.info .label { margin-bottom: 32px; font-family: var(--en); color: var(--sub); }
.info dl { border-top: 1px solid var(--line); }
.info dl > div { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .info dl > div { grid-template-columns: 8em 1fr; gap: 24px; } }
.info dt { color: var(--sub); font-family: var(--en); font-size: .8125rem; letter-spacing: .24em; text-transform: uppercase; }
.info .row { display: flex; justify-content: space-between; gap: 16px; }
.info .row + .row { margin-top: 4px; }
.info .row span:last-child { white-space: nowrap; }
.info .row small { margin-left: 1.2em; color: var(--sub); font-size: .75rem; }
@media (max-width: 639px) { .info .row small { display: block; margin: 0 0 6px; } }
.info .small { margin-top: 8px; color: var(--sub); font-size: .75rem; }
.info .links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.info .links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 7. クレジット・誠屋への導線 ---------- */
.credit { padding: 0 var(--gutter) 64px; color: var(--sub); font-family: var(--sans); font-size: .6875rem; line-height: 1.9; text-align: center; }
.credit a { color: var(--sub); }
/* 誠屋の枠：誠屋のブランド（紺 #1F3A5F と白・ゴシック体）でそろえる */
.makotoya {
  padding: 56px var(--gutter) 64px;
  background: #FFFFFF;
  color: #1F3A5F;
  font-family: var(--sans);
  text-align: center;
}
.makotoya p { font-size: .875rem; line-height: 1.9; letter-spacing: .05em; word-break: keep-all; }
.makotoya a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 20px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #1F3A5F;
  color: #FFFFFF;
  font-size: .9375rem;
  text-decoration: none;
}
.makotoya a:hover { background: #162B47; }
.makotoya :focus-visible { outline-color: #1F3A5F; }

/* ダミーのリンクを押したときのお知らせ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  font-size: .8125rem;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* スクロールに合わせて1枚ずつ、ゆっくり浮かび上がる（動きを減らす設定では動かさない） */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transition: opacity 1.2s ease-out; }
  .js .reveal.is-in { opacity: 1; }
}

/* ---------- ヘッダーのナビ（Works＝1ページ目／Exhibition＝2ページ目／Contact） ---------- */
.nav { display: flex; gap: 22px; }
.nav a { position: relative; }
/* いま開いているページ：細い差し色の線 */
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: .32em; bottom: 8px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 479px) {
  .header { padding: 14px var(--gutter); }
  .header .logo span { display: none; }
  .nav { gap: 14px; }
  .nav .label { font-size: .6875rem; letter-spacing: .2em; }
  .nav a[aria-current="page"]::after { right: .2em; }
}

/* 「Now」の行から2ページ目へ */
.journey-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: 1.2em; font-size: .8125rem; white-space: nowrap; }

/* =========================================================
   2ページ目：個展ページ（exhibition/）
   ========================================================= */
/* 入口：会期・会場は左下。文字の背後を暗くする（4.5:1以上） */
.ex-hero .entrance-name h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); letter-spacing: .16em; line-height: 1.5; }
.ex-hero .label { margin-bottom: 12px; }
.ex-hero .ex-meta { margin-top: 12px; font-family: var(--sans); font-size: .8125rem; line-height: 1.8; letter-spacing: .06em; }
.ex-hero::after {
  background:
    linear-gradient(180deg, rgba(14, 14, 14, .7) 0, rgba(14, 14, 14, 0) 120px),
    linear-gradient(0deg, rgba(14, 14, 14, .92) 0, rgba(14, 14, 14, .6) 240px, rgba(14, 14, 14, .15) 420px);
}

/* 個展に込めた想い */
.ex-words { padding: 160px var(--gutter); text-align: center; }
.ex-words p { font-size: clamp(1rem, .9rem + .6vw, 1.375rem); line-height: 2.4; letter-spacing: .14em; word-break: keep-all; }

/* 展示作品の一部：1枚を画面いっぱいに、残りを壁に掛けたように並べる */
.ex-preview-head { padding: 0 var(--gutter) 40px; text-align: center; }
.ex-preview-head .label { color: var(--sub); }
.ex-wall { display: grid; gap: 72px; padding: 96px var(--gutter) 120px; }
.ex-wall .work { display: grid; justify-content: center; }
.ex-wall img { width: min(calc(100vw - var(--gutter) * 2), 420px); height: auto; }
.ex-wall .caption { justify-self: end; margin-top: 14px; color: var(--sub); }
@media (min-width: 960px) {
  .ex-wall { grid-template-columns: repeat(3, auto); justify-content: center; align-items: end; gap: 6vw; padding: 18svh var(--gutter); }
  .ex-wall img { width: auto; height: 52svh; }
}

/* 概要・応援のかたち・予約：写真は置かず、細い線で区切った文字だけ */
.ex-text { padding: 120px var(--gutter); font-family: var(--sans); font-size: .875rem; line-height: 1.9; }
.ex-text + .ex-text { padding-top: 0; }
.ex-inner { max-width: 880px; margin: 0 auto; }
.ex-text .label { margin-bottom: 32px; color: var(--sub); }
.ex-text dl { border-top: 1px solid var(--line); }
.ex-text dl > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .ex-text dl > div { grid-template-columns: 8em 1fr; gap: 24px; } }
.ex-text dt { color: var(--sub); }
.ex-text .small { margin-top: 14px; color: var(--sub); font-size: .75rem; }
.ex-support ul { display: grid; border-top: 1px solid var(--line); }
.ex-support li { padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) {
  .ex-support ul { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .ex-support li { padding: 32px 32px 32px 0; border-bottom: 0; }
  .ex-support li + li { padding-left: 32px; border-left: 1px solid var(--line); }
}
.ex-support h3 { margin-bottom: 6px; font-family: var(--mincho); font-size: 1.125rem; font-weight: 400; letter-spacing: .12em; }
.ex-support p { color: var(--sub); }
.ex-support a, .ex-contact a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; }
.ex-contact .links { display: flex; flex-wrap: wrap; gap: 0 28px; }
