/* ===== 投稿ページ用装飾 ===== */
/* 投稿ページのコンテンツ幅を800pxに制限 */
.single .content,
.single .main,
.single .container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================================
   投稿ページ横スクロール防止 & 幅調整
   ------------------------------------------------------------------------
   ・投稿だけ横スクロールを消す
   ・本文を800pxに制限して横の余白を整える
   ------------------------------------------------------------------------ */
body.single {

  /* 横幅は制限 */
  overflow-x: hidden;
}

/* 投稿記事本文の最大幅 */
body.single .main {
  max-width: 800px;
  margin: 0 auto;
}

/* 親ラップの固定幅解除 */
body.single .wrap,
body.single .container,
body.single .header-container,
body.single .footer-container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

/* ヘッダーナビゲーションがはみ出さないように */
body.single #navi .navi-in > ul {
  display: flex !important;
  flex-wrap: wrap !important;
}

/* ヘッダー内の余白調整 */
body.single .header-container {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* フッター内の余白調整 */
body.single .footer-container {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* 投稿ページのカテゴリを非表示 */
body.single .cat-label {
    display: none !important;
}

body.single .cat-link {
    display: none !important;
}

/* ==== 見出し ==== */
/* ==== h2 見出し ==== */
.single .entry-content h2 {
  position: relative;
  background: #f1f1f1;
  padding: 20px 20px 20px 28px;
  margin: 60px 0 30px;
  font-size: 30px;
  font-weight: 600;
  color: #3f4a74;
  border-bottom: 2px solid #222;
}

/* 左の黒ライン */
.single .entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: #111;
}

/* h3 見出し */
body.single .entry-content h3 {
  position: relative;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #3f4a6b !important;

  padding-left: 18px !important;
  margin-top: 50px !important;
  margin-bottom: 25px !important;

  border: none !important;
  background: none !important;
}

/* 左の縦線 */
body.single .entry-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 80%;
  background-color: #000;
}

/* 下の点線 */
body.single .entry-content h3::after {
  content: "";
  display: block;
  margin-top: 15px;
  border-bottom: 2px dotted #999;
}

/* h4 見出し */
body.single h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #444;
  padding: 0.3rem 0;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 2px solid #888; /* さらに細めの下線 */
}

/* ==== マーカー ==== */
.single .entry-content .marker2 {
  background: linear-gradient(
    transparent 60%,
    #a9eaf2 60%
  ) !important;
}

.single .entry-content .marker {
  background: linear-gradient(
    transparent 60%,
    #ffcedb 60%
  ) !important;
}

/* JIN風チェックリスト */
ul.check {
  list-style: none;
  padding-left: 0;
}

ul.check li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-weight: 500;
}

ul.check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #3b4675;
  font-weight: bold;
}

/* ==== アプリーチ用 ==== */
.appreach {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 10px;
  margin: 25px 0;
  background: #fff;
}

.appreach__icon {
  width: 80px;
  border-radius: 15px;
}

.appreach__name {
  font-weight: bold;
  font-size: 18px;
}

.appreach__links img {
  height: 40px;
}

/* ==== 合わせて読みたい記事セクション ==== */
/* Cocoon ブログカード（内部/外部とも対応） */
.blogcard-type {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 1rem 0;
}

/* サムネイル画像だけを表示 */
.blogcard-type .blogcard-thumbnail {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* サムネイル画像の角丸 */
.blogcard-type .blogcard-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* タイトル部分 */
.blogcard-type .blogcard-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #222;
  margin: 0;
  padding: 0.2rem 0;
  text-decoration: none;
}

/* カード全体のリンク範囲（タイトル・画像をクリック可能に） */
.blogcard-type a {
  text-decoration: none;
  color: inherit;
}

/* ホバー時の軽いエフェクト */
.blogcard-type:hover .blogcard-thumbnail img {
  opacity: 0.9;
  transform: scale(1.02);
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* ==== CTA ボタン ==== */
/* ボタンを中央寄せ */
.btn-cta-wrap {
  text-align: center;
  margin: 2rem 0;
}

/* ボタン本体 */
.btn-cta,
a.btn-cta {
  display: inline-block !important;
  background-color: #000 !important;  /* 黒背景 */
  color: #fff !important;             /* 白文字 */
  text-decoration: none !important;   /* 下線なし */
  padding: 0.8rem 1.8rem !important;
  font-weight: bold !important;
  border-radius: 6px !important;
  border: none !important;
  transition: background-color 0.2s ease-in-out;
}

/* ホバー時 */
.btn-cta:hover,
a.btn-cta:hover {
  background-color: #222 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* リンクの青文字・下線を確実に消す */
.btn-cta,
.btn-cta * {
  color: #fff !important;
  text-decoration: none !important;
}

/* ==== 画像の基本調整 ==== */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ==== コードブロック ==== */
pre {
  background: #f3f3f3;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.95rem;
}