/* =========================================================
   AI Photo — main stylesheet
   ========================================================= */

/* =========================================================
   Design tokens
   ========================================================= */
:root {
  color-scheme: dark;
  --bg:        #121110;
  --bg-raise:  #1a1816;
  --bg-sunk:   #0d0c0b;
  --line:      rgba(236, 230, 220, .12);
  --line-2:    rgba(236, 230, 220, .22);
  --text:      #ece6dc;
  --text-2:    #b0a89d;
  --text-3:    #8a8278;
  --accent:    #e2725b;
  --accent-ink:#1a0f0c;

  --font-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-latin:  "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:   -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;

  --gutter: clamp(16px, 4.2vw, 56px);
  --max:    1680px;
  --tile-gap: clamp(3px, .5vw, 8px);
  --ease:   cubic-bezier(.16, 1, .3, 1);
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--accent-ink);
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* （以前ここにあった全画面のグレイン重ねは、スクロールが重くなるので削除） */

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 17, 16, .97); /* ぼかし（backdrop-filter）はスクロールが重くなるので使わない */
  border-bottom: 1px solid var(--line);
}
/* SP：1段目にロゴと検索、2段目に横スクロールのナビ */
.site-header .wrap {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand search" "nav nav";
  align-items: center; column-gap: 20px; padding-top: 10px;
}
.brand { grid-area: brand; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand__mark { font-family: var(--font-latin); font-style: italic; font-size: 24px; letter-spacing: .01em; line-height: 1; }
.brand__mark span { color: var(--accent); }
.brand__ja { font-size: 11px; color: var(--text-3); letter-spacing: .12em; display: none; }

.gnav { grid-area: nav; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.gnav::-webkit-scrollbar { display: none; }
.gnav ul { display: flex; gap: 22px; padding-right: 24px; }
.gnav a {
  position: relative; display: block; padding: 10px 0 12px; font-size: 13px; letter-spacing: .1em; white-space: nowrap; color: var(--text-2);
  transition: color .3s var(--ease);
}
.gnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--text); }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.search-btn {
  grid-area: search; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease);
}
.search-btn:hover { background: var(--text); color: var(--bg); }

