/*
Theme Name: Game Portal
Description: ゲームスタジオのポータルサイト用テーマ。トップページにシリーズの紹介、投稿をお知らせと開発日誌に分けて出せる。ゲームの紹介ページ（/games/作品名/）の「遊ぶ」ボタンから、同じドメインの /play/作品名/ に置いたブラウザゲームを起動する。
Version: 1.9.5
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: game-portal
*/

/* ---------- 色と文字 ---------- */
:root {
	--ink: #161b2e;        /* 濃紺：ヘッダー、ヒーロー、フッター */
	--ink-2: #262d4a;
	--paper: #f3f4f8;      /* 地の色 */
	--surface: #ffffff;
	--line: #dadeea;
	--muted: #5a6180;
	--link: #2446c2;
	--coin: #ffc83d;       /* 「遊ぶ」ボタン */
	--coin-ink: #1d1a10;
	--coin-edge: #c7951a;
	--game: #f08a24;       /* 作品ごとのキーカラー（ゲームの情報で変えられる） */
	--display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
	--body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
	--label: "Chakra Petch", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
	--radius: 6px;
	--wrap: 1120px;
	--header-h: 60px;
	--admin-h: var(--wp-admin--admin-bar--height, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--admin-h, 0px) + var(--header-h, 60px) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.85;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coin); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
.gp-ph { display: inline-block; max-width: 100%; word-break: auto-phrase; } /* 見出しを読点・句点のところでだけ折り返す（functions.php の gp_phrase）。1区切りが1行に入らないときは、対応するブラウザでは文節で折り返す */

.gp-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.gp-narrow { max-width: 800px; }
.gp-skip { position: absolute; left: -9999px; }
.gp-skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* ---------- ヘッダー ---------- */
.gp-header { background: var(--ink); color: #fff; position: sticky; top: var(--admin-h); z-index: 50; }
.gp-header__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.gp-logo { font-family: var(--display); font-size: 20px; line-height: 1.2; text-decoration: none; letter-spacing: .03em; }
.custom-logo { max-height: 40px; width: auto; }
.gp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.gp-nav a { display: block; padding: 8px 14px; border-radius: 4px; font-size: 14px; font-weight: 700; text-decoration: none; }
.gp-nav a:hover { background: var(--ink-2); }
.gp-menu-btn { display: none; }
/* 小さいスマホでも、ロゴと「メニュー」を1行に収める（2026-10-11） */
.gp-logo, .gp-menu-btn { white-space: nowrap; }
.gp-menu-btn { flex-shrink: 0; }
@media (max-width: 400px) {
	.gp-header__in { gap: 12px; }
	.gp-logo { font-size: 18px; letter-spacing: .02em; }
}
@media (max-width: 360px) {
	.gp-header__in { gap: 10px; padding-inline: 16px; }
	.gp-logo { font-size: 15px; letter-spacing: 0; }
	.gp-menu-btn { padding: 6px 10px; }
}

@media (max-width: 743px) {
	.gp-menu-btn {
		display: inline-flex; align-items: center;
		background: none; color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px;
		padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer;
	}
	.gp-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); padding: 4px 20px 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
	.gp-nav.is-open { display: block; }
	.gp-nav ul { flex-direction: column; }
	.gp-nav a { padding: 12px 4px; }
}

/* ---------- ボタン ---------- */
.gp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: 12px 22px; border: 2px solid transparent; border-radius: var(--radius);
	font-family: var(--body); font-size: 15px; font-weight: 700; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color .15s, transform .1s, box-shadow .1s;
}
.gp-btn--play { background: var(--coin); color: var(--coin-ink); box-shadow: 0 4px 0 var(--coin-edge); }
.gp-btn--play::before {
	content: ""; flex: none; width: 0; height: 0;
	border-style: solid; border-width: .42em 0 .42em .7em; border-color: transparent transparent transparent currentColor;
}
.gp-btn--play:hover { background: #ffd566; }
.gp-btn--play:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--coin-edge); }
.gp-btn--ghost { border-color: currentColor; color: inherit; }
.gp-btn--ghost:hover { background: rgba(127, 127, 127, .12); }
.gp-btn--soon { background: transparent; border-color: currentColor; color: inherit; opacity: .55; cursor: default; }
.gp-btn--lg { font-size: 17px; padding: 14px 28px; }
.gp-btn--xl { font-size: 20px; padding: 18px 40px; }

