/* メインビジュアルセクション */
#visual {
  position: relative;
  width: 100%;
  height: 100vh; /* フルスクリーン */
  min-height: 600px; /* 最小高さ確保 */
  overflow: hidden;
  display: flex;
  align-items: flex-end; /* 下部に配置 */
  justify-content: center;
}

/* 背景画像コンテナ */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画面全体をカバー */
  object-position: center center; /* 中央配置 */
  display: block;
}

/* 画像キャプション */
.image-caption {
  position: absolute;
  bottom: 15px;
  right: 20px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 400;
  font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.image-caption:hover {
  opacity: 1;
}

.caption-text {
  display: block;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* タイトルロゴコンテナ */
.title-logo-container {
  position: relative;
  z-index: 2;
  margin-bottom: 3vh; /* 下から少し余白 */
  animation: slideUpFadeIn 2s ease-out forwards;
  opacity: 0;
  transform: translateY(100px);
}

.title-logo {
  max-width: 80vw; /* 画面幅の80% */
  max-height: 35vh; /* 35% */
  width: auto;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3)); /* 影をつけて見やすく */
}

/* せり上がりアニメーション */
@keyframes slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* オーバーレイ（必要に応じて） */
.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.title-logo-container {
  z-index: 3; /* オーバーレイより上に */
}

/* タブレット対応 */
@media (max-width: 1024px) {
  #visual {
    height: 80vh;
    min-height: 500px;
  }
  
  .title-logo {
    max-width: 75vw;
    max-height: 25vh;
  }
  
  .title-logo-container {
    margin-bottom: 3vh;
  }
  
  .image-caption {
    bottom: 12px;
    right: 15px;
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  #visual {
    height: 70vh;
    min-height: 400px;
  }
  
  .title-logo {
    max-width: 80vw;
    max-height: 28vh;
  }
  
  .title-logo-container {
    margin-bottom: 2vh;
  }
  
  .image-caption {
    bottom: 10px;
    right: 12px;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 3px;
  }
}

/* 小さなスマートフォン対応 */
@media (max-width: 480px) {
  #visual {
    height: 60vh;
    min-height: 350px;
  }
  
  .title-logo {
    max-width: 85vw;
    max-height: 30vh;
  }
  
  .title-logo-container {
    margin-bottom: 1vh;
  }
  
  .image-caption {
    bottom: 8px;
    right: 10px;
    font-size: 0.6rem;
    padding: 3px 6px;
  }
}

/* 横向きスマートフォン対応 */
@media (max-width: 768px) and (orientation: landscape) {
  #visual {
    height: 100vh;
    min-height: 300px;
  }
  
  .title-logo {
    max-width: 70vw;
    max-height: 25vh;
  }
  
  .title-logo-container {
    margin-bottom: 1.5vh;
  }
  
  .image-caption {
    bottom: 8px;
    right: 10px;
    font-size: 0.6rem;
  }
}

/* 超小型スマートフォン対応 */
@media (max-width: 360px) {
  #visual {
    height: 55vh;
    min-height: 320px;
  }
  
  .title-logo {
    max-width: 82vw;
    max-height: 25vh;
  }
  
  .title-logo-container {
    margin-bottom: 1.5vh;
  }
  
  .image-caption {
    bottom: 6px;
    right: 8px;
    font-size: 0.55rem;
    padding: 2px 5px;
  }
}

/* 高解像度ディスプレイ対応 */
@media (min-width: 1920px) {
  .title-logo {
    max-width: 1200px;
  }
  
  .image-caption {
    bottom: 20px;
    right: 25px;
    font-size: 0.8rem;
    padding: 8px 15px;
  }
}