/* =========================================================
   Light & Silence — Photography
   ========================================================= */

:root {
  --bg: #f6f4f0;
  --bg-elev: #ffffff;
  --text: #1c1b19;
  --muted: #8a867f;
  --line: rgba(28, 27, 25, 0.12);
  --accent: #a4805a;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --gap: clamp(12px, 1.6vw, 24px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #111110;
  --bg-elev: #1a1a18;
  --text: #ecebe7;
  --muted: #8f8c86;
  --line: rgba(236, 235, 231, 0.12);
  --accent: #c9a77f;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* 写真の保存をしにくくする（ドラッグ・長押し保存・選択を無効化） */
.photo img,
.lightbox__img,
.hero__image,
.about__photo {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* ボタンやリンクを素早く2回タップしても、画面が拡大されないようにする */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--gutter);
  color: #fff;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), padding 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.logo span { font-style: italic; color: var(--accent); }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); }
.menu-toggle { display: none; }
.nav a {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.theme-toggle {
  width: 34px; height: 18px;
  border: 1px solid currentColor;
  border-radius: 20px;
  position: relative;
  opacity: 0.8;
}
.theme-toggle__dot {
  position: absolute;
  top: 3px; left: 3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
[data-theme="dark"] .theme-toggle__dot { transform: translateX(16px); }

.lang-toggle {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.lang-toggle i { font-style: normal; opacity: 0.35; }
.lang-toggle span { opacity: 0.45; transition: opacity 0.3s; }
.lang-toggle span:hover { opacity: 0.8; }
html[lang="ja"] .lang-toggle [data-lang="ja"],
html[lang="en"] .lang-toggle [data-lang="en"] { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 64vh;
  height: 64svh;
  min-height: 420px;
  max-height: 720px;
  overflow: hidden;
  color: #fff;
}
.hero__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 62%;
  transform: scale(1.08);
  animation: heroZoom 2.8s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.5) 100%);
}
.hero__content {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(48px, 9vh, 96px);
  max-width: 1000px;
}
.hero__eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.6s forwards;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 12px 0 20px;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 0.8s forwards;
}
.hero__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 1.1s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 44px;
  background: rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 18px;
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
  letter-spacing: 0.02em;
}
.section-head__sub {
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.24em;
}

