/***************************************
Header
***************************************/

.h-onlyPC {
  display: none;
}

.common-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  height: 64px;
  background: #fff;
  border-bottom: 1.5px solid #8C7826;
  color: #111;
  font-weight: 500;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
}

.common-header .header-logo {
  width: 112px;
  height: auto;
}

.common-header .header__navs {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.common-header .header__nav1 {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.common-header .header__nav1_switchlang {
  display: flex;
  align-items: center;
  line-height: 1;
  text-wrap: nowrap;
}

.common-header .header__nav1_switchlang {
  gap: 20px;
  color: #111;
  font-size: var(--fz14);
  font-weight: 500;
}

.common-header .header__nav1_switchlang .lang_en {
  position: relative;
}

.common-header .header__nav1_switchlang .lang_en::before {
  content: '';
  display: block;
  width: 1px;
  height: 19px;
  background: #111;
  position: absolute;
  top: 50%;
  left: -9px;
  translate: 0 -50%;
}

[lang="ja"] .common-header .lang_ja {
  color: #777;
  font-weight: 400;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}
[lang="en"] .common-header .lang_en {
  color: #777;
  font-weight: 400;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.common-header .header__nav1_sns {
  gap: 12px;
}


.common-header .toggle-search {
  border-radius: 3.516px;
  background: #111;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.common-header .btn-hamburger {
  width: 30px;
  height: 30px;
  position: relative;
}

.common-header .btn-hamburger span {
  background: #000;
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s;
}

.common-header .btn-hamburger span:first-child {
  top: 6px;
  right: 4px;
}

.common-header .btn-hamburger span:nth-child(2) {
  top: 13px;
  right: 4px;
}

.common-header .btn-hamburger span:last-child {
  width: 16px;
  top: 20px;
  right: 4px;
}

.common-header .btn-hamburger.open span:first-child {
  transform: rotate(45deg);
  top: 12px;
}

.common-header .btn-hamburger.open span:nth-child(2) {
  transform: rotate(-45deg);
  top: 12px;
}

.common-header .btn-hamburger.open span:last-child {
  display: none;
}

.common-header .header__nav2 {
  visibility: hidden;
  opacity: 0;
  width: 100%;
  max-width: 600px;
  height: calc(100vh - 64px);
  position: fixed;
  top: 64px;
  right: 0;
  translate: 100vw 0;
  overflow-y: auto;
  padding: 24px;
  font-family: var(--inter);
  transition: translate 0.5s ease, opacity 0.3s, visibility 0.3s;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 15px 15px 10px rgba(0, 0, 0, 0.1);
}

body:has(.btn-hamburger.open) .common-header .header__nav2 {
  visibility: visible;
  translate: 0 0;
  opacity: 1;
}

.common-header .header__nav2 .header__nav2-menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.common-header .btn-submenu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.common-header .btn-submenu::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 8px;
  background: url(/assets/img/chevron_black_down.svg) no-repeat center / contain;
  transition: all 0.7s;
}

.common-header .btn-submenu.submenu-open::after {
  transform: rotate(180deg);
}

.common-header .header__submenu-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: all 0.5s;
}

.common-header .header__menu-item:has(.submenu-open) .header__submenu-wrapper {
  grid-template-rows: 1fr;
}

.common-header .header__submenu-container {
  overflow: hidden;
}

.common-header .header__submenu {
  overflow-y: hidden;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.common-header .header__submenu a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 13px;
  background: url(/assets/img/chevron_black_right.svg) no-repeat center / contain;
  margin-right: 6px;
}

.common-header .header__nav2 .link-contact {
  display: flex;
  padding: 14.063px 18.75px;
  justify-content: center;
  align-items: center;
  gap: 20px;
  align-self: stretch;
  border-radius: 9.375px;
  background: linear-gradient(95deg, #8C7826 18.33%, #9E8427 50%, #BFA74A 81.67%);
  font-size: var(--fz18);
  font-weight: 700;
  font-family: var(--inter);
  margin-top: 30px;
}

.common-header .header__nav2 .link-contact::after {
  content: '';
  display: block;
  width: 27px;
  height: 20px;
  background: url(/assets/img/icon_contact.svg) no-repeat center / contain;
}

.common-header .header__nav2-sp-contents {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.common-header .header__nav2 .header__nav1_joinus,
.common-header .header__nav2 .header__nav1_login {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.common-header .header__nav2_sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  line-height: 1;
  border-top: 1px solid #000;
  margin-top: 30px;
  padding: 20px 0 60px 0;
}

.common-header .header__nav2_sns a {
  border: 1.6px solid #000;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.common-header .header__nav2_sns a img {
  width: 33px;
  height: 33px;
}

.common-header .search-area {
  position: fixed;
  /* visibility: hidden; */
  display: none;
  /* opacity: 0; */
  border-bottom: 1px solid #555;
  top: 64px;
  left: 0;
  /* translate: -100vw 0; */
  width: 100vw;
  height: auto;
  z-index: 100;
  padding: 36px 24px 30px;
  /* transition: translate 0.3s; */
  background: #fff;
}

.common-header:has(.toggle-search.open) .search-area {
  /* visibility: visible; */
  display: block;
  /* translate: 0 0; */
  /* opacity: 1; */
}

.common-header .search-area input {
  border: 1px solid #EAE8E5;
  background: #F7F6F5;
  width: 100%;
  height: 56px;
  margin-top: 16px;
  padding: 14px 10px;
}

.btn-search-submit {
  display: flex;
  width: 400px;
  max-width: 100%;
  height: 56px;
  justify-content: center;
  align-items: center;
  gap: 20px;
  align-self: stretch;
  border-radius: 8px;
  border: 1px solid #000;
  background: #FFF;
  margin: 32px auto 0;
  font-size: var(--fz18);
  font-weight: 700;
}

.btn-search-submit::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url(/assets/img/icon_search_black.svg) no-repeat center / contain;
}

.btn-search-close {
  display: flex;
  width: 400px;
  max-width: 100%;
  height: 56px;
  justify-content: center;
  align-items: center;
  gap: 20px;
  align-self: stretch;
  border-radius: 8px;
  background: #EFEFEF;
  margin: 60px auto 0;
  font-size: var(--fz18);
  font-weight: 700;
}

.btn-search-close::after {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  background: url(/assets/img/icon_close.svg) no-repeat center / contain;
}

.btn-search-close:hover {
  background: #d7d7d7;
  opacity: 1;
}

.common-header .link-contact-pc {
  display: none;
}

@media (min-width:1280px) {
  .h-onlyPC {
    display: block;
  }

  .h-onlySP {
    display: none;
  }
  
  .common-header {
    /* display: flex;
    align-items: center;
     */
    justify-content: space-between;
    gap: 10px;
    padding: 0 142px 0 30px;
    height: 100px;
    /* background: #fff; */
    border-bottom: 2px solid #8C7826;
    /* position: relative; */
    overflow-x: clip;

  }

  .common-header .header-logo {
    width: 152px;
    height: auto;
  }

  .common-header .header__navs {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
  }

  .header__nav-wrapper {

  }

  .common-header .header__nav1 {
    /* display: flex;
    gap: 16px; */
    padding-top: 15px;
  }

  .common-header .header__nav1_joinus,
  .common-header .header__nav1_login,
  .common-header .header__nav1_switchlang,
  .common-header .header__nav1_sns {
    display: flex;
    align-items: center;
    line-height: 1;
    text-wrap: nowrap;
  }

  .common-header .header__nav1_joinus,
  .common-header .header__nav1_login {
    gap: 4px;
  }
  
  .common-header .header__nav1_login {
    padding: 0 8px;
  }

  /* .common-header .header__nav1_joinus,
  .common-header .header__nav1_login {
    gap: 4px;
  } */

  /* .common-header .header__nav1_switchlang {
    gap: 20px;
    color: #111;
    font-size: var(--fz14);
    font-weight: 500;
  } */

  /* .common-header .header__nav1_switchlang .lang_en {
    position: relative;
  } */

  /* .common-header .header__nav1_switchlang .lang_en::before {
    content: '';
    display: block;
    width: 1px;
    height: 19px;
    background: #111;
    position: absolute;
    top: 50%;
    left: -9px;
    translate: 0 -50%;
  } */

  /* [lang="ja"] .common-header .lang_ja {
    color: #777;
    font-weight: 400;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
  }
  [lang="en"] .common-header .lang_en {
    color: #777;
    font-weight: 400;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
  } */

  .common-header .header__nav1_sns {
    gap: 12px;
  }

  .common-header .header__nav1_sns a {
    border: 1px solid #000;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
  }

  /* .common-header .toggle-search {
    border-radius: 3.516px;
    background: #111;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
  } */


  .common-header .header__nav2 {
    visibility: visible;
    opacity: 1;
    width: auto;
    max-width: unset;
    height: auto;
    position: static;
    top: 64px;
    left: 0;
    translate: 0 0;
    overflow-y: visible;
    padding: 0;
    /* font-family: var(--inter); */
    transition: translate 0.5s ease, opacity 0.5s ease;
    z-index: 1000;
    box-shadow: none;
    margin-top: 16px;
  }

  /* body:has(.btn-hamburger.open) .common-header .header__nav2 {
    visibility: visible;
    translate: 0 0;
    opacity: 1;
  } */

  .common-header .header__nav2 .header__nav2-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 24px;
  }

  .common-header .header__nav2 .header__nav2-menu .header__menu-item {
    width: fit-content;
    position: relative;
    padding: 0 0 8px;
  }

  .common-header .header__nav2 .header__nav2-menu .header__menu-item:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-decoration-color: #8C7826;
  }

  .common-header .btn-submenu {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .common-header .header__submenu-wrapper {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    width: fit-content;
    height: fit-content;
    z-index: 1001;
    transition: visibility 0.3s, opacity 0.3s;
    text-wrap: nowrap;
  }
  
  .common-header .header__menu-item:has(.submenu-open) .header__submenu-wrapper {
    visibility: visible;
    opacity: 1;
  }
  
  .common-header .header__submenu {
    overflow: visible;
    padding: 15px 30px 15px 20px;
    border: 1px solid #8C7826;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    bottom: -8px;
    translate: 0 100%;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    font-size: var(--fz18);
  }

  .common-header .header__submenu a::before {
    content: none;
    /* display: inline-block;
    width: 8px;
    height: 13px;
    background: url(/assets/img/chevron_black_right.svg) no-repeat center / contain;
    margin-right: 6px; */
  }

  .common-header .header__nav2 .link-contact {
    display: none;
  }

  .common-header .link-contact-pc {
    /* display: flex;
    padding: 14.063px 18.75px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    align-self: stretch;
    border-radius: 9.375px;
    background: linear-gradient(95deg, #8C7826 18.33%, #9E8427 50%, #BFA74A 81.67%);
    font-size: var(--fz18);
    font-weight: 700;
    font-family: var(--inter); */
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: 120px;
    height: 100%;
    padding: 2px 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: linear-gradient(95deg, #8C7826 18.33%, #9E8427 50%, #BFA74A 81.67%);
  }

  .common-header .header__nav2 .link-contact::after {
    content: '';
    display: block;
    width: 27px;
    height: 20px;
    background: url(/assets/img/icon_contact.svg) no-repeat center / contain;
  }

  .common-header .header__nav2-sp-contents {
    display: none;
    /* justify-content: center;
    align-items: center;
    gap: 24px; */
  }

  .common-header .header__nav2 .header__nav1_joinus,
  .common-header .header__nav2 .header__nav1_login {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
  }

  .common-header .header__nav2_sns {
    display: none;
    /* justify-content: center;
    align-items: center;
    gap: 24px;
    line-height: 1;
    border-top: 1px solid #000; */
  }

  /* .common-header .header__nav2_sns a {
    border: 1.6px solid #000;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    display: grid;
    place-items: center;
  } */

  /* .common-header .header__nav2_sns a img {
    width: 33px;
    height: 33px;
  } */

  .common-header .search-area {
    top: 100px;
    height: auto;
    padding: 36px 24px 30px;
  }

  .common-header:has(.toggle-search.open) .search-area {
    /* visibility: visible; */
    display: block;
    /* translate: 0 0; */
    /* opacity: 1; */
  }

  .common-header .search-area form {
    max-width:1440px;
    margin-inline: auto;
  }

  .common-header .search-area input {
    border: 1px solid #EAE8E5;
    background: #F7F6F5;
    width: 100%;
    height: 56px;
  }

  .btn-search-submit {
    display: flex;
    width: 400px;
    max-width: 100%;
    height: 56px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    align-self: stretch;
    border-radius: 8px;
    border: 1px solid #000;
    background: #FFF;
    margin: 32px auto 0;
    font-size: var(--fz18);
    font-weight: 700;
  }

  .btn-search-submit::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(/assets/img/icon_search_black.svg) no-repeat center / contain;
  }

  .btn-search-close {
    display: flex;
    width: 400px;
    max-width: 100%;
    height: 56px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    align-self: stretch;
    border-radius: 8px;
    background: #EFEFEF;
    margin: 60px auto 0;
    font-size: var(--fz18);
    font-weight: 700;
  }

  .btn-search-close::after {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background: url(/assets/img/icon_close.svg) no-repeat center / contain;
  }

  .btn-search-close:hover {
    background: #d7d7d7;
    opacity: 1;
  }
}

/***************************************
Footer
***************************************/
.common-footer {
  position: relative;
  overflow-y: visible;
}

.common-footer::before {
  content: '';
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 375 / 50;
  background: url(/assets/img/bg_footer_sp.svg) no-repeat center / 100%;
  position: absolute;
  top: 0;
  translate: 0 -50%;
  z-index: 2;
}

.common-footer-contents {
  padding: 64px 18px;
  width: 100%;
  max-width: 400px;
}

.common-footer .footer-logo {
  width: 164px;
  height: auto;
}

.common-footer .footer-nav {
  display: flex;
  gap: 32px;
  justify-content: center;
  width: 100%;
  border-bottom: 1px solid #000;
}

.common-footer .footer_joinus,
.common-footer .footer_login,
.common-footer .footer_contact,
.common-footer .footer_sns {
  display: flex;
  align-items: center;
  line-height: 1;
  text-wrap: nowrap;
  font-weight: 600;
}

.common-footer .footer_joinus,
.common-footer .footer_login,
.common-footer .footer_contact {
  gap: 4px;
}

.common-footer .footer_sns {
  gap: 12px;
  justify-content: center;
}

.common-footer .footer_sns a {
  border: 1px solid #000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
}

.common-footer .footer_sns a img {
  width: 80%;
  height: auto;
}

@media (min-width:768px) {
  .common-footer::before {
    content: '';
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1441 / 50;
    background: url(/assets/img/bg_footer_pc.svg) no-repeat center / 100%;
    position: absolute;
    top: 0;
    translate: 0 -50%;
    z-index: 2;
  }
  
    .common-footer-contents {
      max-width: 1200px;
      margin-inline: auto;
    }

  .footer__nav-pc-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer__menu-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* min-width: 130px; */
  }

  
  .footer__submenu-wrapper {
    padding-left: 4px;
    font-size: var(--fz14);
  }

  .footer__submenu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .footer__submenu > li::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    background: url(/assets/img/chevron_black_right.svg) no-repeat center bottom / contain;
    margin-right: 6px;
  }

  .menu-title {
    color: var(--dark-gold);
    font-family: var(--inter);
    font-weight: 700;
  }

    
  .common-footer .footer-nav {
    display: flex;
    gap: 32px;
    justify-content: end;
    width: 100%;
    border-bottom: 1px solid #000;
  }

  .footer-pc-flex {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }

  .common-footer .footer_sns a {
    border: 1px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
  }

  .footer-pc-flex > nav > ul {
    display: flex;
    gap: 8px 24px;
    flex-wrap: wrap;
    font-size: var(--fz14);
  }


}
