

/* 全体レイアウト */
body {
  margin: 0;
  padding-top: 60px;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  background-color: #fffef9;
}

/* セクションタイトル */
.section-title {
  background-color: #ffd54f;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2em;
  margin-bottom: 10px;
  display: inline-block;
}

/* セクション全体のジャンプ位置調整 */
section {
  scroll-margin-top: 80px;
}


/* ナビゲーションバー（PC） */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffd54f;
  padding: 8px 0;
  padding-left: 0; /* ← 左のすきまを完全になくす！ */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  margin: 0;
  padding: 0;
}

.logo img {
  height: 72px;
  margin-left: 12px; /* ← ちょっと右に寄せる！ */
  display: block;
  object-fit: contain;
  box-shadow: none;
}

/* 共通：PC用メニュー表示 */

/* PC用：常に表示するメニュー */
@media screen and (min-width: 601px) {
  .menu {
    display: flex;
    gap: 24px;
  }

  .icon {
    display: none;
  }
}

.menu a {
  text-decoration: none;
  color: #5d4037;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.menu a:hover {
  background-color: #ffe082;
}

/* スマホ専用のメニュー非表示設定 */
@media screen and (max-width: 600px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffd54f;
    width: 100%;
    padding: 12px;
  }

  .menu.open {
    display: flex;
  }

  .icon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-right: 24px;
  }
}

/* ハンバーガーの線 */
.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: #f57c00;
  margin: 4px 0;
  border-radius: 2px;
}



/* 写真全体に影（ロゴ以外） */
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}



/* 教室案内 */
main {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: #5d4037;
}

.about-box  p:first-child {
  font-weight: bold;
  font-size: 17px;
  padding: 24px;
  margin: 12px auto;
  max-width: 720px;
    color: #5d4037;
  line-height: 1.8;
  background-color: transparent;
  border: none;
  box-shadow: none;
}


.about-box strong {
  color: #f57c00;
}

.about-subtitle {
  font-size: 18px;
  color: #f57c00;
  margin-top: 20px;
  margin-bottom: 10px;
}
.speech-wrapper {
  display: flex;
  align-items: center; /* ← 高さを中央揃えに！ */
  max-width: 760px;
  margin: 24px auto;
  gap: 16px;
}

.speech-bear-outside {
  width: 100px; /* ← サイズを少し大きく！ */
  height: auto;
  flex-shrink: 0;
  margin-top: 0; /* ← 位置を中央に揃えるために余計な余白をなくす */
}


/* フォトギャラリー */
.photo-gallery {
  background-color: #fff8dc;
  padding: 24px;
  border-radius: 16px;
}

.full-width-gallery {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 16px 0;
}

.full-width-gallery img {
  height: 200px;
  flex-shrink: 0;
  border-radius: 12px;
}

.dotted-section {
  background-color: #fff9c4; /* ハニーミルク */
  background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px);
  background-size: 12px 12px; /* ← 間隔を狭くして細かく！ */
  padding: 40px 20px;
  border-radius: 24px;
  min-height: 300px;
}


/*  スマホのときだけ上にくまさん */
@media screen and (max-width: 600px) {
  .speech-wrapper {
    flex-direction: column;
    align-items: center;
  
  }
.speech-text {
    text-align: left; /* ← ここで文章だけ左寄せに！ */
  }
  .speech-bear-outside {
    margin-bottom: 12px;
  }

  .about-speech {
    width: 100%;
  }
}



.about-speech {
  background-color: #fff0f5; /* ← 桜色 */
  border: 1px solid #f8bbd0; /* ← ピンク系の境界線に変更してもOK！ */
  border-radius: 16px;
  padding: 20px;
  flex: 1;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}


.speech-text {
  font-size: 16px;
  color: #5d4037;
  line-height: 1.8;
}

.speech-text h3 {
  margin-top: 0;
  font-size: 18px;
  color: #f57c00;
}
.speech-bear-outside {
  box-shadow: none;
}


