/* ============================================================
   LSG Game List — フロント用スタイル
   すべて .lsg_app 配下にスコープ(テーマCSSとは別ページで読み込まれ、干渉しない)。
   ブレークポイント: 640 / 768 / 1024 / 1280 / 1536
   ============================================================ */
html, body { margin: 0; padding: 0; }

.lsg_app {
  --lsg-bg: #f6f7f9;
  --lsg-surface: #ffffff;
  --lsg-subtle: #eceef3;
  --lsg-text: #1a1e27;
  --lsg-muted: #667085;
  --lsg-border: #e3e6ec;
  --lsg-accent: #4f46e5;
  --lsg-accent-rgb: 79, 70, 229;
  --lsg-accent-soft: #eceeff;
  --lsg-ring: #1a1e27;
  --lsg-mmo: #0e8f7e;
  --lsg-gacha: #d6336c;
  --lsg-ok: #22a45d;
  --lsg-radius: 12px;
  --lsg-shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 14px rgba(16,24,40,.06);
  --lsg-ease: cubic-bezier(.4, 0, .2, 1);
  --lsg-header-h: 64px;
  /* WordPressの管理バーなどで固定ヘッダーをずらしたい時に上書きする */
  --lsg-top-offset: 0px;
  --lsg-page-bg: var(--lsg-bg);   /* ヒーロー内で配色を上書きしても、ページ本来の背景色を参照できるように */
  background: var(--lsg-bg);
  color: var(--lsg-text);
  min-height: 100vh;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
.lsg_app[data-theme="dark"] {
  --lsg-bg: #0f1218;
  --lsg-surface: #171b23;
  --lsg-subtle: #212733;
  --lsg-text: #e8eaf0;
  --lsg-muted: #98a2b3;
  --lsg-border: #272d3a;
  --lsg-accent: #8f97ff;
  --lsg-accent-rgb: 143, 151, 255;
  --lsg-accent-soft: #212647;
  --lsg-ring: #d4d7e0;
  --lsg-mmo: #34d3bd;
  --lsg-gacha: #ff6b9d;
  --lsg-ok: #3ddc84;
  --lsg-shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.35);
  color-scheme: dark;
}
.lsg_app *, .lsg_app *::before, .lsg_app *::after { box-sizing: border-box; }
.lsg_app h1, .lsg_app h2, .lsg_app h3, .lsg_app p, .lsg_app ul, .lsg_app dl, .lsg_app dd, .lsg_app figure { margin: 0; padding: 0; }
.lsg_app ul { list-style: none; }
.lsg_app a { color: inherit; text-decoration: none; }
.lsg_app button, .lsg_app input, .lsg_app select { font: inherit; color: inherit; }
.lsg_app :focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px var(--lsg-bg), 0 0 0 4px var(--lsg-ring); }
.lsg_app input:focus-visible, .lsg_app select:focus-visible { box-shadow: 0 0 0 2px var(--lsg-ring); }

/* 画面左下のモック用ドック(ダミー表示の注記+表示切替) */

