/* --- ヘッダー全体の土台 --- */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    /* 上下の余白 */
}

/* --- 横並びの魔法 (Flexbox) --- */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    /* これで横並びになります */
    justify-content: space-between;
    /* 両端と中央に配置 */
    align-items: center;
    /* 垂直方向の真ん中に揃える */
}

/* --- ロゴのサイズ調整 --- */
.logo {
    flex-shrink: 0;
    /* ロゴが潰れないように固定 */
}

.logo-img {
    height: 120px;
    /* ← さっきより大きくしました。お好みで 70〜90px で調整してください */
    width: auto;
    display: block;
}

/* --- メニュー（中央） --- */
.nav-menu {
    flex-grow: 1;
    /* 中央のスペースを占有させる */
}

.nav-menu ul {
    display: flex;
    justify-content: center;
    /* メニューを中央寄せ */
    list-style: none;
    gap: 30px;
    /* メニュー同士の間隔 */
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #5A544E;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
    /* 文字が折り返されないように */
    position: relative;
    /* 下線の基準点にする */
    transition: color 0.3s ease;
    padding: 5px 0;
}

/* マウスを乗せた時の文字色（ロゴの緑に合わせるのがおすすめ） */
.nav-menu a:hover {
    color: #5B744C;
}

/* ふわっと出る下線のアニメーション */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    /* 最初は長さゼロ */
    height: 2px;
    background-color: #5B744C;
    transition: width 0.3s ease;
    /* 0.3秒かけて伸びる */
}

.nav-menu a:hover::after {
    width: 100%;
    /* ホバー時に横幅いっぱいまで伸ばす */
}

/* --- お問い合わせボタン（右側） --- */
.header-cta {
    flex-shrink: 0;
}

.btn-contact {
    display: inline-block;
    background-color: #5B744C;
    /* ロゴに近い緑 */
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-contact:hover {
    background-color: #465a3a;
}

/* --- フッター全体の装飾 --- */
.main-footer {
    background-color: #EAE5E1;
    /* bodyより一段濃いベージュ */
    padding: 60px 0 20px;
    color: #5A544E;
    margin-top: 100px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 上部コンテンツのレイアウト */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* スマホで折り返すように */
    gap: 40px;
    margin-bottom: 40px;
}

/* 住所などの一般的な段落 */
.footer-contact p {
    font-size: 0.95rem;
    color: #5A544E;
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: left;
}

/* 各ブロックの設定 */
.footer-info,
.footer-nav,
.footer-contact {
    flex: 1;
    min-width: 250px;
    /* 追加：中身を左にキッチリ寄せる設定 */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
}

.footer-logo-img {
    height: 70px;
    /* 少し大きくして存在感を出す */
    width: auto;
    margin-bottom: 15px;
    display: block;
    /* 調整：ロゴの画像自体の余白が気になる場合は、ここを -5px などに */
    margin-left: -15px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    /* テキストも左寄せを確定させる */
    margin: 0;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #5B744C;
    /* ロゴの緑 */
    border-bottom: 1px solid #B2C2A2;
    display: inline-block;
    padding-bottom: 5px;
}

/* フッター内メニューのリンク */
.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    text-decoration: none;
    color: #5A544E;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #B2C2A2;
}

/* 電話番号の親要素をブロック化して改行を促す */
.tel-info {
    display: block;
    margin-bottom: 25px;
}

/* 電話番号本体：緑を解除し、適度な大きさに */
.footer-contact .tel-number {
    display: block;
    /* 確実に1行占有 */
    font-size: 0.9rem;
    color: #333 !important;
    /* 緑色を強制的に上書き */
    margin-bottom: 5px;
}

/* 受付時間 */
.footer-contact .tel-time {
    display: block;
    /* 改行させる */
    font-size: 0.9rem;
    color: #666 !important;
    font-weight: normal !important;
}

/* ※注意書き：ここを一番控えめに */
.footer-contact .tel-note {
    display: block;
    /* 改行させる */
    font-size: 0.8rem !important;
    color: #888 !important;
    font-weight: normal !important;
    margin-top: 10px;
    line-height: 1.6;
    max-width: 500px;
}

/* お問い合わせフォームのボックス */
.emergency-box {
    display: block;
    /* ブロック要素にする */
    margin-top: 20px;
    padding: 15px;
    background-color: #fdfdfb;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #555;
    text-align: left;
    max-width: fit-content;
    /* 中身に合わせる */
}
.emergency-box a {
    color: #5B744C;
    text-decoration: underline;
    font-weight: bold;
}

/* SNSリンク */
.sns-link {
    display: none;
    margin-right: 15px;
    text-decoration: none;
    color: #fff;
    background: #B2C2A2;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* 最下部コピーライト */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #D8D1CC;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #888;
}

/* スマホ対応 */
@media (max-width: 768px) {

    .footer-nav h4,
    .footer-contact h4 {
        display: block;
        border-bottom: none;
    }
}

