@charset "utf-8";
/* ==========================================================================================================
   ksp-entry — 記事詳細ページ本文エリア専用スタイルシート（新規・独立）
   common/css/base.css には依存しない。html の rem/ブレークポイント基盤は他の css/*.css と同じ方式で
   このファイル内にも独立して定義している。
   ========================================================================================================== */

:root {
	--ksp-color-accent: #1c6eae;
	--ksp-color-accent-dark: #124d78;
	--ksp-color-text: #222222;
	--ksp-color-text-muted: #6b6b6b;
	--ksp-color-border: #e6e6e6;
	--ksp-color-bg: #f5f6f7;
	--ksp-radius-md: 1rem;
	--ksp-radius-lg: 1.6rem;
	--ksp-shadow-sm: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.06);
	--ksp-shadow-md: 0 0.8rem 2rem rgba(0, 0, 0, 0.1);
}

html { font-size: 62.5%; scroll-behavior: smooth; }
@media screen and (max-width: 1300px) and (min-width: 751px) {
	html { font-size: 0.75vw; }
}
@media screen and (max-width: 750px) {
	html { font-size: 62.5%; }
}

.ksp-entry,
.ksp-entry * { box-sizing: border-box; }

.ksp-page-layout { display: flex; align-items: flex-start; gap: 4rem; max-width: 100rem; margin: 0 auto; padding: 3.2rem 2rem 6rem; }
.ksp-page-layout__main { flex: 1 1 auto; min-width: 0; }
.ksp-page-layout__aside { flex: 0 0 auto; width: 32rem; }

.ksp-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem; padding-bottom: 1.6rem; border-bottom: 0.1rem solid var(--ksp-color-border); font-size: 1.3rem; }
.ksp-pager a { color: var(--ksp-color-accent); text-decoration: none; }
.ksp-pager a:hover { text-decoration: underline; }

.ksp-entry { font-family: 'Noto Sans JP', sans-serif; color: var(--ksp-color-text); }

