@import url("https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Noto+Serif+KR&display=swap");
@import url(/reset.css);
@import url(./header.css);
/* ----footer----- */
@import url(./footer.css);

h1,
h2,
h3,
h4 {
  font-family: "Black Han Sans", sans-serif;
  font-family: "Noto Serif KR", serif;
}

/* ----main inner---- */

/* 백그라운드 이미지는 html에서 img로 넣지않고 css에서 바로 백그라운드 이미지로 넣는다. */
main {
  height: 945px;
  background: url(../images/climbing_summary_img01.png);
  background-size: cover;
  padding-top: 160px;
}
.main_inner {
  max-width: 1190px;
  margin: auto;
  padding: 86px;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 50px;
  color: white;

}

.col1 {
  width: 476px;
}
.col1 img {
  width: 100%;
}
.col2 {
  width: 595px;

}
/*  */
.col2 h2 {
  font-size: 43px;
  margin-bottom: 80px;
  position: relative;
}
/*  position relative 부모를 나타냄 absolute 자식을 나타냄
위치는 left top 
부모가 0,0이면 자식은 x,y 
한 페이지에서 겹쳐서 클릭한거에 따라서 필요한게 보이게 함*/
.col2 h2::after {
  content: "";
  position: absolute;
  height: 2px;
  background: white;
  width: 40px;
  left: 0;
  top: 220px;
}
/* before, after를 쓸때는 무조건 content가 들어가야한다. */
.desc p {
  font-size: 18px;
}

/* -----------------------mobile----------------------- */
@media screen and (max-width: 521px) {
  .main_inner {
    width: 90%;
    flex-wrap: wrap;
    padding-top: 4rem;
  }
  main .col1 {
    width: 250px;
    text-align: center;
    margin: auto;
  }

  main .col2 h2 {
    font-size: 25px;
    text-align: center;
    margin: 40px 0;
  }
  main .col2 h2::after {
    height: 3px;
    width: 30px;
    left: 50%;
    transform: translateX(-50%);
    top: 120px;
  }
  main .desc p {
    text-align: center;
    font-size: 16px;
    line-height: 25px;
  }
}
@media screen and (min-width: 522px) {
  main .col2 {
    padding-top: 50px;
  }
  main .desc p {
    font-size: 18px;
    line-height: 30px;
  }
}
@media screen and (min-width: 1280px) {
}