/* ---------- 共通の見出し ---------- */
.gp-block { padding-block: 56px; }
.gp-block--tight { padding-top: 16px; }
.gp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.gp-sec-head h1, .gp-sec-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4vw, 32px); line-height: 1.3; margin: 0; }
.gp-en, .gp-eyebrow { display: block; font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .22em; color: var(--muted); }
/* 「すべて見る」：見出しの横に、右寄せの小さな枠のボタン（2026-10-11、オーナー） */
.gp-more {
	flex: none; display: inline-flex; align-items: center; gap: .3em;
	padding: 6px 14px; border: 2px solid currentColor; border-radius: var(--radius);
	font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
	transition: background-color .15s;
}
.gp-more:hover { background: rgba(127, 127, 127, .12); }
.gp-more::after { content: "→"; }

/* 絵がまだないときの仮の枠 */
.gp-noart {
	display: grid; place-items: center; width: 100%; height: 100%; padding: 16px;
	background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .05) 14px 28px), var(--ink-2);
	color: rgba(255, 255, 255, .5); font-family: var(--label); font-size: 13px; letter-spacing: .18em; text-align: center;
}

/* 状態のラベル */
.gp-status {
	display: inline-block; vertical-align: middle; padding: 3px 9px; border-radius: 3px;
	font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.5;
	background: #1d8a5c; color: #fff;
}
.gp-status--beta { background: #2d5fd6; }
.gp-status--dev { background: #6b7190; }

/* ---------- トップ：おすすめのゲーム ---------- */
.gp-hero { background: var(--ink); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); }
.gp-hero__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-block: 40px 56px; }
.gp-hero__art { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 12px 12px 0 var(--game); }
.gp-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.gp-hero .gp-eyebrow { color: var(--coin); display: flex; align-items: center; gap: 10px; margin: 0; }
.gp-hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.5vw, 58px); line-height: 1.12; letter-spacing: .02em; margin: .25em 0 .35em; }
.gp-hero__catch { font-size: 17px; color: rgba(255, 255, 255, .82); margin: 0 0 28px; }
.gp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 743px) {
	.gp-hero__in { grid-template-columns: 1fr; gap: 24px; padding-block: 20px 40px; }
	.gp-hero__art { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 8px 8px 0 var(--game); }
}

/* ---------- ゲームのカード ---------- */
.gp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.gp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gp-card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.gp-card__art { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink-2); }
/* 下の線は、画像の上に重ねて描く（スマホで画像と線のあいだに1px のすき間が出て、画像が線の下にはみ出して見えるのを防ぐ） */
.gp-card__art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--game); z-index: 1; }
.gp-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
@media (hover: hover) { .gp-card__link:hover .gp-card__art img { transform: scale(1.04); } }
.gp-card__art .gp-status { position: absolute; left: 10px; top: 10px; z-index: 2; }
.gp-card__body { flex: 1; padding: 14px 16px 4px; container-type: inline-size; }
/* 名前は1行に収める。長い名前（ドットボックスキングなど）は、カードの幅に合わせて文字を小さくする。--len は名前の文字数（game-card.php） */
.gp-card__title { font-family: var(--display); font-weight: 400; font-size: min(19px, calc(100cqi / (var(--len, 8) + .5))); white-space: nowrap; line-height: 1.35; margin: 0 0 2px; }
.gp-card__genre { margin: 0; font-size: 12px; color: var(--muted); }
.gp-card__catch { margin: 6px 0 0; font-size: 14px; line-height: 1.65; }
.gp-card__foot { padding: 12px 16px 16px; }
.gp-card__foot { display: flex; flex-direction: column; gap: 8px; }
.gp-card__foot .gp-btn { width: 100%; padding: 10px 12px; font-size: 14px; }
.gp-btn--guide { color: var(--ink); border-color: var(--line); background: var(--surface); }
.gp-btn--guide:hover { border-color: var(--ink); background: var(--surface); }

