/* 全体 ーーーーーーーーーーーーーーーーーー*/

html {
    scroll-behavior: smooth;
}

#contents {
    background-color: #f9f9f9;
}



/* ヘッダー画像部分ーーーーーーーーーーーーーーーーーーーーーーーー */


.main-image img{
    width: 100%;
    height: auto;
  }
  
  @media (min-width: 769px) {
  /* タブレットやPC用のスタイル */
  .main-image {
      margin: 0 auto; /* 必要に応じて中央揃え等 */
      height: auto;
  }
  }



/* 挨拶文セクションーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

#greeting-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* コンテナのスタイル */
.greeting-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* イラストのスタイル */
.greeting-image {
    max-width: 300px;  /* デスクトップ向けイラストサイズ */
    margin-bottom: 20px;
}

/* テキスト部分のスタイル */
.greeting-text {
    max-width: 600px;
}


/* 趣味や得意科目のスタイル */
.additional-info {
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

.greeting-text p {
    line-height: 1.6; /* 行間を1.6倍に設定（好みに応じて調整） */
}

/* デスクトップ用のスタイル */
@media (min-width: 768px) {
    .greeting-container {
        flex-direction: row; /* デスクトップでは横並び */
        justify-content: space-between;
        align-items: center;
    }

    .greeting-image {
        max-width: 300px; /* イラストサイズ調整 */
        margin-right: 40px; /* イラストを左に配置し、右に余白を作る */
        margin-bottom: 0;
    }

    .greeting-text {
        text-align: left; /* デスクトップではテキストを左揃え */
        max-width: 600px;
    }
}

/* モバイル用のスタイル */
@media (max-width: 768px) {
    #greeting-section {
        padding: 30px 15px; /* モバイル向けに余白を調整 */
    }

    .greeting-image {
        max-width: 80%; /* スマホ向けにイラストサイズを調整 */
        margin-bottom: 20px;
    }

    .greeting-text {
        max-width: 90%; /* テキストの幅もスマホ向けに調整 */
        text-align: left; /* テキストは中央揃え */
    }

}

/* ここから先生のセクション ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/
/* 講師セクション全体のスタイル */
#teacher-section {
    padding: 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

/* 講師プロフィールのスタイル */
.teacher-profile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

/* 講師のイラスト */
.teacher-image {
    width: 60%;
    max-width: 150px;
    margin-right: 20px;
}

/* 講師の詳細（名前と肩書き） */
.teacher-details {
    flex-grow: 1;
}

