@charset "UTF-8";

/* =================================
COLOR
================================= */
:root {
  --header-grad-1: rgba(255,255,255,.9);
  --header-grad-2: rgba(238,248,250,.9);
}

/* =================================
HEADER
================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  height: 60px;
  background-image: linear-gradient(to bottom, var(--header-grad-1) 45%, var(--header-grad-2) 70%);
  box-shadow: 0 3px 22px rgba(38,84,102,.04);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-main);
}

@media screen and (min-width:961px) {
  .header {
    height: 80px;
  }
}

/* =================================
INNER
================================= */
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 15px 0 10px;
}

@media screen and (min-width:961px) {
  .header__inner {
    padding: 0 18px;
  }
}

/* =================================
LOGO
================================= */
.header__title {
  width: 150px;
}

.header__title img {
  display: block;
  width: 100%;
  height: 100%;
}

@media screen and (min-width:961px) {
  .header__title {
    width: 220px;
  }
}

/* =================================
NAV WRAP
================================= */
.header__nav {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow-y: auto;
  transform: translateX(100%);
  background: rgba(240,249,249,.98);
  visibility: hidden;
  transition: ease .3s;
}

.header__nav.active {
  transform: translateX(0);
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

@media screen and (min-width:961px) {
  .header__nav {
    position: static;
    display: flex;
    justify-content: end;
    width: 85%;
    height: inherit;
    overflow: visible;
    transform: initial;
    background: transparent;
    visibility: visible;
  }
}

/* =================================
NAV LIST
================================= */
.nav_ul {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  transform: translate(-50%,-50%);
  padding: 0;
}

.nav_li {
  margin-bottom: 24px;
}

@media screen and (min-width:961px) {
  .nav_ul {
    position: inherit;
    top: 0;
    left: 0;
    width: 100%;
    height: initial;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 30px;
    transform: none;
  }

  .nav_li {
    margin-bottom: 0;
  }
}

/* =================================
NAV LINKS
================================= */
.nav_li a {
  display: block;
  width: 100%;
  margin-bottom: 0.2em;
  font-family: var(--font-editorial);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--text-main) !important;
  text-align: center;
}

.nav_li > a:hover {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--accent2) !important;
  text-decoration: none;
}

@media screen and (min-width:961px) {
  .nav_li a {
    margin-bottom: 0;
    margin-right: 0;
    font-size: 18px;
  }
}

/* =================================
SUB MENU
================================= */

/* SP */
nav .sub-menu {
  position: relative;
  top: 0;
  padding: 0;
}

nav .sub-menu a {
  margin-bottom: 0;
  padding: 5px;
  font-size: 15px;
  color: var(--text-main) !important;
}

nav .sub-menu li {
  margin-bottom: 0.1em;
}

nav .sub-menu li:last-child {
  margin-bottom: 0.6em;
}

/* PC */
@media screen and (min-width:961px) {
  .nav_sub {
    position: relative;
    display: block;
    text-align: center;
    line-height: 80px;
  }

  nav .sub-menu {
    position: absolute;
    top: 50px;
    left: 50%;
    z-index: 1;
    display: block;
    width: 200px;
    margin-left: -100px;
    font-size: 15px;
    background: rgba(246,252,253,.97);
    border-top: 1px solid var(--line-main);
    border-bottom: 1px solid var(--line-main);
    border-color: var(--line-main);
    visibility: hidden;
    opacity: 0;
    transition: all .2s ease;
  }

  nav .sub-menu a {
    display: block;
    padding: 15px 0;
    line-height: 1.2em;
    border-bottom: 1px solid var(--line-main);
    border-color: var(--line-main);
  }

  nav .sub-menu li {
    display: block;
  }

  nav .sub-menu li a {
    font-size: 15px;
  }

  nav .sub-menu li:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  nav ul > li:hover {
    transition: all .5s;
  }

  nav li:hover ul.sub-menu,
  nav li:focus-within ul.sub-menu {
    top: 80px;
    visibility: visible;
    opacity: 1;
  }

  nav li:hover ul.sub-menu {
    z-index: 9999;
  }

  nav li ul li:after {
    content: none;
  }

  nav li:hover ul.sub-menu a {
    color: var(--text-main) !important;
  }

  nav li:hover ul.sub-menu a:hover {
    color: var(--accent1) !important;
    background: rgba(182,221,229,.2);
  }
}

/* =================================
HAMBURGER
================================= */
.header__hamburger {
  height: 100%;
}

.hamburger {
  display: block;
  width: 32px;
  padding: 0;
  z-index: 9999;
  background-color: transparent;
  border-color: transparent;
  cursor: pointer;
}

.hamburger span {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  background: var(--accent1);
  transition: ease .4s;
}

.hamburger span:nth-child(2) {
  margin: 8px 0;
}

/* OPEN（×状態） */
.hamburger.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: -9px;
  transform: rotate(-45deg);
}

@media screen and (min-width:961px) {
  .hamburger {
    display: none;
  }
}

/* =================================
ICON
================================= */
.img-tw {
  max-width: 35px;
  padding-top: 0;
}

@media screen and (min-width:961px) {
  .img-tw {
    max-width: 22px;
    padding-top: 4px;
  }
}