@media (min-width: 900px) {
  .brand__ja { display: inline; }
  .site-header .wrap { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav search"; height: 72px; padding-top: 0; }
  .gnav { mask-image: none; }
  .gnav ul { justify-content: flex-end; padding-right: 8px; }
  .gnav a { padding: 24px 0; }
  .gnav a::after { bottom: 18px; }
}

/* =========================================================
   Intro（ファーストビューは短く、すぐ写真に入る）
   ========================================================= */
.intro { padding-block: clamp(28px, 5vw, 64px) clamp(20px, 3vw, 36px); }
.intro__grid { display: grid; gap: 18px; align-items: end; }
@media (min-width: 900px) { .intro__grid { grid-template-columns: auto 1fr; gap: 64px; } }
.intro__kicker {
  display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; color: var(--text-3); text-transform: uppercase;
}
.intro__kicker::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.intro h1 {
  margin-top: 12px; font-family: var(--font-mincho); font-weight: 700;
  font-size: clamp(34px, 7vw, 76px); line-height: 1.15; letter-spacing: .05em;
}
.intro h1 .sm { display: block; font-size: max(13px, .24em); font-weight: 500; letter-spacing: .18em; color: var(--text-2); margin-bottom: .5em; white-space: nowrap; }
.intro__side { display: grid; gap: 14px; justify-items: start; }
@media (min-width: 900px) { .intro__side { justify-items: end; text-align: right; } }
.intro__lead { max-width: 34em; font-size: 13px; color: var(--text-2); }
.intro__count { display: flex; align-items: baseline; gap: 8px; }
.intro__count b { font-family: var(--font-latin); font-style: italic; font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1; }
.intro__count span { font-size: 12px; color: var(--text-3); letter-spacing: .12em; }

/* =========================================================
   フィルター（タグ）— 各リンクはタグアーカイブの実 URL
   ========================================================= */
.filters {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 4px 18px;
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.filters::-webkit-scrollbar { display: none; }
.filters li { flex: none; }
.filters a {
  flex: none; padding: 7px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; letter-spacing: .1em; color: var(--text-2);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.filters a:hover { border-color: var(--text); color: var(--text); }
.filters a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (min-width: 900px) { .filters { mask-image: none; flex-wrap: wrap; } }

/* =========================================================
   並び順・公開月
   ========================================================= */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-bottom: 18px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg a {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: 12px; letter-spacing: .1em; color: var(--text-2); transition: background .3s var(--ease), color .3s var(--ease);
}
.seg a:hover { color: var(--text); }
.seg a[aria-current="true"] { background: var(--text); color: var(--bg); }
.shuffle {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; font-size: 12px; letter-spacing: .08em; cursor: pointer; transition: border-color .3s var(--ease);
}
.shuffle:hover { border-color: var(--text); }
.shuffle.is-spin svg { animation: spin .6s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
.date { position: relative; display: inline-flex; align-items: center; }
.date__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.date select {
  -webkit-appearance: none; appearance: none; height: 38px; padding: 0 38px 0 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--text); font: inherit; font-size: 12px; letter-spacing: .08em; cursor: pointer;
}
.date select:hover { border-color: var(--text); }
.date select.is-set { border-color: var(--accent); }
.date select option, .date select optgroup { background: var(--bg-raise); color: var(--text); }
.date::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 6px; height: 6px; margin-top: -5px; pointer-events: none;
  border-right: 1.3px solid var(--text-2); border-bottom: 1.3px solid var(--text-2); transform: rotate(45deg);
}
.result { flex-basis: 100%; font-size: 12px; color: var(--text-3); letter-spacing: .06em; }
.result b { font-family: var(--font-latin); font-style: italic; font-weight: 500; font-size: 18px; color: var(--text); margin-right: 2px; }
@media (min-width: 760px) { .result { flex-basis: auto; margin-left: auto; } }
.empty { grid-column: 1 / -1; padding: 64px 16px; text-align: center; color: var(--text-3); font-size: 13px; }

/* =========================================================
   フォトストリーム
   - 写真集単位で区切らず、新着順に全写真をタイルで並べる
   - 枠は 3:4 で統一（CLS 0・行が揃う）。全体はライトボックスで表示
   ========================================================= */
.stream-wrap { padding-inline: var(--tile-gap); max-width: var(--max); margin-inline: auto; }
.stream {
  display: grid; gap: var(--tile-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px)  { .stream { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .stream { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .stream { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.ph a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-raise); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.ph a::after {
  content: attr(data-date); position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px;
  font-family: var(--font-latin); font-style: italic; font-size: 14px; letter-spacing: .04em; color: var(--text);
  background: linear-gradient(transparent, rgba(13,12,11,.78));
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
@media (hover: hover) {
  .ph a:hover img { transform: scale(1.04); }
  .ph a:hover::after { opacity: 1; transform: none; }
}
/* 読み込み直後のふわっと表示 */
.ph.is-new { animation: tile-in .7s var(--ease) both; }
@keyframes tile-in { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   広告（FANZA）— プラグインが中身を差し込む枠
   - 枠のサイズを先に確保して CLS を防ぐ
   - ステマ規制に合わせて「PR」を必ず表示
   ========================================================= */
.ad-tile a {
  position: relative; display: grid; grid-template-rows: 1fr auto; aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--bg-sunk); outline: 1px solid var(--line); outline-offset: -1px;
}
.ad-tile img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.ad-tile__body { padding: 10px 12px 12px; }
.ad-tile__title { font-size: 12px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-tile__cta { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .12em; color: var(--accent); }
.pr {
  position: absolute; left: 8px; top: 8px; z-index: 1; padding: 1px 7px; font-size: 10px; letter-spacing: .14em;
  background: rgba(13,12,11,.75); border: 1px solid var(--line-2); color: var(--text-2);
}

/* 60枚ごとに入る横長バナー（グリッドの1行をまるごと使う） */
.ad-row { grid-column: 1 / -1; padding-block: clamp(16px, 3vw, 32px); display: grid; justify-items: center; gap: 8px; }
.ad-row__label { font-size: 10px; letter-spacing: .2em; color: var(--text-3); }
.ad-row__slot {
  display: grid; place-items: center; width: 100%; max-width: 728px; aspect-ratio: 320 / 100;
  background: var(--bg-sunk); outline: 1px solid var(--line); outline-offset: -1px; font-size: 12px; color: var(--text-3);
}
@media (min-width: 600px) { .ad-row__slot { aspect-ratio: 728 / 90; } }

/* =========================================================
   もっと見る（JS なしでも /page/2/ に遷移できる実リンク）
   ========================================================= */
.more { display: grid; justify-items: center; gap: 12px; padding-block: clamp(36px, 6vw, 72px); }
.more__status { font-size: 12px; color: var(--text-3); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.more__bar { width: min(240px, 60vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.more__bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); transition: width .6s var(--ease); }
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 22px 0 26px;
  border: 1px solid var(--text); border-radius: 999px; font-size: 13px; letter-spacing: .14em; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); background: transparent; cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn[aria-busy="true"] { opacity: .5; pointer-events: none; }

/* =========================================================
   ライトボックス
   ========================================================= */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 9, 8, .97); color: var(--text); }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lb__count { font-family: var(--font-latin); font-style: italic; font-size: 18px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lb__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; }
.lb__close:hover { background: var(--text); color: var(--bg); }
.lb__stage { position: relative; min-height: 0; overflow: hidden; padding: 0 8px 8px; touch-action: pan-y; }
.lb__img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: none; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgba(18,17,16,.6); cursor: pointer; transition: background .3s, color .3s;
}
.lb__nav:hover { background: var(--text); color: var(--bg); }
.lb__nav--prev { left: 20px; }
.lb__nav--next { right: 20px; }
@media (hover: hover) and (min-width: 760px) { .lb__nav { display: grid; z-index: 1; } .lb__stage { padding-inline: 96px; } }
.lb__info {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.lb__book small { display: block; font-size: 10px; letter-spacing: .18em; color: var(--text-3); }
.lb__book b { font-family: var(--font-mincho); font-weight: 500; font-size: 15px; letter-spacing: .06em; }
.lb__date { margin-left: 10px; font-size: 12px; color: var(--text-3); }
.lb__link { font-size: 12px; letter-spacing: .12em; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* =========================================================
   このサイトについて
   ========================================================= */
.section { padding-block: clamp(56px, 9vw, 120px); border-top: 1px solid var(--line); }
.sec-head__en { font-family: var(--font-latin); font-style: italic; font-size: 14px; color: var(--accent); letter-spacing: .04em; }
.sec-head h2 { font-family: var(--font-mincho); font-weight: 500; font-size: clamp(24px, 3.4vw, 38px); letter-spacing: .08em; line-height: 1.4; }
.about { display: grid; gap: 32px; align-items: start; max-width: 1320px; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 6fr; gap: 96px; } }
.about__body p { color: var(--text-2); }
.about__body p + p { margin-top: 1.2em; }
.about__body a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 36px; }
.facts div { padding: 20px 4px; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.facts dt { font-size: 11px; color: var(--text-3); letter-spacing: .14em; }
.facts dd { font-family: var(--font-latin); font-style: italic; font-size: clamp(24px, 4vw, 44px); line-height: 1.2; white-space: nowrap; }
.facts dd small { font-family: var(--font-sans); font-style: normal; font-size: 11px; color: var(--text-2); margin-left: 3px; }
.notice { margin-top: 28px; padding: 16px 18px; border-left: 2px solid var(--accent); background: var(--bg-raise); font-size: 13px; color: var(--text-2); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; background: var(--bg-sunk); }
.site-footer__top { display: grid; gap: 32px; }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 1fr auto; align-items: start; } }
.fnav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; color: var(--text-2); }
.fnav a:hover { color: var(--text); }
.site-footer__legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--text-3); }

/* =========================================================
   Motion
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.intro__kicker, .intro h1, .intro__side { animation: rise 1s var(--ease) both; }
.intro h1    { animation-delay: .06s; }
.intro__side { animation-delay: .14s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Theme additions
   ========================================================= */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ヘッダー：検索ボタン無し */
.site-header .wrap { grid-template-columns: 1fr; grid-template-areas: "brand" "nav"; }
@media (min-width: 900px) { .site-header .wrap { grid-template-columns: auto 1fr; grid-template-areas: "brand nav"; } }
.gnav .current-menu-item > a { color: var(--text); }
.gnav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

/* 広告バナー行：中身（バナーコード / 商品の横並び）に高さを任せる */
.ad-row__slot { aspect-ratio: auto; max-width: none; min-height: 100px; background: none; outline: 0; display: flex; justify-content: center; align-items: center; }
@media (min-width: 600px) { .ad-row__slot { aspect-ratio: auto; } }
.ad-row__slot > :not(.ad-strip) { max-width: 100%; }

.ad-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 38%; gap: var(--tile-gap); width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ad-strip::-webkit-scrollbar { display: none; }
.ad-strip li { scroll-snap-align: start; }
.ad-strip a { display: grid; gap: 6px; font-size: 11px; line-height: 1.5; color: var(--text-2); }
.ad-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-sunk); outline: 1px solid var(--line); outline-offset: -1px; }
.ad-strip span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-strip a:hover span { color: var(--text); }
@media (min-width: 760px) { .ad-strip { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } }

