@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
*/

/* ★ページ最下部の被り防止（フッターバーの高さ分の余白を確保）★ */
body {
  padding-bottom: 60px !important;
}

/* 固定ページは更新日非表示 */
.page .date-tags,
.page .author-info {
  display: none;
}

/* サイドバータイトル(PC) */
.sidebar h3 {
  color: #ffffff;
  background-color: #AAD1BD;
  font-size: 16px;
}

/* サイドバータイトル(モバイル) */
.footer-title {
  color: #ffffff;
  font-size: 16px;
}

/* 行間 */
.article h4 {
  margin: 0.1em 0 0.1em;
}

.article h5 {
  margin: -1em 0 -1em;
}

/* ★記事タイトル・見出し・ウィジェット等の統一配色★ */
h1.entry-title {
  font-size: 1.2rem;
  position: relative;
  color: #ffffff;
  background: #AAD1BD;
  line-height: 1.4;
  padding: 0.5em 0.5em 0.5em 1.8em;
}

h1.entry-title:before {
  font-family: "Font Awesome 5 Free";
  content: "\f14a";
  font-weight: 900;
  position: absolute;
  left: 0.5em;
}

/* 見出しとサイドバー背景 */
.article h1,
.article h2,
.sidebar .widget_title {
  background-color: #9ec1ac !important;
}

.archive-title {
  color: #739ba0;
}

/* ★最近の更新リスト（List Category Posts）★ */
.lcp_catlist {
  margin-left: 0;
  padding-left: 0;
}

ul.lcp_catlist li {
  display: grid;
  font-size: 12px;
  line-height: 1.5;
  padding: 0.5em 0 0.5em 1.4em;
  border-bottom: dashed 1px silver;
  list-style-type: none !important;
}

/* ★リンクリスト★ */
ul#lcp_instance_0 a {
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
  transform: scale(1);
  text-decoration: none;
}

ul#lcp_instance_0 a:hover {
  font-weight: bold;
  transform: scale(1.01);
  color: #9ac9b7;
}

ul#lcp_instance_0 li {
  font-size: 15px;
  line-height: 1.5;
  padding: 0.5em 0 0.5em 1.4em;
  list-style-type: none !important;
}

ul#lcp_instance_0 li:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f138";
  position: absolute;
  left: 3em;
  color: #84ad9d;
}

ul li:last-of-type {
  border-bottom: none;
}

/* ★レスポンシブ設定（PC / タブレット / スマホ）★ */
@media screen and (min-width: 961px) {
  .searchandfilter {
    width: 50%;
  }
  ul#lcp_instance_0 {
    list-style: none;
    padding: 1rem;
    margin: 1.5rem 1.5rem 0 0;
  }
}

@media only screen and (min-width: 641px) and (max-width: 960px) {
  ul#lcp_instance_0 {
    list-style: none;
    padding: 1rem;
    margin: 1.5rem 1.5rem 0 0;
  }
  ul#lcp_instance_0 li:before {
    left: 2em;
  }
}

@media screen and (max-width: 834px) {
  .article h4,
  .article h5 {
    margin: -0.5em 0 -0.3em;
  }
}

@media screen and (max-width: 640px) {
  ul#lcp_instance_0 {
    list-style: none;
    padding: 0rem;
  }
  ul#lcp_instance_0 li:before {
    left: 1.5em;
  }
}

@media screen and (max-width: 480px) {
  .article h5 {
    margin: -0.5em 0 -0.3em;
  }
}

/* ★デスクトップ用ヘッダーメニューの装飾★ */
@media screen and (min-width: 1024px) {
  .navi-in > ul li a {
    font-size: 18px !important;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 6px;
    letter-spacing: 0.1em !important;
    transition: all 0.2s ease-in-out;
    color: #ffffff !important;
    fill: #ffffff !important;
  }

  .navi-in > ul li a i,
  .navi-in > ul li a .fa {
    font-size: 18px;
    margin-right: 6px;
  }

  .navi-in > ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
  }

  .search-box .search-submit .fa-search,
  .search-box .search-submit i,
  .search-box button[type="submit"] i {
    color: #ffffff !important;
    fill: #ffffff !important;
    opacity: 1 !important;
  }
}

/* ★モバイルスライドインメニュー★ */
.navi-menu-content {
  background: #A2C7B4;
}

.fa-times {
  color: #ffffff;
  font-size: 0.9em;
}

.menu-drawer li {
  font-weight: bold;
  padding: 0;
}

.menu-drawer a {
  font-size: 1.0em;
  background-color: #A2C7B4;
  color: #ffffff;
  margin: 0.5em 0;
}

.menu-drawer .sub-menu {
  padding: 0;
}

.menu-drawer .sub-menu li {
  font-size: 0.9em;
}

.menu-drawer .sub-menu li a::before {
  font-family: "Font Awesome 5 Free";
  content: "\f105";
  color: #7b7b7b;
  margin: 0 0.5em 0 1em;
}

/* ★検索ボックスのズレ・文字位置（縦中央）完全補正★ */
.search-box,
.search-menu-content .search-box {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  height: 42px !important;
}

.search-box .search-edit,
.search-menu-content .search-edit {
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 15px !important;
  border: 1px solid #C3DBCF !important;
  border-right: none !important;
  border-radius: 21px 0 0 21px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

.search-box .search-submit,
.search-menu-content .search-submit {
  position: relative !important;
  top: 0 !important;
  right: 0 !important;
  height: 42px !important;
  width: 50px !important;
  background-color: #C3DBCF !important;
  border: 1px solid #C3DBCF !important;
  border-left: none !important;
  border-radius: 0 21px 21px 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* ★モバイルフッターバー（高さ調整＆文字ズレ完全解消）★ */
#mobile-menu-buttons,
.mobile-menu-buttons {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 58px !important;
  z-index: 9999 !important;
  background-color: #9ec1ac !important;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mobile-menu-buttons li,
.mobile-menu-buttons a,
.mobile-menu-buttons .menu-button {
  background-color: #9ec1ac !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mobile-menu-buttons .menu-button-in {
  background-color: #9ec1ac !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 6px 0 4px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.mobile-menu-buttons .mobile-button-icon,
.mobile-menu-buttons i,
.mobile-menu-buttons .fa {
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 18px !important;
  color: #ffffff !important;
  fill: #ffffff !important;
}

.mobile-menu-buttons .mobile-button-caption,
.mobile-menu-buttons .caption-text {
  display: block !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  margin-top: 3px !important;
  margin-bottom: 0 !important;
  color: #ffffff !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-align: center !important;
}