/* ==========================================================================
   1. ボタン基本スタイル & ホバーアニメーション
   ========================================================================== */

/* ボタンの角丸を打ち消し（直線的なデザインに） */
.wp-block-button__link {
    border-radius: 0 !important;
}

/* すべてのボタン共通：ホバー時の拡大・減速イージング */
.wp-block-button__link, 
input[type="submit"], 
button[type="submit"] {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1.0) !important;
}

.wp-block-button__link:hover, 
input[type="submit"]:hover, 
button[type="submit"]:hover {
    transform: scale(1.05) !important;
}

/* 通常ボタンホバー時：背景白・文字色赤・白枠線 */
.wp-block-button:not(.line-btn) .wp-block-button__link:hover,
.wp-block-button:not(.line-btn) .wp-block-button__link.has-background:hover {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #bd2c2c !important;
    border: 1px solid #ffffff !important;
    filter: none !important;
    opacity: 1 !important;
}


/* ==========================================================================
   2. 各種専用ボタン（LINE・テーマ検索）
   ========================================================================== */

/* LINEボタン：通常時 */
.line-btn.wp-block-button .wp-block-button__link,
.line-btn.wp-block-button .wp-block-button__link.has-background {
    background-color: #00c300 !important;
    background-image: none !important; 
    color: #ffffff !important;
    border: none !important;
    border-radius: 30px !important; /* カプセル型 */
}

/* LINEボタン：ホバー時 */
.line-btn.wp-block-button .wp-block-button__link:hover {
    background-color: #ffffff !important;
    color: #00c300 !important;
    border: none !important;
    box-shadow: none !important;
}

/* ヘッダー内のLINEボタン：通常時 */
.line-btn2.wp-block-button .wp-block-button__link,
.line-btn2.wp-block-button .wp-block-button__link.has-background {
    background-color: #191919 !important;
    background-image: none !important; 
    color: #ffffff !important;
    border: none !important;
    border-radius: 30px !important; /* カプセル型 */
}

/* ヘッダー内のLINEボタン：ホバー時 */
.line-btn2.wp-block-button .wp-block-button__link:hover {
    background-color: #ffffff !important;
    color: #BD2C2C !important;
    border: none !important;
    box-shadow: none !important;
}

/* テーマ検索ボタン群：通常時 */
.theme-btn-group .wp-block-button .wp-block-button__link {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
}

/* テーマ検索ボタン群：ホバー時 */
.theme-btn-group .wp-block-button .wp-block-button__link:hover {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
    border-color: #cccccc !important;
    filter: none !important;
}


/* ==========================================================================
   3. ナビゲーション（ヘッダー・フッター）
   ========================================================================== */

/* --- ヘッダーナビ：ホバー時に金色＆下線がシュッと伸びる演出 --- */

/* 1. 通常時（ベース設定） */
.wp-block-navigation__responsive-container-content .wp-block-navigation-item a,
.wp-block-navigation_2__responsive-container-content .wp-block-navigation_2-item a,
.wp-block-navigation_3__responsive-container-content .wp-block-navigation_3-item a {
    position: relative !important;
    display: inline-block !important;
    transition: color 0.3s ease !important;
}

/* 2. 下線の初期状態（透明で幅0px） */
.wp-block-navigation__responsive-container-content .wp-block-navigation-item a::after,
.wp-block-navigation_2__responsive-container-content .wp-block-navigation_2-item a::after,
.wp-block-navigation_3__responsive-container-content .wp-block-navigation_3-item a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    width: 0 !important;
    height: 1.5px !important;
    background-color: #f5e6d3 !important;
    transition: width 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* 3. ホバー時（文字色変更 ＋ 下線100%伸長） */
.wp-block-navigation__responsive-container-content .wp-block-navigation-item a:hover,
.wp-block-navigation_2__responsive-container-content .wp-block-navigation_2-item a:hover,
.wp-block-navigation_3__responsive-container-content .wp-block-navigation_3-item a:hover {
    color: #f5e6d3 !important;
}

.wp-block-navigation__responsive-container-content .wp-block-navigation-item a:hover::after,
.wp-block-navigation_2__responsive-container-content .wp-block-navigation_2-item a:hover::after,
.wp-block-navigation_3__responsive-container-content .wp-block-navigation_3-item a:hover::after {
    width: 100% !important;
}

