/*
================================================================================

Footer Styles
- ファイルパス: /assets/css/footer.css
- 説明: フッター、コピーライト、ページトップボタンに関するスタイル

================================================================================
*/

.l-footer {
    background-color: #e9ecef; /* 画像から抽出した背景色 */
    color: #343a40; /* 少し柔らかい黒 */
    font-size: 1.4rem;
}

/* Googleマップ */
.p-footer-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    vertical-align: bottom; /* iframe下の隙間対策 */
}

.l-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 40px;
}

/* フッターロゴ */
.p-footer-logo {
    margin-bottom: 40px;
}
.p-footer-logo img {
    width: 120px;
    height: auto;
}

/* 3カラムコンテンツ */
.p-footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 50px;
}

.p-footer-content__item {
    flex: 1;
}

.p-footer-content__title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.p-footer-content__text p {
    line-height: 1.8;
}
.p-footer-content__note {
    font-size: 1.3rem;
    margin-top: 15px;
}

/* 予約ボタン */
.p-footer-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #343a40;
    padding: 12px 10px;
    margin-top: 15px;
    transition: background-color 0.3s, color 0.3s;
}
.p-footer-button:hover {
    background-color: #343a40;
    color: #fff;
    opacity: 1;
}

.p-footer-button__icon {
    display: inline-block;
    width: 16px; /* アイコンサイズ調整 */
    height: 16px; /* アイコンサイズ調整 */
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.p-footer-button__icon--phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E");
}
.p-footer-button__icon--web {
    background-image: url('/wp-content/themes/IMAGE/assets/images/common/icon-booking.png');
}
.p-footer-button:hover .p-footer-button__icon--phone {
    filter: brightness(0) invert(1);
}
.p-footer-button:hover .p-footer-button__icon--web {
    filter: brightness(0) invert(1); /* ホバー時に白くする */
}


/* コピーライト */
.p-footer-copyright {
    text-align: center;
    font-size: 1.2rem;
}

/* ページトップへ戻るボタン */
.c-pagetop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: #b7a18b;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.c-pagetop__arrow {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(45deg) translateY(2px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .l-footer__inner {
        padding: 40px 20px;
    }
    .p-footer-content {
        flex-direction: column;
    }
    /* ▼▼▼【ここから追記】電話番号の改行を防止 ▼▼▼ */
    .p-footer-content__text {
        white-space: nowrap;
    }
    p-footer-content__text a{
        display: inline;
    }
    /* ▲▲▲【ここまで追記】▲▲▲ */
    .p-footer-content__item:not(:last-child) {
        margin-bottom: 30px;
    }
    .c-pagetop {
        right: 15px;
        bottom: 80px; /* SPフッターナビと被らないように調整 */
    }
}