/* ==============================
   ベース設定
============================== */
html {
  font-size: 18px;
}

body {
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  margin: 0;
  line-height: 1.8;
  background-color: #fafafa;
  color: #333;
}

/* ==============================
   カラーテーマ
============================== */
:root {
  --main-blue: #0078d7;
  --accent-navy: #001f3f;
}

/* ==============================
   ナビゲーション
============================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--main-blue);
  color: white;
  padding: 9px 18px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  z-index: 1000;
}

.nav-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

.menu-links {
  display: flex;
  gap: 10px;
  margin-right: 10px; /* メニュー右の余白 */
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 10px 15px;
  display: block;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

nav a:hover {
  background: var(--accent-navy);
  transform: 0.3s;
}

nav a img {
  display: block;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px; /* ロゴと☰の間隔 */
}

/* ロゴリンクの余白削除 */
.nav-left a {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

/* ハンバーガーメニュー（スマホ用） */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
  color: white;
  user-select: none;
  font-weight: bold;
  padding: 10px 15px;
}

/* ==============================
   ヘッダー
============================== */
header {
  background: linear-gradient(135deg, var(--main-blue), #00a4a2);
  color: white;
  text-align: center;
  padding: 120px 20px 100px;
  margin-top: 60px;
  transition: padding 0.3s ease;
}

header.shrink {
  padding: 80px 20px 60px;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

header p {
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
  margin: 0 auto;
  max-width: 90%;
}

.subtext {
  color: var(--accent-navy);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ==============================
   メインコンテンツ
============================== */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 25px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

section {
  padding: 35px 0;
  border-bottom: 1px solid #eee;
}

section:last-child {
  border-bottom: none;
}

h2 {
  color: var(--main-blue);
  font-size: 1.4rem;
  margin-bottom: 10px;
  border-left: 6px solid var(--accent-navy);
  padding-left: 10px;
}

p, li {
  font-size: 1rem;
  line-height: 1.9;
}

ul {
  padding-left: 20px;
}

/* ==============================
   ボタン
============================== */
.btn {
  display: inline-block;
  margin-top: 20px;
  background-color: var(--main-blue);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--accent-navy);
}

/* ==============================
   フッター
============================== */
footer {
  text-align: center;
  padding: 25px;
  color: white;
  font-size: 0.9rem;
  background: linear-gradient(90deg, var(--main-blue), var(--accent-navy));
}

/* ==============================
   講師カード
============================== */
.teacher-card {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-left: 5px solid var(--accent-navy);
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  gap: 15px;
}

.teacher-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-navy);
}

.teacher-info h3 {
  margin: 0 0 5px;
  color: var(--accent-navy);
}

/* ==============================
   代表からのあいさつ
============================== */
.greeting-box {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 20px;
}

.greeting-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-navy);
}

.greeting-text {
  flex: 1;
  line-height: 1.9;
  color: #333;
}

/* ポイント強調ボックス */
.point-box {
  background: #f4f8ff;
  border-left: 5px solid var(--main-blue);
  border-radius: 6px;
  padding: 15px 20px;
  margin: 20px 0;
}

.point-box h3 {
  color: var(--accent-navy);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.point-box ul {
  margin: 0 0 10px 20px;
  padding: 0;
}

.point-box li {
  list-style-type: "・";
  margin-bottom: 5px;
}

/* ==============================
   スマホ対応
============================== */
@media (max-width: 700px) {
  html {
    font-size: 16px;
  }

  nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: var(--main-blue);
  }

  .nav-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 3px 10px;
    background: none;
  }

  .nav-logo {
    height: 40px; /* スマホでは少し小さめ */
  }

  nav a {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding: 10px;
  }

  .menu-toggle {
    display: block;
    font-size: 1.6em;
    color: white;
    position: relative;
    z-index: 9999;
  }

  .menu-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--main-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .menu-links a {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .menu-links.open {
    display: flex;
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8em;
    color: white;
    margin-left: auto;
  }

  header {
    padding-top: 100px;
    margin-top: 70px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  main {
    margin: 20px 10px;
    padding: 15px;
  }

  h2 {
    font-size: 1.1rem;
  }

  body {
    font-size: 15px;
  }

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

  .teacher-card img {
    width: 100px;
    height: 100px;
  }
  .greeting-box {
    flex-direction: column;
    text-align: left;
  }

  .greeting-photo {
    width: 130px;
    height: 130px;
  }
}