/* 一覧と「次に読む」のカード（2026-10-30 採用。見本 site/wp-content/themes/nichejour-mist/assets/source/list-cards-20261030/cards.css から移した）
   body に nj-lc があるときだけ効く。一覧ページは scripts/build_main_theme.py が、記事ページは views/article.php が読み込む。
   写真なしのカード（nj-nophoto）は functions.php の nj_card_nophoto() が作る。英字ラベルは build_main_theme.py で外す。 */

/* 1. 影：ぼかしのない「ずらした影」をやめ、ずれ＋ぼかしの影だけにする（一覧・次に読む）。 */
.nj-lc a.card{box-shadow:0 1px 2px #080e1080,0 18px 28px -12px #10191da8!important}

/* 2. メーカー名：中点をやめ、間をあけるだけ。入らないときは折り返し、名前を欠けさせない。 */
.nj-lc a.card .maker{flex-wrap:wrap;column-gap:8px;row-gap:0;white-space:normal;overflow:visible}
.nj-lc a.card .maker .mk,.nj-lc a.card .maker .pf{overflow:visible;text-overflow:clip;white-space:nowrap}
.nj-lc a.card .pf::before,.nj-lc a.card .mk+.pf::before{content:none!important}

/* 3. 「次に読む」のスマホ：一覧のカードと同じ幅・同じ文字の大きさにして、写真の切り抜きをそろえる。 */
@media (max-width:760px){
  .nj-lc .nj-next-cards{grid-auto-columns:calc((100vw - 36px - 14px) / 2.1)}
  .nj-lc .nj-next a.card .label{padding:0 10px 8px}
  .nj-lc .nj-next a.card .name{margin:0;font-size:15px;line-height:1.2;min-height:0}
  .nj-lc .nj-next a.card .sub{margin:3px 0 6px}
  .nj-lc .nj-next a.card .facts{margin-top:0;padding-top:4px;font-size:11px}
}

/* 4. 写真なしのカード：写真の場所に、記事の名前を大きな明朝で組む（画像ではなくページの文字）。
   ラベルの名前は画面からは隠し、読み上げには残す。 */
.nj-lc a.card.nj-nophoto .nj-noimg{position:relative;flex:1 1 0;min-height:0;display:flex;align-items:flex-end;padding:64px 14px 14px;background:var(--sunk);overflow:hidden}
.nj-lc a.card.nj-nophoto .nj-noimg-name{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;font:500 22px/1.32 var(--heading,serif);letter-spacing:.02em;color:var(--ink,#1f2a24);text-wrap:balance;line-break:strict;word-break:auto-phrase}
.nj-lc a.card.nj-nophoto .label::before{content:none}
.nj-lc a.card.nj-nophoto .label{border-top:1px solid #1f2e2722;padding-top:8px}
.nj-lc a.card.nj-nophoto .label .name{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;min-height:0}
@media (max-width:760px){.nj-lc a.card.nj-nophoto .nj-noimg{padding:56px 10px 10px}.nj-lc a.card.nj-nophoto .nj-noimg-name{font-size:17px}}
/* 行の一覧の小さな枠：紙の色にmistの印。 */
.nj-lc .nj-noimg-mark{position:relative;display:grid;place-items:center;width:100%;height:100%;background:#dedcd2;border-radius:inherit}
.nj-lc .nj-noimg-mark img{width:22px!important;height:22px!important;opacity:.38;object-fit:contain;filter:none!important}
/* 行の一覧：一つの一覧の記事が全部写真なしなら、写真の列ごとなくす。 */
.nj-lc .list:not(:has(li.entry:not(.nj-nophoto))) li.entry{grid-template-columns:minmax(0,1fr) auto!important}
.nj-lc .list:not(:has(li.entry:not(.nj-nophoto))) li.entry>.thumb{display:none!important}

/* 日本語の改行：行の頭に「ー」や小さい「ァ」などを置かない。カードの説明にも同じ決まり。 */
.nj-lc a.card .sub,.nj-lc a.card .name{line-break:strict;word-break:auto-phrase}
/* 2026-10-31 site review (docs/design/site-review-20261031/): the list pages get the skip link the other pages have,
   and their paper panels the article paper's shadow (one shadow for paper). */
.nj-lc .nj-skip{position:fixed;left:12px;top:-60px;z-index:50;padding:10px 14px;background:var(--paper,var(--paper));color:var(--ink,#26382f);border-radius:5px;box-shadow:0 18px 60px #0d101b66}
.nj-lc .nj-skip:focus{top:12px}
.nj-lc :is(.filterbar,.tools-bar,.hybrid-index){box-shadow:0 18px 60px #0d101b66}

/* Whole-theme review: paper cards are typographic articles, not empty photo slots.
   Keep article next-read sizes and the top's playful cards unchanged. */
body.nj-lc:not(.nj-article) a.card.nj-nophoto{aspect-ratio:auto;min-height:0;align-self:start}
body.nj-lc:not(.nj-article) a.card.nj-nophoto .nj-noimg{flex:none;align-items:flex-start;padding:64px 14px 20px;overflow:visible}
body.nj-lc:not(.nj-article) a.card.nj-nophoto .nj-noimg-name{display:block;-webkit-line-clamp:unset;overflow:visible;font-size:clamp(20px,2vw,28px);line-height:1.45}
.nj-lc time,.nj-lc .count,.nj-lc .filter-count,.nj-lc .row-count{font-family:var(--sans));font-variant-numeric:tabular-nums}

/* Later hover rules must not override the reader's reduced-motion preference. */
@media(prefers-reduced-motion:reduce){.nj-lc a.card{transition:none!important;transform:none!important}}

/* Meta-driven status and availability sit in the text area, never on the photo. */
body.nj-lc a.card .label .nj-next-state,body.nj-lc a.card .label .nj-card-buy{display:block;font-size:11px;line-height:1.7;color:var(--ink-soft);white-space:normal}

/* SWEEP H3: every article shares the approved next-read component. */
body.nj-finish.nj-v2.nj-article.nj-lc { --w-name:16px; --w-sub:12px; --w-maker:11px; }
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.card {
 display:flex;flex-direction:column;align-self:stretch;aspect-ratio:auto;min-height:0;
 transform:none;transition:none;grid-column:auto;
}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card::after { content:none; }
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card>:is(img,.nj-noimg) {
 position:static;inset:auto;flex:none;width:100%;height:auto;aspect-ratio:1;object-fit:cover;
}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card>.nj-noimg {padding:16px;align-items:flex-start;overflow:hidden;}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .nj-noimg-name {font-size:clamp(19px,1.9vw,26px);line-height:1.35;overflow-wrap:anywhere;}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card :is(.topic,.grain,.shade) {display:none;}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .label {
 position:static;flex:1;display:flex;flex-direction:column;align-items:stretch;text-align:left;
 padding:10px 12px;background:var(--paper);border-top:1px solid var(--rule);
}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .maker {font-size:var(--w-maker);justify-content:flex-start;}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .name {
 position:static;width:auto;height:auto;clip:auto;white-space:normal;min-height:0;margin:2px 0 0;
 display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere;
 font-size:var(--w-name);line-height:1.35;color:var(--ink);justify-content:flex-start;
}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .sub {
 min-height:0;margin:4px 0 8px;font-size:var(--w-sub);color:var(--ink-soft);text-align:left;
 display:block;
}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .facts {margin-top:auto;min-height:0;}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card:hover .name {text-decoration:underline;text-underline-offset:.2em;}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards {align-items:stretch;grid-auto-flow:row;grid-auto-columns:auto;}

body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .nj-noimg-mark {display:none;}

body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;overflow:visible;}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .label::before{content:none;}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .label{min-width:0;}
@media(min-width:760px){body.nj-finish.nj-v2.nj-article.nj-lc{--w-name:19px;--w-sub:13px;--w-maker:12px;}}
@media(max-width:759.98px){
 /* next: three row cards in one paper */
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next{width:calc(100% - 24px);margin-inline:auto;padding:0}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards{display:block;overflow:visible;margin:0;padding:4px 16px;background:var(--paper);border-radius:5px;box-shadow:0 18px 60px #0d101b66}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:14px;align-items:start;width:auto;aspect-ratio:auto;min-height:0;padding:14px 0;background:none;box-shadow:none!important;border-radius:0;transform:none}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card+a.card{border-top:1px solid var(--rule)}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card::after{content:none}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card>:is(img,.nj-noimg){position:static;grid-row:1;grid-column:1;width:96px;height:96px;aspect-ratio:1/1;object-fit:cover;border-radius:3px;flex:none;padding:0}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card>img{padding:0}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .nj-noimg-name{font-size:13px;line-height:1.3}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card :is(.chip,.topic,.grain,.shade){display:none}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .label{position:static;grid-row:1;grid-column:2;padding:0;background:none;border:0;text-align:left;align-items:stretch}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .label .name{position:static;width:auto;height:auto;clip:auto;margin:2px 0 0;font-size:17px;color:var(--ink)}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .sub{margin:2px 0 6px;font-size:13px;color:var(--ink-soft)}
 body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .facts{font-size:12px}

body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card>.label{order:0;}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .nj-noimg-name{display:none;}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card .nj-noimg-mark{display:grid;}
body.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards>a.card>.nj-noimg{padding:0;}
}
/* SWEEP H4: clip the unfocused link, including its shadow; preserve :focus. */
body.nj-v2.nj-article.nj-lc .nj-skip:not(:focus){
 width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
 clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;box-shadow:none;
}

/* F7: fixed information slots and shared rows, without truncation or per-status date weight. */
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card {min-width:0;max-width:100%;}
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card > img {max-width:100%;min-width:0;}
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .label > * {min-width:0;max-width:100%;}
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card :is(.maker,.sub,.desc,.nj-next-state,.nj-card-buy,.facts) {font-size:13px;line-height:1.6;white-space:normal;overflow:visible;overflow-wrap:anywhere;}
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .maker :is(.mk,.pf) {white-space:normal;overflow-wrap:anywhere;}
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .nj-next-description {display:block;min-width:0;}
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .nj-next-description :is(.sub,.desc) {display:block;margin:0;font-size:13px;font-weight:400;line-height:1.6;}
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .nj-next-description .sub + .desc {margin-top:6px;}
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .nj-next-state {font-size:11px;font-weight:700;}
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .facts {margin:0;padding-top:6px;display:flex;flex-wrap:wrap;gap:4px 8px;justify-content:space-between;font-size:12px;}
html body.nj-visual.nj-finish.nj-lc.nj-article .nj-next-card .facts .v {font-weight:500;color:var(--ink);white-space:nowrap;}
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card > .nj-noimg {background:var(--paper);padding:14px;align-items:flex-start;overflow:visible;}
html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .nj-noimg-name {display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere;font:500 17px/1.4 var(--mincho);}
@media(min-width:760px) {
 html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card {display:grid;grid-row:span 7;grid-template-rows:subgrid;row-gap:0;}
 html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card > .label {display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:0;}
 html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .label > * {margin:0;align-self:start;}
 html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .nj-next-description {padding:6px 0;}
 html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card > .nj-noimg {height:100%;aspect-ratio:1;box-sizing:border-box;}
}
@media(max-width:759.98px) {
 html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .nj-next-description {margin:4px 0;}
 html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card > .nj-noimg {height:96px;min-height:96px;aspect-ratio:1;padding:8px;box-sizing:border-box;}
 html body.nj-visual.nj-finish.nj-v2.nj-article.nj-lc .nj-next-cards > a.nj-next-card .nj-noimg-name {font-size:12px;}
}

/* Keep native image dimensions inside the card even before scripts run or with JS disabled. */
.nj-next-cards > a.nj-next-card {min-width:0;max-width:100%;}
.nj-next-cards > a.nj-next-card > img {display:block;position:static;inset:auto;width:100%;height:auto;max-width:100%;min-width:0;aspect-ratio:1;object-fit:cover;}


/* 8084 adopted melt card (proto-cat4): shared archive/next-read component.
   Names and subtitles remain complete; long content can grow the card. */
.nj-melt-card{--tag:#1f2b25;--melt:96px;--fade:180px;position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;aspect-ratio:4/5;min-width:0;align-self:start;color:#e3e1d3;text-decoration:none;transform:translateY(var(--stagger,0px)) rotate(var(--tilt,-.5deg))}
.nj-melt-card:nth-child(even){--stagger:28px;--tilt:.45deg}
.nj-melt-card:nth-child(3n){--tilt:.2deg}
.nj-melt-card:nth-child(5n+1){--tilt:-.25deg}
.nj-melt-face{position:absolute;inset:0;z-index:-1;overflow:hidden;border-radius:10px;background:var(--tag);box-shadow:0 1px 2px #080e10b0,2px 3px #101a1a88,0 20px 30px -9px #10191da8}
.nj-melt-face:after{content:"";position:absolute;inset:0;border:1px solid #a8ac9950;border-radius:inherit;box-shadow:inset 0 0 0 1px #0c14146b;pointer-events:none}
.nj-melt-image,.nj-melt-paper .nj-melt-face:before{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;filter:none;-webkit-mask-image:linear-gradient(to top,transparent var(--melt),#0000000a calc(var(--melt) + (var(--fade) - var(--melt))*.12),#00000026 calc(var(--melt) + (var(--fade) - var(--melt))*.26),#00000059 calc(var(--melt) + (var(--fade) - var(--melt))*.40),#000000a6 calc(var(--melt) + (var(--fade) - var(--melt))*.60),#000000d9 calc(var(--melt) + (var(--fade) - var(--melt))*.74),#000000f5 calc(var(--melt) + (var(--fade) - var(--melt))*.88),#000 var(--fade));mask-image:linear-gradient(to top,transparent var(--melt),#0000000a calc(var(--melt) + (var(--fade) - var(--melt))*.12),#00000026 calc(var(--melt) + (var(--fade) - var(--melt))*.26),#00000059 calc(var(--melt) + (var(--fade) - var(--melt))*.40),#000000a6 calc(var(--melt) + (var(--fade) - var(--melt))*.60),#000000d9 calc(var(--melt) + (var(--fade) - var(--melt))*.74),#000000f5 calc(var(--melt) + (var(--fade) - var(--melt))*.88),#000 var(--fade))}
.nj-melt-platform{position:absolute;top:9px;left:9px;max-width:calc(100% - 18px);padding:3px 7px 2px;background:#1a2321e0;border:1px solid #a8ac993d;border-radius:0;color:#d4d6c8;font:10px/1.3 Georgia,serif;letter-spacing:.1em;overflow-wrap:anywhere}
.nj-melt-label{display:flex;flex-direction:column;align-items:center;text-align:center;padding:9px 9px 10px;text-shadow:none;min-width:0}
.nj-melt-name{margin:0;font:500 15px/1.42 var(--mincho,"Shippori Mincho B1","Yu Mincho",serif);letter-spacing:.045em;color:#e3e1d3;overflow-wrap:anywhere;text-wrap:balance}
.nj-melt-sub{margin-top:5px;font-size:11px;line-height:1.45;color:#b9beac;overflow-wrap:anywhere}
.nj-melt-when{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 6px;margin-top:8px;padding-top:6px;border-top:1px solid #a8ac993b;font-size:11px;line-height:1.5;letter-spacing:.04em;color:#cfd2c3;font-variant-numeric:tabular-nums}
.nj-melt-when b{font-weight:400;color:#b9beac}
.nj-melt-card:focus-visible{outline:2px solid #d9dec7;outline-offset:5px;border-radius:10px}
.nj-melt-card:hover .nj-melt-name{text-decoration:underline;text-underline-offset:.2em}
.nj-melt-paper .nj-melt-face:before{content:"";background:url(source/assets/mist-cards/back-pattern.svg) center/cover no-repeat;opacity:.9}

.nj-melt-name.is-long{font-size:13px;line-height:1.45;letter-spacing:.02em}