.more__back { font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--line-2); }
.more__back:hover { color: var(--text); }

/* =========================================================
   写真ページ
   ========================================================= */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 18px 14px; font-size: 12px; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a:hover { color: var(--text); }

.photo-main { position: relative; display: grid; place-items: center; background: var(--bg-sunk); }
.photo-main__img { width: auto; max-width: 100%; max-height: calc(100svh - 120px); object-fit: contain; }
.photo-main__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: none; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgba(18,17,16,.6); transition: background .3s, color .3s;
}
.photo-main__nav:hover { background: var(--text); color: var(--bg); }
.photo-main__nav--prev { left: 20px; }
.photo-main__nav--next { right: 20px; }
@media (hover: hover) and (min-width: 760px) { .photo-main__nav { display: grid; } }

.photo-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; padding-block: 24px 20px; border-bottom: 1px solid var(--line); }
.photo-meta h1 { font-family: var(--font-mincho); font-weight: 500; font-size: clamp(22px, 3vw, 32px); letter-spacing: .06em; line-height: 1.4; }
.photo-meta__date { font-size: 12px; color: var(--text-3); letter-spacing: .08em; }
.photo-meta__date time { font-family: var(--font-latin); font-style: italic; font-size: 16px; color: var(--text-2); margin-left: 4px; }
.photo-meta__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-meta__tags a { display: block; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; color: var(--text-2); transition: border-color .3s, color .3s; }
.photo-meta__tags a:hover { border-color: var(--text); color: var(--text); }

