@import url('./reset.css');
@import url('./define.css');

html {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: min(0.625vw, 10px); 
    font-size: var(--font-size);
    scroll-behavior: smooth;
}

@media screen and (max-width: 800px) {
    html {
        font-size: 1.25vw;
    }
}

body {
    background-image:
        url(../images/common/background_pattern.webp),
        linear-gradient(90deg, #534d88 0%, #c038a8 50%, #534d88 100%);
    background-position: 6rem;
    background-repeat: repeat;
    background-size: calc(100% / 15.6) auto, 100%; /* 15.6 = 1600 */
    margin: 0;
    overscroll-behavior: none;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

header.header {
    position: absolute;
    width: 100%;
    height: 41rem;
    top: 0;
	background-image: url(../images/common/header_base.webp);
    background-size: 100% 100%;
    background-repeat: no-repeat;
	background-position: center;
    justify-self: center;
}

.header-logo {
    display: inline-block;
    margin-top: 3.95rem;
    margin-left: 10.5rem;
}

.header-logo img {
    display: block;
    width: calc(21rem + 2.6rem);
    height: calc(20.3rem + 2.2rem);
    object-fit: contain;
}

header.header nav.top-menu{
    position: absolute;
    top: 6.9rem;
    right: 10.5rem;
}

header.header nav.top-menu ul{
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5.8rem;
}

header.header nav.top-menu li {
    list-style: none;
}

header.header nav.top-menu li a {
    font-family: var(--font-family-uncial-antiqua);
    font-weight: 700;
    text-decoration: none;
    color: var(--color-header-title);
    font-size: 3.8rem;
}

header.header nav.top-menu li a:hover {
    text-shadow: #6482bc 0 0 1rem;
}

header.header nav.top-menu li::marker {
    content: "";
}

header.header nav.top-menu li:not(:last-child)::after {
    content: "";
    background-image: url(../images/common/header_star.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8rem;
    height: 2.1rem;
    margin-left: 2rem;
}

.pc {
    display: block;
}

.sp {
    display: none ;
}

main#contents {
    width: 100%;
    max-width: 160rem;
    margin: 0 auto;
    position: relative;
    display: block;
}

.site-footer {
    margin-top: 14.4rem;
    padding: 9.5rem 0 14.5rem;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #222157 0%, #4a2157 100%);
    background-image:
        url(../images/common/footer_illust.webp),
        linear-gradient(to bottom, #222157 0%, #4a2157 100%);
    background-repeat: no-repeat, no-repeat;
    background-position:
        bottom center,
        center;
    background-size:
        100% auto,
        cover;
}

.footer-container {
    width: 100%;
    max-width: 160rem;
    margin: 0 auto;
}

.footer-store-block {
    text-align: center;
    margin-bottom: 0;
}

.footer-logo {
    width: 16.8rem;
    height: 16.29055rem;
    object-fit: contain;
    margin-bottom: 2.7rem;
}

.footer-sns-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-category-title {
    margin: 0;
    font-size: 42pt;
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 700;
    color: var(--color-footer-title);
    text-transform: uppercase;
}

.footer-store-name {
    margin: 1.6rem 0 0;
    font-size: 25pt;
    line-height: 1.3;
    letter-spacing: 0;
    font-weight: 300;
    color: #ffffff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 32rem));
    justify-content: center;
    align-items: start;
    column-gap: 11rem;
    width: 100%;
    max-width: calc(3 * 32rem + 2 * 11rem);
    margin: 0 auto;
}

.footer-link-group {
    min-width: 0;
    text-align: center;
}

.footer-link-group h3 {
    margin: 0 0 3.3rem;
    color: var(--color-footer-title);
    font-size: 4.2rem;
    font-family: var(--font-family-uncial-antiqua);
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 700;
}

.footer-link-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.footer-link-group li {
    margin: 0;
}

.footer-link-group a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 2.5rem;
    font-family: var(--font-family-noto-sans-jp);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.footer-link-group a:hover {
    color: var(--color-footer-title);
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 2.7rem;
    margin-bottom: 6.2rem;
}

.footer-sns-slot {
    width: 5.2rem;
    height: 5.2rem;
    border-radius: 1rem;
    display: block;
}

@media (max-width: 800px) {
    body {
        background-image:
            url(../images/common/background_pattern.webp),
            linear-gradient(90deg, #534d88 0%, #c038a8 50%, #534d88 100%);
        background-position: 1.2rem;
        background-repeat: repeat;
        background-size: calc(100% / 17.3) auto, 100%; /* 17.3 = 800  */
        margin: 0;
        overscroll-behavior: none;
        overflow-x: hidden;
    }

    .pc {
        display: none !important;
    }

    .sp {
        display: block;
    }
    
    header.header {
        position: absolute;
        width: 100%;
        height: 25.4rem;
        top: 0;
        background-image: url(../images/common/mobile-nav/header_base.webp);
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        justify-self: center;
        display: flex;
        justify-content: space-between;
    }
    
    .header-logo {
        display: inline-block;
        height: fit-content;
        margin-top: calc(2rem - 1.3rem);
        margin-left: calc(5.3rem - 1.1rem);
    }

    .header-logo img {
        display: block;
        width: calc(14.225rem + 2.6rem);
        height: calc(14.66985rem + 2.2rem);
        object-fit: contain;
    }
    
    .top-menu {
        display: none;
    }

    .top-menu.sp {
        display: block;
        width: calc(8.1rem + 2.7rem);
        height: calc(8.1rem + 2.7rem);
        object-fit: contain;
        margin-top: calc(5rem - 1.35rem);
        margin-right: calc(5.1rem - 1.35rem);
    }

    .top-menu-mobile__nav {
        display: none;
    }

    .top-menu-mobile__nav.open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
    }

    .top-menu-mobile__nav-inner {
        position: absolute;
        width: 100%;
        height: 39.6rem;
        top: 0;
        background-image: url(../images/common/mobile-nav/menu_base.webp);
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        padding-top: 2.4rem;
        z-index: 1000;
    }

    .top-menu-mobile__nav-list .menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 69.54414rem;
        justify-items: center;
        margin: 0 auto;
        row-gap: 1.9rem;
        column-gap: 1.8rem;
    }

    .top-menu-mobile__nav-list .menu > li {
        height: 6.7rem;
        width: 33.87rem;
        border: 0.1rem solid var(--color-header-title);
        border-radius: 1.3rem;
    }

    .top-menu-mobile__nav-list .menu > li > a{
        display: inline-block;
        height: 100%;
        width: 100%;
        align-content: center;
        text-align: center;
        font-size: 3.8rem;
        font-family: var(--font-family-uncial-antiqua);
        color: var(--color-header-title);
    }

    .top-menu-mobile__nav-close {
        display: flex;
        justify-content: center;
        margin-top: 3.3rem;
    }

    .top-menu-mobile__nav-close-text {
        font-size: 2.2rem;
        color: var(--color-header-title);
        font-weight: 700;
        font-family: var(--font-family-uncial-antiqua);
        letter-spacing: 0.2em;
    }
    
    .top-menu-mobile__nav-close-text::before {
        content: "";
        background-image: url(../images/common/mobile-nav/menu_star.webp);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        width: 1.37143rem;
        height: 2.9rem;
        margin-left: -3.97143rem;
    }
    
    .top-menu-mobile__nav-close-text::after {
        content: "";
        background-image: url(../images/common/mobile-nav/menu_star.webp);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        width: 1.37143rem;
        height: 2.9rem;
        margin-left: 2.6rem;
    }

    .site-footer {
        margin-top: 8.1rem;
        padding: 8.9rem 0 11.7rem;
        box-sizing: border-box;
        background: linear-gradient(to bottom, #222157 0%, #4a2157 100%);
        background-image:
            url(../images/common/footer_illust.webp),
            linear-gradient(to bottom, #222157 0%, #4a2157 100%);
        background-repeat: no-repeat, no-repeat;
        background-position:
            bottom center,
            center;
        background-size:
            100% auto,
            cover;
    }
    
    .footer-container {
        width: 100%;
        margin: 0 auto;
    }
    
    .footer-store-block {
        text-align: center;
        margin-bottom: 0;
    }

    .footer-logo {
        width: 24.6308rem;
        height: 23.88389rem;
        object-fit: contain;
        margin-bottom: 5.6rem;
    }

    .footer-social-links {
        display: flex;
        justify-content: center;
        gap: 3rem;
        margin-bottom: 6.8rem;
    }
    
    .footer-sns-slot {
        width: 9.2rem;
        height: 9.2rem;
        border-radius: 1rem;
        display: block;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6.6rem;
        width: 100%;
        max-width: calc(3 * 32rem + 2 * 11rem);
        margin: 0 auto;
    }
    
    .footer-link-group h3 {
        margin: 0 0 1.9rem;
        color: var(--color-footer-title);
        font-size: 5.6rem;
        font-family: var(--font-family-uncial-antiqua);
        letter-spacing: 0;
        font-weight: 700;
    }
    
    .footer-link-group ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .footer-link-group li {
        margin: 0;
    }
    
    .footer-link-group a {
        display: block;
        color: #ffffff;
        text-decoration: none;
        font-size: 2.8rem;
        font-family: var(--font-family-noto-sans-jp);
        font-weight: 300;
        line-height: 3.8rem;
    }
    
    .footer-link-group a:hover {
        color: var(--color-footer-title);
    }

}