﻿

body.is_open {
  height: 100%;
  overflow: hidden;
}

#header {
  position: fixed;
  box-sizing: border-box;
  top: 0;
  width: 100%;
  background-color: #fff;
  z-index: 9999;
  transition: 0.3s;
}

#header nav {
  float: right;
  display: flex;
  gap: 40px;
}

#header .cbox {
  position: relative;
  z-index: 9999;
  height: 100%;
  box-sizing: border-box;
}

#header #logo {
  z-index: 9999;
  position: relative;
}

#header #logo span {
  display: block;
}

#header #logo .img .white {
  display: none;
}

#header #logo .img img {
  object-fit: contain;
}

#header #logo .text {
  text-align-last: justify;
  color: #03132A;
  font-weight: bold;
}

.menu_btn{
  z-index: 9999;
  text-align:center;
  cursor:pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: transparent;
}

.menu_btn .lines {
  display: block;
  position: relative;
}

.menu_btn .lines:before,
.menu_btn .lines:after {
  content: "";
  top: 0px;
  width: 100%;
  height: 1px;
  display: block;
  position: absolute;
  background-color: #03132A;
  transition: 0.3s ease-in-out;
}

.menu_btn .lines:after{
  top: auto;
  bottom: 0;
}

#header.is_open .menu_btn .lines {
  width: 100%;
  height: 100%;
}

#header.is_open .menu_btn .lines:before,
#header.is_open .menu_btn .lines:after {
  top: 50%;
  left: 50%;
}

#header.is_open .menu_btn .lines:before{
  transform: translate(-50%,-50%) rotate(-45deg);
}

#header.is_open .menu_btn .lines:after{
  transform: translate(-50%,-50%) rotate(45deg);
}

.header_menu .menu_block_flex > ul > li {
  position: relative;
  margin-top: 0;
}

.header_menu {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  box-sizing: border-box;
  background-color: #fff;
}

.header_menu .menu_block_flex > ul > li > a {
  display: block;
  background-color: #fff;
  text-align: left;
  color: #000;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
}

.header_menu .menu_block_flex > ul > li.is_current::before {
  z-index: 2;
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  background-color: #FCDC59;
  border-radius: 50%;
  display: inline-block;
}

.header_menu .menu_block_flex ul li span {
  display: block;
  background-color: #fff;
  text-align: left;
  color: #000;
  font-weight: normal;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

#header .entry_area {
  position: relative;
  z-index: 9999;
}

  /* ++++++++++++++++++++++++++++++++++++++++++++++    sp    ++++++++++++++++++++++++++++++++++++++++++++++  */
/* ~ 800px */

@media only screen and (max-width: 800px){
  #header {
    padding: 0;
    height: 60px;
  }

  #header.is_scrolled {
    background-color: transparent;
  }

  #header .cbox {
    display: flex;
    align-items: center;
    padding: 10px;
  }

  #header #logo {
    width: 104px;
    line-height: 1;
    top: 0;
    left: 0;
    font-size: 1rem;
  }

  #header.is_scrolled #logo,
  #header.is_scrolled .entry_area .button_link {
    opacity: 0;
    visibility: hidden;
  }
  #header.is_scrolled .entry_area  .modal_body .button_link {
    visibility: visible;
    opacity: unset;
}

#header .modal_content .button_link::after {
  width: 51px;
  height: 51px;
}

.button_link::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  width: 37px;
  height: 37px;
  background: url(../image/icn_arrow_bg_w.svg) no-repeat center center/contain;
}

  #header #logo a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 104px;
    height: 100%;
  }

  #header #logo .img .white {
    display: none;
  }

  #header #logo .img img {
    width: 104px;
    height: 15px;
    vertical-align: super;
  }

  #header #logo .text {
    letter-spacing: normal;
    font-size: 1rem;
  }

  #header.is_open .entry_area .button_link {
    display: none;
  }

  #header.is_open #logo{
    opacity: 1;
    visibility: visible;
  }

  .open .menu_btn {
    background-color: #F8ECB9;
  }
  .open .menu_btn .lines:before {
    background-color: #03132A;
  }
  .open .menu_btn .lines:after {
    background-color: #03132A;
  }

  .header_menu {
    top: 0;
    z-index: 999;
    display: none;
  }

  .header_menu .menu_block_flex {
    padding: 60px 0 55px 0;
  }

  .header_menu .menu_block_flex > ul {
    display: flex;
    flex-direction: column;
    gap: 15px 0;
    margin-top: 10px;
    overflow: auto;
    width: 100%;
  }

  .header_menu .menu_block_flex > ul > li.is_current::before {
    top: 2.2em;
    left: 22px;
  }

  .header_menu .menu_block_flex > ul > li > a {
    padding: 0 47px;
    font-size: 2.6rem;
  }

  .header_menu .menu_block_flex > ul > li:first-child > a {
    padding-top: 0;
  }

  .header_menu .menu_block_flex ul li span {
    font-size: 1.1rem;
  }

  #header .menu_block_button {
    margin-top: 42px;
    text-align: center;
  }

  #header .menu_block_button .button_link{
    margin-top: 24px;
    padding: 10px 105px;
    font-size: 2.4rem;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.08);
  }

  #header .entry_area .button_link{
    margin: 14px 80px 14px 0;
    padding: 4px 20px;
    font-size: 1.5rem;
    box-shadow: none;
  }
  #header .entry_area .button_link::after {
    content: none;
  }

  #header .button_link::after {
    right: 20px;
  }

  #header nav {
    display: flex;
  }

  #header .entry_area {
  position: relative;
  z-index: unset;
}

  /* #header.is_open h1{
    background-color: #fff;
    padding-bottom: 30px;
  } */

  #header.is_open .cbox{
    padding: 0;
    background-color: #fff;
  }

  #header.is_open .cbox .logo_wrapper{
    width: 100%;
    height: 100%;
  }

  #header.is_open .cbox .logo_wrapper #logo{
    display: flex;
    align-items: center;
    padding: 10px;
    width: calc(100% - 60px);
    height: 100%;
    background-color: #fff;
    box-sizing: border-box;
  }

  #header.is_open .cbox{
    background-color: #fff;
  }

  #header.is_open h1{
    background-color: #fff;
    padding-right: 45%;
  }

  .menu_btn{
    background-color: #F8ECB9;
    width: 60px;
    height: 60px;
    position: fixed;
    right: 0;
    z-index: 1000;
  }

  #header .modal_container.active .menu_btn .active{
    background: rgba(0,0,0,50%);
  }

  .menu_btn .lines:before,
  .menu_btn .lines:after {
    background: #03132A;
  }

  .menu_btn .lines {
    width: 28px;
    height: 7px;
  }

  #header.is_open .menu_btn .lines {
    width: 21px;
    height: 21px;
  }
  .header_menu {
    overflow: scroll;
}
  #header .menu_block_flex .menu_block_button .button_link {
  padding: 10px 73px;
}
#header .menu_block_flex .menu_block_button .button_link {
  margin-top: 0;
}
#header .menu_block_flex .menu_block_button.mgt01 .modal_text {
  margin-top: 30px;
}
#header .menu_block_flex .menu_block_button.mgt02 .modal_text {
  margin-top: 40px;
}
.menu_block_button {
  display: block;
}
    /* #header.is_scrolled {
      background-color: #FFFFFF;
      box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  } */
}
	/* ヘッダー sp end */

  /* ++++++++++++++++++++++++++++++++++++++++++++++    PC    ++++++++++++++++++++++++++++++++++++++++++++++  */
