body {
    padding: 0;
    margin: 0;
    font-family: "zen-maru-gothic", sans-serif;
    font-weight: 700;
    font-style: normal;
    background-color: #ffffff;
    position: relative;
    z-index: 0;


}

.smp {
    display: none;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url(https://support.enetshop.jp/iiinecko/yawatomo/comic/aruaru/bg.webp);
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

.wrap {
    width: 430px;
    margin: 0 auto;
    background-image: linear-gradient(0deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px)),
        linear-gradient(90deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px));
    background-size: 16px 16px;
    background-repeat: repeat;
    background-position: center center;
    border-left: 2px solid #f0f0f0;
    border-right: 2px solid #f0f0f0;
    background-color: #ffffff;
}

header {
    height: 400px;
    align-content: space-evenly;
    background-image: url(https://support.enetshop.jp/iiinecko/yawatomo/comic/aruaru/head.webp);
    background-size: cover;
    position: relative;
    padding: 0px 0 63px;
    background-color: #f3efe4;
}

header .title {
    width: 80%;
    margin: 0 auto;
    position: absolute;
    top: 31px;
    left: 44px;

}

.section {
    margin-bottom: 64px;
}

.section-title {
    position: sticky;
    top: 0;
    background: #f3efe4;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 71px;
    justify-content: center;
}


.section-title img {
    width: 55px;
    height: 55px;
    border-radius: 71px;
    animation: rote 8s infinite linear;
}

@keyframes rote {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.section-title h2 {
    width: 59%;
    line-height: 1.05;
    font-size: 19px;
}

.section-title h2 .date {
    font-size: 16px;
    margin-left: 5px;
    color: #696969;
}


.section-body {
    width: 75%;
    margin: 30px auto;
}




.item {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.item.is-in {
    opacity: 1;
    transform: translateY(0);
}


.section-body img {
    width: 100%;
    height: 320px;
}

#g-nav {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    width: 23%;
    height: 100vh;
    background: #fffaeb;
    transition: all 0.6s;
    padding: 16px 16px 24px;
    max-width: 420px;
}

#g-nav.panelactive {
    right: 0;
}


#g-nav.panelactive {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    width: 23%;
    height: 100vh;
    background: #fffaeb;
    transition: all 0.6s;
}


#g-nav.panelactive #g-nav-list::-webkit-scrollbar {
    display: none;
}

/* パネルそのもの（開いている時のみ） */
#g-nav.panelactive #g-nav-list {
    position: fixed;
    inset: 0 0 0 auto;
    right: 0;
    width: 23%;
    max-width: 420px;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fffaeb;
    padding: 16px 16px 24px;
}

/* 背景レイヤーがある場合は常に背面へ */
body::before {
    z-index: -1;
    pointer-events: none;
}


#g-nav ul {
    position: static;
    z-index: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 12px 0px;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
}

@media (max-width: 1280px) {
    #g-nav ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

#g-nav ul li {
    width: 66%;
}


#g-nav li {
    list-style: none;
    text-align: center;
}

#g-nav li a {
    color: #333333;
    text-decoration: none;
    padding: 2px 0;
    display: block;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 1px solid #a3a3a3;
    width: 100%;
    margin: 0 auto;
    font-size: 13px;
}

#g-nav li img {
    border-radius: 81px;
}

#g-nav li a span {
    font-size: 10px;
    color: #797979;
    margin-left: 5px;
}

/*========= ボタンのためのCSS ===============*/
.openbtn {
    position: fixed;
    z-index: 9999;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background-color: #d1c092d9;
    border-radius: 10px;
}

/*×に変化*/
.openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #ffffff;
    width: 45%;
}

.openbtn span:nth-of-type(1) {
    top: 15px;
}

.openbtn span:nth-of-type(2) {
    top: 23px;
}

.openbtn span:nth-of-type(3) {
    top: 31px;
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}