/* =========================================================================
   pages.css — 情報のページ・作品の詳細・ポスターの拡大
   ========================================================================= */

/* ---------- めくれて出てくる紙 ---------- */
#page {
  position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none;
  --pbg: #f1ece0; --pink: #131210; --pacc: #d92a26; --pcard: #fffdf6;
  color: var(--pink);
}
#page[data-page="about"] { --pbg: #f8d517; --pacc: #1d49cf; --pcard: #fffdf6; }
#page[data-page="works"] { --pbg: #efe9dc; --pacc: #d92a26; }
#page[data-page="writings"] { --pbg: #8e8cf2; --pacc: #131210; --pcard: #fffdf6; }
#page[data-page="activities"] { --pbg: #2f9d57; --pacc: #f8d517; --pcard: #fffdf6; }
#page[data-page="press"] { --pbg: #1d49cf; --pacc: #f8d517; --pcard: #fffdf6; }
#page[data-page="contact"] { --pbg: #d92a26; --pacc: #f8d517; --pcard: #fffdf6; }
#page-scroll {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--pbg);
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1.1px, transparent 1.4px); background-size: 9px 9px;
  transform: translateY(104%) rotate(2deg); transform-origin: 50% 0;
}
#page.open { visibility: visible; pointer-events: auto; }
#page.open #page-scroll { transform: none; transition: transform .62s cubic-bezier(.16, 1.08, .3, 1); }
#page-inner { max-width: 1240px; margin: 0 auto; padding: 118px clamp(18px, 4vw, 48px) 60px; min-height: 100%; }
#page-close {
  position: absolute; left: max(16px, env(safe-area-inset-left)); bottom: 18px; z-index: 5; display: flex; align-items: center; gap: 9px;
  padding: 9px 14px 8px 10px; background: #111; color: #fff; border: 2.5px solid #111; box-shadow: 4px 4px 0 var(--pacc);
  rotate: -1.5deg; opacity: 0; transition: transform .18s, opacity .3s .35s;
}
#page.open #page-close { opacity: 1; }
#page-close b { font: 400 22px/1 var(--f-anton); }
#page-close span { font: 400 14px/1 var(--f-anton); letter-spacing: .1em; }
#page-close:hover { transform: rotate(2deg) scale(1.06); }
@media (max-width: 860px) {
  #page-inner { padding: 78px 16px calc(var(--nav-h) + 90px); }
  #page-close { bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); }
}

.tape { position: absolute; left: 50%; top: -13px; width: 92px; height: 26px; translate: -50% 0; rotate: -3deg; background: rgba(242, 230, 176, .82); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); z-index: 2; }

