/*
 * ドラマをほどく | TOP design preview v2 (2026-11-14)
 * Direction: keep the EXISTING hero intact; bring the script-note detail
 * to the category cards. All selectors are scoped to the homepage only.
 * Existing post images, Kanade image, and editorial selection remain dynamic.
 */
body.home .dh-home {
  --dh-concept-ink: #29334a;
  --dh-concept-muted: #626a76;
  --dh-concept-wine: #87516a;
  --dh-concept-gold: #b4946c;
  color: var(--dh-concept-ink);
}
body.home .dh-home h2 {
  font-family: "Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;
  font-size: clamp(23px, 2.35vw, 31px);
  letter-spacing: .035em;
  line-height: 1.52;
}
body.home .dh-home-section {
  position: relative;
  margin: 29px 0;
  padding: clamp(23px, 3vw, 37px);
  border: 1px solid #e4dad1;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(40,51,65,.035);
}
body.home .dh-home-section::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: linear-gradient(90deg,#8e586b,#c29e8f,#e8d8c4);
  border-radius: 10px 10px 0 0;
}
body.home .dh-home-section-heading { margin-bottom: 25px; }
body.home .dh-home-section .dh-home-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #85536c !important;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .10em;
}
body.home .dh-home-section .dh-home-kicker::before {
  content: "";
  width: 23px;
  height: 1px;
  flex-shrink: 0;
  background: #a78983;
}

/* Film guide: gentle magazine treatment; real featured images retained. */
body.home .dh-home-guide-grid { gap: 18px; }
body.home .dh-home-guide {
  border-color: #dfd8d4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(42,45,55,.055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.home .dh-home-guide:hover {
  transform: translateY(-3px);
  border-color: #9a7483;
  box-shadow: 0 12px 26px rgba(42,45,55,.12);
}
body.home .dh-home-guide-image {
  position: relative;
  background: #e7e9ed;
  aspect-ratio: 16 / 9;
}
body.home .dh-home-guide-image img { display:block; object-fit:cover; }
body.home .dh-home-guide-copy { padding: 17px 18px 21px; }
body.home .dh-home-card-label {
  border-color: #e8d8de;
  background: #fbf0f4;
  color: #805064;
  border-radius: 3px;
  font-weight: 700;
}
body.home .dh-home-guide-arrow { color: #84536a; }
body.home .dh-home-quick-links a {
  border: 1px solid #d9d8dc;
  border-radius: 4px;
  background: #fffdfa;
  color: #5f6272;
}

/* Discovery area becomes the only deliberately "pinned notes" display. */
body.home #dh-themes {
  border-color: #e5d6c9;
  background:
    radial-gradient(circle at 91% 8%, rgba(188,153,126,.12), transparent 34%),
    linear-gradient(155deg,#fbf5ed,#faf7f0 75%);
}
body.home #dh-themes::before {
  background: linear-gradient(90deg,#9b785f,#c5a48d,#e9d6c3);
}
body.home #dh-themes .dh-home-kicker { color: #8b6957 !important; }
body.home #dh-themes .dh-home-theme-grid {
  counter-reset: dh-notes;
  gap: 20px 18px;
}
body.home #dh-themes .dh-home-theme {
  --dh-note-accent: #805d79;
  --dh-note-paper: #fcf8fb;
  counter-increment: dh-notes;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 30px 21px 22px;
  overflow: visible;
  border: 1px solid #ded8d1;
  border-top: 1px solid #ded8d1;
  border-left: 3px solid var(--dh-note-accent);
  border-radius: 2px 7px 5px 3px;
  background:
    repeating-linear-gradient(to bottom,transparent 0,transparent 29px,rgba(115,109,106,.075) 30px,transparent 31px),
    linear-gradient(150deg,#fffefa,var(--dh-note-paper));
  box-shadow: 4px 6px 0 rgba(112,91,82,.07), 0 8px 20px rgba(50,44,54,.06);
  transform: rotate(var(--dh-note-rotate, -.6deg));
  transform-origin: 50% 50%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.home #dh-themes .dh-home-theme:nth-child(2n) { --dh-note-rotate: .65deg; }
body.home #dh-themes .dh-home-theme:nth-child(3n) { --dh-note-rotate: -.25deg; }
body.home #dh-themes .dh-home-theme::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 74px;
  height: 17px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(182,155,126,.32);
  border-left: 1px solid rgba(160,132,103,.2);
  border-right: 1px solid rgba(160,132,103,.2);
  box-shadow: 0 2px 5px rgba(98,88,76,.055);
  pointer-events: none;
}
body.home #dh-themes .dh-home-theme::after {
  content: "NOTE " counter(dh-notes,decimal-leading-zero);
  display: block;
  margin-top: auto;
  padding-top: 12px;
  color: var(--dh-note-accent);
  font: 700 10px/1.3 Georgia,serif;
  letter-spacing: .13em;
}
body.home #dh-themes .dh-home-theme h3 {
  color: #273348;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 750;
  margin-bottom: 4px;
}
body.home #dh-themes .dh-home-theme p {
  margin-top: 8px;
  padding-right: 14px;
  font-size: 13px;
  color: #657080;
  line-height: 1.8;
}
body.home #dh-themes .dh-home-theme > span {
  bottom: 17px;
  right: 19px;
  color: var(--dh-note-accent);
  font-weight: 800;
}
body.home #dh-themes .dh-home-theme:hover {
  transform: rotate(0deg) translateY(-4px);
  border-color: var(--dh-note-accent);
  box-shadow: 5px 8px 0 rgba(112,91,82,.08),0 14px 23px rgba(50,44,54,.11);
}
body.home #dh-themes .dh-home-theme[href*="/category/mystery/"] {
  --dh-note-accent:#6c6189; --dh-note-paper:#f4eff9;
}
body.home #dh-themes .dh-home-theme[href*="/category/settings/"] {
  --dh-note-accent:#597962; --dh-note-paper:#f1f8ef;
}
body.home #dh-themes .dh-home-theme[href*="/category/characters/"] {
  --dh-note-accent:#9d677a; --dh-note-paper:#fbf0f4;
}
body.home #dh-themes .dh-home-theme[href*="/category/source/"] {
  --dh-note-accent:#a0735e; --dh-note-paper:#fbf1e9;
}
body.home #dh-themes .dh-home-theme[href*="/category/ending/"] {
  --dh-note-accent:#677b98; --dh-note-paper:#f1f3fa;
}
body.home #dh-themes .dh-home-theme[href*="/category/location/"] {
  --dh-note-accent:#527a92; --dh-note-paper:#eef6f8;
}

