/* 東京鄭愛鎭 韓国舞踊学院 - スタイルシート */

/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-light: #e9e9e9;
  --color-primary: #6c1e09;
  --color-accent: #89645c;
  --color-secondary: #d0c8c2;
  --color-white: #ffffff;
  --color-black: #000000;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.8;
  overflow-x: hidden;
}

.serif-font {
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
}

/* ヘッダー */
header {
  background-color: var(--color-white);
  border-bottom: 2px solid var(--color-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(88, 32, 18, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.school-name {
  font-size: 2.5rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer; /* クリック可能であることを示す */
  transition: opacity 0.3s ease;
}

.school-name:hover {
  opacity: 0.8;
}

.tagline {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-top: 0.5rem;
}

/* ナビゲーション */
.nav-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 400px;
  justify-content: flex-end;
  margin-right: 170px;
}

.desktop-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.6rem, 1.2vw, 0.85rem);
  padding: clamp(0.2rem, 0.4vw, 0.3rem) clamp(0.4rem, 0.8vw, 0.6rem);
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.desktop-nav a:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

/* Fixed CTA Button */
.fixed-cta-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2500;
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%); /* 鮮やかな赤のグラデーション */
  color: var(--color-white);
  border-radius: 50px;
  padding: 0.6rem 1.5rem; /* 少し大きくして存在感を出す */
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.4); /* 影にも色を付けて発光感を出す */
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2); /* 微細な枠線で立体感 */
  letter-spacing: 0.05em;
}

.fixed-cta-btn:hover {
  background: linear-gradient(135deg, #ff6666 0%, #e60000 100%);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.5);
}

.lang-toggle {
  background: none;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lang-toggle:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.header-lang-toggle {
  margin-left: auto;
}

@media (max-width: 768px) {
  .header-lang-toggle .lang-toggle {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* サイドメニュー */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease;
  z-index: 2000;
  overflow-y: auto;
}

.side-menu.active {
  right: 0;
}

.side-menu-header {
  padding: 2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.side-menu-header h3 {
  font-size: 1.2rem;
}

.side-menu nav {
  padding: 2rem 0;
}

.side-menu nav a {
  display: block;
  padding: 1rem 2rem;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-light);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.side-menu nav a:hover {
  background-color: var(--color-secondary);
  padding-left: 2.5rem;
}

.close-menu-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 2001;
}

.close-menu-btn:hover {
  transform: scale(1.1);
  color: var(--color-accent);
}

/* オーバーレイ */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* パンくずリスト */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: #999;
}

/* ヒーローセクション（div1） */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide.next {
  transform: translateX(100%);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) sepia(20%) brightness(0.7);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(88, 32, 18, 0.3), rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  width: 90%;
}

.hero-title {
  font-size: 4rem;
  color: var(--color-white);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.1em;
}

/* CTAセクション（div2） */
.cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 3rem auto;
  gap: 2rem;
  padding: 0 2rem;
}

.cta-box {
  background-color: #c9976d;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.cta-box:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(88, 32, 18, 0.2);
}

.cta-box h2 {
  color: var(--color-primary);
  font-size: 1.8rem;
  font-weight: 700;
}

/* 赤色のCTAボックス（初めての方へ） */
.cta-box.cta-red {
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.4);
}

.cta-box.cta-red h2 {
  color: var(--color-white);
}

.cta-box.cta-red:hover {
  background: linear-gradient(135deg, #ff6666 0%, #e60000 100%);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 共通セクション */
.section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* お知らせセクション（div3） */
.news-section {
  text-align: center;
}

/* --- お知らせセクションのボックスを広げる設定 --- */

/* index.htmlにある <div class="news-content"> を指定 */
#news .news-content {
  width: 95% !important;      /* 横幅に連動させる */
  max-width: 1300px !important; /* 最大幅を800pxから1100pxに拡大 */
  margin: 0 auto !important;
}

/* X（Twitter）の埋め込み自体の幅を広げる */
#news .news-content iframe {
  width: 100% !important;
  min-width: 100% !important;
}

