/* -------------------------------------------------------------------------- */
/*                                   Colors                                   */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*                              Default Functions                             */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*                               Default Mixins                               */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*                                Custom Layout                               */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*                                   Header                                   */
/* -------------------------------------------------------------------------- */
@media screen and (width <= 768px) {
  .header__wrapper {
    padding-block: 2rem;
    background: #ffffff;
  }
  .header__tbox {
    padding-inline: 0;
    margin-bottom: 0;
  }
  .header__logo {
    padding-left: 2rem;
    width: 90%;
  }
  .header__mv, .header__sv {
    margin-top: 85px;
  }
  .header__mv-img {
    height: 300px;
  }
  .header__sv-img {
    height: 18rem;
  }
  .header__mv-catch img {
    width: 90vw;
    position: absolute;
    margin: -35% auto auto 0;
  }
  .header__sv-title {
    font-size: 3.1rem;
    line-height: 7rem;
    padding-inline: 2rem;
  }
}
/* -------------------------------------------------------------------------- */
/*                                     Top                                    */
/* -------------------------------------------------------------------------- */
@media screen and (width <= 768px) {
  .greeting {
    padding-bottom: 5rem;
  }
  .greeting__content {
    justify-content: center;
    flex-wrap: wrap-reverse;
  }
  .school {
    padding-block: 0 5rem;
    background: top center/1263px url("/img/about/school_bg-kazari1.png"), no-repeat bottom center/1579px url("/img/about/school_bg-kazari2.png"), #e9f2f5;
  }
  .school__list {
    justify-content: center;
  }
  .school__item-img {
    height: clamp(170px, 25vw, 205px);
  }
  .trial__header {
    flex-flow: column;
  }
  .trial__content {
    margin-inline: auto;
  }
  .flow__item {
    padding: 10px;
    gap: clamp(20px, 2.5vw, 30px);
    position: relative;
  }
  .flow__item-img {
    width: 40px;
    height: 40px;
    border-radius: 0;
    position: absolute;
    inset: 10px 10px auto auto;
    margin-inline: auto;
  }
  .flow__item-title {
    margin-bottom: 5px;
  }
  .flow__item-text {
    letter-spacing: 0.03em;
  }
  .top-banner__list {
    justify-content: center;
  }
  .top-banner__item {
    width: min(100%, 520px);
    height: 20rem;
    background-position: center;
    background-size: cover;
    background-position: center;
    background-size: cover;
  }
  .top-banner__item-box {
    padding: 15px;
    background-color: rgba(0, 171, 214, 0.9);
  }
  .top-sns__item {
    padding: 2rem;
  }
  .top-sns__header {
    padding-bottom: 1rem;
  }
  .top-sns__box {
    height: fit-content;
  }
  .top-sns__box:nth-of-type(1) {
    margin-bottom: 2rem;
    background: none;
  }
  .top-sns__box:nth-of-type(2) {
    background: none;
  }
  .top-sns__content {
    padding-top: 0;
  }
  .top-sns__text {
    text-align: justify;
  }
  .banner {
    padding-block: 3rem;
  }
  .banner__list {
    justify-content: center;
  }
  .banner__link {
    padding-block: 2rem;
  }
  .banner__item {
    width: min(100%, 520px);
    padding: 0 2rem;
  }
  .banner__item--main .banner__link::before {
    width: 18px;
  }
  .banner__item--sub .banner__link::before {
    width: 25px;
  }
}
/* -------------------------------------------------------------------------- */
/*                                    About                                   */
/* -------------------------------------------------------------------------- */
@media screen and (width <= 768px) {
  .about {
    padding-bottom: 14rem;
    background: no-repeat bottom left/160% url("/img/about/about_bg.png");
  }
  .about__content {
    margin-inline: auto;
  }
  .concept__item {
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .concept__item-header {
    width: 100%;
    padding: 10px 0;
  }
}
/* -------------------------------------------------------------------------- */
/*                            School (Active/Free)                            */
/* -------------------------------------------------------------------------- */
@media screen and (width <= 768px) {
  .school-about__img {
    margin-bottom: 2rem;
  }
  .school-details__list {
    gap: 15px;
    justify-content: space-around;
    align-items: stretch;
  }
  .school-details__item-img {
    width: 105px;
    height: 105px;
    border-radius: 0;
  }
  .school-sched {
    background: none;
  }
  .school-price {
    background: #f2f2f2;
  }
}
/* -------------------------------------------------------------------------- */
/*                                   Details                                  */
/* -------------------------------------------------------------------------- */
@media screen and (width <= 768px) {
  .details__item-content {
    justify-content: center;
    align-items: center;
    flex-flow: column-reverse;
  }
  .details__item-btn {
    margin-inline: auto;
  }
}
/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */
@media screen and (width <= 768px) {
  .footer {
    padding-block: 4rem 2rem;
  }
  .footer__box {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
  }
  .footer__box:first-child {
    margin-bottom: 3rem;
  }
  .footer__lbox, .footer__rbox {
    text-align: center;
  }
  .footer__logo {
    margin: 0 auto 2rem;
  }
  .footer__item:nth-child(odd)::before, .footer__item:nth-child(odd)::after {
    content: none;
  }
}