/* リセット＆ベース */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

:root {
  --primary-color: #4A90E2;
  --secondary-color: #73E2FF;
  --accent-color: #FFC107;
  --bg-light: #F9F9F9;
  --text-dark: #333;
  --text-muted: #666;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  padding: 16px;
  text-align: center;
}
.hero-logo {
  display: block;
  width: clamp(200px, 25vw, 300px);
  margin: 0 auto 1rem;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5rem);
  background: linear-gradient(45deg, #FF6EC7, #73E2FF, #FFC971);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnimation 6s ease infinite;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75em 2em;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #FF6EC7, #73E2FF);
  border: none;
  border-radius: 40px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s, background 0.4s;
  text-decoration: none;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #73E2FF, #FF6EC7);
}
.hero-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 80px 0 40px;
  text-align: center;
  position: relative;
  color: var(--text-dark);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 12px auto 0;
}

/* About Section */
.about-modern {
  position: relative;
  padding: 40px 0 60px;
  overflow: hidden;
}
.about-modern-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.about-modern-bg .wave {
  position: absolute;
  bottom: 0;
  width: 100%; height: 60px;
}
.about-modern-content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2%;
  max-width: 1200px;
  margin: 0 auto;
}
.about-modern .card {
  background: #fff;
  flex: 1 1 calc(48% - 1%);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.about-modern .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.card-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  object-fit: contain;
}
.card-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 600;
}
.card-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}
@media (max-width: 767px) {
  .about-modern-content {
    flex-direction: column;
  }
  .about-modern .card {
    flex: 1 1 100%;
    margin-bottom: 24px;
  }
}

/* ── UI強化：講座一覧 Section ── */
.courses {
  padding: 60px 0;
  background: #fdfdfd;
}
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.tab-button {
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.tab-button:hover {
  background: var(--primary-color);
  color: #fff;
}
.tab-button.active {
  background: var(--primary-color);
  color: #fff;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.course-card {
  position: relative;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent-color);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.course-title {
  font-size: 1.375rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.course-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.btn-detail {
  display: inline-block;
  padding: 8px 16px;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}
.btn-detail:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.navigation-week {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.navigation-week button {
  padding: 8px 16px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.navigation-week button:hover {
  background: var(--primary-color);
  color: #fff;
}
.no-schedule-message {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 16px;
}
/* 1. 週見出し：タグ風 */
.week-header {
  display: inline-block;
  margin: 2rem auto 1rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary-color);
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* by-dateで週見出しを中央寄せ */
#by-date .week-header {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* 2. 「もっと見る／閉じる」ボタンの強化 */
#load-more-content {
  padding: 0.75em 2em;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background 0.3s, transform 0.2s;
}
#load-more-content:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* 3. 「前の週／次の週」ボタンの強化 */
#prev-week, #next-week {
  padding: 0.5em 1.5em;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}
#prev-week:hover, #next-week:hover {
  background: var(--primary-color);
  color: #fff;
}

/* 4. no-schedule-message 強調 */
.no-schedule-message {
  color: var(--accent-color);
  font-weight: 600;
}

/* モーダル */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 注意点カード */
.notes-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.note-card {
  background: var(--bg-light);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s;
}
.note-card:hover {
  transform: translateY(-4px);
}
.note-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* FAQ アコーディオン */
.accordion {
  max-width: 800px;
  margin: 0 auto 80px;
}
.accordion-item {
  border-bottom: 1px solid #ddd;
}
.accordion-header {
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  border: none;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.accordion-header .arrow {
  transition: transform 0.3s;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-light);
  padding: 0 24px;
}
.accordion-body p {
  padding: 16px 0;
}
.accordion-item.active .accordion-body {
  max-height: 200px;
}
.accordion-item.active .accordion-header .arrow {
  transform: rotate(180deg);
}

/* フッター */
.site-footer {
  padding: 40px 0;
  background: #333;
  color: #fff;
  text-align: center;
}
.site-footer a {
  color: var(--accent-color);
  text-decoration: none;
}

/* レスポンシブ */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-cta {
    padding: 14px 28px;
  }
}
@media (max-width: 767px) {
  .hero {
    width: 100vw;
    height: 100vh;
  }
  .hero-bg {
    position: absolute;
    top: 0;
    left: 75%;
    transform: translateX(-50%);
    width: auto;
    height: 100vh;
    min-width: 100%;
    object-fit: cover;
    object-position: center center;
  }
}
/* ── 「もっと見る／閉じる」ボタンを中央寄せ ── */
#by-content .load-more-container,
#by-content .close-content-container {
  text-align: center;
}

#load-more-content,
#close-content {
  display: inline-block;
  margin: 0 auto;
}
/* FAQ：質問テキストと矢印を整列 */
.accordion-header {
  display: flex;
  align-items: center;
}
.accordion-header span:first-child {
  flex: 1;
  text-align: left;
}
.accordion-header .arrow {
  flex: 0 0 auto;
  margin-left: 8px;
}

/* FAQ：回答テキストを左揃え */
.accordion-body p {
  text-align: left;
  margin: 0;
  padding: 16px 0;
}
/* ── フッター全体を画面幅いっぱいに ── */
.site-footer {
  width: 100%;
  padding: 40px 0;
  background: #333;
  color: #fff;
  text-align: center;
  /* containerクラスの max-width をリセット */
  max-width: none;
}

/* フッター内コンテンツだけを制限したい場合は中で .container を使う想定に */
.site-footer > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: left; /* 好みで中央揃えにも可 */
}

/* ── スマホのバウンス／グニャグニャを抑制 ── */
html, body {
  overscroll-behavior-y: contain;
}
/* ── FAQ とフッター間の余白調整 ── */
.accordion {
  /* 下マージンを 80px → 40px に短縮 */
  margin: 0 auto 40px;
}

/* ── フッター見出しの余白を半分に ── */
.site-footer .section-title {
  /* 上マージンを 80px → 40px、下マージンを 40px → 20px に */
  margin: 40px 0 20px;
}
/* フッター上下パディングと地図リンク強調 */
.site-footer {
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-footer address {
  margin-top: 0;
}

.site-footer a[href*="maps.app"] {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: underline;
}
/* FAQ 見出しのマージン調整 */
#faq .section-title {
  margin-top: 60px;  /* 上マージンを半分に */
  margin-bottom: 20px; /* 下マージンもスッキリ */
}
/* Footer：アドレスの可読性向上 */
.site-footer address {
  /* 幅を抑えて中央寄せ／テキストは左揃え */
  max-width: 320px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
}

.site-footer address p {
  /* 各行の余白 */
  margin: 4px 0;
  font-size: 0.95rem;
  color: #ddd;
}
