@charset "UTF-8";

/* ↓ 色とテキストの定義 ------------------------*/
html {
    scroll-behavior: smooth;
    overflow: hidden;
    font-size: 14px;
}

@media screen and (min-width: 1400px) {
    html {
        font-size: 15px;
    }
}

@media screen and (min-width: 1600px) {
    html {
        font-size: 16px;
    }
}

@media screen and (max-width: 540px) {
    html {
        font-size: 3.3vw;
        /*1L30文字*/
    }
}

body {
    color: #333;
    letter-spacing: 0.1rem;
    line-height: 1.2;
    -webkit-font-feature-settings: "palt";
    font-feature-settings: "palt";
    font-family: "Roboto", "Noto Sans JP", sans-serif;
    font-weight: 400;
    position: relative;
}

a {
    color: #5ebced;
    text-decoration: none;
}

/* ↓ セクション ｜ セクション名 ------------------------*/

.wrapper {
    width: 100vw;
    height: 100dvh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 640px;
}

@media screen and (max-width: 540px) {
  .wrapper{
     flex-direction: column;
     justify-content: center;
  }
}

.parking-name-set{
    position: absolute;
    top: 2.5%;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    background: white;
    border: 1px solid;
    font-size: 3rem;
    font-weight: bold;
    padding: 0.3rem 1.2rem;
    
    width: max-content; 
    box-sizing: border-box;
}

@media screen and (max-width: 1000px) {
  .parking-name-set{
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 800px) {
  .parking-name-set{
    max-width: 90%; 
    text-align: center;
  }
}

@media screen and (max-width: 540px) {
  .parking-name-set{
    width: 85%; 
    font-size: 1.5rem;
    text-align: center;
    top: 2rem;
  }
}

/* .left-block */
.left-block{
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.state-red{
  background: red;
  text-align: center;
  color: white;
}

.state-yellow{
  background: yellow;
  text-align: center;
  color: black;
}
.state-green{
  background: greenyellow;
  text-align: center;
  color: black;
}
.state-stopping-camera{
  background: dimgray;
  text-align: center;
  color: white;
}

.parking-state{
  font-size: 7vw;
  margin: 6rem 0;
}

.alert{
  font-size: 2.5vw;
  margin: 6rem 0;
  text-align: start;
}

.ruby{
  font-size: 1.5vw;
}

@media screen and (max-width: 1200px) {
  .parking-state{
    margin: 5rem 0;
  }
  
  .alert{
    margin: 5rem 0;
    text-align: start;
  }
}

@media screen and (max-width: 800px) {
  .parking-state{
    margin: 3.5rem 0;
  }
  
  .alert{
    margin: 3.5rem 0;
    text-align: start;
  }
}

@media screen and (max-width: 540px) {
  .left-block{
    width: 100%;
    height: 50vh;
  }

  .parking-state{
    font-size: 3rem;
    margin: 2.5rem 0;
  }
  
  .alert{
    font-size: 1.5rem;
    margin: 2.5rem 0;
    text-align: start;
  }

  .ruby{
    font-size: 1rem;
  }
}

/* .right-block */
.right-block{
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crowded-state{
  font-size: 3vw;
  font-weight: bold;
}

.count-display{
  text-align: center;
}

.count-percent{
  font-size: 8vw;
  letter-spacing: 1.2rem;
}

.car-icon-wrapper{
  display: flex;
  justify-content: center;
}

.car-icon{
  height: 8rem;
}

@media screen and (max-width: 1200px) {
  .car-icon{
    height: 7rem;
  }
}

@media screen and (max-width: 800px) {
  .count-percent{
    font-size: 7.5vw;
    letter-spacing: 1.0rem;
  }

  .car-icon{
    height: 5rem;
  }
}

@media screen and (max-width: 540px) {
  .right-block{
    width: 100%;
    height: 50vh;
  }

  .crowded-state{
    font-size: 2rem;
  }

  .count-percent{
    letter-spacing: 0.5rem;
  }
}
