header{
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    padding:20px 0;
}

html {
    scroll-behavior: smooth;
}

h1{
    margin:0;
    padding:0;
}

#container{
    position: relative;
    font-family: "Shippori Mincho";
    font-weight: 700;
    margin-left: auto;
    margin-right: auto;
    text-align:center;
}

/* スマホでも動作する固定背景 */
#container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/bg.webp);
    background-size: cover;
    background-position: center;
    z-index: -1;
}




header nav ul {
    list-style: none;
    display: flex;
    padding-left: 0;
    font-size: 16px;
    align-items: flex-end;
    margin-top: 60px;
    margin-bottom: 10px;
    font-family: "Shippori Mincho";
    font-weight: 700;

  

}

h2 {
    font-family: "Shippori Mincho";
    font-weight: 700;
    font-size: 3em;
    margin-top: 160px;
    
}
h2::before {
    content: "";
    width: 3.1rem;
    height: 2.1rem;
    display: inline-block;
    background-image: url(../img/deco1.webp);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}
h2::after {
    content:"";
    width: 3.1rem;
    height: 2.1rem;
    display: inline-block;
    background-image: url(../img/deco2.webp);
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 10px;
}
#kv {
    width: 100%;
}
#kv img {
    width: 100%;
}

.storyp{
    font-size: 1.2em;
    line-height: 3em;
    padding: 0 16px;;

}




/* gallery */
.grid {
    margin: 0 auto;
}
.grid-item { 
    width: 300px;
    margin-bottom: 20px;
}
.grid-item--width1 { width: 400px; }
.grid-item--width2 { width: 500px; }
.grid-item--width3 { width: 600px; }
.grid-item img{
    width: 100%;
    height: auto;
    display: block;
}

/* movie */
#movie{
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}
#youtube{
    width: 100%;
    height: 100%;
}

/* footer */
#pagetop{
    position:relative;
    display: block;
    margin: 60px 0 40px;
    color:#fff;
    transition: opacity 0.3s;
}
#pagetop:hover{
    opacity:0.7;
}
#copyright{
    position:relative;
    display: block;
    padding-bottom: 32px;
}

/* particle */
#particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
#canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    h2 {
        font-size: 2em;
        margin-top: 80px;
    }
    
    h2::before,
    h2::after {
        width: 2.1rem;
        height: 1.5rem;
    }
}