/* 画面が小さい時（スマホ）の調整 */
@media (max-width: 768px) {
  #news .news-content {
    width: 92% !important;
    padding: 10px; /* 内側に少し余裕を持たせる */
  }
}

/* --- この部分を書き換えてください --- */
.twitter-embed {
  width: 95%;           /* 横幅に連動させる */
  max-width: 1200px;    /* 600pxから1200pxへ大幅に拡大 */
  margin: 0 auto;
  min-height: 400px;
  border: 2px solid var(--color-secondary);
  border-radius: 8px;
  padding: 2rem;
  background-color: var(--color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}

/* ついでに中のタイムラインも幅いっぱいに広がるようにします */
.twitter-widget-container {
  width: 100%;
  max-width: 100%; /* 追加：コンテナの中で左右いっぱいに使う */
  min-height: 200px;
  display: flex;
  justify-content: center;
}

/* Fallback style for when the widget doesn't load */
a.twitter-timeline {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

a.twitter-timeline:hover {
  opacity: 0.8;
}

/* Safari対策用固定ボタンエリア */
.x-fallback-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px dashed #ccc;
}

.fallback-text {
  color: #666;
  margin: 0;
}

.x-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.x-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  background-color: #333;
}

.x-icon {
  font-size: 1.2rem;
  font-weight: normal;
}

/* 講師紹介セクション（div4） */
.teacher-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.teacher-photo {
  width: 100%;
  max-width: 400px; /* 少し小さめに調整 */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(88, 32, 18, 0.3);
  display: block;
  margin: 0 auto;
}

.teacher-text {
  font-size: 1.1rem;
  line-height: 2;
  color: #555;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.arrow-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  padding: 0.8rem 3rem;
  border-radius: 50px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 1rem;
  background-color: transparent;
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  letter-spacing: 0.1em;
}

.arrow-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(88, 32, 18, 0.2);
}

.arrow-icon {
  display: none;
}

/* ナビゲーションカード（div5） */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nav-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.nav-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(88, 32, 18, 0.3);
}

.nav-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nav-card:hover img {
  transform: scale(1.1);
}

.nav-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(88, 32, 18, 0.9), transparent);
  color: var(--color-white);
  padding: 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
}

/* お問い合わせセクション */
.contact-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  width: 100px; /* アイコンの幅を統一 */
}

.contact-item:hover {
  transform: translateY(-5px);
}

.icon-circle {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-secondary);
  transition: background-color 0.3s ease;
}

.contact-item:hover .icon-circle {
  background-color: var(--color-primary);
}

.contact-item:hover .icon-circle svg {
  fill: var(--color-white);
}

.icon-circle svg {
  width: 35px;
  height: 35px;
  fill: var(--color-primary);
  transition: fill 0.3s ease;
}

