footer{
    margin: 0;
    padding: 0;
    background-color: #02af02;
    height: 200px;
    display: flex;
    align-items: center;
}
.footer-search{
    color: #02af02;
    font-size: 20px;
    margin-bottom: 10px;
}
.search-h2{
    margin-top: 50px;
}
.footer-prefecture{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 0 0 18px 0;
}
.footer-area{
    color: black;
    font-size: 18px;
    width: 120px;
    margin: 0;
    line-height: 1.5;
    flex-shrink: 0;
    position: relative;
    top: -2px;
}
.footer-search-links{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    width: 940px;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    row-gap: 6px;
}
.footer-link{
    margin: 0 10px 0 0;
}
.footer-p-bottom{
    margin-bottom: 50px;
}
.footer-link{
    margin: 0 10px;
}
.footer-link a{
    color: black;
    text-decoration: underline;
}
.footer-link a:hover{
    color: gray;
    text-decoration: none;
}

/* 緑色背景のフッター部分 */
.footer-basic{
    width: 1060px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}
.footer-soresute-logo a img{
    width: fit-content;
    height: 100px;
}
.footer-SNS{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
.footer-SNS-headline{
    color: white;
    margin-right: 20px;
}
.footer-SNS-content{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
}
.footer-SNS-button a{
    color: white;
    font-size: 30px;
    text-decoration: none;
}
.footer-SNS-button a:hover{
    color: gray;
    font-size: 30px;
}
.footerNav-links{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    list-style: none;
}
.footerNav-link a{
    font-size: 12px;
    color: white;
    text-decoration: none;
}
.footerNav-link a:hover{
    font-size: 12px;
    color: white;
    text-decoration: underline;
}
.footerNav small{
    display: block;
    width: fit-content;
    margin-left: auto;
    font-size: 12px;
    color: white;
    text-align: right;
}
.footer-search-box{
    width: 1060px;
    margin-left: auto;
    margin-right: auto;
}

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

    .footer-search{
        font-size: 18px;
        margin-bottom: 16px;
        padding: 0 12px;
    }

    .footer-search-box{
        width: 100%;
        max-width: none;
        padding: 0 12px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    /* 地域名の次で必ず改行 */
    .footer-prefecture{
        display: block;
        margin: 0 0 20px 12px;
    }

    .footer-area{
        width: auto;
        margin: 0 0 8px;
        font-size: 18px;
        line-height: 1.4;
    }

    .footer-search-links{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        column-gap: 18px;
        row-gap: 6px;
        align-items: start;
    }

    .footer-link{
        margin: 0;
        min-width: 0;
    }

    .footer-link a{
        display: inline-block;
        font-size: 15px;
        line-height: 1.8;
        word-break: keep-all;
    }

    footer{
        padding: 28px 0 32px;
        height: auto;
    }

    .footer-basic{
        width: calc(100% - 32px);
        max-width: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footer-soresute-logo a img{
        height: auto;
        max-width: 200px;
        width: 100%;
        margin: 0 auto;
    }

    .footer-SNS{
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-SNS-headline{
        margin-right: 0;
        font-size: 18px;
    }

    .footer-SNS-content{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }

    .footer-SNS-button{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        line-height: 1;
    }

    .footer-SNS-button a{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        font-size: 42px;
        line-height: 1;
    }

    .footer-SNS-X a{
        transform: translateY(2px);
    }

    .footerNav{
        width: 100%;
    }

    .footerNav-links{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin: 0 0 18px;
        padding-left: 0;
    }

    .footerNav-link a{
        font-size: 16px;
        line-height: 1.6;
        writing-mode: horizontal-tb;
    }

    .footerNav small{
        margin-left: 0;
        text-align: center;
        font-size: 14px;
    }

    /* ---------------------------------
       スマホ時のセンター揃え微調整
    --------------------------------- */
    .footer-basic > *{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .footer-soresute-logo{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-soresute-logo a{
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .footer-soresute-logo a img{
        height: auto;
        max-width: 200px;
        width: 100%;
        margin: 0 auto;
    }

    .footer-SNS{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .footer-SNS-headline{
        width: 100%;
        text-align: center;
    }

    .footer-SNS-content{
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .footerNav{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .footerNav-links{
        width: 100%;
        padding-left: 0;
        margin: 0 0 18px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footerNav-link{
        width: 100%;
        text-align: center;
    }

    .footerNav-link a{
        display: inline-block;
        text-align: center;
    }

    .footerNav small,
    .footerNav .desktopBlock{
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: center;
    }
}

/* ---------------------------------
   iPad / tablet only
   PC型フッター維持
--------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1366px) and (pointer: coarse){

    footer{
        height: 200px;
        padding: 0 24px;
        box-sizing: border-box;
    }

    .footer-basic{
        width: 100%;
        max-width: 1060px;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        box-sizing: border-box;
    }

    .footer-soresute-logo{
        flex: 0 0 220px;
        min-width: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-soresute-logo a{
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .footer-soresute-logo a img{
        width: auto;
        height: 100px;
        max-width: 220px;
        object-fit: contain;
        display: block;
    }

    .footer-SNS{
        flex: 0 0 auto;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        white-space: nowrap;
    }

    .footer-SNS-headline{
        margin-right: 18px;
        white-space: nowrap;
    }

    .footer-SNS-content{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 18px;
    }

    .footerNav{
        flex: 1 1 auto;
        min-width: 0;
    }

    .footerNav-links{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px 14px;
        margin-bottom: 20px;
        padding-left: 0;
    }

    .footerNav-link a{
        font-size: 12px;
        white-space: nowrap;
    }

    .footerNav small{
        margin-left: auto;
        text-align: right;
    }
}