@charset "UTF-8";
.header {
  width: 100%;
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}
  
@media screen and (min-width: 1060px) {
  .header {
    height: 80px;
  }
}

.header__inner {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: inherit;
  position: relative;
}

@media screen and (min-width: 1060px) {
  .header__inner {
    width: min(100%, 90%);
    padding: 0;
    margin: 0 auto;
  }
}

/* ヘッダーのロゴ部分 */
.header__title {
  width: 70%;
}
@media screen and (min-width: 1060px) {
  .header__title {
    width: 50%;
    margin: 0;
  }
}
  
.header__title:hover {
  opacity: 0.8;
}

.header__title img {
  display: block;
}

.header_logo_img {
  width: min(100%, 50%);
}

@media screen and (min-width: 768px) {
  .header_logo_img {
    width: min(100%, 30%);
  }
}

/* ヘッダーのナビ部分 */
.header__nav {
  position: absolute;
  right: 0;
  top: 0;
  width: min(100%, 60%);
  transform: translateX(100%);
  background-color: rgba(255, 255, 255, 0.78); 
  transition: ease .4s;
  padding: 80px 0 50px;
  display: flex;
}
  
@media screen and (min-width: 1060px) {
  .header__nav {
    position: static;
    transform: initial;
    background-color: inherit;
    display: flex;
    justify-content: end;
    width: min(100%, 980px);
    padding: 0;
  }
}
  
.nav__items {
  margin: auto;
}

@media screen and (min-width: 1060px) {
  .nav__items {
    width: 100%;
    display: flex;
    align-items: baseline;
    height: initial;
    justify-content: space-between;
  }
}
  
.nav-items__item {
  cursor: pointer;
}

._mobil {
  display: block;
}

@media screen and (min-width: 768px) {
  ._mobil {
    display: none;
  }
}

._tab {
  display: none;
}

@media screen and (min-width: 768px) {
  ._tab {
    display: block;
  }
}

@media screen and (min-width: 1060px) {
  .nav-items__item_text_main {
    height: 60px;
  }
}

.nav-items__item_text_main:hover {
  border-bottom: 3px solid #F3B664;
}

@media screen and (min-width: 1060px) {
  .nav-items__item_text_main:active {
    border-bottom: 3px solid #F3B664;
  }
}


@media screen and (min-width: 1060px) {
  .nav-items__item {
    padding: 0;
  }
    
  .nav-items__item:hover:before {
    opacity: 1;
  }
}
  
.nav-items__item_text_main {
  font-size: 1em;
  color: #0C2F5D;
  justify-content: center;
  align-items: center;
  height: fit-content;
}

@media screen and (min-width: 1060px) {
  .nav-items__item_text_main {
    font-size: 1em;
    color: #0C2F5D;
    display: block;
    padding: 0;
  }
}
  
/* ナビのリンク */
.nav-items__item a {
  color: #F0EAEA;
  width: 100%;
  display: block;
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 24px;
}
  
.nav-items__item:last-child a {
  margin-bottom: 0;
}
  
@media screen and (min-width: 1060px) {
  .nav-items__item a {
    margin-bottom: 0;
    font-size: 1.125em;
  }
}
  
/* ハンバーガーメニュー */
.header__hamburger {
  width: 48px;
  height: 100%;
}
  
.hamburger {
  background-color: transparent;
  border-color: transparent;
  z-index: 9999;
  cursor: pointer;
}
  
@media screen and (min-width: 1060px) {
  .hamburger {
    display: none;
  }
}
  
/* ハンバーガーメニューの線 */
.hamburger span {
  width: 100%;
  height: 1px;
  background-color: #0C2F5D;
  position: relative;
  transition: ease .4s;
  display: block;
}
  
.hamburger span:nth-child(1) {
  top: 0;
}
  
.hamburger span:nth-child(2) {
  margin: 8px 0;
}
  
.hamburger span:nth-child(3) {
  top: 0;
}
  
/* ハンバーガーメニュークリック後のスタイル */
.header__nav.active {
  transform: translateX(0);
}

.hamburger.active span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}
  
.hamburger.active span:nth-child(3) {
  top: -13px;
  transform: rotate(-45deg);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.78);  /* スクロール時の背景色 */
}