@charset "utf-8";
/* CSS Document */
.header {
  margin: 0;
  width: 100%;
  text-align: center;
}
.header h3 {
  /*font-size:2.41vw;*/
  font-size: clamp(1px, 3vw, 27px);
  color: #007aa7;
  text-shadow: 2px 2px 0 #fff, 5px 5px 7px #d6cf5a;
  background: linear-gradient(to right, #8d8800 0%, #d6cf5a 20%, #f0e68c 50%, #d6cf5a 80%, #8d8800 100%);
  margin: 0;
  padding: 8px 0 10px 0;
  line-height: 1.2em;
  /*width: calc(100vw - 17px);  Windowsのスクロールバー幅の平均 */
  width: 100%;
}
h1 {
  margin: 0;
  background: linear-gradient(to right, #00648b 0%, #006f99 20%, #007aa7 50%, #006f99 80%, #00648b 100%);
  color: #fff;
  padding: 7px 0 11px 0;
  /*font-size:3vw;*/
  font-size: clamp(1px, 3vw, 33.3px);
  font-family: "source-han-sans-japanese", sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1.6em;
  text-shadow: 3px 3px 0 #004464, 5px 5px 7px #004464;
  /*width: calc(100vw - 17px);*/ /* Windowsのスクロールバー幅の平均 */
  width: 100%;
}
h1 .bgr {
  font-size: 1.8em;
  vertical-align: middle;
  font-weight: 900;
  position: relative;
  top: -6px;
}
h1 .smr {
  font-size: 0.6em;
  vertical-align: text-bottom;
  position: relative;
  top: 17px;
}
#bg-video {
  position: absolute;
  top: 98px;
  left: 0;
  width: 100%;
  height: 85%;
  object-fit: cover; /* アスペクト比を維持して埋める */
  object-position: center center; /* 中央基準で表示 */
  z-index: -1;
  margin: 0;
  padding: 0;
}
#bg-image {
  display: none;
}
#top {
  max-width: 100%;
  min-height: 100vh;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}
/* スマホ用切り替え */
@media screen and (max-width: 768px) {
  #bg-image {
    display: block; /* ← 表示する */
    width: 100%;
  }
  #top {
    width: 100%;
    min-height: unset; /* ← これで100vhを打ち消す！ */
    height: auto;
    margin: -20px 0 -10px 0 !important;
    padding: 0 !important;
    position: relative;
  }
  .center-wrapper, #bg-video {
    display: none !important;
  }
}
.center-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 80vh;
}
.center-image {
  margin: 2% 0 0 0;
  max-width: 22%;
  height: auto;
  z-index: 1;
}
.image-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.caption {
  margin: 10px 0 0 3%;
  font-size: 1.5vw;
  font-weight: bold;
  color: #007aa7; /* 青色 */
  text-align: center;
  text-shadow:
    2px 2px 0 #fff, 0 0 5px #faffc8, 0 0 20px #faffc8, 0 0 30px #f0e68c; /* 発光効果 */
}
.text {
  position: absolute;
  color: #007aa7; /* 青色 */
  font-size: 1.3vw;
  /*font-size: clamp(10px, calc(8vw + 1rem), 18px);*/
  line-height: 2vw;
  font-weight: bold;
  text-align: center;
  /*width: 300px;  テキスト枠の幅を決める */
  text-shadow:
    2px 2px 0 #fff, 0 0 5px #faffc8, 0 0 20px #faffc8, 0 0 30px #f0e68c; /* 発光効果 */
  z-index: 2; /* 画像より上に */
}
.top-left {
  bottom: 56%;
  left: 7%;
}
.top-right {
  bottom: 56%;
  right: 8%;
}
.bottom-left {
  top: 52%;
  left: 10.5%;
}
.bottom-right {
  top: 52%;
  right: 11.5%;
}
/* ナビ */
.nav-container {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px; /* ← ナビの高さ */
  z-index: 1000;
  transition: transform 0.2s ease-out;
}
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: linear-gradient(to right, #00648b 0%, #006f99 20%, #007aa7 50%, #006f99 80%, #00648b 100%);
  margin: 0;
  padding: 0;
}
.nav a {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
  font-size: 1.5vw;
  padding: 11px 12px 14px 12px;
  text-shadow: 2px 2px 0 #004464;
  border-left: solid 1px #d6cf5a;
}
.nav a:last-child {
  border-right: solid 1px #d6cf5a;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 10px;
  background: #faffc8;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}
@keyframes wave {
  0% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(3px);
  }
  75% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0px);
  }
}
.nav a:hover {
  color: #007aa7;
  text-shadow: 2px 2px 0 #fff, 5px 5px 7px #d6cf5a;
  background: linear-gradient(to right, #d6cf5a 0%, #f0e68c 50%, #d6cf5a 100%);
}
.nav a:hover::after {
  width: 100%;
  height: 5px;
  transform: translateX(-50%) scaleX(1);
}
.nav a.active {
  color: #007aa7;
  text-shadow: 2px 2px 0 #fff, 5px 5px 7px #d6cf5a;
  background: linear-gradient(to right, #d6cf5a 0%, #f0e68c 50%, #d6cf5a 100%);
}
.nav a.active::after {
  width: 100%;
  height: 5px;
  transform: translateX(-50%) scaleX(1);
}
.sp-nav {
  display: none;
}
/* スマホ用（幅767px以下） */
@media (max-width: 767px) {
  .header h3 {
    font-size: clamp(17px, 4vw, 27px);
  }
  h1 {
    font-size: clamp(20px, 4vw, 33.6px);
  }
  .nav-container {
    display: none;
  }
  /* スマホ用ナビ（スマホだけ表示） */
  .sp-nav {
    display: block;
  }
  .hamburger {
    position: fixed;
    top: 5px;
    right: 15px;
    font-size: 2rem;
    z-index: 10000;
    cursor: pointer;
    color: #006f99;
  }
  .mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 10px;
    background: linear-gradient(to right, #00648b 0%, #006f99 20%, #007aa7 50%, #006f99 80%, #00648b 100%);
    z-index: 9999;
    padding: 10px 20px 10px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
  .mobile-menu a {
    width: 100%;
    font-size: 4vw;
    padding: 10px;
    color: #fff;
    text-shadow: 2px 2px 0 #004464;
    text-decoration: none;
    border-bottom: solid 1px #d6cf5a;
  }
  .mobile-menu a:last-child {
    border-bottom: none;
  }
  .mobile-menu.open {
    display: flex;
  }
}