/* 校舎情報モーダル (c-modal-school) */
.c-modal-school {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 999;
  background: rgba(0, 0, 0, 0.8);
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 24px calc(24px + var(--fixed-cta-height, 0px));
}

.c-modal-school.is-active {
  display: flex;
}

.c-modal-school__dialog {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.c-modal-school__inner {
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: 16px;
  background: #eaebef;
}

@media (max-width: 768px) {
  .c-modal-school__inner {
    max-height: calc(90vh - var(--fixed-cta-height, 0px) - 48px);
    max-height: calc(90dvh - var(--fixed-cta-height, 0px) - 48px);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .c-modal-school__inner::-webkit-scrollbar {
    display: none;
  }

  .c-modal-school__scroll-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding-bottom: 8px;
    background: linear-gradient(to bottom, rgba(234, 235, 239, 0), #eaebef 80%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  .c-modal-school__scroll-hint.is-hidden {
    opacity: 0;
  }

  .c-modal-school__scroll-hint::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #1b2667;
    border-bottom: 2px solid #1b2667;
    transform: rotate(45deg);
    animation: c-modal-school-scroll-hint-bounce 1.4s ease-in-out infinite;
  }

  @keyframes c-modal-school-scroll-hint-bounce {
    0%,
    100% {
      transform: rotate(45deg) translate(0, 0);
    }
    50% {
      transform: rotate(45deg) translate(4px, 4px);
    }
  }
}

.c-modal-school__close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.c-modal-school__close::before,
.c-modal-school__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #1b2667;
  border-radius: 1px;
}

.c-modal-school__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.c-modal-school__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.c-modal-school__header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  background: linear-gradient(to right, #1b2667, #1f3b86 50%, #1b2667);
}

.c-modal-school__header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #a8874e, #e3c88a 50%, #a8874e);
}

.c-modal-school__brand {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  text-align: center;
}

.c-modal-school__school-name {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
}

.c-modal-school__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 16px 24px 24px;
}

.c-modal-school__sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.c-modal-school__sec-title {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #1b2667;
}

.c-modal-school__gallery {
  width: 100%;
  overflow: hidden;
}

.c-modal-school__gallery .swiper-wrapper {
  align-items: flex-start;
}

.c-modal-school__gallery .swiper-slide {
  width: 180px;
  height: 120px;
}

.c-modal-school__gallery .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-modal-school__info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.c-modal-school__info-label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.c-modal-school__info-text {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

.c-modal-school__info-text.-small {
  font-size: 12px;
}

.c-modal-school__info-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: #0074d9;
}

.c-modal-school__info-link img {
  display: block;
  width: 14px;
  height: 14px;
}

.c-modal-school__teacher-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.c-modal-school__teacher-card-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.c-modal-school__teacher-card-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #a8874e, #e3c88a 50%, #a8874e);
}

.c-modal-school__teacher-img {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
}

.c-modal-school__teacher-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-modal-school__teacher-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 0 0;
  align-self: stretch;
  font-family: "Noto Serif JP", serif;
  color: #fff;
  background: linear-gradient(to left, #1b2667, #172785 50%, #1b2667);
  white-space: nowrap;
}

.c-modal-school__teacher-course {
  font-size: 10px;
  line-height: 1.3;
}

.c-modal-school__teacher-name {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.c-modal-school__teacher-name-main {
  font-size: 20px;
  line-height: 1.3;
}

.c-modal-school__teacher-name-suffix {
  font-size: 11px;
  line-height: 1.3;
}

.c-modal-school__teacher-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: #f5f7fa;
  font-weight: 600;
}

.c-modal-school__teacher-highlight {
  width: 100%;
  font-size: 10px;
  line-height: 1.4;
  color: #d7000f;
}

.c-modal-school__teacher-achievement {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  font-size: 10px;
  letter-spacing: -0.2px;
  color: #0081cc;
}

.c-modal-school__teacher-achievement-title {
  line-height: 1.4;
}

.c-modal-school__teacher-achievement-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  white-space: nowrap;
}

.c-modal-school__teacher-achievement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  line-height: 1.6;
}

.c-modal-school__teacher-bio {
  width: 100%;
  font-size: 12px;
  color: #333;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .c-modal-school {
    padding-top: 64px;
  }

  .c-modal-school__dialog {
    max-width: 640px;
  }

  .c-modal-school__gallery .swiper-slide {
    width: 170px;
    height: 113px;
  }

  .c-modal-school__teacher-img {
    width: 100px;
    height: 100px;
  }

  .c-modal-school__teacher-text {
    font-size: 14px;
  }
}
