/* エンドフィールド：トップ（Elements/topDark.ctp）と記事・キャラページ（Layouts/dark.ctp）共通のデザイン
   左メニュー Elements/darkMenu.ctp・右列 Elements/darkRight.ctp もこのファイルで見た目を付ける */
.gx { --panel: #1a1e23; --panel2: #22272d; --line: #2e353d; --text: #e6e9ec; --muted: #8b949e; --accent: #f2d22e; --ink: #15130a; font-size: 14px; line-height: 1.7; }
.gx *, .gx *::before, .gx *::after { box-sizing: border-box; }
.gx .en { font-family: 'Rajdhani', sans-serif; letter-spacing: .08em; }
.gx .cut { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.gx-hero { position: relative; min-height: 230px; background: var(--panel) url(https://gamesink.net/img/endfield/28edad2b887b0942058b8bbf0a45fbba.webp) center 30% / cover; border: 1px solid var(--line); overflow: hidden; }
.gx-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,15,.95) 0%, rgba(11,13,15,.75) 45%, rgba(11,13,15,.1) 100%); }
.gx-hero-in { position: relative; padding: 34px 30px; max-width: 560px; }
.gx-kicker { color: var(--accent); font-size: 12px; font-weight: 700; }
.gx-hero h1 { margin: 4px 0 8px; font-size: 30px; line-height: 1.3; color: #fff; font-weight: 700; border: 0; padding: 0; background: none; }
.gx-hero h1 a { color: inherit; }
.gx-hero p { margin: 0; color: #c4cad1; font-size: 13px; }
.gx-nb { display: inline-block; }
.gx-cats { display: flex; gap: 6px; margin: 12px 0 18px; overflow-x: auto; scrollbar-width: none; }
.gx-cats::-webkit-scrollbar { display: none; }
.gx-cats a { flex: none; background: var(--panel); border: 1px solid var(--line); padding: 5px 14px; font-size: 13px; }
.gx-cats a:hover { border-color: var(--muted); }
.gx-cats a.is-on { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 700; }
.gx-cols { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.gx-panel { background: var(--panel); border: 1px solid var(--line); padding: 14px; }
.gx-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.4; border: 0; padding: 0; background: none; }
.gx-title .en { color: var(--accent); font-size: 12px; }
.gx-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gx-main > * + * { margin-top: 16px; }
.gx-menu { position: sticky; top: 64px; padding: 12px 0; max-height: calc(100vh - 80px); overflow-y: auto; scrollbar-width: thin; }
.gx-menu .gx-title { padding: 0 14px; }
.gx-menu-h { font-size: 12px; font-weight: 700; color: var(--accent); padding: 10px 14px 4px; letter-spacing: .04em; }
.gx-menu ul { list-style: none; margin: 0; padding: 0; }
.gx-menu li a { display: block; padding: 5px 14px 5px 16px; font-size: 13px; color: #c4cad1; border-left: 2px solid transparent; }
.gx-menu li a:hover { background: var(--panel2); border-left-color: var(--accent); color: #fff; }
.gx-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gx-post { display: block; background: var(--panel2); border: 1px solid var(--line); transition: border-color .15s; }
.gx-post:hover { border-color: var(--accent); }
.gx-post-img { aspect-ratio: 16 / 9; overflow: hidden; background: #0f1215; }
.gx-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gx-post:hover .gx-post-img img { transform: scale(1.04); }
.gx-post-body { padding: 8px 10px 10px; }
.gx-post-date { font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .06em; }
.gx-post-title { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: #fff; font-weight: 700; }
.gx-post-desc { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.gx-post.is-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.gx-post.is-lead .gx-post-body { padding: 14px 16px; }
.gx-post.is-lead .gx-post-title { font-size: 17px; }
.gx-more { display: block; text-align: center; margin-top: 12px; border: 1px solid var(--line); padding: 7px; font-size: 13px; color: #c4cad1; }
.gx-more:hover { border-color: var(--accent); color: var(--accent); }
.gx-rar + .gx-rar { margin-top: 12px; }
.gx-rar-label { display: inline-block; font: 700 13px 'Rajdhani', sans-serif; color: var(--c); border-left: 3px solid var(--c); padding-left: 6px; margin-bottom: 6px; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.gx-char-img { position: relative; aspect-ratio: 1; background: var(--panel2); overflow: hidden; border-bottom: 3px solid var(--c); }
.gx-char-img > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; }
.gx-char:hover .gx-char-img > img { transform: scale(1.06); }
.gx-tags { position: absolute; top: 3px; left: 3px; display: flex; flex-direction: column; gap: 2px; }
.gx-tags img { width: 15px; height: 15px; background: rgba(0,0,0,.55); padding: 1px; }
.gx-char span { display: block; font-size: 10px; margin-top: 3px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-guides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gx-guide { background: var(--panel2); border: 1px solid var(--line); padding: 10px 12px; }
.gx-guide-h { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.gx-guide-h .en { color: var(--accent); font-size: 11px; margin-right: 6px; }
.gx-guide ul { list-style: none; margin: 0; padding: 0; }
.gx-guide li a { display: block; padding: 3px 0 3px 12px; font-size: 13px; color: #c4cad1; position: relative; }
.gx-guide li a::before { content: "›"; position: absolute; left: 0; color: var(--accent); }
.gx-guide li a:hover { color: #fff; }
/* 旧トップの本文（βテストの日程・ゲームの概要など） */
.gx-body h2 { margin: 22px 0 10px; padding: 0 0 0 10px; font-size: 17px; line-height: 1.4; color: #fff; border: 0; border-left: 3px solid var(--accent); background: none; }
.gx-body h2:first-child { margin-top: 0; }
.gx-body h3 { margin: 18px 0 8px; font-size: 15px; color: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 4px; background: none; }
.gx-body p { margin: 0 0 10px; color: #c4cad1; }
.gx-body img { max-width: 100%; height: auto; }
.gx-body .img_exp { font-size: 12px; color: var(--muted); text-align: center; margin-top: -4px; }
.gx-body table { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 13px; background: none; }
.gx-body th, .gx-body td { border: 1px solid var(--line); padding: 6px 10px; color: var(--text); background: none; }
.gx-body th { background: var(--panel2); color: #fff; font-weight: 700; text-align: left; }
.gx-body a { color: var(--accent); }
.gx-right > * + * { margin-top: 16px; }
.gx-ad { background: #0f1215; border: 1px solid var(--line); padding: 8px; text-align: center; }
.gx-ad-label { display: block; text-align: left; font: 600 10px 'Rajdhani', sans-serif; letter-spacing: .14em; color: #5d656d; margin-bottom: 6px; }
.gx-ad-sp { display: none; }
.gx-prof { display: flex; gap: 12px; align-items: center; }
.gx-prof img { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; }
.gx-prof b { color: #fff; }
.gx-prof small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.gx-rank ol { margin: 0; padding: 0; list-style: none; counter-reset: rk; }
.gx-rank li { counter-increment: rk; border-top: 1px solid var(--line); }
.gx-rank li:first-child { border-top: 0; }
.gx-rank li a { display: flex; gap: 10px; padding: 7px 0; font-size: 13px; color: #c4cad1; line-height: 1.5; }
.gx-rank li a::before { content: counter(rk, decimal-leading-zero); font: 700 14px 'Rajdhani', sans-serif; color: var(--accent); flex: none; width: 22px; }
.gx-rank li a:hover { color: #fff; }
@media (max-width: 991px) {
    .gx-cols { grid-template-columns: 200px minmax(0, 1fr); }
    .gx-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .gx-right > * + * { margin-top: 0; }
}
@media (max-width: 767px) {
    .gx-hero { min-height: 0; background-position: 70% 30%; }
    .gx-hero::before { background: linear-gradient(0deg, rgba(11,13,15,.96) 25%, rgba(11,13,15,.4) 100%); }
    .gx-hero-in { padding: 110px 16px 18px; }
    .gx-hero h1 { font-size: 21px; }
    .gx-cols { grid-template-columns: 1fr; }
    .gx-main { order: 1; }
    .gx-right { order: 2; grid-template-columns: 1fr; }
    .gx-menu { order: 3; position: static; max-height: none; }
    .gx-menu ul { display: grid; grid-template-columns: 1fr 1fr; }
    .gx-posts { gap: 8px; }
    .gx-post.is-lead { display: block; }
    .gx-post.is-lead .gx-post-title { font-size: 15px; }
    .gx-post-title { font-size: 12px; }
    .gx-grid { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
    .gx-guides { grid-template-columns: 1fr; }
    .gx-ad-pc { display: none; }
    .gx-ad-sp { display: block; }
}

/* 記事・キャラページの細い見出し帯（トップの .gx-hero を低くしたもの） */
/* 画像は ::after に 1.2 倍（1200×514）で置き、ペリカの目（元画像 1000×428 で x=538・y=93 → 1.2 倍で x=646・y=112）を
   帯の横 72%・縦 42% の位置に合わせる。顔だけが帯に収まる */
.gx-hero.is-slim { min-height: 0; margin-bottom: 0; background-image: none; }
.gx-hero.is-slim::after { content: ""; position: absolute; z-index: 0; width: 1200px; height: 514px; left: calc(72% - 646px); top: calc(42% - 112px);
    background: url(https://gamesink.net/img/endfield/28edad2b887b0942058b8bbf0a45fbba.webp) 0 0 / 100% 100% no-repeat; }
.gx-hero.is-slim::before { z-index: 1; background: linear-gradient(90deg, rgba(11,13,15,.96) 0%, rgba(11,13,15,.82) 40%, rgba(11,13,15,.15) 60%, rgba(11,13,15,0) 66%, rgba(11,13,15,0) 80%, rgba(11,13,15,.6) 100%); }
.gx-hero.is-slim .gx-hero-in { z-index: 2; }
/* 中くらいの幅では見出しの文字と重ならないよう、顔をさらに右へ */
@media (min-width: 768px) and (max-width: 991px) {
    .gx-hero.is-slim::after { left: calc(87% - 646px); }
    .gx-hero.is-slim::before { background: linear-gradient(90deg, rgba(11,13,15,.96) 0%, rgba(11,13,15,.82) 60%, rgba(11,13,15,.15) 76%, rgba(11,13,15,0) 80%); }
}
.gx-hero.is-slim .gx-hero-in { padding: 18px 24px; max-width: none; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.gx-hero.is-slim .gx-site { margin: 0; font-size: 19px; font-weight: 700; color: #fff; line-height: 1.3; }
.gx-hero.is-slim .gx-site a { color: inherit; text-decoration: none; }
/* 右列のリンク一覧（集中攻略・オリジナルアプリなど） */
.gx-links { list-style: none; margin: 0; padding: 0; }
.gx-links li + li { border-top: 1px solid var(--line); }
.gx-links a { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #c4cad1; text-decoration: none; }
.gx-links a:hover { color: #fff; }
.gx-links img { width: 36px; height: 36px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; flex: none; }
@media (max-width: 767px) {
    /* スマホは文字が2行になるので、顔を右端寄りに置く */
    .gx-hero.is-slim::after { left: calc(80% - 646px); }
    .gx-hero.is-slim::before { background: linear-gradient(90deg, rgba(11,13,15,.96) 0%, rgba(11,13,15,.85) 50%, rgba(11,13,15,.1) 66%, rgba(11,13,15,0) 72%); }
    .gx-hero.is-slim .gx-hero-in { padding: 14px 16px; max-width: 64%; }
    .gx-hero.is-slim .gx-site { font-size: 16px; }
}