/* 801px ~ */

@media screen and (min-width: 801px), print{
  #header {
    height: 84px;
    transition: 0.3s;
  }

  .menu_block_button {
    display: none;
  }

  .top #header {
    background-color: transparent;
    transition: 0.3s;
  }

  #header.is_open,
  #header.is_scrolled {
    background-color: #FFFFFF;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  }

  #header .cbox {
    padding: 15px 53px;
  }

  #header.is_open .cbox::after {
    content: '';
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.08);
    z-index: 9998;
  }

  #header #logo {
    padding: 0;
    float: left;
    line-height: 1;
  }

  #header nav {
    padding: 0;
  }

  #header #logo a {
    transition: 0.3s;
  }

  #header #logo a:hover {
    opacity: 0.5;
  }

  #header #logo .img img {
    width: 164px;
    height: 24px;
  }

  .top #header #logo .img .black,
  .top #header.is_scrolled #logo .img .white,
  .top #header.is_open #logo .img .white {
    display: none;
  }

  .top #header #logo .img .white,
  .top #header.is_scrolled #logo .img .black,
  .top #header.is_open #logo .img .black {
    display: block;
  }

  #header #logo .text {
    margin-top: 11px;
    font-size: 1.3rem;
    transition: 0.3s;
  }

  .top #header #logo .text {
    color: #FFFFFF;
  }

  .top #header.is_scrolled #logo .text,
  .top #header.is_open #logo .text {
    color: #03132A;
  }

  .top .menu_btn .lines:before,
  .top .menu_btn .lines:after {
    background: #FFFFFF;
  }

  .top #header.is_scrolled .menu_btn .lines:before, 
  .top #header.is_scrolled .menu_btn .lines:after,
  .top #header.is_open .menu_btn .lines:before, 
  .top #header.is_open .menu_btn .lines:after {
    background: #03132A;
  }

  .header_menu {
    background: rgba(0,0,0,0.5);
    top: 84px;
    box-sizing: border-box;
    background-color: #fff;
  }

  .header_menu .menu_block_flex {
    display: flex;
    height: 100%;
  }

  .header_menu .menu_block_image {
    width: 50%;
    height: 100%;
  }

  .header_menu .menu_block_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header_menu .menu_block_flex > ul {
    overflow: auto;
    height: 90vh;
    width: 50%;
    padding: 2% 0 3% 5%;
    box-sizing: border-box;
  }

  .header_menu .menu_block_flex > ul > li.is_current::before {
    top: 3.7em;
    left: -8px;
  }

  .header_menu .menu_block_flex > ul > li > a {
    padding: 0.4vw 1vw 0.5vw;
    font-size: min(50vw, 3.4rem);
    transition: 0.3s;
  }

  .header_menu .menu_block_flex > ul > li > a:hover {
    opacity: 0.5;
  }

  .header_menu .menu_block_flex ul li span {
    font-size: 1.4rem;
  }

  .menu_btn{
    position: relative;
    width: 60px;
  }

  .menu_btn .lines {
    width: 38px;
    height: 9px;
  }

  .menu_btn .lines::before,
  .menu_btn .lines::after {
    transition: 0.3s;
  }

  #header.is_open .menu_btn .lines {
    width: 38px;
    height: 38px;
  }

  #header .button_link{
    display: inline-block;
    position: relative;
    border-radius: 30px;
    padding: 12px 60px;
    background-color: #FCDC59;
    box-sizing: border-box;
    font-size: 1.8rem;
    font-weight: bold;
  }

  #header .menu_block_button .button_link{
    display: none;
  }

  #header .button_link:hover {
    background-color: #03132A;
    color: #FFFFFF;
  }

  #header .button_link::after {
    right: 20px;
    width: 26px;
    height: 26px;
  }

  #header nav .header_menu{
    display: none;
    margin-right:40px;
    margin-top:0;
  }

}
/* ヘッダー pc end */