/* =============================================
   CrossSports Front Page Styles
   ※ 共通変数・共通コンポーネントは common.css
   ============================================= */

/* Story link (after coach section) */
.cs-story-link {
  margin-top: 56px;
  text-align: center;
}
.cs-story-link__anchor {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 22px 40px;
  border: 2px solid rgba(11,43,69,.12);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  color: var(--cs-dark);
  transition: border-color .25s, transform .25s, box-shadow .25s, background .25s;
}
.cs-story-link__anchor:hover {
  border-color: var(--cs-teal);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(11,43,69,.1);
  color: var(--cs-dark);
}
.cs-story-link__label {
  font-family: var(--cs-font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--cs-teal-dark);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(78,201,176,.12);
}
.cs-story-link__text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.cs-story-link__arrow {
  font-family: var(--cs-font-en);
  font-size: 18px;
  color: var(--cs-teal);
  transition: transform .25s;
}
.cs-story-link__anchor:hover .cs-story-link__arrow { transform: translateX(4px); }
@media (max-width: 600px) {
  .cs-story-link__anchor { padding: 18px 24px; gap: 12px; flex-wrap: wrap; justify-content: center; }
  .cs-story-link__text { font-size: 13px; }
}


/* ===== HERO ===== */
.cs-hero {
  position: relative;
  height: 100vh;
  min-height: 750px;
  background: var(--cs-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.cs-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0B2B45, #163D5C 40%, #0E3350 70%, #0B2B45);
  z-index: 0;
}
/* ヒーロー スライドショー */
.cs-hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cs-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.cs-hero__slide--active {
  opacity: 1;
}
.cs-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}
.cs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,43,69,.95) 0%, rgba(11,43,69,.7) 45%, rgba(11,43,69,.3) 100%);
  z-index: 2;
}
.cs-hero__diagonal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--cs-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}
.cs-hero__content {
  position: relative;
  z-index: 3;
  padding: 0 60px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.cs-hero__eyebrow {
  font-family: var(--cs-font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--cs-teal);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--cs-teal);
}
.cs-hero__title {
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 700px;
}
.cs-hero__subtitle {
  font-size: 20px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.7;
}
.cs-hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cs-btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cs-teal);
  color: var(--cs-navy);
  padding: 16px 40px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all .3s;
}
.cs-btn-hero:hover {
  background: var(--cs-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(78,201,176,.3);
  color: var(--cs-navy);
}
.cs-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .3s;
}
.cs-btn-ghost:hover {
  color: var(--cs-teal);
}

/* クロペン（ヒーロー右側フロート） */
.cs-hero__kuropen {
  position: absolute;
  right: 8%;
  bottom: 180px;
  z-index: 3;
  animation: csHeroFloat 5s ease-in-out infinite;
}
.cs-hero__kuropen img {
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.3));
}
@keyframes csHeroFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

/* ===== STATS BAR ===== */
.cs-stats {
  background: var(--cs-navy);
  padding: 0 60px;
  position: relative;
  z-index: 4;
  margin-top: -60px;
}
.cs-stats__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--cs-navy-mid);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.cs-stats__item {
  padding: 30px;
  text-align: center;
  border-right: 1px solid rgba(78,201,176,.08);
  position: relative;
}
.cs-stats__item:last-child {
  border-right: none;
}
.cs-stats__num,
.cs-stats__num-text {
  font-family: var(--cs-font-en);
  font-size: 36px;
  font-weight: 900;
  color: var(--cs-teal);
}
.cs-stats__suffix {
  font-family: var(--cs-font-en);
  font-size: 24px;
  font-weight: 900;
  color: var(--cs-teal);
  display: inline;
}
.cs-stats__label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
  letter-spacing: .5px;
}
.cs-stats__akapen {
  position: absolute;
  top: -45px;
  right: 30px;
  z-index: 5;
}

/* ===== NEWS TABS ===== */
.cs-news__right {
  display: flex;
  flex-direction: column;
}
.cs-news-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}
.cs-news-tabs__btn {
  padding: 10px 24px;
  border: 1.5px solid rgba(78,201,176,.2);
  border-radius: 8px;
  background: transparent;
  color: var(--cs-gray);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--cs-font-jp);
  cursor: pointer;
  transition: all .3s;
}
.cs-news-tabs__btn:hover {
  border-color: var(--cs-teal);
  color: var(--cs-teal-dark);
}
.cs-news-tabs__btn--active {
  background: var(--cs-teal);
  color: var(--cs-navy);
  border-color: var(--cs-teal);
}
.cs-news-tab-content {
  display: none !important;
}
.cs-news-tab-content--active {
  display: flex !important;
  flex-direction: column;
}

