@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/
/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* 既存のCocoon childのCSS（そのまま維持）*/
.entry-content h2{
  border: none;
  background: none;
  padding: 0;
}
.article h2::before {
  content: none !important;
  border: none !important;
  display: none !important;
}
.article h2::after {
  content: none !important;
  border: none !important;
  display: none !important;
}
.article h3 {
  border-bottom: none !important;
}
/* 新しい左ライン付きh2スタイル */
.entry-content h2 {
  font-size: 1.25rem; /* 20px相当（16px × 1.25 = 20px） */
  font-weight: 600;
  color: #000000; /* 黒色 */
  margin: 3rem 0 2rem;
  padding: 1.2rem 0 1.2rem 1.5rem; /* 上下のパディングと左に余白を追加 */
  position: relative;
  line-height: 1.4;
  display: block; /* ブロック要素として表示 */
  width: 100%;
  background-color: #f8f9fa; /* 薄いグレー背景 */
  border: none; /* 一旦リセット */
  border-left: 9px solid rgb(72, 101, 178) !important; /* 9px幅の左ボーダー */
}

/* 下線を削除 */
.entry-content h2::after {
  content: none !important;
  display: none !important;
}

/* ナビゲーションコンテナ */
#navi {
  background-color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
}

.navi-in {
  max-width: 1200px;
  margin: 0 auto;
}

/* メニューの基本スタイル */
.menu-top {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu-top li {
  margin: 0;
  padding: 0;
  position: relative;
}

/* キャプションスタイル */
.caption-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-label {
  display: block;
  font-weight: bold;
  font-size: 1rem;
  color: transparent;
  text-shadow: 0 0 0 #ffffff;
}

/* メニューリンクの基本スタイル */
.menu-top li a {
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.menu-top li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s;
}

/* 現在のページハイライト */
.current-menu-item a,
.current-post-parent a,
.current-menu-parent a,
.current-post-ancestor a {
  background-color: #4a86e8;
}

/* サブメニューのスタイル */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  display: block;
  width: 100%;
}

.sub-menu li a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #555;
}

/* ドロップダウンアイコン */
.has-sub {
  margin-left: 5px;
}

.fa-angle-down {
  font-size: 0.8em;
  color: #ccc;
}

/* ────────────────────────────── */
/* ▼ スマホ表示（834px以下）での調整 */
@media screen and (max-width: 834px) {
  .navi-in {
    padding: 0 10px;
  }

  .menu-top {
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 0 !important;
  }

  .menu-top li {
    width: 100%;
  }

  .menu-top li a {
    display: block;
    padding: 10px 15px !important;
    font-size: 14px !important;
  }

  .item-label {
    font-size: 0.9rem;
  }

  .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background-color: #444;
  }

  .sub-menu li a {
    padding: 10px 20px;
  }

  .mobile-menu-buttons {
    font-size: 18px !important;
  }

  #navi {
    padding: 0 !important;
  }
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
  .entry-content h2 {
    font-size: 1.125rem; /* 18px相当（16px × 1.125 = 18px） */
    margin: 2.5rem 0 1.5rem;
    padding: 1rem 0 1rem 1.2rem; /* モバイルでは少し小さめのパディング */
    border-left: 7px solid rgb(72, 101, 178) !important; /* モバイルでは少し細め */
  }

}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
/*834px以下*/
@media screen and (max-width: 768px){
  /*必要ならばここにコードを書く*//* モバイル・タブレット共通（最大768px） */
}
/*480px以下*/
@media screen and (max-width: 480px){
}