.icon-label {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* 初めての方へ（特別デザイン） */
.contact-item.special-item {
  width: 240px; /* ボタンなので幅広に */
  margin-right: 1rem; /* 他のアイコンと少し間隔を空ける */
}

.special-btn {
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
  color: white;
  width: 100%;
  padding: 1rem 0;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.special-btn .serif-font {
  font-weight: bold;
  font-size: 1.1rem;
}

.contact-item.special-item:hover .special-btn {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.5);
  background: linear-gradient(135deg, #ff6666 0%, #e60000 100%);
}

.contact-item.special-item:hover {
  transform: none; /* アイコン用のホバーを打ち消し */
}

/* Google Map 表示エリア */
.map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 2px solid var(--color-secondary);
}

.map-wrapper:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* クリック判定用の透明レイヤー */
.map-overlay-click {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: transparent;
}

.map-caption {
  margin-top: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.address-text {
  margin-top: 0.5rem;
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center; /* グリッド全体（アイテムの塊）を画面中央に配置 */
    gap: 1.5rem;
    width: 100%;
  }
  
  /* 「初めての方へ」ボタンも幅を統一して中央軸を合わせる */
  .contact-item.special-item {
    margin-right: 0;
    width: 280px;
    justify-content: center; /* ボタン内の文字は中央揃え */
  }
  
  /* カカオ・LINE・電話・メールのスタイル調整 */
  .contact-item:not(.special-item) {
    flex-direction: row; /* アイコンと文字を横並びに */
    width: 280px; /* 幅を固定して、画面中央に配置した際の軸を揃える */
    gap: 1.5rem;
    justify-content: flex-start; /* アイコンの位置を左端で揃える */
    padding-left: 30px; /* 左端からの余白を統一してアイコンの縦ラインをピシッと揃える */
    box-sizing: border-box; /* パディングを含めた幅計算 */
  }
  
  /* スマホ表示時のアイコンラベル調整 */
  .contact-item .icon-label {
    font-size: 1.1rem;
    text-align: left;
  }

  .map-wrapper iframe {
    height: 250px;
  }
}

/* フッター */
footer {
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: 2rem;
  margin-top: 5rem;
}

footer p {
  font-size: 0.9rem;
}

/* サブページのメインコンテンツ */
.main-content {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  min-height: 60vh;
}

.content-box {
  background-color: var(--color-white);
  border: 2px solid var(--color-secondary);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.content-box h1 {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-accent);
}

.content-box p {
  font-size: 1.1rem;
  line-height: 2;
  color: #555;
  margin-bottom: 1.5rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-right: 0;
  }

  .fixed-cta-btn {
    display: none;
  }

  .side-menu {
    width: 80%;
    max-width: 320px;
  }

  .header-container {
    padding: 1rem;
  }

  .logo-img {
    width: 70px;
    height: 70px;
  }

  .school-name {
    font-size: 1.1rem;
  }

  .tagline {
    font-size: 0.8rem;
  }
  
  .logo-section {
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .cta-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem auto;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem; /* 題名とコンテンツの距離を近づける */
  }

  .teacher-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-icons {
    gap: 2rem;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
  }

  .icon-circle svg {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section {
    margin: 2rem auto;
  }

  .content-box {
    padding: 2rem 1.5rem;
  }

  .content-box h1 {
    font-size: 2rem;
    margin-bottom: 1rem; /* サブページの題名とコンテンツの距離を近づける */
    padding-bottom: 0.5rem;
  }
}

/* 無料テキストの改行設定 */
.btn-free-text {
  display: inline;
}

@media (max-width: 480px) {
  .btn-free-text {
    display: block;
    font-size: 0.9em;
    margin-top: 0.2rem;
  }
  
  /* ボタンの高さを自動調整 */
  .sticky-btn {
    height: auto;
    padding: 0.8rem 1rem;
    line-height: 1.3;
  }
}
/* フィルターの強制解除と無料テキストの調整 */
.slide img {
  filter: none !important;
  -webkit-filter: none !important;
  brightness: 1.0 !important;
}

/* 無料テキストの改行設定 - 優先度高 */
@media (max-width: 480px) {
  .btn-free-text {
    display: block !important;
    font-size: 0.9em;
    margin-top: 0.2rem;
  }
  
  .sticky-btn {
    height: auto !important;
    padding: 0.8rem 1rem !important;
    line-height: 1.3 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.language-select-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 15, 10, 0.85); /* 深みのある暗い背景 */
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  backdrop-filter: blur(4px); /* すりガラス効果 */
}

.language-select-overlay.active {
  display: flex;
  opacity: 1;
}

.language-select-modal {
  background-color: #ffffff;
  padding: 5rem 6rem;
  max-width: 700px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 伝統的な雰囲気の二重枠線 */
.language-select-modal::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid var(--color-primary);
  pointer-events: none;
}

.language-select-modal::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--color-secondary);
  pointer-events: none;
}

