/* =========================================
   1. サイト全体の色・共通設定
========================================= */
:root {
  --color-pink: #e91e63;
  --color-green: #a2c11c;
  --color-text-main: #333;
  --color-text-sub: #666;
  --color-bg-base: #fafafa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-text-main);
  line-height: 1.8;
  background-color: var(--color-bg-base);
}

/* =========================================
   2. ヘッダー（上部メニュー）
========================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: rgba(255, 255, 255, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-green);
  font-weight: 700;
  transition: color 0.3s ease;
  text-align: center;
  line-height: 1.3;
  font-size: 0.95rem;
  display: inline-block;
}

.nav-link:hover {
  color: var(--color-pink);
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(to right top, var(--color-green), var(--color-pink));
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* =========================================
   3. メインビジュアル（Hero） & SEO最適化
========================================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  background-color: #fff;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.4;
  margin-bottom: 20px;
}

.seo-subtext {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  color: #333;
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.gradient-text {
  background: linear-gradient(to right top, var(--color-green), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-text {
  font-size: 1.2rem;
  color: var(--color-text-sub);
  margin-bottom: 40px;
}

.hero-btn {
  font-size: 1.1rem;
  padding: 15px 40px;
}

/* =========================================
   4. セクション共通（各項目の大枠）
========================================= */
.section {
  padding: 120px 5%;
  background-color: var(--color-bg-base);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: var(--color-green);
  margin-bottom: 40px;
  letter-spacing: 2px;
}

/* =========================================
   5. クラス紹介（Class）
========================================= */
.class-step-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}

.class-step-card {
  display: flex;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.step-header {
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.sky-blue { background-color: #81d4fa; }
.leaf-green { background-color: #a5d6a7; }
.bloom-pink { background-color: #f48fb1; }

.step-body {
  padding: 30px;
  text-align: left;
  flex-grow: 1;
}

.step-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}

.more-link {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-green);
  text-decoration: underline;
  display: inline-block;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.more-link:hover {
  color: var(--color-pink);
  transform: translateX(2.5px);
  text-decoration-thickness: 2px;
}

/* 料金・スケジュールエリア */
.price-schedule-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
}

.schedule-box {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  flex: 1;
  max-width: 480px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  position: relative;
  text-align: left;
}

.schedule-box.new-highlight {
  border: 2px solid #f48fb1;
}

.new-tag {
  position: absolute;
  top: -15px;
  left: 30px;
  background: #f48fb1;
  color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
}

.schedule-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #333;
  display: flex;
  align-items: baseline;
}

.title-sub {
  font-size: 0.95rem;
  color: #888;
  font-weight: normal;
  margin-left: 8px;
}

.announcement, .schedule-announcement-spacer {
  min-height: 3rem;
  margin-bottom: 25px;
}

.announcement {
  font-size: 0.9rem;
  color: #f48fb1;
  font-weight: bold;
  line-height: 1.5;
}

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

.row-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 65px; 
  border-bottom: 1px solid #f5f5f5;
  font-size: 1.2rem;
}

.row-entry span {
  color: #444;
  font-weight: bold;
}

.row-entry strong {
  font-size: 1.5rem;
  color: #333;
}

.coming-soon span,
.coming-soon strong {
  color: #ccc !important;
  font-weight: normal;
}

@media (max-width: 768px) {
  .price-schedule-container {
    flex-direction: column;
  }
  .schedule-announcement-spacer {
    display: none;
  }
  .announcement {
    min-height: auto;
  }
  .schedule-title {
    font-size: 1.4rem;
  }
}

/* =========================================
   6. 先生紹介（Teacher）新レイアウト
========================================= */
#teacher .container {
  max-width: 890px; /* 文字の変な改行を防ぐために少し広げる */
}

.teacher-header-center {
  text-align: center;
  margin-bottom: 50px;
}

.teacher-name-large {
  font-size: 2rem;
  color: var(--color-text-main);
  display: inline-block;
  border-bottom: 3px solid #f8bbd0;
  padding-bottom: 8px;
}

.teacher-name-large .teacher-role {
  font-size: 1.1rem;
  color: var(--color-text-sub);
  margin-left: 15px;
  font-weight: normal;
}

.teacher-row {
  display: flex;
  align-items: center; 
  gap: 40px;
  margin-bottom: 60px;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.teacher-col-text {
  text-align: left;
}

/* --- 専有面積（比率）のコントロール --- */
/* 1段目 (2.5 : 7.5) はそのまま */
.layout-25-75 .teacher-col-photo { flex: 2.5; }
.layout-25-75 .teacher-col-text  { flex: 7.5; }

/* ▼ 2段目 (6 : 4) に変更（これで写真が大きくなります）▼ */
.layout-6-4 .teacher-col-text  { flex: 6; }
.layout-6-4 .teacher-col-photo { flex: 4; }

/* ▼ 3段目 (4 : 6) に変更 ▼ */
.layout-4-6 .teacher-col-photo { flex: 4; }
.layout-4-6 .teacher-col-text  { flex: 6; }

/* 画像のスタイリング */
.profile-img-new, .teaching-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid var(--color-green);
}

