
/*ヘッダー*/
body {
  margin: 0;
  font-family: "Futura", Helvetica, sans-serif;
}

/* Navbar & Navmenu color */
:root {
  --background-navbar:  rgb(49, 22, 82,0.8);
}

.header {
  background: var(--background-navbar);
  position: fixed;
  width: 100%;
  height: 52px;
}

/* Nav items */
.menu {
  list-style: none;
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
  margin-top: 52px;
  padding: 0 0 10px 0;
  clear: both;
  background: var(--background-navbar);
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  transform: scale(1, 0);
  transform-origin: top;
}

/* Hamburger menu button */
.menu-btn:checked ~ .menu {
  transform: scale(1, 1);
  transform-origin: top;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger menbu text */
.menu a {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 16px;
  text-transform: capitalize;
  color: #ddd;
  opacity: 0;
  transition: 0.5s;
}

.menu li {
  border-top: 1px solid rgb(49, 22, 82);
  padding: 15px 0;
  margin: 0 54px;
  opacity: 0;
  transition: 0.5s;
}

.menu-btn:checked ~ .menu a,
.menu-btn:checked ~ .menu li {
  opacity: 1;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
}

.menu-btn {
  display: none;
}

.menu-icon {
  display: inline-block;
  position: relative;
  cursor: pointer;
  padding: 24px 14px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.navicon {
  background: #ddd;
  display: block;
  height: 3px;
  width: 26px;
  position: relative;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before,
.navicon:after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  background: #ddd;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before {
  top: 9px;
}

.navicon:after {
  bottom: 9px;
}

/* Hamburger Menu Animation Start */
.menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before {
  top: 0;
}
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  bottom: 0;
}

.menu-btn:checked ~ .menu-icon .navicon {
  background: rgba(0, 0, 0, 0);
  transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}
/* Hamburger Menu Animation End */

/* サブメニューのデザイン */
.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(49, 22, 82, 0.9);
  position: absolute;
  top: 100%;
  left: 0;
  width: 350px;
  display: none; /* 初期は非表示 */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

/* サブメニューのリンク */
.submenu li {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.submenu a {
  display: block;
  color: #ddd;
  padding: 12px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.submenu a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 親メニューにホバーでサブメニューを表示 */
.has-submenu {
  position: relative;
}

.has-submenu:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* スマホ対応：タップで開閉できるように */
@media screen and (max-width: 768px) {
  .submenu {
      position: relative;
      width: 100%;
      transform: none;
      display: none;
  }

  .has-submenu.active .submenu {
      display: block;
      opacity: 1;
  }
}

/* Navbar Container */
.navtext-container {
  width: 100%;
  height: 52px;
  position: absolute;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Navbar Text */
.navtext {
  position: absolute;
  text-transform: uppercase;
  color: #e30fd1;
  letter-spacing: 4px;
  font-size: 20px;
}

/* フッター */

footer {
  background: rgba(0, 0, 0, 0.7); /* ヘッダーと統一した半透明の黒 */
  color: white;
  text-align: center;
  padding: 20px 10px;
  border-top: 3px solid yellow; /* `.overlay-box` と統一 */
  font-size: 1.2rem;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

footer nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 10px;
  transition: 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
}

footer nav a:hover {
  background: yellow;
  color: black;
}

footer p {
  margin-top: 10px;
  font-size: 1rem;
  opacity: 0.8;
}

/* レスポンシブ調整 */
@media screen and (max-width: 768px) {
  footer nav {
      flex-direction: column;
      gap: 10px;
  }
  
  footer nav a {
      display: block;
      width: 80%;
      margin: 0 auto;
      text-align: center;
  }
}
