@charset "utf-8";

/* header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  background-color: #fff;
}
.header__container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
  height: 99px;
  padding-left: clamp(1.000rem, -2.167rem + 6.597vw, 5.750rem);
  border: 1px solid #3c3c3c;
}
.header__left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header__left a {
  display: block;
  width: clamp(5.000rem, 1.375rem + 7.552vw, 10.438rem);
}
.header__right {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.header__right > a {
  display: flex;
  flex-shrink: 0;
}
.header__items {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: clamp(0.375rem, -1.875rem + 4.688vw, 3.750rem);
  margin-right: clamp(0.250rem, -0.833rem + 2.257vw, 1.875rem);
}
.header__items a {
  flex-shrink: 0;
}
.header__item {
  font-size: clamp(0.688rem, 0.479rem + 0.434vw, 1.000rem);
  line-height: 1;
  white-space: nowrap;
}
.header__tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.375rem, 0.125rem + 0.521vw, 0.750rem);
  height: 100%;
  padding-right: clamp(0.625rem, 0.375rem + 0.521vw, 1.000rem);
  padding-left: clamp(0.625rem, 0.375rem + 0.521vw, 1.000rem);
  background-color: #f0f8ec;
}
.header-tel__text {
  font-size: clamp(0.688rem, 0.479rem + 0.434vw, 1.000rem);
  line-height: 1;
  white-space: nowrap;
}
.header-tel__bottom {
  display: flex;
  align-items: center;
  gap: clamp(0.375rem, 0.167rem + 0.434vw, 0.688rem);
}
.header-tel__bottom .header-tel__icon {
  width: clamp(1.000rem, 0.667rem + 0.694vw, 1.500rem);
  flex-shrink: 0;
}
.header-tel__number {
  font-size: clamp(0.875rem, 0.458rem + 0.868vw, 1.500rem);
  font-weight: 700;
  line-height: 1;
  color: #349b8b;
  white-space: nowrap;
  transition: all 0.5s;
}
.header__tel:hover .header-tel__number {
  color: #c4841e;
}
/* PCは番号の色変更のみ（link-opacityの透過を打ち消し） */
.header__right > a.link-opacity:hover {
  opacity: 1;
}
.header__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.500rem, 0.292rem + 0.434vw, 0.812rem);
  height: 100%;
  padding-right: clamp(1.000rem, 0.583rem + 0.868vw, 1.625rem);
  padding-left: clamp(1.000rem, 0.542rem + 0.955vw, 1.688rem);
  background-color: #349b8b;
  transition: background-color 0.5s;
}
.header-contact__text {
  font-size: clamp(0.812rem, 0.521rem + 0.608vw, 1.250rem);
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  transition: color 0.5s;
}
.header__contact .header-tel__icon {
  position: relative;
  flex-shrink: 0;
  width: clamp(1.250rem, 0.833rem + 0.868vw, 1.875rem);
  height: clamp(1.250rem, 0.833rem + 0.868vw, 1.875rem);
  background-color: #c4841e;
  border-radius: 50%;
}
.header__contact .header-tel__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35%;
  height: 35%;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translate(-70%, -50%) rotate(45deg);
}
.header__right > a:hover .header__contact {
  background-color: #c3dbb7;
}
.header__right > a:hover .header-contact__text {
  color: #000;
}

/* hamBtn */
.hamBtn {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 43px;
  height: 49px;
  background-color: #bdcec8;
  cursor: pointer;
}
.hamBar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 10px;
}
.hamBar div {
  width: 100%;
  height: 1px;
  background-color: #3c3c3c;
  transition: transform 0.3s, opacity 0.3s;
}
.hamBtn__text {
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}
.hamBtn.active .hamBar div:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.hamBtn.active .hamBar div:nth-child(2) {
  opacity: 0;
}
.hamBtn.active .hamBar div:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* sp__menu */
.sp__menu {
  display: none;
}

@media (max-width: 1023px) {
  .header {
    background-color: #F7F8F5;
  }
  .header__container {
    height: 49px;
    padding-right: 43px;
    padding-left: 20px;
    border-width: 0.5px;
  }
  .header__left a {
    width: 84px;
  }
  .header__items {
    display: none;
  }
  .header__tel {
    width: 52px;
    padding: 0;
    background-color: #fff;
    border-left: 0.5px solid #707070;
    transition: all 0.5s;
  }
  .header-tel__text,
  .header-tel__number {
    display: none;
  }
  /* SPは番号非表示のため透過ホバー */
  .header__tel:hover {
    opacity: 0.5;
  }
  .header-tel__bottom {
    gap: 0;
  }
  .header-tel__bottom .header-tel__icon {
    width: 19px;
  }
  .header__contact {
    width: 124px;
    padding-right: 16px;
    padding-left: 16px;
    gap: 8px;
  }
  .header-contact__text {
    font-size: 12px;
  }
  .header__contact .header-tel__icon {
    width: 15px;
    height: 15px;
  }
  .header__contact .header-tel__icon::after {
    border-width: 1px;
  }
  .hamBtn {
    display: flex;
  }
  .sp__menu {
    display: block;
    position: fixed;
    top: 49px;
    left: 0;
    z-index: 105;
    width: 100%;
    height: calc(100% - 49px);
    background-color: #bdcec8;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .sp__menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .sp-menu__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .sp-menu__container {
    padding: 52px 40px 0;
  }
  .sp-menu__items {
    display: flex;
    flex-direction: column;
        max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .sp-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 59px;
    border-bottom: 0.5px solid #707070;
  }
  .sp-menu-item__text {
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
  }
  .sp-menu-item__icon {
    width: 12px;
    flex-shrink: 0;
  }
  .sp-menu__text {
    margin-top: auto;
    padding: 40px 0 6px 1px;
    font-size: 33px;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .header__container {
    padding-left: 12px;
  }
  .header__left a {
    width: 72px;
  }
}
