body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #f2f2f2;
  color: #333;
}

/* 共通ヘッダー */
.site-header {
  background-color: #222;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo {
  height: 40px;
}
.main-nav {
  display: flex;
  gap: 15px;
}
.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.main-nav a:hover {
  text-decoration: underline;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  background: white;
  height: 3px;
  margin: 4px 0;
  width: 25px;
}
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    background: #222;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    text-align: center;
  }
  .main-nav.active {
    display: flex;
  }
  .main-nav a {
    padding: 10px 0;
  }
}

/* スタジオ切り替えボタン */
.studio-switch {
  text-align: center;
  margin: 20px 0;
}
.studio-switch a {
  display: inline-block;
  background: #ccc;
  color: #333;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.studio-switch a:hover {
  background: #999;
  color: white;
}

/* 曜日タブ */
.weekday-tabs {
  text-align: center;
  margin-bottom: 20px;
}
.weekday-tabs button {
  padding: 10px 14px;
  margin: 5px;
  background-color: #eee;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.weekday-tabs .active {
  background-color: #ffcc00;
  color: black;
}

/* スタジオ名見出し */
.studio-title {
  max-width: 950px;
  margin: 80px auto 40px;
  padding: 16px 24px;
  font-size: 1.5rem;
  font-weight: bold;
  background-color: white;
  border-left: 6px solid #ffc400;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* レッスンカード全体のコンテナ */
.lesson-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 950px;
  margin: 0 auto 60px;
}

/* レッスンカード本体 */
.lesson-card {
  display: flex;
  flex-direction: row;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 450px;
  width: calc(50% - 20px);
}

/* 講師の画像 */
.lesson-card img {
  width: 130px;
  height: 100%;
  object-fit: cover;
}