/* ---------- 見出し ---------- */
.pg-head { position: relative; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 clamp(28px, 5vw, 56px); }
.pg-num { font: 700 15px/1 var(--f-mono); background: #111; color: #fff; padding: 6px 9px 5px; rotate: -4deg; margin-bottom: clamp(10px, 2.4vw, 30px); }
.pg-title { margin: 0; font: 400 clamp(64px, 15vw, 190px)/.86 var(--f-anton); letter-spacing: -.01em; text-transform: uppercase; }
.pg-sub { margin: 0 0 clamp(8px, 2vw, 26px); font: 900 clamp(14px, 1.7vw, 20px)/1.3 var(--f-jp); background: var(--pacc); color: #fff; padding: 5px 12px 4px; rotate: 1.6deg; }
#page[data-page="writings"] .pg-sub { color: #fff; }
#page[data-page="activities"] .pg-sub, #page[data-page="contact"] .pg-sub, #page[data-page="press"] .pg-sub { color: #111; }
#page[data-page="contact"] .pg-title, #page[data-page="activities"] .pg-title, #page[data-page="press"] .pg-title { color: #fff; }
#page[data-page="press"] .pg-foot { border-top-color: rgba(255, 255, 255, .6); }
#page[data-page="press"] .pg-foot-lead, #page[data-page="press"] .pg-copy { color: #fff; }

/* ---------- 足もと ---------- */
.pg-foot { margin-top: clamp(60px, 9vw, 120px); padding-top: 26px; border-top: 3px dashed rgba(0, 0, 0, .55); }
.pg-foot-lead { margin: 0 0 12px; font: 900 13px/1 var(--f-jp); letter-spacing: .12em; }
.pg-next { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-next a { display: flex; align-items: baseline; gap: 7px; text-decoration: none; padding: 9px 13px 8px; background: #fff; color: #111; border: 2.5px solid #111; box-shadow: 4px 4px 0 #111; transition: transform .16s cubic-bezier(.3, 1.6, .5, 1), background .16s; }
.pg-next a:nth-child(odd) { rotate: -1.6deg; } .pg-next a:nth-child(even) { rotate: 1.4deg; }
.pg-next a i { font: 700 10px/1 var(--f-mono); font-style: normal; color: var(--red); }
.pg-next a b { font: 400 18px/1 var(--f-anton); letter-spacing: .07em; }
.pg-next a:hover { transform: translate(-2px, -3px) scale(1.06); background: var(--yel); }
.pg-back { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 26px; text-decoration: none; background: #111; color: #fff; padding: 12px 18px 10px; font: 400 clamp(20px, 3vw, 30px)/1 var(--f-anton); letter-spacing: .06em; rotate: -1deg; box-shadow: 5px 5px 0 var(--pacc); transition: transform .18s; }
.pg-back span { font: 700 12px/1 var(--f-jp); letter-spacing: .1em; opacity: .8; }
.pg-back:hover { transform: rotate(1.5deg) scale(1.04); }
.pg-copy { margin: 28px 0 0; font: 700 11px/1.4 var(--f-mono); opacity: .7; }

/* ---------- 01 ABOUT ---------- */
.ab { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.ab-face { position: relative; margin: 0; rotate: -3deg; background: #fffdf6; padding: 12px 12px 10px; box-shadow: 8px 10px 0 rgba(0, 0, 0, .9); }
.ab-photo { position: relative; background: #ddd; overflow: hidden; aspect-ratio: 1; }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-face figcaption { margin-top: 9px; font: 400 13px/1.2 var(--f-type); }
.ab-text { background: var(--pcard); border: 3px solid #111; box-shadow: 8px 8px 0 #111; padding: clamp(20px, 3.4vw, 40px); rotate: .6deg; }
.ab-name { margin: 0 0 18px; }
.ab-name b { display: block; font: 900 clamp(34px, 5.6vw, 64px)/1.1 var(--f-jp); letter-spacing: .04em; }
.ab-name span { display: inline-block; margin-top: 8px; font: 700 13px/1 var(--f-mono); background: #111; color: #fff; padding: 5px 8px; }
.ab-bio { margin: 0 0 22px; font: 500 clamp(15px, 1.5vw, 18px)/2 var(--f-jp); }
.ab-bio mark { background: linear-gradient(transparent 58%, var(--yel) 58%); color: inherit; font-weight: 900; padding: 0 1px; }
.ab-facts { margin: 0; border-top: 2px solid #111; }
.ab-facts div { display: grid; grid-template-columns: 8.4em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #111; }
.ab-facts dt { font: 700 11px/1.6 var(--f-mono); letter-spacing: .08em; color: var(--pacc); }
.ab-facts dd { margin: 0; font: 700 14px/1.6 var(--f-jp); }
.ab-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.ab-links a { text-decoration: none; font: 900 14px/1 var(--f-jp); padding: 11px 14px; background: var(--pacc); color: #fff; box-shadow: 4px 4px 0 #111; transition: transform .16s; }
.ab-links a:hover { transform: translate(-2px, -2px) rotate(-2deg); }
@media (max-width: 760px) { .ab { grid-template-columns: 1fr; } .ab-face { max-width: 300px; } }

/* ---------- 02 WORKS ---------- */
.wk-jump { display: flex; gap: 12px; margin: -14px 0 34px; flex-wrap: wrap; }
.wk-jump a { display: flex; align-items: center; gap: 8px; text-decoration: none; background: #111; color: #fff; padding: 8px 12px 7px; rotate: -1deg; }
.wk-jump a:nth-child(2) { rotate: 1.4deg; background: var(--red); }
.wk-jump b { font: 400 17px/1 var(--f-anton); letter-spacing: .08em; }
.wk-jump i { font: 700 11px/1 var(--f-mono); font-style: normal; background: var(--yel); color: #111; padding: 3px 5px; border-radius: 20px; }
.wk-sec { margin-bottom: clamp(60px, 9vw, 120px); scroll-margin-top: 90px; }
.wk-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 22px; }
.wk-h h3 { margin: 0; font: 400 clamp(34px, 5vw, 60px)/1 var(--f-anton); letter-spacing: .02em; background: var(--yel); padding: 4px 12px 2px; rotate: -1.2deg; box-shadow: 4px 4px 0 #111; }
.wk-h p { margin: 0; font: 700 14px/1.6 var(--f-jp); }
.wk-h p b { background: #111; color: #fff; padding: 2px 7px; }

/* 流れつづける帯 */
.wk-marq { margin: 0 calc(50% - 50vw) 46px; padding: 22px 0; overflow: hidden; background: #111; rotate: -1.2deg; scale: 1.03; }
.wk-row { overflow: hidden; }
.wk-row + .wk-row { margin-top: 14px; }
.wk-track { display: flex; gap: 14px; width: max-content; animation: wk-slide 70s linear infinite; padding-right: 14px; }
.wk-row.rb .wk-track { animation-direction: reverse; animation-duration: 84s; }
.wk-marq:hover .wk-track { animation-play-state: paused; }
@keyframes wk-slide { to { transform: translateX(-50%); } }
.mq { flex: none; width: clamp(120px, 15vw, 210px); position: relative; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.mq .pf { display: block; aspect-ratio: 560 / 792; background: var(--c); overflow: hidden; }
.mq .pf img { width: 100%; height: 100%; object-fit: cover; }
.mq .pt { display: none; }
.mq:hover { transform: scale(1.08) rotate(-2deg); z-index: 2; }

/* 壁 */
.wk-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 21vw, 270px), 1fr)); gap: clamp(26px, 4vw, 54px) clamp(16px, 3vw, 40px); padding: 10px 0 0; perspective: 1400px; }
.wp {
  position: relative; display: block; text-align: left; rotate: var(--r, 0deg); translate: 0 var(--dy, 0);
  opacity: 0; transform: translateY(60px) scale(.86) rotate(8deg);
  transition: transform .7s cubic-bezier(.2, 1.35, .4, 1) var(--d, 0ms), opacity .4s var(--d, 0ms);
}
.wp.in { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.wp .pf { display: block; position: relative; aspect-ratio: 560 / 792; background: var(--c); box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 7px 9px 0 rgba(0, 0, 0, .88); overflow: hidden; transition: box-shadow .2s; }
.wp .pf img { width: 100%; height: 100%; object-fit: cover; }
.wp::before { content: ''; position: absolute; left: 50%; top: -12px; width: 78px; height: 24px; translate: -50% 0; rotate: -4deg; background: rgba(242, 230, 176, .85); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); z-index: 2; }
.wp.k1::before { left: 22%; rotate: 5deg; } .wp.k2::before { left: 76%; rotate: -8deg; background: rgba(217, 42, 38, .8); } .wp.k3::before { rotate: 2deg; background: rgba(29, 73, 207, .75); } .wp.k4::before { left: 30%; rotate: -2deg; }
.wp .pt { position: absolute; left: -8px; bottom: -14px; max-width: 96%; z-index: 3; padding: 6px 9px 5px; font: 700 clamp(10px, 1.05vw, 12.5px)/1.3 var(--f-mono); letter-spacing: .02em; background: #fff; color: #111; border: 2px solid #111; rotate: -2deg; transition: transform .2s, background .2s; }
.wp.k1 .pt { background: var(--yel); rotate: 1.6deg; left: auto; right: -8px; } .wp.k2 .pt { background: #111; color: #fff; rotate: -1deg; }
.wp.k3 .pt { font-family: var(--f-type); font-weight: 400; border: 0; box-shadow: 2px 3px 0 rgba(0, 0, 0, .3); rotate: 2deg; } .wp.k4 .pt { background: var(--red); color: #fff; border-color: #111; left: auto; right: -6px; rotate: -1.4deg; }
.wp:hover, .wp:focus-visible { z-index: 5; outline: none; }
.wp:hover .pf, .wp:focus-visible .pf { box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 14px 18px 0 rgba(0, 0, 0, .88); }
.wp.in:hover, .wp.in:focus-visible { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.07) translateZ(30px); transition-duration: .18s; transition-delay: 0s; }
.wp:hover .pt { transform: scale(1.06) rotate(-2deg); }
.wp .pf::after { content: 'TAP TO ZOOM ⤢'; position: absolute; right: 8px; top: 8px; font: 700 9px/1 var(--f-mono); letter-spacing: .1em; background: #111; color: #fff; padding: 5px 6px; opacity: 0; transition: opacity .2s; }
.wp:hover .pf::after { opacity: 1; }
@media (max-width: 560px) { .wk-wall { grid-template-columns: 1fr 1fr; gap: 34px 16px; } }

/* プロジェクト */
.pj-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3.4vw, 44px); }
.pj { position: relative; display: block; text-decoration: none; color: #111; background: var(--pcard); border: 3px solid #111; box-shadow: 8px 8px 0 #111; opacity: 0; transform: translateY(50px) rotate(-2deg); transition: transform .6s cubic-bezier(.2, 1.3, .4, 1) var(--d, 0ms), opacity .4s var(--d, 0ms), box-shadow .2s; }
.pj.in { opacity: 1; transform: none; }
.pj.is-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.pj-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #222; border-bottom: 3px solid #111; }
.pj.is-feature .pj-img { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 3px solid #111; }
.pj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pj-body { display: block; padding: clamp(16px, 2.4vw, 30px); }
.pj-body i { display: inline-block; font: 700 11px/1 var(--f-mono); font-style: normal; background: #111; color: #fff; padding: 4px 6px; margin-bottom: 12px; }
.pj-body b { display: block; font: 900 clamp(18px, 2.2vw, 28px)/1.45 var(--f-jp); }
.pj.is-feature .pj-body b { font: 400 clamp(40px, 6vw, 84px)/.92 var(--f-anton); letter-spacing: .01em; }
.pj-body em { display: block; margin-top: 12px; font: 700 14px/1.8 var(--f-jp); font-style: normal; }
.pj-open { display: inline-block; margin-top: 18px; font: 400 16px/1 var(--f-anton); letter-spacing: .1em; padding: 8px 11px 6px; background: var(--red); color: #fff; }
.pj:not(.is-locked):hover { box-shadow: 14px 14px 0 #111; transform: translate(-3px, -3px) rotate(-.6deg); transition-duration: .18s; transition-delay: 0s; }
.pj:not(.is-locked):hover .pj-img img { transform: scale(1.05); }
.pj:not(.is-locked):hover .pj-open { background: #111; }
.pj.is-locked { cursor: default; }
.is-broken { display: none !important; }
@media (max-width: 760px) { .pj-list { grid-template-columns: 1fr; } .pj.is-feature { display: block; } .pj.is-feature .pj-img { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 3px solid #111; } }

/* ---------- 03 WRITINGS ---------- */
.wr-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(30px, 4vw, 54px); }
.wr { position: relative; display: block; text-decoration: none; color: #111; background: var(--pcard); padding: 14px 14px 20px; rotate: var(--r); box-shadow: 9px 11px 0 rgba(0, 0, 0, .85); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s; }
.wr:hover { transform: rotate(calc(var(--r) * -1)) scale(1.03); box-shadow: 15px 18px 0 rgba(0, 0, 0, .85); }
.wr-pin { position: absolute; left: 50%; top: -14px; width: 26px; height: 26px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a80, #d92a26 55%, #7d0f0c); box-shadow: 2px 4px 4px rgba(0, 0, 0, .4); z-index: 2; }
.wr-img { display: block; aspect-ratio: 1.91; overflow: hidden; background: #ddd; margin-bottom: 14px; }
.wr-img img { width: 100%; height: 100%; object-fit: cover; }
.wr-body i { font: 700 11px/1 var(--f-mono); font-style: normal; background: #111; color: #fff; padding: 4px 6px; }
.wr-body b { display: block; margin: 12px 0 10px; font: 900 clamp(18px, 2vw, 23px)/1.55 var(--f-jp); }
.wr-body em { display: block; font: 500 13.5px/1.9 var(--f-jp); font-style: normal; opacity: .85; }
.wr-go { display: inline-block; margin-top: 14px; font: 900 13px/1 var(--f-jp); background: var(--yel); padding: 8px 10px; border: 2px solid #111; }
.wr-more { margin: 40px 0 0; }
.wr-more a { font: 900 14px/1 var(--f-jp); color: #111; background: #fff; padding: 11px 14px; text-decoration: none; border: 2.5px solid #111; box-shadow: 4px 4px 0 #111; display: inline-block; rotate: -1deg; }

/* ---------- 04 ACTIVITIES ---------- */
.ac-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 28px); }
.ac-list li { rotate: var(--r); }
.ac { position: relative; display: grid; grid-template-columns: 118px 190px 1fr; gap: clamp(12px, 2vw, 26px); align-items: start; text-decoration: none; color: #111; background: var(--pcard); border: 3px solid #111; box-shadow: 6px 6px 0 #111; padding: 14px; transition: transform .18s, box-shadow .18s; }
a.ac:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 #111; }
.ac-date { font: 400 clamp(20px, 2.4vw, 28px)/1 var(--f-anton); letter-spacing: .03em; background: var(--yel); padding: 7px 8px 5px; text-align: center; rotate: -3deg; align-self: start; box-shadow: 3px 3px 0 #111; }
.ac-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; border: 2px solid #111; }
.ac-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-img.is-broken + .ac-body, .ac-date + .ac-body { grid-column: 2 / -1; }
.ac-body b { display: block; font: 900 clamp(15px, 1.6vw, 19px)/1.6 var(--f-jp); padding-right: 22px; }
.ac-body em { display: block; margin-top: 6px; font: 500 13px/1.85 var(--f-jp); font-style: normal; opacity: .86; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ac-tags i { font: 700 10.5px/1 var(--f-jp); font-style: normal; border: 1.5px solid #111; padding: 4px 6px; border-radius: 20px; }
.ac-go { position: absolute; right: 12px; top: 10px; font: 700 18px/1 var(--f-mono); }
@media (max-width: 700px) { .ac { grid-template-columns: 84px 1fr; } .ac-img { grid-column: 1 / -1; grid-row: 2; } .ac-body { grid-column: 2; grid-row: 1; } .ac-img + .ac-body { grid-column: 2; } .ac-date { font-size: 17px; } }

/* ---------- 05 PRESS ---------- */
.pr-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3.4vw, 46px); align-items: start; }
.pr { position: relative; display: flex; flex-direction: column; text-decoration: none; color: #111; background: var(--pcard); border: 3px solid #111; box-shadow: 8px 8px 0 #111; rotate: var(--r); transition: transform .18s cubic-bezier(.3, 1.5, .5, 1), box-shadow .18s; }
.pr:hover { transform: translate(-3px, -4px) rotate(calc(var(--r) * -1)); box-shadow: 13px 14px 0 #111; }
.pr-img { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #ccc; border-bottom: 3px solid #111; }
.pr-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pr:hover .pr-img img { transform: scale(1.05); }
.pr-body { display: block; padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) clamp(18px, 2.2vw, 26px); }
.pr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: calc(-1 * clamp(30px, 3.4vw, 40px)) 0 14px; position: relative; }
.pr-img.is-broken + .pr-body .pr-meta, .pr > .pr-body:first-child .pr-meta { margin-top: 0; }
.pr-date { font: 400 clamp(19px, 2vw, 25px)/1 var(--f-anton); font-style: normal; letter-spacing: .04em; background: var(--yel); color: #111; padding: 7px 9px 5px; rotate: -3deg; box-shadow: 3px 3px 0 #111; border: 2px solid #111; }
.pr-src { font: 700 10.5px/1.4 var(--f-mono); font-style: normal; letter-spacing: .03em; background: #111; color: #fff; padding: 4px 7px; margin-top: 12px; }
.pr-body b { display: block; font: 900 clamp(16px, 1.55vw, 20px)/1.6 var(--f-jp); }
.pr-body em { display: block; margin-top: 8px; font: 500 13px/1.85 var(--f-jp); font-style: normal; opacity: .86; }
.pr-go { display: inline-block; margin-top: 14px; font: 900 13px/1 var(--f-jp); background: var(--yel); padding: 8px 10px; border: 2px solid #111; transition: background .16s, color .16s; }
.pr:hover .pr-go { background: #111; color: #fff; }
/* いちばん新しい掲載は横長で大きく。2列で並べ、余った最後の1枚も横長に */
.pr-list { grid-template-columns: repeat(2, 1fr); }
.pr.is-feature, .pr:last-child:nth-child(even) { grid-column: 1 / -1; }
.pr.is-feature .pr-body b { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.45; }
.pr.is-feature .pr-body em { font-size: 14.5px; }
@media (min-width: 640px) {
  .pr.is-feature, .pr:last-child:nth-child(even) { flex-direction: row; align-items: stretch; }
  .pr.is-feature .pr-img, .pr:last-child:nth-child(even) .pr-img { flex: 0 0 56%; aspect-ratio: 16 / 10; border-bottom: 0; border-right: 3px solid #111; }
  .pr:last-child:nth-child(even) .pr-img { flex-basis: 44%; }
  .pr.is-feature .pr-body, .pr:last-child:nth-child(even) .pr-body { align-self: center; padding: clamp(20px, 3vw, 40px); }
  .pr.is-feature .pr-meta, .pr:last-child:nth-child(even) .pr-meta { margin-top: 0; }
}
@media (max-width: 639px) { .pr-list { grid-template-columns: 1fr; } }

/* ---------- 06 CONTACT ---------- */
.ct { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 54px); align-items: start; }
.ct-form, .ct-side { background: var(--pcard); border: 3px solid #111; box-shadow: 8px 8px 0 #111; padding: clamp(18px, 3vw, 34px); }
.ct-form { rotate: -.6deg; } .ct-side { rotate: 1.2deg; }
.ct label { display: block; font: 900 12px/1 var(--f-jp); letter-spacing: .08em; margin-bottom: 16px; }
.ct input, .ct select, .ct textarea { display: block; width: 100%; margin-top: 7px; font: 500 16px/1.5 var(--f-jp); color: #111; background: #fff; border: 2.5px solid #111; border-radius: 0; padding: 10px 11px; appearance: none; -webkit-appearance: none; }
.ct select { background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.ct input:focus, .ct select:focus, .ct textarea:focus { outline: none; background: #fffbe0; box-shadow: 4px 4px 0 var(--red); }
.ct .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-send { font: 400 22px/1 var(--f-anton); letter-spacing: .1em; padding: 14px 20px 11px; background: var(--red); color: #fff; border: 3px solid #111; box-shadow: 5px 5px 0 #111; transition: transform .16s, background .16s; }
.ct-send:hover { transform: translate(-2px, -2px) rotate(-1.5deg); background: #111; }
.ct-send:disabled { opacity: .7; }
.ct-note { margin: 16px 0 0; font: 500 12.5px/1.8 var(--f-jp); }
.ct-side h3 { margin: 0 0 16px; font: 900 20px/1 var(--f-jp); }
.ct-sns { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ct-sns li { rotate: var(--r); }
.ct-sns a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: #111; background: var(--yel); border: 2.5px solid #111; box-shadow: 4px 4px 0 #111; padding: 12px 14px 9px; font: 400 26px/1 var(--f-anton); letter-spacing: .06em; transition: transform .16s, background .16s; }
.ct-sns a:hover { transform: translate(-2px, -2px) scale(1.03); background: #fff; }
@media (max-width: 760px) { .ct { grid-template-columns: 1fr; } }

/* ---------- 作品の詳細：作品ごとの色紙の上に、文章の紙と写真を貼る ---------- */
#detail {
  position: fixed; inset: 0; z-index: 95; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  --dc: #d92a26; background-color: var(--dc); color: #fff;
  visibility: hidden; opacity: 0; transform: translateY(30px); transition: opacity .3s, transform .4s cubic-bezier(.2, 1, .3, 1), visibility 0s .4s;
}
#detail.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
#detail-inner { max-width: 1120px; margin: 0 auto; padding: clamp(84px, 11vh, 120px) clamp(18px, 4vw, 48px) 120px; }
#detail-close, #lb-close { position: fixed; right: max(16px, env(safe-area-inset-right)); top: 14px; z-index: 3; width: 50px; height: 50px; background: #111; color: #fff; font: 400 30px/1 var(--f-anton); border: 2.5px solid #111; box-shadow: 4px 4px 0 var(--red); rotate: 3deg; transition: transform .18s; }
#detail-close { background: var(--yel); color: #111; box-shadow: 4px 4px 0 #111; }
#detail-close:hover, #lb-close:hover { transform: rotate(-8deg) scale(1.1); }
#detail:not(.open) #detail-close { display: none; }
.dt-kick { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.dt-tag { font: 400 15px/1 var(--f-anton); letter-spacing: .14em; background: #111; color: #fff; padding: 6px 9px 5px; rotate: -3deg; }
.dt-date { font: 400 15px/1 var(--f-anton); letter-spacing: .06em; background: var(--yel); color: #111; padding: 6px 9px 5px; rotate: 2deg; border: 2px solid #111; }
.dt-head h2 { margin: 0; font: 900 clamp(26px, 4.4vw, 54px)/1.4 var(--f-jp); color: #fff; text-shadow: 4px 4px 0 #111; letter-spacing: .02em; }
.dt-head h2.is-latin { font: 400 clamp(56px, 10vw, 150px)/.9 var(--f-anton); letter-spacing: .005em; text-shadow: 6px 6px 0 #111; text-transform: uppercase; }
.dt-lead { margin: 22px 0 0; }
.dt-lead span { display: inline; font: 900 clamp(15px, 1.8vw, 21px)/2.1 var(--f-jp); background: #111; color: #fff; padding: 5px 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dt-film { position: relative; margin: clamp(30px, 4vw, 46px) 0 0; aspect-ratio: 16 / 9; border: 3px solid #111; box-shadow: 10px 10px 0 #111; background: #000; rotate: -.5deg; }
.dt-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dt-paper { position: relative; margin: clamp(40px, 5vw, 60px) 0 0; max-width: 52em; background: #fffdf6; color: #111; border: 3px solid #111; box-shadow: 10px 10px 0 #111; padding: clamp(24px, 4vw, 52px) clamp(20px, 4vw, 54px) clamp(10px, 2vw, 24px); rotate: .5deg; }
.dt-paper .tape { left: 18%; rotate: -5deg; }
.dt-text p { margin: 0 0 1.6em; font: 500 clamp(15px, 1.35vw, 17px)/2.1 var(--f-jp); }
.dt-credits { margin: 6px 0 22px; border-top: 3px solid #111; }
.dt-credits div { display: grid; grid-template-columns: 7em 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #111; }
.dt-credits dt { font: 900 12px/1.7 var(--f-jp); color: var(--dc); }
.dt-credits dd { margin: 0; font: 500 13.5px/1.8 var(--f-jp); }
.dt-imgs { margin: clamp(50px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 3.4vw, 46px) clamp(18px, 2.8vw, 36px); align-items: start; }
.dt-img { position: relative; margin: 0; background: #fff; padding: 9px 9px 9px; box-shadow: 8px 9px 0 #111; rotate: var(--r); }
.dt-img::before { content: ''; position: absolute; left: 50%; top: -12px; width: 84px; height: 24px; translate: -50% 0; rotate: -4deg; background: rgba(242, 230, 176, .85); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); z-index: 2; }
.dt-img.k1::before { left: 24%; rotate: 6deg; } .dt-img.k2::before { left: 74%; rotate: -7deg; background: rgba(248, 213, 23, .85); } .dt-img.k3::before { rotate: 3deg; background: rgba(255, 255, 255, .7); }
.dt-img.s-full { grid-column: 1 / -1; }
.dt-img img { width: 100%; height: auto; }
.dt-end { margin: clamp(54px, 7vw, 90px) 0 0; }
.dt-back { font: 400 22px/1 var(--f-anton); letter-spacing: .08em; background: var(--yel); color: #111; border: 3px solid #111; padding: 13px 18px 10px; box-shadow: 6px 6px 0 #111; rotate: -1.5deg; transition: transform .16s; }
.dt-back:hover { transform: rotate(2deg) scale(1.06); }
@media (max-width: 600px) { .dt-imgs { grid-template-columns: 1fr; } #detail-inner { padding-top: 84px; } .dt-paper { rotate: 0deg; } }

/* ---------- ポスターの拡大 ---------- */
#lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; background: #0d0c0b; --c: #222; }
#lightbox::before { content: ''; position: absolute; inset: 0; background: var(--c); opacity: .42; transition: background .4s; }
#lightbox.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.lb-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 18px 18px 6px; overflow: auto; -webkit-overflow-scrolling: touch; }
#lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 0 0 6px #fff, 14px 18px 0 6px rgba(0, 0, 0, .7); cursor: zoom-in; transform: scale(.9) rotate(-3deg); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.3, .4, 1), opacity .25s; }
#lightbox.open #lb-img { transform: none; opacity: 1; }
#lightbox.zoom .lb-stage { display: block; padding: 0; }
#lightbox.zoom #lb-img { max-width: none; max-height: none; width: max(100%, min(1500px, 220vw)); cursor: zoom-out; box-shadow: none; transition: none; }
.lb-bar { position: relative; flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); }
#lb-cap { margin: 0; display: flex; align-items: center; gap: 9px; min-width: 0; background: #fff; color: #111; border: 2.5px solid #111; box-shadow: 4px 4px 0 #111; padding: 8px 12px 7px; rotate: -1deg; }
#lb-num { flex: none; font: 700 9px/1 var(--f-mono); font-style: normal; letter-spacing: .12em; background: #111; color: #fff; padding: 4px 5px; }
#lb-title { font: 700 clamp(11px, 1.5vw, 15px)/1.3 var(--f-mono); overflow: hidden; text-overflow: ellipsis; }
#lb-prev, #lb-next { flex: none; width: 48px; height: 48px; background: var(--yel); color: #111; border: 2.5px solid #111; box-shadow: 4px 4px 0 #111; font: 700 22px/1 var(--f-mono); transition: transform .16s; }
#lb-prev:hover { transform: translateX(-4px) rotate(-6deg); } #lb-next:hover { transform: translateX(4px) rotate(6deg); }
#lightbox:not(.open) #lb-close { display: none; }
