@charset "utf-8";
/* CSS Document */
.header {
  margin: 0;
  width: 100%;
  text-align: center;
}
.header h3 {
  /*font-size:2.41vw;*/
  font-size: clamp(1px, 3vw, 25px);
  color: #007aa7;
  text-shadow: 2px 2px 0 #fff;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.45), rgba(255,255,255,0) 45%),
    linear-gradient(
      90deg,
      #79c5a7 0%,
      #d6e9c9 25%,
      #ffffff 50%,
      #d6e9c9 75%,
      #79c5a7 100%
    );
  margin: 0;
  padding: 8px 0 10px 0;
  line-height: 1.2em;
  /*width: calc(100vw - 17px);  Windowsのスクロールバー幅の平均 */
  width: 100%;
}
.toph3 {
    font-size: clamp(1px, 3vw, 30px);
}
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;
    display: block;
    opacity: 0;
  animation: videoFade 5s ease forwards;
}
@keyframes videoFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#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: 0 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: 1px 1px 0 #004464;
  border-left: solid 1px #fff;
}
.nav a:last-child {
  border-right: solid 1px #fff;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 10px;
  background: #79c5a7;
  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: 1px 1px 0 #fff;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.45), rgba(255,255,255,0) 45%),
    linear-gradient(
      90deg,
      #d6e9c9 0%,
      #ffffff 50%,
      #d6e9c9 100%
    );
}
.nav a:hover::after {
  width: 100%;
  height: 5px;
  transform: translateX(-50%) scaleX(1);
}
.nav a.active {
  color: #007aa7;
  text-shadow: 1px 1px 0 #fff;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.45), rgba(255,255,255,0) 45%),
    linear-gradient(
      90deg,
      #d6e9c9 0%,
      #ffffff 50%,
      #d6e9c9 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(16px, 3vw, 24px);
  }
    .toph3 {
    font-size: clamp(20px, 3vw, 36px);
}
  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 #fff;
  }
  .mobile-menu a:last-child {
    border-bottom: none;
  }
  .mobile-menu.open {
    display: flex;
  }
}

/* =========================
   ふわふわ丸画像 4つ
========================= */

.float-zone {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.floating-badge {
  width: 120px;
  height: auto;
  display: block;
  opacity: 0.97;
  filter:
    drop-shadow(0 14px 22px rgba(0, 60, 40, 0.20))
    drop-shadow(0 4px 10px rgba(255, 255, 255, 0.35));
  animation: badgeFloat 4.2s ease-in-out infinite;
  transform-origin: center center;
}
.float-zone {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.float-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 65%);
}
@keyframes badgeFloat {
  0% {
    transform: translateY(0px) rotate(-3deg) scale(1);
    filter:
      drop-shadow(0 12px 18px rgba(0, 60, 40, 0.18))
      drop-shadow(0 3px 8px rgba(255, 255, 255, 0.28));
  }

  25% {
    transform: translateY(-6px) rotate(2deg) scale(1.018);
    filter:
      drop-shadow(0 16px 24px rgba(0, 60, 40, 0.22))
      drop-shadow(0 4px 10px rgba(255, 255, 255, 0.34));
  }

  50% {
    transform: translateY(-10px) rotate(-2deg) scale(1.01);
    filter:
      drop-shadow(0 18px 28px rgba(0, 60, 40, 0.24))
      drop-shadow(0 5px 12px rgba(255, 255, 255, 0.38));
  }

  75% {
    transform: translateY(-4px) rotate(3deg) scale(1.02);
    filter:
      drop-shadow(0 15px 22px rgba(0, 60, 40, 0.21))
      drop-shadow(0 4px 10px rgba(255, 255, 255, 0.33));
  }

  100% {
    transform: translateY(0px) rotate(-3deg) scale(1);
    filter:
      drop-shadow(0 12px 18px rgba(0, 60, 40, 0.18))
      drop-shadow(0 3px 8px rgba(255, 255, 255, 0.28));
  }
}
/* 4つの移動エリア */
.zone-tl {
  top: 8%;
  left: 2%;
  width: 28%;
  height: 32%;
  animation: roamTL 14s ease-in-out infinite alternate;
}

.zone-tr {
  top: 5%;
  right: 0%;
  width: 28%;
  height: 32%;
  animation: roamTR 15s ease-in-out infinite alternate;
}

.zone-bl {
  bottom: 14%;
  left: 2%;
  width: 28%;
  height: 30%;
  animation: roamBL 16s ease-in-out infinite alternate;
}

.zone-br {
  bottom: 14%;
  right: 2%;
  width: 28%;
  height: 30%;
  animation: roamBR 13.5s ease-in-out infinite alternate;
}
.zone-tl .floating-badge {
  position: absolute;
  top: 10%;
  left: 18%;
  animation-duration: 4.2s;
}

.zone-tr .floating-badge {
  position: absolute;
  top: 2%;
  right: 8%;
  animation-duration: 5.1s;
}

.zone-bl .floating-badge {
  position: absolute;
  top: 35%;
  left: -5%;
  animation-duration: 4.6s;
}

.zone-br .floating-badge {
  position: absolute;
  top: 35%;
  right: -5%;
  animation-duration: 5.4s;
}

/* 4つの移動エリア
   ざっくり「田の字」の4マス */
.zone-tl {
  top: 8%;
  left: 2%;
  width: 28%;
  height: 32%;
  animation: roamTL 14s ease-in-out infinite alternate;
}

.zone-tr {
  top: 8%;
  right: 2%;
  width: 28%;
  height: 32%;
  animation: roamTR 15s ease-in-out infinite alternate;
}

.zone-bl {
  bottom: 10%;
  left: 5%;
  width: 28%;
  height: 30%;
  animation: roamBL 16s ease-in-out infinite alternate;
}

.zone-br {
  bottom: 10%;
  right: 5%;
  width: 28%;
  height: 30%;
  animation: roamBR 13.5s ease-in-out infinite alternate;
}

/* 各ゾーン内での初期位置 */
.zone-tl .floating-badge {
  position: absolute;
  top: 10%;
  left: 18%;
}

.zone-tr .floating-badge {
  position: absolute;
  top: 8%;
  right: 15%;
}

.zone-bl .floating-badge {
  position: absolute;
  bottom: 12%;
  left: 14%;
}

.zone-br .floating-badge {
  position: absolute;
  bottom: 10%;
  right: 18%;
}

/* ふわっと上下 */
@keyframes badgeBob {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-8px) scale(1.015); }
  100% { transform: translateY(0) scale(1); }
}

/* 各マス内を自由に漂う */
@keyframes roamTL {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(18px, -10px); }
  45%  { transform: translate(42px, 16px); }
  70%  { transform: translate(10px, 28px); }
  100% { transform: translate(34px, -4px); }
}

@keyframes roamTR {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-26px, 10px); }
  50%  { transform: translate(-42px, -8px); }
  75%  { transform: translate(-8px, 24px); }
  100% { transform: translate(-30px, 4px); }
}

@keyframes roamBL {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(24px, -18px); }
  50%  { transform: translate(38px, 8px); }
  75%  { transform: translate(8px, -30px); }
  100% { transform: translate(30px, -6px); }
}

@keyframes roamBR {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-24px, -16px); }
  48%  { transform: translate(-40px, 8px); }
  76%  { transform: translate(-10px, -28px); }
  100% { transform: translate(-34px, -2px); }
}