.photo-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 18px; font-size: 13px; color: var(--text-2); }
.photo-pager a { display: inline-flex; align-items: center; gap: 6px; }
.photo-pager a:hover { color: var(--text); }
.photo-pager > :last-child { justify-self: end; }
.photo-pager__all { font-size: 12px; letter-spacing: .12em; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }

.photo-ad { padding-block: 12px 8px; display: grid; gap: 10px; }
.related .sec-head { margin-bottom: 24px; }

/* =========================================================
   固定ページ・404
   ========================================================= */
.prose-page { max-width: 820px; padding-block: clamp(40px, 7vw, 96px); }
.prose-page__head h1, .not-found h1 { font-family: var(--font-mincho); font-weight: 500; font-size: clamp(26px, 4vw, 40px); letter-spacing: .06em; line-height: 1.4; margin-bottom: 32px; }
.prose { color: var(--text-2); }
.prose > * + * { margin-top: 1.2em; }
.prose h2, .prose h3 { color: var(--text); font-family: var(--font-mincho); font-weight: 500; letter-spacing: .05em; margin-top: 2.2em; }
.prose a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.post-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-list time { font-size: 12px; color: var(--text-3); }
.not-found p + p { margin-top: 1.2em; }
.not-found .btn { margin-top: 16px; }

