@charset "UTF-8";
/* reset----------------------------- */
html{
    scroll-padding-top: 50px;
    scroll-behavior: smooth;
}
body {
    font-family: "Noto Sans JP", "Noto Serif JP", serif;
    margin: 0 !important;
}

section, main, footer, h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,dd,p,form,fieldset {
    margin: 0;
    padding: 0;
}
h1,h2,h3,h4,h5,h6 {
    line-height: 1.1;
}
p{
    line-height: 2;
    text-align: justify;
}
li {
    list-style: none;
}

th {
    font-weight: normal;
}

em {
    font-style: normal;
}

sup {
    position: relative;
    height: 0;
    font-size: .46em;
}

article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary {
    display: block;
}

img {
    width: 100%;
    max-width:100%;
    display: block;
    object-fit: contain;
}
a{
    text-decoration: none;
    color: #FFF;
}

.l-footer {
    width: 96%;
    position: relative;
    z-index: 10;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    
    background-image: url("../images/footer-bg-pc.webp") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important; /* 画面幅やフッターの高さに応じて自動等倍伸縮 */
    
    overflow: hidden;

    /* 上端の角丸による隙間と、最下部の白い余白の発生をWガードで完全シャットアウト */
    margin-top: -40px !important;
    margin-left: auto !important;
    margin-right: auto ;
    padding-bottom: 40px !important;
}

.l-footer_inner {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 50px 0 0px 0;
    display: flex;
    flex-direction: column;
}

.l-footer_top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.l-footer_nav-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: right;
}

.l-footer_logo a {
    font-size: 24px;
    font-weight: 500;
    color: #4a4a4a;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* 上段：メインナビ */
.l-footer_main-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end; /* 右寄せ */
    gap: 32px;
}

.l-footer_main-list .menu-item a {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    text-decoration: none;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

/* 下段：サブナビ */
.l-footer_sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end; /* 右寄せ（CONTACTの右端のツラに100%揃える） */
    gap: 24px;
}

.l-footer_sub-list .menu-item a {
    font-size: 14px;
    font-weight: 400;
    color: #555555;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.l-footer_main-list .menu-item a:hover,
.l-footer_sub-list .menu-item a:hover {
    opacity: 0.6;
}

.l-footer_copyright {
    font-size: 13px;
    color: #555555;
    text-align: center;
    font-weight: 700;
    margin-top: 80px;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

@media screen and (max-width: 768px) {
    .l-footer {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        background-image: url("../images/footer-bg-sp.webp") !important;
        background-size: cover !important;
        background-position: center top !important; /* オーロラ光線の美しい始まりを上端に固定 */

        margin-top: -24px !important;
        padding-bottom: 24px !important;
    }
    .l-footer_inner {
        padding: 40px 0 0px 0 !important; 
    }
    
    .l-footer_top {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 16px;
    }
    
    .l-footer_logo a {
        font-size: 24px;
        font-weight: 500;
        color: #4a4a4a;
        text-decoration: none;
        letter-spacing: 0.5px;
        padding-left: 20px;
        white-space: nowrap
    }

    .l-footer_nav-group {
        width: auto !important;
        align-items: flex-end !important;
        gap: 28px !important; 
        text-align: right !important;
        padding-right: 20px;
    }
    
    .l-footer_main-list {
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: flex-end !important;
        gap: 16px !important; 
    }
    
    .l-footer_sub-list {
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: flex-end !important;
        gap: 12px !important; 
    }
    
    .l-footer_copyright {
        margin-top: 90px; 
    }
}