/* PCではボタンを隠す */
.mobile-menu-btn {
    display: none;
}

/* PCではメニュー内のお問い合わせを隠す */
.sp-only-item {
    display: none;
}

/* スマホ用の設定（画面幅768px以下のとき） */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        z-index: 1000;
        cursor: pointer;
        padding: 10px;
    }

    .mobile-menu-btn .bar {
        display: block;
        width: 25px;
        height: 2px;
        background: #5B744C;
        /* ロゴに合わせて調整してください */
        margin: 6px 0;
        transition: 0.3s;
    }

    /* メニュー本体を画面外（右側）に隠す */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* 全画面にする場合 */
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 999;
        transition: 0.4s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* openクラスがついたら画面内に表示 */
    .nav-menu.open {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
            /* 横幅いっぱい使う */
        padding: 0 40px;
            /* 左右に少し余白を作る */
    }

    .nav-menu ul li {
        margin: 20px 0;
    }

    /* ボタンが「×」になるアニメーション */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* スマホ時はヘッダーの元々のボタンを隠す */
    .header-cta {
        display: none;
    }

    /* スマホの時はメニュー内のお問い合わせを表示する */
    .sp-only-item {
        display: block;
        width: 100%;
            /* 親要素いっぱいに広げる */
        margin-top: 30px;
        text-align: center;
    }
    
    /* 緑のボタンを枠に収まるようにリセット */
    .sp-only-item .btn-contact {
        display: block;
        /* 1行まるまるボタンにする */
        width: 100%;
        /* 枠からはみ出さないように100%に */
        max-width: 250px;
        /* 広がりすぎないよう上限を決める */
        margin: 0 auto;
        /* 中央寄せ */
        padding: 15px 0;
        /* 上下の厚み */
        box-sizing: border-box;
        /* パディングを含めて100%にする魔法の言葉 */
    }

    /* 逆に、外側にあった元のボタンは邪魔なので隠す */
    .header-cta {
        display: none;
    }

    .main-footer {
        padding: 30px 0 15px;
        /* 上下の余白を半分に */
        margin-top: 50px;
        /* セクション間の隙間も少し詰める */
    }

        /* 1. コンテンツ全体の並びを調整 */
        /* 1. コンテンツ全体の並びを調整 */
        .footer-content {
            flex-direction: column;
            text-align: left;
            padding: 0 10%;
        }
    
        /* 2. 各ブロックの配置 */
        .footer-info,
        .footer-nav,
        .footer-contact {
            align-items: flex-start;
            /* 中身を左に揃える */
            width: 100%;
        }
    
        /* 3. ロゴも左寄せ */
        .footer-logo-img {
            margin-left: -5px;
            /* ロゴの余白に合わせて微調整 */
            margin-right: auto;
        }
    
        /* 4. メニュー（ナビ）を2列で左寄せに */
        .footer-nav ul {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            padding: 0;
            width: 100%;
        }
    
        /* 5. 住所・電話番号（Contact）全体のレイアウト */
        .footer-contact {
            text-align: left;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
    
        /* 住所の文字サイズを少し抑える */
        .footer-contact p:first-of-type {
            font-size: 0.9rem;
            margin-bottom: 20px;
            line-height: 1.5;
        }
        .address-info {
            font-size: 0.9rem;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        /* 電話番号を主役にする */
        .tel-info {
            margin-bottom: 20px;
            display: block;
        }
        
        .tel-number {
            display: block;
            font-size: 0.9rem;
            /* 大きくして目立たせる */
            color: #333;
            margin-bottom: 5px;
        }
        
        .tel-time {
            display: block;
            font-size: 0.85rem;
            color: #666;
        }
        
        /* ※印の注意書き（ここを一番控えめにする） */
        .tel-note {
            display: block;
            font-size: 0.75rem;
            color: #999;
            font-weight: normal;
            margin-top: 10px;
            line-height: 1.5;
        }
        
        /* お問い合わせフォームへの誘導ボックス */
        .emergency-box {
            margin-top: 10px;
            padding: 12px;
            background-color: #fdfdfb;
            border: 1px solid #eee;
            border-radius: 8px;
            font-size: 0.85rem;
            color: #555;
            line-height: 1.6;
            width: 100%;
            /* 横幅いっぱい */
            box-sizing: border-box;
            /* パディングを含める */
        }
    
        .emergency-box a {
            color: #5B744C;
            text-decoration: underline;
            font-weight: bold;
        }
    
        .sns-link {
            display: none;
        }
    
        .footer-contact .tel-info .tel-note {
            display: block !important;
            /* 確実に改行 */
            font-size: 0.75rem !important;
            /* 強制的に小さく */
            color: #999 !important;
            /* 強制的に薄いグレー */
            font-weight: normal !important;
            /* 太字を強制解除 */
            margin-top: 10px;
            line-height: 1.5;
            text-align: left;
        }

}