@charset "utf-8";

body.is-checked {
  overflow: hidden;
}
.header__overlay {
    background: rgba(61, 61, 61, 0.22);
    cursor: pointer;
    height: 100vh;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.6s, visibility 0.6s;
    visibility: hidden;
    width: 100%;
    z-index: 50;
 }
.header__overlay.is-checked {
  opacity: 0.8;
  visibility: visible;
}

.header {
  position: fixed;
  top: 0;
  left: 0; 
  width: 100%;
  height: auto;
  z-index: 90;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px 15px 14px;
  border-bottom: 1px solid #C7C6C5;
  background: #F8F6F4;
}
@media screen and (min-width: 1200px) {
  .header__inner {
    padding: 11px 25px 11px 14px;
  }
}

.header__logo {
  aspect-ratio: 223 / 47;
  width: 223px;
  height: auto;
  transition: opacity 0.3s;
}
.header__logo:hover {
  opacity: 0.7;
}

.header__nav {
  display: none !important;
}
@media screen and (min-width: 1200px) {
  .header__nav {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
  }
}
@media screen and (min-width: 1350px) {
  .header__nav {
    gap: 32px;
  }
}

.header__link div p {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 23px;
  text-align: center;
  transition: color 0.3s;
}
.header__link div p:hover {
  color: #4B7C63;
}

.header__btn-tel {
  width: 173px;
  padding: 6px 16px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #4D4D4D;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;

  &::before {
    content: "";
    background: url('../images/icon-tel.svg') top left / cover no-repeat;
    width: 7px;
    height: 19px;
  }
    &:hover {
   opacity: 0.7;
  }
}

.header__btn {
  margin-left: -10px;
  width: 132px;
  padding: 16px 15px;
  border-radius: 8px;
  background: #4D4D4D;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;

  &::before {
    content: "";
    background: url('../images/icon-mail.svg') top left / cover no-repeat;
    width: 13px;
    height: 10px;
  }
  &:hover {
   opacity: 0.7;
  }
}
@media screen and (min-width: 1350px) {
  .header__btn {
    margin-left: -23px;
  }
}

.header__btn p {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
}

.header__open {
  display: block;
  width: 60px;
  height: 60px;
  position: fixed;
  top: 8px;
  right: 20px;
  z-index: 51;
  border-radius: 8px;
  background: linear-gradient(90deg, #2d5c45 0%, #52a87e 100%);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.3s;
  z-index: 999999997;
}
@media screen and (min-width: 1200px) {
  .header__open {
    display: none;
  }
}

.header__open.is-checked {
  z-index: 1000000000;
}
.header__content {
  z-index: 999999999;
}

.header__open:hover {
  opacity: 0.8;
}

.header__bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s linear, top 0.3s linear;
}
.header__bar:nth-of-type(1){
    top: 14.5px;
}
.header__bar:nth-of-type(2){
    top: 23px;
}
.header__bar:nth-of-type(3){
    top: 32px;
}
.header__open.is-checked > .header__bar:nth-of-type(1) {
    top: 33px;
    transform: rotate(45deg) translateX(-50%);
    left: 45%;
}
.header__open.is-checked > .header__bar:nth-of-type(2) {
    display: none;
}
.header__open.is-checked > .header__bar:nth-of-type(3) {
    top: 14.5px;
    transform: rotate(-45deg) translateX(-50%);
    left: 45%;
}

.header__open-text {
  position: absolute;
  bottom: 10px;
  left: 52%;
  transform: translateX(-50%);
  font-size: 10px;
  line-height: 1;
  color: #fff;
  width: max-content;
}

.header__content {
  width: 100%;
  max-width: 460px;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  right: 0;
  padding: 100px 50px;
  background: #F8F6F4;
  transform: translateX(100%);
  transition: transform 0.3s linear;
  overflow: auto;
}
.header__content.is-checked {
    transform: translateX(0);
  }

.header__content-menu {
  display: flex;
  flex-direction: column;
}

.header__content-link {
  font-size: 14px;
  padding-block: 20px;
  border-bottom: 1px dotted #898989;
  text-align: center;
}
.header__content-link:hover {
  background: gainsboro;
}
