@charset "UTF-8";

/* ヘッダー
***************************************************************/

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: .3s;
}

.header_inner {
  display: flex;
  gap: 30px;
  align-items: center;
  transition: .3s;
  background-color: #FCFAEC;
  padding: 21px 50px;
}

.logo_content {}

.logo_content a.logo img {
  width: 126px;
  height: 88px;
}

.logo_content .logo a {}

/* ハンバーガーメニュー非表示 */
.sp-menu,
.toggle-menu {
  display: none;
}

/* ヘッダーリンク */
.header_nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.global_nav ul {
  display: flex;
  gap: 15px;
}

.global_nav ul li {
  padding-right: 15px;
  position: relative;
}

.global_nav ul li::before {
  content: '';
  display: inline-block;
  background-image: url(../../images/line.svg);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  width: 2px;
  height: 17px;
  position: absolute;
  top: 60%;
  right: 0;
  transform: translate(0, -50%);
}

.global_nav ul li a {
  font-size: 14px;
  transition: .3s;
}

.header_contact {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header_contact a.header_tell img {
  width: 251px;
  height: 80px;
  box-shadow: 0 0 10px 0 rgba(34, 34, 34, .1);
  border-radius: 10px;
}

.header_contact a.header_mail {
  width: 97px;
  height: 80px;
  background-color: #FF9A01;
  border-radius: 10px;
  text-align: center;
  padding: 10px 20px 8px;
  box-shadow: 0 0 10px 0 rgba(34, 34, 34, .1);
  position: relative;
  transition: .3s;
}

.header_contact a.header_mail p {
  font-size: 14px;
  font-weight: bold;
  color: #FFF;
  position: absolute;
  bottom: 8px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

.header_contact a.header_mail::before {
  content: '';
  display: inline-block;
  background-image: url(../../images/mail_icon.svg);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .25);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%, 0);
  transition: .3s;
}

/* スクロール時ヘッダー変更 */
header.scrolled {
  /* left: 50%;
  transform: translateX(-50%); */
}

header.scrolled .header_inner {
  box-shadow: 0 0 10px 0 rgba(34, 34, 34, .1);
  border-radius: 10px;
  margin: 0 50px;
  position: relative;
  top: 20px;
  padding: 15px 30px;
}

@media screen and (min-width: 768px) {
  .header_contact a.header_tell {
    pointer-events: none;
  }

  .header_contact a.header_mail:hover {
    background-color: #FF7B01;
  }

  .header_contact a.header_mail:hover::before {
    background-image: url(../../images/mail_icon_hover.svg);
  }

  .global_nav ul li a:hover {
    color: #FF9A01;
  }

}

@media screen and (max-width: 768px) {
  header{
    transition-delay:1s;
  }

  .header_inner {
    display: block;
    padding: 15px 20px;
  }

  /* スクロール時ヘッダー変更 */

  header.scrolled .header_inner {
    margin: 0 15px;
    top: 10px;
    padding: 10px 15px;
    transition: .2s
  }

  .logo_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo_content a.logo img {
    width: auto;
    height: 32px;
  }

  /* ハンバーガーメニュー */
  .sp-menu {
    display: block;
    text-align: center;
    width: 40px;
    height: 36px;
  }

  .toggle-menu {
    display: inline-block;
    text-align: center;
    position: relative;
    z-index: 100;
    top: 0;
    margin-top: -6px;
  }

  .sp-menu p {
    font-size: 10px;
    line-height: 1.2;
    -webkit-text-stroke: 0.5px #6C5D47;
  }

  .toggle-menu .toggle-line {
    display: block;
    margin: auto;
    text-indent: -9999px;
    width: 20px;
    height: 2px;
    background-color: #6C5D47;
    border-radius: 5px;
    z-index: 1000;

  }

  .toggle-menu .toggle-line::before,
  .toggle-menu .toggle-line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background-color: #6C5D47;
    border-radius: 5px;
    transition: .3s;
  }

  .toggle-menu .toggle-line::before {
    top: -7px;
    -webkit-animation: menu-barTop 0.6s forwards;
    animation: menu-barTop 0.6s forwards;
  }

  .toggle-menu .toggle-line::after {
    top: 7px;
    -webkit-animation: menu-barBottom 0.6s forwards;
    animation: menu-barBottom 0.6s forwards;
  }

  .header_nav {
    position: fixed;
    left: 0;
    top: 0;
    padding: 49px 20px 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background-color: #FCFAEC;
    z-index: -1;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: 0.3s ease-out;
    transition: 0.3s ease-out;
    align-items: unset;
    justify-content: unset;
    gap: 40px;
  }

  header::before {
    content: '';
    display: block;
    position: fixed; 
    top: 0;
    left: 0; 
    width: 100%;
    height: 50px;
    background-color: #FCFAEC;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: 0.3s ease-out;
    transition: 0.3s ease-out;
  }

  header.open::before{
display: none;
  }

  header.scrolled.open::before{
    display: block;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }



  header.scrolled.open .header_inner{
    box-shadow: unset;
  }



  .global_nav {
    margin-top: 35px;
    padding: unset;
  }

  .open .toggle-menu {
    -webkit-transition: all 0.5s linear 1s;
    transition: all 0.5s linear 1s;
  }

  .open .toggle-menu .toggle-line {
    height: 0;
    background-color: #000;
  }

  .open .toggle-menu .toggle-line::before {
    background-color: #6C5D47;
    -webkit-animation: active-menu-barTop 0.6s forwards;
    animation: active-menu-barTop 0.6s forwards;
    transform: rotate(-45deg);
    top: 0;
  }

  .open .toggle-menu .toggle-line::after {
    background-color: #6C5D47;
    -webkit-animation: active-menu-barBottom 0.6s forwards;
    animation: active-menu-barBottom 0.6s forwards;
    transform: rotate(45deg);
    top: 0;
  }

  .open .header_nav{
    width: 100%;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    overflow: auto;
  }

  .global_nav ul {
    flex-flow: column;
    text-align: left;
  }

  .global_nav ul li {
    border-bottom: 1px solid #6C5D47;
    padding: unset;
    position: unset;
  }

  .global_nav ul li::before {
    display: none;
  }

  .global_nav ul li a {
    color: #6C5D47;
    font-size: 16px;
    font-weight: 500;
    line-height: 2;
    padding-bottom: 16px;

  }

  .header_contact {
    flex-flow: column;
    gap: 20px;
    margin-bottom: 100px;
  }

  .header_contact a.header_tell img {
    width: 335px;
    height: 80px;
  }

  .header_contact a.header_mail {
    width: 335px;
    height: 80px;
    border-radius: 10px;
    text-align: center;
    padding: 9px 0;
    box-shadow: 0 0 10px 0 rgba(34, 34, 34, .1);
    position: relative;
  }

  .header_contact a.header_mail p {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translate(-50%, 0);
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    line-height: 1;
  }

  .header_contact a.header_mail::before {
    content: '';
    display: inline-block;
    background-image: url(../../images/mail_icon.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .25);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translate(-50%, 0);
  }
}