@charset "utf-8";
/* CSS Document */
/* 吹き出しを配置する基準点 */
.ripple-point {
  position: absolute;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%); /* 中心を合わせる */
}
/* 中心にある実線の点 */
.dot {
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
}
/* 広がる波紋 */
.pulse {
  width: 100%;
  height: 100%;
  background-color: #FFFFFD;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0;
  animation: ripple 4s infinite; /* 4秒周期で繰り返す */
}
@keyframes ripple {
  0% {
    transform: scale(4);
    opacity: 0.0;
  }
  50% {
    transform: scale(1); /*  */
    opacity: 0.5; /*  */
  }
  100% {
    transform: scale(4); /* 4倍まで広がる */
    opacity: 0.0; /* 完全に消える */
  }
}
/******************** 音波発信のアニメーション *****************************/
/* 画像を包む要素 */
.whale-wrapper {
  position: relative;
  display: inline-block;
  /* 親要素(colやcontainer)が overflow: hidden されていないことが前提 */
}
/* SVGの設定 */
.whale-ripple-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* 波紋の設定 */
.whale-ripple-circle {
  stroke: #F89E00;
  stroke-width: "1";
}
.ship-ripple-circle-l {
  stroke: #F89E00;
  stroke-width: "1";
}
.ship-ripple-circle-s {
  stroke: #F89E00;
  stroke-width: "0.5";
}
.fish-ripple-circle {
  stroke: #F89E00;
  stroke-width: "0.5";
}
.sailboat-ripple-circle {
  stroke: #F89E00;
  stroke-width: "0.2";
}
.hydrophone-ripple-circle-l {
  stroke: #F89E00;
  stroke-width: "0.4";
}
.hydrophone-ripple-circle-s {
  stroke: #F89E00;
  stroke-width: "0.3";
}
/******************** 波の境界線アニメーション *****************************/
.overlay-wave-img {
  position: absolute;
  top: 29.3%;
  left: 0;
  width: 100%;
  object-fit: cover;
  /* 1. マスク：[透明 -> 黒(表示) -> 透明] のグラデーションを作る */
  -webkit-mask-image: linear-gradient(to right, transparent 50%, black 55%, black 55%, transparent 60%);
  mask-image: linear-gradient(to right, transparent 50%, black 55%, black 55%, transparent 60%);
  /* 2. マスクを大きくして、最初は「左側の透明部分」だけが重なるようにする */
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  /* 3. アニメーション：infiniteを指定 */
  animation: waveAnimation 20s ease-in-out infinite;
}
@keyframes waveAnimation {
  0% {
    /* 開始位置：右側の透明な領域が重なっている */
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  100% {
    /* 終了位置：左側の透明な領域まで通り過ぎる */
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}
/******************** 波のアニメーション *****************************/
.overlay-wave-img2 {
  position: absolute;
  top: 17%;
  left: 0;
  width: 100%;
  object-fit: cover;
  z-index: 1;
  /* 1. マスク：[透明 -> 黒(表示) -> 透明] のグラデーションを作る */
  -webkit-mask-image: linear-gradient(to right, transparent 50%, black 55%, black 55%, transparent 60%);
  mask-image: linear-gradient(to right, transparent 50%, black 55%, black 55%, transparent 60%);
  /* 2. マスクを大きくして、最初は「左側の透明部分」だけが重なるようにする */
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  /* 3. アニメーション：infiniteを指定 */
  animation: waveAnimation 20s ease-in-out infinite;
}
@keyframes waveAnimation {
  0% {
    /* 開始位置：右側の透明な領域が重なっている */
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  100% {
    /* 終了位置：左側の透明な領域まで通り過ぎる */
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}
/******************** 洋上航走体のアニメーション *****************************/
/* 左右に往復するアニメーションの定義 */
/* 航走体右 */
.sailboat-move-r {
  position: absolute;
  top: 25%;
  left: 25%;
  z-index: 99;
  width: 10%;
  height: 10%;
}
/* 1. 左右の大きな移動と静止の制御（親要素） */
.horizontal-move-r {
  display: inline-block;
  /* 全体を20秒に設定 */
  animation: move-r-x 20s linear infinite;
}
/* 2. その場での微細な揺れ（子要素：常にループ） */
.vertical-swing {
  display: inline-block;
  animation: move-y 2s ease-in-out infinite;
}
/* 左右移動のタイムライン */
@keyframes move-r-x {
  0% {
    transform: translateX(0%);
  }
  /* (30%)かけて右へ移動 */
  30% {
    transform: translateX(150%);
  }
  /* 30%から50%の間、x=150%で静止 */
  50% {
    transform: translateX(150%);
  }
  /* (80%)で元の位置へ戻る */
  80% {
    transform: translateX(0%);
  }
  /* x=0%で静止 */
  100% {
    transform: translateX(0%);
  }
}
/* 上下の揺れ(3px)と傾き(3deg)の制御 */
@keyframes move-y {
  0%, 100% {
    transform: translateY(3px) rotate(-3deg);
  }
  50% {
    transform: translateY(0px) rotate(3deg);
  }
}
/* 航走体左 */
.sailboat-move-l {
  position: absolute;
  top: 22%;
  left: 14%;
  width: 7%;
  height: 7%;
  z-index: 99;
}
/* 1. 左右の大きな移動と静止の制御（親要素） */
.horizontal-move-l {
  display: inline-block;
  /* 全体を20秒に設定 */
  animation: move-l-x 20s linear infinite;
}
/* 2. その場での微細な揺れ（子要素：常にループ） */
.vertical-swing {
  display: inline-block;
  animation: move-y 2s ease-in-out infinite;
}
/* 左右移動のタイムライン */
@keyframes move-l-x {
  0% {
    transform: translateX(0%);
  }
  /* (30%)かけて左へ移動 */
  30% {
    transform: translateX(-100%);
  }
  /* 30%から50%の間、x=150%で静止 */
  50% {
    transform: translateX(-100%);
  }
  /* (80%)で元の位置へ戻る */
  80% {
    transform: translateX(0%);
  }
  /* x=0%で静止 */
  100% {
    transform: translateX(0%);
  }
}
/* 上下の揺れ(3px)と傾き(3deg)の制御 */
@keyframes move-y {
  0%, 100% {
    transform: translateY(3px) rotate(-3deg);
  }
  50% {
    transform: translateY(0px) rotate(3deg);
  }
}
/* 人工衛星通信アニメーション */
.pulse-path-1 {
  /* CSSでSVG属性を制御 */
  stroke-dasharray: 400 1500;
  stroke-dashoffset: 400;
  opacity: 0;
  animation: pulse-trigger-1 20s linear infinite;
}
/* パルスの動き */
@keyframes pulse-trigger-1 {
  0% {
    stroke-dashoffset: 400;
    opacity: 0;
  }
  80% {
    stroke-dashoffset: 400;
    opacity: 1;
  }
  83% {
    stroke-dashoffset: -1000;
    opacity: 1;
  } /* 1回目走破 */
  83.01% {
    stroke-dashoffset: 400;
    opacity: 0;
  } /* 瞬間リセット */
  94% {
    stroke-dashoffset: 400;
    opacity: 1;
  }
  97% {
    stroke-dashoffset: -1000;
    opacity: 1;
  }
  97.01% {
    stroke-dashoffset: 400;
    opacity: 0;
  } /* 2回目走破 */
}
.pulse-path-2 {
  /* CSSでSVG属性を制御 */
  stroke-dasharray: 400 1200;
  stroke-dashoffset: 400;
  opacity: 0;
  animation: pulse-trigger-2 20s linear infinite;
}
/* パルスの動き */
@keyframes pulse-trigger-2 {
  0% {
    stroke-dashoffset: 400;
    opacity: 0;
  }
  80% {
    stroke-dashoffset: 400;
    opacity: 1;
  }
  83% {
    stroke-dashoffset: -1200;
    opacity: 1;
  } /* 1回目走破 */
  83.01% {
    stroke-dashoffset: 400;
    opacity: 0;
  } /* 瞬間リセット */
  94% {
    stroke-dashoffset: 400;
    opacity: 1;
  }
  97% {
    stroke-dashoffset: -1200;
    opacity: 1;
  }
  97.01% {
    stroke-dashoffset: 400;
    opacity: 0;
  } /* 2回目走破 */
}
.pulse-path-3 {
  /* パルス長400px、隙間は十分に広く2000px確保 */
  stroke-dasharray: 400 2000;
  stroke-dashoffset: 400;
  opacity: 0;
  animation: pulse-trigger-3 20s linear infinite;
}
@keyframes pulse-trigger-3 {
  /* 0s〜17s: 待機 */
  0%, 82.9% {
    stroke-dashoffset: 400;
    opacity: 0;
  }
  /* --- 17s〜18s: 1回目発光 (85%〜90%) --- */
  83% {
    stroke-dashoffset: 400;
    opacity: 1;
  }
  /* 90%地点で opacity 1 を維持しつつ、しっかり突き抜ける数値 -1500 */
  86% {
    stroke-dashoffset: -1500;
    opacity: 1;
  }
  /* --- 18s〜19s: 瞬間リセット --- */
  86.01%, 96.9% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  /* --- 19s〜20s: 2回目発光 (95%〜100%) --- */
  97% {
    stroke-dashoffset: 400;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -1500;
    opacity: 1;
  }
}
/* 魚の群れアニメーションの設定 */
.moving-fish {
  /* アニメーションの設定：名前 時間 進行度 ループ */
  animation: fadeIn linear 6s infinite alternate;
	opacity: 0;
	  width: 17%;
  height: 17%;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  /* 半分で、完全に表示 */
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
  }
}


/*クジラ親子*/
.whale-move-org{
	opacity: 1;
	position: absolute;
	top: 30%; left: 10%; width: 20%;
	/*border: solid;*/
	border-color: white;
			
}
		
.whale-move-1{
	opacity: 1;
	position: absolute;
	top: 40%; left: 100%; 
	width: 30%; 
	height: 30%;
	display: grid;
    place-items: center;
	/*border: solid;
	border-color: white;*/
}
	
.whale-move-2{
	opacity: 1;
	position: absolute;
	top: 50%; left: 120%; 
	width: 15%; 
	height: 30%;
	display: grid;
    place-items: center;
	/*border: solid;
	border-color: white;*/
}
	
.whale-move div {
    position: absolute;  /* z-indexを有効にするため */
    z-index: 2;          /*  */
	top:15%;
    width: 70%;
	/*border: solid;
	border-color: white;*/
}
/* 中のVideo */
.whale-move video {
    margin: 0;
    position: relative;  /* z-indexを有効にするため */
    z-index: 10;          /* 数字が大きいので上（SVGの上） */
    width: 100%;
}
	
.whale-move svg {
    margin: 0;
    position: absolute;  /* z-indexを有効にするため */
    z-index: 1;          /*） */
	opacity: 1;
}