.language-select-overlay.active .language-select-modal {
  transform: translateY(0);
}

.language-select-modal h2 {
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 4rem;
  line-height: 2;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.language-buttons {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.language-btn {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 1.2rem 4rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  letter-spacing: 0.2em;
  position: relative;
  overflow: hidden;
  min-width: 180px;
  z-index: 1;
}

/* ボタンのホバーエフェクト（背景色がスライド） */
.language-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.language-btn:hover {
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(88, 32, 18, 0.15);
}

.language-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.language-label {
  position: relative;
}

@media (max-width: 768px) {
  .language-select-modal {
    padding: 3rem 2rem;
  }

  .language-select-modal h2 {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .language-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .language-btn {
    width: 100%;
    padding: 1.2rem;
  }
}


/* 講師紹介ページ専用スタイル */
.teacher-profile {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.teacher-photo-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
}

.teacher-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(88, 32, 18, 0.2);
  object-fit: contain;
  display: block;
}

.teacher-description {
  width: 100%;
  max-width: 800px;
  padding: 0 1rem;
}

.teacher-description p {
  font-size: 1.1rem;
  line-height: 2;
  color: #333;
  margin: 0;
  text-align: justify;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
  width: 100%;
  /* ボックススタイルを削除して外側のボックスと統一 */
  background-color: transparent;
  border: none;
  padding-left: 0.5rem; /* 少しインデントを持たせる */
}

.profile-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  color: #444;
}

.profile-list li::before {
  content: '\30FB'; /* 中黒（・）のUnicode */
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.achievement-section {
  margin-top: 3rem;
  width: 100%;
  text-align: left;
}

.achievement-title {
  font-size: 1.6rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.achievement-year {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-accent);
}

.achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievement-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
  font-size: 1rem;
  color: #444;
}

.achievement-list li::before {
  content: '\25CF'; /* 黒丸（●）のUnicode */
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.8rem;
  top: 0.1rem;
}

@media (max-width: 768px) {
  .teacher-photo-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .teacher-description {
    padding: 0 0.5rem; /* パディングを減らして横幅を確保 */
  }

  .teacher-description p {
    font-size: 1rem;
    line-height: 1.9;
  }
  
  .profile-list {
    padding: 1.5rem 0; /* パディングを極限まで減らす */
  }

  .profile-list li {
    padding-left: 1rem; /* インデントも少し減らす */
  }
}

/* スマホ表示時の「初めての方へ」リンク（サイドバー内） */
.mobile-only-link {
  color: var(--color-white) !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%); /* PCボタンと同じ背景色 */
  border-left: none !important;
  padding: 1rem 2rem !important;
  margin: 1rem 2rem;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
  display: block;
  width: auto;
}

.mobile-only-link:hover {
  background: linear-gradient(135deg, #ff6666 0%, #e60000 100%) !important;
  padding-left: 2rem !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.4);
}

/* レッスン内容ページ専用スタイル */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

@media (max-width: 480px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
}

.program-item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-light);
  transition: transform 0.3s ease;
}

.program-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(88, 32, 18, 0.1);
  border-color: var(--color-accent);
}

.program-title {
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-secondary);
}

.program-item p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.schedule-table th,
.schedule-table td {
  padding: 1rem;
  border: 1px solid var(--color-secondary);
  text-align: left;
}

.schedule-table th {
  background-color: #f5e6d3; /* 明るいベージュに変更 */
  color: var(--color-primary); /* 文字色は濃い茶色 */
  width: 30%;
  font-weight: 600;
  white-space: nowrap;
}

.schedule-table td {
  background-color: var(--color-white);
  color: #333;
}

/* 木の幹のような薄い茶色のCTAボタン */
.cta-box.cta-wood {
  background-color: #a1887f; /* 薄い茶色 */
  border-color: transparent;
}

.cta-box.cta-wood h2 {
  color: var(--color-white);
}