/* ---------- Works ---------- */
.works { padding: clamp(56px, 7vw, 100px) var(--gutter) clamp(80px, 10vw, 140px); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: clamp(32px, 4vw, 56px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.filter {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.3s;
}
.filter sup {
  font-size: 10px;
  margin-left: 3px;
  letter-spacing: 0;
}
.filter:hover,
.filter.is-active { color: var(--text); }
.filter.is-active { font-style: italic; }

/* カレンダーボタン（フィルタ行の右端） */
.filter--calendar {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter__icon {
  width: 13px; height: 12px;
  border: 1px solid currentColor;
  border-top-width: 3px;
  border-radius: 2px;
}
.filter.filter__clear {
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  margin-left: -16px;
  padding: 0 2px;
}
.filter.filter__clear:hover { color: var(--accent); }

/* 撮影日カレンダー */
.calendar {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease), margin 0.6s var(--ease);
}
.calendar.is-open {
  grid-template-rows: 1fr;
  margin: calc(-1 * clamp(32px, 4vw, 56px) + 24px) 0 clamp(32px, 4vw, 56px);
}
.calendar__wrap { overflow: hidden; min-height: 0; position: relative; }
.calendar__inner {
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.calendar__inner::-webkit-scrollbar { display: none; }
.calendar.is-open .calendar__wrap {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.calendar__month {
  flex: 0 0 auto;
  width: min(300px, 100%);
  scroll-snap-align: start;
}
.calendar__nav {
  position: absolute;
  top: 0; right: 0;
  display: flex;
  gap: 4px;
  z-index: 1;
}
.calendar__nav[hidden] { display: none; }
.calendar__nav button {
  width: 32px; height: 28px;
  font-size: 16px;
  color: var(--text);
  transition: opacity 0.3s;
}
.calendar__nav button:disabled { opacity: 0.2; cursor: default; }
@media (max-width: 640px) {
  .calendar__month { width: 100%; }
}
.calendar__title {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar__wd {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding-bottom: 4px;
}
.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  opacity: 0.55;
  position: relative;
}
.calendar__day.has-photo {
  opacity: 1;
  color: #fff;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  outline: 1px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.3s;
}
.calendar__day.has-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.38);
  transition: background 0.3s;
}
.calendar__day.has-photo:hover::before { background: rgba(0, 0, 0, 0.12); }
.calendar__day.has-photo.is-active { outline-color: var(--accent); }
.calendar__day b { position: relative; font-weight: 500; }
.calendar__day sup {
  position: absolute;
  top: 3px; right: 4px;
  font-size: 9px;
  line-height: 1;
}

.gallery {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}
.gallery__col { flex: 1; min-width: 0; }

/* もっと見る（Journal の「すべての記事 →」と同じ見た目） */
.works__more {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: right;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.works__more[hidden] { display: none; }
.works__more button {
  letter-spacing: inherit;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s;
}
.works__more button:hover { border-color: currentColor; }

.photo {
  break-inside: avoid;
  margin-bottom: var(--gap);
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.photo.is-visible { opacity: 1; transform: none; }
.photo.is-hidden  { display: none; }

.photo__frame {
  position: relative;
  overflow: hidden;
  background: var(--line);
}
.photo__frame img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.photo__frame img.is-loaded { opacity: 1; }
.photo:hover .photo__frame img { transform: scale(1.04); }

.photo__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 2px 0;
  font-size: 12px;
  line-height: 1.6;
}
.photo__title { letter-spacing: 0.12em; }
.photo__no {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  margin-right: 10px;
  font-size: 14px;
}
.photo__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------- About ---------- */
.about {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: center;
}
@media (max-width: 800px) { .about__inner { grid-template-columns: 1fr; } }

.about__photo {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-color: var(--line);
}
.about__text { max-width: 520px; }
.about__text p + p { margin-top: 1.4em; }
.about__name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1.2em;
}
.about__name span { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.about__meta {
  margin-top: 2.4em;
  border-top: 1px solid var(--line);
}
.about__meta div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.about__meta dt {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 言語の出し分け（data-only="ja" / "en"） ---------- */
html[lang="ja"] [data-only="en"],
html[lang="en"] [data-only="ja"] { display: none !important; }

/* ---------- Journal ---------- */
.journal { padding: clamp(80px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--line); }
.page-journal .journal { border-top: 0; padding-top: clamp(120px, 14vw, 180px); }
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: clamp(36px, 4vw, 56px) var(--gap);
}
.post-card { display: block; }
.journal__empty { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.post-card__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--line);
  margin-bottom: 18px;
}
.post-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__meta,
.post__meta {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: flex;
  gap: 14px;
}
.post-card__meta span,
.post__meta span { font-style: italic; color: var(--accent); }
.post-card__draft { font-style: normal; color: #c0392b; font-size: 12px; }
.post-card__title {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  margin: 4px 0 6px;
}
.post-card__excerpt { font-size: 13px; color: var(--muted); line-height: 1.9; }
.journal__more {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: right;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.journal__more a { border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color 0.3s; }
.journal__more a:hover { border-color: currentColor; }

/* 記事ページ */
.post { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; }
.post__back {
  display: inline-block;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 40px;
  transition: color 0.3s;
}
.post__back:hover { color: var(--text); }
.post__head { margin-bottom: clamp(28px, 4vw, 44px); }
.post__title {
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-top: 10px;
}
.post__cover { margin-bottom: clamp(36px, 5vw, 56px); }
.post__note { font-size: 13px; color: var(--muted); font-style: italic; margin-bottom: 24px; }
.post__body { font-size: 15.5px; line-height: 2.1; }
.post__body > * + * { margin-top: 1.5em; }
.post__body h2 {
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.06em;
  margin-top: 2.6em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.post__body h3 { font-weight: 500; font-size: 17px; margin-top: 2em; }
.post__body strong { font-weight: 500; }
.post__body a { color: var(--accent); border-bottom: 1px solid currentColor; }
.post__body ul,
.post__body ol { padding-left: 1.4em; }
.post__body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.2em;
  color: var(--muted);
}
.post__body code { font-size: 0.9em; background: var(--line); padding: 2px 6px; border-radius: 3px; }
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.post__body figure { margin-block: 2.4em; }
.post figure img {
  width: 100%;
  height: auto; /* width/height 属性があっても縦横比を保つ */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.post figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; letter-spacing: 0.06em; }
.post__pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(64px, 8vw, 100px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.post__pager-link { display: block; font-size: 14px; line-height: 1.7; }
.post__pager > :last-child { text-align: right; }
.post__pager-label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

/* メールアドレスをコピーしたときのお知らせ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 22px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  max-width: calc(100vw - 32px);
  animation: toast-in 0.4s var(--ease);
  transition: opacity 0.6s var(--ease);
}
.toast.is-hiding { opacity: 0; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(96px, 12vw, 160px) var(--gutter) 40px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.site-footer__lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.2;
}
.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0 96px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.14em;
}
.site-footer__links a { color: var(--muted); transition: color 0.3s; }
.site-footer__links a:hover { color: var(--text); }
.site-footer__copy { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0c0c0b;
  color: #ecebe7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px clamp(16px, 4vw, 64px) 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

/* 広い画面：左に写真、右に情報パネル */
.lightbox__figure {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 380px);
  gap: clamp(32px, 4vw, 64px);
}
.lightbox__img-wrap {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.lightbox__img.is-loaded { opacity: 1; transform: none; }

.lightbox__panel {
  align-self: center;
  max-height: 100%;
  overflow-y: auto;
  padding: 8px 4px 8px 0;
  font-size: 14px;
  line-height: 1.9;
}
.lightbox__count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.lightbox__title {
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.5;
  letter-spacing: 0.14em;
  margin: 10px 0 12px;
}
.lightbox__desc { font-size: 15px; color: #c9c6bf; }
.lightbox__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: #8f8c86;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.lightbox__note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(236, 235, 231, 0.12);
}
.lightbox__note-text { white-space: pre-line; color: #dcd9d2; }
.lightbox__journal { margin-top: 28px; }
.lightbox__journal[hidden] { display: none; }
.lightbox__journal a {
  display: block;
  color: #dcd9d2;
  font-size: 14px;
  line-height: 1.7;
  padding: 6px 0;
  transition: color 0.3s;
}
.lightbox__journal a::after { content: " →"; color: #8f8c86; }
.lightbox__journal a:hover { color: #c9a77f; }
.lightbox__meta {
  margin-top: 28px;
  border-top: 1px solid rgba(236, 235, 231, 0.12);
}
.lightbox__meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(236, 235, 231, 0.12);
}
.lightbox__meta dt {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: #8f8c86;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.lightbox__meta dd { text-align: right; font-size: 14px; letter-spacing: 0.04em; }
.lightbox__copy { margin-top: 24px; font-size: 12px; letter-spacing: 0.1em; color: #8f8c86; }

.lightbox__close {
  position: absolute;
  top: 20px; right: clamp(16px, 3vw, 40px);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 20px;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }
.lightbox__close:hover,
.lightbox__nav:hover { opacity: 1; }

/* 狭い画面：写真の下に情報パネル（スクロールで読む） */
@media (max-width: 1000px) {
  .lightbox {
    align-items: flex-start;
    overflow-y: auto;
  }
  .lightbox__figure {
    height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lightbox__img-wrap { height: auto; }
  .lightbox__img { max-height: 70vh; max-height: 70svh; }
  .lightbox__panel { align-self: start; max-height: none; overflow: visible; }
}

@media (max-width: 560px) {
  /* スマホの2列表示：カテゴリは省き、タイトルは1行に収める */
  .gallery { gap: 10px; }
  .photo { margin-bottom: 10px; }
  .photo__meta { padding-top: 6px; font-size: 11px; }
  .photo__title { letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .photo__sub { display: none; }
}

@media (max-width: 640px) {
  /* スマホ：メニューは「Menu」ボタンで全画面に開く */
  .logo { font-size: 18px; letter-spacing: 0.04em; white-space: nowrap; }
  .nav { gap: 14px; }
  .menu-toggle {
    display: block;
    font-family: var(--serif);
    font-size: 15px;
    letter-spacing: 0.14em;
  }
  .menu-toggle__close,
  .is-menu-open .menu-toggle__open { display: none; }
  .is-menu-open .menu-toggle__close { display: inline; }
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 0 var(--gutter);
    background: var(--bg);
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    /* メニューを開いている間は、拡大や後ろのページのスクロールをさせない */
    touch-action: none;
    overscroll-behavior: contain;
  }
  .nav__links a {
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }
  .site-header.is-menu-open {
    color: var(--text);
    background: transparent;
    border-bottom-color: transparent;
    /* backdrop-filter があると全画面メニューがヘッダーの中に閉じ込められるので外す */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .is-menu-open .nav__links { opacity: 1; visibility: visible; }
  .lightbox__nav { display: none; }
  .lightbox__img-wrap { padding: 0; }
}

body.no-scroll,
html.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .photo { opacity: 1; transform: none; }
}

/* ---------- 写真だけ表示（拡大表示中に写真をクリック） ---------- */
.lightbox__img { cursor: zoom-in; }
.lightbox.is-focus { padding: 0; }
.lightbox.is-focus .lightbox__img { cursor: zoom-out; }
.lightbox.is-focus .lightbox__figure { display: block; height: 100%; }
.lightbox.is-focus .lightbox__img-wrap { height: 100%; padding: 0; }
.lightbox.is-focus .lightbox__img { max-width: 100vw; max-height: 100vh; max-height: 100svh; }
.lightbox.is-focus .lightbox__panel,
.lightbox.is-focus .lightbox__close,
.lightbox.is-focus .lightbox__nav { display: none; }
@media (max-width: 1000px) {
  .lightbox.is-focus { overflow: hidden; align-items: center; }
}

/* 写真の右下のクレジット（位置は main.js が写真に合わせて決める） */
.lightbox__credit {
  position: absolute;
  transform: translate(calc(-100% - 12px), calc(-100% - 10px));
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.lightbox__credit.is-shown { opacity: 1; }