/* 写真 */
.photo-pair {
  position: relative;
  width: 380px;         /* ← 写真2枚の合計幅＋余白を考慮 */
  height: 220px;
  margin: 0 auto;       /* ← これで中央寄せ！ */
  margin-bottom: 40px;  /* ← 写真と紹介文の間に余白をつけるとふわっとつながる！ */
}


.photo-frame {
  position: absolute;
  width: 180px;
  border: 8px solid white;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.tilt-right {
  top: 0;
  left: 0;         /* ← ちょっと右に寄せてバランス調整！ */
  transform: rotate(5deg);
  z-index: 1;
}


.tilt-left {
  top: 40px;
  left: 150px;          /* ← ちばさんの調整通り！ */
  transform: rotate(-5deg);
  z-index: 2;
}




@media screen and (max-width: 600px) {
  .photo-frame {
    width: 140px;  /* ← 通常より少し小さめに！ */
  }

  .photo-pair {
    width: 300px;  /* ← 親要素も少しコンパクトに */
  }

  .tilt-left {
    left: 120px;   /* ← ずらし量も調整して欠けないように✨ */
  }
}

.photo-frame {
  width: 180px;
  /* その他のスタイルはそのまま */
}

/* イベント写真 */
.event-gallery {
  background-color: #fffde7;
  padding: 40px 20px;
  border-radius: 24px;
}







.full-width-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0;
}

.full-width-gallery img {
  max-height: 220px;
  height: auto;
  aspect-ratio: auto; /* ← 高さ優先で自然な比率に */
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}




.dotted-section {
  background-color: #fffde7;
  background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  padding: 40px 20px;
  border-radius: 24px;
}

.scattered-gallery {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 16px 0;
  scroll-padding-left: 24px; /* ← スクロール領域の左端を広げる！ */
}



.scattered-gallery img {
  width: auto;
  max-height: 160px; /* ← 高さを抑えて1段に収めやすく！ */
  object-fit: contain; /* 切れずに全体が見える */
  margin: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}



/* 角度をランダムに見せる */
.scattered-gallery img:nth-child(1) {
  transform: rotate(-5deg);
  z-index: 1;
  margin-left: 24px; /* ← 12px → 24px にしてみる！ */
}

.scattered-gallery img:nth-child(2) { transform: rotate(3deg); z-index: 2; }
.scattered-gallery img:nth-child(3) { transform: rotate(-2deg); z-index: 3; }
.scattered-gallery img:nth-child(4) { transform: rotate(4deg); z-index: 4; }
.scattered-gallery img:nth-child(5) { transform: rotate(-4deg); z-index: 5; }
.scattered-gallery img:nth-child(6) { transform: rotate(2deg); z-index: 6; }

/* ホバーでふわっと浮く */
.scattered-gallery img:hover {
  transform: scale(1.05) rotate(0deg);
  z-index: 10;
}

.photo-box {
  position: relative;
  display: inline-block;
}

.photo-box img {
  width: 120px;
  border-radius: 12px;
  object-fit: contain;
}

.photo-caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: #fffde7cc;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.gallery-title-wrapper {
  background-color: #fff8c6; /* 少し明るめの黄色に変更して水玉が映えるように */
  background-image: radial-gradient(#ffffff 3px, transparent 3px);
  background-size: 16px 16px;
  padding: 24px;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.gallery-title {
  font-size: 17px;
  font-weight: bold;
  color: #6b4f3f; /* ← やわらかいブラウン系に変更！ */
  margin: 0;
}




/* 英検案内 */
.eiken-box {
  background-color: #fff8e1;
  border: 1px solid #fbc02d;
  border-radius: 12px;
  padding: 20px;
  margin: 32px auto;
  max-width: 720px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  font-size: 16px;
  color: #5d4037;
  line-height: 1.8;
}
.trademark {
  font-size: 1.4em;           /* ← サイズはそのまま大きめ */
  vertical-align: -0.2em;     /* ← 少し下にずらす！ */
  margin-left: 2px;
}


.eiken-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 12px 0;
}

