/* ===========================
   Base & Reset
   ブランドカラーは「ゲーム犬も歩けば ロゴガイドライン v2.0」準拠
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand */
  --brand-green:   #86bf2a;  /* メインカラー (PANTONE P157-16C) */
  --brand-green-d: #4f7a12;  /* 白背景上の文字用（コントラスト確保） */
  --brand-green-l: #eef6e0;
  --brand-black:   #111111;
  --brand-white:   #ffffff;
  --brand-brown:   #976a41;  /* ロゴの犬 */

  /* UI */
  --bg-primary:    #ffffff;
  --bg-secondary:  #f6f7f3;
  --bg-card:       #ffffff;
  --text-primary:  var(--brand-black);
  --text-muted:    #5c5f57;
  --border:        var(--brand-black);
  --dot:           4px;      /* ドット1マス分の単位 */
  --ease:          0.16s steps(3, end);
  --font-pixel:    'DotGothic16', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

html {
  font-family:
    'Segoe UI', 'Helvetica Neue', Arial,
    'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  /* うっすらドットグリッド */
  background-image:
    radial-gradient(rgba(17, 17, 17, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===========================
   Layout
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   Header
=========================== */
.site-header {
  background: var(--brand-white);
  border-bottom: var(--dot) solid var(--brand-black);
  padding: 12px 0;
  position: relative;
  z-index: 100;
}

/* ヘッダー下のドット帯（ロゴの緑） */
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--dot) * -3);
  height: calc(var(--dot) * 2);
  background:
    linear-gradient(90deg, var(--brand-green) 50%, transparent 50%) 0 0 / calc(var(--dot) * 4) 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-title {
  line-height: 0;
}

.site-logo {
  height: 88px;
  width: auto;
  /* アイソレーション（ロゴ1dot分の余白）を確保 */
  padding: 6px;
}

/* グローバルナビ */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  padding: 6px 14px;
  border: 3px solid transparent;
  transition: background var(--ease), border-color var(--ease);
}

.site-nav a:hover {
  border-color: var(--brand-black);
}

.site-nav a[aria-current="page"] {
  background: var(--brand-green);
  border-color: var(--brand-black);
  box-shadow: 3px 3px 0 var(--brand-black);
}

/* 管理者ログイン中の帯 */
.admin-bar {
  background: var(--brand-brown);
  color: #fff;
  font-size: 0.8125rem;
  padding: 6px 0;
  margin-top: 12px;
}

.admin-bar a {
  text-decoration: underline;
}

/* ===========================
   Main
=========================== */
.main {
  flex: 1;
  padding: 56px 0 80px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.section-heading {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  font-weight: 400;
  position: relative;
  padding-left: 24px;
}

/* 見出し横のドット */
.section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background: var(--brand-green);
  box-shadow: 4px 4px 0 var(--brand-black);
}

.game-count {
  font-family: var(--font-pixel);
  font-size: 0.875rem;
  color: var(--brand-green-d);
}

/* ===========================
   Games Grid
=========================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));   /* 縦長サムネ（3:4）前提 */
  gap: 28px;
}

/* ===========================
   Game Card
=========================== */
.game-card {
  background: var(--bg-card);
  border: 3px solid var(--border);
  box-shadow: 6px 6px 0 var(--brand-black);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--ease),
    box-shadow var(--ease);
}

.game-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--brand-green);
}

/* Thumbnail */
.card-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;   /* ゲームは縦長が基本なのでサムネも縦長 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--border);
}

.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.thumb-img.loaded {
  opacity: 1;
}

.card-icon {
  font-size: 3.5rem;
  line-height: 1;
  z-index: 1;
  filter: drop-shadow(4px 4px 0 rgba(17, 17, 17, 0.85));
  transition: transform var(--ease);
  pointer-events: none;
}

.game-card:hover .card-icon {
  transform: scale(1.12);
}

/* Card Body */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-title {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  font-weight: 400;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 8px;
  background: var(--brand-green-l);
  color: var(--brand-green-d);
  border: 2px solid var(--brand-green);
}

.card-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* Play button */
.btn-play {
  display: block;
  text-align: center;
  font-family: var(--font-pixel);
  background: var(--brand-green);
  color: var(--brand-black);
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  border: 3px solid var(--brand-black);
  box-shadow: 4px 4px 0 var(--brand-black);
  margin-top: 6px;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.btn-play:hover {
  background: #97cf3a;
}

.btn-play:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--brand-black);
}

