/* 6-4 撮る（撮影スタジオ・ベタ焼き） */
.studio { padding: 0 16px; --W: min(100vw, var(--col)); }
.st-head { padding: 20px 0 14px; border-bottom: 3px solid var(--ink); position: relative; margin-bottom: 14px; }
.st-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; border-bottom: 1px solid var(--ink); }
.st-k { margin: 0; font-size: 10.5px; letter-spacing: .3em; }
.st-title { margin: 8px 0 10px; font: 800 calc(var(--W) * .095)/1.22 var(--f-mincho); }
.st-lead { margin: 0; font-size: 14.5px; }
/* 大見出しのすぐ下の、普通の言葉 1 行 */
.st-sub { margin: -2px 0 2px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.st-cap { margin: 0 0 6px; font-size: 12px; color: var(--ink-2); }
.st-cap .en { font-style: italic; font-size: 11px; letter-spacing: .1em; }

/* 床（写真が無い間は、紙に細い板目の罫線） */
.floor { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.floor-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.floor-grain {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), color-mix(in srgb, var(--ink) 22%, transparent) calc(25% - 1px) 25%),
    repeating-linear-gradient(90deg, transparent 0 7px, color-mix(in srgb, var(--ink) 4%, transparent) 7px 8px, transparent 8px 19px, color-mix(in srgb, var(--ink) 3%, transparent) 19px 20px);
}
.fl-g { position: absolute; transform: rotate(var(--r)); display: flex; }
.fl-g .cut { width: 100%; height: 100%; display: flex; }
.fl-g img { width: 100%; height: 100%; object-fit: contain; }
/* 床に置いて真上から撮った見え方：光は左から → 影は右下へ短く、床に接した濃い縁＋ごく薄い広がり */
.floor .fl-g .cut img { filter: drop-shadow(2px 3px 1.5px rgba(46, 30, 12, .30)) drop-shadow(5px 7px 9px rgba(46, 30, 12, .16)); }
.floor-linen .fl-g .cut img { filter: drop-shadow(2px 3px 2px rgba(70, 60, 45, .26)) drop-shadow(6px 8px 12px rgba(70, 60, 45, .14)); }
html[data-theme="dark"] .floor .fl-g .cut img { filter: drop-shadow(2px 3px 1.5px rgba(0, 0, 0, .35)) drop-shadow(5px 7px 9px rgba(0, 0, 0, .2)) var(--photo-filter); }
.st-capline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-capline .st-cap { margin: 0; }
.st-floor { gap: 0 14px; flex-wrap: nowrap; }
.st-floor button { font-size: 13px; }
.fl-g .ph { aspect-ratio: auto; height: 100%; }
.studio .note { margin: 6px 0 0; }

.st-done { padding: 10px 0 4px; }
.st-done-h { font-size: 26px; transform: rotate(-3deg); margin: 0 0 6px; }
.st-done-act { display: grid; gap: 10px; margin-top: 12px; }
.st-done-act .btn-main { text-decoration: none; }

.st-other { margin-top: 30px; }
.ways { list-style: none; counter-reset: w; margin: 6px 0 0; padding: 0; }
.ways li { counter-increment: w; display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; gap: 0 6px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.ways li::before { content: counter(w, decimal-leading-zero); grid-row: 1 / 3; font: 400 italic 13px var(--f-bodoni); color: var(--ink-2); }
.ways b { font-weight: 800; font-size: 16px; }
.ways span { font-size: 13px; color: var(--ink-2); }

/* ============ わが家版：まとめ撮り（第 2 段の前半。M2-PLAN） ============ */
/* 赤（--red）は「ペンで書いた物」だけ：ベタ焼きの枠・番号・「？」・「2 枚かも」・ボツの斜線。ボタン・見出し・進み具合の棒は墨 */
.st-plain { margin: 8px 0 0; padding: 4px 0 4px 10px; border-left: 1px solid var(--ink-2); font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.st-before .rule-head { margin-top: 2px; }
.st-who { margin: 4px 0 2px; }
.st-tips { list-style: none; margin: 14px 0 16px; padding: 0; border-top: 1px solid var(--ink); }
.st-tips li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); font: 500 15px/1.5 var(--f-mincho); }
.st-tips .num { font-style: italic; font-size: 15px; color: var(--ink-2); }
.st-example .floor { aspect-ratio: 4 / 3; }
.st-example .fl-g { transform: rotate(var(--r)) scale(.92); }
.st-example .floor { --ex: 1; }
.st-take { width: 100%; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; touch-action: manipulation; text-decoration: none; }
.st-take:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.st-left { margin-top: 10px !important; }
.st-left b { font-size: 15px; color: var(--ink); }

