/* メインコンテンツ */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* メインビジュアル */
.main-visual {
  position: relative;
  height: 60vh;
  min-height: 350px;
  color: #fff;
  overflow: hidden;
  margin-bottom: 60px;
}

.main-visual__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/top/hero/img_001.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease-in-out;
  will-change: opacity;
  z-index: 0;
}

/* ロード中のちらつきを防ぐ */
.main-visual:not(.loaded) {
  visibility: hidden;
  height: 70vh; /* モバイルビューの高さ */
}

@media (min-width: 768px) {
  .main-visual:not(.loaded) {
    height: calc(100vh - 80px); /* デスクトップビューの高さ */
  }
}

/* 2つ目の背景要素 */
.main-visual__bg + .main-visual__bg {
  z-index: 1;
}

/* アニメーション定義 */
@keyframes slideShow {
  0% {
    opacity: 0;
    background-image: url('../img/top/hero/img_001.JPG');
  }
  20% {
    opacity: 1;
  }
  33% {
    opacity: 1;
    background-image: url('../img/top/hero/img_001.JPG');
  }
  53% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    background-image: url('../img/top/hero/img_001.JPG');
  }
}

/* 画像が1枚だけの場合はアニメーションを無効化 */
.main-visual[data-image-count='1'] {
  animation: none;
  opacity: 1;
  background-image: url('../img/top/hero/img_001.JPG');
}

.main-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.main-visual__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
}

@keyframes slideShow {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  5% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  50% {
    opacity: 0;
    transform: scale(1.02);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.main-visual__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.main-visual__title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-visual__lead {
  font-size: 1.5rem;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 募集バナー */
.news-banner-top {
  text-align: center;
}

.news-banner-top__text {
  font-size: 1.1rem;
  color: #333;
}

.news-banner {
  margin-bottom: 60px;
  text-align: center;
}

.news-banner img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.news-banner a:hover img {
  opacity: 0.85;
}

.news-banner__content {
  padding: 25px 20px;
  background: #f9f9f9;
  margin-top: -8px; /* 画像の下の隙間をなくす */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.news-banner__text {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 20px;
}

.news-banner .btn {
  background-color: #b60020;
  color: #fff;
}

.news-banner .btn:hover {
  background-color: #9a001b;
}

.main-visual__btns {
  display: flex;
  gap: 20px;
}

/* アクセス情報 */
.access-info {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.access-map {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

.access-details {
  flex: 1;
  min-width: 300px;
}

.access-details h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #b60020;
}

.access-address h4,
.contact-info h4 {
  font-size: 1.2rem;
  color: #555;
  margin: 25px 0 10px;
  position: relative;
  padding-left: 15px;
}

.access-address h4::before,
.contact-info h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.2em;
  background-color: #b60020;
}

.access-address ul {
  list-style: none;
  padding-left: 20px;
}

.access-address li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.access-address li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #b60020;
  font-weight: bold;
}

/* 教室一覧 */
.classroom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Youtube */
.youtube-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;   /* PCでは横広すぎないように */
  margin: 40px auto;  /* 上下余白＋中央寄せ */
  padding-top: 56.25%; /* 16:9 比率 */
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


@media (max-width: 1024px) {
  .classroom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.classroom-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.classroom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.classroom-area {
  font-size: 1.5rem;
  color: #b60020;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.classroom-details {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #e0e0e0;
}

.classroom-details:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.classroom-details h4 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 8px;
}

.classroom-teacher {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 8px;
}

.classroom-schedule,
.classroom-time,
.classroom-access,
.classroom-parking {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 5px 0;
  display: flex;
  align-items: flex-start;
}

.classroom-schedule::before,
.classroom-time::before,
.classroom-access::before,
.classroom-parking::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #b60020;
  margin-right: 8px;
  margin-top: 8px;
  flex-shrink: 0;
}

.classroom-address,
.classroom-note {
  font-size: 0.85rem;
  color: #666;
  margin: 5px 0 0 14px;
  padding-left: 8px;
  border-left: 2px solid #e0e0e0;
}

.classroom-note {
  color: #b60020;
  font-style: italic;
  margin-top: 10px;
}

/* お問い合わせCTA */
.contact-cta {
  text-align: center;
  padding: 50px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 20px;
  flex-wrap: wrap;
}

.contact-hours {
  color: #666;
  font-size: 0.95rem;
  margin-top: 15px;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn--primary {
  background: #b60020;
  color: #fff;
  border: 2px solid #b60020;
}

.btn--primary:hover {
  background: #9a001b;
  border-color: #9a001b;
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--outline {
  background: transparent;
  color: #b60020;
  border: 2px solid #b60020;
}

.btn--outline:hover {
  background: #b60020;
  color: #fff;
}

.btn--more {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #333;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.btn--more:hover {
  background: #333;
  color: #fff;
}

/* セクション共通 */
.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title2 {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 3px;
  background: #b60020;
}

/* お知らせ */
.news {
  padding: 80px 0;
  background: #ebebeb;
}

.news__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.news__list {
  margin-bottom: 30px;
}

.news__item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  transition: background 0.3s;
}

.news__item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.news__date {
  width: 120px;
  color: #666;
}

.news__category {
  display: inline-block;
  padding: 2px 10px;
  background: #b60020;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 3px;
  margin-right: 20px;
}

.news__title {
  flex: 1;
}

.news__more {
  text-align: center;
}

/* コース紹介 */
.course {
  padding: 80px 0;
}

.course__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.course__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.course__item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.course__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.course__img {
  height: 200px;
  overflow: hidden;
}

.course__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.course__item:hover .course__img img {
  transform: scale(1.05);
}

.course__content {
  padding: 25px;
}

.course__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.course__desc {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* index 教室 */
  .classroom-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .index-classroom-card {
    flex: 1 1 300px;
    min-width: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    box-sizing: border-box;
  }
  .index-classroom-card h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
  }
  .index-classroom-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .index-classroom-card li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
  }
  .index-classroom-card li:last-child {
    border-bottom: none;
  }
  
  @media (max-width: 768px) {

  }

/* レスポンシブ対応 */
/* レスポンシブデザイン */
@media (max-width: 1200px) {
  .classroom-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

@media (max-width: 992px) {
  .classroom-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .access-info {
    flex-direction: column;
  }
  
  .access-map {
    height: 300px;
  }
  
  .classroom-details h4 {
    font-size: 1.1rem;
  }
  
  .classroom-schedule,
  .classroom-time,
  .classroom-access,
  .classroom-parking {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .main-visual {
    min-height: 300px;
  }
  
  .main-visual__title {
    font-size: 2.5rem;
  }
  
  .main-visual__lead {
    font-size: 1.2rem;
  }
  
  .main-visual__btns {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    padding: 10px 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .news__item {
    flex-wrap: wrap;
    padding: 15px 0;
  }
  
  .news__date {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .news__category {
    margin-right: 10px;
  }
  
  .course__list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .index-classroom-card {
    flex: 1 1 100%;
  }
}