.teacher-name {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

.teacher-title {
    font-size: 1.2rem;
    color: #777;
}

/* メッセージのスタイル */
.teacher-message {
    width: 100%;  /* メッセージを横幅全体に表示 */
    margin-top: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* メッセージをデスクトップでは少し大きく表示 */
@media (min-width: 769px) {
    .teacher-image {
        width: 20%;
        max-width: 180px;
    }

    .teacher-message {
        font-size: 1.2rem;
        margin-top: 20px;
    }
}


/* 設備紹介セクションーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
#facility-section {
    padding: 50px 20px;
    text-align: center;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.facility-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.facility-item {
    overflow: hidden;
}

.facility-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.facility-item:hover .facility-image {
    transform: scale(1.05);
}

/* PC表示の場合 */
@media (min-width: 768px) {
    .facility-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大画面表示の場合 */
@media (min-width: 1024px) {
    .facility-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}



/* 指導スタイルの紹介セクションーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
#course-section {
    text-align: center;
}

.section-title {
    font-size: 24px;
    color: #003e74;
    margin-bottom: 30px;
}

.course-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 各コースのスタイル */
.course-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.course-image-wrapper {
    width: 100%;
}

.course-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
}

.course-details {
    max-width: 700px;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 20px;
}

.course-title {
    font-size: 20px;
    font-weight: bold;
    color: #003e74;
    margin-bottom: 10px;
}


/* PC表示の場合 */
@media (min-width: 768px) {
    .course-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .course-item {
        flex-direction: row;
        text-align: left;
    }

    .course-image-wrapper {
        flex-basis: 50%;
        margin-right: 0; /* 画像の左右に余白を付けない */
    }

    .course-details {
        text-align: left;
        flex-basis: 50%;
        padding-left: 20px; /* 文字部分に左右の余白を追加 */
        padding-right: 20px; /* 両側に余白を追加 */
    }
}
/* 入塾までの流れのセクションーーーーーーーーーーーーーーーーーーーーーーーーーーー */
#admission-process {
    padding: 50px 20px;
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.process-image {
    width: 100%;
    max-width: 150px;
    margin-bottom: 15px;
    border-radius: 50%;
}

.process-details {
    max-width: 700px;
}

.process-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.process-description {
    font-size: 16px;
    color: #555;
}

/* PC表示用スタイル */
@media (min-width: 768px) {
    .process-steps {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        max-width: 48%;
    }

    .process-image {
        margin-right: 20px;
        margin-bottom: 0;
        width: 30%;
        max-width: 180px;
    }

    .process-details {
        width: 70%;
        text-align: left;
    }
}


/* Q&Aセクションーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

#faq {
    padding: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.question {
    cursor: pointer;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.question:hover {
    background-color: #f0f0f0;
}

.answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.5s ease-in;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
}

.answer p {
    padding: 10px 0;
    margin: 0;
}




/* コンセプトセクションのスタイル */
.concept-message {
  margin-top: 40px;
  padding: 20px 150px;
  background-color: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.concept-message h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.concept-message p {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
}
/* モバイルのスタイル */
@media screen and (max-width: 768px) {
  .concept-message {
      padding: 15px;
  }

  .concept-message h2 {
      font-size: 1.5rem;
  }

  .concept-message p {
      font-size: 1rem;
  }
}


/* ネットで問い合わせボタン */

/* 追加部分：ネットでお問い合わせボタンのスタイル */
.contact-button {
    text-align: center;
    margin-top: 20px;
}

.btn-contact {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ff9800; /* お好みの色に変更 */
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: #e68900; /* ホバー時の色を変更 */
}

/* コンセプトリンクのスタイル */
.concept-link a {
    color: red; /* 文字色を赤に */
    text-decoration: underline; /* 下線を引く */
}

.concept-link a:hover {
    color: darkred; /* ホバー時に少し暗くする */
}


/* 小学ページのコース選択遷移ボタン用 */


#juken-section {
    padding-top: 80px;
}
#singaku-section {
    padding-top: 80px;
}

.center-message {
    padding: 0 10px; /* スマホでも左右に余白 */
}

.center-message p {
    font-size: 1.25rem;       /* 全体的にやや小さめに */
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

/* モバイル表示用の調整 */
@media screen and (max-width: 768px) {
    .center-message p {
        font-size: 1rem;         /* スマホではさらに小さくして見やすく */
        margin-bottom: 15px;     /* 行間も若干コンパクトに */
    }

    .center-message {
        padding: 0 15px;         /* スマホ時の左右余白もやや小さめに */
    }
}

/* スライド全体 */
.achievement-slider.swiper {
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
  }
  .achievement-card {
    background: linear-gradient(to bottom right, #fdfdfb, #f9f9f6);
    border: 3px double #d4af37;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* ← メダルも中央に揃うように */
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-image: repeating-linear-gradient(
      45deg,
      rgba(212, 175, 55, 0.02),
      rgba(212, 175, 55, 0.02) 10px,
      transparent 10px,
      transparent 20px
    );
  }
  
  .achievement-badge {
    font-size: 20px;             /* 大きく */
    font-weight: 700;            /* 太字 */
    color: #c89b2d;              /* 金っぽく */
    margin-bottom: 15px;
    letter-spacing: 1.2px;
  }
  
  .achievement-img {
    width: 120px;
    height: 120px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto; /* 中央配置＋下に余白 */
  }
  
  
  .achievement-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .achievement-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 6px;
  }
  
  .achievement-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
  }
  
  .achievement-text {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    padding: 0 10px;
  }
  
  @media screen and (max-width: 768px) {
    .achievement-card {
      padding: 20px 15px;
    }
  
    .achievement-img {
      width: 100px;
      height: 100px;
    }
  
    .achievement-name {
      font-size: 18px;
    }
  
    .achievement-text {
      font-size: 14px;
    }
  }
  
  
  /* Swiperのページネーション */
  .swiper-pagination {
    margin-top: 20px;
    position: static;
    display: flex;
    justify-content: center;
  }
  
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 0.6;
    margin: 0 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .swiper-pagination-bullet-active {
    background-color: #6c63ff;
    transform: scale(1.2);
  }
  
  /* スマホ対応 */
  @media screen and (max-width: 768px) {
    .achievement-card {
      padding: 15px;
    }
  
    .achievement-img {
      width: 100px;
      height: 100px;
    }
  
    .achievement-name {
      font-size: 18px;
    }
  
    .achievement-text {
      font-size: 14px;
    }
  }
  