.profile-img-new {
  aspect-ratio: 1 / 1;
}

/* --- スライダー（競技写真）のスタイリング --- */
/* 矢印と写真を横並びにする外枠 */
.slider-outer {
  display: flex;
  align-items: center;
  gap: 10px; /* 矢印と写真の隙間 */
  width: 100%;
}

.teacher-slider-wrapper {
  position: relative;
  width: 100%;
  flex-grow: 1; /* 写真部分に残り幅をすべて使わせる */
  aspect-ratio: 1 / 1; /* 正方形を維持 */
  overflow: hidden;
  border-radius: 15px;
  /* ▼黄緑の枠線（border）を削除しました！▼ */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* 枠の代わりに上品な影を残す */
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  /* ▼0.5秒から0.8秒に変更して、スーッとゆっくりスライドさせる▼ */
  transition: transform 0.8s ease-in-out; 
}

.slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}

.slider-track img:hover {
  opacity: 0.9;
}

/* ▼写真の外に出した矢印のデザイン（白背景に薄いグレー）▼ */
.slider-btn {
  background: #ffffff; 
  color: #bbb; /* 控えめなグレーの矢印 */
  border: 1px solid #eee; /* うっすらとした枠線 */
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0; /* 矢印の丸が潰れないようにする */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* ▼マウスを乗せた時の動作（ピンクを廃止し、上品な薄いグレーへ）▼ */
.slider-btn:hover {
  background: #e8e8e8; /* 触れたら薄いグレーの背景に */
  color: #666; /* 矢印の色を少し濃くして「押せる」感を出す */
  transform: scale(1.1); /* 少しだけフワッと大きくする */
}

.photo-caption {
  font-size: 0.8rem;
  color: #999;
  text-align: right;
  margin-top: 8px;
}

/* テキスト部分の装飾 */
.history-label {
  display: inline-block;
  background-color: #f8bbd0;
  color: #444;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.history-box {
  background-color: #f1f8e9;
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid var(--color-green);
  text-align: left;
}

.history-sub {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.history-list {
  list-style: none;
  padding-left: 0;
}

.history-list li {
  font-size: 0.95rem;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
  word-break: auto-phrase; /* 単語の途中の変な改行を防ぐ */
}

.history-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-size: 0.7rem;
  top: 2px;
}

.teacher-bio p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.teacher-bio p:last-child {
  margin-bottom: 0;
  font-weight: bold;
}

/* モーダル（写真拡大画面） */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--color-pink);
}

/* スマホ対応（縦並び・順番制御） */
@media (max-width: 768px) {
  .teacher-row {
    flex-direction: column !important;
    gap: 20px;
    padding: 20px;
  }
  
  .teacher-col-photo, .teacher-col-text {
    width: 100%;
    flex: none !important;
  }

  /* ▼修正：クラス名を layout-6-4 に合わせました！これでスマホでも順番が直ります▼ */
  .layout-6-4 .teacher-col-photo {
    order: 1;
  }
  
  .layout-6-4 .teacher-col-text {
    order: 2;
    margin-top: 15px;
  }
}

/* =========================================
   7. スケジュール（Schedule）
========================================= */
.schedule-text {
  margin-bottom: 30px;
  color: var(--color-text-sub);
}

#schedule .container {
  max-width: 1100px;
}

.calendar-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  background: #fff;
  border: 1px solid #fce4ec;
}

.calendar-wrapper iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .calendar-wrapper iframe {
    height: 500px;
  }
}

/* =========================================
   8. お問い合わせ（Contact）
========================================= */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid #fce4ec;
}

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

.contact-box:first-child {
  border-bottom: 1px dashed #ccc;
  padding-bottom: 30px;
}

.contact-box-title {
  font-size: 1.4rem;
  color: var(--color-green);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.contact-box-text {
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 2;
}

.contact-highlight {
  font-weight: bold;
  font-size: 1.2rem;
}

.contact-studio {
  font-weight: bold;
  font-size: 1.15rem;
  display: inline-block;
  margin-top: 5px;
}

.contact-note {
  color: var(--color-pink);
  font-size: 0.95rem;
  font-weight: bold;
}

.contact-box-text a {
  color: var(--color-text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--color-pink);
  transition: color 0.3s;
}

.contact-box-text a:hover {
  color: var(--color-pink);
}

.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 10px 30px;
  background-color: #fff;
  color: var(--color-pink);
  border: 2px solid var(--color-pink);
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-map:hover {
  background-color: var(--color-pink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

/* =========================================
   9. フッター
========================================= */
.footer {
  text-align: center;
  padding: 40px;
  background-color: #333;
  color: #fff;
  font-size: 0.9rem;
}