body {
  color: #2e2e2e;
}

#hero {
  position: relative;
  background: url(../images/top/main.jpg) center no-repeat;
  position: relative;
}
@media screen and (max-width: 767px) {
  #hero {
    background-size: auto 24rem;
    background: none;
  }
  #hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 24rem;
    background: url(../images/top/main.jpg) no-repeat center center/cover;
    z-index: 0;
  }
}
@media screen and (min-width: 768px) {
  #hero {
    background-size: cover;
  }
  #hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background-image: linear-gradient(to right, #000000 20%, rgba(115, 115, 115, 0) 55%);
    z-index: 0;
  }
}
#hero .hero-content {
  padding-top: 15rem;
  position: relative;
}
@media screen and (max-width: 767px) {
  #hero .hero-content {
    display: flex;
    flex-direction: column;
  }
}
@media screen and (min-width: 768px) {
  #hero .hero-content {
    padding-bottom: 3.5rem;
  }
}
#hero .hero-content .hero-txt {
  color: #fff;
  font-weight: bold;
  margin: 0;
  font-size: clamp(2.1rem, 1.7270718232rem + 0.9944751381vw, 3rem);
}
@media screen and (max-width: 767px) {
  #hero .hero-content .hero-txt {
    order: 2;
    color: #4e4b3f;
    text-align: center;
    margin-top: 2rem;
  }
}
@media screen and (min-width: 768px) {
  #hero .hero-content .hero-txt {
    margin-bottom: 20rem;
    filter: drop-shadow(0.2rem 0.2rem 0.6rem #2e2e2e);
  }
}
#hero .hero-content .books {
  display: flex;
  gap: 1.3rem;
}
@media screen and (min-width: 768px) {
  #hero .hero-content .books {
    gap: 2.5rem;
    padding-left: 1.2rem;
  }
}
#hero .hero-content .books .book {
  width: 8.3rem;
}
@media screen and (min-width: 768px) {
  #hero .hero-content .books .book {
    width: 16.2rem;
  }
}

#service {
  padding-bottom: 1rem;
}
@media screen and (min-width: 768px) {
  #service {
    padding-bottom: 7.5rem;
  }
}
#service .description {
  margin-bottom: 60px;
}
#service .services {
  display: flex;
}
@media screen and (max-width: 767px) {
  #service .services {
    flex-direction: column;
    gap: 6rem;
    margin-inline: -1rem;
  }
}
@media screen and (min-width: 768px) {
  #service .services {
    justify-content: center;
    -moz-column-gap: 1.5rem;
         column-gap: 1.5rem;
    row-gap: 6rem;
    flex-wrap: wrap;
  }
}
@media screen and (min-width: 768px) {
  #service .services .service {
    width: 35rem;
  }
}
#service .services .service .thumbnail {
  position: relative;
}
#service .services .service .thumbnail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #231815;
  opacity: 0.4;
}
#service .services .service .thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}
#service .services .service .thumbnail h3 {
  position: absolute;
  top: 50%;
  left: 0;
  margin: 0;
  transform: translateY(-50%);
  text-align: center;
  width: 100%;
  font-weight: bold;
  color: #fff;
  font-size: 2.1rem;
}
#service .services .service .detail {
  padding: 1.5rem 0;
  text-align: center;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
}
#service .services .service .detail .action {
  margin-top: auto;
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  #message .section-title {
    margin-bottom: 4rem;
  }
}
@media screen and (max-width: 767px) {
  #message .row {
    padding-inline: 0;
  }
}
@media screen and (max-width: 767px) {
  #message .txt-lg {
    letter-spacing: 0.025em;
  }
}