/* Latest posts: the actual WordPress thumbnail remains prominent. */
body.home #dh-new { border-color:#d9e4dd; background:#eff5f1; }
body.home #dh-new::before { background:linear-gradient(90deg,#557d6a,#9eafa0,#d5e1d7); }
body.home #dh-new .dh-home-kicker { color:#52715e !important; }
body.home #dh-new .dh-home-new-grid { gap:16px; }
body.home #dh-new .dh-home-new-card {
  display:grid;
  grid-template-columns: 119px minmax(0,1fr);
  gap: 13px;
  min-height:125px;
  padding:12px;
  border:1px solid #dce5df;
  border-radius:6px;
  background:#fff;
  box-shadow:0 4px 13px rgba(38,51,45,.035);
  transition: transform .18s ease, border-color .18s ease;
}
body.home #dh-new .dh-home-new-card:hover { border-color:#7c9b89; transform:translateY(-2px); }
body.home #dh-new .dh-home-new-image {
  width:119px;
  align-self:start;
  aspect-ratio:16/9;
  border-radius:4px;
  overflow:hidden;
  background:#dde8e1;
}
body.home #dh-new .dh-home-new-image img {display:block;width:100%;height:100%;object-fit:cover;}
body.home #dh-new .dh-home-new-copy time {
  font-family:Georgia,serif;
  color:#5a7965;
  font-size:11px;
  letter-spacing:.05em;
}
body.home #dh-new .dh-home-new-copy h3 { font-size:13px; line-height:1.7; }

/* Kanade: keep the real WordPress image and give the intro a gentle frame. */
body.home .dh-home-about {
  grid-template-columns: 170px minmax(0,1fr);
  gap: clamp(22px,3vw,38px);
  align-items:center;
  border:1px solid #e7cdd3;
  background:
    radial-gradient(circle at left bottom,rgba(178,133,150,.13),transparent 37%),
    linear-gradient(120deg,#faf0f4,#fffaf8 78%);
}
body.home .dh-home-about::before { background:linear-gradient(90deg,#875269,#c29d9e,#e8d2ce); }
body.home .dh-home-about > img {
  display:block;
  width:170px;
  height:170px;
  border-radius:13px;
  border:6px solid #fffdfa;
  box-shadow:0 0 0 1px #e3c6ce,0 10px 24px rgba(77,51,68,.12);
  object-fit:cover;
  object-position:center 25%;
}
body.home .dh-home-about .dh-home-kicker { color:#8e5570 !important; }
body.home .dh-home-about .dh-home-text-link { color:#84536a; }

/* Small-screen layouts and accessible motion. */
@media (max-width:1023px) {
  body.home #dh-new .dh-home-new-card {grid-template-columns:112px minmax(0,1fr);}
  body.home #dh-new .dh-home-new-image {width:112px;}
}
@media (max-width:834px) {
  body.home .dh-home-section {margin:24px 0;padding:26px;}
  body.home #dh-themes .dh-home-theme-grid {gap:21px 16px;}
  body.home #dh-themes .dh-home-theme {min-height:160px;}
  body.home .dh-home-about {grid-template-columns:125px minmax(0,1fr);}
  body.home .dh-home-about > img {width:125px;height:125px;}
}
@media (max-width:600px) {
  body.home .dh-home-section {margin:20px 0;padding:21px 17px;}
  body.home .dh-home-section-heading {margin-bottom:20px;}
  body.home #dh-themes .dh-home-theme-grid {grid-template-columns:minmax(0,1fr);gap:20px;}
  body.home #dh-themes .dh-home-theme {
    min-height:128px;
    padding:21px 18px 16px;
    transform:none;
  }
  body.home #dh-themes .dh-home-theme:nth-child(n) {--dh-note-rotate:0deg;}
  body.home #dh-themes .dh-home-theme::before {left:80%;width:62px;height:15px;top:-7px;}
  body.home #dh-themes .dh-home-theme h3 {font-size:17px;}
  body.home #dh-new .dh-home-new-card {grid-template-columns:104px minmax(0,1fr);gap:11px;padding:10px;}
  body.home #dh-new .dh-home-new-image {width:104px;}
  body.home .dh-home-about {grid-template-columns:94px minmax(0,1fr);gap:14px;padding:21px 16px;}
  body.home .dh-home-about > img {width:94px;height:94px;border-width:4px;}
}
@media (max-width:380px) {
  body.home .dh-home-about {grid-template-columns:minmax(0,1fr);}
  body.home .dh-home-about > img {width:102px;height:102px;}
}
@media (prefers-reduced-motion:reduce) {
  body.home #dh-themes .dh-home-theme,
  body.home .dh-home-guide,
  body.home #dh-new .dh-home-new-card {transition:none;}
  body.home #dh-themes .dh-home-theme:hover,
  body.home .dh-home-guide:hover,
  body.home #dh-new .dh-home-new-card:hover {transform:none;}
}
