@charset "utf-8";

/* ----------------------------------------
	header.css(TOPページ)
---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
  padding: 0.5rem 2rem;
}

.header div {
  flex: 1;
}

.global-nav {
  position: relative;
  flex: 15;
}

.global-nav-list {
  margin: 0;
  padding: 0;
  display: flex;
}

.header .main-menu a {
  display: inline-block;
  color: #060D2C;
  text-align: center;
  padding: 14px 16px;
}

.header .main-menu a br {
  display: none;
}

.header .main-menu a:hover {
  color: #2565FE;
}

li.dropdown {
  display: inline-block;
  position: relative;
}

.header .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  min-width: 220px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 999;
}

.header .sub-menu a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.header .sub-menu a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .sub-menu {
  display: block;
}

/* ----------------
ハンバーガー
----------------*/
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

  .hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #060D2C;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width:1024px){
  .hamburger {
    display:flex;
  }

  .header img {
    max-height:40px;
    width:auto;
  }

  .global-nav {
    position:fixed;
    top:72px;
    right:-100%;
    width:260px;
    height:100vh;
    background:#fff;
    box-shadow:-2px 0 10px rgba(0,0,0,0.1);
    transition:0.4s;
    padding-top:2rem;
  }

  .global-nav.active {
    right:0;
  }

  .global-nav-list {
    flex-direction:column;
  }

  .header .main-menu a {
    display:block;
    padding:1rem 1.5rem;
    text-align:left;
    border-bottom:1px solid #eee;
  }

  .header .sub-menu {
    position:static;
    box-shadow:none;
    display:none;
    background:#f7f7f7;
  }

  .dropdown.active .sub-menu {
    display:block;
  }

  .header .main-menu i {
    float:right;
  }

}