body {
    font-family: "Noto Serif JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    color: #583B13;
    overflow-x: hidden;
    background-color: #FDFDFA;
}

img {
    max-width: 100%;
    height: auto;
}

/* レイアウト */
.wrapper {
    width: 90%;
    max-width: 1440px;
    margin: auto;
}

.wrapper-small {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

.wrapper-smaller {
    width: 90%;
    max-width: 1040px;
    margin: auto;
}

.wrapper-min {
    width: 90%;
    max-width: 880px;
    margin: auto;
}

/* ヘッダーここから */

/* ヘッダー全体のスタイル */
.header {
    background-color: #FDFDFA;
    height: 90px;
    flex: auto;
    align-items: center;
}


.header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0 20px;
    width: 100%;
}


/* ロゴ部分 */
.header_logo {
    display: flex;
    align-items: center;
}

.header_logo img {
    height: 50px;
}

/* ナビゲーションメニュー */

.gnav ul {
    display: flex;
    align-items: center;
}

.gnav li {
    margin: 0 15px;
}

.gnav a {
    color: #583B13;
    position: relative;
    padding-bottom: 5px;
}

.sp-button {
    display: none;
}

.sdgs_icons {
    display: flex;
    align-items: center;
}

.sdgs_icons img {
    height: 40px;
    margin-left: 10px;
}

/* マウスホバー */
@media(hover: hover) {
    .gnav a::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 50%;
        width: 0;
        height: 1px;
        background-color: #583B13;
        transition: width 0.3s ease, left 0.3s ease;
        transform: translateX(-50%);
    }

    .gnav_list a:hover {
        color: #999;
    }

    .gnav_list a:hover::after {
        width: 100%;
        left: 50%;
    }

    .footer_list a::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 50%;
        width: 0;
        height: 1px;
        background-color: #cfcfcf;
        transition: width 0.3s ease, left 0.3s ease;
        transform: translateX(-50%);
    }

    .footer_item a:hover {
        color: #cfcfcf;
    }

    .footer_item a:hover::after {
        width: 100%;
        left: 50%;
    }

    .partner-list a::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 50%;
        width: 0;
        height: 1px;
        background-color: #cfcfcf;
        transition: width 0.3s ease, left 0.3s ease;
        transform: translateX(-50%);
    }

    .partner_item a:hover {
        color: #cfcfcf;
    }

    .partner_item a:hover::after {
        width: 100%;
        left: 50%;
    }

}

/* ヘッダーここまで */

/* フッターここから */
.footer {
    position: relative;
    background-image: url(../img/footer-background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    padding: 20px 50px 0px 25px;
    aspect-ratio: 1440 / 900;
    min-height: 600px;
    overflow: hidden;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

/* アニメーション用の背景オーバーレイ */
.footer-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(80, 80, 80, 0.5);
    z-index: 0;
    transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* アニメーション起動時のクラス */
.footer.animate .footer-overlay {
    transform: translateX(100%);
}



.footer_logo-container {
    display: flex;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.3s;
}

.footer.animate .footer_logo-container {
    opacity: 1;
    transform: translateY(0);
}

.footer_logo-text {
    padding-top: 5%;
    white-space: nowrap;
}

.footer_wrapper {
    color: #ffff;
    display: flex;
    gap: 20%;
    position: relative;
    z-index: 1;
}

.footer_partner {
    margin-top: 9%;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.5s;
}

.footer.animate .footer_partner {
    opacity: 1;
    transform: translateY(0);
}

.footer_nav {
    padding-top: 2%;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.4s;
}

.footer.animate .footer_nav {
    opacity: 1;
    transform: translateY(0);
}

.footer_list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    gap: 25px;
    font-size: 18px;
}

.footer_list a {
    position: relative;
}

.footer_list li a,
.partner-list li a {
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    display: inline-block;
}


.footer_wrapper,
.footer-nav_container,
.footer_partner,
.partner-nav {
    max-width: 100%;
    overflow-wrap: break-word;
}

.partner-title {
    font-size: 32px;
    line-height: 180%;
}

.partner-nav {
    width: 100%;
}

.partner-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 18px;
}

.partner-list a {
    position: relative;
}

.copy {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffff;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.6s;
}

.footer.animate .copy {
    opacity: 1;
    transform: translateY(0);
}

/* フッターここまで */




@media(max-width: 1200px) {

    .gnav {
        z-index: 100;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        padding-top: 100px;
        margin-top: 60px;
        visibility: hidden;
        opacity: 0;
        transition: 0.3s all;
        transform: translateX(100%);
        background-color: #FDFDFA;
    }

    .gnav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .active .gnav {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .active .gnav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .sp-button {
        position: relative;
        display: inline-block;
    }

    .hamburger {
        position: absolute;
        top: 30px;
        right: 20px;
    }

    .hamburger-line {
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0;
        width: 30px;
        height: 2px;
        background-color: #583B13;
    }

    .hamburger-line::before,
    .hamburger-line::after {
        position: absolute;
        display: block;
        width: 100%;
        height: 100%;
        content: ' ';
        background-color: inherit;
        transition: 0.3s;
    }

    .hamburger-line::before {
        top: -8px;
    }

    .hamburger-line::after {
        top: 8px;
    }

    .active .hamburger-line {
        background-color: transparent;
    }

    .active .hamburger-line::before,
    .active .hamburger-line::after {
        top: 0;
        background-color: #583B13;
        transition: 0.3s;
    }

    .active .hamburger-line::before {
        transform: rotate(45deg);
    }

    .active .hamburger-line::after {
        transform: rotate(-45deg);
    }

    .sdgs_icons {
        order: 2;
        margin-right: 50px;
    }




    /* フッター */

    .footer {
        aspect-ratio: 3 / 2;
        min-height: 500px;
    }

    .footer_wrapper {
        flex-direction: column;
    }

    .footer_logo img {
        max-width: 6vh;
        height: auto;
    }

    .footer_logo-text {
        padding-top: 2%;
        word-wrap: break-word;
        word-break: break-word;
    }

    .footer_partner {
        margin-top: 2vh;
    }

    .footer-nav_container {
        padding-top: 5%;
        margin: 0 10%;
    }


}

@media(max-width: 1000px) {
    .footer {
        min-height: 625px;
    }
}

@media(max-width: 768px) {

    .footer_list,
    .partner-list {
        font-size: 16px;
    }

    .partner-title {
        font-size: 24px;
    }

    .footer_logo-container,
    .footer_wrapper,
    .footer_partner,
    .footer_nav,
    .partner-nav {
        width: 100%;
        box-sizing: border-box;
    }
}

@media(max-width: 480px) {

    .footer_logo img {
        max-width: 17vw;
    }

    .footer_list,
    .partner-list {
        font-size: 14px;
    }

    .footer_logo-text {
        font-size: 13px;
    }

    .copy {
        font-size: 12px;
    }
}