@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:  0 !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: 85%;
}

/* 現在ページでも常に表示 */
#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; 
}

/* 記事本文の横幅を全体の70%に制限（中央寄せ） */
.main,
.entry-content {
  max-width: 85% !important;
  margin: 0 auto !important; /* 中央に寄せる */
}

/* Cocoonブロックボタンを対象にしたカスタム */
.wp-block-button__link.has-luminous-vivid-orange-background-color {
  background-color: #ff6900; /* 通常時の色 */
  color: #fff !important;
  border-radius: 6px !important;
  transition: all 0.3s ease; /* スムーズなアニメーション */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  display: inline-block;
  text-decoration: none;
}

/* ホバー時（少し明るくして、ふわっと浮かせる） */
.wp-block-button__link.has-luminous-vivid-orange-background-color:hover {
  filter: brightness(1.10); /* 既存色を少し明るく */
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.25) !important;
}

/* ヘッダータイトルの文字の下に余白をつけて線 */
.logo {
  position: relative;
  display: inline-block;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -5px; /* 文字の下に余白をつけて線 */
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,   /* 左端：濃い黒 */
    rgba(0, 0, 0, 0.5) 75%,  /* 中間：薄い黒 */
    rgba(100, 100, 100, 0.2) 100%  /* 右端：淡いグレーで消える */
  );
  border-radius: 2px;
}


/* 黄色に浮き上がるボタン（WordPress用） */
.button-52 {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 13px 30px;
  border: 1px solid #000;
  cursor: pointer;
  position: relative;
  background-color: transparent;
  color: #000;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-52::after {
  content: "";
  background-color: #ffe54c;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: -1;
  transition: all 0.2s ease;
  border-radius: 3px;
}

.button-52:hover::after {
  top: 0;
  left: 0;
}

@media (min-width: 768px) {
  .button-52 {
    padding: 13px 50px;
  }
}

