@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "IBM Plex Sans JP", sans-serif;
  font-size: 16px;
}

.header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1em;
  background: #1BB6D5;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: top 0.3s ease-in-out;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  margin-right: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 30;
  margin-right: 1em;
}
.hamburger span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
  display: flex;
  gap: 1em;
  list-style: none;
}
.nav-menu li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 0.5em 1em;
  display: inline-block;
}

/* サブメニュー */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #555;
  list-style: none;
  margin: 0;
  padding: 0;
}
.submenu li a {
  position: relative;
  display: block;
  padding: 0.5em 1.5em;
  color: white;
  text-decoration: none;
}
.submenu li a::after {
  content: '';
  position: absolute;
  bottom: 0.3em;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.submenu li a:hover {
  background-color: #666;
}
.submenu li a:hover::after {
  transform: scaleX(1);
}
.submenu li a:visited {
  color: #ccc;
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 10;
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* フッター */
#fixed-footer {
  position: fixed;
  bottom: -200px;
  left: 0;
  width: 100%;
  background: #1BB6D5;
  color: #eee;
  padding: 1em 1em 1.2em;
  transition: bottom 0.4s ease-in-out;
  z-index: 1000;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}
#fixed-footer .footer-info p {
  margin: 0.2em 0;
		font-size: 0.8em;
		line-height: 1em;
}
#fixed-footer .logo img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0.5em auto;
}
#fixed-footer .copyright {
  font-size: 0.8rem;
  color: #FFFFFF;
}
#fixed-footer a {
  color: #FFFFFF;
  text-decoration: none;
}
#fixed-footer a:hover {
  color: #FBFFC8;
}

/* ページトップボタン */
#scrollToTop {
  display: none;
  position: fixed;
  bottom: 50px;
  right: 20px;
  z-index: 1001;
  font-size: 1.5em;
  background: #FFFFFF;
  color: #0068B4;
  border: none;
  padding: 0.5em 0.7em;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}
#scrollToTop:hover {
  background: #E8FEFF;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    background: #444;
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    padding: 2em 1em;
    transition: left 0.3s ease;
    z-index: 25;
  }
  .nav-menu.show {
    left: 0;
  }
  .hamburger {
    display: flex;
  }
  .has-submenu.open .submenu {
    max-height: 500px;
  }
  .sp_m-t_3em {
    margin-top: 3em;
  }
		  #fixed-footer .footer-info {
    font-size: 1rem;
  }
  #fixed-footer .copyright {
    font-size: 0.8rem;
  }
}

@media screen and (min-width: 769px) {
  .has-submenu {
    position: relative;
  }
  .has-submenu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #555;
    z-index: 100;
    min-width: 160px;
  }
  .has-submenu.open .submenu {
    max-height: none;
  }
}
