/* 融合案：上は展示風（B案）、作例一覧は探しやすいグリッド（A案）。style.css の上に重ねて使う */
:root { --col: 560px; --bg: #f1ede4; }
/* 紙のざらつき */
body.theme-f::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .32  0 0 0 0 .27  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* 展示ゾーン（ヘッダー・代表写真・紹介・Selected・撮影について）は中央の細い列 */
.theme-f .top, .theme-f .hero, .theme-f .intro, .theme-f .selected, .theme-f .about {
  max-width: calc(var(--col) + 2 * var(--pad)); margin-inline: auto; }
.theme-f .intro { text-align: center; }
.theme-f .about { border-top: 1px solid var(--ink); }
/* 作例一覧（A案のグリッド）は広く */
.theme-f .archive { max-width: 1440px; margin-inline: auto; }

/* 代表写真：縦長の大きな1枚＋題字 */
.theme-f .hero-fig { height: min(86svh, 860px); min-height: 420px; }
.theme-f .hero-fig::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(20,18,14,.42), rgba(20,18,14,0) 38%, rgba(20,18,14,0) 70%, rgba(20,18,14,.35)); }
.theme-f .hero-credit { white-space: nowrap; }
.hero-title { position: absolute; z-index: 2; top: 9%; left: 0; right: 0; text-align: center; color: #fbf8f1; display: grid; gap: 4px; }
.hero-title span { font-family: var(--serif); font-weight: 700; font-size: clamp(54px, 17vw, 96px); line-height: 1; letter-spacing: -0.03em; }
.hero-title small { margin-top: 10px; font-size: 11px; letter-spacing: .38em; }
.hero-scroll { position: absolute; z-index: 2; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fbf8f1; font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: .06em; }
.hero-scroll::after { content: "⌄"; display: block; text-align: center; line-height: .6; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* Selected：1列で左右にずらし、番号と作品名を添える */
.selected { padding: 72px var(--pad) 8px; }
.sel-head { text-align: center; }
.sel-kicker { margin: 0; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }
.sel-head h2 { margin: 2px 0 0; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 8vw, 44px); letter-spacing: .01em; line-height: 1.1; }
.sel-list { display: flex; flex-direction: column; gap: clamp(44px, 10vw, 80px); padding-block: 40px 8px; }
.sel-list .tile { background: transparent; aspect-ratio: auto; overflow: visible; text-align: left; opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.sel-list .tile::before { content: ""; display: block; aspect-ratio: 3 / 4; background: #e4ddcf; }
.sel-list .tile.is-loaded::before { display: none; }
.sel-list .tile img { position: absolute; inset: 0 0 auto 0; }
.sel-list .tile.is-loaded img { position: static; }
.sel-list .tile.is-in { opacity: 1; transform: none; }
.sel-list .tile:nth-child(3n+1) { width: 84%; align-self: flex-start; }
.sel-list .tile:nth-child(3n+2) { width: 66%; align-self: flex-end; }
.sel-list .tile:nth-child(3n)   { width: 76%; align-self: center; }
.sel-list .cap { display: block; margin-top: 8px; font-size: 10.5px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
@media (hover: hover) { .sel-list .tile:hover img { transform: none; } .sel-list .tile:hover .cap { color: var(--ink); } }
.sel-more-wrap { text-align: center; margin: 56px 0 0; }
.sel-more { display: inline-block; padding: 10px 28px; border-block: 1px solid var(--ink); font-family: var(--serif); text-decoration: none; letter-spacing: .04em; }
.sel-more:hover { color: var(--accent); border-color: var(--accent); }

/* 作例一覧：PCでは写真に触れると作品名が浮かぶ（スマホは写真だけ） */
.theme-f .grid .cap { display: none; }
@media (hover: hover) {
  .theme-f .grid .cap { display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 8px; font-size: 10.5px; letter-spacing: .08em; color: #fbf8f1; text-align: left; background: linear-gradient(transparent, rgba(20,18,14,.6)); opacity: 0; transition: opacity .3s ease; }
  .theme-f .grid .tile:hover .cap { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .sel-list .tile { opacity: 1; transform: none; transition: none; } .hero-scroll::after { animation: none; } }

/* PCの左右の固定装飾（広い画面だけ。作例一覧に入ると消える） */
.side-l, .side-r { display: none; }
@media (min-width: 1100px) {
  .theme-f .top { display: none; }
  .side-l, .side-r { display: block; position: fixed; top: 50%; transform: translateY(-50%); z-index: 5; transition: opacity .5s ease, visibility .5s ease; }
  .in-archive .side-l, .in-archive .side-r { opacity: 0; visibility: hidden; }
  .side-l { left: max(16px, calc((100vw - var(--col)) / 2 - 290px)); width: 250px; height: 430px; }
  .side-r { right: max(16px, calc((100vw - var(--col)) / 2 - 250px)); width: 210px; padding-left: 22px; border-left: 1px solid var(--ink); }
  .collage { position: relative; width: 100%; height: 100%; }
  .collage img { position: absolute; object-fit: cover; background: #e4ddcf; }
  .collage .c1 { top: 0; left: 0; width: 120px; height: 150px; }
  .collage .c2 { top: 70px; right: 0; width: 86px; height: 102px; }
  .collage .c3 { bottom: 0; left: 24px; width: 82px; height: 98px; }
  .collage .c4 { bottom: 20px; right: 0; width: 118px; height: 150px; }
  .collage-title { position: absolute; top: 176px; left: 0; margin: 0; font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1; }
  .collage-title small { display: block; margin-top: 4px; font-family: var(--sans); font-weight: 400; font-size: 9px; letter-spacing: .3em; color: var(--muted); }
  .menu-label { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: 14px; }
  .side-r a { display: block; margin-bottom: 18px; text-decoration: none; }
  .side-r a b { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
  .side-r a small { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
  .side-r a:hover b { color: var(--accent); }
}
