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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/*全てをまとめて非表示*/
.home.page .entry-title,
.home.page .date-tags,
.home.page .author-info{
  display: none;
}

/*------------------------------------
固定ページのタイトル・メタ情報を全て非表示
------------------------------------*/
.page .entry-title,   /* ページタイトル */
.page .date-tags,     /* 投稿日・タグなど */
.page .author-info,   /* 著者情報 */
.page .sns-share,     /* SNSボタン */
.page .breadcrumb,    /* パンくずリスト */
.page .meta,          /* メタ情報全般 */
.page .comments-area, /* コメント欄 */
.page .post-date,     /* 日付 */
.page .entry-header { /* ヘッダー部分 */
  display: none !important;
}



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

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

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

#header {
  padding-top: 15px; /* 上の余白を追加 */
  padding-bottom: 15px; /* 下の余白を追加 */
}

/* ヘッダーロゴのホバーアニメーション */
#header .logo img {
  transition: transform 0.3s ease;
  display: inline-block;
}

/* ホバー時に少し斜めに傾ける */
#header .logo img:hover {
  transform: rotate(-5deg) scale(1.05);
}

/* ヘッダーロゴを少し下に移動 */
#header .logo {
  position: relative;
  top: 10px; /* 下方向に10px移動（数値は調整可） */
}

.eye-catch {
  display: none;
}

/* 投稿ページ・固定ページの目次を非表示 */
.single .toc,
.single .toc-wrapper,
.page .toc,
.page .toc-wrapper {
  display: none !important;
}



/************************************
** トップメニュー（通常画像 → ホバーで別画像、文字のみ拡大）
************************************/

#navi ul li a,
#navi-in ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 70px;
  text-decoration: none;
  font-weight: bold;
  color: #000;
  background: transparent !important;
  border-radius: 0;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.2s ease;
}

/* 通常時の背景画像 */
#navi ul li a::before,
#navi-in ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("http://tyobimeru.com/wp-content/uploads/2025/10/e4d2961c58d0866847e8ba501ec5ea35.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  transform: none !important;
}

/* ホバー時の別画像 */
#navi ul li a::after,
#navi-in ul li a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("http://tyobimeru.com/wp-content/uploads/2025/10/17b21c582a069e49e41c5ae6d88412e9.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
  transform: none !important;
}

/* テキスト用の span */
#navi ul li a span,
#navi-in ul li a span {
  position: relative;
  z-index: 4;
  transition: transform 0.3s ease;
  display: inline-block;
}

/* ホバー時に文字だけ拡大 */
#navi ul li a:hover span,
#navi-in ul li a:hover span {
  transform: scale(1.1);
}

/* ホバー時に画像切り替え */
#navi ul li a:hover::after,
#navi-in ul li a:hover::after {
  opacity: 1;
}