.cta-box.cta-wood:hover {
  background-color: #8d6e63; /* ホバー時は少し濃く */
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(88, 32, 18, 0.2);
}

.works-class-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.works-class-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0.3rem;
}

.contact-link {
  display: inline-block;
  color: #cc0000; /* 赤色に変更 */
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #ff4d4d; /* ホバー時は明るい赤 */
}

.lesson-note {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background-color: var(--color-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--color-secondary);
}

.note-text {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.2rem;
  text-align: center;
  margin: 0 !important;
}

.note-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.note-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 220px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 初めての方へ（赤系） */
.note-btn-red {
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
  color: #fff;
  border: none;
}

.note-btn-red:hover {
  background: linear-gradient(135deg, #ff6666 0%, #e60000 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.3);
  color: #fff;
}

/* お問い合わせ（木目系） */
.note-btn-wood {
  background-color: #a1887f;
  color: #fff;
}

.note-btn-wood:hover {
  background-color: #8d6e63;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(141, 110, 99, 0.4);
  color: #fff;
}

@media (max-width: 768px) {
  .note-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0;
  }
  
  .note-btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto; /* 強制的に中央揃え */
    min-width: auto; /* min-widthをリセット */
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .schedule-table th,
  .schedule-table td {
    display: block;
    width: 100%;
  }
  
  .schedule-table th {
    text-align: center;
  }
}


/* 英語環境向けのレスポンシブ調整 - 早めの切り替え */
@media (max-width: 1150px) {
  html[lang="en"] .desktop-nav {
    display: none;
  }

  html[lang="en"] .hamburger {
    display: flex;
    margin-right: 0;
  }

  html[lang="en"] .fixed-cta-btn {
    display: none;
  }
  
  html[lang="en"] .side-menu {
    width: 80%;
    max-width: 320px;
  }
  
  html[lang="en"] .header-container {
    padding: 1rem;
  }
}

/* English: Compact button to save space */
html[lang="en"] .fixed-cta-btn {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0;
}

/* English: Aggressive responsive switch to avoid overlap */
@media (max-width: 1350px) {
  html[lang="en"] .desktop-nav {
    display: none;
  }

  html[lang="en"] .hamburger {
    display: flex;
    margin-right: 0;
  }

  /* Hide CTA button when menu collapses to ensure no overlap */
  html[lang="en"] .fixed-cta-btn {
    display: none;
  }
  
  html[lang="en"] .side-menu {
    width: 80%;
    max-width: 320px;
  }
  
  html[lang="en"] .header-container {
    padding: 1rem;
  }
}

/* Japanese & Korean: Earlier switch than default */
@media (max-width: 1200px) {
  html[lang="ja"] .desktop-nav,
  html[lang="ko"] .desktop-nav {
    display: none;
  }

  html[lang="ja"] .hamburger,
  html[lang="ko"] .hamburger {
    display: flex;
    margin-right: 0;
  }

  html[lang="ja"] .fixed-cta-btn,
  html[lang="ko"] .fixed-cta-btn {
    display: none;
  }
  
  html[lang="ja"] .side-menu,
  html[lang="ko"] .side-menu {
    width: 80%;
    max-width: 320px;
  }
  
  html[lang="ja"] .header-container {
    padding: 1rem;
  }
}

/* 活動実績ページのスタイル */
.history-section {
  margin-bottom: 5rem;
  border-bottom: 1px solid var(--color-secondary);
  padding-bottom: 3rem;
}

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

.history-title {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 5px solid var(--color-accent);
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
}

/* 画像スクロール（スライダー） */
.history-slider-container {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  /* スクロールバーのスタイリング */
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-light);
  -webkit-overflow-scrolling: touch; /* iOSでの滑らかなスクロール */
  /* スクロールスナップの追加 */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.history-slider-container::-webkit-scrollbar {
  height: 8px;
}

.history-slider-container::-webkit-scrollbar-track {
  background: var(--color-light);
  border-radius: 4px;
}

