@charset "UTF-8";
/* LiBERTÀ - Teams page CSS
   - hタグ不使用ヘッディング（.tcard__heading）
   - 黒80%カード＋1pxグラデ枠
   - スケジュール＝details/summary（空白徹底除去＋小サイズ）
*/

.teams-page{
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
  color: #eaeaea;
}

/* 視覚的非表示（アクセシビリティ用） */
.teams-page .visually-hidden{
  position:absolute !important;
  clip:rect(1px,1px,1px,1px) !important;
  clip-path: inset(50%) !important;
  width:1px !important; height:1px !important; overflow:hidden !important;
  white-space:nowrap !important; border:0 !important; padding:0 !important; margin:-1px !important;
}

/* セクション見出し（h不使用） */
.teams-page .teams-section__title{
  color:#fff;
  margin: 24px 0 12px;
  font-weight: 900;
  font-size: 1.2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
}

/* 上部CTA */
.teams-page .teams-cta-row{
  display:flex; gap:12px; flex-wrap:wrap;
  margin: 8px 0 16px;
}

/* グリッド */
.teams-page .teams-grid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

/* カード */
.teams-page .team-card{
  position: relative;
  border-radius: 14px;
  background-color: rgba(0,0,0,0.8);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.teams-page .team-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.5);
}

/* 1pxグラデ枠（デフォルト＝サイト基調） */
.teams-page .team-card::before{
  content:"";
  position:absolute; inset:0; padding:1px; border-radius:14px;
  background: linear-gradient(to right, #ff8a00, #e52e71);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events:none;
}
/* Kids枠はグリーン */
.teams-page .team-card[data-type="kids"]::before{
  background: linear-gradient(to right, #2ecc71, #27ae60);
}

/* タイトル（hタグ不使用/干渉回避） */
.teams-page .team-card__head{ margin-bottom: 4px; }
.teams-page .tcard__heading{
  font-weight: 900;
  letter-spacing: .2px;
  color:#fff;
  font-size: 1.08rem;
  line-height: 1.32;
  margin: 0;
}
.teams-page .tcard__pref{ opacity:.9; }
.teams-page .tcard__name{ opacity:1; }

/* Facts（定義リスト） */
.teams-page .teams-facts{ margin: 0; padding: 0; }
.teams-page .teams-facts__row{
  display:grid;
  grid-template-columns: 84px 1fr;
  gap:10px;
  padding:4px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.teams-page .teams-facts__row:first-child{ border-top:0; }
.teams-page .teams-facts__term{
  color:#ff8500;
  font-weight: 800;
  white-space: nowrap;
}
.teams-page .teams-facts__desc{
  color:#f1f1f1;
  line-height: 1.6;
}

/* アコーディオン（details/summary）—空白徹底除去 */
.teams-page details.teams-accordion,
.teams-page .teams-accordion__summary,
.teams-page .teams-accordion__panel{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}
.teams-page .teams-facts + details.teams-accordion{
  margin-top: 0 !important;
}

.teams-page details.teams-accordion{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  overflow: hidden;
}

.teams-page .teams-accordion__summary{
  display: block;              /* UA差異対策 */
  cursor: pointer;
  padding: 6px 12px;
  line-height: 1.2;
  font-weight: 900;
  color:#fff;
  user-select: none;
}
.teams-page .teams-accordion__summary::-webkit-details-marker{ display:none; }

.teams-page .teams-accordion__summary::after{
  content:"+";
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  opacity: .8;
}
.teams-page .teams-accordion[open] .teams-accordion__summary::after{
  content:"–";
}

.teams-page .teams-accordion__panel{
  padding: 0 12px 6px;         /* 上0で先頭の空白をカット */
  border-top: 1px solid rgba(255,255,255,.08);
  white-space: pre-wrap;       /* txtの改行保持 */
  font-size: .82rem;           /* 小さめ */
  line-height: 1.6;
  color:#e9e9e9;
}
.teams-page .teams-accordion__panel > :first-child{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ボタン */
.teams-page .teams-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 10px;
  font-weight:900;
  color:#fff; text-decoration:none; border:none;
  background-repeat:no-repeat; background-size:100% 100%; background-position:0 0;
  transition: transform .15s ease, filter .15s ease;
}
.teams-page .teams-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.08);
}
/* 色分け：社会人=サイト基調／Kids=グリーン */
.teams-page .teams-btn--adults{ background-image: linear-gradient(to right, #ff8a00, #e52e71); }
.teams-page .teams-btn--kids  { background-image: linear-gradient(to right, #2ecc71, #27ae60); }

.teams-page .team-card__actions{ margin-top: 10px; display:flex; gap:10px; flex-wrap:wrap; }

/* レスポンシブ */
@media (max-width:640px){
  .teams-page .teams-facts__row{ grid-template-columns: 90px 1fr; }
  .teams-page .teams-cta-row{ gap:10px; }
}