@charset "utf-8";

/*header
***************************************************************/

.header {
  position: fixed;
  height: 80px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  background-color: #fff;
  z-index: 100;
}

.logo {
  line-height: 1;
  margin-left: 50px;
}

.logo_link {
  display: block;
}

.logo_img {
  width: 162px;
}

.gnav {
  display: flex;
  gap: 40px;
}

.gnav_left {
  display: flex;
  gap: 40px;
  align-items: center;
}

.gnav_left_list {
  overflow: hidden;
  height: 100%;
  line-height: 80px;
}

.gnav_left_link {
  font-size: 17px;
  letter-spacing: 0.1rem;
  color: #000;
  position: relative;
  overflow: hidden;
}

.gnav_left_link::after {
  content: "";
  bottom: -3px;
  left: -100%;
  width: 100%;
  height: 3px;
  position: absolute;
  background-color: #3eb6cf;
  transition: all 0.3s ease;
}

.gnav_right {
  display: flex;
  align-items: center;
  text-align: center;
}

.gnav_right_list {
  display: flex;
  height: 80px;
  width: 115px;
}

.gnav_right_list:nth-of-type(1) .gnav_right_link {
  color: #000;
  background-color: #f7f7f7;
}

.gnav_right_list:nth-of-type(2) .gnav_right_link {
  color: #fff;
  background-color: #333;
}

.gnav_right_list:nth-of-type(3) .gnav_right_link {
  color: #fff;
  background-color: #3eb6cf;
  line-height: 1.07rem;
}

.gnav_right_link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gnav_right_img {
  width: 24px;
}

.gnav_right_text {
  margin-top: 9px;
  font-size: 14px;
}

.hamburger {
  display: none;
}

.mask {
  display: none;
}

@media screen and (max-width: 1480px) {
  .gnav_left {
    gap: 20px;
  }

  .gnav_left_link {
    font-size: 15px;
  }
}

@media screen and (max-width: 1300px) {
  .gnav_right {
    display: none;
  }

  .gnav_left {
    margin-right: 20px;
  }
}

@media screen and (max-width: 940px) {
  .gnav_left {
    gap: 10px;
  }

  .gnav_left_link {
    font-size: 12px;
  }
}

/*sp
***************************************************************/

@media (min-width: 768px) {
  .gnav_left_link:hover::after {
    left: 0;
  }

  .gnav_right_link:hover {
    opacity: 0.6;
  }
}

@media (max-width: 767px) {
  .gnav {
    display: none;
  }

  .header {
    height: auto;
    text-align: left;
    z-index: 100;
    position: fixed;
    height: 50px;
  }

  .logo {
    position: absolute;
    top: 11px;
    left: 20px;
    width: 94px;
    height: 29px;
    margin-left: 0;
  }

  .logo_img {
    width: 94px;
  }

  .logo_mask_img {
    width: 94px;
  }

  .gnav_left_list_mask {
    padding: 15px 0 11px 3px;
    border-bottom: 1px solid #707070;
  }

  .gnav_left_list_mask:first-of-type {
    padding: 0 0 11px 3px;
  }

  .gnav_left_link_mask {
    color: #333;
  }

  .gnav_right_mask {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    text-align: center;
  }

  .gnav_right_list_mask_house {
    background-color: #f7f7f7;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .gnav_right_list_mask_event {
    background-color: #333;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .gnav_right_list_mask_contact {
    background-color: #3eb6cf;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .gnav_right_link_mask {
    display: flex;
    gap: 5px;
    padding: 11px 0;
  }

  .gnav_right_list_mask_house .gnav_right_link_mask {
    color: #333;
  }

  .gnav_right_list_mask_event .gnav_right_link_mask,
  .gnav_right_list_mask_contact .gnav_right_link_mask {
    color: #fff;
  }

  .gnav_right_img_mask {
    width: 19px;
    height: 15px;
    position: relative;
    top: 4px;
  }

  .gnav_right_list_mask_event .gnav_right_img_mask {
    height: 19px;
    position: relative;
    top: 3px;
  }

  .gnav_right_text_mask {
    font-size: 15px;
  }

  .header_tel_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    gap: 10px;
  }

  .header_tel_img {
    width: 22px;
  }

  .header_tel_num {
    font-size: 26px;
    font-weight: 300;
    color: #333;
  }

  .header_time {
    font-size: 14px;
    text-align: center;
    margin-top: 6px;
  }

  .header_sns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  /* ハンバーガーメニューのスタイル */
  .hamburger {
    position: fixed;
    top: 15px;
    right: 20px;
    width: 34px;
    height: 24px;
    display: flex;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: block;
  }

  .hamburger.open {
    width: 37px;
    height: 30px;
    z-index: 1001;
  }

  .btn_blue {
    width: 6px;
    height: 6px;
    position: absolute;
    transition: all 0.3s ease;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    transition: all 0.3s ease;
  }

  .hamburger.open .btn_blue {
    opacity: 0;
  }

  .btn_black {
    width: 10px;
    height: 10px;
    position: absolute;
    transition: all 0.3s ease;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 1000;
  }

  .hamburger.open .btn_black {
    opacity: 1;
  }

  .hamburger_text {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.04rem;
    font-weight: 300;
    color: #3eb6cf;
    position: absolute;
    top: 6px;
    left: 50%;
    width: 34px;
    height: 18px;
    transform: translate(-50%, 0);
  }

  .hamburger.open .hamburger_text {
    opacity: 0;
  }

  .hamburger_text_open {
    font-size: 14px;
    line-height: auto;
    letter-spacing: 0.04rem;
    font-weight: 300;
    position: absolute;
    top: 12px;
    left: 50%;
    width: 37px;
    height: 18px;
    transform: translate(-50%, 0);
    opacity: 0;
  }

  .hamburger.open .hamburger_text_open {
    opacity: 1;
    z-index: 100;
  }

  /* 初期位置 */
  .btn_blue:nth-child(1) {
    transform: translateX(calc(-50% - 10px));
  }

  .btn_blue:nth-child(2) {
    transform: translateX(-50%);
  }

  .btn_blue:nth-child(3) {
    transform: translateX(calc(-50% + 10px));
  }

  /* メニュー背景 */
  .mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    transform: translateY(calc(-100vh - 150px));
    background-color: #fff;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 75px 50px 45px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mask.open {
    transform: translate(0);
  }
}
