@charset "UTF-8";
/* =========================================================
  용인수지노인복지관 : 공통 변수
========================================================= */
/* =========================================================
  용인수지노인복지관 : 공통 믹스인 (미디어쿼리)
========================================================= */
#history {
  position: relative;
}
#history::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url("../img/bg.svg") right bottom no-repeat;
  position: absolute;
  right: 0;
  bottom: -60px;
  z-index: -1;
}
#history .his_menu {
  width: 240px;
  display: flex;
  padding: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  border-radius: 30px;
  border: 1px solid #ddd;
  flex-shrink: 0;
}
#history .his_menu li {
  width: 100%;
  display: flex;
  padding: 5px 30px;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  transition: background 0.3s;
  cursor: pointer;
}
#history .his_menu li span {
  color: #555;
  text-align: center;
  font-family: "Pretendard";
  font-size: 1.222rem;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  transition: all 0.3s;
}
#history .his_menu li.active {
  background: linear-gradient(144deg, #264169 21.16%, #9e3182 188.74%);
}
#history .his_menu li.active span {
  color: #fff;
  font-weight: 700;
}
#history .his_content {
  width: 100%;
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#history .his_content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
#history .by_year {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 39px;
  align-self: stretch;
}
#history .by_year:not(:last-child) {
  padding-bottom: 100px;
}
#history .by_year .year {
  display: flex;
  align-self: stretch;
  flex-shrink: 0;
}
#history .by_year .year p {
  color: #2d2d2d;
  font-family: "NEXON Lv2 Gothic";
  font-size: 2.556rem;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.32px;
}
#history .detail_his {
  display: flex;
  padding-top: 5px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  padding-left: 39px;
}
#history .detail_his::before {
  content: "";
  display: block;
  width: 1px;
  height: calc(100% - 36px);
  background: #e4e4e4;
  position: absolute;
  left: 0;
  top: 36px;
}
#history .detail_his::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 4px solid #173c7b;
  background: #fff;
  position: absolute;
  top: 9px;
  left: 0;
  transform: translateX(-50%);
}
#history .detail_his .his_box {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: flex-start;
  align-self: stretch;
}
#history .detail_his .his_box .ym {
  width: 60px;
  color: #444;
  font-family: "Pretendard";
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: 144.444%;
  letter-spacing: -0.32px;
  flex-shrink: 0;
}
#history .detail_his .his_box dd p {
  font-family: "Pretendard";
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 144.444%;
  letter-spacing: -0.32px;
  word-break: keep-all;
}

@media (max-width: 1600px) {
  #history::before {
    right: 60px;
  }
}
@media (max-width: 1024px) {
  #history::before {
    background-size: 200px auto;
  }
  #history .his_menu {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin-bottom: 30px;
  }
  #history .his_menu li {
    flex: 1 0 0;
    padding: 10px 30px;
  }
}
@media (max-width: 768px) {
  #history::before {
    right: 30px;
  }
  #history .his_menu {
    overflow: hidden;
    padding: 10px;
  }
  #history .his_menu li {
    width: 50%;
    flex: none;
    padding: 10px 30px;
  }
  #history .by_year:not(:last-child) {
    padding-bottom: 60px;
  }
  #history .by_year .year p {
    font-size: 1.875rem;
  }
}
@media (max-width: 480px) {
  #history .by_year {
    gap: 20px;
    flex-direction: column;
  }
  #history .his_menu li {
    padding: 10px;
  }
  #history .his_menu li span {
    font-size: 1rem;
  }
  #history .detail_his::before {
    left: 9px;
  }
  #history .detail_his::after {
    transform: none;
  }
}
@media (max-width: 360px) {
  #history::before {
    background-size: 150px auto;
  }
  #history .detail_his {
    padding-left: 30px;
    gap: 10px;
  }
  #history .detail_his .his_box {
    gap: 5px;
    flex-direction: column;
  }
}