@charset "UTF-8";

/* =========================
   共通設定
========================= */
html {
  font-size: 100%;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
  line-height: 1.7;
  color: #432;
  overflow-x: hidden;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================
   レイアウト
========================= */
.wrapper {
  max-width: 1120px;
  margin: auto;
  padding: 0 1.5rem;
}

.align-center {
  text-align: center;
}

/* =========================
   見出し
========================= */
.font-english {
  font-family: 'Philosopher', sans-serif;
}

.page-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-top: 3rem;
  margin-bottom: 2rem;
  color: #fff;
  text-align: center;
}

.Class h3 {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  color: #fff;
  margin: 1.5rem 0 2rem;
  text-align: center;
}

/* =========================
   ボタン・ナビリンク
========================= */
.btn,
.main-nav a,
.contact-btn {
  display: inline-block;
  font-size: 1.6rem;
  color: #fff;
  background-color: transparent;
  border: none;
  border-radius: 12px;
  padding: 1rem 2.2rem;
  margin: 0.5rem;
  cursor: pointer;
  transition: .3s;
}

.btn:hover,
.main-nav a:hover,
.contact-btn:hover {
  background-color: #0090aa;
  transform: translateY(-2px);
}

/* =========================
   ヘッダー
========================= */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  gap: 1rem;
}

.logo {
  width: 140px;
}

/* =========================
   ナビゲーション
========================= */
.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  list-style: none;
  flex-wrap: wrap;
}

/* =========================
   カバー画像（上下切れない対応）
========================= */
.cover-home {
  background-image: url(../images/cover-home-l.jpg); /* PC用 */
  background-size: contain;       /* PCは画像全体を収める */
  background-position: center;    
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 3rem;
}

/* =========================
   教育理念・各校案内
========================= */
.idea-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  text-align: center;
  color: #432;
}

.idea-subtitle {
  display: block;
  font-size: 1.4rem;
  color: #7a6f67;
  margin-top: .5rem;
}

.idea-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1rem;
}

.idea-box {
  border-radius: 16px;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.idea-color-1 {
  background: #f3efe6;
  border-left: 8px solid #c9b79c;
}

.idea-color-2 {
  background: #eef4f8;
  border-left: 8px solid #8fb3c8;
}

.idea-color-3 {
  background: #f7f0f5;
  border-left: 8px solid #c8a0b8;
}

.idea-box h3 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.idea-box p,
.idea-box table {
  font-size: 1.5rem;
  line-height: 2.2;
}

/* =========================
   テーブル
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

th, td {
  padding: 0.8rem;
  text-align: center;
}

th {
  background: rgba(0,0,0,0.05);
}

/* =========================
   講師紹介
========================= */
.teacher-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.teacher-card {
  display: flex;
  gap: 1.5rem;
  background: #f9f9f9;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.teacher-card img {
  width: 160px;
  border-radius: 12px;
}

.teacher-card p {
  font-size: 1.5rem;
  line-height: 2.2;
}

/* =========================
   お問い合わせ
========================= */
.email-text {
  text-align: center;
  color: #fff; /* Contactと同じ色 */
  font-size: 1.3rem;
  line-height: 1.9;
}

.contact-btn {
  background-color: #0090aa;
}

/* =========================
   フッター
========================= */
.page-footer {
  background-image: url(../images/footer-s.webp);
  background-size: cover;
  background-position: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-note,
.page-footer small {
  font-size: 1.3rem;
  color: #432;
  display: block;
  margin-top: 1rem;
}

/* =========================
   スマホ最終調整
========================= */
@media (max-width: 600px) {

  .page-header {
    flex-direction: column;
  }

  .main-nav {
    justify-content: center;
  }

  .teacher-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .teacher-card img {
    width: 100%;
    max-width: 260px;
  }

  table {
    font-size: 1.2rem;
  }

  .page-title {
    font-size: clamp(2rem, 6vw, 4rem);
  }

  .Class h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  /* スマホ用カバー画像に切り替え + 画面いっぱい表示 */
  .cover-home {
    background-image: url(../images/cover-home-m.png); /* スマホ用 */
    background-size: cover;   /* 画面いっぱいに拡大 */
    background-position: center;
  }
}
