﻿@media (max-width: 768px) {
    body{
        grid-template-columns: calc(100vw - 40px) 40px ;
        align-items: flex-start;
    }
    body > header{
        grid-column: 1 / -1;
        grid-row: 1;
    }
    ul.banner{
        grid-column: 2;
        grid-row: 1 / 4;
    }
    body > main{
        grid-column: 1;
        grid-row: 2;
    }
    body > footer{
        grid-column: 1 / -1;
        grid-row: 3;
    }
    body > #slider,
    body > p{
        display: none;
    }
}

article > header > figure{
    position: relative;
    margin-bottom: 1rem;
}
article > header > figure::after{
    content: "";
    background: radial-gradient( rgba(var(--main-color-opacity), .7) 0%, rgba(var(--main-color-opacity), 0) 70%);
    width: 17.5rem;
    height: 13.5rem;
    position: absolute;
    bottom: -10rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

article > header > figure img{
    width: 50vw;
    height: 25rem;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 768px) {
    article > header > figure img{
        width: 100vw;
        height: 15rem;
    }
}
article > header h2{
    font-size: 2rem;
    padding-left: 6rem;
    position: relative;
    margin-bottom: 3rem;
}
article > header h2::before{
    content: "";
    width: 26.75rem;
    height: 2px;
    background: var(--main-color);
    position: absolute;
    left: 0;
    bottom: -1.5rem;
}
article > header h2::after{
    color: rgba(var(--main-color-opacity), .5);
    font-size: 3rem;
    position: absolute;
    left: 2rem;
    bottom: -2rem;
    z-index: -1;
}

#post-128 > header h2::after,
#post-130 > header h2::after,
#post-136 > header h2::after,
#post-138 > header h2::after{
    content: "Anniversary";
}
#post-132 header h2::after{
    content: "Half-birthday";
}
#post-134 > header h2::after{
    content: "Birthday";
}
#post-140 > header h2::after{
    content: "Maternity";
}




#gallery-slider .splide__track{
    padding: 2rem 0;
}
#gallery-slider .splide__slide img {
    opacity: .5;
    transform: scale(.8);
    transition: .7s;
}
#gallery-slider .splide__slide.is-active img {
    opacity: 1;
    transform: scale(1.1);
    z-index: 1;
    overflow: visible;
}
#gallery-slider .gallery-pagination{
    bottom: -2rem;
}
#gallery-slider .gallery-page{
    border: 1px solid var(--main-color);
    background-color: var(--clear-color);
    width: .75rem;
    height: .75rem;
}
#gallery-slider .gallery-page.is-active {
    background-color: var(--main-color);
}
#gallery-slider .button {
    background-color: transparent;
    height: 30px;
    transition: .2s;
    width: 30px;
}
#gallery-slider .button::before {
    background-repeat: no-repeat;
    background-size: contain;
    bottom: 0;
    content: "";
    height: 30px;
    left: 0;
    margin: auto;
    position: absolute;
    top: 0;
    width: 30px;
}
#gallery-slider .prev{
    transform: translate(5.5rem,2rem);
}
#gallery-slider .next{
    transform: translate(-5.5rem,2rem);
}
#gallery-slider .prev::before {
    background-image: url(../images/arrow-left.svg);
}
#gallery-slider .next::before {
    background-image: url(../images/arrow-right.svg);
}
#gallery-slider .button:disabled::before {
    opacity: .5;
}
#gallery-slider .splide__slide img {
    height: auto;
    width: 100%;
}
@media (max-width: 768px) {
    #gallery-slider .prev{
        transform: translate(1.5rem,2rem);
    }
    #gallery-slider .next{
        transform: translate(-1.5rem,2rem);
    }
}




article > section{
    padding: 2rem 0 3rem;
}
article > section > div{
    width: 90%;
    margin: 0 auto;
}
article > section h3{
    text-align: center;
    color: var(--main-color);
    font-size: 1.7rem;
    margin-bottom: 2rem;
}
article > section h3 span{
    color: var(--text-color);
    font-size: 1rem;
    display: block;
    line-height: 1.3;
}


