/* v4.2.106: 記事ページ「噂の捜査ボード」デザイン
   コルク板の上に、アイキャッチ（ポラロイド写真）・黄色のメモ（カテゴリー・日付）・
   黒い事件ファイル（タイトル）を貼り、赤い糸でつなぐ。本文の見出しは「FILE 01」形式。 */

.single-post .tn-article__header.tn-case {
  --tn-case-pad: 40px;
  --tn-case-red: #b3261e;
  --tn-case-ink: #141414;
  --tn-case-paper: #fffef9;
  --tn-case-note: #f1ee8b;
  --tn-case-type: "Courier New", Courier, "Osaka-Mono", monospace;
  padding-bottom: 6px;
  background: #fff;
}

/* PR表記はボードの上（記事の一番上）に表示 */
.single-post .tn-case .tn-pr-note { margin: 0 0 16px; }

/* ---- コルク板 ---- */
.single-post .tn-case__board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: start;
  gap: 0 26px;
  margin: 0 calc(var(--tn-case-pad) * -1);
  padding: 34px 34px 30px;
  border-bottom: 6px solid #5a3b22;
  background-color: #b98a5e;
  background-image: radial-gradient(#9c6f45 1.2px, transparent 1.4px), radial-gradient(#cfa47a 1px, transparent 1.2px);
  background-size: 9px 9px, 13px 13px;
  background-position: 0 0, 4px 6px;
}

