@charset "utf-8";

/* ===== header ====== */

.header {
  box-shadow: 0px 3px 6px rgba(0, 0, 0,  16%);
}

.header__inner {
  display: flex;
  align-items: center;
  padding: 13px 5.2%;
}

.header__logo-s {
  width: 130px;
  height: 45px;
}

.header__logo {
  width: 100%;
  height: 100%;
}

@media (min-width: 1040px) {
  .header__logo-s:hover {
    transition: all .3s;
    opacity: 0.7;
  }
}

.nav__list {
  display: flex;
}

.nav__item {
  margin-right: 50px;
}

.nav__item:last-of-type {
  margin-right: 170px;
  position: relative;
}

@media (max-width: 1299px) {
  .nav__item:last-of-type {
    margin-right: 0;
  }
}

.nav__link {
  display: inline-block;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 1.5rem;
  padding-bottom: 15px;
  margin-top: 15px;
}

@media (min-width: 1079px) {
.nav__link:hover {
  border-bottom: 2px solid #005497;
  padding-bottom: 10px;
}
}

.sub-nav {
  position: absolute;
  top: 52px;
  left: 0;
  width: 225px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all .3s;
  z-index: 10;
}

.sub-nav.is-hover {
  top: 42px;
  opacity: 1;
  height: auto;
  overflow: visible;
  transition: all .3s;
}

.sub-nav-item {
  background-color:rgba(255, 255, 255, 60%);
}

.sub-nav-item:not(:last-of-type) {
  margin-bottom: 1px;
}

.sub-nav-link {
  display: inline-block;
  color: #005497;
  font-size: 1.4rem;
  padding: 18px 0 17px 31px;
  width: 100%;
  position: relative;
}

@media (min-width: 1040px) {
  .sub-nav-link:hover {
    transition: all .3s;
    opacity: 0.7;
  }
}

.sub-nav-link::before,
.sub-nav-link::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 12.5px;
  width: 7px;
  height: 1px;
  background-color: #1a1a1a;
  transform: rotate(45deg);
}

.sub-nav-link::after {
  top: 27px;
  transform: rotate(-45deg);
}

/* ----- burger-btn ----- */

.burger-btn {
  display: none;
}

/* ==========================================
/* tablet
/* ========================================== */

@media (max-width: 1079px) {

/* ===== header ====== */

.header {
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 10;
  transition: all .3s;
}

.header.shadow {
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 16%);
  transition: all .3s;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 5px 10px;
}

.header__logo-s {
  width: 100px;
  height: 34px;
}

.nav__header {
  display: block!important;
  position: fixed;
  top: 57px;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 10;
  background-color: #fff;
  opacity: 0;
  height: 0;
  overflow: scroll;
  transition: all .3s;
}

.nav__header.open {
  opacity: 1;
  height: auto;
  overflow: scroll;
  transition: all .3s;
  padding-bottom: 100px;
}

.nav__list {
  display: flex;
  flex-direction: column;
  margin: 50px 9.8% 0!important;
}

.nav__item {
  margin-right: 0;
  border-top: 1px solid #005497;
  position: relative;
}

.nav__item:nth-of-type(-n+5)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #1a1a1a;
}

.nav__item:last-of-type {
  margin-right: 0;
  position: static;
  border-bottom: 1px solid #005497;
}

.nav__link {
  font-size: 1.5rem;
  padding: 23px 0;
  margin-top: 0;
  width: 100%;
  position: relative;
}

.sub-nav {
  position: static;
  width: 100%;
  opacity: 1;
  height: auto;
  overflow: visible;
}

.sub-nav-item {
  background-color:#fff;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all .1s;
}

.sub-nav-item:not(:last-of-type) {
  margin-bottom: 0px;
}

.sub-nav-link {
  display: inline-block;
  color: #1a1a1a;
  font-size: 1.4rem;
  padding: 17px 0 17px 16px;
}

.sub-nav-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: auto;
  right: 0;
  transform: translateY(-50%) rotate(0);
  width: auto;
  height: auto;
  background-color: transparent;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #1a1a1a;
}

.sub-nav-link::after {
  content: none;
}

/* ----- burger-btn ----- */

.burger-btn {
  display: block;
  padding: 14px 10px;
  /* position: fixed;
  top: 0;
  right: 0; */
  z-index: 11;
  background-color: #1a1a1a;
  margin-bottom: -5px;
}

.bar {
  display: block;
  margin: 0 auto;
  width: 25px;
  height: 1px;
  background-color: #fff;
  color: #fff;
  transition: all 0.3s;
}

.bar-top {
  margin-bottom: 8px;
}

.bar-bot {
  margin-top: 8px;
}

.bar.bar-top.open {
  transform: translateY(9px) rotate(45deg);
}

.bar.bar-mid.open {
  opacity: 0;
}

.bar.bar-bot.open {
  transform: translateY(-9px) rotate(-45deg);
}

/* ----- accordion ----- */

.nav__link--accordion {
  pointer-events: none;
  position: relative;
  width: 100%;
}

.sub-nav.is-active {
  opacity: 1;
  height: auto;
  overflow: visible;
  transition: all .3s;
}

.sub-nav-item.is-active {
  background-color:#fff;
  opacity: 1;
  height: 49px;
  overflow: visible;
  border-top: 1px solid #005497;
  transition: all .3s;
}

.nav__link--accordion::before,
.nav__link--accordion::after {
  content: "";
  display: block;
  background-color: #000;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 16px;
  height: 1px;
}

.nav__link--accordion::after {
  transform: rotate(90deg);
  transition: all .3s;
}

.nav__link--accordion.is-active::before {
  opacity: 0;
}

.nav__link--accordion.is-active::after {
  transform: rotate(0);
}
}

/* ==========================================
/* sp
/* ========================================== */

@media (max-width: 767px) {

  .nav__link {
    font-size: 1.2rem;
  }

  .sub-nav-link {
    font-size: 1.1rem;
  }

  .sub-nav-item.is-active {
    height: 46px;
  }
}

.header__logo-s {
  margin: 0 auto 0 0;
}

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

.nav__list {
  margin: 0 40px 0 0;
}

.header_sns a {
  display: inline-block;
  margin: 0 8px 0 0;
}
.header_sns a:last-child {
  margin-right: 0;
}

@media (max-width: 1079px) {
  .header_sns {
    margin: 20px 0 0;
    text-align: center;
  }

  .header_sns a img {
    width: 35px;
    height: auto;
  }
}