/* =============================
   基本デザイン（スマホ含む）
============================= */

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
}

.container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.header img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  margin: 10px auto;
}

.content {
  position: relative;
}

.content img {
  width: 100%;
  height: auto;
  display: block;
}

/* 縦スクロール文字 */
.vertical-scroll {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 400px;
  overflow: hidden;
  height: 100px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.scroll-item {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scroll-up 9s linear infinite;
}

.scroll-item:nth-child(2) {
  animation-delay: 3s;
}

.scroll-item:nth-child(3) {
  animation-delay: 6s;
}

@keyframes scroll-up {
  0% { transform: translateY(100%); opacity: 0; }
  10% { transform: translateY(0); opacity: 1; }
  30% { transform: translateY(0); opacity: 1; }
  40% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(-100%); opacity: 0; }
}

    /* スマホ最適化 */
    @media screen and (max-width: 450px) {
      .vertical-scroll {
        max-width: 95%;
        font-size: 14px;
        height: 60px;
      }
      .scroll-item {
        height: 50px;
      }
    }

.sliding-text {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  padding: 10px;
}

.jyoho p,
.koshin p {
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
}

/* 写真ブロック */
.photo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.photo-item img {
  width: 90%;
  max-width: 400px;
  height: auto;
  border-radius: 6px;
}

.photo-item p {
  text-align: center;
  font-size: 14px;
  margin: 10px 0;
}

/* 更新情報 表 */
.koshin table {
  width: 400px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 14px;
}

.koshin th,
.koshin td {
  padding: 8px;
  vertical-align: top;
}

.koshin th {
  white-space: nowrap;
}

/* フッター */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.footer img {
  width: 140px;
  height: auto;
  margin: 8px;
}

/* スマホメニュー */
.show-popup-button {
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
}

.hamburger-icon span {
  height: 3px;
}

.popup {
  width: 80%;
  max-width: 300px;
  right: 10%;
}

/* =============================
   PC（800px以上）
============================= */

@media screen and (min-width: 800px) {

  .header img {
    max-width: 320px;
    margin: 20px auto;
  }

  .vertical-scroll {
    max-width: 500px;
    height: 100px;
    font-size: 18px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
  }

  .scroll-item {
    height: 100px;
    font-size: 16px;
  }

  .photo-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }

  .photo-item img {
    width: 300px;
    max-width: none;
  }

  .photo-item p {
    font-size: 14px;
  }

  .koshin table {
    width: 70%;
    font-size: 14px;
  }

  .koshin th,
  .koshin td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .footer {
    padding: 40px;
    font-size: 14px;
  }

  .footer img {
    width: 180px;
    margin-top: 20px;
  }

  .show-popup-button {
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
  }
}


/* =============================
   スマホ最適化（450px以下）
============================= */

@media screen and (max-width: 450px) {

  .vertical-scroll {
    max-width: 95%;
    font-size: 12px;
    height: 60px;
  }

  .scroll-item {
    height: 50px;
  }

  .photo-item img {
    width: 95%;
    max-width: 300px;
  }

  .photo-item p {
    font-size: 10px;
    line-height: 1.4;
    margin: 6px 0;
  }

  .jyoho p {
    font-size: 14px;
    margin-top: 10px;
  }

  .koshin p {
    font-size: 12px;
    margin-top: 10px;
  }

  .koshin table {
    width: 95%;
    font-size: 12px;
  }

  .koshin th,
  .koshin td {
    padding: 6px 4px;
  }

  .koshin th {
    font-size: 12px;
    white-space: nowrap;
  }

  /* テーブル最適化 */
  .koshin table {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
  }

  .koshin th {
    width: 70px;
  }
}
