/* メイン処理 */
body {
  background-image:
    url('images/bus10_200px.png'),               /* タイル画像 */
    linear-gradient(to bottom, #ffd700, #ffe866, #ffd700); /* 下地グラデーション */

  background-repeat: repeat, repeat;
  background-position: top left, top left;
  background-size: auto, auto;
  overflow-x: hidden;
}


/*タイトル文字*/
.sub-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0 !important;
  color: #222;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 13%; /* テキストboxの左右の空き */
  font-family: "BIZ UDPGothic", sans-serif;
}

/* タイトル下本文 */
.sub-text p {
  font-size: 16px; 
  font-weight: normal;
  line-height: 1.8;
  text-align: justify;
  padding: 0 13%; /* テキストboxの左右の空き */
  font-family: "BIZ UDPGothic", sans-serif;
}

/* メイン処理 */
.site-header {
  position: relative;
  width: 100%;
  height: auto;
  padding: 20px 0;
  overflow: hidden;
  text-align: center;
}


/* ヘッダー背景画像 */
.header-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* ソーシャル */
.header-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.title-image {
  width: 80%;
  max-width: 800px;
  height: auto;
  pointer-events: auto;
}

/* コントロールパネル */
.scroll-banner {
  width: 100%;
  height: 40px;
  overflow: hidden;
  background: none;
}

.scroll-track {
  display: flex;
  width: 200%;
  animation: scrollLoop 20s linear infinite;
}

.scroll-track img {
  height: 40px;
  flex-shrink: 0;
}

@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 動画セクション */
.video-section {
  margin: 20px 20px;
}

.video-text-block {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  gap: 40px;
  flex-wrap: wrap;
}

/* 動画セクションの見出し */
.video-text-block .text h3 {
  max-width: 400px;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.5;
  font-family: "BIZ UDPGothic", sans-serif;
  text-align: justify;
}

/* 動画セクションの本文 */
.video-text-block .text p {
  max-width: 400px;
  font-weight: normal;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  font-family: "BIZ UDPGothic", sans-serif;
}

.video-text-block video {
  width: 300px; /* 好きなサイズに調整 */
  height: auto;
  border-radius: 10px; /* 好みで */
  display: block;
  margin: 0 auto;
}

.video-link {
  display: inline-block;
}

.video-link video {
  width: 300px;
  height: auto;
  aspect-ratio: 9/16;
  object-fit: cover;
  background: #000;
  transition: opacity 0.3s ease;
  display: block;
}

.video-link:hover video {
  cursor: pointer;
  opacity: 0.8;
}

.video-text-block img {
  width: 100%;         /* コンテナにフィット（レスポンシブ） */
  max-width: 400px;    /* 最大幅を400pxに制限 */
  height: auto;        /* 縦横比を維持 */
  display: block;
}


/* YouTube動画のならび */
.scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 3px; /* 動画と動画の間に5pxのスペースを追加 */
  padding: 10px; /* 左右にも少し余白を追加（任意） */
}

.scroll-item {
  flex: 0 0 auto;
  width: 300px; /* ビューポート幅に合わせる場合は100vw */
  height: auto; /* ビューポート高さに合わせる */
  aspect-ratio: 16/9;
  object-fit: cover; /* 動画がコンテナに収まるように調整 */
  gap: 40px;
  scroll-snap-align: start;
  border-radius: 10px; /* オプション：角を少し丸める */
  margin-right: 10px;
}

.scroll-item iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px
}







/* Instagramリンク */
.insta-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-radius: 40px;
  transition: background 0.3s, transform 0.3s;
  min-width: 240px;
}

.insta-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(45deg, #bc1888, #cc2366, #dc2743, #e6683c, #f09433);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .title-image {
    width: 95%;
    max-width: none;
  }

  .sub-text h3 {
    text-align: center;
  }

  .sub-text {
    font-size: 20px;
  }

  .video-text-block {
    flex-direction: column;
  }

  .text {
    text-align: center;
    max-width: none;
    padding: 0 10px;
  }

  .scroll-track {
    animation: scrollLoop 15s linear infinite;
  }

}

.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto; /* 高さは必要に応じて指定 */
  max-width: 100%;
  margin: 20px;
  padding: 10px;
}

.responsive-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}


@keyframes shake-variant {
  0%   { transform: translate(0, 0); }
  5%   { transform: translate(1px, -1px); }
  10%  { transform: translate(-1px, 1px); }
  15%  { transform: translate(1px, 1px); }
  20%  { transform: translate(-1px, -1px); }

  /* 少し大きめな揺れ（たまに） */
  25%  { transform: translate(-2px, 2px); }
  30%  { transform: translate(3px, -2px); }

  35%  { transform: translate(1px, -1px); }
  40%  { transform: translate(-1px, 1px); }
  45%  { transform: translate(1px, 1px); }
  50%  { transform: translate(-1px, -1px); }

  /* もう一回強めに揺れる */
  55%  { transform: translate(2px, -2px); }
  60%  { transform: translate(-3px, 2px); }

  65%  { transform: translate(1px, -1px); }
  70%  { transform: translate(-1px, 1px); }
  75%  { transform: translate(1px, 1px); }
  80%  { transform: translate(-1px, -1px); }

  85%  { transform: translate(0px, 0px); }
  100% { transform: translate(0px, 0px); }
}

.shaking-image {
  animation: shake-variant 1.2s infinite ease-in-out;
}