@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans CJK JP,Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif";
  text-decoration: none;
}

.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  height: 75px;
  z-index: 10;
  top: 0px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.logo {
  height: 75px;
  width: auto;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 65px;
  width: auto;
}

.nav-bar {
  height: 75px;
  display: flex;
  align-items: center;
}

.nav-bar ul,
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu,
.mobile-menu {
  display: flex;
}

.main-menu>li,
.mobile-menu>li {
  display: flex;
  text-align: center;
  align-items: center;
  height: 75px;
}

.main-menu>li>a,
.mobile-menu>li>a {
  display: block;
  padding: 0 20px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.main-menu>li>a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hamburger-btn {
  display: none;
}

.megamenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #eee;
  z-index: 100;
}

.megamenu-inner {
  max-width: 100vw;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  gap: 40px;
}

.megamenu .column {
  flex: 1;
  width: 33.33%;
}

.column-image {
  width: 50%;
  height: auto;
}

.column-image:hover {
  opacity: 0.7;
}

.column-title:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.megamenu .column h3 {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 6px;
  color: #333;
}

.megamenu .column ul li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  text-decoration: none;
}

.megamenu .column ul li a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mobile-nav {
  display: none;
}


@media (min-width: 769px) {
  .has-megamenu:hover .megamenu {
    display: block;
  }
}

@media screen and (max-width: 768px) {
  .mobile-menu>li {
    display: block;
  }

  .logo {
    display: flex;
    align-items: center;
  }

  .logo-img {
    height: 50px;
    margin: auto;
  }

  .nav-bar {
    display: none;
  }

  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
  }

  .hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 75px;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    transition: right 0.3s ease;
    z-index: 150;
    overflow-y: auto;
  }

  .mobile-nav.active {
    right: 0;
    align-items: flex-start;
  }

  .mobile-menu {
    flex-direction: column;
    justify-content: flex-start;
  }

  .mobile-menu>li {
    height: auto;
    padding: 20px;
    text-align: start !important;
  }

  .mobile-menu>li>a {
    padding: 0px;
  }

  .megamenu {
    display: none;
    position: static;
    width: 100%;
    background-color: #f8f9fa;
    box-shadow: none;
    border-top: none;
  }

  .megamenu-inner {
    flex-direction: column;
    gap: 20px;
    padding: 15px 20px;
  }

  .has-megamenu.open .megamenu {
    display: block;
  }

  .megamenu .column h3 {
    font-size: 14px;
    border-bottom: 1px solid #ccc;
  }

  .megamenu .column ul li a {
    padding: 8px 0;
    font-size: 14px;
  }

  .column>ul>li {
    padding: 5px 0;
  }

  .column-image {
    width: 15%;
    height: auto;
  }
}

a:visited {
  color: #333;
  text-decoration: none;
}

.mobile-menu>li {
  border-bottom: 1px solid #eee;
}

.menu-summary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  color: #334155;
  background-color: #ffffff;
  border: none;
  outline: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.4s ease, color 0.4s ease, padding-left 0.4s ease;
}

.toggle-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-icon::before,
.toggle-icon::after {
  content: "";
  position: absolute;
  background-color: #94a3b8;
  border-radius: 2px;
  transition: background-color 0.4s ease, transform 0.4s ease;
}

.toggle-icon::before {
  width: 14px;
  height: 2px;
}

.toggle-icon::after {
  width: 2px;
  height: 14px;
}

.menu-summary.is-active .toggle-icon {
  transform: rotate(180deg);
}

.menu-summary.is-active .toggle-icon::after {
  transform: rotate(90deg);
}

.submenu-list {
  list-style: none;
  background-color: #f8fafc;
  border-top: 1px solid #f1f5f9;
  height: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}

.submenu-link {
  display: block;
  padding: 12px 20px 12px 32px;
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #e5e7eb;
}

.submenu-link:active {
  background-color: #e2e8f0;
}