/* 現像中：紙の白から像がゆっくり浮かぶ（現像液の中の見立て。暗室の赤い光は使わない） */
.st-develop .rule-head { margin-bottom: 10px; }
.dv-tray { position: relative; width: 100%; background: #F7F4EC; border: 1px solid var(--ink); padding: 10px; box-sizing: border-box; overflow: hidden; }
.dv-tray::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 40%); pointer-events: none; }
.dv-img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: grayscale(1) contrast(.25) brightness(1.75); animation: develop 9s cubic-bezier(.3,.1,.3,1) .2s forwards; }
@keyframes develop { 0% { opacity: 0; filter: grayscale(1) contrast(.25) brightness(1.75); } 35% { opacity: .55; filter: grayscale(.9) contrast(.45) brightness(1.45); } 100% { opacity: 1; filter: grayscale(0) contrast(1) brightness(1); } }
.dv-line { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 0; }
.dv-line .mincho { font-size: 17px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .dv-img { animation: none; opacity: .8; filter: grayscale(.6) contrast(.7) brightness(1.15); } }

/* ベタ焼き：写真の上に赤ペン（色鉛筆）の枠と番号 */
.ct-count { display: flex; gap: 16px; margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.ct-count b { font-size: 18px; color: var(--ink); }
.ct-photo { position: relative; width: 100%; margin-top: 12px; background: #141311; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ct-img { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.ct-photo.adding { touch-action: none; cursor: crosshair; outline: 1px dashed var(--ink); outline-offset: 3px; }
.fr { position: absolute; box-sizing: border-box; border: 2px solid var(--red); touch-action: manipulation; cursor: pointer; }
/* 色鉛筆の 2 度書き：少しずれた細い線をもう 1 本 */
.fr::before { content: ""; position: absolute; inset: -4px -3px -3px -4px; border: 1px solid var(--red); opacity: .45; pointer-events: none; }
.fr.on { border-width: 3px; touch-action: none; cursor: move; z-index: 3; }
.fr.on::before { border-style: dashed; opacity: .7; }
.fr.is-drop { border-style: dashed; }
.fr.is-drop::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, #141311 45%, transparent); pointer-events: none; }
.fr.is-sent { border-color: var(--ink); opacity: .8; }
html[data-theme="dark"] .fr.is-sent { border-color: #EFE9DC; }
.fr-n, .fr-q, .fr-two, .fr-botsu { position: absolute; background: color-mix(in srgb, #F4EFE6 88%, transparent); color: #D43A2F; padding: 0 4px; line-height: 1.2; pointer-events: none; }
.fr-n { left: -2px; top: -2px; font-size: 20px; transform: translate(-25%, -50%) rotate(-4deg); }
.fr-q { right: -2px; top: -2px; font-size: 26px; transform: translate(30%, -45%) rotate(6deg); }
.fr-two { left: 4px; bottom: 4px; font-size: 13px; transform: rotate(-3deg); white-space: nowrap; }
.fr-botsu { right: 4px; bottom: 4px; font-size: 16px; transform: rotate(4deg); }
.fr-slash { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.fr-slash path { fill: none; stroke: #D43A2F; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* 四隅のつまみ：選んだ枠にだけ出す。見た目は角の上の小さい墨の四角、押せる所は 44px を角の外側へ（枠の内側にかかるのは 8px だけ。内側は「動かす」） */
.fr-h { position: absolute; width: 44px; height: 44px; touch-action: none; z-index: 4; }
.fr-h::before { content: ""; position: absolute; width: 14px; height: 14px; background: #F4EFE6; border: 2px solid #1B1A18; box-sizing: border-box; }
.fr-tl { left: -36px; top: -36px; cursor: nwse-resize; } .fr-tl::before { left: 29px; top: 29px; }
.fr-tr { right: -36px; top: -36px; cursor: nesw-resize; } .fr-tr::before { left: 1px; top: 29px; }
.fr-bl { left: -36px; bottom: -36px; cursor: nesw-resize; } .fr-bl::before { left: 29px; top: 1px; }
.fr-br { right: -36px; bottom: -36px; cursor: nwse-resize; } .fr-br::before { left: 1px; top: 1px; }
.fr-new { border: 2px dashed #F4EFE6; outline: 1px solid #1B1A18; pointer-events: none; }
.ct-addhint { margin: 8px 0 0; padding: 6px 10px; background: var(--paper); border: 1px solid var(--ink); font: 500 13px var(--f-gothic); text-align: center; pointer-events: none; }
.ct-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ct-tools .btn-sub { min-height: 44px; padding: 0 14px; font-size: 14px; touch-action: manipulation; }
.ct-tools [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* コマの帯（1 点ずつ。小さな見本は端末で切り出した物） */
.ct-strip { list-style: none; margin: 16px 0 0; padding: 0; border-top: 3px solid var(--ink); }
/* 行の頭をそろえる（品名は 2 行ぶんの高さを取るので、1 行の品と 2 行の品が混ざっても、ボタンの位置がずれない） */
.ct-card { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.ct-card.on { box-shadow: inset 3px 0 0 var(--ink); padding-left: 8px; }
.ct-card.is-drop .ct-body { opacity: .5; }
.ct-thumb { position: relative; width: 76px; height: 76px; padding: 4px; background: #141311; display: flex; align-items: center; justify-content: center; touch-action: manipulation; }
.ct-thumb img { max-width: 100%; max-height: 100%; display: block; }
.ct-no { position: absolute; left: 3px; top: 1px; font-size: 12px; color: #CFC8B8; }
.ct-thumb .fr-slash { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
.ct-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-name { font-size: 15.5px; font-weight: 800; line-height: 1.35; height: calc(15.5px * 1.35 * 2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.ct-botsu { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ct-acts .ct-botsu { padding: 0 2px; }
.ct-botsu small { white-space: nowrap; letter-spacing: 0; font-size: 10px; color: var(--ink-2); font-weight: 400; margin-top: 2px; }
.ct-flagline { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.ct-split { min-height: 44px; font-size: 13.5px; }
.ct-restored { margin: 6px 0 0; }
.ct-restored .hand { font-size: 17px; transform: rotate(-2deg); }
.ct-meta { font-size: 12.5px; color: var(--ink-2); }
.ct-meta .hand { font-size: 15px; }
.ct-flag { font-size: 13.5px; line-height: 1.35; }
.ct-state { font: 400 italic 12px var(--f-bodoni); letter-spacing: .1em; }
.ct-acts { display: flex; flex-direction: column; gap: 6px; }
.ct-acts .btn-sub { min-height: 44px; min-width: 64px; width: 72px; box-sizing: border-box; padding: 0 10px; font-size: 14px; touch-action: manipulation; }
.ct-none { margin: 14px 0 0; font-size: 15px; }
.ct-commit { margin-top: 18px; }
.ct-go { width: 100%; touch-action: manipulation; }
.ct-go[disabled], .ct-go.is-wait { background: transparent; color: var(--ink-2); border: 1px dashed var(--ink-2); }
/* だれの？：赤ペンの 1 行（押すと最初のコマへ）と、まとめて決める行 */
.ct-who { margin: 0 0 4px; }
.ct-jump { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-height: 44px; padding: 4px 0; font-size: 16px; text-align: left; line-height: 1.35; }
.ct-jump-a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
.ct-bulk { margin: 0 0 14px; padding: 4px 0 8px; border-top: 1px solid var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.ct-bulk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 0; }
.ct-bulk-l { font: 800 15px var(--f-mincho); white-space: nowrap; }
.ct-bulk-l .num { font-size: 18px; }
.ct-bulk-p { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-bulk-p .btn-sub { min-height: 44px; min-width: 64px; padding: 0 14px; font-size: 15px; touch-action: manipulation; }
/* もう載っているかも：載せるボタンの上に赤ペンで。右に書き込み「重なりをボツにする」 */
.ct-dupline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; margin: 0 0 8px; }
.ct-dupn { font-size: 15px; white-space: nowrap; }
.ct-dupoff { min-height: 44px; padding: 0 2px; font-size: 15px; white-space: nowrap; text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 5px; text-decoration-thickness: 1px; transform: rotate(-2deg); }
.ct-prog { margin: 0 0 6px; font-size: 14px; }
.ct-prog b { font-size: 18px; }
.ct-bar { height: 8px; border: 1px solid var(--ink); margin-bottom: 12px; }
.ct-bar i { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.ct-err { margin: 0 0 8px; font-size: 15px; }
.ct-redo { margin: 8px 0 0; text-align: center; }
/* 直す誌面のコマ */
.fe-art { position: relative; width: 120px; height: 120px; margin: 0 0 10px; padding: 5px; background: #141311; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.fe-art img { max-width: 100%; max-height: 100%; }
.fe-art .num { position: absolute; left: 4px; top: 2px; color: #CFC8B8; font-size: 13px; }
/* 小さな枠：その所を大きく映して、枠を直す（つまみが外へ出るので、まわりに余白） */
.fe-zoom { position: relative; width: calc(100% - 72px); margin: 36px auto 10px; background: #141311; touch-action: none; user-select: none; -webkit-user-select: none; }
.fe-zclip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fe-zclip img { position: absolute; max-width: none; max-height: none; pointer-events: none; }
.fe-zoom::after { content: ""; position: absolute; inset: 0; outline: 1px solid var(--ink); pointer-events: none; }
.fe-zoom .fr { cursor: move; }
.fe-zoom-n { margin: 0 0 12px !important; text-align: center; }

/* おことわりの書き足し */
.st-consent .st-notice { margin: 10px 0 14px; }
.st-consent .ob-form { margin-top: 6px; }
.st-consent .btn-main { width: 100%; margin-top: 10px; }
.st-consent .btn-main[disabled] { background: transparent; color: var(--ink-2); border: 1px dashed var(--ink-2); }
html[data-theme="dark"] .ct-thumb, html[data-theme="dark"] .fe-art, html[data-theme="dark"] .pub-strip, html[data-theme="dark"] .ct-photo { outline: 1px solid #4A463F; }

/* 載ったあと */
.st-published .st-done-h { font-size: 26px; }
.pub-strip { list-style: none; margin: 12px 0 0; padding: 8px; background: #141311; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; }
.pub-strip li { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pub-fr { position: relative; aspect-ratio: 1; background: #EEE8DC; display: flex; align-items: center; justify-content: center; padding: 3px; box-sizing: border-box; }
.pub-fr img { max-width: 100%; max-height: 100%; }
.pub-fr .num { position: absolute; left: 3px; top: 0; font-size: 11px; color: #5C574E; }
/* 品名は 2 行まで（入りきらなければ「…」）。行の高さはそろえる */
.pub-n { font-size: 10.5px; line-height: 1.3; height: calc(10.5px * 1.3 * 2); color: #E4DDCE; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.st-undo { margin: 4px 0 0; text-align: center; }

/* うまくいかないとき：撮った写真（左）と、欄外の赤ペンの書き込み（右）を 1 枚の校正紙に */
.st-fail .rule-head { margin-bottom: 12px; }
.sf-spread { display: grid; grid-template-columns: 58% 1fr; gap: 0 14px; align-items: start; }
.sf-spread.no-photo { grid-template-columns: 1fr; }
.sf-photo { position: relative; width: 100%; background: #141311; }
.sf-photo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: grayscale(.5) contrast(.8); }
.sf-marks { display: flex; flex-direction: column; gap: 14px; padding-top: 2px; min-width: 0; }
.no-photo .sf-marks { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.sf-big { font-size: 40px; line-height: 1; transform: rotate(-6deg); transform-origin: left; }
/* 書き込みは、写真の方へ引いた細い線から（線も赤ペン） */
.sf-note { position: relative; font-size: 16px; line-height: 1.35; transform: rotate(var(--r)); transform-origin: left; padding-left: 2px; }
.sf-spread:not(.no-photo) .sf-note::before { content: ""; position: absolute; left: -16px; top: .7em; width: 12px; border-top: 1px solid var(--red); }
.sf-tip { margin: 16px 0 0; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); font-size: 14px; line-height: 1.7; color: var(--ink-2); }
/* 回数切れ：使い切ったフィルム（空のコマの帯）。赤ペンで「使い切り」 */
.sf-film { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 6px; padding: 10px 8px; background: #141311; }
.sf-fr { position: relative; aspect-ratio: 4 / 5; background: #26241F; }
.sf-fr .num { position: absolute; left: 4px; top: 2px; font: 400 11px var(--f-bodoni); color: #8D877A; }
.sf-filmmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); font-size: 38px; padding: 0 10px; background: color-mix(in srgb, #F4EFE6 92%, transparent); color: #D43A2F; white-space: nowrap; }
.sf-act { display: grid; gap: 10px; margin-top: 16px; }
.sf-act .btn-main, .sf-act .btn-sub { width: 100%; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.sf-act .link-arrow { justify-self: center; }

@media (min-width: 768px) {
  .st-home .ct-photo { max-height: 72vh; width: auto; margin-left: auto; margin-right: auto; }
}
.fr.on .fr-n { transform: translate(22px, -62%) rotate(-4deg); } /* 選んだ枠：番号を左上のつまみからずらす */
