/* ==========================================================================
   トップページ: MouseLog（views/index.ejs）・PadLog（views/pad-index.ejs）共通 — 案A 誌面ヘッダ型
   すべて main.hp-page の中だけに効かせる（PadLog は main.hp-page.hp-page--pad）。
   style.css の section / h1〜h3 / ol li / main の既定値はここで打ち消す。
   星だけオレンジ（#f39c12）、ほかは白黒。
   ブレークポイント: 1023px（タブレット）/ 767px（スマホ）
   ========================================================================== */

main.hp-page {
    display: block;
    width: auto;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 48px;
    color: #111;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: clip;
}
.hp-page *, .hp-page *::before, .hp-page *::after { box-sizing: border-box; }
.hp-page a { color: inherit; text-decoration: none; }
.hp-page a:focus-visible, .hp-page button:focus-visible, .hp-page input:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
:where(.hp-page) section {
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}
.hp-page section:hover { transform: none; }
.hp-page h1, .hp-page h2, .hp-page h3 {
    text-align: left;
    border: 0;
    padding: 0;
    margin: 0;
    color: #111;
    position: static;
}
.hp-page h1::after, .hp-page h2::after, .hp-page h3::after { content: none; }
.hp-page ol, .hp-page ul { list-style: none; margin: 0; padding: 0; }
.hp-page li { margin: 0; }
.hp-page p { margin: 0; }
.hp-page img { max-width: 100%; }
.hp-sp { flex: 1; min-width: 0; }
.hp-empty { font-size: 13px; color: #777; padding: 14px 0; }

/* 星（オレンジ） */
.hp-st { color: #f39c12; letter-spacing: 1px; white-space: nowrap; }
.hp-st .off { color: #ddd; }

/* 共通の小見出し・見出し帯 */
.hp-kick {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px;
    letter-spacing: .22em;
    color: #666;
    margin: 0 0 6px;
    line-height: 1.5;
}
.hp-page .hp-sec { margin: 44px 40px 0; min-width: 0; }
.hp-hd { display: flex; align-items: center; gap: 12px; border-bottom: 4px solid #111; padding-bottom: 8px; min-width: 0; }
.hp-page .hp-hd h2 { font-size: 42px; font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 0; }
.hp-cnt {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 13px;
    font-weight: 700;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 1px 9px;
    align-self: flex-start;
    line-height: 1.6;
}
.hp-page .hp-more { font-size: 13px; font-weight: 800; border-bottom: 1.5px solid #111; white-space: nowrap; line-height: 1.5; }
.hp-page .hp-more:hover { background: #f3f3f3; }
.hp-ja { font-size: 12px; color: #777; margin: 6px 0 0; }

/* ── 検索帯 ── */
.hp-page .hp-band { background: #f3f3f3; padding: 34px 40px 26px; border-bottom: 1.5px solid #111; }
.hp-page .hp-lead { font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 16px; }
.hp-lead small {
    display: block;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    font-weight: 400;
    color: #777;
    letter-spacing: .1em;
    margin-top: 4px;
}
.hp-big-sform { display: flex; gap: 10px; align-items: flex-end; }
.hp-big-sform input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-bottom: 1.5px solid #111;
    border-radius: 0;
    background: transparent;
    padding: 10px 2px;
    margin: 0;
    font: inherit;
    font-size: 22px;
    font-weight: 700;
    color: #111;
    -webkit-appearance: none;
    appearance: none;
}
.hp-big-sform input:focus { outline: none; border-bottom-width: 2.5px; }
.hp-big-sform button {
    flex: none;
    border: 0;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 12px 28px;
    margin: 0;
    font: inherit;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
}
.hp-big-sform button:hover { background: #333; }
/* style.css のスマホ用 button[type="submit"] { width: 100% } を打ち消す */
.hp-page .hp-big-sform button { width: auto; }
/* PadLog の絞り込みチップ */
.hp-flt { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 16px 0 0; }
.hp-flt p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hp-flt i { font-style: normal; font-size: 11px; color: #777; margin-right: 2px; }
.hp-page .hp-flt p a {
    border: 1.5px solid #111;
    border-radius: 999px;
    padding: 2px 11px;
    font-size: 12.5px;
    font-weight: 700;
    background: #fff;
    line-height: 1.5;
}
.hp-page .hp-flt p a:hover { background: #111; color: #fff; }

/* ── アカウント案内（ログアウト時） ── */
.hp-page .hp-inv {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    margin: 28px 40px 0;
    border-top: 1.5px solid #111;
    border-bottom: 1.5px solid #111;
}
.hp-invl { padding: 18px 24px 18px 0; border-right: 1px solid #ddd; min-width: 0; }
.hp-page .hp-invl h2 { font-size: 24px; font-weight: 900; line-height: 1.35; margin: 0 0 12px; }
.hp-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.hp-page .hp-feat li { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; font-weight: 700; padding: 7px 0; border-top: 1px solid #e3e3e3; }
.hp-feat b { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #888; }
.hp-invr { padding: 18px 0 18px 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hp-page .hp-btn { display: block; text-align: center; border-radius: 999px; padding: 11px 10px; font-weight: 800; font-size: 14px; line-height: 1.4; }
.hp-page .hp-btn--dc { background: #5865F2; color: #fff; }
.hp-page .hp-btn--x { background: #111; color: #fff; }
.hp-page .hp-btn:hover { opacity: .88; }
.hp-note { font-size: 11px; color: #888; margin: 2px 0 0; line-height: 1.6; }

/* ── ME ブロック（ログイン時） ── */
.hp-page .hp-mine {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    margin: 28px 40px 0;
    border-top: 1.5px solid #111;
    border-bottom: 1.5px solid #111;
}
.hp-page .hp-mine--solo { grid-template-columns: minmax(0, 420px); }
.hp-minel { padding: 18px 24px 20px 0; border-right: 1px solid #ddd; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hp-mine--solo .hp-minel { border-right: 0; }
.hp-minel .hp-kick { margin: 0; }
.hp-who { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.hp-meav, .hp-av {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-weight: 800;
    line-height: 1;
    flex: none;
    overflow: hidden;
    font-style: normal;
}
.hp-meav { width: 52px; height: 52px; font-size: 22px; }
.hp-meav img, .hp-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #e6e6e6; }
.hp-wname { font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; min-width: 0; }
.hp-wname--unset { font-size: 16px; color: #c0392b; letter-spacing: 0; }
.hp-unotice { font-size: 12px; color: #666; margin-top: -8px; }
.hp-bdg {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 1.5;
}
.hp-stat { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.hp-stat div { padding: 10px 0; min-width: 0; }
.hp-stat div + div { border-left: 1px solid #ddd; padding-left: 14px; }
.hp-stat dt { font-family: ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 400; letter-spacing: .14em; color: #777; text-transform: uppercase; line-height: 1.4; }
.hp-stat dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; }
.hp-stat dd b { font-family: ui-monospace, Menlo, monospace; font-size: 30px; font-weight: 900; line-height: 1; margin-right: 3px; font-variant-numeric: tabular-nums; }
.hp-stat dd i { font-style: normal; color: #e0245e; font-size: 15px; }
.hp-pills { display: flex; gap: 8px; }
.hp-page .hp-pill {
    flex: 1;
    text-align: center;
    border-radius: 999px;
    padding: 9px 6px;
    font-weight: 800;
    font-size: 13px;
    border: 1.5px solid #111;
    background: #fff;
    color: #111;
    white-space: nowrap;
    line-height: 1.4;
}
.hp-page .hp-pill--b { background: #111; color: #fff; }
.hp-miner { padding: 18px 0 14px 24px; min-width: 0; }
.hp-rech { display: flex; align-items: center; gap: 10px; }
.hp-rech .hp-kick { margin: 0; }
.hp-page .hp-rect { font-size: 24px; font-weight: 900; line-height: 1.3; margin: 6px 0 2px; }
.hp-recs { font-size: 12px; color: #666; margin: 0 0 6px; }
.hp-seg { display: inline-flex; border: 1.5px solid #111; border-radius: 999px; overflow: hidden; margin: 4px 0 10px; max-width: 100%; }
.hp-seg button {
    font: inherit;
    font-size: 12.5px;
    font-weight: 800;
    background: #fff;
    color: #111;
    border: 0;
    border-radius: 0;
    padding: 6px 16px;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.5;
}
.hp-seg button + button { border-left: 1.5px solid #111; }
.hp-seg button[aria-selected=true] { background: #111; color: #fff; }
.hp-seg i { font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; letter-spacing: .1em; border: 1px solid currentColor; border-radius: 999px; padding: 0 5px; line-height: 1.5; }
.hp-gpanel[hidden] { display: none; }
.hp-rec { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 28px; border-top: 1.5px solid #111; }
.hp-page .hp-rec a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e3e3e3; min-width: 0; }
.hp-page .hp-rec a:hover { background: #f6f6f6; }
.hp-rec .hp-no { font-size: 18px; width: 20px; }
.hp-rec .hp-rkn small { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; font-weight: 400; color: #555; margin-top: 1px; }
.hp-rec .hp-rkv { font-size: 11px; white-space: nowrap; text-align: right; }
.hp-rec .hp-rkv b { font-family: ui-monospace, Menlo, monospace; font-size: 15px; margin-left: 2px; }
.hp-rec .hp-rkv .hp-st { display: block; font-size: 12px; letter-spacing: 0; }
.hp-rec .hp-rkv small { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: #777; }

/* ── TOPIC（ブログ） ── */
.hp-blog { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; margin-top: 18px; }
.hp-lead-post { display: block; min-width: 0; }
.hp-bimg { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; border: 1px solid #ddd; background: #f3f3f3; }
.hp-bt { display: block; font-size: 19px; font-weight: 900; line-height: 1.45; margin-top: 10px; overflow-wrap: anywhere; }
.hp-bd, .hp-posts small { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #888; }
.hp-page .hp-posts li a { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid #e3e3e3; }
.hp-pimg { width: 132px; aspect-ratio: 2 / 1; object-fit: cover; border: 1px solid #ddd; background: #f3f3f3; display: block; }
.hp-posts b { display: block; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.hp-lead-post:hover .hp-bt, .hp-posts a:hover b { text-decoration: underline; }
.hp-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.hp-2--txt { margin-top: 22px; }
.hp-page .hp-rk h3, .hp-page .hp-h3 {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    margin: 18px 0 0;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #111;
    line-height: 1.5;
}
.hp-h3 span { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; letter-spacing: 0; color: #777; font-weight: 400; margin-left: 8px; font-size: 11.5px; }
.hp-page .hp-tl li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e3e3e3; font-size: 13.5px; }
.hp-tl a { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.hp-tl a:hover { text-decoration: underline; }
.hp-tl span { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #888; white-space: nowrap; flex: none; }

/* ── LATEST REVIEWS：製品画像の横一列（この箱の中だけで横スクロール） ── */
.hp-lr {
    margin: 18px 0 0;
    padding: 0 0 10px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 164px;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    max-width: 100%;
}
.hp-lr li { scroll-snap-align: start; min-width: 0; }
.hp-lr a { display: flex; flex-direction: column; min-width: 0; }
.hp-lrimg { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f3f3f3; mix-blend-mode: multiply; border-bottom: 1.5px solid #111; display: block; }
.hp-lr a:hover .hp-lrimg { background: #e8e8e8; }
.hp-lr em { font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: .14em; color: #888; text-transform: uppercase; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-lr b { font-size: 13.5px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-lr .hp-st { font-size: 13px; margin-top: 3px; }
.hp-lrm { display: flex; flex-wrap: wrap; gap: 0 8px; font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: #555; margin-top: 3px; line-height: 1.5; }
.hp-lrm time { color: #999; }

/* ── RANKING ── */
.hp-page .hp-rk li a, .hp-page .hp-us li a { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e3e3e3; min-width: 0; }
.hp-page .hp-rk li a:hover, .hp-page .hp-us li a:hover { background: #f6f6f6; }
.hp-no { font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 900; width: 26px; flex: none; text-align: center; font-variant-numeric: tabular-nums; }
.hp-rkimg { width: 48px; height: 48px; object-fit: contain; flex: none; mix-blend-mode: multiply; display: block; }
.hp-noimg { background: #f3f3f3; border-radius: 4px; }
.hp-rkn, .hp-un { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.hp-rkn em { display: block; font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: .14em; color: #888; font-weight: 400; text-transform: uppercase; }
.hp-rkv { font-size: 12px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.hp-rkv b { font-size: 17px; margin-left: 2px; }
.hp-rkv .hp-st { font-size: 11px; display: block; letter-spacing: 0; }
.hp-rkv--cnt { font-family: ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 800; }

/* ── NEW MOUSE / NEW MOUSEPADS：タイルの横一列 ── */
.hp-nt { margin: 18px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; }
.hp-nt a { display: flex; flex-direction: column; min-width: 0; }
.hp-ntimg { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; border-bottom: 1px solid #ddd; display: block; }
.hp-ntb { display: flex; flex-direction: column; min-width: 0; padding-top: 8px; }
.hp-ntb em { font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: .14em; color: #888; text-transform: uppercase; }
.hp-ntb b { font-size: 14px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.hp-ntb small { font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 700; margin-top: 2px; }
.hp-nt a:hover b { text-decoration: underline; }

/* ── REVIEWERS：5人×2列（左 1〜5・右 6〜10） ── */
.hp-us { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 40px; margin-top: 10px; }
.hp-av { width: 30px; height: 30px; font-size: 13px; background: #e6e6e6; color: #555; }
.hp-uv { font-size: 13px; font-weight: 800; white-space: nowrap; text-align: right; flex: none; }
.hp-uv small { display: block; font-weight: 400; color: #888; font-size: 11px; }

/* ── MANUFACTURERS：大きめのタイル格子 ── */
.hp-mk { margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; border-top: 1.5px solid #111; }
.hp-page .hp-mk a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 4px; border-bottom: 1px solid #d6d6d6; min-width: 0; }
.hp-page .hp-mk a:hover { background: #f4f4f4; }
.hp-mk span { font-size: 17px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; }
.hp-mk small { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #888; flex: none; font-variant-numeric: tabular-nums; }

/* ── タブレット ── */
@media (max-width: 1023px) {
    .hp-page .hp-sec { margin: 40px 24px 0; }
    .hp-page .hp-band { padding: 28px 24px 22px; }
    .hp-page .hp-inv, .hp-page .hp-mine { margin: 24px 24px 0; }
    .hp-page .hp-mine { grid-template-columns: 240px minmax(0, 1fr); }
    .hp-rec { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
    .hp-nt { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
    .hp-mk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hp-us { column-gap: 24px; }
}

/* ── スマホ ── */
@media (max-width: 767px) {
    .hp-page .hp-band { padding: 22px 16px 18px; }
    .hp-page .hp-lead { font-size: 21px; }
    .hp-big-sform input { font-size: 17px; }
    .hp-big-sform button { padding: 10px 18px; }
    .hp-flt { gap: 8px 16px; }
    .hp-page .hp-inv { grid-template-columns: 1fr; margin: 22px 16px 0; }
    .hp-invl { border-right: 0; padding: 16px 0 12px; }
    .hp-page .hp-invl h2 { font-size: 19px; }
    .hp-feat { grid-template-columns: 1fr; }
    .hp-invr { padding: 12px 0 16px; border-top: 1px solid #ddd; }
    .hp-page .hp-mine, .hp-page .hp-mine--solo { grid-template-columns: 1fr; margin: 22px 16px 0; }
    .hp-minel { border-right: 0; padding: 16px 0; }
    .hp-mine:not(.hp-mine--solo) .hp-minel { border-bottom: 1px solid #ddd; }
    .hp-meav { width: 44px; height: 44px; font-size: 19px; }
    .hp-wname { font-size: 20px; }
    .hp-miner { padding: 14px 0 10px; }
    .hp-rech { flex-wrap: wrap; row-gap: 2px; }
    .hp-page .hp-rect { font-size: 20px; }
    .hp-seg { display: flex; width: 100%; }
    .hp-seg button { flex: 1; justify-content: center; padding: 7px 4px; font-size: 12px; gap: 4px; min-width: 0; white-space: normal; text-align: center; }
    .hp-seg i { font-size: 8.5px; padding: 0 4px; }
    .hp-page .hp-sec { margin: 34px 16px 0; }
    .hp-page .hp-hd h2 { font-size: 28px; }
    .hp-hd { flex-wrap: wrap; }
    .hp-2, .hp-blog { grid-template-columns: 1fr; gap: 0; }
    .hp-blog { gap: 16px; }
    .hp-page .hp-posts li a { grid-template-columns: 100px minmax(0, 1fr); }
    .hp-pimg { width: 100px; }
    .hp-bt { font-size: 16px; }
    .hp-lr { grid-auto-columns: 128px; gap: 12px; margin-right: -16px; padding-right: 16px; }
    .hp-lr b { font-size: 12.5px; }
    .hp-nt { grid-template-columns: 1fr; grid-auto-flow: row; gap: 0; }
    .hp-nt a { flex-direction: row; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e3e3e3; }
    .hp-ntimg { width: 56px; flex: none; border-bottom: 0; }
    .hp-ntb { padding-top: 0; }
    .hp-us { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
    .hp-mk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
    .hp-page .hp-mk a { padding: 12px 2px; }
    .hp-mk span { font-size: 15px; }
}
