/* 6-3 クローゼット（通信販売の古いカタログの頁組み） */
.closet { padding: 0 16px; --W: min(100vw, var(--col)); }
.pg-run { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: 11px; color: var(--ink-2); }
.pg-run .en { font-size: 10px; letter-spacing: .28em; }
.pg-run .num { font-size: 12px; letter-spacing: .08em; }
.cat-head { padding: 8px 0 12px; border-bottom: 3px solid var(--ink); position: relative; }
.cat-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; border-bottom: 1px solid var(--ink); }
.cat-title { margin: 2px 0 4px; font: 800 calc(var(--W) * .11)/1.1 var(--f-mincho); }
.cat-meta { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.cat-meta .num { font-size: 16px; font-weight: 700; color: var(--ink); }
.cat-who { margin-top: 6px; }
.cat-who button { font-size: 16px; }
.cat-kind { border-top: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); gap: 0 14px; }
.cat-kind button { font-size: 13px; }
.cat-lead { margin: 10px 0 8px; font-size: 13.5px; color: var(--ink-2); }

/* 大小のあるマス（1px の墨の罫は隙間で引く） */
.cat-grid { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.cat-grid li { background: var(--paper); position: relative; min-width: 0; }
.cat-grid li.feat { grid-column: span 2; grid-row: span 2; }
.cat-item { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: stretch; padding: 8px 6px 8px 20px; text-align: left; min-height: 176px; }
.cat-item:active { background: var(--paper-2); }
.ci-no { position: absolute; left: 3px; top: 8px; writing-mode: vertical-rl; font: 400 10.5px var(--f-bodoni); letter-spacing: .14em; color: var(--ink-2); }
.ci-art { position: relative; height: 108px; display: flex; align-items: center; justify-content: center; margin: 0 0 6px; }
.feat .ci-art { height: 270px; }
.ci-art > .cut, .ci-art > .sk { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ci-art img { width: 100%; height: 100%; object-fit: contain; }
.ci-art .ph { width: 100%; height: 100%; aspect-ratio: auto; font-size: 9px; }
/* 品名は 2 行まで。入りきらないときは「…」で終える。升の高さは 2 行ぶんでそろえる（字が半分だけ見える状態を作らない） */
.ci-name { font: 500 12px/1.4 var(--f-gothic); height: calc(12px * 1.4 * 2); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.feat .ci-name { font: 800 17px/1.35 var(--f-mincho); height: auto; max-height: calc(17px * 1.35 * 3); -webkit-line-clamp: 3; line-clamp: 3; }
.cat-vacnote { margin: 6px 0 0; }
.ci-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 4px; margin-top: 4px; font-size: 11px; color: var(--ink-2); }
.ci-worn { white-space: nowrap; }
.ci-worn .num { font-size: 15px; color: var(--ink); font-weight: 700; }
.feat .ci-worn .num { font-size: 22px; }
.ci-foot .warmth i { width: 7px; height: 7px; }
.ci-feat { position: absolute; right: 8px; top: 8px; font-size: 11px; color: var(--ink-2); }
.cat-item.is-wash .ci-art .cut { opacity: .45; }
.ci-slash { position: absolute; inset: 6% 8%; width: 84%; height: 88%; overflow: visible; pointer-events: none; }
.ci-slash path { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ci-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); font-size: 17px; background: color-mix(in srgb, var(--paper) 75%, transparent); padding: 0 4px; }
.ci-yest { position: absolute; right: 6px; top: 6px; display: flex; align-items: center; gap: 2px; }
.ci-yest .hand { font-size: 13px; }
.ci-check { width: 20px; height: 17px; overflow: visible; }
.ci-check path { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feat .ci-yest { right: auto; left: 22px; top: 30px; }
.cat-grid li.vacant { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 176px; color: var(--ink-2); font-size: 11px; }
.cat-grid li.vacant .num { font: 400 11px var(--f-bodoni); letter-spacing: .12em; }
.cat-none { padding: 24px 0; color: var(--ink-2); }

.cat-empty { padding: 28px 0 8px; border-top: 1px solid var(--ink); margin-top: 6px; }
.cat-empty .mincho { font-weight: 800; font-size: 19px; margin: 0 0 4px; }
.cat-empty p { margin: 0 0 6px; }

.sizes { margin-top: 26px; }
.size-t { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.size-t th, .size-t td { padding: 9px 4px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); text-align: left; font-weight: 400; vertical-align: baseline; }
.size-t thead th { font: 500 12px var(--f-gothic); color: var(--ink-2); border-bottom: 1px solid var(--ink); background: var(--paper-2); }
.size-t tbody th { font: 800 15px var(--f-mincho); width: 28%; }
.size-t .num { font-size: 17px; }
.size-memo { margin: 8px 0 0; font-size: 21px; transform: rotate(-2deg); transform-origin: left; }
.need-list { list-style: none; margin: 6px 0 0; padding: 0; }
.need-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); font: 500 15px var(--f-mincho); }
.need-n { font-size: 13px; white-space: nowrap; font-family: var(--f-gothic); }
.need-n .num { font-size: 19px; font-weight: 700; }

/* 服のシート */
.cd-art { position: relative; height: 260px; display: flex; justify-content: center; margin: 0 0 12px; }
.cd-art > .cut, .cd-art > .sk { height: 100%; width: 80%; display: flex; justify-content: center; }
.cd-art img { height: 100%; width: 100%; object-fit: contain; }
.cd-wash { position: absolute; right: 6%; top: 8%; font-size: 26px; transform: rotate(-8deg); }
.cd-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.cd-t th, .cd-t td { padding: 8px 2px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); text-align: left; font-weight: 400; }
.cd-t th { width: 34%; color: var(--ink-2); font-size: 12.5px; }
.cd-t tr:first-child th, .cd-t tr:first-child td { border-top: 1px solid var(--ink); }
.cd-act { margin-top: 16px; }
.cd-act button { width: 100%; }
/* わが家版：洗濯中にする（主）と 直す（副）を横に */
.cd-act:has([data-edit]) { display: grid; grid-template-columns: 1fr 7em; gap: 10px; }

/* まとめ撮りのコマ（写真）を、種類の絵と同じ升に収める */
.ci-art > .fcut { height: 92%; }
.feat .ci-art > .fcut { height: 86%; }
.has-frame .cat-item.is-wash .ci-art .fcut { opacity: .5; }
.cd-art.cd-frame > .fcut { height: 100%; }
.cat-add-sub { width: 100%; margin-top: 10px; }
.cd-delroll { margin-top: 0; }
.cat-addline .btn-sub { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.cat-add-main { text-decoration: none; }