@media (max-width: 520px) {
	.gp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.gp-card__body { padding: 10px 12px 2px; }
	.gp-card__title { font-size: min(16px, calc(100cqi / (var(--len, 8) + .5))); }
	.gp-card__catch { display: none; }
	.gp-card__foot { padding: 10px 12px 12px; }
}

/* ---------- お知らせ ---------- */
.gp-news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gp-news li { border-bottom: 1px solid var(--line); }
.gp-news a { display: grid; grid-template-columns: max-content 1fr; gap: 20px; padding: 14px 4px; text-decoration: none; } /* 日付の列は日付の長さだけ（2026-10-11、オーナー。7em だと空きすぎた） */
.gp-news time { font-family: var(--label); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); padding-top: 1px; }
.gp-news a:hover .gp-news__t { text-decoration: underline; }
@media (max-width: 520px) { .gp-news a { grid-template-columns: 1fr; gap: 0; } }

/* ---------- スタジオについて ---------- */
.gp-about { background: var(--surface); border-block: 1px solid var(--line); }
.gp-about__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.gp-about p { max-width: 38em; }
.gp-about__links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .gp-about__links { flex-direction: column; gap: 12px; } .gp-about__links .gp-btn { width: 100%; } }
.gp-team { list-style: none; margin: 0; padding: 20px 0 0; display: grid; gap: 14px; }
.gp-team li { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.gp-team b { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .16em; color: var(--muted); padding-top: 3px; }
.gp-team span { font-weight: 700; }
@media (max-width: 743px) { .gp-about__in { grid-template-columns: 1fr; gap: 16px; } .gp-team { padding-top: 0; } }

/* ---------- 広告 ---------- */
.gp-ad { margin-block: 40px; text-align: center; }
.gp-ad__label { display: block; margin-bottom: 4px; font-family: var(--label); font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.gp-ad--placeholder { border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px; }
/* 広告ユニットの大きさ（2026-10-11、オーナー）
   スマホ：どの位置も、336×280（レクタングル（大））の比率のまま画面の横いっぱい（2026-10-17、オーナー。375px なら 375×313）。ページのいちばん上も、横長（320×100 の比率）からこの形に変えた
   PC（744px 以上）：横幅いっぱい。高さは、よく使われる広告の大きさが入るように、上 250px（970×250 など）、真ん中と下 280px（336×280 など） */
.gp-adunit { display: inline-block; width: 300px; height: 250px; }
.gp-adunit--banner { width: 320px; height: 100px; max-width: 100%; }
/* スマホ（743px まで。iPad mini の縦〈744px〉からは PC の形。1.9.3、オーナー）：画面の横いっぱい（左右の余白の外まで） */
@media (max-width: 743px) {
	.gp-ad { margin-inline: calc(50% - 50vw); }
	.gp-adunit, .gp-adunit--banner { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 336 / 280; }  /* 336×280 の比率のまま、画面の横いっぱい（2026-10-17、オーナー） */
	.gp-ad--placeholder { border-radius: 0; border-inline: 0; }
}
@media (min-width: 744px) {
	.gp-adunit { display: block; width: 100%; height: 280px; }
	.gp-adunit--banner { height: 250px; }
}
.gp-adunit--dummy { display: inline-flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; font-size: 12px; background: rgba(127, 127, 127, .06); }
@media (min-width: 744px) { .gp-adunit--dummy { display: flex; } }
.gp-ad--top { margin-block: 24px 8px; }
/* シリーズとゲーム一覧：ページのいちばん上の広告は、パンくずのすぐ下（16px）に寄せる */
.gp-block > .gp-wrap > .gp-ad--top:first-child { margin-top: -40px; margin-bottom: 24px; }
.gp-ad--between { margin-block: 32px 0; }
.gp-ad--placeholder { padding: 10px; }


/* ---------- ゲームの紹介ページ ---------- */
.gp-game-hero { position: relative; background: var(--ink); color: #fff; border-top: 4px solid var(--game); }
.gp-game-hero__art { position: relative; aspect-ratio: 21 / 9; max-height: 560px; width: 100%; overflow: hidden; background: var(--ink-2); }
.gp-game-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.gp-game-hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--ink)); pointer-events: none; }
.gp-game-hero__body { position: relative; z-index: 1; margin-top: -110px; padding-bottom: 48px; }
.gp-game-hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 8vw, 76px); line-height: 1.08; letter-spacing: .03em; margin: .18em 0 .25em; }
/* 見出し（h1）の中の、検索用のサブタイトル。名前の下に小さく */
.gp-h1-sub { display: block; margin-top: .45em; font-family: var(--body); font-weight: 700; font-size: clamp(14px, 2vw, 18px); line-height: 1.5; letter-spacing: .04em; opacity: .85; }
.gp-game-hero__title .gp-h1-sub { font-size: clamp(14px, 1.9vw, 19px); margin-top: .5em; }
.gp-sec-head .gp-h1-sub { color: var(--muted); font-size: 14px; margin-top: .4em; }
.gp-series__title .gp-h1-sub { font-size: clamp(14px, 1.9vw, 18px); margin-top: .55em; }
.gp-game-hero__catch { max-width: 36em; margin: 0 0 22px; font-size: clamp(16px, 2.3vw, 19px); color: rgba(255, 255, 255, .86); }
.gp-specs { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 28px; padding: 14px 0; border-block: 1px solid rgba(255, 255, 255, .14); }
.gp-specs div { display: flex; align-items: baseline; gap: 10px; }
.gp-specs dt { flex: none; white-space: nowrap; font-size: 12px; color: rgba(255, 255, 255, .6); } /* 値が長くても見出しは折らない（2026-10-11） */
.gp-specs dd { margin: 0; font-weight: 700; font-size: 15px; }
.gp-play-note { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, .65); }