.history-slider-container::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: 4px;
}

.history-slide {
  display: inline-block;
  width: 300px;
  height: 200px;
  margin-right: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  /* スクロールスナップの整列 */
  scroll-snap-align: start;
}

.history-slide:hover {
  transform: scale(1.02);
}

.history-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-description {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #555;
}

/* 実績リスト */
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-list li {
  display: flex;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--color-secondary);
  font-size: 1.05rem;
}

.history-date {
  font-weight: 700;
  color: var(--color-primary); /* 赤色からメインカラーに変更 */
  min-width: 120px;
  margin-right: 1rem;
  white-space: nowrap;
}

.history-event {
  color: #333;
}

.history-more {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  text-align: right;
  font-style: italic;
}

@media (max-width: 768px) {
  .history-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  
  .history-date {
    margin-bottom: 0.2rem;
  }
}


/* --- LP(初めての方へ)専用スタイル --- */

/* LP全体の設定 */
.lp-body {
  background-color: #fcfcfc;
  overflow-x: hidden; /* 横スクロール防止 */
}

/* 簡易ヘッダー */
.lp-header {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  border-bottom: none;
  padding: 1rem 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.lp-header .header-container {
  padding: 0 2rem;
  justify-content: flex-start;
  height: auto;
  display: flex;
  align-items: center;
}

.lp-header .logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: default;
}

.lp-header .logo-img-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-header .logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.8); 
  transition: transform 0.3s ease;
}

.lp-header .logo-img-wrapper:hover .logo-img {
  transform: scale(2.0);
}

.lp-header .logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  color: #ffffff !important;
  text-shadow: none;
}

.lp-header .catchphrase {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  opacity: 1.0;
  color: #ffffff;
  font-weight: bold;
}

.lp-header .school-name {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #ffffff !important;
  text-shadow: none;
}

/* ヒーローセクション */
.lp-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  color: var(--color-white);
}

/* 背景画像の無限スクロール */
.lp-hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.lp-hero-bg-scroll {
  display: flex;
  width: fit-content;
  height: 100%;
}

.lp-hero-bg-scroll img {
  height: 100%;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  filter: brightness(0.6) !important;
}

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

.lp-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
}

.lp-hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 8rem 2rem 2rem;
  animation: fadeInUp 1s ease-out;
  text-align: right;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.lp-hero-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
  line-height: 1.3;
}

.lp-hero-text {
  font-size: 1.2rem;
  line-height: 2;
  margin-bottom: 3rem;
  font-weight: 500;
}

.hero-target-box {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.95);
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}

