/*=======================================
  フッター関連の基本設定
=========================================*/

.site-footer {
    background-color: #ffffff;
    padding: 40px 0px 0px;
    text-align: center;
    background-image: url('/img/top/footer-tree.png');
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: left 5px bottom;
    border-top: solid 4px #0C446E;
    border-bottom: solid 4px #0C446E;
}

#page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 19;
    width: 88px;
    height: 100px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    /* transitionプロパティを整理 */
    transition: opacity 0.3s, visibility 0.3s, right 0.3s ease-in-out;
}

#page-top-btn img {
    width: 100%;
    opacity: 1;
}

#page-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.footerTop {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.contactSection {
    flex: 1;
    min-width: 300px;
}

.contactSection .linkBtn {
    justify-content: flex-end;
}

.contactSection h2 {
    font-size: 3.2rem;
    /* font-weight: normal; */
    text-align: left;
    margin: 0;
}

.contactInfo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px 20px;
    margin-bottom: 40px;
    margin-top: 30px;
}

.contactFooter {
    text-align: left;
    border-left: solid 1px #707070;
    padding-left: 1rem;
}

.contactFooter strong {
    color: #0C446E;
}

.addressDetail span {
    display: block;
    margin-right: 0.5em;
    width: 100%;
}

.addressDetail span:last-child {
    margin-right: 0;
}

.sojinko {
    width: 350px;
    flex-shrink: 0;
    padding: 3px 0px 0px;
    text-align: center;
    background-image: url('/img/top/footer-map.png');
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 265px;
}

.contactLinks a {
    margin-right: 15px;
}

.sojinko strong {
    font-size: 1.8rem;
}

.sojinko dl {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0px 30px;
    gap: 20px;
}

.dl-row {
    display: flex;
    gap: 20px;
}

.dl-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dl-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.sojinko dd {
    margin: 0;
    padding: 0;
}

strong.sojinkoT,
.dl-item dt {
    display: flex;
    align-items: center;
    column-gap: 11px;
    justify-content: center;
}

.dl-item dd span {
    font-size: 2.2rem;
}

strong.sojinkoT::before {
    content: '';
    display: block;
    width: 40px;
    height: 33px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    background-image: url('/img/top/i-sojinko.png');
}

dt.josei::before,
dt.dansei::before {
    content: '';
    display: block;
    width: 15px;
    height: 33px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

dt.dansei::before {
    background-image: url('/img/top/i-dansei.png');
}

dt.josei::before {
    background-image: url('/img/top/i-josei.png');
}

.footerBottom ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}


/*=======================================
  フッター関連のレスポンシブ調整
=========================================*/
@media (max-width: 1024px) {
    #page-top-btn {
        bottom: 12px;
        right: 5px;
        width: 64px;
        height: 73px;
    }

    .site-footer {
        background-size: 50px;
    }

    .contactSection .linkBtn {
        justify-content: center;
        column-gap: 12px;
    }

    .footerBottom ul {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 12px;
    }
}

@media (max-width: 600px) {
    .contactSection h2 {
        font-size: 2.6rem;
    }

    .contactSection .linkBtn {
        flex-direction: column;
        row-gap: 0px;
    }
}

@media (max-width: 320px) {
    .sojinko {
        width: 100%;
    }
}

/* --- スクロールロック時のfixed要素の位置補正 --- */
body.is-scroll-locked #page-top-btn {
    right: calc(30px + var(--scrollbar-compensation, 0px));
}

@media (max-width: 1024px) {
    body.is-scroll-locked #page-top-btn {
        right: calc(5px + var(--scrollbar-compensation, 0px));
    }
}