/* ============================================================
   index.css — 城東ウォーリアーズ トップページ固有スタイル
   ============================================================ */

/* ----------------------------------------------------------
   ページ誘導セクション（スポーツ・文化活動・AI教室）
   ---------------------------------------------------------- */
.page-links-section {
  background: var(--bg);
  padding: 64px 0;
}
.page-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.page-link-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.page-link-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.page-link-card__icon {
  font-size: 40px;
  line-height: 1;
}
.page-link-card__title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-dark);
}
.page-link-card__phrase {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
}
.page-link-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.25s, transform 0.25s;
  margin-top: 4px;
}
.page-link-card__btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .page-links-grid { grid-template-columns: 1fr; }
}


/* ==========================================================
   ヒーローセクション
   ========================================================== */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 100px 0 56px;
  background: linear-gradient(135deg, #e3f2e8 0%, #fefcf8 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: var(--primary);
  opacity: 0.05;
  border-radius: 50%;
  top: -100px; right: -200px;
  z-index: 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; max-width: 540px; }
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: #fff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  animation: fadeIn 0.8s ease-out 0.2s both;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  color: var(--primary-dark);
  margin-bottom: 16px;
  animation: fadeIn 0.8s ease-out 0.4s both;
}
.hero p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-mid);
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease-out 0.6s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeIn 0.8s ease-out 0.8s both;
}
.hero-visual {
  flex: 1;
  position: relative;
  animation: fadeInRight 1s ease-out 0.6s both;
}
.hero-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(26,107,60,.18);
  aspect-ratio: 1 / 1;
  background-color: var(--border);
  max-width: 560px;
  width: 100%;
  margin-left: auto;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 992px) {
  .hero { min-height: auto; padding: 90px 0 40px; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: 100%; max-width: 600px; }
}


/* ==========================================================
   セクション共通
   ========================================================== */
.section { padding: 100px 0; }
.section-label {
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--primary-dark);
  margin-bottom: 24px;
}
.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  color: var(--text-mid);
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .section-desc { margin-bottom: 40px; }
}


/* ==========================================================
   スケジュールセクション
   ========================================================== */
.schedule-section { background-color: var(--bg-white); }

.schedule-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 850px;
  margin: 0 auto;
}
.schedule-icon { font-size: 48px; margin-bottom: 16px; }
.schedule-note { color: var(--text-mid); margin-bottom: 24px; }

.calendar-link-wrap {
  text-align: center;
  margin-bottom: 24px;
}
.calendar-link-wrap .text-link {
  font-size: 15px;
  font-weight: bold;
}

.calendar-wrapper {
  position: relative;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}
.calendar-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .calendar-wrapper { padding-bottom: 100%; }
  .schedule-card { padding: 24px 16px; }
}


/* ==========================================================
   特長セクション
   ========================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.feature-card {
  background: var(--bg-white);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-bottom-color 0.3s ease;
  border-bottom: 4px solid transparent;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--primary);
}
.feature-icon {
  width: 80px; height: 80px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  color: var(--primary);
}
.feature-card h3 { font-size: 20px; margin-bottom: 16px; color: var(--primary-dark); }
.feature-card p  { color: var(--text-mid); font-size: 15px; text-align: left; }


/* ==========================================================
   硬式テニスセクション
   ========================================================== */
.tennis-section { background-color: var(--bg); }

.tennis-content {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

/* テニスセクション内の白いパネル */
.tennis-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.tennis-panel h3 {
  color: var(--primary-dark);
  font-size: 20px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}
.tennis-panel p {
  margin-bottom: 16px;
  color: var(--text-mid);
  font-size: 15px;
}
.tennis-panel p:last-child { margin-bottom: 0; }

/* おすすめボックス */
.recommend-box {
  background: var(--bg);
  padding: 24px;
  border-radius: 8px;
  margin-top: 24px;
}
.recommend-box__title {
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-size: 16px;
}
.recommend-list {
  list-style: none;
  padding-left: 0;
  color: var(--text-mid);
  font-size: 15px;
}
.recommend-list li {
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
}
.recommend-list li:last-child { margin-bottom: 0; }
.check-icon {
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;

}

/* テニスハイライト文 */
.tennis-highlight {
  margin-top: 24px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  font-size: 16px;
}

/* 東京都テニス協会 緑ハイライトボックス */
.highlight-box-green {
  margin-bottom: 0;
  font-weight: bold;
  color: var(--primary-dark);
  padding: 16px;
  background: #f0f7f3;
  border: 1px solid #cce5d6;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
}


/* ==========================================================
   YouTube セクション
   ========================================================== */
.youtube-section { background-color: var(--bg); }

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.youtube-wrapper { display: flex; flex-direction: column; }

.youtube-section-label {
  text-align: center;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 18px;
}

.youtube-item {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: block;
}
.youtube-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.youtube-item:hover img { transform: scale(1.05); }

.youtube-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
}
.youtube-item:hover .youtube-play-btn { background: rgba(0, 0, 0, 0.1); }

.youtube-play-icon {
  width: 64px; height: 64px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.youtube-item-title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
}


/* ==========================================================
   中間バナー CTA
   ========================================================== */
.banner-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 24px;
  border-radius: var(--radius);
  text-align: center;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: var(--shadow-lg);
}
.banner-cta h2 { color: #fff; margin-bottom: 16px; }
.banner-cta p  { opacity: 0.9; margin-bottom: 32px; }


/* ==========================================================
   関連リンクセクション
   ========================================================== */
.links-section { background-color: var(--bg); }

.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-white);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow);
}
.link-chip::before {
  content: '🔗';
  font-size: 12px;
  opacity: 0.6;
}
.link-chip:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


/* ==========================================================
   FAQ セクション
   ========================================================== */
