header {
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: center;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.122);
}

.header-wrap {
  width: 95%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;

  .logo {
    width: 80px;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  nav {
    display: flex;
    align-items: center;
    gap: 10px;

    a {
      color: #31404c;
      text-decoration: none;
      position: relative;
      font-size: 16px;
      font-weight: 600;

      &:after {
        content: "";
        width: 0%;
        position: absolute;
        left: 50%;
        bottom: 0;
        background-color: #183044;
        transition: 0.3s ease;
        height: 1px;
        transform: translateX(-50%);
      }

      &:hover {
        cursor: pointer;
        color: #183044;
      }

      &:hover::after {
        width: 100%;
      }
    }
  }

  .signContent {
    display: flex;
    align-items: center;
    gap: 10px;

    .loginBtn {
      padding: 10px 20px;
      border: none;
      background-color: #183044;
      border-radius: 8px;
      color: #fff;
      font-size: 15px;
      cursor: pointer;
      transition: 0.3s ease;

      &:hover {
        transform: scale(1.03);
      }
    }
  }
}

main {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#mainTitleName {
  text-shadow: 1px 0px #183044, 0px 1px #183044, -1px 0px #183044,
    0px -1px #183044;
  color: white;
  font-size: 55px;
  margin-top: 40px;

  span {
    color: #183044;
    text-shadow: none;
  }
}

.search-box {
  width: 90%;
  max-width: 800px;
  border: 1px solid #dcdcdc;
  border-radius: 50px;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 20px;

  .button {
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    width: 56px;
    height: 56px;
    margin: 0;
    overflow: hidden;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    border: 0;
  }

  .button:before,
  .button:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 7px;
  }

  .button:before {
    border: 4px solid #dcdcdc;
    transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms,
      transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
  }

  .button:after {
    border: 4px solid #183044;
    transform: scale(1.3);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
      transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
  }

  .button:hover:before,
  .button:focus:before {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
      transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .button:hover:after,
  .button:focus:after {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms,
      transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
  }

  .button-box {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
  }

  .button-elem {
    display: block;
    width: 20px;
    height: 20px;
    margin: 17px 18px 0 18px;
    transform: rotate(180deg);
    fill: #183044;
  }

  .button:hover .button-box,
  .button:focus .button-box {
    transition: 0.4s;
    transform: translateX(-56px);
  }
}
.fa-magnifying-glass {
  margin-left: 10px;
  font-size: 20px;
  margin-left: 15px;
}

#search {
  width: 100%;
  max-width: 800px;
  height: 100%;
  border: none;
  position: relative;
  border-radius: 50px;
  padding: 20px 10px;
  font-size: 16px;
}

#search:focus {
  outline: none;
  border: none;
}

.country {
  display: none;
  width: 100%;
  max-height: 500px;
  border: 1px solid #dcdcdc;
  position: absolute;
  top: 80px;
  left: 0;
  background-color: #fff;
  box-shadow: 0px 10px 10px #0000002f;
  overflow-y: auto;
  max-height: 420px;
  z-index: 1;
  border-radius: 10px;
}

.country > li {
  width: 100%;
  height: 70px;
  display: flex;
  gap: 10px;
  padding-top: 10px;
  padding-left: 10px;
  box-sizing: border-box;
  cursor: pointer;
  transition: 0.3s ease;

  &:hover {
    background-color: #fafafa;
  }
}

.country > li:first-child {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: default !important;
  transition: 0s ease !important;

  &:hover {
    background-color: #ffffff !important;
  }
}

.country-img {
  width: 70px;

  img {
    width: 100%;
    border: 2px solid #dcdcdc;
  }
}

#visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.slide {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
}

.slider {
  display: flex;
  width: 100%;
  transition: 0.5s ease;
}

.slider img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.item {
  flex-shrink: 0;
  width: 100%;
}

/* 이벤트구역 */
/*#event {
  width: 100%;
  display: flex;
  justify-content: center;
}

.eventBox {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
}

.eventItem {
  width: 200px;
  height: 50px;
  background-color: #245884;
}*/

/*추천상품*/

#suggest {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.suggest-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.suggestBox {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.suggestItem {
  max-width: 280px;
  width: 95%;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
  cursor: pointer;
  overflow: hidden;

  img {
    transition: 0.3s ease;
  }
}

@media screen and (max-width: 500px) {
  .suggestItem {
    max-width: 500px;
  }
}
.suggestItem:hover {
  transform: translateY(-5px);

  img {
    transform: scale(1.1);
    padding-bottom: 5px;
  }
}

/* 여행 */

#travel {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.travel-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.travelBox {
  width: 100%;
}

.travelItem {
  width: 100%;

  img {
    width: 100%;
  }
}
.detail {
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #dcdcdc;
  margin-bottom: 100px;
  transition: 0.3s ease;

  a {
    padding-top: 1px;
    text-decoration: none;
    color: #000;
  }
  i {
    transition: 0.3s ease;
  }
}

.detail:hover {
  cursor: pointer;
  gap: 15px;
}

footer {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  position: relative;
  bottom: 0;
}
.footer-container {
  width: 100%;
  max-width: 1200px;
  border-top: 1px solid #dcdcdc;
  display: flex;
  justify-content: space-between;
}

.footer-container > * {
  padding-top: 10px;
}

.fa-brands,
.fa-share {
  font-size: 25px;
}

.service {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.service-btn {
  width: 100px;
  height: 100px;
  position: relative;
}

.service-item {
  width: 100px;
  height: 100px;
  position: relative;
  background-color: #dcdcdc;
  padding: 10px 15px;
  border-radius: 100%;
  border: 1px solid #dcdcdc;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  color: #333;
}

.service-item {
  top: 50px;
  right: -30px;
}

.service-item::before {
  content: "고객센터";
  font-size: 10px;
  position: absolute;
  top: 0px;
  left: -40px;
  width: 100px;
  opacity: 0;
  transition: 0.3s ease;
}

.service-item:hover::before {
  opacity: 1;
}

#customer-service:target {
  opacity: 1;
  height: 500px;
  pointer-events: auto;
}

#customer-service {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 200px;
  height: 0;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: end;
  padding: 10px;
  transition: 0.3s ease;
  opacity: 0;
  border-radius: 10px;
  border: 1px solid #777;
}

#customer-service input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  outline: none;
  border: 1px solid #777;
  padding: 10px;
}

.service-item:hover {
  transform: scale(1.1);
}
.service-close-btn {
  width: 30px;
  border: none;
  color: #333;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  position: absolute;
  top: 10px;
  right: 10px;
  text-decoration: none;
  transition: 0.3s ease;
}

.service-close-btn:hover {
  transform: scale(1.1);
  color: red;
}
