/* style.css */

/*―― リセット ――*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #edf2f4;
  background-attachment: fixed;
  font-family: sans-serif;
  overflow-x: hidden;
}

/*―― 左右サイドバー（ロゴ／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: 40%;
  height: auto;
  display: block;
}

.col-right img.btn-img {
  max-width: 300px; width: 100%; height: auto; display: block;
}


/*―― 中央コンテンツ ――*/
.container {
  width: 550px;
  margin: 0 calc((100vw - 550px) / 2);
  min-height: 100vh;
  background-color: #ffffff;
}
.hero img {
  width: 100%;
  display: block;
  margin: 0;
}

.x_box {
  margin: 0 20px 90px;
}

/*―― 参加バナー＋ボタン配置 ――*/
.sanka-container {
  position: relative;
  margin-top: 24px;
}
.sanka-container img.sanka {
  display: block;
  width: 100%
}
.sanka-container img.sanka-btn {
  position: absolute;
  left: 50%;
  bottom: 17%;           /* バナー高さに対して相対位置 */
  transform: translateX(-50%);
  width: 50%;            /* バナー幅の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;
}

/*―― フッター ――*/
.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: 150px;
  height: auto;
  display: inline-block;
}

/*―― レスポンシブ ――*/
/* 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;
}