/* シャーロック・ホームズ特集（/holmes/）。霧の夜の紺とガス灯の金。このページだけ読みこむ */
.page-ho {
  --ho-navy: #14213d;
  --ho-navy2: #1d3557;
  --ho-gold: #f2c14e;
  --ho-amber: #e09f3e;
  --ho-paper: #fbf6ec;
}
.ho-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #0b1326;
  padding: 28px 0 46px;
}
.ho-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  z-index: -2;
}
.ho-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 14, 30, 0.94) 0%, rgba(8, 14, 30, 0.8) 42%, rgba(8, 14, 30, 0.25) 78%, rgba(8, 14, 30, 0.1) 100%);
}
.ho-hero-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 40px);
}
.ho-hero-in > * { max-width: 640px; }
.ho-hero .crumb { color: #cfd8ea; }
.ho-hero .crumb a { color: #cfd8ea; }
.ho-kicker {
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.26em;
  color: var(--ho-gold);
}
.ho-hero h1 {
  margin: 0;
  font-size: clamp(30px, 6.6vw, 54px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}
.ho-hero h1 small {
  display: block;
  margin-top: 12px;
  font-size: clamp(15px, 3.4vw, 21px);
  letter-spacing: 0.04em;
  color: var(--ho-gold);
}
.ho-lead { margin: 18px 0 0; font-size: 16px; line-height: 1.95; color: #eef2fa; }
.ho-lead b { color: #fff; background: linear-gradient(transparent 62%, rgba(242, 193, 78, 0.45) 62%); }
.ho-stats { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; font-size: 14px; color: #cfd8ea; }
.ho-stats b { font-size: 26px; color: var(--ho-gold); margin: 0 3px; font-weight: 900; }
.ho-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.ho-hero-acts .btn.primary,
.page-ho .ho-acts .btn.primary,
.page-ho .ho-game .btn.primary { background: linear-gradient(90deg, #f2c14e, #e09f3e); color: #1a1206; border-color: transparent; font-weight: 900; }
.ho-hero-acts .btn:not(.primary) { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.45); }

/* 目次（横に流す） */
.ho-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 6px;
  padding: 8px clamp(12px, 4vw, 28px);
  background: var(--ho-navy);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.ho-nav::-webkit-scrollbar { display: none; }
.ho-nav a { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #e8edf7; text-decoration: none; background: rgba(255, 255, 255, 0.08); }
.ho-nav a:hover { background: rgba(242, 193, 78, 0.25); color: #fff; }

.ho-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 28px) 60px; overflow-x: clip; }
.ho-sec { margin-top: 54px; scroll-margin-top: 60px; }
.ho-h { margin-bottom: 18px; }
.ho-h .ho-kicker { margin-top: 0; color: var(--ho-navy2); }
:root[data-theme='dark'] .ho-h .ho-kicker { color: var(--ho-gold); }
.ho-h h2 { margin: 0 0 6px; font-size: clamp(24px, 5vw, 34px); font-weight: 900; color: var(--ink); }
.ho-h p { margin: 0; color: var(--ink2); line-height: 1.85; }
.ho-sub { margin: 30px 0 10px; font-size: 19px; font-weight: 900; color: var(--ink); }

/* タブ */
.ho-tabs { display: flex; gap: 8px; margin: 0 0 10px; padding-bottom: 4px; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.ho-tabs button {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--ho-navy2) 35%, transparent);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.ho-tabs button[aria-selected='true'] { background: var(--ho-navy2); border-color: var(--ho-navy2); color: #fff; }
:root[data-theme='dark'] .ho-tabs button[aria-selected='true'] { background: var(--ho-gold); border-color: var(--ho-gold); color: #1a1206; }
.ho-tab-lead { margin: 0 0 16px; font-size: 14px; color: var(--ink2); line-height: 1.8; }

/* 事件ファイルのカード */
.ho-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.ho-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  box-shadow: 0 10px 26px rgba(10, 20, 45, 0.12);
}
.ho-card[hidden] { display: none; }
.ho-poster { position: relative; display: block; aspect-ratio: 16 / 9; background: #101a30; overflow: hidden; }
.ho-poster > img,
.ho-poster > .noimg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.ho-card:hover .ho-poster > img { transform: scale(1.05); }
.ho-no,
.ho-au,
.ho-best { position: absolute; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: 0.04em; }
.ho-no { top: 10px; left: 10px; background: var(--ho-navy); color: var(--ho-gold); letter-spacing: 0.1em; }
.ho-au { top: 10px; right: 10px; background: rgba(10, 16, 32, 0.82); color: #fff; }
.ho-au.hum { color: var(--ho-gold); }
.ho-au.none { color: #c9d1e0; font-weight: 700; }
.ho-best { bottom: 10px; left: 10px; background: linear-gradient(90deg, #f2c14e, #e09f3e); color: #1a1206; }
.ho-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.ho-by { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--ho-navy2); }
:root[data-theme='dark'] .ho-by { color: var(--ho-gold); }
.ho-body h3 { margin: 4px 0 2px; font-size: 20px; line-height: 1.4; font-weight: 900; }
.ho-body h3 a { color: var(--ink); text-decoration: none; }
.ho-en { margin: 0; font-size: 13px; color: var(--ink2); font-style: italic; }
.ho-hook { margin: 10px 0 0; font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.ho-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.ho-facts li { padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--ink2); background: color-mix(in srgb, var(--ho-navy2) 9%, transparent); }
.ho-facts li.tag { background: color-mix(in srgb, var(--ho-amber) 20%, transparent); color: var(--ink); }
.ho-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 14px; }
.ho-acts .btn { font-size: 14px; }
.ho-parts { margin-top: 12px; font-size: 13.5px; }
.ho-parts summary { cursor: pointer; font-weight: 800; color: var(--ink2); }
.ho-parts ol { margin: 8px 0 0; padding-left: 1.6em; line-height: 1.9; columns: 2; column-gap: 20px; }

/* 3ステップ */
.ho-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.ho-steps li { position: relative; padding: 20px 18px 16px; border-radius: 16px; background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.ho-step-n { position: absolute; top: -12px; left: 16px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ho-navy2); color: #fff; font-weight: 900; font-size: 14px; }
.ho-steps b { font-size: 16.5px; color: var(--ink); }
.ho-steps p { margin: 8px 0 0; font-size: 14px; line-height: 1.9; color: var(--ink2); }
.ho-easy { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(160deg, #1d3557, #14213d); color: #eef2fa; }
.ho-easy > b { display: block; margin-bottom: 10px; color: var(--ho-gold); font-size: 15px; }
.ho-easy ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ho-easy a { display: block; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; }
.ho-easy a:hover { background: rgba(242, 193, 78, 0.28); }
.ho-easy small { display: block; font-weight: 600; font-size: 11.5px; color: #cfd8ea; }

/* 暗号解読ゲーム */
.ho-game { padding: clamp(14px, 3.5vw, 24px); border-radius: 18px; background: linear-gradient(160deg, #1d3557, #14213d); color: #eef2fa; border: 1px solid rgba(242, 193, 78, 0.35); }
.ho-g-lv { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ho-g-lv button { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: #eef2fa; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.ho-g-lv button[aria-pressed='true'] { background: var(--ho-gold); border-color: var(--ho-gold); color: #1a1206; }
.ho-g-lv button.done::after { content: ' ✓'; }
.ho-g-paper { padding: 16px 12px 12px; border-radius: 8px; background: var(--ho-paper); color: #1a1410; box-shadow: inset 0 0 0 1px rgba(60, 40, 20, 0.25), 0 8px 22px rgba(0, 0, 0, 0.35); }
.ho-g-msg { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; }
.ho-g-word { display: flex; gap: 3px; }
.ho-g-cell { display: flex; flex-direction: column; align-items: center; width: clamp(26px, 7.4vw, 46px); }
.ho-g-cell img { width: 100%; height: auto; display: block; }
.ho-g-cell input {
  width: 100%;
  margin-top: 4px;
  padding: 3px 0;
  border: 0;
  border-bottom: 3px solid #8a6d3b;
  border-radius: 4px 4px 0 0;
  background: #fff;
  color: #14213d;
  font: inherit;
  font-size: clamp(15px, 4.2vw, 21px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.ho-g-cell input:focus { outline: 3px solid var(--ho-amber); outline-offset: 1px; }
.ho-g-cell input.given { background: #f6e7b8; }
.ho-g-cell input.bad { background: #ffd9d4; border-bottom-color: #c0392b; }
.ho-g-cell input.ok { background: #d9f2dd; border-bottom-color: #2e7d32; }
.ho-g-dash { align-self: center; font-weight: 900; font-size: 22px; color: #5b4a30; }
.ho-g-tip { margin: 12px 0 0; font-size: 13px; line-height: 1.8; color: #cfd8ea; }
.ho-g-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ho-game .btn:not(.primary) { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.ho-g-key { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 14px; padding: 10px; border-radius: 8px; background: var(--ho-paper); }
.ho-g-key[hidden] { display: none; }
.ho-g-key span { display: flex; flex-direction: column; align-items: center; font-weight: 900; color: #14213d; font-size: 14px; }
.ho-g-key img { width: 34px; height: auto; }
.ho-g-res { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(242, 193, 78, 0.16); border: 1px solid rgba(242, 193, 78, 0.5); line-height: 1.85; font-size: 14.5px; }
.ho-g-res[hidden] { display: none; }
.ho-g-res b { display: block; font-size: 18px; color: var(--ho-gold); }
.ho-g-res .en { font-size: 17px; font-weight: 900; letter-spacing: 0.06em; color: #fff; }
.ho-g-res a { color: var(--ho-gold); font-weight: 800; }
.ho-cipher-more { margin: 14px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.8; }

/* 人物 */
.ho-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.ho-people li { padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.ho-pi { float: right; font-size: 30px; line-height: 1; }
.ho-people b { display: block; font-size: 17px; color: var(--ink); }
.ho-people small { display: block; font-size: 12.5px; color: var(--ink2); font-style: italic; }
.ho-people p { margin: 8px 0 0; font-size: 14px; line-height: 1.9; color: var(--ink2); }

/* 名言（横に流す） */
.ho-quotes { display: flex; gap: 14px; padding: 4px 2px 12px; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scroll-snap-type: x proximity; }
.ho-quote { flex: none; width: min(82vw, 340px); scroll-snap-align: start; display: flex; flex-direction: column; padding: 18px; border-radius: 16px; text-decoration: none; background: linear-gradient(160deg, #1d3557, #14213d); color: #eef2fa; border: 1px solid rgba(242, 193, 78, 0.35); }
.ho-quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 700; font-style: italic; color: #fff; }
.ho-q-ja { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: var(--ho-gold); font-weight: 700; }
.ho-quote small { margin-top: auto; padding-top: 10px; font-size: 12px; line-height: 1.7; color: #cfd8ea; }

.ho-cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.ho-cast li { padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font-size: 13.5px; line-height: 1.7; }
.ho-cast b { display: block; font-size: 15px; color: var(--ink); }
.ho-cast span { display: block; color: var(--ink2); }
.ho-cast a { font-size: 12.5px; }

.ho-faq details { border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); padding: 12px 2px; }
.ho-faq summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.ho-faq p { margin: 10px 0 2px; line-height: 1.95; color: var(--ink2); }
.ho-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@media (max-width: 640px) {
  .ho-hero { padding-bottom: 34px; }
  .ho-hero::before { background: linear-gradient(0deg, rgba(8, 14, 30, 0.96) 0%, rgba(8, 14, 30, 0.82) 55%, rgba(8, 14, 30, 0.45) 100%); }
  .ho-stats b { font-size: 22px; }
  .ho-sec { margin-top: 42px; }
  .ho-parts ol { columns: 1; }
  .ho-g-msg { gap: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ho-poster > img { transition: none; }
}