/* カード内の情報部分 */
.lesson-info {
  flex: 1;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 時間と名前 */
.lesson-time {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

/* ジャンル */
.lesson-genre {
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

/* 対象とボタン行 */
.trial-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.trial-info .target {
  font-size: 0.9rem;
}

/* ボタン */
.trial-button {
  background-color: #00bcd4;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
  white-space: nowrap;
}
.trial-button:hover {
  background-color: #0097a7;
}

.schedule-day {
  display: none;
}
.schedule-day:first-of-type {
  display: block;
}


/* スマホ表示対応 */
@media (max-width: 768px) {
  .lesson-card {
    width: 95%;
    flex-direction: row;
  }

  .lesson-card img {
    width: 110px;
    height: auto;
  }

  .trial-button {
    font-size: 0.75rem;
    padding: 5px 10px;
    margin-top: 5px;
    float: right;
  }
}

/* PC時にボタン大きくする */
@media (min-width: 769px) {
  .trial-button {
    font-size: 1rem;
    padding: 9px 13px;
  }
}


.difficulty-info {
  max-width: 900px;
  margin: 60px auto;
  background-color: #fff;
  border-left: 6px solid #00bcd4;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.difficulty-info h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #222;
}

.difficulty-info ul {
  list-style-type: disc;
  padding-left: 1.2em;
  line-height: 1.8;
}

.difficulty-info li {
  font-size: 1rem;
}


.hero-banner {
  position: relative;
  width: 100%;
  height: 55vh;          /* ← 高さは現状維持 */
  overflow: hidden;
  max-width: 1000px;     /* ← 横幅制限を広げる */
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  max-width: 1000px;     /* ← 拡張 */
  margin: 0 auto;
  height: 100%;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;       /* ← 横幅を制限しない */
  display: block;
}


.banner-text.left {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 16px 24px;
  border: 2px solid white;
  font-size: 2.2rem;
  line-height: 1.4;
  max-width: 400px;
}

.banner-text.right {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 18px;
  border: 2px solid white;
  text-align: right;
  font-size: 1.2rem;
  line-height: 1.3;
  max-width: 280px;
}



.banner-text h2 {
  font-size: 1.5rem;
  margin: 0;
}

.banner-text h3 {
  font-size: 2.2rem;
  margin: 0;
}


.banner-text p {
  margin: 4px 0 0;
  font-size: 1rem;
}


@media (max-width: 768px) {
  .hero-banner {
    height: 200px;
  }

  .banner-text.left {
    padding: 8px 12px;       /* ← さらに余白を詰める */
    font-size: 1.1rem;
    line-height: 1.1;
    max-width: 58%;          /* ← 横幅も微調整 */
    margin-left: -6px;
  }

  .banner-text.left h3 {
    font-size: 1.2rem;
    margin: 0;
  }

  .banner-text.left p {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-top: 4px;         /* ← ここを少し詰める */
  }

  .banner-text.right {
    right: 8px;
    padding: 8px 10px;
    max-width: 30%;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: right;
  }

  .banner-text.right h2 {
    font-size: 0.9rem;
    margin: 0 0 4px;
  }

  .banner-text.right p {
    font-size: 0.65rem;
    margin: 0;
  }
}





.studio-lead {
  font-size: 2rem;        /* ← サイズは好みに合わせて調整 */
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: left;     /* ← 中央揃えが必要なら */
}



.studio-links {
  display: flex;
  justify-content: left;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.studio-btn {
  display: inline-block;
  background-color: #00bcd4;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 10px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.studio-btn:hover {
  background-color: #0097a7;
}


@media (max-width: 768px) {
  .studio-lead {
    font-size: 1.1rem;       /* スマホ向けに少し小さく */
    line-height: 1.6;        /* 行間広めで読みやすく */
    text-align: left;        /* 左揃えで視線を追いやすく */
    word-break: keep-all;    /* 不自然な途中改行を防ぐ */
    margin-bottom: 20px;
  }

  .studio-lead br {
    display: none;           /* <br>タグを無効化して詰めて表示 */
  }
}

@media (max-width: 768px) {
  .studio-info p {
    text-align: justify;
    font-size: 1.0rem;        /* ← 少し小さめに */
    line-height: 1.7;         /* ← 行間を広く */
    letter-spacing: 0.03em;   /* ← 文字間隔も微調整 */　
    padding-right: 10px;      /* ← 少し右側に余白をつける */
    padding-left: 10px;
  }
}


.studio-gallery {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
}

.gallery-wrapper {
  position: relative;
  overflow: visible;   /* ← はみ出しを許可 */
  width: 100%;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
}

.gallery-item {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.gallery-item.active {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.gallery-item p {
  margin-top: 10px;
  font-size: 0.95rem;
  text-align: center;
}


.scroll-btn {
  position: absolute;
  top: 43%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.scroll-btn.left {
  left: -40px;
}
.scroll-btn.right {
  right: -40px;
}

@media (max-width: 768px) {
  .scroll-btn.left {
    left: -10px;  /* ← スマホ時は少し内側に */
  }

  .scroll-btn.right {
    right: -10px;
  }
}


.dots {
  text-align: center;
  margin-top: 10px;
}
.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}
.dots span.active {
  background: #00bcd4;
}


.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.lightbox-content {
  position: relative;
  background: white;
  padding: 10px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}
.lightbox-content p {
  margin-top: 10px;
  color: #333;
  font-size: 1rem;
}
.close-btn {
  position: absolute;
  top: 5px; right: 10px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.gallery-item p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #444;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}
.lightbox-arrow.left {
  left: 10px;
}
.lightbox-arrow.right {
  right: 10px;
}


/* Pickup Class セクション */
.pickup-section {
  max-width: 950px;
  margin: 60px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.pickup-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.pickup-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pickup-banner {
  width: 30%;
  min-width: 260px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.pickup-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.pickup-banner p {
  padding: 10px;
  font-size: 0.95rem;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .pickup-container {
    flex-direction: column;
    align-items: center;
  }

  .pickup-banner {
    width: 100%;
    max-width: 90%;
  }
}

/* === 全体スケジュールボタン === */
.schedule-button-wrapper {
  text-align: center;         /* PCで中央寄せ */
  margin: 40px 0 20px;
}

.schedule-button {
  display: inline-block;
  padding: 14px 32px;
  background: #e02727;        /* 既存と同じ赤 */
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;       /* 丸ボタン */
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.schedule-button:hover {
  background: #ff3a3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

/* === スマホ === */
@media (max-width: 768px) {
  .schedule-button {
    width: 90%;               /* 横幅ぴったり */
    padding: 14px 0;
    font-size: 1.1rem;
  }
}

/* サイトマップ */
.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 30px 20px;
  color: #fff;
  background: #111;
}

.footer-sitemap h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  letter-spacing: 0.07em;
}

.footer-sitemap ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sitemap li {
  margin-bottom: 6px;
}

.footer-sitemap a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-sitemap a:hover {
  text-decoration: underline;
  color: #ffd768; /* ホバーを少し黄色にして統一感UP */
}

@media (max-width: 768px) {
  .footer-sitemap {
    grid-template-columns: 1fr 1fr;
    gap: 25px 10px;
  }
}