/* contact */
.contact {
  width: 100%;
  padding: 50px 15px 100px;
}
.contact .container {
  border: 1px solid #f5f5f5;
}
.contact h2 {
  margin-bottom: 40px;
}
.contact_items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contact_item {
  width: 100%;
  border: 1px solid #f5f5f5;
  display: flex;
  flex-wrap: wrap;
}
.contact_item_map {
  width: 25%;
  display: block;
}
.contact_item_map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact_item_content {
  width: 35%;
  padding: 10px 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 10px;
}
.contact_item_content_title {
  font-weight: 700;
  font-size: 24px;
  color: #2d4744;
  font-size: calc(18px + 6 * ((100vw - 370px) / (1920 - 370)));
}
.contact_item_content_detail {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact_item_content_detail li {
  display: flex;
  align-items: center;
  gap: 3px;
}
.contact_item_content_detail li svg {
  min-width: 15px;
}
.contact_item_content_detail a {
  font-weight: 400;
  font-size: 16px;
  font-size: calc(14px + 2 * ((100vw - 370px) / (1920 - 370)));
  line-height: 140%;
  color: #39464a;
  text-decoration: none;
}
.contact_item_content_btn {
  font-weight: 600;
  font-size: 18px;
  font-size: calc(14px + 4 * ((100vw - 370px) / (1920 - 370)));
  background: transparent;
  color: #39464a;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.contact_item_img {
  width: 40%;
  height: 100%;
  object-fit: cover;
}
.contact_item_place {
  width: 100%;
  padding: 0 20px;
  background: #f5f5f5;
  position: relative;
  max-height: 0;
  overflow: hidden;
}
.contact_item_place_active {
  max-height: 500px;
  padding: 20px;
}
.contact_item_place_title {
  font-weight: 600;
  font-size: 16px;
  line-height: 120%;
  color: #2d4744;
  margin-bottom: 20px;
  padding-right: 30px;
}
.contact_item_place_items {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
}
.contact_item_place_item {
  padding: 10px 20px;
  border: none;
  color: black;
  font-size: 16px;
  background: white;
  text-decoration: none;
  transition: all linear 0.2s;
}
.contact_item_place_close {
  position: absolute;
  right: 15px;
  top: 15px;
  cursor: pointer;
  width: 15px;
  height: 15px;
}
.contact_item_place_close svg {
  width: 100%;
  height: 100%;
}
.contact_item_place_close path {
  fill: #3e635f;
}
@media (hover: hover) {
  .contact_item_content_btn:hover {
    text-decoration: underline;
  }
  .contact_item_place_item:hover {
    background-color: #3e635f;
    color: #fff;
  }
}
@media screen and (max-width: 1000px) {
  .contact_item_map {
    width: 35%;
    order: 1;
  }
  .contact_item_content {
    width: 65%;
    order: 2;
  }
  .contact_item_img {
    width: 100%;
    aspect-ratio: 3/1.5;
    order: 4;
    margin-top: 20px;
  }
  .contact_item_place {
    order: 3;
  }
}
@media screen and (max-width: 700px) {
  .contact h2 {
    margin-bottom: 30px;
  }
  .contact_item_map {
    width: 40%;
  }
  .contact_item_content {
    width: 60%;
  }
}
@media screen and (max-width: 600px) {
  .contact_item_map {
    width: 45%;
  }
  .contact_item_content {
    width: 55%;
    padding: 10px;
  }
  .contact_item_place {
    padding: 0 10px;
  }
  .contact_item_place_active {
    padding: 20px 10px;
  }
  .contact_item_place_title {
    margin-bottom: 15px;
  }
  .contact_item_place_items {
    gap: 10px;
  }
  .contact_item_place_item {
    padding: 5px 10px;
  }
}
@media screen and (max-width: 500px) {
  .contact_item_place_close {
    right: 10px;
    top: 10px;
  }
  .contact_item_map {
    width: 100%;
  }
  .contact_item_content {
    width: 100%;
    padding: 20px 10px;
    gap: 15px;
  }
  .contact_item_img {
    margin-top: 0;
    aspect-ratio: auto;
  }
}