/* ===== NEWS ===== */
.cs-news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}
.cs-news__main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--cs-navy);
  display: flex;
  align-items: flex-end;
}
.cs-news__main-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: .2;
}
.cs-news__main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-news__main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,43,69,.95), transparent 60%);
}
.cs-news__main-content {
  position: relative;
  z-index: 2;
  padding: 30px;
}
.cs-news__date {
  font-family: var(--cs-font-en);
  font-size: 12px;
  color: var(--cs-teal);
  font-weight: 600;
  letter-spacing: 1px;
}
.cs-news__main-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-top: 8px;
  line-height: 1.5;
}
.cs-news__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cs-news__item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(11,43,69,.08);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}
.cs-news__item:hover {
  background: rgba(78,201,176,.04);
}
.cs-news__item-date {
  font-family: var(--cs-font-en);
  font-size: 12px;
  color: var(--cs-teal-dark);
  font-weight: 600;
  min-width: 90px;
  letter-spacing: .5px;
}
.cs-news__item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--cs-dark);
  line-height: 1.6;
}
.cs-news__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--cs-font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--cs-teal-dark);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .3s;
}
.cs-news__more:hover {
  color: var(--cs-navy);
}

/* ===== PROGRAMS ===== */
.cs-prog__row {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.cs-prog__row--3 {
  grid-template-columns: repeat(3, 1fr);
}
.cs-prog__row--4 {
  grid-template-columns: repeat(4, 1fr);
}
.cs-prog__row:first-child {
  margin-top: 50px;
}
.cs-prog__card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform .4s;
  text-decoration: none;
  color: inherit;
  background: var(--cs-navy);
}
.cs-prog__card:hover {
  transform: translateY(-6px);
}
.cs-prog__card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(11,43,69,.95) 0%, rgba(11,43,69,.4) 50%, rgba(11,43,69,.15) 100%);
}
.cs-prog__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cs-prog__card-img--contain {
  object-fit: contain;
  padding: 20px;
}
.cs-prog__content {
  position: relative;
  z-index: 2;
  padding: 28px;
}
.cs-prog__badge {
  display: inline-block;
  background: var(--cs-teal);
  color: var(--cs-navy);
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cs-prog__name {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}
.cs-prog__place {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--cs-teal);
  letter-spacing: 0.05em;
  margin-top: 2px;
  margin-bottom: 6px;
}
.cs-prog__en {
  font-family: var(--cs-font-en);
  font-size: 11px;
  color: var(--cs-teal-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cs-prog__desc {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}
.cs-prog__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  z-index: 2;
  transition: all .3s;
}
.cs-prog__card:hover .cs-prog__arrow {
  background: var(--cs-teal);
  border-color: var(--cs-teal);
  color: var(--cs-navy);
}

/* ===== REASONS ===== */
.cs-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.cs-reasons__card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  border: 1.5px solid transparent;
  transition: all .3s;
}
.cs-reasons__card:hover {
  border-color: var(--cs-teal);
  transform: translateY(-4px);
}
.cs-reasons__icon {
  width: 52px;
  height: 52px;
  background: var(--cs-navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.cs-reasons__point {
  font-family: var(--cs-font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--cs-teal-dark);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.cs-reasons__title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 10px;
}
.cs-reasons__text {
  font-size: 13px;
  color: var(--cs-gray);
  line-height: 1.8;
}

/* ===== COACH ===== */
.cs-coach {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}
.cs-coach__photo {
  position: relative;
  border-radius: 16px;
  min-height: 400px;
  background: rgba(78,201,176,.06);
  overflow: hidden;
  border: 2px solid rgba(78,201,176,.1);
}
.cs-coach__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: center top;
}
.cs-coach__photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--cs-teal);
  color: var(--cs-navy);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
}
.cs-coach__info {
  position: relative;
}
.cs-coach__name {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 4px;
}
.cs-coach__name-en {
  font-family: var(--cs-font-en);
  font-size: 14px;
  color: var(--cs-gray);
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.cs-coach__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.cs-coach__tag {
  background: var(--cs-cream);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cs-navy);
  border: 1px solid rgba(78,201,176,.15);
}
.cs-coach__text {
  font-size: 14px;
  color: var(--cs-gray);
  line-height: 2;
  margin-bottom: 28px;
}
/* コーチ役職バッジ */
.cs-coach__role {
  font-family: var(--cs-font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--cs-teal-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
/* 2人目コーチ（左右反転） */
.cs-coach--reverse {
  direction: rtl;
}
.cs-coach--reverse > * {
  direction: ltr;
}
.cs-coach__akapen {
  position: absolute;
  bottom: -10px;
  right: -10px;
  opacity: .15;
}

/* ===== VOICE ===== */
.cs-voice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.cs-voice__card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(78,201,176,.08);
  border-radius: 14px;
  padding: 30px;
  transition: all .3s;
}
.cs-voice__card:hover {
  background: rgba(78,201,176,.06);
  border-color: rgba(78,201,176,.2);
}
.cs-voice__stars {
  color: var(--cs-teal);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 3px;
}
.cs-voice__text {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.9;
  margin-bottom: 20px;
}
.cs-voice__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-voice__avatar {
  width: 40px;
  height: 40px;
  background: rgba(78,201,176,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-voice__name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.cs-voice__detail {
  font-size: 11px;
  color: rgba(255,255,255,.35);
}

/* ===== SCHEDULE ===== */
.cs-schedule__desc {
  text-align: center;
  font-size: 14px;
  color: var(--cs-gray);
  margin: 0 0 36px;
  line-height: 1.9;
}
.cs-schedule {
  margin-top: 20px;
  background: var(--cs-cream);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(78,201,176,.15);
  box-shadow: 0 8px 24px rgba(11,43,69,.06);
}
.cs-schedule iframe {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

/* ===== INSTAGRAM (link card) ===== */
.cs-ig__desc {
  text-align: center;
  font-size: 14px;
  color: var(--cs-gray);
  margin: 0 0 36px;
  line-height: 1.9;
}
.cs-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.cs-ig-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #F77737 100%);
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 16px 32px rgba(225,48,108,.18);
  transition: transform .25s, box-shadow .25s;
}
.cs-ig-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(225,48,108,.3);
  color: #fff;
}
.cs-ig-card__icon {
  flex: 0 0 auto;
}
.cs-ig-card__body {
  flex: 1;
}
.cs-ig-card__label {
  font-family: var(--cs-font-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: .85;
  margin-bottom: 4px;
}
.cs-ig-card__handle {
  font-family: var(--cs-font-en);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.cs-ig-card__arrow {
  font-size: 22px;
  transition: transform .25s;
}
.cs-ig-card:hover .cs-ig-card__arrow { transform: translateX(4px); }

/* ===== PARTNERS ===== */
.cs-partners__desc {
  text-align: center;
  font-size: 14px;
  color: var(--cs-gray);
  margin: 0 0 36px;
  line-height: 1.9;
}
.cs-partners {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cs-partners__item {
  width: 220px;
  height: 120px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  border: 1px solid rgba(11,43,69,.08);
  box-shadow: 0 6px 18px rgba(11,43,69,.05);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cs-partners__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(11,43,69,.1);
  border-color: var(--cs-teal);
}
.cs-partners__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 900px) {
  .cs-ig-grid { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 600px) {
  .cs-schedule iframe { height: 500px; }
  .cs-ig-card { gap: 14px; padding: 18px 20px; }
  .cs-ig-card__handle { font-size: 13px; }
  .cs-partners__item { width: 180px; height: 100px; }
}

/* ===== CTA (front-page specific) ===== */
.cs-cta__mascot-l {
  position: absolute;
  bottom: 30px;
  left: 60px;
  opacity: .1;
}
.cs-cta__mascot-r {
  position: absolute;
  bottom: 30px;
  right: 60px;
  opacity: .1;
}

/* ヒーローは即表示 */
.cs-hero .cs-anim {
  opacity: 1;
  transform: none;
  animation: csFadeInUp .8s ease-out both;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cs-hero__content {
    padding: 0 20px;
  }
  .cs-hero__title {
    font-size: 36px;
  }
  .cs-hero__subtitle {
    font-size: 16px;
  }
  .cs-hero__kuropen {
    display: none;
  }
  .cs-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cs-stats {
    padding: 0 20px;
    margin-top: -40px;
  }
  .cs-stats__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-stats__akapen {
    display: none;
  }

  .cs-news {
    grid-template-columns: 1fr;
  }

  .cs-prog__row--3 {
    grid-template-columns: 1fr;
  }
  .cs-prog__row--4 {
    grid-template-columns: 1fr;
  }
  .cs-prog__card {
    aspect-ratio: 16/10;
  }

  .cs-reasons {
    grid-template-columns: 1fr;
  }

  .cs-coach {
    grid-template-columns: 1fr;
  }

  .cs-voice {
    grid-template-columns: 1fr;
  }

  .cs-partners {
    gap: 16px;
  }
  .cs-partners__item {
    width: 180px;
    height: 100px;
  }

  .cs-cta__mascot-l,
  .cs-cta__mascot-r {
    display: none;
  }
}

@media (max-width: 480px) {
  .cs-hero {
    min-height: 600px;
  }
  .cs-hero__title {
    font-size: 28px;
  }
  .cs-stats__num,
  .cs-stats__num-text {
    font-size: 28px;
  }
  .cs-btn-hero {
    padding: 14px 28px;
    font-size: 14px;
  }
  /* ① タブ文字折り返し修正 */
  .cs-news-tabs {
    gap: 4px;
  }
  .cs-news-tabs__btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 12px;
    white-space: nowrap;
    text-align: center;
  }
}
