/* single.php */

.single-post {
      font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===================================
   参考文献セクション
=================================== */
.reference-section {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #6c757d;
  border-radius: 0 8px 8px 0;
}

.reference-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem 0 !important;
  padding-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px dashed #adb5bd;
}

.reference-title i {
  color: #6c757d;
}

.reference-list {
  margin: 0;
  padding: 0;
}

.reference-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.6rem 0 !important;
  padding: 0 !important;
  font-size: 0.875rem;
  line-height: 1.7;
}

.reference-item:last-child {
  margin-bottom: 0 !important;
}

.ref-num {
  flex-shrink: 0;
  color: #6c757d;
  font-weight: 500;
}

.reference-item a {
  color: #495057;
  text-decoration: none;
  border-bottom: 1px dotted #adb5bd;
  transition: all 0.2s ease;
}

.reference-item a:hover {
  color: #228B22;
  border-bottom-color: #228B22;
}

.reference-item cite {
  font-style: normal;
  font-weight: 500;
}


.single-post h2 {
      box-sizing: border-box;
      padding: 0.8em 0.4em;
  /* padding-left: 1rem; */
  margin-left: 0;
  margin-bottom: 24px;
  background:  #0D384C;
  color: #ffffff;
  font-weight: bold;
  /* border-left: 4px solid #0D384C; */
  letter-spacing: 0.1em;

}

.single-post h2::before {
    border-top: none;
    border-bottom: none;
    padding: 0.3em 0em;
}

.single-post h3 {
  color: #0D384C;
  margin-bottom: 16px;
  padding-left: 0;
}

.single-post .post_content h4 {
  color: #0D384C;
  /* margin-top: 16px !important; */
  margin-bottom: 8px;
  padding-left: 8px;
}

.single-post .post_content h4 + p {
  margin-bottom: 24px !important;
}


/* 外部リンクアイコン */
.reference-item a::after {
  content: "\f35d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.65rem;
  margin-left: 0.4rem;
  opacity: 0.5;
}

#main_content .p-toc {
    margin: 4em 0;
    max-width: 100% ;
}
@media (min-width: 960px) {
    #main_content .p-toc {
        width: 100%;
    }
}

ol.is-style-index ol>li:before, ol.is-style-index>li:before {
    border-right: none;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .reference-section {
    padding: 1.25rem 1rem;
  }
  
  .reference-item {
    font-size: 0.8125rem;
  }
}

h2.reference-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem 0 !important;
  padding: 0 0 0.75rem 0 !important;
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  border: none !important;
  border-bottom: 1px dashed #adb5bd !important;
  background: none !important;
}





/* ===================================
   CTAセクション
=================================== */
.cta-section {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: #0D384C;
  border-radius: 12px;
  max-width: 100%;
}

h2.cta-title {
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  border: none !important;
  background: none !important;
}

.cta-description {
  margin: 0 0 2rem 0 !important;
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cta-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cta-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.cta-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3f0f7;
}

.cta-icon i {
  font-size: 1.75rem;
  color: #0D384C;
}

/* h3 下線完全削除 */
.cta-card h3,
.cta-section .cta-card h3 {
  margin: 0 0 0.75rem 0 !important;
  padding: 0 !important;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  border: none !important;
  border-bottom: none !important;
  border-left: none !important;
  background: none !important;
  position: relative;
}

.cta-card h3::before,
.cta-card h3::after {
  content: none !important;
  display: none !important;
}

.cta-number {
  margin: 0 0 0.5rem 0 !important;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0D384C;
  letter-spacing: 0.02em;
}

.cta-hours {
  margin: 0 0 1.25rem 0 !important;
  font-size: 0.8rem;
  color: #777;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: #0D384C;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: #1a5a75;
  transform: translateY(-2px);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .cta-section {
    padding: 2rem 1.25rem;
    max-width: 100%;
  }

  h2.cta-title {
    font-size: 1.25rem;
    text-align: center;
  }

  .cta-description {
    font-size: 0.875rem;
    text-align: left;
  }

  .cta-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cta-card {
    padding: 1.5rem 1.25rem;
  }

  .cta-icon {
    width: 60px;
    height: 60px;
  }

  .cta-icon i {
    font-size: 1.5rem;
  }

  .cta-number {
    font-size: 1.5rem;
  }

  .cta-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }
}

.cta-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  /* 追加：Flexboxで縦並び */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

/* ボタンを下揃え */
.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: #0D384C;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: auto; /* 追加：これで下揃えになる */
}


/* ==========================
   カスタムブログカード
========================== */

.custom-blogcard {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.custom-blogcard:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.blogcard-thumb {
    width: 160px;
    flex-shrink: 0;
}

.blogcard-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.blogcard-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blogcard-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.blogcard-excerpt {
    font-size: .9rem;
    color: #666;
    line-height: 1.6;
}

/* ==========================
   スマホ対応
========================== */

@media (max-width: 768px) {
    .custom-blogcard {
        flex-direction: column;
    }

    .blogcard-thumb {
        width: 100%;
    }
}

/* ==========================
   Modern Blog Card
========================== */

.custom-blogcard {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin: 24px 0;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;

    transition: 
        box-shadow .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

.custom-blogcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
    border-color: #e5e5e5;
}

/* 画像 */
.blogcard-thumb {
    width: 180px;
    flex-shrink: 0;
}

.blogcard-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

/* 右側 */
.blogcard-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* タイトル */
.blogcard-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #111;
}

/* ディスクリプション */
.blogcard-excerpt {
    font-size: .9rem;
    line-height: 1.7;
    color: #666;
}

/* ==========================
   モダン感アップ（微調整）
========================== */

/* カード内の余計な下線を消す */
.custom-blogcard:hover .blogcard-title {
    text-decoration: none;
}

/* ==========================
   スマホ対応
========================== */

@media (max-width: 768px) {
    .custom-blogcard {
        flex-direction: column;
        padding: 16px;
    }

    .blogcard-thumb {
        width: 100%;
    }

    .blogcard-thumb img {
        height: auto;
    }

    .blogcard-title {
        font-size: 1rem;
    }
}

.custom-blogcard::before {
    content: "ARTICLE";
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 11px;
    letter-spacing: .08em;
    color: #888;
    background: #fff;
    padding: 0 8px;
}