/* =========================================================
   ライトボックス内の広告スライド
   ========================================================= */
.lb__ad {
  position: relative; height: 100%; max-width: min(440px, 100%); margin-inline: auto;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; align-content: center;
}
.lb__ad[hidden] { display: none; }
.lb__ad .pr { left: 10px; top: 10px; }
.lb__ad-img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: var(--bg-sunk); outline: 1px solid var(--line); outline-offset: -1px; }
.lb__ad-body { display: grid; gap: 10px; justify-items: center; text-align: center; }
.lb__ad-title { font-size: 13px; line-height: 1.6; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb__ad-cta {
  display: inline-flex; align-items: center; height: 44px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  transition: filter .3s var(--ease);
}
.lb__ad:hover .lb__ad-cta { filter: brightness(1.08); }
.lb.is-ad .lb__count { color: var(--accent); font-style: normal; font-family: var(--font-sans); font-size: 12px; letter-spacing: .2em; }
.lb__skip { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 2px; cursor: pointer; font: inherit; font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.lb__img[hidden] { display: none; }

/* 写真ページの説明文 */
.photo-desc { padding-block: 18px 6px; display: grid; gap: .8em; font-size: 13px; color: var(--text-2); }
.photo-desc > * { max-width: 52em; }
.photo-desc a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.photo-desc__caption { font-family: var(--font-mincho); font-size: 15px; color: var(--text); letter-spacing: .04em; }

/* =========================================================
   ロゴ
   ========================================================= */
.brand__logo { display: block; height: 32px; width: auto; }
@media (min-width: 900px) { .brand__logo { height: 38px; } }

/* =========================================================
   追従する並び順・公開月バー
   ========================================================= */
.toolbar {
  position: sticky; top: var(--header-h, 60px); z-index: 40;
  background: rgba(18, 17, 16, .97);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent;
}
.toolbar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 24px -18px rgba(0,0,0,.8); }
.toolbar .controls { padding-block: 10px; }
.toolbar + .wrap .result { padding-block: 4px 14px; }
.result { flex-basis: auto; margin: 0; }

/* 列数切り替え（スマホのみ） */
.cols { display: inline-flex; margin-left: auto; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.cols button { display: grid; place-items: center; width: 32px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); cursor: pointer; }
.cols button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (min-width: 600px) { .cols { display: none; } }
@media (max-width: 599px) {
  html[data-cols="3"] .stream { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-cols="3"] .ad-tile__body { padding: 6px 8px 8px; }
  html[data-cols="3"] .ad-tile__title { font-size: 10px; -webkit-line-clamp: 1; }
  html[data-cols="3"] .fav { width: 30px; height: 30px; }
}

/* =========================================================
   ページ番号
   ========================================================= */
.pager ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-latin); font-style: italic; font-size: 16px; color: var(--text-2); transition: border-color .3s, color .3s; }
.pager a:hover { border-color: var(--text); color: var(--text); }
.pager [aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.pager__gap { display: grid; place-items: center; min-width: 20px; color: var(--text-3); }

/* =========================================================
   お気に入り
   ========================================================= */
.ph { position: relative; }
.fav {
  position: absolute; right: 8px; top: 8px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(13, 12, 11, .62);
  color: var(--text); cursor: pointer; transition: background .3s var(--ease), transform .3s var(--ease);
}
.fav svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.fav[aria-pressed="true"] { color: var(--accent); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.fav:hover { background: rgba(13, 12, 11, .8); }
.fav.is-pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } }
@media (hover: hover) { .ph .fav { opacity: 0; } .ph:hover .fav, .ph .fav[aria-pressed="true"], .ph .fav:focus-visible { opacity: 1; } }
.fav--lb, .fav--inline { position: static; width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; }
.fav--lb[hidden] { display: none; }
.fav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; letter-spacing: 0; vertical-align: 1px; }
.fav-count[hidden] { display: none; }
.btn--ghost { border-color: var(--line-2); color: var(--text-2); }