.ksp-entry__header { margin-bottom: 3.2rem; }
.ksp-entry__meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-bottom: 1.2rem; font-size: 1.2rem; color: var(--ksp-color-text-muted); }
.ksp-entry__title { margin: 0 0 1.6rem; font-size: 2.6rem; font-weight: 700; line-height: 1.5; }
.ksp-entry__title a { color: inherit; text-decoration: none; }
.ksp-entry__title a:hover { color: var(--ksp-color-accent); }
.ksp-entry__terms { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.ksp-entry__terms a { display: inline-flex; align-items: center; height: 3rem; padding: 0 1.4rem; border-radius: 999rem; text-decoration: none; font-size: 1.2rem; font-weight: 600; transition: opacity .2s ease; }
.ksp-entry__terms a:hover { opacity: 0.8; }
.ksp-entry__terms .ksp-entry__categories a { background: var(--ksp-color-text); color: #fff; }
.ksp-entry__tags a { background: var(--ksp-color-bg); color: var(--ksp-color-text-muted); }

.ksp-ad-slot { max-width: 100%; margin: 2.4rem 0; text-align: center; overflow: hidden; }
.ksp-ad-slot ins.adsbygoogle { max-width: 100%; }

/* 記事下の一部旧スクリプト（script_*.js）が #bottomBanner の兄弟としてimgを直接
   差し込むケースがあり、.ksp-entry__content の外側なので img の max-width が効かず
   SP幅で横はみ出しの原因になっていた。ksp-entry__body 配下は常に幅を制限する。 */
.ksp-entry__body img { max-width: 100%; height: auto; }

.ksp-entry__notice { margin: 0 0 2.4rem; padding: 1.6rem; border-radius: var(--ksp-radius-md); background: #fff4e5; color: #8a5a00; font-size: 1.3rem; line-height: 1.7; }

/* 記事本文（the_content） */
.ksp-entry__content { font-size: 1.6rem; line-height: 1.9; }
.ksp-entry__content > *:first-child { margin-top: 0; }
.ksp-entry__content p { margin: 0 0 2.2rem; }
.ksp-entry__content h2 { position: relative; margin: 4.8rem 0 2.4rem; padding-left: 1.8rem; font-size: 2.2rem; font-weight: 700; line-height: 1.5; }
.ksp-entry__content h2::before { content: ""; position: absolute; left: 0; top: 0.3rem; bottom: 0.3rem; width: 0.5rem; border-radius: 999rem; background: var(--ksp-color-accent); }
.ksp-entry__content h3 { margin: 4rem 0 2rem; padding: 1rem 1.6rem; border-radius: var(--ksp-radius-md); background: var(--ksp-color-bg); font-size: 1.8rem; font-weight: 700; }
.ksp-entry__content h4 { margin: 3.2rem 0 1.6rem; padding-bottom: 0.8rem; border-bottom: 0.2rem solid var(--ksp-color-text); font-size: 1.6rem; font-weight: 700; }
.ksp-entry__content ul,
.ksp-entry__content ol { margin: 0 0 2.2rem; padding-left: 2.4rem; }
.ksp-entry__content li { margin-bottom: 0.6rem; }
.ksp-entry__content a { color: var(--ksp-color-accent); text-decoration: underline; }
.ksp-entry__content a:hover { text-decoration: none; }
.ksp-entry__content img { max-width: 100%; height: auto; border-radius: var(--ksp-radius-md); }
.ksp-entry__content figure { margin: 0 0 2.2rem; }
.ksp-entry__content table { width: 100%; margin: 0 0 2.2rem; border-collapse: collapse; font-size: 1.4rem; }
.ksp-entry__content th,
.ksp-entry__content td { padding: 1rem 1.2rem; border: 0.1rem solid var(--ksp-color-border); text-align: left; vertical-align: top; }
.ksp-entry__content th { background: var(--ksp-color-bg); }
.ksp-entry__content blockquote { margin: 0 0 2.2rem; padding: 1.6rem 2rem; border-left: 0.4rem solid var(--ksp-color-border); color: var(--ksp-color-text-muted); }
.ksp-entry__content pre,
.ksp-entry__content code { font-family: "MS Gothic", "Osaka-mono", monospace; }
.ksp-entry__content pre { padding: 1.6rem; border-radius: var(--ksp-radius-md); background: var(--ksp-color-bg); overflow-x: auto; font-size: 1.3rem; line-height: 1.6; }
.ksp-entry__content iframe { max-width: 100%; }

/* 自サイトの記事URLを貼った際の自動埋め込みカード（wp_embed）。中身（.wp-embed）の
   角丸・影は functions.php の embed_head 注入CSSで揃えているため、ここでは外枠の
   余白・角丸・影のみ。JS未実行時のフォールバック（blockquote）にも同じ見た目を適用。 */
.ksp-entry__content .wp-embedded-content { display: block; width: 100%; max-width: 100%; margin: 0 0 2.2rem; border-radius: var(--ksp-radius-md); overflow: hidden; box-shadow: var(--ksp-shadow-sm); }
.ksp-entry__content blockquote.wp-embedded-content { padding: 2rem; border: 0.1rem solid var(--ksp-color-border); font-style: normal; color: var(--ksp-color-text); }
.ksp-entry__content blockquote.wp-embedded-content a { color: var(--ksp-color-text); font-weight: 700; text-decoration: none; }
.ksp-entry__content blockquote.wp-embedded-content a:hover { color: var(--ksp-color-accent); }

/* [gamescore] / [gamescore_ps5] ショートコードが出力する得点バッジ。
   隣接して2つ並ぶ（PS4版・PS5版）ことがあるため、右/下マージンで隙間を確保しつつ、
   ::before でどちらの得点かひと目で分かるラベルを追加する。 */
.ksp-entry__content .points { position: relative; display: inline-flex; flex-direction: column; align-items: center; margin: 0 0.8rem 0.8rem 0; padding: 1.6rem 2.4rem 1.2rem; border-radius: var(--ksp-radius-lg); background: var(--ksp-color-accent); color: #fff; font-size: 2.2rem; font-weight: 800; line-height: 1; box-shadow: var(--ksp-shadow-sm); }
.ksp-entry__content .points.ps4 { background: #4a4a4a; }
.ksp-entry__content .points::before { content: "PS5版"; margin-bottom: 0.6rem; padding: 0.3rem 1rem; border-radius: 999rem; background: rgba(255, 255, 255, 0.25); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.05em; }
.ksp-entry__content .points.ps4::before { content: "PS4版"; }

/* [gamereviewsimple] / [gamereviewsimple_ps5] ショートコードが出力するレビュー一覧
   （アイキャッチを背景画像にしたカードグリッド。PS5専用タイトルには .only-ps5 が付く） */
.ksp-entry__content .tag-items01 { margin: 2.4rem 0; }
.ksp-entry__content .review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.ksp-entry__content .review-list .item { position: relative; aspect-ratio: 1 / 1; border-radius: var(--ksp-radius-md); overflow: hidden; background-color: var(--ksp-color-text); background-size: cover; background-position: center; box-shadow: var(--ksp-shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.ksp-entry__content .review-list .item:hover { transform: translateY(-0.2rem); box-shadow: var(--ksp-shadow-md); }
.ksp-entry__content .review-list .item.not-review { background-color: #8a8a8a; }
.ksp-entry__content .review-list .item a { display: flex; align-items: flex-end; height: 100%; padding: 1.2rem 1rem 1rem; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.78) 100%); text-decoration: none; }
.ksp-entry__content .review-list .item h4 { margin: 0; width: 100%; }
.ksp-entry__content .review-list .item h4 span { display: block; color: #fff; font-size: 1.3rem; font-weight: 700; line-height: 1.4; }
.ksp-entry__content .review-list .item.only-ps5::after { content: "PS5専用タイトル"; position: absolute; top: 0.8rem; right: 0.8rem; padding: 0.3rem 0.9rem; border-radius: 999rem; background: var(--ksp-color-accent); color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.6; white-space: nowrap; box-shadow: var(--ksp-shadow-sm); }

/* レビュー項目別評価などに使われる dl（旧 base.css の .entry .body dl 相当を rem で再設計） */
.ksp-entry__content dl { margin: 0 0 2.2rem; border: 0.1rem solid var(--ksp-color-border); border-radius: var(--ksp-radius-md); overflow: hidden; }
.ksp-entry__content dt { padding: 1.2rem 1.6rem; border-top: 0.1rem solid var(--ksp-color-border); background: var(--ksp-color-bg); font-weight: 700; }
.ksp-entry__content dt:first-child { border-top: none; }
.ksp-entry__content dd { margin: 0; padding: 1.4rem 1.6rem 2rem; }

.ksp-entry__widgets { margin: 3.2rem 0; }
.ksp-entry__widgets h2 { margin: 0 0 2rem; font-size: 1.8rem; font-weight: 700; }

/* サイドバー（sidebar.php 側：記事一覧・おすすめ記事・レビュー・Amazon商品） */
.ksp-aside { font-family: 'Noto Sans JP', sans-serif; font-size: 1.4rem; color: var(--ksp-color-text); }
.ksp-aside__block { margin-bottom: 3.2rem; }
.ksp-aside__heading { margin: 0 0 1.6rem; padding-bottom: 0.8rem; border-bottom: 0.2rem solid var(--ksp-color-text); font-size: 1.5rem; font-weight: 700; }

.ksp-aside__posts { display: flex; flex-direction: column; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.ksp-aside__posts li { display: flex; align-items: center; gap: 1.2rem; }
.ksp-aside__posts .eyecatch { flex: 0 0 auto; width: 6.4rem; height: 6.4rem; border-radius: var(--ksp-radius-md); overflow: hidden; background: var(--ksp-color-bg); }
.ksp-aside__posts .eyecatch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ksp-aside__posts a:not(.eyecatch a) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.3rem; line-height: 1.5; color: var(--ksp-color-text); text-decoration: none; }
.ksp-aside__posts a:not(.eyecatch a):hover { color: var(--ksp-color-accent); }

.ksp-aside__links { margin: 0; padding: 0; list-style: none; }
.ksp-aside__links li { border-bottom: 0.1rem solid var(--ksp-color-border); }
.ksp-aside__links a { display: block; padding: 1.2rem 0; font-size: 1.3rem; color: var(--ksp-color-text); text-decoration: none; }
.ksp-aside__links a:hover { color: var(--ksp-color-accent); }

.ksp-aside__reviews ul { margin: 0; padding: 0; list-style: none; }
.ksp-aside__reviews li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; border-bottom: 0.1rem solid var(--ksp-color-border); }
.ksp-aside__reviews a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.3rem; color: var(--ksp-color-text); text-decoration: none; }
.ksp-aside__reviews a:hover { color: var(--ksp-color-accent); }
.ksp-aside__reviews .score { flex: 0 0 auto; padding: 0.2rem 0.8rem; border-radius: 999rem; background: var(--ksp-color-accent); color: #fff; font-size: 1.1rem; font-weight: 600; }

.ksp-aside__widgets h2 { margin: 0 0 1.6rem; padding-bottom: 0.8rem; border-bottom: 0.2rem solid var(--ksp-color-text); font-size: 1.5rem; font-weight: 700; }

/* 404ページ */
.ksp-notfound__message { margin: 0 0 3.2rem; font-size: 1.6rem; line-height: 1.9; }
.ksp-notfound__block { margin-bottom: 3.2rem; }
.ksp-notfound__block dt { margin-bottom: 1.6rem; font-size: 1.6rem; font-weight: 700; }
.ksp-notfound__category-list { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.ksp-notfound__category-list a { display: inline-flex; align-items: center; height: 3.4rem; padding: 0 1.6rem; border-radius: 999rem; background: var(--ksp-color-bg); color: var(--ksp-color-text); text-decoration: none; font-size: 1.3rem; }
.ksp-notfound__category-list a:hover { background: var(--ksp-color-accent); color: #fff; }
.ksp-notfound__tagcloud { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.ksp-notfound__tagcloud a { display: inline-flex; align-items: center; height: 3rem; padding: 0 1.2rem; border-radius: 999rem; background: var(--ksp-color-bg); color: var(--ksp-color-text) !important; text-decoration: none; font-size: 1.1rem !important; }
.ksp-notfound__tagcloud a:hover { background: var(--ksp-color-accent); color: #fff !important; }

/* 固定ページのフッター（編集リンク）・コメント欄 */
.ksp-entry__meta { margin-top: 3.2rem; font-size: 1.2rem; color: var(--ksp-color-text-muted); }
.ksp-entry__meta .edit-link a { color: var(--ksp-color-accent); }

#comments.comments { margin: 4rem 0; }
#comments.comments > .header { margin-bottom: 2rem; }
#comments.comments > .header .title { margin: 0; font-size: 1.9rem; font-weight: 700; }
.commentForm { margin: 4rem 0; }
.commentForm .body { font-size: 1.4rem; }
.commentForm input[type="text"],
.commentForm input[type="email"],
.commentForm input[type="url"],
.commentForm textarea { width: 100%; padding: 1rem 1.2rem; border: 0.1rem solid var(--ksp-color-border); border-radius: var(--ksp-radius-md); font-family: inherit; font-size: 1.4rem; box-sizing: border-box; }
.commentForm textarea { min-height: 12rem; }
.commentForm #submit,
.commentForm input[type="submit"] { display: inline-flex; align-items: center; height: 4rem; padding: 0 2.4rem; border: none; border-radius: 999rem; background: var(--ksp-color-accent); color: #fff; font-size: 1.3rem; font-weight: 600; cursor: pointer; }
.commentForm #submit:hover,
.commentForm input[type="submit"]:hover { background: var(--ksp-color-accent-dark); }

/* 著者アーカイブ・content.php（記事一覧の素の1件表示、投稿フォーマット未使用サイトでは主に author.php 用） */
.ksp-page-title-inline { margin-bottom: 3.2rem; }
.ksp-page-title-inline .vcard a { color: var(--ksp-color-accent); }
.ksp-entry__terms { display: block; margin-top: 2rem; padding-top: 1.6rem; border-top: 0.1rem solid var(--ksp-color-border); font-size: 1.2rem; color: var(--ksp-color-text-muted); }
.ksp-entry__terms a { color: var(--ksp-color-accent); text-decoration: none; }
.ksp-entry__terms a:hover { text-decoration: underline; }
.ksp-entry__terms .ksp-entry__categories,
.ksp-entry__terms .ksp-entry__tags { display: inline-block; margin-right: 1.2rem; }

.ksp-author-info { display: flex; gap: 1.6rem; align-items: flex-start; margin-bottom: 3.2rem; padding: 2rem; border-radius: var(--ksp-radius-lg); background: var(--ksp-color-bg); }
.ksp-author-info__avatar img { display: block; border-radius: 50%; }
.ksp-author-info__desc h2 { margin: 0 0 0.8rem; font-size: 1.6rem; font-weight: 700; }
.ksp-author-info__desc p { margin: 0; font-size: 1.4rem; color: var(--ksp-color-text-muted); }

@media screen and (max-width: 750px) {
	.ksp-page-layout { flex-direction: column; align-items: stretch; gap: 4.8rem; padding: 2.4rem 1.6rem 4rem; }
	.ksp-page-layout__aside { width: 100%; }
	.ksp-entry__title { font-size: 2.1rem; }
	.ksp-entry__content { font-size: 1.5rem; }
	.ksp-entry__content h2 { font-size: 1.9rem; }
	.ksp-entry__content h3 { font-size: 1.6rem; }

	.ksp-entry__content .points { padding: 1.2rem 1.8rem 1rem; font-size: 1.8rem; }
	.ksp-entry__content .points::before { font-size: 1rem; padding: 0.2rem 0.8rem; }

	.ksp-entry__content .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
	.ksp-entry__content .review-list .item h4 span { font-size: 1.1rem; }
	.ksp-entry__content .review-list .item.only-ps5::after { font-size: 0.9rem; padding: 0.2rem 0.7rem; top: 0.6rem; right: 0.6rem; }
}
