body {
    background: linear-gradient(#4a4d57 0%, #8c8e96 100%);
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;

    position: relative;
}

p {
    color: #ffffff;
    z-index: 2;
}
a{
    color: #ffffff;
}


/*lottie位置*/
#rainy {
    overflow: hidden;
}

.lotties {
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.lotties lottie-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*lottie表示/非表示*/
.anim {
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s;
    /*フェードイン・アウト*/
    visibility: hidden;
}

.anim.is-visible {
    opacity: 1;
    visibility: visible;
}

.wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.titletext {
    font-family: "Roboto Mono", monospace;
    font-size: 20pt;

    position: absolute;
    margin: 0;

    top: 1vh;
    left: 1vw;
}

/*スライダー*/
.controls {
    text-align: center;

    position: absolute;
    width: 30%;
    height: auto;
    top: 15vh;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 9;
}

#speed-slider {
    flex-grow: 1;
    width: 100%;

    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
}

/*スライダーの細かい設定*/
/*溝の設定*/
#speed-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 12px;           /*太さ*/
    background: #444;     /*溝の色*/
    border-radius:6px;      /*角丸*/
    border: none;           /*縁を消す*/
}

/*つまみの設定*/
#speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none; 
    appearance: none;
    width: 22px;
    height: 22px;        
    background: #ffffff;    /*つまみの色*/
    border-radius: 50%;         /*形(50%で正円)*/
    border: none;               /*縁を消す*/
    margin-top: -5px;           /*溝の中央に配置*/
    cursor: pointer;
}
/*スライダーのテキスト*/
.valuetext{
    margin-bottom: 10px;

    font-family: "Roboto Mono", monospace;
    font-size: 30pt;
    color: #ffffff;
}
/*最初の説明用テキスト*/

.tutorialtext{
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12pt;
    /*hiddenが付いたら消える*/
    transition: opacity 0.5s ease;
}
.hidden{
    opacity: 0;
    pointer-events: none;
}

/*キャラクターとその子要素*/
.umbrerra {
    /*位置*/
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

#chara-image {
    /*大きさ*/
    width: auto;
    height: 45vh;
}

.objects{
    position: relative;
    width: 100vw;
    height: 100vh;
}
@media screen and (max-width: 768px) {
  .objects {
    display: none;
  }
}
/*車*/
.car{
    position: absolute;
    bottom: 23%;
    right: 0;
    transform: translate(0%, 0%);
    z-index: 2;
}
.carlayer{
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    height: 60vh;

    opacity: 0;
}

/*街灯*/

.light{
    position: absolute;
    bottom: 23%;
    left: 0;
    transform: translate(0%, 0%);
    z-index: 2;
}
.lightlayer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: auto;
    height: 65vh;

    opacity: 0;
}

.carlayer.visible, 
.lightlayer.visible {
    opacity: 1;
    display: block !important;
}


/*地面*/
.ground {
    position: absolute;
    width: 100vw;
    height: 100%;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: 2;

    background-image: url("img/ground_0.webp");
    background-repeat: repeat-x;
    background-size: 1200px auto;
    background-position: left bottom;
}

/*背景*/
.bg{
    position: absolute;
    width: 100vw;
    height: 100%;
    bottom: 0;

    z-index: 0;
}
.bglayer{
    opacity: 0;

    position: absolute;
    left: 50%;
    width: 1100px;
    height: auto;
    transform: translate(-50%, 0%);
}
.bglayer.visible {
    opacity: 0.5;
}

/*解説*/
.comment {
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12pt;

    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translate(-50%, 0%);
}

/*about*/
.aboutbutton{
    background: none;
    border: none;

    cursor: pointer;

    position: absolute;
    top: 1vh;
    right: 1vw;
    width: 2.5vw;
    height: auto;

    z-index: 11;
}
.about{
    position: absolute;
    width: 40vw;
    height: 50vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 1%;

    background-color: #000000;
    z-index: 10;
}
.abouttext{
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12pt;
    color: #ffffff;

    padding: 30px;
}
.aboutbg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;

    /*hiddenが付いたら消える*/
    transition: opacity 0.5s ease;
}
.abouttext h1{
    font-size: 20pt;
}

/*sound*/
.soundbutton{
    background: none;
    border: none;

    cursor: pointer;

    position: absolute;
    top: 1vh;
    right: 4vw;
    width: 2.5vw;
    height: auto;

    z-index: 9;
}

/*fog*/
.fog{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;

    opacity: 0;
    z-index: 4;
}