/* --- フッターナビ：ホバー時に文字色を金色（#FFD700）にする --- */
footer a:hover,
.wp-block-template-part[data-slug*="footer"] a:hover,
.wp-block-template-part[data-slug*="フッター"] a:hover {
    color: #f5e6d3 !important;
    transition: color 0.3s ease !important;
}


/* ==========================================================================
   4. ヘッダー追従・背景レイヤー設定
   ========================================================================== */

/* 固定の制限となる外枠の overflow を解除 */
html, body, #page, .site, #wp--skip-link--target {
    overflow: visible !important;
}

/* 最上部ヘッダーの固定 ＋ 背景透明化 */
body :first-child.wp-block-template-part,
[data-slug*="ヘッダー"],
[data-slug*="header"],
header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999999 !important;
    background-color: transparent !important;
    background: transparent !important;
}

/* 中身の横並びブロックの背景透明化（メニュー開放時を除く） */
body :first-child.wp-block-template-part > *:not(.is-menu-open),
[data-slug*="ヘッダー"] > *:not(.is-menu-open),
[data-slug*="header"] > *:not(.is-menu-open),
header > *:not(.is-menu-open) {
    background-color: transparent !important;
    background: transparent !important;
}


/* ==========================================================================
   5. クリッカブル要素（カード・縦積みブロック全体リンク化）
   ========================================================================== */

/* カード全体リンク化 */
.clickable-card {
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.clickable-card a {
    position: static;
}

.clickable-card a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.clickable-card:hover {
    background-color: #ffffff !important; /* ホバー時：純白 */
    transform: translateY(-4px);           /* 上に3px浮き上がらせる */
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08) !important; /* 繊細で美しい影をつける */
}
/* .clickable-card:hover {
    background-color:#e2e8f0 !important;
} */

/* 縦積みメインビジュアルブロック全体リンク化 */
.mv-link-block {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mv-link-block a {
    position: static;
}

.mv-link-block a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.mv-link-block:hover {
    transform: scale(1.03);
    opacity: 0.95;
}


/* ==========================================================================
   6. フォーム関連（送信ボタン・チェックボックス・ラベル）
   ========================================================================== */

/* 送信ボタン：ホバー時 */
input[type="submit"]:hover, 
button[type="submit"]:hover {
    background-color: #f2f2f2 !important;
    color: #BD2C2C !important;
    border-color: #BD2C2C !important;
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* チェックボックス：未チェック時 */
input[type="checkbox"] {
    border: 1px solid #ffffff !important;
    background-color: transparent !important;
}

/* チェックボックス：チェック済み時 */
input[type="checkbox"]:checked {
    background-color: #BD2C2C !important;
    border-color: #BD2C2C !important;
}

/* フォーム内ラベル文字色 */
.wpcf7-list-item-label, 
.mwform-checkbox-field-text,
label {
    color: #ffffff !important;
}


/* ==========================================================================
   7. プラグイン対応（Search & Filter）
   ========================================================================== */

.searchandfilter {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
}

.searchandfilter h4 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #111111;
}

.searchandfilter ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.searchandfilter ul li ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
}

.searchandfilter ul li ul li {
    width: 33.33%;
    font-size: 0.95rem;
}

.searchandfilter input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.searchandfilter input[type="検索する"] {
    width: 100%;
    background-color: #2558CA;
    color: #ffffff;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.searchandfilter input[type="検索する"]:hover {
    background-color: #1a429b;
}

/* 特定カテゴリー（ID: 1365）を非表示 */
.searchandfilter select option[value="1365"] {
    display: none !important;
}


/* ==========================================================================
   8. スマホ・タブレット限定レスポンシブ設定 (781px以下)
   ========================================================================== */

@media (max-width: 781px) {

	    .wp-block-navigation__responsive-container-open {
        background-color: #ffffff !important; /* 背景：白 */
        border-radius: 300px !important;        /* 正円 */
        width: 60px !important;               /* 幅固定 */
        height: 60px !important;              /* 高さ固定 */
        min-width: 60px !important;           /* 他の要素に潰されるのを防止 */
        min-height: 60px !important;          /* 他の要素に潰されるのを防止 */
        box-sizing: border-box !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
    }
.hide-on-mobile {
        display: none !important;
    }
    /* モバイル時非表示クラス */
    .hide-on-mobile {
        display: none !important;
    }
}

/* 画像を余白無視で画面幅いっぱいに広げる */
.full-width-img {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.full-width-img img {
    width: 100% !important;
    height: 300 !important;
    object-fit: cover !important;
}