html {
    scroll-behavior: smooth;
}

@media screen and (min-width: 721px) {
    html {
        font-size: 75%;
    }
}
@media screen and (max-width: 720px) {
    html {
        font-size: 62.5%;
    }
}
    
body {
    margin: 0;
    font-size: 1.6rem;
    font-family: serif;
    color: white;
    background-color: gray;
    background-image: url(../img/background.jpg);
    background-size: cover;
    font-family: "Yuji Syuku", serif;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'font';
    src: url(../font/HOT-Soshokk-R.otf) format("opentype");
  }

#load {
    position: fixed;
    z-index: 10;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: gray;
}
@keyframes loading-animation {
    0% {
        scale: 0.5;
        opacity: 1;
    }
    50% {
        scale: 1;
        opacity: 0.5;
    }
    100% {
        scale: 0.5;
        opacity: 1;
    }
}
#load-symbol {
    z-index: 100;
    position: fixed;
    display: block;
    width: 100px;
    height: 100px;
    top: 0;
    top: calc(50% - 50px);
    left: calc(50% - 50px); 
    background-color: black;
    border-radius: 50px;
    animation-name: loading-animation;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
#load-symbol.fadeOut {
    animation: none !important;
    transition: 0.3s;
    opacity: 0; 
    z-index: -1 !important;
}
#load.fadeOut {
    animation: none !important;
    transition: 0.3s;
    opacity: 0; 
    z-index: -1 !important;
}
.loaded {
    animation: none !important;
    transition: 0.5s;
    opacity: 0; 
    z-index: -1 !important;
}


/*メニュー関連のcss*/
#top-menu li {
    list-style: none;
    padding-left: none;
}

#top-menu_desk {
    display: none;
}

#top-menu a {
    color: white;
    text-decoration: none;
}

@media screen and (min-width: 721px) {
    #top-menu {
        display: none;
    }
    #btn {
       display: none;
    }
    /*---------------------------------*/
    summary {
        display: block;
        height: 7vh;
        cursor: pointer;
        list-style: none;
    }
    summary::-webkit-details-marker {
        display: none;
    }
    #top-menu_desk {
        cursor: pointer;
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-left: 0;
        margin-top: 0;
        background-color: black;
    }
    #top-menu_desk ul {
        margin-top: 0;
        padding-left: 0;
        z-index: 5;
        width: 100%;
        position: absolute;
        background-color: rgb(89, 89, 89);
        text-align: center;
    }
    #top-menu_desk a {
        text-decoration: none;
        color: white;
    }
    #top-menu_desk li {
        transition: 0.5s;
        height: 0vh;
        text-decoration: none;
        color: white;
        line-height: 7vh;
        border-bottom: 5px black double;
    }
    #top-menu_desk li:hover {
        background: linear-gradient(90deg,rgb(89, 89, 89) 0%, rgb(40, 40, 40) 50%, rgb(89, 89, 89) 100%)
    }
    #top-menu_desk li.moved {
        transition: 0.3s;
        transition-timing-function: ease-in-out;
        height: 7vh;
    }
    summary::after{
        position: absolute;
        width: 15px;
        height: 15px;
        top: calc(50% - 10px);
        right: 25px;
        border-right: 4px solid #ffffff;
        border-bottom: 4px solid #ffffff;
        box-sizing: border-box;
        content: "";
        transform: rotate(45deg);
        transition: top 0.4s ease-out, transform 0.4s ease-out;
        /*https://www.otsuka-bs.co.jp/web-creation/blog/archive/20230127-10.html*/
    }
    details[open] summary::after{
        top: calc(50% - 5px);
        transform: rotate(-135deg);
    }
}

@media screen and (max-width: 720px) {
    #cover {
        transition: 0.5s;
        display: none;
        opacity: 0;
        z-index: 2;
        position: fixed;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(0, 0, 0);
    }
    #btn {
        position: fixed;
        top: 30px;
        right: 30px;
        width: 40px;
        height: 30px;
        z-index: 5;
    }
    .line {
        transition: 0.5s;
        z-index: 2;
        position: fixed;
        top: 30px;
        right: 30px;
        width: 40px;
        height: 4px;
        background-color: white;
    }
    #pos2 {
        top: 44px;
    }
    #pos3 {
        top: 58px;
    }
    #top-menu {
        opacity: 0;
        z-index: 2;
        display: none;
        position: fixed;
        top: 0;
        margin-left: auto;
        margin-right: auto;
    }
    #top-menu a {
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
    }
    #top-menu a:hover {
        background: linear-gradient(30deg, rgb(101, 0, 0) 0%, rgb(137, 0, 0) 50%, rgb(104, 0, 0) 100%);
    }  
    #top-menu ul {
        width: 100%;
        margin-top: 0;
        padding: 0;
        display: flex;  
    }
    #top-menu li {
        font-size: 2.5rem;
        width: 20vw;
        height: 100vh;
        writing-mode: vertical-lr;
        line-height: 20vw;
        text-align: center;
    }
    /*---アニメーション---*/
    #pos1.clicked2 {
        top: 44px;
        transform: rotate(45deg);
        transition: 0.3s;
    }
    #pos2.clicked2 {
        transition: 0.3s;
        opacity: 0;
    }
    #pos3.clicked2 {
        top: 44px;
        transform: rotate(-45deg);
        transition: 0.3s;
    }   
    #top-menu.clicked {
        display: block;
        opacity: 1;
    }
    #cover.clicked {
        display: block;
        opacity: 0.7;
    }
}
/*-----*/
#title {
    max-width: 600px;
    margin-top: 5vh;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10vh;
    writing-mode: vertical-rl;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    opacity: 1;
}
.fadeIn {
    transition: 1s;
    opacity: 1;
}