.btn-play:focus-visible,
.game-card a:focus-visible {
  outline: 3px solid var(--brand-brown);
  outline-offset: 3px;
}

/* ===========================
   Footer
=========================== */
.site-footer {
  background: var(--brand-black);
  color: #bfc2b8;
  padding: 32px 0 24px;
  text-align: center;
  font-size: 0.8125rem;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 14px;
  padding: 4px;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
  .site-logo    { height: 64px; padding: 4px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .main         { padding: 40px 0 60px; }
  .games-grid   { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
}

@media (max-width: 480px) {
  .container        { padding: 0 16px; }
  .site-logo        { height: 52px; }
  .site-nav a       { padding: 4px 10px; font-size: 0.875rem; }
  .games-grid       { grid-template-columns: repeat(2, 1fr); gap: 14px; }   /* スマホは2列 */
  .games-grid .card-body { padding: 12px; gap: 6px; }
  .games-grid .card-title { font-size: 0.95rem; }
  .games-grid .card-description { display: none; }
  .games-grid .btn-play { padding: 8px 10px; font-size: 0.875rem; }
  .section-header   { flex-direction: column; gap: 4px; }
}

/* ===========================
   共通パーツ（ブログ・サポート）
=========================== */
.container.narrow {
  max-width: 860px;
}

.home-section + .home-section {
  margin-top: 64px;
}

.btn-pixel {
  display: inline-block;
  font-family: var(--font-pixel);
  background: var(--brand-green);
  color: var(--brand-black);
  padding: 8px 18px;
  border: 3px solid var(--brand-black);
  box-shadow: 4px 4px 0 var(--brand-black);
  transition: transform var(--ease), box-shadow var(--ease);
}

.btn-pixel:hover {
  background: #97cf3a;
}

.btn-pixel:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.empty-box {
  border: 3px dashed #c8cbc2;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  display: grid;
  gap: 16px;
}

.badge-draft {
  font-size: 0.72rem;
  background: var(--brand-brown);
  color: #fff;
  padding: 1px 8px;
}

.game-count a {
  text-decoration: underline;
}

/* ===========================
   ブログ：一覧
=========================== */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.post-list {
  display: grid;
  gap: 20px;
}

.post-list.compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.post-card {
  background: #fff;
  border: 3px solid var(--brand-black);
  box-shadow: 5px 5px 0 var(--brand-black);
  transition: transform var(--ease), box-shadow var(--ease);
}

.post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--brand-green);
}

.post-card-link {
  display: flex;
  height: 100%;
}

.post-list.compact .post-card-link {
  flex-direction: column;
}

.post-card-thumb {
  flex: 0 0 200px;
  background: var(--brand-green-l);
  border-right: 3px solid var(--brand-black);
  overflow: hidden;
}

.post-list.compact .post-card-thumb {
  flex-basis: auto;
  aspect-ratio: 16 / 9;
  border-right: 0;
  border-bottom: 3px solid var(--brand-black);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.post-cat {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 8px;
  background: var(--brand-green-l);
  color: var(--brand-green-d);
  border: 2px solid var(--brand-green);
}

.post-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ページ送り */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  font-family: var(--font-pixel);
}

.pagination a,
.pagination span {
  min-width: 40px;
  padding: 6px 10px;
  text-align: center;
  border: 3px solid var(--brand-black);
  background: #fff;
}

.pagination a:hover {
  background: var(--brand-green-l);
}

.pagination span[aria-current] {
  background: var(--brand-green);
}

.pagination .gap {
  border-color: transparent;
  background: none;
}

/* サイドバー */
.blog-side {
  display: grid;
  gap: 24px;
}

.side-box {
  background: #fff;
  border: 3px solid var(--brand-black);
  padding: 16px;
}

.side-title {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 1rem;
  margin: -16px -16px 12px;
  padding: 6px 16px;
  background: var(--brand-black);
  color: #fff;
}

.side-list {
  list-style: none;
  font-size: 0.875rem;
}

.side-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed #d6d8d1;
}

.side-list li:last-child {
  border-bottom: 0;
}

