:root {
  --hn-black: #111111;
  --hn-white: #ffffff;
  --hn-paper: #f8f7f2;
  --hn-yellow: #ffd84a;
  --hn-line: #d8d6cc;
  --hn-muted: #68665f;
  --hn-page: clamp(23px, 2.2vw, 32px);
  --hn-section: clamp(20px, 1.8vw, 26px);
  --hn-card: 14px;
  --hn-copy: 12px;
  --hn-label: 9px;
  --hn-sans: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --hn-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hn-site { margin: 0; color: var(--hn-black); background: var(--hn-paper); font-family: var(--hn-sans); }
body.hn-site a { color: inherit; text-decoration: none; }
body.hn-site img { display: block; max-width: 100%; }
.hn-wrap { width: min(100%, 1440px); margin-inline: auto; padding-inline: 28px; }
.hn-header { position: relative; z-index: 20; color: var(--hn-white); background: var(--hn-black); box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.hn-header__inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.hn-brand { display: inline-flex; align-items: center; gap: 12px; }
.hn-brand img { width: 48px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--hn-white); border-radius: 14px; box-shadow: 0 5px 16px rgba(0,0,0,.22); }
.hn-brand strong { display: block; font: 900 22px/1 Arial, sans-serif; letter-spacing: .16em; }
.hn-brand small { display: block; margin-top: 6px; color: var(--hn-yellow); font: 700 8px/1 var(--hn-mono); letter-spacing: .12em; }
.hn-nav { margin-left: auto; display: flex; gap: 6px; }
.hn-nav a { padding: 12px 16px; border-radius: 999px; font: 800 10px/1 var(--hn-mono); }
.hn-nav a:hover, .hn-nav a:focus-visible { color: var(--hn-black); background: var(--hn-yellow); }
.hn-hero { color: var(--hn-white); background: radial-gradient(circle at 78% 18%, #272727 0, var(--hn-black) 34%, #090909 78%); }
.hn-hero__inner { padding-top: 14px; padding-bottom: 14px; }
.hn-hero h1 { margin: 0; font: 900 var(--hn-page)/1 Arial, sans-serif; letter-spacing: -.02em; }
.hn-hero h1 span { color: var(--hn-yellow); }
.hn-hero p { margin: 7px 0 0; color: #deddd7; font-size: var(--hn-copy); line-height: 1.6; }
.hn-counts { padding-top: 18px; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; }
.hn-counts div { padding: 10px 12px; background: var(--hn-white); border: 1px solid var(--hn-line); border-radius: 11px; box-shadow: 0 8px 22px rgba(17,17,17,.06); }
.hn-counts strong { display: block; font: 900 28px/1 Arial, sans-serif; }
.hn-counts span { display: block; margin-top: 5px; color: var(--hn-muted); font: 800 8px/1 var(--hn-mono); }
.hn-section { padding-top: 18px; padding-bottom: 72px; }
.hn-section__head { margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--hn-black); }
.hn-section__head p { margin: 0 0 6px; color: var(--hn-muted); font: 800 var(--hn-label)/1 var(--hn-mono); letter-spacing: .12em; }
.hn-section__head h2 { margin: 0; font-size: var(--hn-section); line-height: 1.1; letter-spacing: -.02em; }
.hn-tools { margin-bottom: 9px; display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: 7px; }
.hn-search input { width: 100%; height: 36px; padding: 0 12px; background: var(--hn-white); border: 1px solid var(--hn-line); border-radius: 12px; outline: none; font-size: 12px; }
.hn-search input:focus { border-color: var(--hn-black); box-shadow: 0 0 0 3px rgba(255,216,74,.42); }
.hn-filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.hn-filter { min-height: 36px; padding: 0 12px; color: var(--hn-black); background: var(--hn-white); border: 1px solid var(--hn-line); border-radius: 12px; cursor: pointer; font: 800 9px/1 var(--hn-mono); }
.hn-filter:hover, .hn-filter.is-active { background: var(--hn-yellow); box-shadow: inset 0 0 0 1px var(--hn-black); }
.hn-result { margin: 0 0 10px; color: var(--hn-muted); font: 700 9px/1 var(--hn-mono); }
.hn-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.hn-card { min-width: 0; overflow: hidden; background: var(--hn-white); border: 1px solid rgba(17,17,17,.16); border-radius: 17px; box-shadow: 0 8px 22px rgba(17,17,17,.08); transition: transform .18s ease, box-shadow .18s ease; }
.hn-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(17,17,17,.14); }
.hn-card[hidden] { display: none; }
.hn-card__image { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--hn-black); }
.hn-card__image img { width: 100%; height: 100%; object-fit: cover; }
.hn-card__type, .hn-card__state { position: absolute; top: 9px; padding: 5px 7px 4px; color: var(--hn-black); background: var(--hn-yellow); border-radius: 999px; font: 900 8px/1 var(--hn-mono); }
.hn-card__type { left: 9px; }
.hn-card__state { right: 9px; }
.hn-card--movie .hn-card__state { font-size: 13px; }
.hn-card__body { padding: 10px; }
.hn-card__body h2 { margin: 0; font-size: var(--hn-card); line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hn-card__body p { margin: 8px 0 0; display: flex; justify-content: space-between; gap: 8px; color: var(--hn-muted); font: 700 8px/1 var(--hn-mono); }
.hn-card--movie .hn-card__body { padding: 9px 10px 10px; }
.hn-score-directory { padding-bottom: 10px; }
.hn-score-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; }
.hn-score { min-width: 0; padding: 8px 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; color: var(--hn-black); background: var(--hn-white); border: 1px solid var(--hn-line); border-radius: 11px; box-shadow: 0 8px 22px rgba(17,17,17,.07); cursor: pointer; }
.hn-score:hover, .hn-score.is-active { background: var(--hn-yellow); border-color: var(--hn-black); }
.hn-score span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font: 900 18px/1 Arial, sans-serif; }
.hn-score strong { margin-left: 8px; font: 900 34px/1 Arial, sans-serif; }
.hn-score strong::after { content: " LOGS"; font: 800 7px/1 var(--hn-mono); }
.hn-section--log { padding-top: 10px; }
.hn-archived { margin-bottom: 18px; padding: 16px; display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: stretch; background: var(--hn-yellow); border-radius: 17px; }
.hn-archived > p { margin: auto 10px auto 0; font: 900 9px/1 var(--hn-mono); }
.hn-archived a { padding: 12px; display: flex; flex-direction: column; background: var(--hn-white); border-radius: 12px; }
.hn-archived strong { font-size: var(--hn-card); }
.hn-archived span { margin-top: 8px; color: var(--hn-muted); font: 700 7px/1 var(--hn-mono); }
.hn-philosophy { background: var(--hn-yellow); }
.hn-philosophy__inner { padding-top: 38px; padding-bottom: 38px; display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; }
.hn-philosophy img { width: 100%; border-radius: 22px; }
.hn-philosophy p { margin: 0; font-size: var(--hn-copy); line-height: 1.6; }
.hn-philosophy h2 { margin: 6px 0; font-size: var(--hn-section); }
.hn-article { padding-top: 34px; padding-bottom: 72px; max-width: 960px; }
.hn-article__head p { margin: 0 0 8px; color: var(--hn-muted); font: 800 var(--hn-label)/1 var(--hn-mono); }
.hn-article__head h1 { margin: 0; font-size: var(--hn-page); line-height: 1.45; }
.hn-article__featured { margin: 22px 0; aspect-ratio: 16/9; overflow: hidden; border-radius: 17px; }
.hn-article__featured img { width: 100%; height: 100%; object-fit: cover; }
.hn-content { margin-top: 28px; font-size: 17px; line-height: 1.95; }
.hn-content .p-toc { display: none !important; }
.hn-content p { margin: 0 0 1.55em; }
.hn-content p:empty { min-height: 1em; }
.hn-content ul, .hn-content ol { margin: 0 0 1.55em; padding-left: 1.6em; }
.hn-content ul { list-style: disc outside !important; }
.hn-content ol { list-style: decimal outside !important; }
.hn-content li { display: list-item; }
.hn-content li::marker { color: var(--hn-black); font-weight: 900; }
.hn-content li + li { margin-top: .45em; }
.hn-content figure, .hn-content blockquote, .hn-content pre, .hn-content table { margin-top: 1.8em; margin-bottom: 1.8em; }
.hn-content blockquote { padding: 1.1em 1.25em; background: var(--hn-white); border-left: 5px solid var(--hn-yellow); border-radius: 0 12px 12px 0; }
.hn-content a { text-decoration: underline; text-decoration-color: var(--hn-yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.hn-content h2 { position: relative; isolation: isolate; margin: 2.2em 6px 1.5em 0; padding: .72em 1em; color: var(--hn-black); background: var(--hn-white); border: 1px solid var(--hn-black); box-shadow: -5px -5px 0 var(--hn-yellow); font-size: 1.3em; line-height: 1.45; }
.hn-content h2::after { content: ""; position: absolute; inset: 5px -6px -6px 5px; z-index: -1; background: transparent; border: 1px solid var(--hn-black); }
.hn-content h3 { position: relative; isolation: isolate; width: fit-content; max-width: 100%; min-height: 3.4em; margin: 2em 0 1.5em; padding: .85em 1.6em; display: block; text-align: left; font-size: 1.3em; line-height: 1.45; }
.hn-content h3::before, .hn-content h3::after { content: ""; position: absolute; left: 1.6em; top: 50%; width: 2.45em; height: 2.45em; z-index: -1; -webkit-mask: linear-gradient(#000 0 0) left/calc(100% - .55em) 100% no-repeat, linear-gradient(#000 0 0) bottom right/.55em calc(100% - .55em) no-repeat; mask: linear-gradient(#000 0 0) left/calc(100% - .55em) 100% no-repeat, linear-gradient(#000 0 0) bottom right/.55em calc(100% - .55em) no-repeat; }
.hn-content h3::before { border: 3px solid var(--hn-yellow); transform: translate(calc(-50% - 4px),calc(-50% - 4px)) rotate(45deg); }
.hn-content h3::after { border: 1px solid var(--hn-black); transform: translate(-50%,-50%) rotate(45deg); }
.hn-index-target { scroll-margin-top: 24px; }
.hn-index[hidden] { display: none; }
.hn-index { margin: 24px 0 30px; padding: 18px; display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 20px; background: var(--hn-white); border: 1px solid var(--hn-line); border-radius: 17px; box-shadow: 0 8px 22px rgba(17,17,17,.07); }
.hn-index > div { padding: 12px; align-self: start; color: var(--hn-black); background: var(--hn-yellow); border-radius: 12px; }
.hn-index > div span { display: block; font: 800 7px/1 var(--hn-mono); }
.hn-index > div strong { display: block; margin-top: 7px; font: 900 22px/1 Arial, sans-serif; }
.hn-index ol { margin: 0; padding: 0; list-style: none; }
.hn-index li { border-bottom: 1px solid var(--hn-line); }
.hn-index li:last-child { border-bottom: 0; }
.hn-index li a { padding: 9px 4px; display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: baseline; font-size: 14px; line-height: 1.5; }
.hn-index li a::before { content: attr(data-hn-number); color: var(--hn-muted); font: 800 10px/1 var(--hn-mono); }
.hn-index li.is-sub a { padding-left: 14px; color: var(--hn-muted); font-size: 13px; }
.hn-index li a:hover { color: #8a6a00; }
.hn-post-footer { margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--hn-black); }
.hn-post-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.hn-post-terms > span { margin-right: 3px; font: 900 8px/1 var(--hn-mono); }
.hn-post-terms a { padding: 7px 9px; background: var(--hn-white); border: 1px solid var(--hn-line); border-radius: 999px; font-size: 9px; }
.hn-post-terms a:hover { background: var(--hn-yellow); border-color: var(--hn-black); }
.hn-post-nav { margin-top: 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.hn-post-nav > a { min-width: 0; padding: 14px; display: flex; flex-direction: column; color: var(--hn-white); background: var(--hn-black); border-radius: 13px; }
.hn-post-nav > a:last-child { text-align: right; }
.hn-post-nav > a:hover { color: var(--hn-black); background: var(--hn-yellow); }
.hn-post-nav span { color: var(--hn-yellow); font: 800 7px/1 var(--hn-mono); }
.hn-post-nav > a:hover span { color: var(--hn-black); }
.hn-post-nav strong { margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.hn-related { margin-top: 34px; }
.hn-grid--related { gap: 10px; }
.hn-grid--related .hn-card__body h2 { font-size: 10px; }
.hn-explore { margin-top: 26px; padding: 8px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; background: var(--hn-yellow); border-radius: 15px; }
.hn-explore a { min-width: 0; padding: 12px 10px; display: flex; flex-direction: column; background: var(--hn-white); border-radius: 10px; }
.hn-explore a:hover { color: var(--hn-white); background: var(--hn-black); }
.hn-explore span { color: var(--hn-muted); font: 800 7px/1 var(--hn-mono); }
.hn-explore strong { margin-top: 6px; font-size: 10px; }
.hn-pagination { margin-top: 26px; }
.hn-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hn-pagination .page-numbers { min-width: 34px; min-height: 34px; padding: 8px; display: grid; place-items: center; background: var(--hn-white); border: 1px solid var(--hn-line); border-radius: 10px; font: 800 8px/1 var(--hn-mono); }
.hn-pagination .page-numbers.current, .hn-pagination .page-numbers:hover { background: var(--hn-yellow); border-color: var(--hn-black); }
.hn-footer { color: var(--hn-white); background: var(--hn-black); }
.hn-footer > .hn-wrap { padding-top: 34px; padding-bottom: 22px; }
.hn-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.hn-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; font: 700 9px/1.4 var(--hn-mono); }
.hn-footer nav a:hover { color: var(--hn-yellow); }
.hn-footer__bottom { margin: 20px 0 0; padding-top: 16px; display: flex; justify-content: space-between; border-top: 1px solid #333; color: #96958f; font: 700 8px/1 var(--hn-mono); }
@media (max-width: 1023px) {
  .hn-wrap { padding-inline: 22px; }
  .hn-counts, .hn-score-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hn-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .hn-content { font-size: 16px; }
  .hn-content h2, .hn-content h3 { font-size: 1.15em; }
}
@media (max-width: 599px) {
  :root { --hn-page: 18px; --hn-section: 16px; --hn-card: 10px; --hn-copy: 9px; --hn-label: 7px; }
  .hn-wrap { padding-inline: 12px; }
  .hn-header__inner { min-height: auto; padding-top: 10px; padding-bottom: 8px; display: block; }
  .hn-brand img { width: 42px; border-radius: 11px; }
  .hn-brand strong { font-size: 18px; }
  .hn-nav { margin-top: 8px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  .hn-nav a { padding: 8px 3px; text-align: center; font-size: 7px; }
  .hn-hero__inner { padding-top: 9px; padding-bottom: 9px; }
  .hn-counts { padding-top: 12px; gap: 5px; }
  .hn-counts div { padding: 7px 6px; }
  .hn-counts strong { font-size: 21px; }
  .hn-counts span { font-size: 6px; }
  .hn-section { padding-top: 13px; padding-bottom: 48px; }
  .hn-tools { grid-template-columns: 1fr; gap: 6px; }
  .hn-filter-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hn-filter { padding-inline: 4px; }
  .hn-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .hn-card { border-radius: 11px; }
  .hn-card:hover { transform: none; }
  .hn-card__type, .hn-card__state { top: 6px; padding: 4px 6px 3px; font-size: 6px; }
  .hn-card__type { left: 6px; }
  .hn-card__state { right: 6px; }
  .hn-card--movie .hn-card__state { font-size: 10px; }
  .hn-card__body, .hn-card--movie .hn-card__body { padding: 7px 8px 8px; }
  .hn-score-directory { padding-bottom: 8px; }
  .hn-score-grid { gap: 5px; }
  .hn-score { padding: 7px 6px; border-radius: 9px; }
  .hn-score span { font-size: 12px; }
  .hn-score strong { margin-left: 4px; font-size: 25px; }
  .hn-score strong::after { display: block; font-size: 6px; text-align: right; }
  .hn-section--log { padding-top: 8px; }
  .hn-archived { grid-template-columns: 1fr 1fr; padding: 10px; }
  .hn-archived > p { grid-column: 1/-1; margin: 0 0 2px; }
  .hn-philosophy__inner { grid-template-columns: 70px 1fr; gap: 14px; padding-top: 24px; padding-bottom: 24px; }
  .hn-article { padding-top: 24px; }
  .hn-content { font-size: 15px; }
  .hn-content h2, .hn-content h3 { font-size: 1.08em; }
  .hn-index { margin: 18px 0 24px; padding: 10px; grid-template-columns: 78px minmax(0,1fr); gap: 10px; border-radius: 12px; }
  .hn-index > div { padding: 9px 7px; border-radius: 9px; }
  .hn-index > div strong { font-size: 16px; }
  .hn-index li a { padding-block: 7px; grid-template-columns: 32px 1fr; gap: 5px; font-size: 10px; }
  .hn-index li.is-sub a { padding-left: 10px; font-size: 9px; }
  .hn-post-footer { margin-top: 38px; }
  .hn-post-nav { grid-template-columns: 1fr; }
  .hn-post-nav > a:last-child { text-align: left; }
  .hn-grid--related { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hn-explore { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hn-footer__top, .hn-footer__bottom { align-items: flex-start; flex-direction: column; }
  .hn-footer nav { justify-content: flex-start; }
}


.hn-game-directory { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.hn-game-directory button { min-width: 0; min-height: 92px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; color: var(--hn-white); background: var(--hn-black); border: 0; border-radius: 13px; cursor: pointer; }
.hn-game-directory button:hover, .hn-game-directory button.is-active { color: var(--hn-black); background: var(--hn-yellow); }
.hn-game-directory strong { font-size: var(--hn-card); line-height: 1.4; overflow-wrap: anywhere; }
.hn-game-directory span { margin-top: 10px; color: inherit; font: 800 7px/1 var(--hn-mono); }
.hn-section__head--log { margin-top: 18px; }
@media (max-width: 1023px) {
  .hn-game-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 599px) {
  .hn-game-directory { gap: 6px; }
  .hn-game-directory button { min-height: 76px; padding: 9px; border-radius: 10px; }
}
