/* styles.css */

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    position: relative;  /* ポジショニングの基準となる */
    background-color: #9B2B28;
}

.container {
    width: 90vw;
    background-color: #ffffff;
    background-color: #9B2B28;
    margin: 0 auto;
    padding-top: 30px;
}

.start h1 {
    color:#CF9B20;
    margin: 50px 0;
}

.result h2 {
    color: #fff;
}

.start img {
    width: 100%;
    display: block;
    margin: 0 auto;
    padding-top: 30px;
}

.result img {
    padding-bottom: 30px;
}

.start p {
    margin-bottom: 50px;
    color: #FFF;
    font-size: 16px;
    font-weight: 700;
    line-height: 36px;
}

h1, h2 {
    text-align: center;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 30px 0;
    background-color: #ffe7c8;
    color: #592F23;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn {
    border-radius: 50px;
    padding: 21px;
    background-color: #592F23;
    box-shadow: 0px 4px 9px 5px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    color: #FFE7CB;
    font-size: 21px;
    font-weight: 700;
}

.hidden {
    display: none;
}

/* ローディング画面のスタイル */
#loadingScreen {
    position: fixed;  /* フィックスされたポジション */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;  /* ビューポートの高さ */
    background-color: #9B2B28;  /* 半透明の背景 */
    z-index: 1000;  /* 他の要素の前面に配置 */
    display: flex;
    justify-content: center;  /* 水平方向の中央揃え */
    align-items: center;  /* 垂直方向の中央揃え */
}

#loadingScreen img {
    width: 40%;
    animation: spin 1s linear infinite;  /* 回転アニメーション */
}

/* 回転アニメーションのキーフレーム */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ボタン押すページ */

.imageButton {
    width: 80%;
    margin: 50px auto;
    padding: 40px 0;
    font-size: 24px;
    font-weight: bold;
}

/* 混雑状況を表示するページ */

#displayImage {
    width: 90%;
    margin: auto;
}

/* ヘッダーメニュー */

.header {
  background-color: #ffe7c8;
  width: 100%;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}


@media screen and (min-width: 960px) {
  .header {
    height: 80px;

  }
}


.header__inner {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: inherit;
  position: relative;
}


/* ヘッダーのロゴ部分 */
.header__title {
    width: 80px;
  }
  
  
  .header__title:hover {
    opacity: 0.8;
  }
  
  
  @media screen and (min-width: 960px) {
    .header__title {
      width: 140px;
    }
  }
  
  .header__title img {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  /* ヘッダーのナビ部分 */
  
  .header__nav {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    background-color: #fff;
    transition: ease .4s;
  
    display: flex;
  }
  
  
  @media screen and (min-width: 960px) {
    .header__nav {
      position: static;
      transform: initial;
      background-color: inherit;
      height: inherit;
      display: flex;
      justify-content: end;
      width: 40%;
    }
  }
  
  
  .nav__items {
    margin: auto;
  }
  
  @media screen and (min-width: 960px) {
    .nav__items {
      margin: initial;
      width: 100%;
      display: flex;
      align-items: center;
      height: initial;
      justify-content: space-between;
    }
  }
  
  
  .nav-items__item {
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
  
  }
  
  @media screen and (min-width: 960px) {
  
    .nav-items__item:before {
      position: absolute;
      content: "";
      bottom: -1px;
      left: 0;
      width: 100%;
      height: 2px;
      background: orange;
      opacity: 0;
  
    }
  
    .nav-items__item:hover:before {
      opacity: 1;
    }
  
  }
  
  
  
  /* ナビのリンク */
  .nav-items__item a {
    color: black;
    width: 100%;
    display: block;
    text-align: center;
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .nav-items__item:last-child a {
    margin-bottom: 0;
  }
  
  @media screen and (min-width: 960px) {
    .nav-items__item a {
      margin-bottom: 0;
      font-size: 18px;
    }
  }
  
  
  /* ハンバーガーメニュー */
  .header__hamburger {
    width: 48px;
    height: 100%;
  }
  
  .hamburger {
    background-color: transparent;
    border-color: transparent;
    z-index: 9999;
    cursor: pointer;
  }
  
  @media screen and (min-width: 960px) {
    .hamburger {
      display: none;
    }
  }
  
  
  /* ハンバーガーメニューの線 */
  .hamburger span {
    width: 100%;
    height: 1px;
    background-color: #1a3643;
    position: relative;
    transition: ease .4s;
    display: block;
  }
  
  .hamburger span:nth-child(1) {
    top: 0;
  }
  
  .hamburger span:nth-child(2) {
    margin: 8px 0;
  }
  
  
  .hamburger span:nth-child(3) {
    top: 0;
  }
  
  
  /* ハンバーガーメニュークリック後のスタイル */
  .header__nav.active {
    transform: translateX(0);
  }
  
  .hamburger.active span:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
  }
  
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  
  .hamburger.active span:nth-child(3) {
    top: -13px;
    transform: rotate(-45deg);
  }


  .index-h2 {
    margin-bottom: 30px;
    color:#fff;
  }

  .index-p {
    color: #fff;
    line-height: 30px;
    padding-bottom: 30px;
  }