/* ===== 共通設定 ===== */
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.8;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5vw;
  background: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.9rem;
}

/* ===== Heroセクション ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: fadeZoom 20s infinite ease-in-out;
  transform-origin: center;
  will-change: opacity, transform;
  z-index: 0;
}

.hero::before {
  background-image: url('./img/bg2.jpg');
  animation-delay: 0s;
}

.hero::after {
  background-image: url('./img/bg1b.jpg');
  animation-delay: 10s;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 90%;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  font-family: 'Exo', sans-serif;
  font-style: italic;
  font-weight: 900;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.8rem;
  font-family: 'WDXL Lubrifont JP N', sans-serif;
  letter-spacing: 0.2em;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.map-container {
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 40px; 
}

/* ===== アニメーション ===== */
@keyframes fadeZoom {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  40% {
    opacity: 1;
    transform: scale(1.1);
  }
  50% {
    opacity: 0;
    transform: scale(1.1);
  }
  90% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== メインコンテンツ ===== */
.content {
  padding: 100px 5vw 40px;
  max-width: 1000px;
  margin: auto;
  box-sizing: border-box;
}

h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
}

h3 {
  margin-top: 20px;
  font-size: 1.2rem;
}

ul {
  padding-left: 20px;
}

.footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #333;
}

.unity-logo {
  max-width: 200px;
  margin: 10px auto;
  margin: 10px auto 30px; /* ← 下方向のマージンを30pxに拡大 */
  display: block;
}

.sns-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
}

.sns-icons img {
  width: 60px;
  height: auto;
  transition: transform 0.3s ease;
}

.sns-icons img:hover {
  transform: scale(1.2);
}

/* ===== Exhibitorsセクション ===== */

.exo-heading {
  font-family: 'Exo', sans-serif;
  font-style: italic;
  font-weight: 900;
}

.exhibitors {
  padding: 120px 5vw 40px;
  max-width: 1200px;
  margin: auto;
  box-sizing: border-box;
}

.exhibitors h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
  text-align: center;
}

.exhibitor-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.exhibitor {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

.exhibitor img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.exhibitor-info h3 {
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.exhibitor-info p {
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

/* 要素表示アニメーション */
.exhibitor {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.exhibitor.visible {
  opacity: 1;
  transform: translateY(0);
}

/* YouTubeモーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  background: transparent;
  padding-top: 40px; /* 閉じるボタン分の余白 */
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* サムネのホバー演出 */
.youtube-thumb {
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  display: block;
}

.youtube-thumb:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.report-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px; /* ← フッターとの間に60pxの余白 */
}

.report-gallery img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* ===== スクロールに応じてフェードイン ===== */
.report-gallery img {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.report-gallery img.fade-in {
  opacity: 1;
  transform: translateY(0);
}


/* ===== レスポンシブ対応 ===== */

/* 中画面以下（タブレット） */
@media screen and (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .nav a {
    font-size: 0.85rem;
    margin-left: 12px;
  }

  .logo img {
    height: 32px;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.1rem;
  }
}

/* 小画面（スマホ） */
@media screen and (max-width: 480px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .nav a {
    margin-left: 0;
    margin-right: 15px;
    font-size: 0.8rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .content {
    padding: 90px 4vw 30px;
  }
}
