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

/* ヘッダー全体を非表示にする */
#header, .header-container { display: none !important; }

/* ==============================================
   ▼▼▼ 固定ヘッダー（ロゴ中央・予約文字あり版） ▼▼▼
   ============================================== */

/* --- 1. 土台（PC） --- */
#custom-fixed-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: #d2e8df; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 99999;
    height: 225px; 
}
body { padding-top: 175px; }


/* --- 2. PC用トップメニューバー --- */
.cfh-top-nav {
    width: 100%; height: 35px;
    background-color: #008f7b; color: #fff;
}
.cfh-top-nav-inner {
    max-width: 1200px; margin: 0 auto; height: 100%;
}
.cfh-top-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; justify-content: flex-end; align-items: center; height: 100%;
}
/* リンク全体の隙間と文字サイズを詰める */
.cfh-top-nav li a {
    display: block;
    padding: 0 12px;
    color: #fff; text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    line-height: 35px;
    transition: background 0.3s;
    white-space: nowrap;
}

/* アイコンと文字の隙間も少し詰める */
.cfh-top-nav li a span {
    margin-right: 5px !important;
    width: auto !important;
}
.cfh-top-nav li a:hover { background-color: rgba(255,255,255,0.2); }


/* --- 3. メインエリアのレイアウト --- */
.cfh-inner {
    max-width: 1200px; margin: 0 auto; height: 190px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 15px;
}

/* ロゴ */
.cfh-logo img { width: auto; max-height: 100px; }

/* PCでの予約文字の位置設定 */
.cfh-info {
    margin-left: 20px; margin-right: auto; /* ロゴの右横、ボタンよりは左に配置 */
}

/* 予約文字のデザイン */
.reservation-note {
    display: inline-block;
    font-weight: bold;
    font-size: 150%;
    color: #e85a71;
    line-height: 1.2;
}

/* ボタンエリア（PC） */
.cfh-buttons { display: flex; gap: 10px; }
/* ※functions.php側のインラインスタイルで中央寄せ(justify-content: center)が効きます */

.cfh-btn {
    display: flex !important; justify-content: center !important; align-items: center !important;
    width: 130px !important; height: 48px !important;
    padding: 0 !important; box-sizing: border-box !important; border-radius: 5px !important;
    color: #fff !important; text-decoration: none !important; 
    font-weight: bold !important; font-size: 13px !important; white-space: nowrap !important;
}
.cfh-btn span.fa, .cfh-btn span.fas { margin-right: 5px !important; }
.cfh-text { display: inline-block; }

/* ボタン色 */
.btn-map { background-color: #6fb05d; }
.btn-rsv { background-color: #e85a71; }
.btn-time { background-color: #3498db; }
/* .btn-tel は削除されました */


/* 表示切り替え用 */
.sp-only { display: none !important; }
.pc-only { display: block !important; }
.cfh-mobile-menu { display: none; }


/* ==============================================
   4. スマホ表示
   ============================================== */
@media screen and (max-width: 768px) {
    .pc-only { display: none !important; }
    .sp-only { display: block !important; }
    .cfh-mobile-menu { display: block; }

    #custom-fixed-header { 
        height: auto; min-height: 100px; padding-bottom: 5px !important; 
    }
    body { padding-top: 100px; }

    .cfh-inner {
        flex-direction: row !important; flex-wrap: wrap !important;
        justify-content: center !important; align-items: center !important;
        padding: 5px 10px !important; position: relative;
    }

    /* ハンバーガー（左上） */
    .cfh-hamburger {
        position: absolute; top: 20px; left: 10px; z-index: 10;
        width: 44px; height: 44px; background: #fff; border-radius: 4px;
        display: flex !important; flex-direction: column; justify-content: center; align-items: center;
        margin: 0 !important;
    }
    .cfh-hamburger span {
        display: block; width: 24px; height: 2px; background: #333; margin: 2px 0;
    }
    .cfh-hamburger p {
        font-size: 8px; margin: 2px 0 0 0; color: #333; line-height: 1;
    }

    /* ロゴ（中央） */
    .cfh-logo { 
        width: 100% !important; text-align: center !important;
        margin: 5px 0 5px 0 !important; 
    }
    .cfh-logo img { 
        max-height: 80px !important; display: inline-block !important; margin: 0 auto !important;
    }

    /* スマホでの予約文字位置 */
    .cfh-info {
        width: 100% !important;
        text-align: center !important;
        margin: 0 0 10px 0 !important;
    }
    /* スマホでは文字サイズを少し控えめに */
    .reservation-note {
        font-size: 130% !important; 
    }

    /* ボタンエリア */
    .cfh-buttons {
        width: 100% !important; margin-top: 0px !important;
        gap: 0 !important; 
        justify-content: space-between !important; /* 両端揃えにして隙間を均等にする */
    }
    
    /* ▼▼▼ 修正箇所：ボタン幅を調整（3つなので約33%） ▼▼▼ */
    .cfh-btn {
        flex-direction: column !important;
        width: 32% !important;        /* ← 24%から32%に変更（3つ並び用） */
        flex: 0 0 32% !important;     /* ← 同上 */
        height: 50px !important;
        margin: 0 !important; padding: 0 !important;
        text-align: center !important; text-indent: 0 !important;
    }
    /* ▲▲▲ 修正箇所ここまで ▲▲▲ */

    .cfh-btn span.fa, .cfh-btn span.fas { margin: 0 0 3px 0 !important; font-size: 16px !important; }
    .cfh-text {
        font-size: 12px !important; font-weight: bold !important;
        line-height: 1.1 !important; margin: 0 !important; letter-spacing: -0.5px !important; 
    }

    /* スマホメニュー */
    .cfh-mobile-menu {
        position: fixed; top: 0; left: -100%;
        width: 80%; max-width: 300px; height: 100vh;
        background: #fff; z-index: 100000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transition: left 0.3s ease;
        padding: 60px 20px 20px 20px;
    }
    .cfh-mobile-menu.active { left: 0; }
    .cfh-mobile-menu li { border-bottom: 1px solid #eee; }
    .cfh-mobile-menu li a { display: block; padding: 15px 0; color: #333; text-decoration: none; font-weight: bold; }
    .cfh-menu-close {
        position: absolute; top: 15px; right: 15px;
        background: #eee; padding: 5px 10px; cursor: pointer; border-radius: 4px; font-size: 12px;
    }
}

/* ==============================================
   ▼▼▼ スマホメニューのスクロール修正 ▼▼▼
   ============================================== */

.cfh-mobile-menu {
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch;
    height: 100vh !important;
    max-height: 100vh !important;
    padding-bottom: 100px !important; 
}

/* ==============================================
   ▼▼▼ スマホメニューの「・」を消す ▼▼▼
   ============================================== */

.cfh-mobile-menu ul,
.cfh-mobile-menu li {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.cfh-mobile-menu li::before,
.cfh-mobile-menu li::after {
    content: none !important;
    display: none !important;
    border: none !important;
}

.cfh-mobile-menu .sub-menu li,
.cfh-mobile-menu .sub-menu li::before {
    list-style: none !important;
    content: none !important;
}

/* 固定ページの日付と著者を非表示にする */
.page .date-tags,
.page .author-info,
.page .vcard {
    display: none;
}