/* ===== フッター ===== */
footer {
    background-color: #83ccd2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 40px;
    box-sizing: border-box;
}

.footer-top {
    display: flex;
    justify-content: flex-start;
    /* 左詰めに変更 */
    align-items: center;
    padding-bottom: 25px;
    flex-wrap: nowrap;
}

/* 左側：ロゴとSNSをまとめるエリア */
.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-main {
    height: 40px;
    width: auto;
    margin-right: 80px;
    /* メインロゴとSNSの距離 */
}

/* ===== SNSアイコン ===== */
.footer-sns-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: auto;
    /* SNSを右に押し出さず、お問い合わせを一番右に寄せる */
}

/* SNSアイコンのサイズ調整 */
.sns-icon {
    height: 40px;
    /* アイコンを小さく揃える */
    width: auto;
    transition: opacity 0.2s;
}

.sns-icon:hover {
    opacity: 0.7;
}

/* ===== 問い合わせ ===== */
.footer-contact {
    text-align: center;
    white-space: nowrap;
}

.footer-contact p {
    margin: 0;
    font-size: 14px;
    line-height: 1;
}

/* お問い合わせリンクのスタイル */
.contact-link {
    color: inherit;
    /* 周りの文字と同じ色にする */
    text-decoration: none;
    /* 下線を消す */
    transition: opacity 0.3s;
}

.contact-link:hover {
    text-decoration: underline;
    /* マウスを乗せた時だけ下線を表示（クリックできることを示す） */
    opacity: 0.7;
    /* 少し薄くする */
}

/* ===== 著作権エリア ===== */
.footer-bottom {
    border-top: 1px solid #6aa7b1;
    padding-top: 15px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
}

/* --- スマホ向け（Media Query） --- */
@media (max-width: 600px) {
    footer {
        padding: 20px;
    }

    .footer-top {
        display: flex;
        flex-direction: column;
        /* 縦並びに変更 */
        gap: 20px;
        /* 要素間の隙間を調整 */
        align-items: center;
        /* 子要素を中央に揃える */
        text-align: center;
    }

    /* 1. ロゴ：一番上に配置 */
    .footer-logo-link {
        order: 1;
    }

    .footer-logo-main {
        margin-right: 0 !important;
        /* PC版の余白をリセット */
        height: 35px;
    }

    /* 2. SNSアイコン群：中央に配置し、2番目に表示 */
    .footer-sns-group {
        order: 2;
        display: flex;
        justify-content: center;
        /* アイコンを横方向の中央に揃える */
        gap: 25px;
        /* アイコン同士の距離 */
        width: 100%;
    }

    /* 3. お問い合わせ：一番下に配置 */
    .footer-contact {
        order: 3;
        width: 100%;
        white-space: normal;
        /* 折り返しを許可 */
    }

    .footer-contact p {
        font-size: 13px;
        line-height: 1.5;
        word-break: break-all;
        /* 長いアドレスの突き抜け防止 */
    }
}