.side-list a:hover,
.side-list a[aria-current] {
  color: var(--brand-green-d);
  text-decoration: underline;
}

.side-list span,
.side-archive summary span {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.side-recent li {
  display: block;
  line-height: 1.5;
}

.side-archive summary {
  cursor: pointer;
  padding: 6px 0;
  font-weight: 700;
}

.side-archive .side-list {
  padding-left: 12px;
}

.side-search {
  display: flex;
}

.side-search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 6px 8px;
  border: 3px solid var(--brand-black);
  border-right: 0;
}

.side-search button {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  background: var(--brand-green);
  border: 3px solid var(--brand-black);
  padding: 0 12px;
  cursor: pointer;
}

/* ===========================
   ブログ：記事ページ
=========================== */
.post {
  background: #fff;
  border: 3px solid var(--brand-black);
  box-shadow: 6px 6px 0 var(--brand-black);
  padding: 32px clamp(16px, 4vw, 40px);
  min-width: 0;
}

.post-header {
  border-bottom: 3px solid var(--brand-black);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.post-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.4;
  margin-top: 8px;
}

.post-body {
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.post-body img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.post-body a {
  color: #1a6fb5;
  text-decoration: underline;
}

.post-body h2,
.post-body h3 {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 1.6em 0 0.6em;
  padding: 4px 12px;
  border-left: 8px solid var(--brand-green);
  background: var(--brand-green-l);
}

.post-body h4 {
  font-size: 1.05rem;
  margin: 1.4em 0 0.4em;
}

.post-body ul,
.post-body ol {
  padding-left: 1.6em;
  margin: 0.6em 0;
}

.post-body blockquote {
  border-left: 4px solid #c8cbc2;
  padding: 4px 16px;
  margin: 1em 0;
  color: var(--text-muted);
}

.post-body hr {
  border: 0;
  border-top: 3px dashed #c8cbc2;
  margin: 2em 0;
}

.post-more {
  margin-top: 1.2em;
}

.table-wrap {
  overflow-x: auto;
  margin: 1em 0;
}

.post-body table {
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-body td,
.post-body th {
  border: 1px solid #b9bcb3;
  padding: 4px 8px;
  vertical-align: top;
}

.embed {
  position: relative;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 1em 0;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 3px solid var(--brand-black);
}

.post-body a.linkcard {
  display: block;
  max-width: 560px;
  margin: 0.6em 0;
  padding: 12px 16px 12px 48px;
  border: 3px solid var(--brand-black);
  background: #fff url("../images/logo/icon.svg") no-repeat 12px center / 24px;
  color: var(--brand-black);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.5;
}

.post-body a.linkcard:hover {
  background-color: var(--brand-green-l);
}

/* 前後の記事 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: 3px solid var(--brand-black);
  font-size: 0.875rem;
  line-height: 1.5;
}

.post-nav a:hover {
  background: var(--brand-green-l);
}

.post-nav span {
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  color: var(--brand-green-d);
}

.post-nav-next {
  grid-column: 2;
  text-align: right;
}

/* コメント */
.comments {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 3px solid var(--brand-black);
}

.comments-title {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 1.2rem;
}

.comments-title span {
  font-size: 0.875rem;
  background: var(--brand-black);
  color: #fff;
  padding: 0 8px;
  vertical-align: middle;
}

.comments-note {
  margin: 12px 0 16px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  font-size: 0.875rem;
}

.comments-note a {
  color: #1a6fb5;
  text-decoration: underline;
}

.comments-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 0;
}

.comments-list ol {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.comment {
  border: 2px solid #d6d8d1;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.comment.is-owner {
  border-color: var(--brand-green);
  background: var(--brand-green-l);
  margin-left: clamp(0px, 4vw, 32px);
}

.comment-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.comment-meta strong {
  color: var(--brand-black);
}

.owner-badge {
  font-size: 0.7rem;
  background: var(--brand-green);
  color: var(--brand-black);
  padding: 0 6px;
  margin-left: 6px;
  font-weight: 700;
}

.comment-body {
  overflow-wrap: anywhere;
  line-height: 1.75;
}

/* ===========================
   魔大陸の傭兵王 サポート
=========================== */
.mk-hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-black);
  color: #fff;
  margin: -28px 0 0;   /* .main の上余白を詰める（ヘッダー下の緑ドット帯と動画の間に 16px あける） */
  min-height: min(82vh, 720px);
  display: flex;
  align-items: center;
  border-bottom: 4px solid var(--brand-green);
}