.eiken-icons img {
  width: 100px;
  height: auto;
  box-shadow: none;
}



/* 活動履歴 */

.history-subtitle {
  font-size: 20px;
  color: #f57c00; /* ← ちばさんカラーで統一感！ */
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: bold;
  border-left: 6px solid #ffd54f;
  padding-left: 12px;
}


.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px;
  color: #5d4037;
}

.history-table th,
.history-table td {
  border: 1px solid #fbc02d;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.history-table th {
  background-color: #fff8e1;
  font-weight: bold;
}

.history-table tr:nth-child(even) {
  background-color: #fffef9;
}


.history-list {
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
}

.history-list li {
  padding: 8px 0;
  border-bottom: 1px dotted #fbc02d;
  color: #5d4037;
  font-size: 16px;
  line-height: 1.6;
}


.history-link {
  color: #f57c00;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
}

.history-link:hover {
  text-decoration: underline;
  color: #ff9800;
}


/* 活動履歴からトップページに戻る */
.back-link {
  color: #f57c00;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
}

.back-link:hover {
  text-decoration: underline;
  color: #ff9800;
}

/* 講師紹介 */
.teacher-box {
  background-color: #fff8e1;
  border: 2px dashed #fbc02d;
  border-radius: 16px;
  padding: 24px;
  margin: 24px auto;
  max-width: 640px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.teacher-box h4 {
  font-size: 20px;
  color: #f57c00;
  margin-top: 24px;
  margin-bottom: 8px;
}

.teacher-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #5d4037;
}

.teacher-photo-frame {
  background-color: #ffffff;
  padding: 12px;
  border: 3px solid #fbc02d;
  border-radius: 8px;
  width: fit-content;
  margin: 0 auto 16px; /* ← これが中央配置のポイント！ */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  
}

.teacher-photo {
  display: block;
  margin: 0 auto;
  width: 100px;
  height: auto;
  border-radius: 4px;
}



/* コース案内 */

.abc-illustration {
  box-shadow: none;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px;
  color: #5d4037;
}

.course-table th,
.course-table td {
  border: 1px solid #fbc02d !important;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.course-table th {
  background-color: #fff8e1;
  font-weight: bold;
}

.course-table tr:nth-child(even) {
  background-color: #fffef9;
}

/* 動画 */





.menu-title {
  font-size: 1.0em;
  font-weight: bold;
  color: #6d4c41;
  margin-bottom: 16px;
}


.course-movies-block {
  margin-top: 24px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.course-movies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}


