#headline {
  height: 320px;
  padding-top: 70px;
}

#headline .background {
  width: calc(100% - 80px);
  height: 100%;
  margin: 0 40px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;

  background-image: url(../img/agency/headline_pc.png);
  background-size: 700px;
  background-color: #a2a4a1;
  background-repeat: no-repeat;
  background-position: right center;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

#headline .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, .4);
}

#headline .wrap_titles {
  margin: 0 0 0 40px;
  z-index: 2;
  position: relative;
}

#headline h1 {
  font-weight: 700;
  font-size: 44px;
  color: #FFFFFF;
}

#headline .sub_title {
  color: #fff;
  font-size: 20px;
}

#topic {
  margin-top: 0px !important;
}

#agencies_wrapper {
  width: calc(100% - 80px);
  margin: 0 auto;
}

#search_result_header {
  margin-top: 40px;
  margin-bottom: 40px;

  display: flex;
  gap: 64px;
  align-items: center;
}

#search_result_header h2 {
  font-weight: 700;
  font-size: 28px;
  color: #000000;
}

#search_result_header .result_counter {
  display: flex;
  gap: 10px;
  align-items: center;
}

#search_result_header .result_counter .divider {
  height: 20px;
  width: 1px;
  background: #000;
}

#search_result_header .result_counter .current,
#search_result_header .result_counter .all {
  color: var(--magazine-new-black, #000);
  font-size: 13px;
  font-weight: 500;
  line-height: 100%;
}

#search_result_header .result_counter .current .count,
#search_result_header .result_counter .all .count {
  text-align: right;
  font-size: 18px;
  font-weight: 700;
}

.empty_post_text {
  font-size: 18px;
}

/* post */
.all_posts {
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.post {
  width: 100%;
  padding: 40px;
  background: #F3F7FB;
  border-radius: 30px;
}

.post:not(:first-child) {
  margin-top: 40px;
}

.post .inner_post {
  display: flex;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.post .basic_info_wrapper {
  width: 48%;
  margin: 0 4% 0 0;
}

.post .basic_info .title {
  display: flex;
  gap: 16px;
  align-items: center;
}

.post .basic_info .title img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background-color: #fff;
  border-radius: 50%;
  overflow: hidden;
}

.post .basic_info .title span {
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  color: #000000;
}

.post .basic_info .description {
  margin-top: 16px;
}

.post .basic_info .description div {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  text-align: justify;
  color: #000000;
}

.post .action_button_wrapper {
  margin-top: 16px;
  display: flex;
  gap: 32px;
}

.post .action_button_wrapper a {
  display: block;
  font-size: 14px;
  line-height: 14px;
}

.post .action_button_wrapper a:first-child {
  width: 280px;
  background: #1EAEFF;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.16);
  border-radius: 30px;
  text-align: center;
  color: #FFFFFF;
  padding: 24px 0;
}

.post .action_button_wrapper a:nth-child(2) {
  color: #0094FF;
  margin: 24px 0;
}

.post .detail_info_wrapper {
  /* flex: 1; */
  width: 48%;
  padding: 32px;
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 30px;
}

.post .detail_info_wrapper .title {
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  color: #000000;
}

.post .detail_info_wrapper .divider {
  margin-top: 16px;
  width: 100%;
  height: 1px;
  background: #DDDDDD;
}

.post .detail_info_wrapper .info_item:not(:first-child) {
  margin-top: 16px;
}

.post .detail_info_wrapper .info_item {
  display: flex;
}

.post .detail_info_wrapper .info_item p {
  font-weight: 400;
  font-size: 15px;
  line-height: 15px;
  color: #000000;
}

.post .detail_info_wrapper .info_item .info_item_header {
  width: 152px;
}

.post .detail_info_wrapper .info_item .info_item_content {
  margin-left: 40px;
}


/*--------------------------------------------------------------*\
$1080px
\*---------------------------------------------------------------*/
@media screen and (max-width: 1080px) {

  #headline {
    padding-top: 50px;
  }

  #headline .background {
    background-size: cover;
  }

  .post .inner_post {
    flex-direction: column;
  }

  .post .basic_info_wrapper {
    width: 100%;
    margin: 0 0 32px 0;
  }

  .post .detail_info_wrapper {
    width: 100%;
  }
}


/*--------------------------------------------------------------*\
$600px
\*---------------------------------------------------------------*/
@media screen and (max-width: 600px) {

  #agencies_wrapper {
    width: calc(100% - 32px);
  }

  #search_result_header {
    margin-top: 24px;
    margin-bottom: 24px;
  }

  #search_result_header h2 {
    font-size: 18px;
  }

  #search_result_header .result_counter {
    gap: 8px;
    margin-left: auto;
  }

  #search_result_header .result_counter .divider {
    height: 14px;
  }

  #search_result_header .result_counter .current,
  #search_result_header .result_counter .all {
    font-size: 11px;
  }

  #search_result_header .result_counter .current .count,
  #search_result_header .result_counter .all .count {
    text-align: right;
    font-size: 14px;
  }

  #headline {
    height: 260px;
  }

  #headline .background {
    width: calc(100% - 32px);
    margin: 0 16px;
  }

  #headline .wrap_titles {
    margin: 0 0 0 16px;
  }

  #headline .sub_title {
    font-size: 17px;
  }

  #headline h1 {
    font-size: 28px;
  }

  .empty_post_text {
    font-size: 13px;
  }

  /* post */
  .post {
    display: block;
    padding: 32px 16px 16px;
  }

  .post:not(:first-child) {
    margin-top: 24px;
  }

  .post .basic_info {
    display: flex;
    gap: 16px;
  }

  .post .basic_info .title img {
    width: 80px;
    height: 80px;
  }

  .post .basic_info .title {
    align-items: flex-start;
  }

  .post .basic_info .title span {
    font-size: 15px;
    line-height: 15px;
  }

  .post .basic_info .description {
    flex: 2;
    margin-top: 0px;
    font-size: 11px;
    line-height: 15px;
  }

  .post .basic_info .description span {
    font-weight: 700;
    font-size: 15px;
    line-height: 15px;
    color: #000000;
  }

  .post .basic_info .description div {
    margin-top: 8px;
    font-weight: 400;
    font-size: 11px;
    line-height: 15px;
    color: #4E4F52;
  }

  .post .action_button_wrapper {
    margin-top: 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .post .action_button_wrapper a {
    font-size: 13px;
    line-height: 13px;
  }

  .post .action_button_wrapper a:nth-child(2) {
    width: -moz-fit-content;
    width: fit-content;
    margin: 24px auto 0;
  }

  .post .detail_info_wrapper {
    /* flex: 1; */
    padding: 24px 16px;
  }

  .post .detail_info_wrapper .title {
    font-size: 13px;
    line-height: 13px;
  }

  .post .detail_info_wrapper .divider {}

  .post .detail_info_wrapper .info_item:not(:first-child) {
    margin-top: 16px;
  }

  .post .detail_info_wrapper .info_item {}

  .post .detail_info_wrapper .info_item p {
    font-size: 12px;
    line-height: 12px;
  }

  .post .detail_info_wrapper .info_item .info_item_content {
    margin-left: 14px;
  }
}