p {
    display: block;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 17vh;
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
}

.news {
    display: block;
    margin: 0 auto;
    margin-top: 15vh;
    margin-bottom: 10vh;
    font-size: 1.8rem;
    width: 100vw;
    height: 3.5rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgb(0, 0, 0) 50%, rgba(255, 255, 255, 0) 100%);
    text-align: center;
}
.news a {
    color: white;
}
/*ーーーーーー戻るボタン-------*/
#backbtn {
    transition: 0.5s;
    z-index: 1;
    position: fixed;
    width: 6rem;
    height: 6rem;
    right: 30px;
    bottom: 30px;
    background-color: gray;
    border-radius: 25px;
    border: 3px black double;
}
#backbtn::before {
    transition: 0.5s;
    content: '';
    position: absolute;
    width: 2rem;
    height: 2rem;
    border-left: 3px black double;
    border-top: 3px black double;
    left: 2rem;
    top: 2.6rem;
    transform: rotate(45deg);
}
#backbtn:hover  {
    transition: 0.5s;
    background-color: rgb(0, 0, 0);
    border-radius: 25px;
    border: 3px rgb(255, 255, 255) double;
}
#backbtn:hover::before {
    transition: 0.5s;
    top: 2.3rem;
    border-left: 3px rgb(255, 255, 255) double;
    border-top: 3px rgb(255, 255, 255) double;
}
/*------------------------------*/
.det {
    position: relative;
    display: inline-block;
    margin-top: 2vh;
    color: white;
}
.det::before {
    position: absolute;
    content: '';
    width: 10px;
    height: 10px;
    border: 0;
    border-bottom: solid 3px white;
    border-right: solid 3px white;
    transform: rotate(-45deg);
    bottom: 5px;
    left: -23px;
}
.det:hover::before {
    transition: 0.5s;
    left: -18px;
}
.time::before {
    writing-mode: vertical-rl;
    position: absolute;
    content: '日時';
    top: -3rem;
    right: 0.5rem;
    font-size: 2rem;
}

.place::before {
    writing-mode: vertical-rl;
    position: absolute;
    content: '場所';
    top: -3rem;
    right: 0.5rem;
    font-size: 2rem;
}

.fee::before {
    writing-mode: vertical-rl;
    position: absolute;
    content: '料金';
    top: -3rem;
    right: 0.5rem;
    font-size: 2rem;
}

.cast::before {
    writing-mode: vertical-rl;
    position: absolute;
    content: 'キャスト';
    top: -3rem;
    right: 0.5rem;
    font-size: 2rem;
}

.staff::before {
    writing-mode: vertical-rl;
    position: absolute;
    content: 'スタッフ';
    top: -3rem;
    right: 0.5rem;
    font-size: 2rem;
}

.about::before {
    writing-mode: vertical-rl;
    position: absolute;
    content: '劇団紹介';
    top: -3rem;
    right: 0.5rem;
    font-size: 2rem;
}

.contact::before {
    writing-mode: vertical-rl;
    position: absolute;
    content: 'お問い合わせ';
    top: -3rem;
    right: 0.5rem;
    font-size: 2rem;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(28, 28, 28);
    border-top: 1px solid;
    height: 120px;
}

/*---クレジットのcss---*/
.credit {
    display: flex;
}
.list {
    display: block; 
    width: 40%; 
    text-align: right; 
    float: left; 
    margin-right: 10%;
    word-break: keep-all;
}
.name {
    display: block; 
    width: 50%; 
    text-align: left;
    word-break: keep-all;
}
/*------フェードインのCSS--------*/

.underline {
    opacity: 0;
    padding-right: 40%;
    transition: 1s;
}
.underline::before {
    border-left: 2px solid;
    text-align: left;
    height: 13rem;
    transition: 0.5s;
 }

.underline.active {
    transition: 1s;
    opacity: 1;
    padding-right: 10%;
}

/*-------ロゴのCSS-------*/
.logo_box {
  margin-top: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
}
.logo {
    width: 2rem;
}

/*----------------------*/
.sentence_box {
    display: flex;
    justify-content: center;
}

#copy.loaded2 {
    opacity: 1;
    transition: 0.5s;
}

