body {
    background-image: url(../img/tokubetsu/tokubetsu_bg.jpg);
    background-repeat: repeat;
    background-size: contain;
    font-family: "Yu Mincho", "游明朝体", serif;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .sp-only {
        display: none;
    }
}

.tokubetsu-sidebar {
    position: fixed;
    /* ← これが固定の鍵 */
    top: 30%;
    left: 0;
    width: 100px;
    /* お好みで */
    background: #f3f3f3;
    overflow-y: auto;
    /* 内容が長いときスクロール */
    padding: 10px;
}

.sidebar-ttl {
    margin-bottom: 16px;
}

.sidebar-item {
    margin-bottom: 10px;
    display: block;
    text-align: left;
    line-height: 1.2;
    font-size: .9em;
}

.sidebar-item::after {
    margin-top: 10px;
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background-color: #9a6c27;
}

.sidebar-ttl,
.sidebar-ttl img {
    width: 100%;
}

.contents-wrap {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contents {
    width: 80%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.title {
    width: 99%;
    background-image: url(../img/tokubetsu/tokubetsu_goennen_title01.webp);
    background-size: contain;
    background-repeat: no-repeat;
    aspect-ratio: 2981/388;
}

.tokubetsu-intro {
    line-height: 2.2;
    margin-bottom: 60px;
}

#slide {
    scroll-margin-top: 150px;
}

.slide-contents {
    background-color: #fff;
    border: #9a6c27 solid 3px;
    padding: 16px;
}

.gyouji {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.gyouji-day {
    width: 20%;
    max-width: 70px;
    aspect-ratio: 1/1;
    background-color: #af3b1f;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2em;
}

.gyouji-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.gyouji-info-title {
    font-size: 1.5em;
    color: #af3b1f;
    font-weight: bold;
}

.gyouji-info-imp {
    font-size: 1.2em;
}

.gyouji-info-text {
    margin-top: 16px;
}

.gyouji-hr {
    margin: 16px 0;
    width: 100%;
    height: 2px;
    background-color: #9a6c27;
}

.gyouji-subtitle {
    font-size: 1.2em;
    color: #af3b1f;
    text-align: center;
    margin-bottom: 16px;
    font-weight: bold;
}

.gyouji-exp-flex {
    display: flex;
    gap: 10px;
}

.gyouji-exp-img {
    width: calc(50% - 32px);
}

.gyouji-exp-cotent {
    width: 60%;
}

.gyouji-exp-img img {
    width: 100%;
}

.gyouji-midashi {
    color: #9a6c27;
    font-size: 1.2em;
    font-weight: bold;
}

.kuroshishi-img {
    margin: 0 auto;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.kuroshishi-img img {
    width: 150px;
}

.gyouji-yotei {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;

    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 1) 30%,
            rgba(255, 255, 255, 1) 70%,
            rgba(255, 255, 255, 0) 100%);
}

.gyouji-yotei-h2 {
    margin: 0 auto;
    margin-bottom: 40px;
    display: inline-flex;
    flex-direction: column;
    color: #af3b1f;
    font-size: 1.5em;
    font-weight: bold;
}

.gyouji-yotei-h2::after {
    content: "";
    background-image: url(../img/tokubetsu/tokubetsu_titile_deco.webp);
    background-size: contain;
    background-repeat: repeat-x;
    width: 100%;
    height: 7px;
}

.gyouji-yotei-item {
    margin-bottom: 32px;
}

.gyouji-yotei-item::after {
    content: "";
    display: block;
    margin-top: 16px;
    background-color: #9a6c27;
    width: 100%;
    height: 2px;
}

.gyouji-yotei-day {
    background-color: #af3b1f;
    color: #fff;
    padding: 5px 10px;
    margin: 5px 0;
    display: inline-block;
    font-size: 1.2em;
}

.gyouji-yotei-imp {
    font-size: 1.2em;
    font-weight: bold;
}

.gyouji-yotei-text {
    margin-top: 10px;
}




@media (max-width: 1024px) {
    .contents-wrap {
        /* align-items: flex-end; */
    }
}

@media (max-width: 768px) {
    .tokubetsu-sidebar {
        width: 65px;
    }

    .gyouji {
        flex-direction: column;
    }

    .gyouji-exp-flex {
        flex-direction: column;
    }

    .gyouji-exp-img {
        width: 100%;
        height: 350px;
    }

    .gyouji-exp-img img {
        width: 100%;
        height: calc(100% - 3em) ;
        object-fit: cover;
    }

    .gyouji-exp-cotent {
        width: 100%;
    }

}