/* event.css - イベント・コンペページ用 */

/* コンペ・イベントスケジュール CTA */
.event-schedule-cta {
  margin: 0 0 1rem;
  text-align: center;
}

.event-schedule-cta .btn-primary {
  display: inline-block;
}

/* 直近開催予定 */
.event-upcoming {
  margin: 0 0 var(--space-md);
  scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

.event-upcoming__cta,
.event-past__cta {
  margin: 0 0 var(--space-md);
  text-align: center;
}

.event-past__cta {
  margin-bottom: var(--space-lg);
}

.event-upcoming__cta .btn-primary,
.event-past__cta .btn-primary {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.event-past__cta .btn-primary {
  border: 0;
  cursor: pointer;
  font: inherit;
}

/* 開催予定：見た目はボタン形状、操作は不可（未押下のタブに近い背景） */
.event-upcoming__cta .event-upcoming__label {
  cursor: default;
  pointer-events: none;
  background: #f5f7f4;
  border: 2px solid #e0e3dd;
  color: var(--color-text);
  box-shadow: none;
  transform: none;
}

.event-upcoming__cta .event-upcoming__label:hover {
  background: #f5f7f4;
  border: 2px solid #e0e3dd;
  color: var(--color-text);
  transform: none;
  box-shadow: none;
}

.event-upcoming__body,
.event-past__body {
  display: block;
  margin-bottom: var(--space-lg);
}

.event-upcoming__body.is-collapsed,
.event-past__body.is-collapsed {
  display: none;
}

.event-empty {
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  background: #f5f7f4;
  border: 1px solid #e0e3dd;
  border-radius: 6px;
}

/* 区切り線 */
.event-section-divider {
  border: 0;
  border-top: 1px solid #e0e3dd;
  margin: 0 0 var(--space-lg);
}

/* 過去に実施したイベント・コンペ */
.event-past {
  margin-bottom: 0;
  scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

/* イベント種別タブ（ガールズゴルフ等の切り替え） */
.event-type-tabs {
  margin-bottom: var(--space-lg);
}

.event-type-tabs__group {
  margin-bottom: var(--space-lg);
}

.event-type-tabs__heading {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.event-type-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.event-type-tabs__tab {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-ja);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  background: #f5f7f4;
  border: 1px solid #e0e3dd;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.2s, color 0.2s;
}

.event-type-tabs__tab:hover {
  background: #e3f0e8;
}

.event-type-tabs__tab.is-active {
  color: var(--color-on-brand);
  font-weight: 600;
  background: var(--color-brand);
  border-color: var(--color-text);
}

.event-type-tabs__tab.is-active:hover {
  background: var(--color-brand-hover);
  color: var(--color-on-brand);
}

.event-type-tabs__panel {
  display: none;
}

.event-type-tabs__panel.is-active {
  display: block;
}

@media (max-width: 768px) {
  .event-type-tabs__tab {
    flex: 0 1 auto;
  }
}

.section__title--en {
  font-family: var(--font-en);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-align: center;
  border-left: none;
  padding-left: 0;
}

.section__subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-top: -0.5rem;
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* ガールズゴルフ：タブ（開催回リンク） */
.event-tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #e0e3dd;
}

.event-tabs__link {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  background: #f5f8f6;
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.event-tabs__link:hover {
  background: #f5f8f6;
  color: #333;
}

.event-tabs__link.is-current {
  background: #f5f8f6;
  color: #555;
  font-weight: 500;
}

/* ガールズゴルフ：各回ブロック（内部リンク時は固定ヘッダー分だけ下にずらす） */
.event-girls {
  margin-bottom: var(--space-xl);
  scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

.event-girls__heading {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.event-girls__body {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-lg);
  align-items: flex-start;
}

.event-girls__col--left {
  flex: 1 1 0;
  min-width: 0;
}

.event-girls__col--right {
  flex: 1 1 0;
  min-width: 0;
}

.event-girls__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e8ebe9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-girls__img-placeholder {
  font-size: 0.9rem;
  color: #777;
}

.event-girls__dummy {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

.event-girls__caption {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.event-girls__poster {
  width: 100%;
  max-width: 480px;
  background: #e8ebe9;
  border-radius: 8px;
  overflow: hidden;
}

.event-girls__poster img {
  display: block;
  width: 100%;
  height: auto;
}

.event-girls__banner {
  width: 100%;
  max-width: 700px;
  background: #e8ebe9;
  border-radius: 8px;
  overflow: hidden;
}

.event-girls__banner > a {
  display: block;
}

.event-open-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-open-list--flat {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  margin: 0;
  gap: 15px;
}

.event-open-list__link {
  display: block;
  background: #e8ebe9;
  border-radius: 8px;
  overflow: hidden;
}

.event-open-list__link img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .event-open-list,
  .event-open-list--flat {
    grid-template-columns: 1fr;
  }
}

/* ホットスポット：SP拡大ヒット領域が切れないようにする */
.event-girls__banner.banner-hotspots {
  position: relative;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.event-girls__banner.banner-hotspots > img {
  border-radius: 8px;
}

.event-girls__banner > img,
.event-girls__banner > a img,
.event-girls__banner.banner-hotspots > img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
}

.event-girls__placeholder {
  font-size: 0.9rem;
  color: #777;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-girls__link-wrap {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.event-girls__pdf {
  color: var(--color-text);
  text-decoration: underline;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.event-girls__pdf:hover {
  opacity: 0.85;
}

.event-girls__note {
  font-size: 0.85rem;
  color: #777;
}

/* ジュニアカップ結果（TOPページと同レイアウト） */
.event-girls .banner-result-block {
  max-width: 700px;
  background: #000;
  overflow: hidden;
}

.event-girls .banner-result-block img {
  display: block;
  width: 100%;
  height: auto;
}

.event-girls .banner-result-block__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem 1em 1em;
}

.event-girls .banner-result-block__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.4rem;
  background: linear-gradient(180deg, #ff9a3c 0%, #f06a00 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  border-radius: 4px;
}

.event-girls .banner-result-block__btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .event-girls .banner-result-block__actions {
    grid-template-columns: 1fr;
  }
}

.event-video {
  width: 100%;
  max-width: 100%;
}

.event-video__player {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 4px;
}

.event-video .event-girls__note {
  margin-top: 0.5rem;
}
