/* 作品の詳細ページ（制作の流れ）共通。案A4と同じ配色・書体 */
:root { --sign:#F7D348; --ink:#1d1d19; --night:#101416; --chalk:#FFFDF4; --line:#ffffff24; --muted:#b9b5a7; color-scheme:dark; }
* { box-sizing:border-box; margin:0; }
body { background:var(--night); color:var(--chalk); font-family:"Zen Kaku Gothic New","Yu Gothic",sans-serif; line-height:1.8; -webkit-font-smoothing:antialiased; }
a { color:inherit; }
img, video { display:block; max-width:100%; }
.wrap { width:min(1160px, 100% - 40px); margin-inline:auto; }

.sign { position:sticky; top:0; z-index:5; background:var(--sign); color:var(--ink); border-bottom:3px solid var(--ink); }
.sign .bar { display:flex; align-items:center; justify-content:space-between; height:64px; padding-inline:clamp(20px, 6vw, 120px); }
.brand { display:flex; align-items:center; gap:.6rem; text-decoration:none; }
.brand img { width:42px; height:42px; border-radius:6px; }
.brand b { font-weight:900; font-size:1.35rem; }
.sign nav { display:flex; align-items:center; gap:1.4rem; font-weight:700; font-size:.92rem; }
.sign nav a { text-decoration:none; }
.line-btn { background:var(--ink); color:#FFF8CE; padding:.6rem 1.1rem; text-decoration:none; font-weight:900; }
@media (max-width:720px){ .sign nav a:not(.line-btn){ display:none; } .sign .bar{ height:58px; } .brand b{ font-size:1.15rem; } }

/* 冒頭 */
.head { padding:3.4rem 0 2.6rem; border-bottom:1px solid var(--line); }
.crumb { font-size:.86rem; color:var(--muted); }
.crumb a { text-decoration:none; border-bottom:1px solid #fff4; }
.tag { display:inline-block; margin-top:1.4rem; background:var(--sign); color:var(--ink); font-weight:900; font-size:.95rem; padding:.2rem .7rem; border:2px solid var(--ink); box-shadow:4px 4px 0 #000; transform:rotate(-2deg); }
.head h1 { margin-top:1rem; font-weight:900; font-size:clamp(2rem,4.6vw,3.4rem); line-height:1.3; }
.head .lead { margin-top:1rem; max-width:40em; color:#e9e6da; font-size:1.05rem; }
.film { margin-top:2.2rem; background:#000; border:1px solid var(--line); }
.film video { width:100%; aspect-ratio:16/9; object-fit:contain; background:#000; }
.facts { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:1px; margin-top:2rem; background:var(--line); border:1px solid var(--line); }
.facts div { background:var(--night); padding:1.1rem 1.2rem; }
.facts b { display:block; font-weight:900; font-size:clamp(1.5rem,3vw,2.1rem); line-height:1.2; color:var(--sign); font-variant-numeric:tabular-nums; }
.facts span { display:block; margin-top:.35rem; font-size:.84rem; color:var(--muted); line-height:1.5; }
@media (max-width:760px){ .facts { grid-template-columns:repeat(2, minmax(0,1fr)); } }

/* 制作の流れ */
.flow { padding:3.4rem 0 1rem; }
.flow > h2, .ask > h2 { font-weight:900; font-size:clamp(1.4rem,2.6vw,1.9rem); }
.flow > p.note { margin-top:.4rem; color:var(--muted); font-size:.92rem; }
.steps { list-style:none; padding:0; margin-top:2rem; counter-reset:step; }
.step { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:2.4rem; align-items:center; padding:2.4rem 0; border-top:1px solid var(--line); }
.step:nth-child(even) .pic { order:-1; }
.step .num { font-weight:900; font-size:.9rem; letter-spacing:.12em; color:var(--sign); }
.step h3 { margin-top:.3rem; font-weight:900; font-size:clamp(1.25rem,2.2vw,1.6rem); line-height:1.45; }
.step p { margin-top:.8rem; color:#e9e6da; }
.who { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1rem; }
.who span { font-size:.8rem; font-weight:700; padding:.15rem .55rem; border:1px solid #fff5; color:#e9e6da; }
.who span.shop { border-color:var(--sign); color:var(--sign); }
.pic { background:#0b0e10; border:1px solid var(--line); }
.pic img { width:100%; height:auto; }
.pic figcaption { padding:.55rem .8rem; font-size:.8rem; color:var(--muted); border-top:1px solid var(--line); }
.pic.tall img { max-height:520px; width:auto; margin-inline:auto; }
.pic.text { padding:1.6rem; display:grid; gap:1rem; }
.pic.text .big { font-weight:900; font-size:clamp(2rem,4vw,3rem); line-height:1.1; color:var(--sign); }
.pic.text .big small { font-size:.4em; color:var(--muted); font-weight:700; margin-left:.4em; }
@media (max-width:820px){ .step { grid-template-columns:1fr; gap:1.2rem; } .step:nth-child(even) .pic { order:0; } }

/* お店にお願いすること・相談 */
.ask { padding:3rem 0 4rem; border-top:1px solid var(--line); margin-top:2rem; }
.ask ul { margin-top:1.2rem; padding-left:1.2em; display:grid; gap:.4rem; color:#e9e6da; }
.cta { display:flex; flex-wrap:wrap; align-items:center; gap:1rem 1.6rem; margin-top:2.2rem; padding:1.6rem; background:var(--sign); color:var(--ink); border:3px solid var(--ink); box-shadow:6px 6px 0 #000; }
.cta p { font-weight:900; font-size:1.15rem; flex:1 1 16em; }
.cta .line-btn { font-size:1.05rem; padding:.8rem 1.4rem; }
.back { display:inline-block; margin-top:2rem; color:var(--muted); font-size:.92rem; }

/* 2枚を縦に重ねる図・YouTube・縦動画 */
.pic.duo img + img { border-top:1px solid var(--line); }
.pic.duo img.sheet { max-height:420px; width:auto; margin-inline:auto; }
.pic .yt { position:relative; aspect-ratio:16/9; background:#000; }
.pic .yt iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.pic.vert video { aspect-ratio:9/16; max-height:560px; width:auto; margin-inline:auto; background:#000; }

/* 図はすべて16:9の横にそろえる（2026-11-24） */
.pic img { aspect-ratio:16/9; width:100%; height:auto; object-fit:cover; }
.pic.vert { aspect-ratio:16/9; display:flex; justify-content:center; background:#000; }
.pic.vert video { height:100%; max-height:none; width:auto; aspect-ratio:9/16; }

/* 冒頭の本編：横向きのスマホに入れて見せる（フレームは案A4と同じ phone-black-land） */
.film.phone { background:none; border:0; width:min(100%, 980px); margin-inline:auto; }
.device { position:relative; display:block; aspect-ratio:var(--ar); filter:drop-shadow(0 24px 40px #000a); }
.device video { position:absolute; left:var(--l); top:var(--t); width:var(--w); height:var(--h); object-fit:contain; border-radius:var(--rx) / var(--ry); background:#000; aspect-ratio:auto; }
.device .frame { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.device.black-land { --ar:1458/732; --l:1.65%; --t:3.96%; --w:96.57%; --h:92.76%; --rx:5.3%; --ry:11%; }
/* スマホでは画面の横幅いっぱいに */
@media (max-width:720px){ .film.phone { width:100vw; max-width:none; margin-left:calc(50% - 50vw); } }

/* ほかの作品の作り方 */
.more { padding:2.4rem 0 0; border-top:1px solid var(--line); margin-top:2rem; }
.more h2 { font-weight:900; font-size:clamp(1.2rem,2.2vw,1.5rem); }
.next { display:grid; grid-template-columns:minmax(0,320px) minmax(0,1fr); gap:1.4rem; align-items:center; margin-top:1.2rem; text-decoration:none; }
.next img { width:100%; aspect-ratio:16/9; object-fit:cover; border:1px solid var(--line); transition:transform .25s; }
.next:hover img { transform:translateY(-4px); }
.next b { display:block; font-size:1.15rem; line-height:1.5; }
.next small { display:block; margin-top:.4rem; color:var(--sign); font-weight:700; }
@media (max-width:640px){ .next { grid-template-columns:1fr; gap:.8rem; } }
.ask { margin-top:0; }