@media (max-width: 743px) {
	.gp-game-hero__art { aspect-ratio: 4 / 3; }
	.gp-game-hero__body { margin-top: -56px; padding-bottom: 36px; }
	.gp-game-hero .gp-btn--xl { width: 100%; }
}

/* 目次（ストーリー／キャラクター／遊び方） */
.gp-toc { position: sticky; top: calc(var(--admin-h) + var(--header-h)); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.gp-toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.gp-toc a { display: block; padding: 13px 16px 10px; border-bottom: 3px solid transparent; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gp-toc a:hover, .gp-toc a.is-current { border-bottom-color: var(--game); }

/* 本文のセクション */
.gp-game-body { padding-block: 8px 24px; }
.gp-sec { padding-block: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--admin-h) + var(--header-h) + 56px); }
.gp-sec:last-child { border-bottom: 0; }
.gp-sec h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4vw, 30px); line-height: 1.3; }
.gp-sec h2::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--game); transform: rotate(45deg); }
.gp-sec h3 { font-size: 18px; margin: 32px 0 10px; }
.gp-sec p { max-width: 40em; }
.gp-lead { font-size: 19px; font-weight: 700; line-height: 1.7; }
.gp-sec--story p:not(.gp-lead) { color: #2d3350; }
.gp-sec ul { padding-left: 1.3em; max-width: 40em; }
.gp-sec li + li { margin-top: 6px; }

/* キャラクター */
.gp-chara-grid, .gp-chara-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.gp-chara-grid:has(> .wp-block-group__inner-container) { display: block; }
.gp-chara { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 18px; }
.gp-chara .wp-block-image { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(165deg, var(--ink-2), var(--ink)); }
.gp-chara .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.gp-chara .wp-block-image img:not([src]), .gp-chara .wp-block-image img[src=""] { display: none; }
.gp-chara h3 { margin: 14px 16px 0; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.3; }
.gp-chara p { margin: 6px 16px 0; font-size: 14px; line-height: 1.7; }
.gp-chara p.gp-chara-role { margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 520px) {
	.gp-chara-grid, .gp-chara-grid > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.gp-chara h3 { margin: 10px 12px 0; font-size: 17px; }
	.gp-chara p { margin-inline: 12px; font-size: 13px; }
}

/* 操作方法の表 */
.wp-block-table { margin: 0 0 8px; overflow-x: auto; }
.gp-controls table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 15px; }
.gp-controls th, .gp-controls td { padding: 11px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.gp-controls thead th { background: var(--ink); color: #fff; font-size: 13px; }
.gp-controls tbody td:first-child { font-weight: 700; white-space: nowrap; }
/* スマホ：表をカードの形に。1行目（操作や段階の名前）を見出しにし、残りのマスは「見出し｜中身」で並べる */
@media (max-width: 600px) {
	.gp-table-stack, .gp-table-stack tbody, .gp-table-stack tr, .gp-table-stack td { display: block; width: 100%; box-sizing: border-box; }
	.gp-table-stack thead { display: none; }
	.gp-table-stack { background: transparent; border: 0; }
	.gp-table-stack tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
	.gp-table-stack td { border: 0; border-top: 1px solid var(--line); padding: 9px 14px; display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; }
	.gp-table-stack td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 2px; }
	.gp-table-stack td:first-child { border-top: 0; display: block; background: var(--ink); color: #fff; white-space: normal; padding: 9px 14px; }
	.gp-table-stack td:first-child::before { content: none; }
}

/* クレジット */
.gp-credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-block: 16px 56px; }
.gp-credit { padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.gp-credit b { display: block; font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.gp-credit span { font-size: 18px; font-weight: 700; }

/* 下の「遊ぶ」 */
.gp-game-cta { padding-block: 56px; background: var(--ink); color: #fff; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gp-game-cta h2 { margin: 0 0 24px; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 5vw, 36px); line-height: 1.3; }

/* スマホ：画面下の「遊ぶ」バー */
.gp-playbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: flex; align-items: center; gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--ink); color: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .2);
	transform: translateY(110%); transition: transform .25s;
}
.gp-playbar.is-shown { transform: none; }
.gp-playbar__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-size: 15px; }
@media (min-width: 744px) { .gp-playbar { display: none; } }