@media (max-width: 768px) {
    article section{
        padding: 2rem 0;
    }
    article > header h2{
        font-size: 1.5rem;
        padding-left: 2rem;
    }
    article > header h2::before{
        width: 16rem;
    }
    article > header h2::after{
        left: 17rem;
    }
}

article > section:first-of-type > div > p{
    text-align: justify;
    font-size: .9rem;
    max-width: 25rem;
    margin: 4rem auto 0;
    font-family: 'HannariMincho',serif;
}
@media (max-width: 768px) {
    article > section:first-of-type > div > p{
        margin: 2rem auto 0;
    }
}


article > section:nth-of-type(2){
    background: rgba(var(--accent-color-opacity),.2);
}
article > section:nth-of-type(2) > div > div{
    background: var(--clear-color);
    padding: 1.5rem 2rem;
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}
article > section:nth-of-type(2) > div > div h4{
    text-align: center;
    background: var(--accent-color);
    padding: .3rem 0;
    font-size: 1.25rem;
}
article > section:nth-of-type(2) > div > div h4 + p{
    font-size: .9rem;
}
article > section:nth-of-type(2) > div > div ul li span{
    font-size: .8rem;
}
article > section:nth-of-type(2) > div > div dl{
    font-size: .9rem;
}
@media (max-width: 768px) {
    article > section:nth-of-type(2) > div > div{
        background: transparent;
        padding: 0;
    }
    article > section:nth-of-type(2) > div > div h4{
        background: var(--clear-color);
        color: var(--text-color);
        padding: .3rem 1rem;
        font-size: 1.2rem;
        text-align: left;
    }
}

#post-128 > section:nth-of-type(2) > div > div ul li,
#post-130 > section:nth-of-type(2) > div > div ul li{
    border-bottom: 3px dotted var(--main-color);
    padding-bottom: .5rem;
}



#post-136 > section:nth-of-type(3) > div ul{
    display: grid;
    gap: 3rem;
}
#post-136 > section:nth-of-type(3) > div ul li h4{
    text-align: center;
    background: var(--accent-color);
    padding: .2rem 0;
    font-size: 1rem;
    font-weight: normal;
    margin: 0 0 1rem;
}
#post-136 > section:nth-of-type(3) > div ul li h5{
    font-size: 1rem;
    font-weight: normal;
    font-family: 'NotoSansJP', sans-serif;
    font-size: .9rem;
    margin-top: 1rem;
}
#post-136 > section:nth-of-type(3) > div ul li p{
    text-align: justify;
    font-size: .9rem;
}
#post-136 > section:nth-of-type(3) > div ul li table{
    margin-top: 1rem;
    border-collapse: collapse;
    width: 100%;
}
#post-136 > section:nth-of-type(3) > div ul li span{
    font-size: .7rem;
}
#post-136 > section:nth-of-type(3) > div ul li table th{
    font-weight: normal;
    background: rgba(var(--main-color-opacity),.3);
}
#post-136 > section:nth-of-type(3) > div ul li table th,
#post-136 > section:nth-of-type(3) > div ul li table td{
    text-align: center;
    padding: .7rem 0;
    border: 1px solid var(--clear-color);
}

#post-136 > section:nth-of-type(3) > div ul:first-of-type + p{
    text-align: center;
    font-size: .9rem;
    margin:1.5rem auto 3rem;
}


#post-136 > section:last-of-type{
    background: rgba(var(--accent-color-opacity),.2);
}

#post-136 > section:last-of-type h3 + p,
#post-128 > section:last-of-type h3 + p{
    margin: 0 auto;
    font-size: .9rem;
}
#post-136 > section:last-of-type ul,
#post-128 > section:last-of-type ul{
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 5rem auto;
    gap: 3rem;
}
#post-136 > section:last-of-type li,
#post-128 > section:last-of-type li{
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    line-height: 1.3;
}
#post-136 > section:last-of-type li img,
#post-128 > section:last-of-type li img{
    margin-bottom: .5rem;
    width: 5rem;
    object-fit: cover;
}
#post-136 > section:last-of-type li span,
#post-128 > section:last-of-type li span{
    font-size: .8rem;
    margin-bottom: .3rem;
}
#post-136 > section:last-of-type ul + p,
#post-128 > section:last-of-type ul + p{
    font-size: .8rem;
    text-align: center;
}
