/* =========================================
   Single Post (News) stylish styles
   対象: .content-area 内の投稿表示
========================================= */

:root{
  --kb-muted: rgba(17,17,17,.72);
  --kb-border: rgba(17,17,17,.10);
  --kb-bg: #fff;
  --kb-soft: rgba(17,17,17,.04);
  --kb-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* 画面全体の余白（GeneratePressの既存余白と干渉しにくい） */
#primary.content-area{
  padding-block: clamp(18px, 3vw, 48px);
}

/* 記事カード */
#primary .site-main article{
  margin: 0 auto;
}

/* あなたの .section-container を「カードの器」に */
#primary .site-main article .section-container{
  max-width: 920px;
  margin-inline: auto;
  background: var(--kb-bg);
  border: 1px solid var(--kb-border);
  box-shadow: var(--kb-shadow);
  padding: clamp(18px, 3.2vw, 40px);
}

/* 見出しエリア */
#primary .entry-header{
  padding-bottom: clamp(14px, 2vw, 18px);
  border-bottom: 1px solid var(--kb-border);
  margin-bottom: clamp(18px, 2.6vw, 26px);
}

/* タイトル */
#primary .entry-title{
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: .02em;
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 34px);
  color: var(--kb-text);
}

/* 日付（meta） */
#primary .entry-meta{
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--kb-muted);
  font-size: 14px;
}

#primary .entry-meta time{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--kb-border);
  background: #0b1c3d;
  border-radius: 999px;
  color: #fff;
}

/* 本文 */
#primary .entry-content{
  color: var(--kb-text);
  font-size: 16px;
  line-height: 1.9;
}

/* 段落の余白 */
#primary .entry-content p{
  margin: 0 0 1.15em;
}

/* リンク */
#primary .entry-content a{
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  text-decoration-color: rgba(17,17,17,.25);
  transition: text-decoration-color .2s ease, opacity .2s ease;
}
#primary .entry-content a:hover{
  text-decoration-color: rgba(17,17,17,.55);
  opacity: .95;
}

/* 見出し（ブロックエディタのH2/H3なども想定） */
#primary .entry-content h2,
#primary .entry-content h3,
#primary .entry-content h4{
  line-height: 1.35;
  margin: 1.8em 0 .8em;
  font-weight: 800;
}
#primary .entry-content h2{
  font-size: clamp(18px, 2.4vw, 24px);
  padding-left: 12px;
  border-left: 4px solid rgba(17,17,17,.25);
}
#primary .entry-content h3{
  font-size: clamp(16px, 2.1vw, 20px);
}
#primary .entry-content h4{
  font-size: 16px;
  color: rgba(17,17,17,.85);
}

/* 引用 */
#primary .entry-content blockquote{
  margin: 1.4em 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(17,17,17,.25);
  background: var(--kb-soft);
  border-radius: 12px;
  color: rgba(17,17,17,.9);
}
#primary .entry-content blockquote p:last-child{
  margin-bottom: 0;
}

/* リスト */
#primary .entry-content ul,
#primary .entry-content ol{
  margin: 1em 0 1.2em 1.2em;
  padding: 0;
}
#primary .entry-content li{
  margin: .45em 0;
}

/* 画像・ギャラリー */
#primary .entry-content img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
#primary .entry-content figure{
  margin: 1.2em 0;
}
#primary .entry-content figcaption{
  margin-top: 8px;
  font-size: 13px;
  color: var(--kb-muted);
}

/* 表 */
#primary .entry-content table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--kb-border);
  border-radius: 14px;
  margin: 1.4em 0;
}
#primary .entry-content th,
#primary .entry-content td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--kb-border);
  vertical-align: top;
}
#primary .entry-content th{
  background: var(--kb-soft);
  font-weight: 700;
}
#primary .entry-content tr:last-child td{
  border-bottom: 0;
}

/* 区切り線 */
#primary .entry-content hr{
  border: 0;
  height: 1px;
  background: var(--kb-border);
  margin: 1.8em 0;
}

/* ページ分割 */
#primary .page-links{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--kb-border);
  color: var(--kb-muted);
  font-size: 14px;
}
#primary .page-links a,
#primary .page-links > span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  margin: 6px 6px 0 0;
  border: 1px solid var(--kb-border);
  padding: 0 10px;
  text-decoration: none;
}
#primary .page-links > span{
  background: rgba(17,17,17,.08);
}

/* 戻るボタンエリア */
#primary .kb-back-btn{
  margin-top: clamp(18px, 2.4vw, 26px);
  display: flex;
  justify-content: flex-start;
}

/* ナビ（前/次） */
#primary .post-navigation{
  margin-top: clamp(18px, 2.4vw, 26px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--kb-border);
}

#primary .nav-links{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* あなたのボタン共通クラスに寄せて、見た目を整える */
#primary a.top-game-more-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--kb-border);
  background: #fff;
  text-decoration: none;
  color: var(--kb-text);
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

#primary a.top-game-more-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

/* 既存の gray / solid があればそれを活かす（無ければこれが効く） */
#primary a.top-game-more-link.gray{
  background: var(--kb-soft);
}

#primary a.top-game-more-link.solid{
  background: rgba(17,17,17,.90);
  color: #fff;
  border-color: rgba(17,17,17,.90);
}

/* SPは縦積み */
@media (max-width: 720px){
  #primary .site-main article .section-container{
    padding: 18px 16px;
  }

  #primary .nav-links{
    grid-template-columns: 1fr;
  }

  #primary .entry-meta{
    font-size: 13px;
  }
}

/* モーション苦手な方向け */
@media (prefers-reduced-motion: reduce){
  #primary a.top-game-more-link{
    transition: none;
  }
  #primary a.top-game-more-link:hover{
    transform: none;
  }
}

