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

/************************************
** 子テーマ用のスタイルを書く
************************************/
:root{
  --shiori-cream: #fbf6ee;
  --shiori-sage: #a3b18a;
  --shiori-pink: #e8b4b8;
  --shiori-mustard: #e0b04d;
  --shiori-tape-sage: #dbe4d0;
  --shiori-tape-pink: #f6dde0;
  --shiori-tape-mustard: #f5e0b3;
  --shiori-text: #4a4038;
}

body{
  background-color: var(--shiori-cream);
}

/* ---- ヘッダー全体 ---- */
#header-container{
  background-color: var(--shiori-cream);
  border-bottom: none;
}
.header-container-in{
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  padding: 14px 20px;
}
#header{
  border-bottom: none;
  flex-shrink: 0;
  width: auto !important;
}
#header .header-in,
.header-in.wrap.cf{
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: auto !important;
}

/* 自作ロゴ */
.shiori-header-logo{
  display: flex;
  align-items: center;
}
.shiori-header-logo img{
  height: 56px;
  width: auto;
  display: block;
}

/* SNS・検索アイコン列 */
.shiori-header-icons{
  display: flex;
  align-items: center;
  gap: 10px;
  order: 3;
}
.shiori-header-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: transform .15s ease, opacity .15s ease;
}
.shiori-header-icon:hover{
  transform: translateY(-2px);
  opacity: .8;
}
.shiori-header-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shiori-search-form{
  display: flex !important;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 0 2px;
  width: auto !important;
  flex: 0 0 auto !important;
}
.shiori-search-input{
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 13px;
  color: var(--shiori-text);
  transition: width .25s ease, max-width .25s ease, padding .25s ease;
  box-sizing: border-box;
}
.shiori-search-form:focus-within .shiori-search-input{
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  padding: 6px 4px 6px 12px !important;
}
.shiori-search-button{
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

/* ---- グローバルナビ(横並びカテゴリー) ---- */
#navi{
  background-color: transparent !important;
  border: none !important;
  order: 2;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0;
}
#navi .navi-in{
  padding: 0 !important;
  width: auto !important;
}
#navi .menu-header.menu-pc{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
#navi .menu-header.menu-pc > li{
  position: relative;
}
#navi .menu-header.menu-pc > li > a{
  padding: 8px 12px;
  color: var(--shiori-text);
  font-size: 14px;
  display: block;
}
#navi .menu-header.menu-pc > li > a .item-label{
  position: relative;
  display: inline-block;
}
#navi .menu-header.menu-pc > li > a .item-label::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background-image: linear-gradient(to right, var(--shiori-sage) 50%, transparent 50%);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  opacity: 0;
  transition: opacity .15s ease;
}
#navi .menu-header.menu-pc > li > a:hover .item-label::after,
#navi .menu-header.menu-pc > li.current-menu-item > a .item-label::after{
  opacity: 1;
}
#navi .menu-header.menu-pc .caption-wrap{
  background: none;
}

/* ---- 記事本文の見出し(マステ風ハイライト、Cocoon標準の黄色ボックスを上書き) ---- */
.entry-content h2,
.entry-content h3{
  background-color: transparent !important;
  background-image: linear-gradient(100deg, transparent 0%, transparent 1.5%, var(--shiori-tape-sage) 1.5%, var(--shiori-tape-sage) 97%, transparent 97%, transparent 100%) !important;
  background-position: center 68% !important;
  background-size: 100% 62% !important;
  background-repeat: no-repeat !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-block;
  padding: 10px 6px !important;
}
.entry-content h2:nth-of-type(3n+2),
.entry-content h3:nth-of-type(3n+2){
  background-image: linear-gradient(100deg, transparent 0%, transparent 1.5%, var(--shiori-tape-pink) 1.5%, var(--shiori-tape-pink) 97%, transparent 97%, transparent 100%) !important;
}
.entry-content h2:nth-of-type(3n),
.entry-content h3:nth-of-type(3n){
  background-image: linear-gradient(100deg, transparent 0%, transparent 1.5%, var(--shiori-tape-mustard) 1.5%, var(--shiori-tape-mustard) 97%, transparent 97%, transparent 100%) !important;
}

/* ---- ホームはサイドバー内の新着記事/人気記事ウィジェットのみ非表示(トップの新着記事セクションと重複するため) ---- */
.page-id-84 #popular_entries-3{
  display: none !important;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .shiori-header-logo img{
    height: 46px;
  }
  #navi .menu-header.menu-pc > li > a{
    padding: 6px 8px;
    font-size: 13px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .header-container-in{
    flex-wrap: nowrap;
  }
  #navi,
  .shiori-header-icons{
    display: none;
  }
  .shiori-header-logo img{
    height: 40px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .shiori-header-logo img{
    height: 34px;
  }
  .header-container-in{
    padding: 10px 12px;
  }
}