.target-line {
  color: #3e2723;
  font-size: clamp(1rem, 2.5vw, 1.4rem); /* 1.2倍に調整 & レスポンシブ対応 */
  font-weight: bold;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.target-line::before {
  content: "✓";
  color: #cc0000;
  font-size: 1.2rem;
  font-weight: bold;
}

.hero-main-copy {
  margin: 3rem 0 2rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  line-height: 1.0;
  text-align: right;
}

.copy-small {
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
  margin-bottom: -0.5rem;
  color: #ffeb3b;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  line-height: 1.0;
}

.copy-large {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-top: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-sub-copy {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  text-align: right;
}

.hero-sub-copy span {
  color: #ffffff;
  padding: 0;
  background: none;
  box-shadow: none;
}

.lp-hero-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
  color: white;
  font-weight: bold;
  padding: 1.2rem 4rem;
  border-radius: 50px;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(204, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.lp-hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(204, 0, 0, 0.5);
  background: linear-gradient(135deg, #ff6666 0%, #e60000 100%);
}

/* LPセクション共通 */
.lp-section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.bg-light {
  background-color: #f5f5f5;
  max-width: 100%;
  width: 100%;
}

.bg-light > * {
  max-width: 1000px;
  margin: 0 auto;
}

/* メンバーの声 */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.voice-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--color-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.voice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.voice-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-accent);
  flex-shrink: 0;
}

.voice-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-age {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.voice-comment {
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: left;
  color: #444;
}

/* 教室の特徴 */
.features-container {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.feature-img-box {
  flex: 1;
}

.feature-main-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-list {
  flex: 1;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.check-icon {
  color: #000000;
  font-size: 1.5rem;
  font-weight: bold;
  background: transparent;
  width: auto;
  height: auto;
  display: inline-block;
  border-radius: 0;
  flex-shrink: 0;
  margin-top: 0.3rem; /* 値を調整 */
  line-height: 1.2; /* line-heightも調整 */
  vertical-align: top; /* この行を追加 */
}

.feature-text h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.feature-text p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* 講師プロフィール（LP用） */
.lp-teacher-box {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  text-align: center;
  padding: 3rem;
  border: 2px solid var(--color-secondary);
}

.lp-teacher-photos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.lp-teacher-photos img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px; /* 四角く角丸 */
  border: 4px solid var(--color-light);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lp-teacher-info h3 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.lp-teacher-info p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 2;
  text-align: justify;
  color: #444;
}

/* 舞台出演経歴 */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.history-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.history-item:hover {
  transform: translateY(-3px);
}

.history-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.history-item p {
  padding: 1rem;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  color: var(--color-primary);
  margin: 0;
}

.video-placeholder {
  background: #1a1a1a;
  height: 400px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border: 1px solid #333;
}

.play-icon {
  font-size: 4rem;
  margin-top: 1rem;
  opacity: 0.8;
  transition: all 0.3s;
  color: #cc0000;
}

.video-placeholder:hover .play-icon {
  opacity: 1;
  transform: scale(1.1);
}

.history-summary {
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-top: 2rem;
}

/* CTA専用セクション */
.cta-special-section {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  padding: 5rem 2rem !important;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(204, 0, 0, 0.15);
  margin: 0 0 !important;
  max-width: 100%;
  width: 100vw;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

.cta-special-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: white;
  padding: 3rem 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 3px solid #ff4d4d;
}

.cta-special-line1 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.cta-special-line2 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.cta-special-line3 {
  font-size: 2rem;
  font-weight: bold;
  color: #000000;
  margin-bottom: 2.5rem;
  text-shadow: none;
  text-decoration: underline;
  text-decoration-color: #000000;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.google-form-wrapper {
  margin: 2rem 0;
}

.form-cta-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
}

.highlight-time {
  color: #cc0000 !important;
  font-size: 1.5rem;
  font-weight: bold;
}

.google-form-btn {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

/* 修正: inline-cta-containerに中央揃えを明示 */
.inline-cta-container {
  text-align: center;
}

.inline-cta-container p {
  text-align: center;
}

/* コンタクトセクション */
.contact-section {
  padding-bottom: 10rem;
  background: linear-gradient(to bottom, #fff, #fff0f0);
}

/* コンタクトフォーム */
.contact-form-container {
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: left;
}

.lp-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: bold;
  color: #333;
  font-size: 1rem;
}

.required {
  background: #cc0000;
  color: white;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.form-group input {
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #cc0000;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
}

.contact-title {
  font-size: 2.5rem;
  color: #cc0000;
  margin-bottom: 1rem;
  text-align: center !important;
}

.contact-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  line-height: 1.6;
  text-align: center !important;
  color: #333;
}

.highlight-text {
  color: #cc0000;
  font-weight: bold;
  font-size: 1.8rem;
  background: linear-gradient(transparent 70%, #ffebeb 70%);
  padding: 0 0.5rem;
}

/* スティッキーフッターCTA */
.sticky-footer-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 90px;
  background-color: rgba(40, 40, 40, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}

.sticky-footer-cta.is-visible {
  transform: translateY(0);
}

.sticky-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
  justify-content: center;
}

.sticky-text {
  color: white;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  font-size: 1rem;
}

.sticky-text .highlight {
  color: #ffeb3b;
  font-size: 1.2rem;
  display: inline-block;
  border-bottom: 2px solid #ffeb3b;
}

.sticky-btn {
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
  color: white;
  font-weight: bold;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  white-space: nowrap;
  transition: transform 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.sticky-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #ff6666 0%, #e60000 100%);
}

/* フッター（LP用） */
.lp-footer {
  background-color: var(--color-black);
  color: #999;
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.9rem;
}

/* LPページのフッター上マージンを削除 */
.lp-body footer {
  margin-top: 0 !important;
}

/* モバイル用改行 */
.mobile-br {
  display: none;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  /* ヒーローセクション */
  .lp-hero {
    height: auto;
    min-height: 100vh;
    justify-content: flex-end;
    text-align: right;
    padding-bottom: 3rem;
  }
  
  .lp-hero-content {
    padding: 80px 1.5rem 2rem;
    text-align: right;
    max-width: 100%;
  }

  .lp-hero-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .copy-small {
    font-size: 1.2rem;
  }
  
  .copy-large {
    font-size: 2rem;
  }
  
  .hero-target-box {
    align-items: flex-end;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  @media (max-width: 768px) {
  /* ... 他のスタイル ... */
  .target-line {
    font-size: clamp(0.95rem, 3vw, 1.15rem); /* スマホでも1.2倍に調整 */
    padding: 0.3rem 0.8rem;
  }
}
  
  .hero-main-copy {
    text-align: right;
    margin: 2rem 0 1.5rem;
  }
  
  .hero-sub-copy {
    text-align: right;
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .lp-hero-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: auto;
    max-width: 100%;
    display: inline-block;
  }
  
  /* セクション共通 */
  .lp-section {
    padding: 4rem 1.5rem;
  }
  
  /* 特徴セクション */
  .features-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .feature-list li {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .lp-teacher-photos img {
  width: 100%;
  max-width: 300px;
  height: auto;
  }
  
  .lp-teacher-box {
    padding: 2rem 1.5rem;
  }
  
  .lp-teacher-info p {
    text-align: left;
  }
  
  /* CTAセクション */
  .cta-special-section {
    padding: 3rem 1rem !important;
    margin: 0 0 !important;
    border-radius: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
  }
  
  .cta-special-box {
    padding: 2rem 1.5rem;
    border: 2px solid #ff4d4d;
  }
  
  .cta-special-line1,
  .cta-special-line2 {
    font-size: 1.1rem;
  }
  
  .cta-special-line3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #000000;
    text-decoration-color: #000000;
  }

  .form-cta-text {
    font-size: 1rem;
  }
  
  .highlight-time {
    font-size: 1.3rem;
  }
  
  /* スティッキーフッター */
  .sticky-footer-cta {
    height: auto;
    padding: 1rem;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    flex-direction: column;
  }
  
  .sticky-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .sticky-text {
    text-align: center;
    font-size: 0.85rem;
  }
  
  .sticky-btn {
    padding: 0.8rem 0.5rem;
    font-size: 0.95rem;
    width: 90%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
    height: auto;
    display: block;
  }
  
  /* コンタクトカード */
  .contact-card {
    padding: 3rem 1.5rem;
  }
  
  .contact-title {
    font-size: 2rem;
  }
  
  /* その他 */
  .mobile-br {
    display: block !important;
  }
}

/* LP背景画像のグレースケールフィルター - 最優先 */
.lp-hero-bg-scroll img {
  filter: brightness(0.6)  !important;
  -webkit-filter: brightness(0.6) !important;
}

/* ==========================================
   LP背景画像グレースケール（最優先・最終決定版）
   ========================================== */
.lp-hero-bg-scroll img {
  filter: brightness(0.4)  !important;
  -webkit-filter: brightness(0.4)  !important;
}

.lp-hero .lp-hero-bg-container .lp-hero-bg-scroll img {
  filter: brightness(0.4) !important;
  -webkit-filter: brightness(0.4) !important;
}