@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){
  /*必要ならばここにコードを書く*/
}






/* ヘッダーメニューのカスタマイズ - 新構造用 */
.menu-top.menu-header.menu-pc {
    display: flex;
    justify-content: flex-end; /* メニュー項目を右揃えにする */
}

/* KATRUSメニュー項目を左端に配置 */
.menu-top.menu-header.menu-pc li:first-child {
    margin-right: auto;
}

/* KATRUSの文字サイズを調整 */
.menu-top.menu-header.menu-pc li:first-child a .item-label {
    font-size: 40px; /* 任意のサイズに調整 */
    font-weight: bold; /* 文字を太字に */
}









/* 画像ホバーでズーム＆明るく - 修正版 */
.entry-content img, 
.widget img,
.entry-content .wp-block-image img,
.entry-content figure img,
.entry-card-thumb img,
.card-thumb img,
.wp-block-gallery img {
    transition: transform 0.3s ease, filter 0.3s ease !important;
    transform-origin: center center; /* 拡大の中心点を指定 */
    backface-visibility: hidden; /* Safari でのちらつきを防止 */
    will-change: transform, filter; /* パフォーマンス最適化 */
}

/* ホバー時のエフェクト */
.entry-content img:hover, 
.widget img:hover,
.entry-content .wp-block-image img:hover,
.entry-content figure img:hover,
.entry-card-thumb img:hover,
.card-thumb img:hover,
.wp-block-gallery img:hover {
    transform: scale(1.1) !important; /* 画像を拡大 */
    filter: brightness(1.2) !important; /* 画像を明るく */
    z-index: 1; /* 他の要素より前面に表示 */
}

/* オーバーフローを隠す処理（必要に応じて） */
.entry-content figure, 
.entry-card-thumb,
.card-thumb,
.wp-block-image {
    overflow: hidden !important;
}