/* 赤い糸 */
.single-post .tn-case__strings {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.single-post .tn-case__strings path {
  fill: none;
  stroke: var(--tn-case-red);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  opacity: .9;
}

/* 画びょう */
.single-post .tn-case__pin {
  position: absolute; left: 50%; top: -7px; z-index: 7;
  width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%;
  background: var(--tn-case-red);
  box-shadow: 0 2px 2px rgba(0,0,0,.4), inset -2px -2px 0 rgba(0,0,0,.18);
}
.single-post .tn-case__pin--blue { background: #2f6fd6; }

/* ---- アイキャッチ＝ポラロイド写真 ---- */
.single-post .tn-case .tn-article__hero.tn-case__photo {
  position: relative; z-index: 2;
  grid-column: 1; grid-row: 1;
  margin: 0;
  padding: 10px 10px 36px;
  overflow: visible;
  background: var(--tn-case-paper);
  box-shadow: 2px 5px 12px rgba(0,0,0,.35);
  transform: rotate(-1.5deg);
}
.single-post .tn-case .tn-case__photo img {
  display: block;
  width: 100%; height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.single-post .tn-case__evidence {
  position: absolute; left: 12px; bottom: 10px;
  color: var(--tn-case-ink);
  font: 700 12px/1 var(--tn-case-type);
  letter-spacing: .06em;
}
/* 提供元はポラロイドの下の白い部分に */
.single-post .tn-case .tn-case__photo figcaption {
  position: absolute; left: auto; right: 12px; bottom: 9px;
  max-width: 62%;
  margin: 0; padding: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: #55524b;
  background: none;
  text-shadow: none;
  font-size: 10px; line-height: 1.3;
  text-align: right;
}
/* タイプライター演出は写真の中だけに表示 */
.single-post .tn-case__photo .tn-tw { inset: 10px 10px 36px; }

/* ---- 黄色のメモ（カテゴリー・日付） ---- */
.single-post .tn-case__note {
  position: relative; z-index: 3;
  grid-column: 2; grid-row: 1;
  margin-top: 46px;
  padding: 20px 16px 16px;
  background: var(--tn-case-note);
  color: var(--tn-case-ink);
  box-shadow: 2px 5px 10px rgba(0,0,0,.3);
  transform: rotate(3deg);
}
.single-post .tn-case__note .tn-article__kicker { margin: 0 0 10px; gap: 8px; }
.single-post .tn-case__note .tn-badge {
  min-height: 0; padding: 4px 10px;
  border: 0; border-radius: 0;
  color: var(--tn-case-note);
  background: var(--tn-case-ink);
  font-size: 12px; font-weight: 900;
}
.single-post .tn-case__note .tn-article__type {
  color: var(--tn-case-ink);
  font: 700 11px/1.2 var(--tn-case-type);
  letter-spacing: .08em;
}
.single-post .tn-case__note .tn-article__meta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  margin: 0;
}
.single-post .tn-case__note .tn-meta-chip {
  min-height: 0; padding: 0;
  border: 0; border-radius: 0;
  background: none;
  color: var(--tn-case-ink);
  font: 700 12px/1.5 var(--tn-case-type);
}
.single-post .tn-case__note .tn-meta-chip b {
  min-width: 3em;
  color: var(--tn-case-ink);
  font-size: 11px;
}

/* ---- 黒い事件ファイル（タイトル） ---- */
.single-post .tn-case__file {
  position: relative; z-index: 4;
  grid-column: 1 / -1; grid-row: 2;
  margin-top: 22px;
  padding: 16px 20px 20px;
  background: var(--tn-case-ink);
  color: var(--tn-case-paper);
  box-shadow: 3px 6px 0 rgba(0,0,0,.25);
  transform: rotate(-.8deg);
}
.single-post .tn-case__no {
  display: block;
  margin-bottom: 8px;
  color: var(--tn-case-note);
  font: 700 13px/1 var(--tn-case-type);
  letter-spacing: .08em;
}
.single-post .tn-article__header.tn-case .tn-case__file h1 {
  max-width: none;
  margin: 0;
  color: var(--tn-case-paper);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -.02em;
}

/* ---- リード文＝捜査メモ ---- */
.single-post .tn-case .tn-article__lead.tn-case__memo {
  position: relative;
  max-width: none;
  margin: 26px 0 18px;
  padding: 26px 16px 14px;
  border: 1.5px dashed var(--tn-case-ink);
  color: #2a2a28;
  background: var(--tn-case-paper);
  font-size: 15px; line-height: 1.85; font-weight: 500;
}
.single-post .tn-case .tn-case__memo::before {
  content: "INVESTIGATION MEMO";
  position: absolute; left: 14px; top: 8px;
  color: var(--tn-case-red);
  font: 700 11px/1 var(--tn-case-type);
  letter-spacing: .1em;
}

/* ---- 本文の見出し＝FILE 01, 02… ---- */
.single-post .tn-article--case .tn-article__content { counter-reset: tn-file; }
.single-post .tn-article--case .tn-article__content h2 {
  counter-increment: tn-file;
  margin: 2.6em 0 1em;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 3px solid #141414;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #141414;
  font-size: 24px; font-weight: 900; line-height: 1.45;
}
.single-post .tn-article--case .tn-article__content h2::before {
  content: "FILE " counter(tn-file, decimal-leading-zero);
  position: static;
  display: block;
  width: auto; height: auto;
  margin-bottom: 6px;
  border-radius: 0;
  background: none;
  color: #b3261e;
  font: 700 13px/1 "Courier New", Courier, monospace;
  letter-spacing: .1em;
}

/* ---- タブレット ---- */
@media (max-width: 980px) and (min-width: 761px) {
  .single-post .tn-article__header.tn-case { --tn-case-pad: 28px; }
  .single-post .tn-case__board { grid-template-columns: minmax(0, 1fr) 190px; padding: 30px 24px 26px; gap: 0 20px; }
}

/* ---- スマホ ---- */
@media (max-width: 760px) {
  .single-post .tn-article__header.tn-case { --tn-case-pad: 17px; }
  .single-post .tn-case__board {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 16px 22px;
  }
  .single-post .tn-case .tn-article__hero.tn-case__photo { grid-column: 1; grid-row: 1; padding: 8px 8px 32px; }
  .single-post .tn-case__photo .tn-tw { inset: 8px 8px 32px; }
  .single-post .tn-case__evidence { left: 10px; bottom: 9px; font-size: 11px; }
  .single-post .tn-case .tn-case__photo figcaption { right: 10px; bottom: 9px; font-size: 9px; max-width: 58%; }
  .single-post .tn-case__note {
    grid-column: 1; grid-row: 2;
    justify-self: end;
    width: 78%;
    margin-top: 18px;
    padding: 18px 14px 13px;
  }
  .single-post .tn-case__note .tn-meta-chip { font-size: 11px; }
  .single-post .tn-case__file { grid-column: 1; grid-row: 3; margin-top: 16px; padding: 14px 15px 17px; }
  .single-post .tn-case__no { font-size: 11px; }
  .single-post .tn-article__header.tn-case .tn-case__file h1 { font-size: 22px; line-height: 1.45; }
  .single-post .tn-case .tn-article__lead.tn-case__memo { margin: 20px 0 14px; padding: 24px 13px 12px; font-size: 14px; }
  .single-post .tn-article--case .tn-article__content h2 { font-size: 20px; }
}

/* 動きを減らす設定の人には傾きをなくす */
@media (prefers-reduced-motion: reduce) {
  .single-post .tn-case .tn-article__hero.tn-case__photo,
  .single-post .tn-case__note,
  .single-post .tn-case__file { transform: none; }
}
