@charset "utf-8";

@media screen and (max-width:500px) {
  html {
    font-size: 8px;
  }

  .head_wrap {
    width: 100%;
    position: absolute;
    padding-top: 25px;
    padding-bottom: 20px;
    z-index: 2;
    left: 0;
    justify-content: center;
  }

  .head_wrap .end {
    display: none;
  }

  .head_wrap .logo {
    width: 95px;
    display: none;
  }

  .head_wrap .kga p {
    color: #fff;
  }

  .head_wrap .kga img {
    max-width: 35px;
    width: 100%;
    filter: brightness(100);
  }

  .head_wrap .kga::before,
  .head_wrap .kga::after {
    background: #fff;
    width: 216px;
  }

  #sec-1 {
    padding: 7em 0 5em;
  }

  #sec-1 .title_wrap .main_t_bg {
    padding: 15px;
    padding-bottom: 0;
  }

  #sec-1 .title_wrap h2 {
    font-size: 8rem;
  }

  #sec-1 .title_wrap .bot_t {
    margin-top: 5px;
    font-size: 2rem;
  }

  #sec-1 .title_wrap .top_t {
    font-size: 2.8rem;
  }

  #sec-1 .img2 {
    left: -16%;
    min-width: 240px;
  }

  #sec-1 .img3 {
    width: 25%;
    min-width: 150px;
    top: -9rem;
    right: -12%;
    transform: rotate(-35deg);
  }

  .counsel .coun_box {
    padding: 20px;
    gap: 10px;
  }

  .counsel_t h4 {
    font-size: 2.2rem;
  }

  .counsel .top .icon img {
    width: 70%;
  }

  #sec-2 {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-position: left;
  }

  #sec-2 .top img {
    width: 100px;
  }

  #sec-2 .sec_wrap {
    gap: 10rem;
  }

  #sec-2 .bot {
    flex-direction: column;
  }

  #sec-2 .bot::before{
    position: absolute;
    content: '';
    width: 100%;
    height: 1px;
    background: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }


  #sec-3,
  #sec-4 {
    margin-top: 0;
  }

  #sec-3 .sec_wrap {
    border-radius: 0;
    padding-right: 20px;
    padding-left: 20px;
  }

  #sec-3,
  #sec-4,
  #sec-5 {
    padding: 6rem 0;
  }

  #sec-3 {
    padding: 0;
  }

  #sec-3 .txt_bg {
    display: none;
  }

  #sec-3 .bot {
    gap: 4rem;
  }

  #sec-3 .bot img {
    width: 45%;
  }

  .review_card {
    box-sizing: border-box;
    flex-direction: column;
    padding: 20px 25px;
  }

  .review_title .review_br {
    display: block;
  }

  .review_content {
    text-align: center;
  }

  .review_text .br {
    display: inline;
  }

  #sec-4 .service .card::before {
    left: -38rem;
  }
}