/* 背景動画：16:9 を枠いっぱいに敷き詰める */
.mk-hero-media {
  position: absolute;
  inset: 0;
  container-type: size;
}

.mk-hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.mk-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.12);   /* 端の黒帯・ロゴを隠す */
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.mk-hero.is-playing .mk-hero-video {
  opacity: 1;
}

/* 文字を読みやすくする暗幕（左を濃く） */
.mk-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.6) 45%, rgba(10, 10, 10, 0.1) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.7) 0%, transparent 35%);
}

.mk-hero-content {
  position: relative;
  width: 100%;
  padding-top: 56px;
  padding-bottom: 56px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.mk-hero-title {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 4px 4px 0 var(--brand-black), 0 0 24px rgba(0, 0, 0, 0.6);
}

.mk-hero-sub {
  display: inline-block;
  margin-top: 14px;
  padding: 2px 12px;
  background: var(--brand-green);
  color: var(--brand-black);
  font-family: var(--font-pixel);
  text-shadow: none;
}

.mk-hero-catch {
  margin-top: 28px;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 800;
  line-height: 1.6;
}

.mk-hero-lead {
  margin-top: 14px;
  font-size: clamp(0.9rem, 1.8vw, 1.02rem);
  line-height: 1.9;
  color: #e6e8e1;
}

.mk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  text-shadow: none;
}

/* 公式ストアバッジ（画像は加工しない。高さだけ揃える） */
.mk-hero-actions {
  align-items: center;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  width: auto;
  height: 48px;
}

/* Google のバッジは画像の上下に余白があるので、見た目の高さを App Store と合わせる */
.store-badge .badge-google {
  height: 62px;
  margin: -7px -4px;
}

.store-badge:focus-visible {
  outline: 3px solid var(--brand-green);
  outline-offset: 4px;
}

.mk-pv-btn {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: #fff;
  background: rgba(17, 17, 17, 0.55);
  border: 3px solid #fff;
  padding: 8px 18px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.mk-pv-btn span {
  color: var(--brand-green);
}

.mk-pv-btn:hover {
  background: #fff;
  color: var(--brand-black);
}

.mk-pv-btn:focus-visible {
  outline: 3px solid var(--brand-green);
  outline-offset: 3px;
}

/* PV 再生ダイアログ */
.pv-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(960px, 92vw);
  max-width: none;
  margin: auto;
  overflow: visible;
}

.pv-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.pv-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 var(--brand-green);
}

.pv-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pv-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brand-black);
  background: var(--brand-green);
  border: 3px solid var(--brand-black);
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .mk-hero-video { display: none; }
}

.mk-section {
  margin-bottom: 56px;
}

.mk-section .section-heading {
  margin-bottom: 20px;
}

.pin-list {
  list-style: none;
  border: 3px solid var(--brand-black);
  background: #fff;
}

.pin-list li + li {
  border-top: 2px dashed #d6d8d1;
}

.pin-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
}

.pin-list a:hover {
  background: var(--brand-green-l);
}

.pin-title {
  font-weight: 700;
}

.pin-title::before {
  content: "\25B6\00a0";
  color: var(--brand-green-d);
  font-size: 0.75em;
}

.pin-date {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.more-link {
  margin-top: 16px;
  text-align: right;
}

.more-link a {
  text-decoration: underline;
}

.mk-footer-links {
  text-align: center;
  font-size: 0.875rem;
}

.mk-footer-links a {
  text-decoration: underline;
}

/* フッターのリンク */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--brand-green);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 900px) {
  .blog-layout    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mk-hero         { margin-top: -12px; min-height: 0; flex-direction: column; align-items: stretch; }
  /* スマホは動画を上に16:9で見せ、文章はその下に */
  .mk-hero-media   { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
  .mk-hero-shade   { top: auto; height: 0; }
  .mk-hero-content { padding-top: 24px; padding-bottom: 40px; }
  .mk-hero-media::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--brand-black)); }
}