/* 画面の下に固定する広告（スマホも PC も。2026-10-17、オーナー）
   ページの最後（フッター）が隠れないように、body の下に広告の高さぶんの余白をとる。紹介ページの「遊ぶ」バーは、広告のすぐ上に出す */
:root { --anchor-h: 0px; }
body.has-anchor { --anchor-h: calc(108px + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--anchor-h); }
.gp-anchor {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
	display: flex; justify-content: center; align-items: center;
	height: var(--anchor-h); padding-bottom: env(safe-area-inset-bottom, 0px); box-sizing: border-box;
	background: rgba(0, 0, 0, .55); /* 広告がないときや小さいときも、ページが透けて見えるように黒の半透明（2026-10-17、オーナー） */
}
/* 広告の大きさ（2026-10-17、オーナー）：スマホは画面の横いっぱい・高さ 100px、PC（744px 以上）は 728×90。AdSense のレスポンシブの広告ユニットで、大きさは CSS で決める */
.gp-anchor__unit { display: block; width: 100%; height: 100px; }
@media (min-width: 744px) {
	body.has-anchor { --anchor-h: calc(98px + env(safe-area-inset-bottom, 0px)); }
	.gp-anchor__unit { width: 728px; max-width: 100%; height: 90px; }
}
.has-anchor .gp-playbar { bottom: var(--anchor-h); }