.course-video {
  width: 320px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


/* 📱 スマホでは縦並び＋サイズ固定 */



.movie-group-caption {
  background-color: #fff8dc;
  color: #5d4037;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 1.2em;
  font-weight: bold;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 16px;
}


@media screen and (max-width: 600px) {
  .course-movies {
    flex-direction: column;
    align-items: center;
  }

  .course-video {
    width: 200px !important;
    max-width: 200px !important;
    height: auto !important;
    margin-bottom: 12px !important;
    display: block !important;
  }

  .course-movies-block {
    max-width: 240px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
}




/* 受講者の声 */
.voice-link {
  color: #f57c00;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
}

.voice-link:hover {
  text-decoration: underline;
  color: #ff9800;
}

.voice-card {
  background-color: #fffde7;
  border: 1px solid #fbc02d;
  padding: 16px;
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.voice-card h3 {
  margin-top: 0;
  color: #f57c00;
  font-size: 18px;
}

.voice-block {
  background-color: #fffde7;
  border: 1px solid #fbc02d;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.voice-block h3 {
  color: #f57c00;
  margin-top: 24px;
  font-size: 18px;
}

.voice-block p {
  font-size: 16px;
  line-height: 1.6;
  color: #5d4037;
}

.voice-image {
  width: 120px;
  float: right;
  margin-left: 16px;
  margin-bottom: 8px;
}

.voice-row {
  display: flex;
  align-items: flex-start;
  margin: 24px 0;
  background-color: #fffde7;
  border: 1px solid #fbc02d;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.voice-bear {
  width: 100px;
  margin-right: 16px;
  flex-shrink: 0;
}

.voice-text {
  flex: 1;
}

.voice-text h3 {
  color: #f57c00;
  margin-top: 0;
  font-size: 18px;
}

.voice-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #5d4037;
}

.voice-bear {
  width: 70px;
  height: 65px;
  margin-right: 16px;
  flex-shrink: 0;
}

.voice-image-top {
  display: none; /* PCでは非表示にしておく */
}

@media screen and (max-width: 600px) {
 

  .voice-bear {
    float: none;
    margin: 0 auto 12px auto;
    display: block;
  }

  .voice-text {
    width: 100%;
  }

  .voice-row {
    flex-direction: column;
    align-items: flex-start; /* ← 本文は左揃えのまま！ */
  }

  .voice-bear {
    float: none;
    display: block;
    margin: 0 auto 12px auto; /* ← 画像だけ中央に！ */
  }

  .voice-text {
    width: 100%;
  }
}



/* Q＆A */

.qa-box {
  background-color: #fff8dc;
  border-left: 6px solid #ffd54f;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.question {
  font-weight: bold;
  color: #5d4037;
  margin-bottom: 4px;
}

.answer {
  color: #4e342e;
  margin-bottom: 10px;
}

/* トップに戻る↑ */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ffd54f;
  color: #5d4037;
  font-size: 24px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 999;
  transition: background-color 0.3s;
}

.back-to-top:hover {
  background-color: #ffe082;
}

/* マップをかわいく */

.map-box {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}




/* お問い合わせ*/
.contact-box {
  background-color: #fff8e1;
  border: 1px solid #fbc02d;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  font-size: 16px;
  color: #5d4037;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}

.contact-list li {
  margin-bottom: 8px;
}

.contact-box a {
  color: #f57c00;
  font-weight: bold;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
  color: #ff9800;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
}

.contact-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 14px 28px;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.2s;
  width: 90%;
  max-width: 320px;
  text-align: center;
}

/* 電話ボタン */
.phone-btn {
  background-color: #ffe082;
  color: #5d4037;
}

/* メールボタン */
.mail-btn {
  background-color: #ffecb3;
  color: #5d4037;
}

.contact-btn:hover {
  background-color: #ffd54f;
  transform: scale(1.03);
}

.contact-note {
  text-align: center;
  font-size: 14px;
  color: #5d4037;
  margin-top: 12px;
}


/* おしらせ インスタ・ブログへ*/

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

/* 4匹のくま */
.bear-illustration {
  max-width: 100%;
  height: auto;
  margin: 32px auto;
  display: block;
box-shadow: none; /* ← 影なしに！ */
}


.closing-illustration {
  background-color: #ffffff; 
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  margin-top: 40px;
}


.closing-message {
  font-family: "Yusei Magic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 1.4em;
  color: #f57c00;
  text-align: center;
  margin-bottom: 16px;
}




/* PC・共通スタイル */
body .social-links a {
  display: block;
  background-color: #ffecb3;
  color: #5d4037;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, background-color 0.3s;
  text-align: center;
  margin: 0 auto;
  width: 90%;
  max-width: 320px;
}


/* スマホ専用の上書きスタイル */
@media screen and (max-width: 600px) {
  body .social-links a {
    font-size: 16px;
    padding: 12px 20px;
    width: 100%;
    max-width: none;
    margin: 0 12px;
  }
}

.social-links a:hover {
  background-color: #ffe082;
  transform: scale(1.03);
}

.intro-text h2 {
  margin-bottom: 24px;
}

@media screen and (min-width: 601px) {
  .course-video {
    width: 320px !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 0 !important;
    display: block !important;
  }
}


