/* custom-main */

.custom-main .title01 {
  font-size: 24px !important;
  margin-bottom: 0 !important;
  font-weight: bold !important;
}

.custom-main .boxes {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}

.custom-main .boxes .box {
  position: relative;
  width: 32.6%;
  background-color: #f7f7f7;
  box-sizing: border-box;
  padding: 25px 20px 35px 20px;
  margin-top: 30px;
}

.custom-main .boxes .box:nth-child(3n + 2) {
  margin-left: 1%;
  margin-right: 1%;
}

.custom-main .boxes .box::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 14px 14px;
  border-color: transparent transparent #1d3470 transparent;
}

.custom-main .boxes .box .box-title {
  font-size: 18px;
  color: #1d3470;
  font-weight: bold;
  text-align: center;
  min-height: 55px;
}

.custom-main .boxes .box .thumbnail {
  aspect-ratio: 3 / 2;
  width: 100%;
  box-sizing: border-box;
  margin-top: 15px;
}

@media screen and (max-width: 767px) {
  .custom-main .title01 {
    font-size: 20px !important;
  }

  .custom-main .boxes {
    flex-direction: column;
    margin-top: 0;
  }

  .custom-main .boxes .box {
    margin-top: 20px;
    width: 100%;
    padding: 20px 20px 35px 20px;
  }

  .custom-main .boxes .box:nth-child(3n + 2) {
    margin-left: 0;
    margin-right: 0;
  }

  .custom-main .boxes .box .box-title {
    font-size: 16px;
    min-height: unset;
  }

  .custom-main .boxes .box .thumbnail {
    margin-top: 25px;
  }
}

/* custom-main-two */

.custom-main-two {
  margin-top: 30px;
}

.custom-main-two .box-title01 a {
  display: block;
  line-height: 1;
  background-color: #2865b1;
  color: #fff;
  width: fit-content;
  padding: 8px 20px;
  font-size: 20px;
  font-weight: 500;
}

.custom-main-two .box-title02 {
  font-size: 34px;
  color: #2865b1;
  font-weight: 500;
  margin-top: 30px;
}

.custom-main-two .title01 {
  font-size: 26px !important;
  margin-bottom: 0 !important;
  font-weight: bold !important;
}

.custom-main-two .box-links {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.custom-main-two .box-links .box-text {
  line-height: 1.5;
  padding-right: 20px;
}

.custom-main-two .arrow {
  max-width: 37px;
  width: 100%;
  margin-left: auto;
}

@media screen and (max-width: 767px) {
  .custom-main-two {
    margin-top: 10px;
  }

  .custom-main-two .box-title01 a {
    font-size: 16px;
    padding: 8px;
  }

  .custom-main-two .box-title02 {
    margin-top: 20px;
    font-size: 26px;
    margin-bottom: 60px;
  }

  .custom-main-two .title01 {
    font-size: 20px !important;
    margin-top: 25px !important;
  }

  .custom-main-two .box-links .box-text {
    font-size: 16px;
  }
}

/* single-custom top */

.single-custom {
  margin-top: 35px;
}

.single-custom .top-boxes {
  display: flex;
  flex-wrap: wrap;
}

.single-custom .top-boxes .top-box .link {
  font-size: 20px;
  color: #ffffff;
  background-color: #2865b1;
  line-height: 1;
  padding: 7px 20px;
  display: block;
  font-weight: 500;
}

.single-custom .top-boxes .top-box-cat {
  display: flex;
}

.single-custom .top-boxes .top-box-cat .link {
  font-size: 20px;
  color: #2865b1;
  line-height: 1;
  background-color: #e8e9f3;
  padding: 7px 20px;
  display: block;
  font-weight: 500;
}

.single-custom .top-titles {
  font-size: 34px;
  letter-spacing: 1px;
  color: #2865b1;
  font-weight: 500;
  margin-top: 25px;
}

@media screen and (max-width: 767px) {
  .single-custom {
    margin-top: 5px;
  }

  .single-custom .top-boxes .top-box .link {
    font-size: 16px;
  }

  .single-custom .top-boxes .top-box-cat .link {
    font-size: 16px;
    padding: 7px 10px;
  }

  .single-custom .top-titles {
    font-size: 26px;
    margin-top: 20px;
  }
}

/* single-custom article-content */

.single-custom .article-content {
  margin-top: 70px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5 {
  margin-bottom: 50px;
}

.single-custom .article-content img {
  width: fit-content;
  margin-bottom: 30px;
  margin-top: 0px;
}

.article-content p {
  margin-bottom: 30px;
}

.article-content .table01,
.article-content .table02 {
  margin-top: 30px;
}

.article-content ul {
  margin-bottom: 30px;
}

.article-content .is-type-video iframe {
  margin-bottom: 30px;
}

@media screen and (max-width: 767px) {
  .single-custom .article-content {
    margin-top: 30px;
  }

  .article-content h1,
  .article-content h2,
  .article-content h3,
  .article-content h4,
  .article-content h5 {
    margin-bottom: 20px;
    margin-top: 40px;
  }

  .single-custom .article-content img {
    margin-bottom: 20px;
    margin-top: 0px;
  }

  .article-content p {
    margin-bottom: 20px;
  }

  .article-content .table01,
  .article-content .table02 {
    margin-top: 20px;
  }

  .article-content ul {
    margin-bottom: 20px;
  }
}