#copy {
    opacity: 0 ;
    position: fixed;
    margin: 0 auto;
    left: calc(50% - 35px) ;
    top: calc(50% - 260px) ;
    color: red;
    z-index: 30;
    font-size: 3.5rem;
    writing-mode: vertical-rl;
    height: 120rem;
    animation: horizontal 2s ease-in;
    animation-iteration-count: (1);
    /*animation-fill-mode: forwards;*/
    user-select: none;
}


@keyframes horizontal {
    0% { 
        opacity: 0;
    }
    50% { 
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
 }

 /*----------------*/
 .shinigami {
    position: relative;
    font-size: 25rem;
    font-family: "font", sans-serif;
    white-space: nowrap;
 }

 .shinigami::before {
    position: absolute;
    z-index:-1;
    left: -60px;
    bottom: -60px;
    content: '死神';
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #9b1414;
    opacity: 0.8;
 }
 /**/
 @media screen and (max-width: 720px) {
    .map {
        display: none;
    }
 }
 @media screen and (min-width: 721px) {
    
 .map {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0;
 }
 }

 /*--------------*/
 .wait {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 180px;
    font-size: 2.5rem;
    text-align: center;
    writing-mode: vertical-rl;
    line-height: 100vw;
 }

 .namename {
    position: relative;
    width: 150px;
    margin: 0 auto;
    margin-top: 5vh;
    font-size: 2.5rem;
 }
 #cloth::before {
    position: absolute;
    display: block;
    content:'衣装';
    font-size: 7rem;
    top: -100px;
    left: 50px;
 }
 #sound::before {
    position: absolute;
    display: block;
    content:'音響';
    font-size: 7rem;
    top: -100px;
    left: 50px;
 }
 #movie::before {
    position: absolute;
    display: block;
    content:'映像';
    font-size: 7rem;
    top: -100px;
    left: 50px;
 }
 #light::before {
    position: absolute;
    display: block;
    content:'照明';
    font-size: 7rem;
    top: -100px;
    left: 50px;
 }
 #item::before {
    position: absolute;
    display: block;
    content:'小道具';
    font-size: 7rem;
    top: -100px;
    left: 50px;
 }
 #pro::before {
    position: absolute;
    display: block;
    content:'制作';
    font-size: 7rem;
    top: -100px;
    left: 50px;
 }
 #actor::before {
    position: absolute;
    display: block;
    content:'役者';
    font-size: 7rem;
    top: -100px;
    left: 50px;
 }
 img.magemage {
    width: 80vw;
    margin-top: 3vh;
    margin-bottom: 10vh;
 }
 img.magemage2 {
    width: 50vw;
    margin-top: 3vh;
    margin-bottom: 10vh;
 }
 .caption {
    display: block;
    text-align: center;
 }

 #place2 {
    margin-bottom: 5vh;
 }
 #place2::before {
    position: absolute;
    display: block;
    content:'場所';
    font-size: 7rem;
    top: -100px;
    left: 50px;
 }
 .left {
    text-align: left;
 }

 /*---役者画像---*/
 #actor1, #actor2, #actor3, #actor4 {
    display: block;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6rem;;
    width: 20rem;
    height: 25rem;
    border: 2px solid black;
    background-color: rgba(128, 128, 128, 0.603);
    background-repeat:  no-repeat;
    background-size: contain;

 }

 #actor1 {
    background-image: url(../img/otoko.JPG)
 }
 #actor2 {
    background-image: url(../img/shinigami.JPG)
 }
 #actor3 {
    background-image: url(../img/onnna.JPG)
 }
 #actor4 {
    background-image: url(../img/hanashika.JPG)
 }
 
 #botnam1, #botnam2, #botnam3, #botnam4 {
    position: absolute;
    width: 20rem;
    font-size: 2.5rem;
    text-align: center;
    bottom: -3.5rem;
    left: 0;
 }
 #column1, #column2 {
    margin: 0 auto;
    max-width: 600px;
 }

 @media screen and (min-width: 720px) {
    #column1 {
        display: flex;
    }
    #column2 {
        display: flex;
    }
 }

 #pv::before {
    position: absolute;
    display: block;
    content:'稽古場動画';
    font-size: 5rem;
    top: -100px;
    left: 50px;
 }
 #pv2::before {
    position: absolute;
    display: block;
    content:'冒頭音声';
    font-size: 5rem;
    top: -100px;
    left: 50px;
 }
 #pv3::before {
    position: absolute;
    display: block;
    content:'道案内';
    font-size: 5rem;
    top: -100px;
    left: 50px;
 }
 #pv-menu {
    display: block;
    margin: 0 auto;
    width: 80vw;
    max-width: 600px;
 }

 /*---------*/
 /*
 #amazing {
    z-index: 5;
    width: 100px;
    height: 100px;
    margin: 10vh auto;
    background-image: url(../img/hanashika.JPG);
    background-repeat: no-repeat;
    background-size: contain;
 }

 #amazing.ch2 {
    transition: 1s;
    background-image: url(../img/logo-white.png);
 }
    */

#end::before {
    position: absolute;
    display: block;
    content:'終演';
    font-size: 5rem;
    top: -100px;
    left: 50px;
 }

 #end {
    margin-top: 15vh;
    margin-bottom: 15vh;
 }