/* =========================================================
   フッターの索引（公開月・テーマ）
   ========================================================= */
.findex { display: grid; gap: 32px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .findex { grid-template-columns: 3fr 2fr; gap: 64px; } }
.findex__title { font-family: var(--font-mincho); font-weight: 500; font-size: 16px; letter-spacing: .08em; margin-bottom: 16px; }
.findex__months { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; align-items: baseline; }
.findex__months dt { font-family: var(--font-latin); font-style: italic; font-size: 16px; color: var(--text-3); }
.findex__months ul, .findex__themes { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.findex a { font-size: 13px; color: var(--text-2); transition: color .3s; }
.findex a:hover { color: var(--text); }
.findex small { margin-left: 4px; font-size: 10px; color: var(--text-3); }

/* 追従バー：スマホでは1行に収める */
@media (max-width: 599px) {
  .toolbar .controls { gap: 6px; padding-block: 8px; flex-wrap: nowrap; }
  .toolbar .seg a { height: 28px; padding: 0 10px; font-size: 11px; letter-spacing: .04em; gap: 4px; }
  .toolbar .seg svg { width: 12px; height: 12px; }
  .toolbar .date { min-width: 0; flex: 1 1 auto; }
  .toolbar .date select { width: 100%; height: 34px; padding: 0 26px 0 12px; font-size: 11px; letter-spacing: .02em; text-overflow: ellipsis; }
  .toolbar .date::after { right: 12px; }
  .toolbar .shuffle { width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 0; flex: none; }
  .toolbar .cols { flex: none; padding: 2px; }
  .toolbar .cols button { width: 28px; height: 28px; }
}
@media (max-width: 599px) {
  .toolbar .seg { flex: none; }
  .toolbar .seg a { white-space: nowrap; }
}

/* =========================================================
   公式写真集（自社作品の PR）
   ========================================================= */
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; font-size: 10px; font-weight: 700; letter-spacing: .12em; line-height: 1; }
.badge--official { background: var(--text); color: var(--bg); }
.badge--new { background: var(--accent); color: var(--accent-ink); }
.badge--sale { background: #d94545; color: #fff; }
.work__badges { position: absolute; left: 8px; bottom: 8px; z-index: 1; display: flex; gap: 4px; }

.work a { display: grid; gap: 12px; color: inherit; }
.work__thumb { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-sunk); outline: 1px solid var(--line); outline-offset: -1px; }
.work__thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease); }
.work a:hover .work__thumb img { transform: scale(1.03); }
.work__body { display: grid; gap: 4px; }
.work__kicker { font-size: 10px; letter-spacing: .18em; color: var(--accent); }
.work__title { font-family: var(--font-mincho); font-weight: 500; font-size: 15px; line-height: 1.5; letter-spacing: .04em; color: var(--text); }
.work__maker { font-size: 11px; color: var(--text-3); }
.work__price { font-size: 13px; color: var(--text-2); }
.work__price b { font-family: var(--font-latin); font-style: italic; font-weight: 500; font-size: 20px; color: var(--text); }
.work__price s { color: var(--text-3); }
.work__price em { font-style: normal; font-weight: 700; color: #ff7a6b; }
.work__campaign { font-size: 11px; color: #ff7a6b; }
.work__cta {
  justify-self: start; display: inline-flex; align-items: center; height: 38px; margin-top: 6px; padding: 0 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; letter-spacing: .1em; transition: filter .3s var(--ease);
}
.work a:hover .work__cta { filter: brightness(1.08); }

/* 一覧の中のタイル（写真と同じ 3:4 の枠に収める） */
.ad-tile--work .work, .ad-tile--work .work a { height: 100%; }
.ad-tile--work .work a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; outline: 1px solid rgba(226,114,91,.45); outline-offset: -1px; }
.ad-tile--work .work__thumb { position: absolute; inset: 0; aspect-ratio: auto; outline: 0; }
.ad-tile--work .work__thumb img { object-fit: cover; }
.ad-tile--work .work__badges { top: 8px; bottom: auto; left: auto; right: 8px; }
.ad-tile--work .work__body {
  position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; gap: 2px;
  background: linear-gradient(transparent, rgba(13,12,11,.92) 45%);
}
.ad-tile--work .work__maker, .ad-tile--work .work__campaign { display: none; }
.ad-tile--work .work__title { font-size: 13px; }
.ad-tile--work .work__price b { font-size: 16px; }
.ad-tile--work .work__cta { height: 30px; padding: 0 12px; font-size: 11px; margin-top: 4px; }
@media (max-width: 599px) { html[data-cols="3"] .ad-tile--work .work__cta, html[data-cols="3"] .ad-tile--work .work__kicker { display: none; } }

/* 写真ページ：この写真集の完全版 */
.work--hero a { grid-template-columns: minmax(0, 150px) 1fr; align-items: center; gap: 20px; padding: 16px; border: 1px solid rgba(226,114,91,.45); background: linear-gradient(120deg, rgba(226,114,91,.10), transparent 60%); }
.work--hero .work__title { font-size: clamp(17px, 2.2vw, 22px); }
.work--hero .work__cta { height: 44px; padding: 0 24px; font-size: 13px; }
@media (min-width: 760px) { .work--hero a { grid-template-columns: 180px 1fr; padding: 20px 24px; } }

/* 公式写真集のセクション */
.works .sec-head { display: grid; gap: 6px; margin-bottom: 28px; }
.works__lead { font-size: 13px; color: var(--text-2); }
.works__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 760px) { .works__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }
.works__list--compact { gap: 20px 12px; }
.works__note { margin-top: 20px; font-size: 11px; color: var(--text-3); }

/* トップの導線 */
.intro__works { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.intro__works:hover { border-color: var(--accent); }

/* ライトボックスの広告スライド（自社作品のときは価格・バッジつき） */
.lb__ad-badges { position: absolute; right: 10px; top: 10px; left: auto; bottom: auto; }
.lb__ad-badges:empty { display: none; }
.lb__ad-kicker { font-size: 10px; letter-spacing: .18em; color: var(--accent); }
.lb__ad-price:empty { display: none; }
.lb.is-official .lb__ad-img { outline-color: rgba(226,114,91,.5); }

/* =========================================================
   スクロールを軽くする
   ========================================================= */
/* スクロール中はタイルのマウスオーバー効果を止める（JS が html に .is-scrolling を付ける） */
.is-scrolling .stream, .is-scrolling .works__list { pointer-events: none; }
/* タイルごとに描画を閉じ込める（1枚の変化が周りの再描画に波及しない） */
.ph, .ad-tile { contain: layout paint style; }
/* 画面外のセクションは描画を後回しにする */
.works, #about, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 800px; }