@media (max-width: 560px) {
  .post-card-link  { flex-direction: column; }
  .post-card-thumb { flex-basis: auto; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 3px solid var(--brand-black); }
  .post-nav        { grid-template-columns: 1fr; }
  .post-nav-next   { grid-column: 1; }
  .pin-list a      { flex-direction: column; gap: 2px; }
}

/* カテゴリへのリンク */
.cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.cat-links a {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 4px 12px;
  background: #fff;
  border: 2px solid var(--brand-black);
}

.cat-links a:hover {
  background: var(--brand-green-l);
}

.cat-links span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.more-link .btn-pixel {
  text-decoration: none;
}


.empty-box a {
  color: #1a6fb5;
  text-decoration: underline;
}

.mk-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  color: var(--text-muted);
}

/* ===========================
   スクリーンショット
=========================== */
.mk-shots {
  background: var(--brand-black);
  color: #fff;
  padding: 40px 0 36px;
  margin-bottom: 48px;
  border-bottom: 4px solid var(--brand-green);
  overflow: hidden;
}

.mk-shots-title {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--brand-green);
  margin-bottom: 20px;
}

.shots {
  position: relative;
}

.shots-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(76vw, 900px);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px calc((100vw - min(76vw, 900px)) / 2) 18px;
  scrollbar-width: none;
  outline: none;
}

.shots-track::-webkit-scrollbar {
  display: none;
}

.shot {
  scroll-snap-align: center;
  opacity: 0.35;
  transform: scale(0.94);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.shot.is-active {
  opacity: 1;
  transform: none;
}

.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 4px solid #fff;
  background: #000;
  box-shadow: 8px 8px 0 var(--brand-green);
  cursor: zoom-in;
  line-height: 0;
}

.shot:not(.is-active) .shot-open {
  cursor: pointer;
}

.shot-open img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 740;
  object-fit: cover;
}

.shot-open:focus-visible {
  outline: 3px solid var(--brand-green);
  outline-offset: 4px;
}

.shots-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 0.9rem;
  color: var(--brand-black);
  background: var(--brand-green);
  border: 3px solid var(--brand-black);
  box-shadow: 3px 3px 0 #fff;
  cursor: pointer;
}

.shots-nav.prev { left: calc((100vw - min(76vw, 900px)) / 2 - 22px); }
.shots-nav.next { right: calc((100vw - min(76vw, 900px)) / 2 - 22px); }

.shots-nav:active {
  transform: translate(3px, calc(-50% + 3px));
  box-shadow: none;
}

.shots-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.shots-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
}

.shots-dots button[aria-selected="true"] {
  background: var(--brand-green);
  border-color: var(--brand-green);
}

/* 拡大表示 */
.shot-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(1200px, 94vw);
  max-width: none;
  max-height: none;
  margin: auto;
  overflow: visible;
}

.shot-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.shot-dialog img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 var(--brand-green);
}

.shot-dialog-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  color: var(--brand-black);
  background: var(--brand-green);
  border: 3px solid var(--brand-black);
  cursor: pointer;
}

.shot-dialog-nav.prev { left: -22px; }
.shot-dialog-nav.next { right: -22px; }

@media (max-width: 768px) {
  .mk-shots         { padding: 28px 0 24px; }
  .shots-track      { grid-auto-columns: 86vw; gap: 14px; padding: 6px 7vw 14px; }
  .shots-nav        { display: none; }   /* スマホはスワイプ */
  .shot-open        { border-width: 3px; box-shadow: 5px 5px 0 var(--brand-green); }
  .store-badge img  { height: 44px; }
  .store-badge .badge-google { height: 57px; margin: -6.5px -4px; }
  .shot-dialog-nav.prev { left: 4px; }
  .shot-dialog-nav.next { right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .shot { transition: none; }
}

.mk-legal {
  margin-top: 16px;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.7;
  color: #8a8d84;
}

/* ゲームカードのリリース日 */
.card-release {
  font-size: 0.6875rem;
  color: #9a9d94;
  text-align: right;
  margin-top: -6px;
  line-height: 1;
}

/* ゲームカードのプレイ人数 */
.card-plays {
  font-size: 0.8125rem;
  color: var(--brand-green-d);
  font-weight: 700;
}

.card-plays strong {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  font-weight: 400;
  margin-right: 2px;
}