/* ---------- header (固定・最上部では透過) ---------- */
.lsg_header { position: fixed; top: var(--lsg-top-offset); left: 0; right: 0; z-index: 50; color: var(--lsg-text); background: color-mix(in srgb, var(--lsg-surface) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lsg-border); transition: all .3s var(--lsg-ease); }
.lsg_header[data-top="1"] { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* 暗いヒーロー(一覧・個別ページ)の上では、ヘッダー内だけ配色を白系に切り替える */
.lsg_header[data-top="1"][data-hero="dark"] { --lsg-text: #fff; --lsg-muted: rgba(255,255,255,.78); --lsg-accent-soft: rgba(255,255,255,.18); --lsg-bg: rgba(255,255,255,.14); --lsg-border: rgba(255,255,255,.3); --lsg-ring: #fff; }
.lsg_header_inner { max-width: 1536px; margin: 0 auto; padding: 0 16px; height: var(--lsg-header-h); display: flex; align-items: center; gap: 16px; }
.lsg_logo { font-weight: 800; letter-spacing: .04em; font-size: 16px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.lsg_logo_mark { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--lsg-accent), var(--lsg-gacha)); flex: none; }
.lsg_nav { display: flex; gap: 4px; }
@media (max-width: 639px) { .lsg_nav { display: none; } .lsg_logo_text { display: none; } }
.lsg_nav a { padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--lsg-muted); transition: color .15s var(--lsg-ease), background-color .15s var(--lsg-ease); }
.lsg_nav a:hover, .lsg_nav a[aria-current="page"] { color: var(--lsg-text); background: var(--lsg-accent-soft); }
.lsg_header_tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 1 360px; min-width: 0; justify-content: flex-end; }
.lsg_header_search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 320px; }
.lsg_header_search input { width: 100%; height: 36px; border-radius: 10px; border: 1px solid var(--lsg-border); background: var(--lsg-bg); padding: 0 12px 0 34px; transition: border-color .15s var(--lsg-ease), background-color .15s var(--lsg-ease); }
.lsg_header_search input::placeholder { color: var(--lsg-muted); }
.lsg_header_search svg { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: var(--lsg-muted); pointer-events: none; }
.lsg_icon_btn { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--lsg-border); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background-color .15s var(--lsg-ease), border-color .15s var(--lsg-ease); }
.lsg_icon_btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .lsg_icon_btn:hover { background: var(--lsg-accent-soft); } }

