@charset "UTF-8";
a {
  text-decoration: none;
  color: #61C0F7;
  position: relative;
}

a::after {
  position: absolute;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: #61C0F7;
  bottom: -1px; /*アンダーラインがaタグの下端から現れる*/
  transform: scale(0, 1); /*アンダーラインの縮尺比率。ホバー前はx方向に0*/
  transform-origin: left top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の左端*/
  transition: transform 0.3s; /*変形の時間*/
}

a:hover::after {
  transform: scale(1, 1); /*ホバー後、x軸方向に1（相対値）伸長*/
}

.logo a:not(img)::after {
  content: none;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  z-index: 997;
}

hr {
  margin-block-start: 0;
  margin-block-end: 0;
}

.pc {
  display: block;
}
@media screen and (max-width: 768px) {
  .pc {
    display: none;
  }
}

#header-inner {
  display: flex;
  height: 80px;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 40px 0 40px;
}

ul {
  display: flex;
  list-style: none;
  padding-left: 0;
}

li {
  padding-left: 30px;
  font-size: 21px;
}

li:nth-of-type(1) {
  padding-left: 0;
}

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

.sp {
  display: block;
}
@media screen and (min-width: 769px) {
  .sp {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  #header-inner {
    display: block;
    margin: 0;
    padding: 10px 0 0 0;
    height: 60px;
  }
  a::after {
    content: none;
  }
  nav {
    position: relative;
    background: #fff;
    z-index: 2; /* メニューが魚の上に来るように設定 */
  }
  ul {
    display: block;
    text-align: center;
    padding-inline-start: 0px;
  }
  li {
    padding-left: 0;
    font-size: 34px;
  }
  .sns {
    display: flex;
    justify-content: space-between;
    width: 260px;
    margin: 40px auto 60px auto;
    z-index: 999;
  }
  .sns img {
    width: 50px;
    height: auto;
  }
  .shadow {
    filter: drop-shadow(2px 2px 2px rgba(15, 98, 146, 0.3));
  }
  .logo {
    display: flex;
    align-items: center;
  }
  .hamburger-wrapper {
    display: flex;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
    background-color: #fff;
  }
  #hamburger {
    position: relative;
    cursor: pointer;
    margin: 0;
    height: 60px;
    width: 60px;
  }
  .hamburger-wrapper,
  .hamburger-wrapper #hamburger,
  .hamburger-wrapper .logo {
    position: relative;
    z-index: 10001;
  }
  .sp-menu {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    width: 100%;
    /* ↓ ヘッダーの下から出す。--header-h はJSで実測反映 */
    position: fixed;
    top: var(--header-h, 60px);
    left: 0;
    height: calc(var(--menu-ih, 100dvh) - var(--header-h, 60px));
    min-height: calc(100svh - var(--header-h, 60px)); /* 予備 */
    padding-top: 16px;
    padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(180deg, #F1F9FE 0%, #AADCFD 76.68%, #AADCFD 100%);
    padding-top: 16px; /* もとの45pxはヘッダー分。ヘッダー外に出したので少し軽めに */
    visibility: hidden;
    z-index: 9999; /* ヘッダーより低く（=下） */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .sp-menu > ul,
  .sp-menu > .sns {
    position: relative;
    z-index: 1;
  }
  .sp-menu.is-active {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .sp-menu.is-closing {
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
  }
  .sp-menu-wave {
    position: absolute;
    top: 0;
    width: 100%;
  }
  .sp-menu-wave img {
    width: 100%;
    height: auto;
  }
  .sp-menu-bubble {
    position: absolute;
    right: 5vw;
    top: 14vw;
  }
  .sp-menu-bubble img {
    width: 100%;
    height: auto;
  }
  .icon span {
    position: absolute;
    right: 0;
    width: 35px;
    height: 3px;
    background-color: #87CCFF;
    border-radius: 10px;
    transition: 0.5s;
  }
  .icon span:nth-of-type(1) {
    top: 18px;
  }
  .icon span:nth-of-type(2) {
    top: 28px;
  }
  .icon span:nth-of-type(3) {
    bottom: 18px;
  }
  #hamburger.is-active .icon span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 25px;
    transition: 0.5s;
  }
  #hamburger.is-active .icon span:nth-of-type(2) {
    opacity: 0;
  }
  #hamburger.is-active .icon span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 25px;
    transition: 0.5s;
  }
  /* background-headerの設定 */
  .background-header {
    position: absolute; /* メニューと重ならないように相対配置 */
    width: 100%;
    height: 410px; /* 魚が泳ぐエリアの高さを設定 */
    overflow: hidden; /* 魚が画面外に出ないように */
    pointer-events: none; /* メニューに干渉しないように */
    z-index: -1; /* 魚がメニューの下に表示される */
  }
  /* 魚1（右から左に泳ぐ） */
  .background-header::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 30px;
    background: url("../img/bg_fish_03.webp") no-repeat center center;
    background-size: contain;
    animation: swim-right-to-left 10s linear infinite;
    bottom: 0; /* 魚を画面下部に配置 */
    left: -80px; /* 画面外からスタート */
    transform: scaleX(-1);
  }
  /* 魚2（左から右に泳ぐ） */
  .background-header::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 30px;
    background: url("../img/bg_fish_03.webp") no-repeat center center;
    background-size: contain;
    animation: swim-left-to-right 12s linear infinite;
    bottom: 160px; /* 魚を画面下部に配置 */
    right: -60px; /* 画面外からスタート */
    transform: scaleX(1);
  }
}

/*# sourceMappingURL=header.css.map */
