HTML CSS JSResult Skip Results Iframe EDIT ON h2 {
  padding: 50px 0 0;
}

/* plan.html 用の特定のスタイル */
.header-container {
  background-color: rgba(115, 2, 2, 0.884);
  /* 初期状態の背景色を不透過に */
}

/* gallery.html専用のセクションタイトルとサブタイトルのスタイル */
.gallery-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  letter-spacing: 0.1em;
  color: #730202;
  text-align: center;
  margin: 100px 0 10px 0;
  text-transform: uppercase;
}

.gallery-section-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #730202;
  text-align: center;
  font-weight: bold;
  margin-top: -10px;
  margin-bottom: 60px;
  text-transform: none;
}

/*==================================================
ギャラリーのためのcss
===================================*/
.gallery {
  display: flex;
  flex-wrap: wrap;
  padding: 0 10px;
  list-style: none;
  margin: 0;
}

.gallery li {
  margin: 5px;
  flex: 1 0 21%;
  /* 4列表示のため、各アイテムは幅の21%を占める */
  box-sizing: border-box;
}

/* ギャラリー内のイメージは固定サイズで表示し、縦横比を維持しながらカバー */
.gallery img {
  width: 100%;
  height: 150px;
  /* 任意の固定高さ */
  object-fit: cover;
  vertical-align: bottom;
}

/* 横幅900px以下の段組み設定 */
@media only screen and (max-width: 900px) {
  .gallery li {
    flex: 1 0 46%;
    /* 2列表示のため、各アイテムは幅の46%を占める */
  }
}

/* 横幅768px以下の段組み設定 */
@media only screen and (max-width: 768px) {
  .gallery li {
    flex: 1 0 100%;
    /* 1列表示のため、各アイテムは幅の100%を占める */
  }
}

/* 360度カメラのスタイル調整 */
.gallery-iframe-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0;
}

.gallery-iframe-container iframe {
  width: 100%;
  height: 450px;
  /* 高さを調整 */
  border: none;
  /* ボーダーを消去 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .gallery-iframe-container iframe {
    height: 300px;
    /* スマホ・タブレット用の高さを調整 */
  }
}

/*========= レイアウトのためのCSS ===============*/

/* 画像を出現させるアニメーションCSS */
.flipLeft {
  animation-name: flipLeft;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  perspective-origin: left center;
  opacity: 0;
}

@keyframes flipLeft {
  from {
    transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
    opacity: 0;
  }

  to {
    transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
    opacity: 1;
  }
}