.faq-section { background-color: var(--bg-white); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.faq-q {
  padding: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q::after {
  content: '+';
  font-size: 24px;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-q::after { transform: rotate(45deg); }

.faq-a {
  padding: 0 24px;
  color: var(--text-mid);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-a {
  max-height: 600px;
  padding: 0 24px 24px;
  border-top: 1px dashed var(--border);
}
.faq-a a { color: var(--primary); text-decoration: underline; }
.faq-a a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .faq-q { padding: 18px; font-size: 15px; }
  .faq-item.active .faq-a { padding: 0 18px 18px; }
}


/* ==========================================================
   文化活動セクション
   ========================================================== */
.culture-section { background-color: var(--bg-white); }

.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.culture-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid var(--primary-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.culture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.culture-icon { font-size: 2rem; }
.culture-card h3 {
  font-size: 17px;
  color: var(--primary-dark);
}
.culture-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}


/* ==========================================================
   AI 教室バナーセクション
   ========================================================== */
.ai-cta-section {
  background: linear-gradient(135deg, #1b1040 0%, #1a3a5c 100%);
  padding: 100px 0;
}

.ai-cta-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.ai-cta-badge {
  display: inline-block;
  background: #6a2ee8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.ai-cta-inner h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.35;
}

.ai-cta-inner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.85;
}

.ai-cta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.ai-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 500;
}

/* AI 教室ボタン（紫） */
.btn-primary--ai {
  background: #6a2ee8;
  box-shadow: 0 4px 12px rgba(106, 46, 232, 0.4);
  font-size: 16px;
  padding: 18px 40px;
}
.btn-primary--ai:hover {
  background: #5522cc;
  box-shadow: 0 6px 20px rgba(106, 46, 232, 0.5);
}

@media (max-width: 768px) {
  .ai-cta-section { padding: 70px 0; }
  .ai-chip { font-size: 13px; padding: 6px 14px; }
}


/* ==========================================================
   AI 道場セクション（半学半教）
   ========================================================== */
.ai-dojo-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1b1040 0%, #0d2b52 60%, #1a3a5c 100%);
  position: relative;
  overflow: hidden;
}
/* 背景の装飾的なグロー */
.ai-dojo-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 46, 232, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.ai-dojo-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 107, 60, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.ai-dojo-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* バッジ群 */
.ai-dojo-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ai-dojo-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 30px;
  letter-spacing: 0.03em;
}
.ai-dojo-badge--schedule {
  background: rgba(232, 168, 23, 0.2);
  border: 1px solid rgba(232, 168, 23, 0.6);
  color: #f4c244;
}
.ai-dojo-badge--new {
  background: rgba(106, 46, 232, 0.25);
  border: 1px solid rgba(106, 46, 232, 0.5);
  color: #b48ffa;
}

/* タイトル */
.ai-dojo-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 24px;
}
.ai-dojo-title-en {
  font-size: clamp(36px, 5vw, 56px);
  background: linear-gradient(90deg, #b48ffa, #64d8cb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  letter-spacing: 0.08em;
}

/* 説明文 */
.ai-dojo-desc {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  margin: 0 auto 52px;
  line-height: 1.9;
}

/* 3ステップフロー */
.ai-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.ai-flow-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 24px 28px;
  min-width: 200px;
  max-width: 230px;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}
.ai-flow-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}
.ai-flow-num {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #b48ffa, #64d8cb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.ai-flow-text strong {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 700;
}
.ai-flow-text span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}
.ai-flow-arrow {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* スキルチップ */
.ai-dojo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.ai-dojo-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 500;
  transition: background 0.2s;
}
.ai-dojo-chip:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* CTAボタン */
.btn-primary--ai-dojo {
  background: linear-gradient(135deg, #6a2ee8, #1a6b3c);
  box-shadow: 0 6px 24px rgba(106, 46, 232, 0.45);
  font-size: 17px;
  padding: 18px 48px;
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn-primary--ai-dojo:hover {
  opacity: 0.9;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(106, 46, 232, 0.55);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .ai-dojo-section { padding: 70px 0; }
  .ai-flow { gap: 12px; }
  .ai-flow-item { min-width: 160px; max-width: 100%; width: 100%; }
  .ai-flow-arrow { transform: rotate(90deg); }
  .ai-dojo-desc { font-size: 14px; }
  .ai-dojo-chip { font-size: 13px; padding: 6px 14px; }
}


/* ==========================================================
   最新情報セクション（トップページ）
   ========================================================== */
.news-top-section { background: var(--bg); }

.news-top-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-white);
}

.news-top-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  transition: background 0.2s;
  text-decoration: none;
}
.news-top-item:last-child { border-bottom: none; }
.news-top-item:hover { background: #f0f7f3; }

.news-top-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.news-top-tag--new     { background: #e8f7ee; color: var(--primary); border: 1px solid #b5ddc4; }
.news-top-tag--event   { background: #fff8e8; color: #9a6b00; border: 1px solid #f0d070; }
.news-top-tag--web     { background: #e8f0ff; color: #2255bb; border: 1px solid #b0c8ff; }
.news-top-tag--feature { background: #f4eeff; color: #6633bb; border: 1px solid #c8aaee; }
.news-top-tag--update  { background: #e8f0ff; color: #2255bb; border: 1px solid #b0c8ff; }

.news-top-date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 90px;
}

.news-top-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
}

.news-top-more {
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 600px) {
  .news-top-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
  }
  .news-top-date { min-width: auto; }
  .news-top-title { width: 100%; }
}

/* ── ヒーロー補足テキスト（コミュニティ訴求） ── */
.hero-sub-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  background: rgba(26,107,60,.06);
  border: 1px solid rgba(26,107,60,.15);
  border-radius: 8px;
  padding: 8px 16px;
  display: inline-block;
}
