/* style.css */

/*―― リセット ――*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-image: url("../images/allback.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: sans-serif;
  overflow-x: hidden;
}


img{
	vertical-align: bottom;
	max-width: 100%;
}

.cv_button_m img:hover{
	opacity: 0.8;
}


/*―― 左右サイドバー（ロゴ／CV） ――*/
.col-left, .col-right {
  position: fixed;
  top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.col-left  { left: 0;  width: calc((100vw - 550px) / 2); }
.col-right { right:0;  width: calc((100vw - 550px) / 2); }
.col-left img.logo  { max-width: 80%; height: auto; display: block; }

/* ロゴ（右サイドバー用） */
.col-right img.logo {
  max-width: 80%;
  height: auto;
  display: block;
}

.col-right img.btn-img {
  max-width: 300px; width: 100%; margin-bottom: 10px; height: auto; display: block;
}

/* メニューのリンク */
.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; /* テキストの中央揃え */
}

.side-menu ul li {
    margin-bottom: 1rem;
}

.side-menu ul li a:hover{
	opacity: 0.7;
}

/*Youtube埋め込みここから*/
.background-container {
      position: relative;
      width: 100%; /* 横幅を100%に設定 */
      aspect-ratio: 6 / 6; /* 背景画像の縦横比を指定 */
      background-image: url('../images/img16.jpg'); /* 背景画像を指定 */
      background-repeat: no-repeat; /* 繰り返しを防ぐ */
      background-size: cover; /* 背景画像を全体が収まるように調整 */
      background-position: top; /* 背景画像を中央に配置 */
    }

    .video-container {
      position: absolute;
      top: 63%; /* 背景画像の中央より少し下 */
      left: 50%;
      transform: translate(-50%, -50%);
      width: 90%; /* 動画の幅を親要素に対して調整 */
      max-width: 800px; /* 動画の最大幅を指定 */
      aspect-ratio: 16 / 9; /* 動画のアスペクト比を指定 */
    }

    .video-container iframe {
      width: 100%;
      height: 100%;
      border: none; /* 枠線を消す */
    }
/*Youtube埋め込みここまで*/


/*―― 中央コンテンツ ――*/
.container {
  width: 550px;
  margin: 0 calc((100vw - 550px) / 2);
  min-height: 100vh;
  background-color: #000;
}
.hero img {
  width: 100%;
  display: block;
  margin: 0;
}

/*―― 参加バナー＋ボタン配置 ――*/
.sanka-container {
  position: relative;
}
.sanka-container img.sanka {
  display: block;
  width: 100%
}
.sanka-container img.sanka-btn {
  position: absolute;
  left: 50%;
  bottom: 18%;           /* バナー高さに対して相対位置 */
  transform: translateX(-50%);
  width: 50%;            /* バナー幅の50% */
  height: auto;
  cursor: pointer;
}


/*―― あらすじー＋ボタン配置 ――*/
.arasuji-container {
  position: relative;
}
.arasuji-container img.arasuji {
  display: block;
  width: 100%
}
.arasuji-container img.arasuji-btn {
  position: absolute;
  left: 50%;
  bottom: 9%;           /* バナー高さに対して相対位置 */
  transform: translateX(-50%);
  width: 92%;            /* バナー幅の50% */
  height: auto;
  cursor: pointer;
}


/*―― アイテムグリッド ――*/
.items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 20px;
}
.item {
  text-align: center;
}
.item img.thumb {
  width: 100%;
  display: block;
}
.item img.btn-img {
  width: 100%;
  height: auto;
  display: block;
}

  .tweet-button {
    cursor: pointer;
    display: inline-block;
  }

/*―― フッター ――*/
.footer {
  position: relative;
  margin: 40px 0 0 0;
  padding: 40px 20px 20px;
  background-color: #000;
  color: #fff;
  text-align: center;
}
.back-to-top {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}
.footer .nav {
  list-style: none;
  padding: 0;
  margin: 0 -20px;
}
.footer .nav li {
  border-top: 1px solid rgba(255,255,255,0.2);
}
.footer .nav li:first-child {
  border-top: none;
}
.footer .nav a {
  display: block;
  padding: 12px 0;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.footer .info {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}
.footer .footer-logo {
  margin-top: 24px;
}
.footer .footer-logo img {
  max-width: 350px;
  height: auto;
  display: inline-block;
}


    /* --- クーポンコード --- */
    /* 画像にマウスを乗せたときに「クリックできる」ことを示すためにカーソルを変更 */
    #coupon-img {
      cursor: pointer;
      /* 必要に応じてサイズを調整してください */
      width: 200px;
      height: auto;
    }


/*―― レスポンシブ ――*/
/* 1200px以下：サイド非表示 */
@media (max-width: 1200px) {
  .col-left, .col-right { display: none; }
}
/* 600px以下：フル幅＆モバイル調整 */
@media (max-width: 600px) {
  .container {
    width: 100%;
    margin: 0;
    padding: 12px 12px 0;
  }
  .sanka-container img.sanka {
    width: calc(100% + 24px);
    margin: 0 -12px;
  }
  .sanka-container img.sanka-btn {
    width: 50%;
  }
  .footer {
    margin: 40px 0 0;
    padding: 40px 12px 20px;
  }
  .footer .nav {
    margin: 0;
  }
}
/* 550px以下：両端余白打ち消し */
@media (max-width: 550px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  .sanka-container img.sanka {
    width: 100%;
    margin: 0;
  }
  .sanka-container img.sanka-btn {
    width: 50%;
  }
  .footer {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .footer .nav {
    margin-left: 0;
    margin-right: 0;
  }
}


/* アニメーション定義 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 初期状態 */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* ビューポートに入ったら */
.fade-up.visible {
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}