@charset "UTF-8";
/* School Information Section */

/* Facility Overview Section */
.facility-overview {
  position: relative;
}

.facility-overview-container {
  display: flex;
  align-items: flex-start;
}
.facility-content .section_title {
  margin-bottom: 6rem;
}

.facility-content {
  flex: 1;
  padding-left: 12%;
  margin-right: 10%;
}
@media screen and (max-width: 1300px) {
  .facility-content {
    padding-left: 6%;
  }
}
@media screen and (max-width: 1100px) {
  .facility-content {
    padding-left: 3%;
    margin-right: 3%;
  }
}

.facility-content .section-text-box {
  margin: 2rem 0 3rem 0;
}

.facility-content .section-text-box p {
  margin-bottom: 2rem;
  line-height: 2.2;
  letter-spacing: 0.08rem;
}

.facility-slideshow {
  width: 100%;
  height: 540px;
  overflow: hidden;
  position: relative;
}
.slides-container {
  display: flex;
  width: 100%;
  height: 100%;
  /* JSでwidthを上書きするのでここは100%でOK */
  animation: none !important; /* JSで動かすのでアニメーション無効化 */
}
.slide-item {
  width: 6.5%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-right: 0.5rem;
  /* background-size: 100% 100%; は不要 */
}
@media screen and (max-width: 768px) {
  .facility-overview {
    padding: 4rem 0 2rem 0;
  }
  .facility-overview-container {
    display: block;
    align-items: flex-start;
  }
  .facility-content {
    padding-left: 3%;
  }
  .facility-content .section_title {
    margin-bottom: 3rem;
  }
  .facility-overview .section_title h2 {
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }
  .facility-content .section-text-box p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    letter-spacing: 0.06rem;
  }

  .facility-slideshow {
    height: 300px;
  }
}
.slides-container {
  display: flex;
  width: 800%;
  height: 100%;
  animation: slideFlow 38s infinite linear;
}

.slide-item {
  width: 6.5%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-right: 0.5rem;
  background-size: 100% 100%;
}

.slide-item:nth-child(1) {
  background-image: url(/assets/img/facility-slide1.webp);
  background-size: cover; /* 個別に画像サイズを調整可能 */
}

.slide-item:nth-child(2) {
  background-image: url(/assets/img/facility-slide2.webp);
  background-size: cover;
}

.slide-item:nth-child(3) {
  background-image: url(/assets/img/facility-slide3.webp);
  background-size: cover;
}

.slide-item:nth-child(4) {
  background-image: url(/assets/img/facility-slide4.webp);
  background-size: cover;
  background-position: 83% 70%;
}

.slide-item:nth-child(5) {
  background-image: url(/assets/img/facility-slide1.webp);
  background-size: cover;
}
.slide-item:nth-child(6) {
  background-image: url(/assets/img/facility-slide2.webp);
  background-size: cover;
}

.slide-item:nth-child(7) {
  background-image: url(/assets/img/facility-slide3.webp);
  background-size: cover;
}
.slide-item:nth-child(8) {
  background-image: url(/assets/img/facility-slide4.webp);
  background-size: cover;
  background-position: 83% 70%;
}

@keyframes slideFlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  .facility-slideshow {
    height: 300px;
    margin-left: 0;
    margin-top: 3rem;
  }

  .slide-item {
    margin-right: 0.5rem;
  }
}

/* Features Grid Section */
.features-grid {
  padding: 4rem 0 8rem 0;
  background: white;
}

.features-grid-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
}
.feature-icon {
  width: 100%;
  height: 250px;
  margin: 0 auto 2rem;
  background: #f0f0f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background-size: cover;
}
.feature-item:nth-child(1) .feature-icon {
  background-image: url(/assets/img/feature-01.webp);
}
.feature-item:nth-child(2) .feature-icon {
  background-image: url(/assets/img/feature-02.webp);
}
.feature-item:nth-child(3) .feature-icon {
  background-image: url(/assets/img/feature-03.webp);
}
.content_title {
  font-size: var(--font-lg);
  letter-spacing: 0.15rem;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
}
.content-title-box {
  margin-bottom: 1rem;
}
.content-title-box .content-number {
  margin-top: 1%;
  margin-right: 3%;
  font-weight: 500;
}
.feature-content-box {
  width: 88%;
  margin: 0 auto;
}
.feature-description {
  letter-spacing: 0.08rem;
  text-align: justify;
}
@media (max-width: 1100px) {
  .features-grid-items {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}
@media (max-width: 768px) {
  .feature-item {
    flex-direction: column-reverse;
  }
  .feature-icon {
    height: 200px;
    margin: 0 auto 1rem;
  }
  .feature-content-box {
    width: 85%;
    margin: 0 auto 2rem 0;
  }
}
/* Access Section */
.access {
  padding: 8rem 0;
  background: linear-gradient(to right, #f2f4f8, #f8ddd8);
}

.access .section_title {
  margin-bottom: 5%;
}

.access-content {
  max-width: 1000px;
  margin: 0 auto;
}

.access-content .section_title {
  margin-bottom: 2rem;
}

.access-map {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* マップを横幅いっぱいに */
.map-container {
  width: 100%;
  max-width: none; /* 最大幅制限を解除 */
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.map-container iframe {
  width: 100%;
  height: 500px; /* 高さも少し増やす */
  border: none;
  display: block;
}

/* アクセス情報は中央寄せ */
.info-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  margin-bottom: 5%;
  text-align: justify;
}
.info-item:nth-child(2) {
  margin-bottom: 7%;
}
.access-info h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.2rem;
}

.access-info p {
  font-size: var(--font-base);
  line-height: 1.6;
  margin-top: 1%;
}

.access-info .address {
  margin-bottom: 1rem;
}

.access-info .hours {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 1100px) {
  .access .container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .access {
    padding: 4rem 0 6rem 0;
  }
  .access .section_title {
    margin-bottom: 3rem;
  }
  .access-map {
    gap: 3rem;
  }
  .map-container iframe {
    height: 300px;
  }
  .info-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 10%;
  }

  .info-item:nth-child(2) {
    margin-bottom: 15%;
  }
  .access-info h3 {
    letter-spacing: 0.1rem;
  }
  .access-info {
    padding: 0.5rem;
  }
}