/* ---------- 記事・固定ページ ---------- */
.gp-page { padding-block: 48px 72px; }
.gp-page__title { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 5vw, 40px); line-height: 1.3; margin: 0 0 24px; text-wrap: pretty; } /* 行をそろえず、横いっぱいに使って折り返す（2026-10-11、オーナー） */
.gp-page__date { margin: 0; font-family: var(--label); font-variant-numeric: tabular-nums; color: var(--muted); }
.gp-page__thumb { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.gp-content > * { max-width: 100%; }
.gp-content h2 { font-size: 23px; margin: 2em 0 .7em; padding-bottom: .35em; border-bottom: 2px solid var(--ink); }
.gp-content h3 { font-size: 19px; margin: 1.7em 0 .5em; }
.gp-content a { color: var(--link); }
.gp-content img { border-radius: 4px; }
.gp-content table { border-collapse: collapse; width: 100%; }
.gp-content th, .gp-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.gp-postnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.gp-pager { margin-top: 32px; }
.gp-pager .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.gp-pager .page-numbers { display: inline-block; min-width: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); text-align: center; text-decoration: none; }
.gp-pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- フッター ---------- */
.gp-footer { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 14px; }
.gp-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; }
.gp-footer__name { font-family: var(--display); font-size: 18px; color: #fff; text-decoration: none; }
.gp-footer__copy { margin: 6px 0 0; font-family: var(--label); font-size: 12px; letter-spacing: .06em; }
.gp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.gp-footer a { text-decoration: none; }
.gp-footer a:hover { text-decoration: underline; }
@media (max-width: 743px) { .single-game .gp-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- シリーズの紹介（トップページの一番上） ---------- */
.gp-series { position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, .035) 22px 44px), var(--ink); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); }
/* 背景：斜めのラインと、うすく透けた G のコイン（X のヘッダーと同じ見た目。画像は assets/coin.svg） */
.gp-series::after { content: ""; position: absolute; right: max(24px, calc(50% - 560px)); top: 50%; width: 520px; height: 520px; margin-top: -260px; background: url(assets/coin.svg) no-repeat center / contain; opacity: .16; pointer-events: none; }
.gp-series__in { position: relative; z-index: 1; padding-block: 48px 56px; max-width: 860px; }
@media (max-width: 743px) { .gp-series::after { width: 280px; height: 280px; right: -90px; top: -40px; margin-top: 0; opacity: .13; } }
.gp-series .gp-eyebrow { color: var(--coin); margin: 0; }
.gp-series__title { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5.5vw, 54px); line-height: 1.15; letter-spacing: .02em; margin: .25em 0 .3em; }
.gp-series__catch { font-size: clamp(17px, 2.4vw, 21px); font-weight: 700; margin: 0 0 14px; }
.gp-series__text { color: rgba(255, 255, 255, .82); margin: 0 0 22px; max-width: 40em; }
.gp-series__points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; }
.gp-series__points li { font-size: 14px; font-weight: 700; padding: 6px 12px 6px 28px; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); position: relative; }
.gp-series__points li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--coin); }
@media (max-width: 520px) { .gp-series__in { padding-block: 28px 40px; } .gp-series__points li { font-size: 13px; } }
/* スマホ：約束を2列で、横いっぱいに並べる */
@media (max-width: 600px) {
	.gp-series__points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.gp-series__points li { display: flex; align-items: center; min-height: 40px; padding: 6px 8px 6px 26px; border-radius: 10px; font-size: 12.5px; line-height: 1.35; }
	.gp-series__points li::before { left: 11px; }
}
.gp-others { padding-top: 40px; border-top: 1px solid var(--line); }

/* ---------- お知らせと開発日誌（2列） ---------- */
.gp-posts--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gp-empty { color: var(--muted); margin: 0; }
@media (max-width: 743px) { .gp-posts--2 { grid-template-columns: 1fr; gap: 32px; } }

