/* 即興！みんなで百物語 ― 商品ページだけの和ホラー仕様 */
body.hk {
  --bg: #070505;
  --bg-alt: #120d0b;
  --ink: #efe4cf;
  --ink-soft: #b3a68f;
  --line: rgba(239, 228, 207, 0.12);
  --accent: #e0432a;
  --accent-ink: #e8ad66;
  --hk-red: #e0432a;
  --hk-gold: #e8ad66;
  --hk-blue: #8fc6d4;
  --hk-mincho: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --hk-brush: "Yuji Syuku", "Shippori Mincho", serif;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--hk-mincho);
  font-weight: 500;
}
body.hk::after {
  /* フィルムの粒子 */
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: hk-grain 0.9s steps(4) infinite;
}
@keyframes hk-grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 3%); }
}
.hk ::selection { background: var(--hk-red); color: #fff; }
.hk .site-header { background: rgba(7, 5, 5, 0.78); border-bottom-color: var(--line); }
.hk .site-header .logo, .hk .nav a { color: var(--ink); font-family: Inter, "Helvetica Neue", sans-serif; }
.hk .nav a:hover { color: var(--hk-gold); }
.hk .nav-toggle span, .hk .nav-toggle span::before, .hk .nav-toggle span::after { background: var(--ink); }
.hk main section { border-bottom: 0; }
.hk .site-footer { border-top: 1px solid var(--line); color: var(--ink-soft); }
.hk em { font-style: normal; color: var(--hk-red); }

/* 共通 */
.hk-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; }
.hk-narrow { max-width: 780px; }
.hk-section { padding: 120px 0; position: relative; }
.hk-chapter { display: inline-block; margin: 0 0 18px; padding: 6px 12px; background: var(--hk-red); color: #fff; font-family: var(--hk-brush); font-size: 1rem; letter-spacing: 0.3em; border-radius: 3px; box-shadow: 0 0 24px rgba(224, 67, 42, 0.35); }
.hk-chapter-blue { background: #2f6574; box-shadow: 0 0 24px rgba(143, 198, 212, 0.25); }
.hk-h2 { margin: 0 0 28px; font-family: var(--hk-brush); font-weight: 400; font-size: clamp(2.1rem, 5.6vw, 3.6rem); line-height: 1.3; letter-spacing: 0.04em; text-shadow: 0 0 30px rgba(0, 0, 0, 0.8); }
.hk-intro { max-width: 46em; color: var(--ink-soft); font-size: 1.05rem; }
.hk-small { color: var(--ink-soft); font-size: 0.88rem; margin-top: 24px; }
.hk p { line-height: 2; }
.hk-blue { color: var(--hk-blue) !important; }

.hk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 1px solid rgba(239, 228, 207, 0.35); color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: 0.12em; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.hk-btn:hover { border-color: var(--hk-gold); background: rgba(232, 173, 102, 0.08); }
.hk-btn-fire { background: linear-gradient(180deg, #f0b56c, #c27a3c); color: #1a0f08; border-color: transparent; box-shadow: 0 0 40px rgba(232, 150, 70, 0.35); }
.hk-btn-fire:hover { background: linear-gradient(180deg, #ffc47d, #d1884a); box-shadow: 0 0 60px rgba(232, 150, 70, 0.55); }
.hk-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hk-note { margin-top: 16px; color: var(--ink-soft); font-size: 0.85rem; letter-spacing: 0.1em; }

/* 序 */
.hk-hero { position: relative; min-height: calc(100svh - 68px); display: flex; align-items: center; overflow: hidden; padding: 72px 0 96px; }
.hk-hero-bg { position: absolute; inset: 0; }
.hk-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: brightness(0.38) saturate(0.85); transform: scale(1.06); animation: hk-breathe 14s ease-in-out infinite alternate; }
.hk-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 60% 55% at 70% 72%, rgba(232, 140, 60, 0.22), transparent 70%), linear-gradient(90deg, rgba(7, 5, 5, 0.92) 0%, rgba(7, 5, 5, 0.55) 55%, rgba(7, 5, 5, 0.3) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
@keyframes hk-breathe { to { transform: scale(1.12) translateY(-1.5%); } }
.hk-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; gap: 40px; }
.hk-kicker { margin: 0; font-family: var(--hk-brush); font-size: clamp(1.1rem, 2.6vw, 1.6rem); letter-spacing: 0.4em; color: var(--ink-soft); }
.hk-logo { margin: 0; font-family: var(--hk-brush); font-weight: 400; font-size: clamp(5.2rem, 17vw, 10.5rem); line-height: 1; letter-spacing: 0.04em; text-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 2px rgba(255, 220, 170, 0.3); animation: hk-flicker 7s infinite; }
@keyframes hk-flicker { 0%, 91%, 100% { opacity: 1; transform: none; } 92% { opacity: 0.55; transform: translateX(2px); } 93% { opacity: 1; } 95% { opacity: 0.8; transform: translateX(-1px); } 96% { opacity: 1; transform: none; } }
.hk-lead { margin: 18px 0 0; font-family: var(--hk-brush); font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: 1.5; }
.hk-lead span { display: inline-block; }
.hk-lead span + span { color: var(--hk-gold); }
.hk-desc { margin-top: 20px; color: var(--ink-soft); font-size: 1.02rem; }
.hk-candles { display: flex; align-items: flex-end; justify-content: center; gap: 36px; padding-bottom: 20px; }
.hk-candle { position: relative; width: 30px; height: 120px; border-radius: 6px 6px 4px 4px; background: linear-gradient(90deg, #8f7f63, #efe2c4 38%, #d6c6a3 70%, #6f624c); }
.hk-candle-tall { height: 170px; width: 36px; }
.hk-candle::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 22px; height: 46px; margin-left: -11px; margin-bottom: 4px; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%; background: radial-gradient(ellipse at 50% 74%, #fff 0 16%, #ffe6a6 30%, #ff9a3c 60%, rgba(255, 110, 40, 0) 80%); transform-origin: 50% 90%; animation: hk-flame 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1s); }
.hk-candle::after { content: ""; position: absolute; left: 50%; bottom: 100%; width: 320px; height: 320px; transform: translate(-50%, 40%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 80, 0.22), transparent 62%); pointer-events: none; animation: hk-glow 2.3s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1s); }
@keyframes hk-flame { 0% { transform: scale(1, 1) skewX(0); } 40% { transform: scale(0.94, 1.08) skewX(-3deg); } 70% { transform: scale(1.04, 0.95) skewX(2deg); } 100% { transform: scale(0.97, 1.05) skewX(-1deg); } }
@keyframes hk-glow { from { opacity: 0.75; } to { opacity: 1; } }
.hk-scroll { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; writing-mode: vertical-rl; font-family: var(--hk-brush); letter-spacing: 0.5em; color: var(--ink-soft); font-size: 0.85rem; }
.hk-scroll::after { content: ""; display: block; width: 1px; height: 46px; margin: 10px auto 0; background: linear-gradient(var(--ink-soft), transparent); }

/* PV */
.hk-pv { background: linear-gradient(180deg, transparent, rgba(80, 10, 6, 0.18), transparent); }
.hk-warn { margin: -12px 0 24px; color: var(--ink-soft); font-size: 0.85rem; }
.hk-video { position: relative; margin: 0 auto; max-width: 1060px; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 80px rgba(224, 67, 42, 0.08); }
.hk-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.hk-video.tall { max-width: 420px; }
.hk-video.tall video { aspect-ratio: 9 / 16; }

/* 一夜の流れ */
.hk-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.hk-steps li { position: relative; padding: 28px 24px 30px; border-left: 1px solid var(--line); }
.hk-steps li:last-child { border-right: 1px solid var(--line); }
.hk-num { display: block; font-family: var(--hk-brush); color: var(--hk-red); letter-spacing: 0.2em; font-size: 0.95rem; }
.hk-steps h3 { margin: 14px 0 12px; font-family: var(--hk-brush); font-weight: 400; font-size: 1.45rem; line-height: 1.45; }
.hk-steps p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* 異変（見比べ） */
.hk-anomaly { background: radial-gradient(ellipse 60% 70% at 75% 50%, rgba(30, 70, 50, 0.22), transparent 70%); }
.hk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hk-split-rev > :first-child { order: 0; }
.hk-compare { position: relative; margin: 0; aspect-ratio: 2 / 3; max-height: 760px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); user-select: none; }
.hk-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hk-compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.hk-compare-before::after { content: ""; position: absolute; top: 0; bottom: 0; right: calc(100% - var(--pos)); width: 2px; background: var(--hk-red); box-shadow: 0 0 16px var(--hk-red); }
.hk-compare-tag { position: absolute; top: 14px; padding: 4px 10px; font-family: var(--hk-brush); font-size: 0.95rem; letter-spacing: 0.2em; background: rgba(7, 5, 5, 0.7); }
.hk-compare-tag-l { left: 14px; }
.hk-compare-tag-r { right: 14px; background: var(--hk-red); color: #fff; }
.hk-compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.hk-compare::after { content: "⇆"; position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; background: var(--hk-red); color: #fff; font-size: 1.1rem; pointer-events: none; box-shadow: 0 0 20px rgba(224, 67, 42, 0.7); }

/* スクリーンショット */
.hk-shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px max(24px, calc((100vw - 1120px) / 2 + 24px)) 28px; scrollbar-color: rgba(239, 228, 207, 0.3) transparent; }
.hk-shots img { flex: 0 0 auto; width: min(270px, 64vw); height: auto; scroll-snap-align: center; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }

/* オンライン */
.hk-online { background: radial-gradient(ellipse 60% 70% at 25% 50%, rgba(60, 130, 150, 0.16), transparent 70%); }
.hk-room { position: relative; justify-self: center; padding: 34px 44px; border: 1px solid rgba(143, 198, 212, 0.7); background: rgba(5, 14, 18, 0.8); text-align: center; box-shadow: 0 0 80px rgba(143, 198, 212, 0.2); }
.hk-room small { display: block; color: var(--hk-blue); letter-spacing: 0.5em; font-size: 0.9rem; }
.hk-room b { display: block; font-size: clamp(3.6rem, 9vw, 5.8rem); letter-spacing: 0.16em; line-height: 1.15; color: #eaf7f9; font-family: var(--hk-mincho); }
.hk-bubble { position: absolute; left: -34px; top: -30px; padding: 8px 18px; border-radius: 30px; background: var(--hk-red); color: #fff; font-weight: 700; transform: rotate(-9deg); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); white-space: nowrap; }
.hk-bubble-calm { left: auto; top: auto; right: -40px; bottom: -26px; background: #253940; color: #dff3f7; transform: rotate(6deg); }

/* 舞台 */
.hk-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 0; }
.hk-pack { position: relative; min-height: 380px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.hk-pack::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover; filter: brightness(0.55); transition: transform 0.8s ease, filter 0.8s ease; }
.hk-pack::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(7, 5, 5, 0.95)); }
.hk-pack:hover::before { transform: scale(1.06); filter: brightness(0.75); }
.hk-pack h3 { margin: 0 0 10px; font-family: var(--hk-brush); font-weight: 400; font-size: 1.7rem; }
.hk-pack p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* 百話 */
.hk-hundred { text-align: center; overflow: hidden; }
.hk-hundred .hk-intro { margin: 0 auto; }
.hk-grid100 { display: grid; grid-template-columns: repeat(20, 1fr); gap: 10px 14px; width: min(560px, 90%); margin: 0 auto 56px; }
.hk-grid100 i { position: relative; height: 26px; }
.hk-grid100 i::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 7px; height: 15px; margin-left: -3.5px; border-radius: 2px; background: linear-gradient(90deg, #7d6f56, #e8dcbe 45%, #6f624c); }
.hk-grid100 i::after { content: ""; position: absolute; left: 50%; bottom: 15px; width: 6px; height: 10px; margin-left: -3px; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%; background: radial-gradient(ellipse at 50% 74%, #fff 0 18%, #ffd98f 36%, #ff8a34 66%, transparent 84%); box-shadow: 0 0 12px 3px rgba(255, 150, 60, 0.3); transition: opacity 0.25s; }
.hk-grid100 i.out::after { opacity: 0; }

/* 覚書 */
.hk-spec { margin: 36px 0 0; border-top: 1px solid var(--line); }
.hk-spec div { display: grid; grid-template-columns: 7em 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hk-spec dt { font-family: var(--hk-brush); color: var(--hk-gold); letter-spacing: 0.2em; }
.hk-spec dd { margin: 0; color: var(--ink-soft); }
.hk-actions-end { margin-top: 44px; }
.hk-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: 0.88rem; }
.hk-links a { color: var(--ink-soft); }
.hk-closing { margin: 80px 0 0; text-align: center; font-family: var(--hk-brush); font-size: clamp(1.6rem, 4vw, 2.3rem); }

/* 出現 */
.hk-reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 1.1s ease, transform 1.1s ease, filter 1.1s ease; }
.hk-reveal.in { opacity: 1; transform: none; filter: none; }

@media (max-width: 900px) {
  .hk-hero-inner { grid-template-columns: 1fr; }
  .hk-candles { position: absolute; right: 18px; bottom: -40px; gap: 18px; transform: scale(0.6); transform-origin: right bottom; opacity: 0.85; }
  .hk-steps { grid-template-columns: 1fr 1fr; }
  .hk-steps li:nth-child(2) { border-right: 1px solid var(--line); }
  .hk-steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hk-split { grid-template-columns: 1fr; gap: 44px; }
  .hk-packs { grid-template-columns: 1fr; }
  .hk-pack { min-height: 260px; }
}
@media (max-width: 560px) {
  .hk-section { padding: 84px 0; }
  .hk-hero { padding: 48px 0 110px; align-items: flex-end; }
  .hk-candles { top: 40px; bottom: auto; right: 14px; transform: scale(0.42); transform-origin: right top; }
  .hk-steps { grid-template-columns: 1fr; }
  .hk-steps li, .hk-steps li:last-child, .hk-steps li:nth-child(2) { border-right: 0; border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .hk-spec div { grid-template-columns: 1fr; gap: 4px; }
  .hk-btn { width: 100%; }
  .hk-room { padding: 26px 30px; }
  .hk-bubble { left: -10px; }
  .hk-bubble-calm { right: -10px; }
  .hk-grid100 { grid-template-columns: repeat(10, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body.hk::after, .hk-hero-bg img, .hk-logo, .hk-candle::before, .hk-candle::after { animation: none; }
  .hk-reveal { opacity: 1; transform: none; filter: none; transition: none; }
}
