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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* タイトルフォントダウンロード */
@font-face {
  font-family: 'ZenKurenaido-Regular';
  src: url('/wp-content/themes/cocoon-child-master/fonts/ZenKurenaido-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* タイトルに直接適用 */
.site-name-text {
  font-size: 50px !important;
  font-family: 'ZenKurenaido-Regular', sans-serif !important;
}

#header,
#header .logo,
#header .site-name-text,
.tagline {
  margin:  -2 !important;
  padding: 0 !important;
  line-height: 1 !important; 
}

.logo-image span, 
.logo-image a, 
.logo-image img {
  display: block;
}

@font-face {
  font-family: 'ZenMaruGothic-Light';  /* ←好きな名前でOK（拡張子は書かない） */
  src: url('/wp-content/themes/cocoon-child-master/fonts/ZenMaruGothic-Light.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

#navi .item-label {
  font-family: 'ZenMaruGothic-Light', sans-serif !important; /* ←ここも合わせる */
  font-size: 20px !important;
  font-weight: 400 !important;
  letter-spacing: -1px !important;
  padding: 5px 8px !important;
}

#navi .menu-item a {
  position: relative;
  padding-bottom: 3px; /* 下に余白 */
  text-decoration: none;
}

#navi .menu-item a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;             /* 線の太さ */
  background: #000;        /* 線の色 */
  border-radius: 2px;      /* 丸み */
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

/* ホバー時：中央から左右に広がる */
#navi .menu-item a:hover::after {
  width: 80%;
}

/* 現在ページでも常に表示 */
#navi .menu-item.current-menu-item a::after,
#navi .menu-item.current-menu-parent a::after,
#navi .menu-item.current-post-parent a::after,
#navi .menu-item.current-post-ancestor a::after {
  width: 100%;
}
/* ヘッダーとメニュー間の隙間をなくす */
.logo-image * {
  display: block;
}

.logo-image {
  padding: 0;
  margin: auto;
}
.logo-image span, 
.logo-image a, 
.logo-image img {
  display: block;
}

/* サイトタイトル横に画像を追加 */
.site-title a {
  display: flex;
  align-items: center;
}

.site-title a::before {
  content: "";
  display: inline-block;
  width: 32px;   /* 画像の横幅 */
  height: 32px;  /* 画像の高さ */
  background: url('/wp-content/uploads/logo.png') no-repeat center center;
  background-size: contain;
  margin-right: 8px; 
}