/* シリーズの一覧ページの説明文 */
.gp-term-desc { max-width: 40em; margin: -8px 0 24px; color: var(--muted); }
/* トップのお知らせ・開発日誌：見出しの下の説明文（2026-10-11） */
.gp-posts__lead { margin: -12px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
/* PC：お知らせと開発日誌の5行を、左右で行ごとに同じ高さにそろえる（subgrid。2026-10-11、オーナー）。
   行は 見出し・説明文・記事5つ の7つ。トップの一覧は5件までなので 5 で固定 */
@media (min-width: 744px) {
	.gp-posts--2 { grid-template-rows: auto auto repeat(5, auto); row-gap: 0; }
	.gp-posts--2 .gp-posts__col { display: grid; grid-row: span 7; grid-template-rows: subgrid; }
	.gp-posts--2 .gp-news { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
	.gp-posts--2 .gp-news a { height: 100%; }
	.gp-posts--2 .gp-empty { grid-row: span 5; }
}

/* ---------- このゲームの特徴（紹介ページ） ---------- */
.gp-features, .gp-sec .gp-features { list-style: none; padding: 0; display: grid; gap: 8px; }
.gp-sec .gp-features li + li { margin-top: 0; }
.gp-features li { padding: 12px 14px 12px 38px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.gp-features li::before { content: ""; position: absolute; left: 14px; top: 1.15em; width: 12px; height: 12px; border-radius: 50%; background: var(--game); }

/* ---------- お問い合わせフォーム（Contact Form 7） ---------- */
.wpcf7-form p { margin: 0 0 20px; }
.wpcf7-form label { display: block; font-weight: 700; }
.wpcf7-form .gp-req, .wpcf7-form .gp-opt { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.wpcf7-form .gp-req { background: #c8352b; color: #fff; }
.wpcf7-form .gp-opt { background: var(--line); color: var(--muted); }
.wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="url"], .wpcf7-form input[type="tel"], .wpcf7-form select, .wpcf7-form textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
	padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 0 1px 2px rgba(22, 27, 46, .06);
}
.wpcf7-form textarea { min-height: 180px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: 3px solid rgba(36, 70, 194, .25); border-color: var(--link); }
.wpcf7-form .wpcf7-list-item { margin: 0; }
.wpcf7-form .wpcf7-acceptance label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.wpcf7-form input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); }
.wpcf7-form input[type="submit"] {
	font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; border: 0;
	padding: 14px 40px; border-radius: var(--radius); background: var(--coin); color: var(--coin-ink); box-shadow: 0 4px 0 var(--coin-edge);
}
.wpcf7-form input[type="submit"]:hover { background: #ffd566; }
.wpcf7-form input[type="submit"]:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--coin-edge); }
.wpcf7-form input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7-not-valid-tip { color: #c8352b; font-size: 14px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius); border-width: 2px; }
.wpcf7-spinner { vertical-align: middle; }
.gp-form-note { font-size: 14px; color: var(--muted); }

/* ---------- パンくず（ヘッダーのすぐ下） ---------- */
.gp-crumbs { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; }
.gp-crumbs ol { list-style: none; margin: 0; padding: 9px 0; display: flex; gap: 6px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.gp-crumbs ol::-webkit-scrollbar { display: none; }
.gp-crumbs li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.gp-crumbs li + li::before { content: "›"; color: var(--line); font-size: 15px; line-height: 1; }
.gp-crumbs a { color: var(--link); text-decoration: none; }
.gp-crumbs a:hover { text-decoration: underline; }
.gp-crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; max-width: 18em; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- テーマ 1.9.0（2026-10-20、オーナー）：シリーズのスライドショー、ジャンルの切りかえ、シリーズの一覧 ---------- */
.gp-specs dd a { color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(255, 255, 255, .45); }
/* トップの h1（サイト名と言葉）。スライドの上に小さく */
.gp-front-h1 { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; }
.gp-front-h1 h1 { margin: 0; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .18em; color: rgba(255, 255, 255, .7); }
.gp-front-h1 .gp-h1-sub { display: inline; margin: 0 0 0 .8em; font-family: var(--body); font-size: 13px; letter-spacing: .06em; opacity: .9; }
/* スライド：横にならべ、指で送れる（scroll-snap）。高さは一番高いスライドにそろう */
.gp-slides { position: relative; z-index: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.gp-slides::-webkit-scrollbar { display: none; }
.gp-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.gp-series--slider .gp-series__in { padding-block: 18px 48px; }
.gp-series--slider .gp-series__title { margin-top: .15em; }
@media (prefers-reduced-motion: reduce) { .gp-slides { scroll-behavior: auto; } }
.gp-dots { flex: none; display: flex; gap: 8px; }
.gp-dot { width: 28px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .28); cursor: pointer; }
.gp-dot[aria-selected="true"] { background: var(--coin); }
.gp-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 520px) { .gp-front-h1 { padding-top: 16px; } .gp-front-h1 .gp-h1-sub { display: block; margin: .3em 0 0; } .gp-series--slider .gp-series__in { padding-block: 12px 28px; } .gp-front-h1 { align-items: flex-start; } .gp-dot { width: 22px; } }
/* ジャンルの切りかえ（ゲーム一覧、ジャンルのページ） */
.gp-chips { margin: 0 0 24px; }
.gp-chips ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.gp-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 14px; text-decoration: none; color: inherit; }
.gp-chips a span { font-family: var(--label); font-weight: 600; font-size: 12px; color: var(--muted); }
.gp-chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gp-chips a[aria-current="page"] span { color: rgba(255, 255, 255, .7); }
/* シリーズの一覧（/series/） */
.gp-series-list { display: grid; gap: 28px; margin-top: 32px; } /* 上の広告とのあいだ（1.9.1。2026-10-20、オーナー「詰まっている」） */
.gp-series-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; padding: 28px; border-radius: var(--radius); background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, .035) 22px 44px), var(--ink); color: #fff; }
.gp-series-item__title { margin: 0 0 .3em; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
.gp-series-item__title a { color: inherit; text-decoration: none; }
.gp-series-item__catch { margin: 0 0 10px; font-weight: 700; font-size: 17px; }
.gp-series-item__text { margin: 0 0 12px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.gp-series-item__count { margin: 0 0 18px; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .08em; color: var(--coin); }
.gp-series-item__games { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; }
.gp-series-item__games a { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.gp-series-item__games img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-series-item__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-weight: 700; font-size: 12px; line-height: 1.3; }
@media (max-width: 743px) { .gp-series-item { grid-template-columns: 1fr; padding: 22px 18px; gap: 20px; } }

/* ---------- テーマ 1.9.3（2026-10-20、オーナー）：iPad mini の縦（744px）から PC の形 ----------
   スマホの形は 743px まで（それまで 720〜820px でばらばらだった切りかえを、744px にそろえた）。
   744〜900px は、PC のメニューが1行に収まるよう、メニューの字を折らず、すき間とロゴを少し詰める */
@media (min-width: 744px) and (max-width: 900px) {
	.gp-header__in { gap: 10px; }
	.gp-logo { font-size: 18px; }
	.gp-nav a { white-space: nowrap; padding: 8px 9px; }
}

/* ---------- テーマ 1.9.4（2026-10-20、オーナー）：トップのスライドの背景を、シリーズごとに変える ----------
   シリーズの編集画面の「トップのスライドの背景の画像」に URL を入れると、そのスライドの地になる。文字が読めるよう、左（スマホは全体）に紺を重ねる。
   上の h1 と点の行はスライドの上に重ね、背景がスライドの一番上から見えるようにする */
.gp-series--slider { position: relative; }
.gp-series--slider .gp-front-h1 { position: absolute; top: 0; left: 0; right: 0; z-index: 2; pointer-events: none; }
.gp-series--slider .gp-front-h1 .gp-dots { pointer-events: auto; }
.gp-series--slider .gp-series__in { padding-top: 76px; }
.gp-slide.has-bg { background: linear-gradient(90deg, rgba(22, 27, 46, .95) 0%, rgba(22, 27, 46, .86) 45%, rgba(22, 27, 46, .5) 100%), var(--slide-bg) center / cover no-repeat; }
@media (max-width: 743px) {
	.gp-slide.has-bg { background: linear-gradient(180deg, rgba(22, 27, 46, .82), rgba(22, 27, 46, .7)), var(--slide-bg) center / cover no-repeat; }
}
@media (max-width: 520px) { .gp-series--slider .gp-series__in { padding-top: 84px; } }

/* ---------- テーマ 1.9.5（2026-10-20、オーナー）：ゲーム一覧とジャンルのページの、いちばん上の広告は、見出しとジャンルの切りかえの下 ---------- */
.gp-ad.gp-ad--list { margin-block: 8px 32px; }