#topic {
  background-color: #fff;
}
#topic .topics {
  display: flex;
}
@media screen and (max-width: 767px) {
  #topic .topics {
    flex-direction: column;
    gap: 3.5rem;
    margin-bottom: 3rem;
    margin-inline: -1rem;
  }
}
@media screen and (min-width: 768px) {
  #topic .topics {
    flex-wrap: wrap;
    -moz-column-gap: 1.5rem;
         column-gap: 1.5rem;
    row-gap: 4rem;
    margin-bottom: 6rem;
  }
}
@media screen and (min-width: 768px) {
  #topic .topics .topic {
    width: 35rem;
  }
}
#topic .topics .topic .thumbnail {
  overflow: hidden;
}
#topic .topics .topic .thumbnail img {
  width: 100%;
  display: block;
  aspect-ratio: 3/2;
  -o-object-fit: cover;
     object-fit: cover;
  height: auto;
  transition: 0.3s all ease-in-out;
}
#topic .topics .topic .thumbnail a:hover img {
  transform: scale(1.1);
}
#topic .topics .topic .detail {
  font-size: 1.6rem;
  line-height: 1.625;
  padding: 1.5rem 1rem;
}
@media screen and (min-width: 768px) {
  #topic .topics .topic .detail {
    padding: 1.5rem 0;
  }
}
#topic .topics .topic .detail time {
  font-size: 0.85em;
}
#topic .topics .topic .detail a {
  color: inherit;
}
#topic .topics .topic .detail a:hover {
  text-decoration: underline;
}

#book {
  overflow: hidden;
  /* .book-wrap {
    padding-left: 1rem;
    @include pc {
      padding-left: 10rem;
    }
  } */
}
#book .book-slider {
  margin-bottom: 7rem;
  overflow: visible;
}
#book .book-slider li {
  padding-bottom: 2rem;
  margin-right: 2rem;
  width: 13.7rem;
  filter: drop-shadow(0.5rem 0.5rem 1rem rgba(141, 134, 134, 0.35));
}
@media screen and (min-width: 768px) {
  #book .book-slider li:not(:last-child) {
    margin-right: 8rem;
  }
}
#book .book-slider li img {
  display: block;
  height: 20rem;
  width: 13.7rem;
  aspect-ratio: 137/200;
  -o-object-fit: cover;
     object-fit: cover;
}
#book .book-slider:not(.swiper-initialized) {
  display: flex;
  overflow-x: hidden;
}
#book .book-slider:not(.swiper-initialized) li .skeleton-img {
  width: 140px;
  height: 200px;
}

#media {
  background-color: #fff;
}
#media .medias {
  display: flex;
}
@media screen and (max-width: 767px) {
  #media .medias {
    flex-direction: column;
    gap: 3.5rem;
    margin-bottom: 3rem;
    margin-inline: -1rem;
  }
}
@media screen and (min-width: 768px) {
  #media .medias {
    flex-wrap: wrap;
    -moz-column-gap: 1.5rem;
         column-gap: 1.5rem;
    row-gap: 4rem;
    margin-bottom: 6rem;
  }
}
@media screen and (min-width: 768px) {
  #media .medias .media {
    width: 35rem;
  }
}
#media .medias .media .thumbnail {
  overflow: hidden;
}
#media .medias .media .thumbnail img {
  display: block;
  aspect-ratio: 350/210;
  -o-object-fit: cover;
     object-fit: cover;
  height: auto;
  width: 100%;
  transition: 0.3s all ease-in-out;
}
#media .medias .media .thumbnail a:hover img {
  transform: scale(1.1);
}
#media .medias .media .detail {
  font-size: 1.6rem;
  line-height: 1.625;
  padding: 1.5rem 1rem;
}
@media screen and (min-width: 768px) {
  #media .medias .media .detail {
    padding: 1.5rem 0;
  }
}
#media .medias .media .detail a {
  color: inherit;
}

.official-line {
  background-color: #5f788e;
  padding: 1rem 0;
}
.official-line__text {
  font-weight: bold;
  font-size: 2.1rem;
  letter-spacing: 0.05em;
  line-height: 1.8095238095;
  text-align: center;
  color: #fff;
  padding-left: 8rem;
}
.official-line__qr {
  width: 8rem;
}
@media screen and (min-width: 768px) {
  .official-line__qr a {
    transition: opacity 0.25s ease;
  }
  .official-line__qr a:hover {
    opacity: 0.8;
  }
}
.official-line__inner {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 8rem;
}
@media screen and (max-width: 767px) {
  .official-line {
    margin-top: 5rem;
  }
  .official-line__text {
    font-size: 1.8rem;
    letter-spacing: 0.025em;
    padding-left: 0;
    text-align: left;
  }
}