/* ---------- hero (list) ---------- */
.lsg_hero_list { background: linear-gradient(120deg, #1d2a5b, #4f46e5 55%, #c2410c); color: #fff; }
.lsg_hero_list_inner { max-width: 1600px; margin: 0 auto; padding: calc(var(--lsg-header-h) + 40px) 16px 40px; }
.lsg_hero_list h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: .02em; }
.lsg_hero_list p { margin-top: 8px; max-width: 640px; opacity: .88; }

/* ---------- layout (一覧) ---------- */
.lsg_main { max-width: 1600px; margin: 0 auto; padding: 32px 12px; }
@media (min-width: 640px) { .lsg_main { padding: 40px 16px; } }
.lsg_main--offset { padding-top: calc(var(--lsg-header-h) + 32px); }
.lsg_layout { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) { .lsg_layout { flex-direction: row; align-items: flex-start; gap: 24px; } }
.lsg_content { min-width: 0; flex: 1; display: grid; gap: 32px; }

/* ---------- sidebar ---------- */
.lsg_side { display: none; background: var(--lsg-surface); border: 1px solid var(--lsg-border); border-radius: var(--lsg-radius); padding: 16px; gap: 16px; }
.lsg_side.is-open { display: grid; }
@media (min-width: 1024px) { .lsg_side { display: grid; position: sticky; top: calc(var(--lsg-top-offset) + 80px); width: 256px; flex: none; } }
@media (min-width: 1280px) { .lsg_side { width: 288px; } }
.lsg_side h2 { font-size: 12px; letter-spacing: .08em; color: var(--lsg-muted); font-weight: 700; margin-bottom: 8px; }
.lsg_field_input { width: 100%; height: 36px; border-radius: 9px; border: 1px solid var(--lsg-border); background: var(--lsg-bg); padding: 0 10px; }
.lsg_check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.lsg_check input { width: 16px; height: 16px; accent-color: var(--lsg-accent); }
.lsg_check small { color: var(--lsg-muted); margin-left: auto; }
.lsg_toggle_note { font-size: 12px; color: var(--lsg-muted); margin-top: 2px; }

/* ---------- sections / grid (一覧) ---------- */
.lsg_section_head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
@media (min-width: 640px) { .lsg_section_head { flex-direction: row; align-items: center; justify-content: space-between; } }
.lsg_section_head h2 { font-size: 20px; font-weight: 800; }
.lsg_section_head p { font-size: 13px; color: var(--lsg-muted); }
.lsg_head_left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lsg_filter_toggle { display: inline-flex; }
@media (min-width: 1024px) { .lsg_app .lsg_filter_toggle { display: none; } }
.lsg_sort { height: 34px; border-radius: 9px; border: 1px solid var(--lsg-border); background: var(--lsg-surface); padding: 0 8px; }

.lsg_grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .lsg_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .lsg_grid { gap: 16px; } }
@media (min-width: 1280px) { .lsg_grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1536px) { .lsg_grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.lsg_strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 10px; margin: -4px -4px 0; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.lsg_strip > * { flex: 0 0 70%; min-width: 0; scroll-snap-align: start; }
@media (min-width: 640px) { .lsg_strip > * { flex-basis: 50%; } }
@media (min-width: 768px) { .lsg_strip > * { flex-basis: 33.3333%; } }
@media (min-width: 1280px) {
  .lsg_strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; scroll-snap-type: none; padding: 0; margin: 0; }
  .lsg_strip > * { flex: none; }
}
@media (min-width: 1536px) { .lsg_strip { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.lsg_articles { display: grid; gap: 10px; }
.lsg_article { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--lsg-border); background: var(--lsg-surface); transition: border-color .15s var(--lsg-ease); }
@media (hover: hover) { .lsg_article:hover { border-color: rgba(var(--lsg-accent-rgb), .5); } }
.lsg_article_thumb { flex: 0 0 auto; width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; position: relative; overflow: hidden; }
@media (min-width: 640px) { .lsg_article_thumb { width: 144px; } }
.lsg_article_thumb span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75); letter-spacing: .04em; }
.lsg_article_body { min-width: 0; display: grid; gap: 4px; }
.lsg_article_title { font-size: 14px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lsg_article_meta { font-size: 12px; color: var(--lsg-muted); }
.lsg_articles_more { margin-top: 12px; display: flex; justify-content: flex-end; }
.lsg_articles_more a { font-size: 13px; color: var(--lsg-accent); }
@media (hover: hover) { .lsg_articles_more a:hover { text-decoration: underline; } }
.lsg_more { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0 8px; }
.lsg_more[hidden] { display: none; }
.lsg_more .lsg_btn { height: 38px; padding: 0 22px; }
.lsg_more_note { font-size: 12px; color: var(--lsg-muted); }
.lsg_sentinel { width: 100%; height: 1px; }
.lsg_empty { padding: 40px 12px; text-align: center; color: var(--lsg-muted); background: var(--lsg-surface); border: 1px dashed var(--lsg-border); border-radius: var(--lsg-radius); }

/* ---------- card ---------- */
.lsg_card { display: block; cursor: pointer; border-radius: var(--lsg-radius); }
.lsg_card_frame { position: relative; border-radius: var(--lsg-radius); overflow: hidden; box-shadow: 0 0 0 1px var(--lsg-border); transition: box-shadow .2s var(--lsg-ease); }
@media (hover: hover) {
  .lsg_card:hover .lsg_card_frame { box-shadow: 0 0 0 2px var(--lsg-accent), 0 0 12px 2px rgba(var(--lsg-accent-rgb), .5); }
}
.lsg_card:focus-visible .lsg_card_frame { box-shadow: 0 0 0 2px var(--lsg-accent); }
.lsg_card_cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.lsg_card_initials { font-size: 30px; font-weight: 900; letter-spacing: .04em; color: rgba(255,255,255,.55); text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.lsg_card_badge { position: absolute; top: 8px; left: 8px; }
.lsg_card_eos { position: absolute; top: 8px; right: 8px; }
.lsg_card_body { padding: 8px 2px 0; }
.lsg_card_title { font-size: 14px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsg_card_sub { font-size: 12px; color: var(--lsg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lsg_badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff; padding: 2px 8px; border-radius: 6px; line-height: 1.5; }
.lsg_badge--mmo { background: var(--lsg-mmo); }
.lsg_badge--gacha { background: var(--lsg-gacha); }
.lsg_badge--hs { background: #c2410c; }
.lsg_badge--morpg { background: #4f46e5; }
.lsg_badge--ow { background: #0369a1; }
.lsg_badge--st { background: #facc15; color: #1a1500; }
.lsg_badge--sh { background: #b91c1c; }
.lsg_badge--sv { background: #3f6212; }
.lsg_badge--tb { background: #a21caf; }
.lsg_badge--ar { background: #22d3ee; color: #04252e; }
.lsg_badge--eos { background: #475467; }
.lsg_app[data-theme="dark"] .lsg_badge--mmo, .lsg_app[data-theme="dark"] .lsg_badge--gacha { color: #0b0e14; }
.lsg_app[data-theme="dark"] .lsg_badge--hs { background: #ff9a57; color: #0b0e14; }
.lsg_app[data-theme="dark"] .lsg_badge--morpg { background: #a5a0ff; color: #0b0e14; }
.lsg_app[data-theme="dark"] .lsg_badge--ow { background: #5cc8f5; color: #0b0e14; }
.lsg_app[data-theme="dark"] .lsg_badge--st { background: #fde047; color: #0b0e14; }
.lsg_app[data-theme="dark"] .lsg_badge--sh { background: #ff8a8a; color: #0b0e14; }
.lsg_app[data-theme="dark"] .lsg_badge--sv { background: #a3e635; color: #0b0e14; }
.lsg_app[data-theme="dark"] .lsg_badge--tb { background: #f0abfc; color: #0b0e14; }
.lsg_app[data-theme="dark"] .lsg_badge--ar { background: #67e8f9; color: #0b0e14; }

.lsg_btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--lsg-border); background: var(--lsg-surface); font-size: 13px; cursor: pointer; transition: border-color .15s var(--lsg-ease), background-color .15s var(--lsg-ease); }
@media (hover: hover) { .lsg_btn:hover { border-color: var(--lsg-accent); } }
.lsg_link { color: var(--lsg-accent); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   個別ページ
   ============================================================ */
/* 汎用ツールチップ(data-tip) */
.lsg_app [data-tip] { position: relative; }
.lsg_app [data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: #111827; color: #fff; font-size: 11px; font-weight: 500; line-height: 1.4; padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s var(--lsg-ease); z-index: 30; }
.lsg_app [data-tip]:focus-visible::after { opacity: 1; }
@media (hover: hover) { .lsg_app [data-tip]:hover::after { opacity: 1; } }

/* ---------- hero(全幅・背景アート+下へフェード) ---------- */
.lsg_dhero { position: relative; overflow: hidden; padding-top: var(--lsg-header-h); margin-bottom: 32px;
  /* 背景画像は暗いものが多いため、ヒーロー内はライトテーマでもダークテーマの配色(白い文字)にする */
  --lsg-bg: #0f1218; --lsg-surface: #171b23; --lsg-subtle: #212733; --lsg-text: #fff; --lsg-muted: #c3c9d6; --lsg-border: rgba(255,255,255,.22);
  --lsg-accent: #8f97ff; --lsg-accent-rgb: 143, 151, 255; --lsg-accent-soft: #212647; --lsg-ring: #d4d7e0; --lsg-mmo: #34d3bd; --lsg-gacha: #ff6b9d; --lsg-ok: #3ddc84; color-scheme: dark; color: var(--lsg-text); }
.lsg_dhero_art { position: absolute; inset: 0; }
.lsg_dhero_fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--lsg-page-bg) 0, color-mix(in srgb, var(--lsg-page-bg) 55%, transparent) 20px, transparent 44px), linear-gradient(to right, rgba(0,0,0,.5), rgba(0,0,0,.12) 58%, transparent); }
.lsg_dhero_shade { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--lsg-header-h) + 24px); background: linear-gradient(to bottom, rgba(0,0,0,.42), transparent); }
.lsg_dhero_inner { position: relative; z-index: 1; max-width: 1536px; margin: 0 auto; padding: 64px 16px 0; }   /* 上の64pxは、固定ヘッダーの下に隠れないための余白 */
.lsg_dhero_row { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 80px 0; }
@media (min-width: 640px) { .lsg_dhero_row { flex-direction: row; align-items: flex-start; padding: 40px 0; } }
.lsg_dicon { flex: none; position: relative; width: 112px; height: 112px; border-radius: 24px; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 20px 25px -5px rgba(0,0,0,.28), 0 8px 10px -6px rgba(0,0,0,.28); }
.lsg_dicon span { font-size: 36px; font-weight: 900; color: rgba(255,255,255,.72); }
@media (min-width: 640px) { .lsg_dicon { width: 144px; height: 144px; } .lsg_dicon span { font-size: 46px; } }
.lsg_dtext { max-width: 672px; text-align: center; min-width: 0; }
@media (min-width: 640px) { .lsg_dtext { text-align: left; } }
.lsg_dtitle { font-size: 24px; line-height: 1.25; font-weight: 700; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
@media (min-width: 640px) { .lsg_dtitle { font-size: 30px; } }
@media (min-width: 768px) { .lsg_dtitle { font-size: 36px; } }
@media (min-width: 1024px) { .lsg_dtitle { font-size: 48px; } }
.lsg_drow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.lsg_drow--mt3 { margin-top: 12px; gap: 8px; }
.lsg_drow--mt4 { margin-top: 16px; gap: 8px; }
@media (min-width: 640px) { .lsg_drow { justify-content: flex-start; } }
.lsg_chip2 { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.5; cursor: pointer; background: color-mix(in srgb, var(--lsg-subtle) 70%, transparent); border: 1px solid var(--lsg-border); color: color-mix(in srgb, var(--lsg-text) 80%, transparent); transition: background-color .15s var(--lsg-ease), border-color .15s var(--lsg-ease); }
.lsg_chip2 b { font-weight: 700; }
@media (hover: hover) { .lsg_chip2:hover { background: var(--lsg-subtle); } }
.lsg_chip2[data-copied="1"]::after { content: "✓"; color: var(--lsg-ok); margin-left: 2px; }
.lsg_pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1.4; background: color-mix(in srgb, var(--lsg-subtle) 70%, transparent); border: 1px solid var(--lsg-border); color: var(--lsg-text); cursor: pointer; transition: background-color .15s var(--lsg-ease), color .15s var(--lsg-ease); }
@media (hover: hover) { .lsg_pill:hover { background: var(--lsg-subtle); } }
.lsg_pill_sep { color: var(--lsg-muted); }
.lsg_app .lsg_share { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1.4; background: rgba(0,0,0,.9); border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.9); cursor: pointer; transition: color .15s var(--lsg-ease), border-color .15s var(--lsg-ease); }
@media (hover: hover) { .lsg_app .lsg_share:hover { color: #fff; border-color: rgba(255,255,255,.7); } }
.lsg_share--m { display: inline-flex; }
@media (min-width: 640px) { .lsg_share--m { display: none; } }
@media (min-width: 640px) { .lsg_dside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; align-self: flex-end; } }
.lsg_related { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; background: color-mix(in srgb, var(--lsg-subtle) 60%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--lsg-border); }
.lsg_rel { position: relative; display: block; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--lsg-border); transition: box-shadow .2s var(--lsg-ease); }
.lsg_rel span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: rgba(255,255,255,.85); }
.lsg_rel i { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--lsg-bg) 50%, transparent); opacity: 0; transition: opacity .15s var(--lsg-ease); font-style: normal; font-size: 14px; }
@media (hover: hover) { .lsg_rel:hover { box-shadow: 0 0 0 2px rgba(var(--lsg-accent-rgb), .7); } .lsg_rel:hover i { opacity: 1; } }
.lsg_rel:focus-visible i { opacity: 1; }

/* ---------- tabs ---------- */
.lsg_dmain { max-width: 1536px; margin: 0 auto; padding: 0 16px 32px; }
.lsg_page { margin-top: 24px; }

/* ---------- 3カラム(左2:右1)。1024px未満は1カラムで 左→右 の順 ---------- */
.lsg_dgrid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .lsg_dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lsg_dcol_main { grid-column: span 2; } }
.lsg_dcol { display: grid; gap: 32px; align-content: start; min-width: 0; }
.lsg_dsec { display: grid; gap: 16px; min-width: 0; }
.lsg_dsec h2 { font-size: 20px; line-height: 28px; font-weight: 700; }
.lsg_dsec_note { font-size: 12px; font-weight: 400; color: var(--lsg-muted); margin-left: 8px; }
.lsg_summary { white-space: pre-line; color: var(--lsg-text); }

/* events */

/* gallery */
.lsg_gallery { min-width: 0; padding: 16px 12px; }
@media (min-width: 640px) { .lsg_gallery { padding: 24px 0; } }
.lsg_stage { position: relative; overflow: hidden; border-radius: 8px; background: var(--lsg-subtle); aspect-ratio: 16 / 11; min-height: 14rem; display: grid; place-items: center; color: #fff; }
@media (min-width: 640px) { .lsg_stage { aspect-ratio: 16 / 10; min-height: 18rem; } }
@media (min-width: 1024px) { .lsg_stage { aspect-ratio: 16 / 9; } }
.lsg_stage_play { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; }
.lsg_stage_play svg { width: 26px; height: 26px; }
.lsg_stage_cap { position: absolute; left: 12px; bottom: 10px; font-size: 12px; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 6px; }
.lsg_thumbs_wrap { position: relative; margin-top: 16px; max-width: 100%; }
.lsg_thumbs { display: flex; gap: 12px; overflow-x: auto; touch-action: pan-x; padding-bottom: 4px; scrollbar-width: thin; }
.lsg_thumb { position: relative; flex: none; width: 104px; aspect-ratio: 1.9 / 1; border: 0; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; color: #fff; display: grid; place-items: center; opacity: .65; transition: opacity .3s ease-out; }
@media (hover: hover) { .lsg_thumb:hover { opacity: 1; } }
.lsg_thumb[aria-pressed="true"] { opacity: 1; }
.lsg_thumb[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); pointer-events: none; }
.lsg_thumb_play { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; }
.lsg_thumb_play svg { width: 14px; height: 14px; }
.lsg_thumb_n { font-size: 11px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.lsg_next { position: absolute; right: 8px; top: calc(50% - 2px); transform: translateY(-50%); width: 32px; height: 32px; border-radius: 6px; border: 0; background: rgba(0,0,0,.45); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; cursor: pointer; transition: background-color .15s var(--lsg-ease); }
.lsg_next[hidden] { display: none; }
@media (hover: hover) { .lsg_next:hover { background: rgba(0,0,0,.65); } }
.lsg_next svg { width: 16px; height: 16px; }

/* details */

.lsg_box { overflow: hidden; border-radius: 12px; border: 1px solid var(--lsg-border); background: color-mix(in srgb, var(--lsg-subtle) 40%, transparent); }
.lsg_row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--lsg-border) 60%, transparent); font-size: 14px; transition: background-color .15s var(--lsg-ease); }
.lsg_row:last-child { border-bottom: 0; }
.lsg_row > .k { color: var(--lsg-muted); flex: none; }
.lsg_row > .v { text-align: right; }
.lsg_icons { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.lsg_ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; color: var(--lsg-muted); font-size: 10px; font-weight: 800; letter-spacing: .02em; transition: color .15s var(--lsg-ease), background-color .15s var(--lsg-ease); }
@media (hover: hover) { .lsg_ic:hover { color: var(--lsg-text); background: var(--lsg-subtle); } }
a.lsg_ic { cursor: pointer; }
.lsg_ic .n { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--lsg-accent); color: #fff; font-size: 9px; display: grid; place-items: center; font-weight: 700; }
.lsg_app[data-theme="dark"] .lsg_ic .n { color: #0b0e14; }
.lsg_igdb { color: #3b82f6; }
@media (hover: hover) { .lsg_igdb:hover { color: #60a5fa; text-decoration: underline; } }

/* 動画 タブ */

/* ---------- footer ---------- */
.lsg_footer { border-top: 1px solid var(--lsg-border); background: var(--lsg-surface); }
.lsg_footer_inner { max-width: 1600px; margin: 0 auto; padding: 24px 16px; font-size: 12.5px; color: var(--lsg-muted); display: grid; gap: 6px; }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  .lsg_app *, .lsg_app *::before, .lsg_app *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 画像(本番データ用の追加) ---------- */
.lsg_card_cover img, .lsg_dhero_art img, .lsg_dicon img, .lsg_rel img, .lsg_thumb img, .lsg_stage img, .lsg_article_thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lsg_card_cover img { position: absolute; inset: 0; }
.lsg_dhero_art img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: center 28%; }
.lsg_dhero_art--img img { filter: brightness(.82) saturate(1.05); }
.lsg_dicon img { position: absolute; inset: 0; }
.lsg_rel img { position: absolute; inset: 0; }
.lsg_thumb img { position: absolute; inset: 0; }
.lsg_stage img { position: absolute; inset: 0; }
.lsg_stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lsg_article_thumb img { position: absolute; inset: 0; }
.lsg_stage_btn { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: #fff; }
.lsg_noscript { padding: 16px; }
.lsg_noscript a { color: var(--lsg-accent); text-decoration: underline; }
.lsg_draft_mark { position: absolute; left: 8px; bottom: 8px; background: #b54708; color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 6px; }
.lsg_admin_note { position: fixed; left: 12px; bottom: 12px; z-index: 60; max-width: min(420px, calc(100vw - 24px)); padding: 6px 10px; border-radius: 8px; font-size: 12px; line-height: 1.5; color: #fff; background: rgba(181,71,8,.92); box-shadow: 0 2px 10px rgba(0,0,0,.25); pointer-events: none; }
.lsg_visually_hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lsg_ic svg { display: block; width: 16px; height: 16px; }
.lsg_ic img { display: block; width: 16px; height: 16px; object-fit: contain; opacity: .72; transition: opacity .15s var(--lsg-ease); }
@media (hover: hover) { .lsg_ic:hover img { opacity: 1; } }
.lsg_app[data-theme="dark"][data-icon-invert="1"] .lsg_ic img { filter: invert(1); }
/* サービス状況の丸(信号) */
.lsg_dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.lsg_dot--live { background: #39ff14; box-shadow: 0 0 5px 1px rgba(57,255,20,.65); }
.lsg_dot--eos { background: #9aa0a6; }
.lsg_dot--upcoming { background: #4fc3f7; box-shadow: 0 0 4px 1px rgba(79,195,247,.5); }

/* ロゴ画像・ロゴ左の画像 */
.lsg_logo_mark--img { display: block; width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: none; }
.lsg_logo_img { display: block; height: 34px; width: auto; max-width: 150px; object-fit: contain; }
@media (max-width: 639px) { .lsg_logo_img { max-width: 120px; } }
.lsg_logo_img--dark { display: none; }
.lsg_header[data-top="1"] .lsg_logo_img--dark, .lsg_app[data-theme="dark"] .lsg_logo_img--dark { display: block; }
.lsg_header[data-top="1"] .lsg_logo_img--normal, .lsg_app[data-theme="dark"] .lsg_logo_img--normal { display: none; }

/* 機種ボタンの色(タイトル下)。ライト/ダークで変えない固定色。文字との明暗差を確保 */
.lsg_pill--playstation { background: #0070d1; border-color: rgba(255,255,255,.28); color: #fff; }
.lsg_pill--xbox { background: #107c10; border-color: rgba(255,255,255,.28); color: #fff; }
.lsg_pill--android { background: #a4c639; border-color: rgba(255,255,255,.4); color: #14210a; }
.lsg_pill--nsw { background: #e60012; border-color: rgba(255,255,255,.28); color: #fff; }
.lsg_pill--apple { background: #636a73; border-color: rgba(255,255,255,.28); color: #fff; }
@media (hover: hover) {
  .lsg_pill--playstation:hover { background: #1a82e2; }
  .lsg_pill--xbox:hover { background: #1b941b; }
  .lsg_pill--android:hover { background: #b5d84b; }
  .lsg_pill--nsw:hover { background: #ff2a3b; }
  .lsg_pill--apple:hover { background: #747c86; }
}

/* Steam: ニュースとレビュー(文字だけの表示) */
.lsg_news { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lsg_news_item { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--lsg-border); background: var(--lsg-surface); font-size: 14px; transition: border-color .15s var(--lsg-ease); }
@media (hover: hover) { .lsg_news_item:hover { border-color: rgba(var(--lsg-accent-rgb), .5); } }
.lsg_news_title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lsg_news_date { flex: none; font-size: 12px; color: var(--lsg-muted); }
.lsg_rv { font-weight: 700; }
.lsg_rv--pos { color: #15803d; }
.lsg_rv--mix { color: #c2410c; }
.lsg_rv--neg { color: #b91c1c; }
.lsg_app[data-theme="dark"] .lsg_rv--pos { color: #4ade80; }
.lsg_app[data-theme="dark"] .lsg_rv--mix { color: #fb923c; }
.lsg_app[data-theme="dark"] .lsg_rv--neg { color: #f87171; }
.lsg_rv_n { color: var(--lsg-muted); }
.lsg_h2_logo { display: inline-block; height: 1.15em; width: auto; max-width: 3.2em; margin-right: .45em; vertical-align: -.2em; object-fit: contain; }
.lsg_app[data-theme="dark"][data-icon-invert="1"] .lsg_h2_logo { filter: invert(1); }

/* スマホ(1024px未満)の並び順: 画像 → 概要 → 詳細 → Steamレビュー → 最新情報 → 関連記事。PC(1024px以上)には影響しない(似ているゲームは、Steamレビューの後) */
@media (max-width: 1023.98px) {
  .lsg_dgrid > .lsg_dcol, .lsg_dgrid > .lsg_dcol_main { display: contents; }
  .lsg_dgrid > .lsg_dcol > section, .lsg_dgrid > .lsg_dcol_main > section { min-width: 0; }
  .lsg_o1 { order: 1; } .lsg_o2 { order: 2; } .lsg_o3 { order: 3; } .lsg_o4 { order: 4; } .lsg_o5 { order: 5; } .lsg_o6 { order: 6; } .lsg_o7 { order: 7; }
}

/* 長いニュースタイトルで、スマホの幅が押し広げられないようにする(列の幅を0まで縮められるようにする) */
.lsg_dgrid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .lsg_dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lsg_dsec { grid-template-columns: minmax(0, 1fr); }
.lsg_news, .lsg_news > li { min-width: 0; }
.lsg_news_item { min-width: 0; }

/* ジャンルの見出しの右の「選択を解除」 */
.lsg_side_head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lsg_clear_btn { border: 0; background: none; padding: 0; font-size: 12px; color: var(--lsg-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.lsg_clear_btn[hidden] { display: none; }

.lsg_backlist { margin-top: 24px; text-align: center; font-size: 14px; }

/* 似ているゲーム: 詳細などと同じ見出し。サムネイルは折り返して並べる */
.lsg_dsec .lsg_related { flex-wrap: wrap; justify-content: flex-start; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 8px; }
.lsg_dsec .lsg_related > span { display: block; }

/* 「このゲームの関連記事をもっと見る」ボタン */
.lsg_articles_more a.lsg_more_btn { display: inline-block; padding: 9px 20px; border-radius: 10px; background: #20a39e; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background-color .15s var(--lsg-ease); }
@media (hover: hover) { .lsg_articles_more a.lsg_more_btn:hover { background: #1b8c88; text-decoration: none; } }
.lsg_articles_more a.lsg_more_btn:focus-visible { outline: 2px solid #20a39e; outline-offset: 2px; }
