* {
    box-sizing: border-box;
}
html {
    height: 100%;
    width: 100%;
}
body {
    position: relative;
    height: 100%;
    width: 100%;

    margin: 0;
    padding: 0;
    font-family: 'Kaisei Decol', serif;
}

/*#backgroundimg {
    position: fixed;
    z-index: 1;

    width: 100%;
    opacity: 0.3;
}*/
 
/*------------------------------------------------------------*/

.popup {
    width: 100%;
    height: 100%;

    position: absolute;
    z-index: 99;

    background-color: white;
}
    #popup-title{
        text-align: center;
        position: absolute;
        z-index: 100;

        top: 40%;
        left: 50%;
        transform: translate(-50%,-50%);

        font-size: 60px;
        color: rgb(39, 37, 37);
    }

/*-------------------------------------------------------------*/

header {
    z-index: 3;

    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);

    position: fixed;
    display: flex;
    justify-content: start;
}
    header>p {
        color: white;
        font-size: 30px;
        margin: 0px;
        margin: 5px 10px 5px 40px;
    }
    header>nav>a {
        color: white;
        display: inline-block;
        margin: 15px 20px;
        text-align: center;
    }

/*-------------------------------------------------------------*/

.content {
    position: absolute;
    z-index: 2;

    display: flex;
    justify-content: center;
    flex-direction: column;

    background-color: rgb(255, 248, 239);
}
#shinjinimg {
    display: none;
    width: 100%;
    margin: auto;
}

/*-------------------------------------------------------------*/

.zentai {
    margin: 30px;

    text-align: center;
    padding: 20px;
}
.zentai_title {
    font-size: 30px;
}
.schedule {
    font-size: 20px;
}

/*-------------------------------------------------------------*/

.story{
    color: #696969;
    margin: 2em 0;
    font-weight: bold;
    border: solid 1px rgb(255, 248, 239);
    padding: 0.3em 1em 2em 1em;
    box-shadow:2px 2px 0 rgba(0,0,0,.1);
}
 .story_content{
    background-image: linear-gradient(90deg, rgba(237, 119, 128, 0) 0%, rgba(237, 119, 128, 0) 50%, rgb(255, 248, 239) 0%, rgb(255, 248, 239) 100%), linear-gradient(180deg, rgba(100, 100, 100, 0) 0%, rgba(100, 100, 100, 0) 97.5%, #646464 100%);
    background-size: 8px 100%,100% 2em;
    line-height: 2em;
    padding: 2em 1em 0.2em 1em;
}
.story_detail {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;

    margin: 30px;
}
.story_detail img {
    width: 40%;
    height: auto;
    max-height: 600px;
    flex-shrink: 0;
    object-fit: contain;
}

.story_content {
    flex: 1;
    background-image: linear-gradient(90deg, rgba(237, 119, 128, 0) 0%, rgba(237, 119, 128, 0) 50%, rgb(255, 248, 239) 0%, rgb(255, 248, 239) 100%), linear-gradient(180deg, rgba(100, 100, 100, 0) 0%, rgba(100, 100, 100, 0) 97.5%, #646464 100%);
    background-size: 8px 100%,100% 2em;
    line-height: 2em;
    padding: 2em 1em 0.2em 1em;
}
.story_title {
    font-size: 50px;
    margin-bottom: 10px;
}
.detail {
    margin-left: 30px;
}
/*-------------------------------------------------------------*/

.staff {
    text-align: center;
}
.staff span {
    font-size: 15px;
}
.staff p {
    font-size: 23px;
}
.kyakuhon {
    margin-bottom: 3em;
}

.footer04 {
    color: #808080;
    text-align: center;
    padding: 30px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .story_detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .story_detail img {
        width: 80%;
        max-width: 300px;
        margin-bottom: 20px;
    }
    
    .detail {
        margin-left: 0;
        width: 100%;
    }
    
    .story_title {
        font-size: 36px;
    }
    
    .story_content {
        font-size: 14px;
        line-height: 1.6em;
    }
}

.sub {
    margin-top: 40px;
    margin-left: 15%;
    margin-bottom: 40px;
    font-size: 15px;
}