@charset "UTF-8";
/* ============================================
   東大成ミニバスケットボールクラブ 公式サイト
   WIX版の再現（2026-07 コアサーバー移行）
   ============================================ */

:root {
  --orange: #FF6E00;       /* メインオレンジ（ナビ・送信ボタン） */
  --orange-text: #FF5700;  /* アクセント文字色 */
  --navy: #002E5D;         /* ヘッダー紺 */
  --cream: #F7E9D5;        /* 規約・フォームセクション背景 */
  --green: #D7EDCE;        /* 活動場所セクション背景 */
  --blue: #1952BD;         /* 会費セクション背景 */
  --header-h: 111px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

section { scroll-margin-top: calc(var(--header-h) - 40px); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background-color .3s;
}
.site-header.scrolled { background: var(--navy); }

.header-inner {
  max-width: 1265px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo img { width: 96px; height: auto; display: block; }

@media (min-width: 1100px) {
  .header-inner { justify-content: flex-start; }
  .header-logo { margin-left: 132px; }
}

.global-nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
}

.pill {
  display: inline-block;
  width: 132px;
  padding: 4px 0;
  line-height: 1.45;
  border-radius: 3px;
  font-family: "Kosugi Maru", "メイリオ", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.pill:hover { opacity: .8; }
.pill-orange { background: var(--orange); color: #fff; }
.pill-white  { background: #fff; color: #000; }

/* ハンバーガー（スマホ用） */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--navy);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 右端ドットナビ ---------- */
.dot-nav {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dot-nav a {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: transparent;
  display: block;
  position: relative;
  transition: background-color .2s;
}
.dot-nav a.active,
.dot-nav a:hover { background: var(--orange); }

.dot-label {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--orange);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.dot-nav a.active .dot-label,
.dot-nav a:hover .dot-label { opacity: 1; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 70svh;
  min-height: 520px;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay { position: absolute; inset: 0; }
.hero-inner { position: absolute; inset: 0; }

.hero-ball {
  position: absolute;
  left: 60%;
  top: 51%;
  width: 22.5%;
  max-width: 283px;
  animation: float 3.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-catch {
  position: absolute;
  left: 14.5%;
  top: 58%;
  width: 71%;
  max-width: 900px;
}
.hero-subs {
  position: absolute;
  left: 14.5%;
  top: 86%;
  width: 71%;
  max-width: 900px;
  height: 32px;
}
.hero-sub {
  position: absolute;
  left: 0; top: 0;
  height: 30px;
  width: auto;
  opacity: 0;
  transition: opacity 1s;
}
.hero-sub.show { opacity: 1; }

/* デスクトップは本家と同じ固定808px＋中央1265pxコンテナ基準のピクセル配置 */
@media (min-width: 1100px) {
  .hero { height: 808px; min-height: 0; }
  .hero-inner {
    inset: auto;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1265px;
    transform: translateX(-50%);
  }
  .hero-ball  { left: 763px; top: 437px; width: 283px; }
  .hero-catch { left: 183px; top: 475px; width: 900px; }
  .hero-subs  { left: 183px; top: 698px; width: 900px; }
}

/* ---------- セクション共通 ---------- */
.sec { padding: 60px 0 80px; text-align: center; }
.sec-head { margin-bottom: 45px; }
.sec-head img { width: auto; }

/* ---------- クラブについて ---------- */
.sec-about {
  background: #FBEDEB;
}
.sec-about .sec-head img { max-width: 463px; width: 80%; }

.point-block { max-width: 680px; margin: 0 auto 80px; }
.point-block:last-child { margin-bottom: 0; }

.point-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 35px;
}
.point-badge {
  width: 100px;
  flex-shrink: 0;
  margin-right: -30px;
  position: relative;
  z-index: 2;
}
.point-band { width: 600px; max-width: calc(100% - 70px); }

.point-photo { margin-bottom: 25px; }
.point-photo img { width: 510px; max-width: 100%; }

/* ポイント1の写真スライドショー（3枚自動切替） */
.slideshow {
  position: relative;
  width: 510px;
  max-width: 100%;
  margin: 0 auto 25px;
}
.slideshow .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s;
}
.slideshow .slide:first-child { position: relative; }
.slideshow .slide.show { opacity: 1; }
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.slide-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: background-color .3s;
}
.slide-dots i.on { background: #888; }

.point-text {
  font-size: 20px;
  text-align: left;
  margin: 0 auto;
  max-width: 680px;
}

/* ---------- メンバー募集 ---------- */
.sec-member { background: #fff; padding: 90px 0 100px; }
.sec-member .sec-head img { max-width: 319px; width: 60%; }
.member-band { margin-bottom: 40px; }
.member-band img { width: 600px; max-width: 100%; }
.member-text { font-size: 20px; margin-bottom: 28px; }
.member-text:last-child { margin-bottom: 0; }

/* ---------- 活動場所 ---------- */
.sec-place { background: var(--green); }
.sec-place .sec-head img { max-width: 260px; width: 50%; }

.place-info {
  max-width: 570px;
  margin: 0 auto 40px;
  text-align: left;
  font-size: 20px;
}
.place-info .row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 8px 0;
}
.place-info dt {
  width: 112px;
  flex-shrink: 0;
  font-family: "Kosugi Maru", "メイリオ", Meiryo, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  background: #fff;
  border: 2px solid #8FC57F;
  border-radius: 999px;
  text-align: center;
  padding: 3px 0;
  margin-top: 2px;
}
.place-info dd { flex: 1; }
.place-info small { font-size: 15px; }

.place-photo img { width: 490px; max-width: 100%; }

.place-map {
  max-width: 975px;
  margin: 40px auto 0;
}
.place-map iframe {
  display: block;
  width: 100%;
  height: 330px;
  border: 0;
}

/* ---------- 会費 ---------- */
.sec-fee { background: var(--blue); }
.sec-fee .sec-head img { max-width: 260px; width: 50%; }
.fee-list { list-style: none; }
.fee-list li { margin-bottom: 30px; }
.fee-list li:last-child { margin-bottom: 0; }
.fee-list img { width: 600px; max-width: 100%; }

/* ---------- よくある質問 ---------- */
.sec-faq { background: #FBEDEB; }
.sec-faq .sec-head img { max-width: 300px; width: 60%; }

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}
.faq-item {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 48px 16px 18px;
  cursor: pointer;
  font-size: 17px;
  font-weight: bold;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Kosugi Maru", "メイリオ", Meiryo, sans-serif;
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item summary::after {
  content: "＋";
  position: absolute;
  right: 18px;
  color: var(--orange);
  font-size: 20px;
  font-weight: bold;
}
.faq-item[open] summary::after { content: "－"; }
.faq-a {
  padding: 0 18px 18px 18px;
  font-size: 16px;
}

/* ---------- 規約・見学・体験 ---------- */
.sec-trial { background: var(--cream); }
.sec-trial .sec-head img { max-width: 260px; width: 50%; }

.rules-btn { margin-bottom: 25px; }
.rules-btn img { width: 600px; max-width: 100%; transition: opacity .2s; }
.rules-btn a:hover img { opacity: .8; }
.rules-text { font-size: 20px; margin-bottom: 90px; }

.trial-anchor { scroll-margin-top: calc(var(--header-h) - 40px); }

/* 見学・体験の白カード（オレンジ太枠） */
.trial-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 4px solid var(--orange);
  border-radius: 20px;
  padding: 55px 30px 70px;
}

/* ---------- フォーム ---------- */
.trial-form {
  max-width: 510px;
  margin: 0 auto;
  text-align: left;
}
.field { margin-bottom: 26px; }
.field label,
.field legend {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}
.req { margin-left: 2px; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid #FFAE66;
  border-radius: 3px;
  background: #fff;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.field-row {
  display: flex;
  gap: 30px;
}
.field-row .field { flex: 1; }

.radio-group { border: none; }
.radio-group .radio {
  display: inline-block;
  margin-right: 24px;
  font-size: 16px;
  cursor: pointer;
}
.radio-vertical .radio { display: block; margin-bottom: 8px; }
.radio input {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: #fff;
  margin-right: 4px;
  vertical-align: -3px;
  cursor: pointer;
}
.radio input:checked {
  background: radial-gradient(var(--orange) 0 52%, #fff 58%);
}

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.submit-wrap { text-align: center; margin-top: 36px; }
.submit-btn {
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  border: none;
  border-radius: 3px;
  padding: 10px 52px;
  cursor: pointer;
  transition: opacity .2s;
}
.submit-btn:hover { opacity: .8; }

.form-thanks {
  font-size: 20px;
  max-width: 524px;
  margin: 40px auto 0;
}

.form-error {
  color: #D93025;
  font-size: 15px;
  text-align: center;
  margin-top: 10px;
}

.back-btn {
  display: inline-block;
  text-decoration: none;
}
.page-sub .form-thanks { margin-top: 10px; margin-bottom: 40px; }

/* ---------- フッター ---------- */
.site-footer {
  background: #fff;
  text-align: center;
  padding: 28px 0;
  font-size: 14px;
}

/* ---------- 下層ページ（送信完了など） ---------- */
.page-sub .site-header { background: var(--navy); }
.page-sub main { padding-top: calc(var(--header-h) + 40px); }

/* ---------- スクロールでふわっと表示（フェードイン） ---------- */
.js .fade-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .fade-item.visible {
  opacity: 1;
  transform: none;
}

/* アニメーションを減らす設定のユーザーには動きを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-ball { animation: none; }
  .js .fade-item {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   レスポンシブ（スマホ）
   ============================================ */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .header-inner { padding: 0 14px; }
  .header-logo img { width: 56px; }

  .nav-toggle { display: block; }

  .global-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 18px;
  }
  .global-nav.open { display: block; }
  .global-nav ul {
    flex-direction: column;
    gap: 12px;
  }
  .global-nav .pill { display: block; width: auto; text-align: center; }

  .dot-nav { display: none; }

  .hero { min-height: 480px; }
  /* 動画に焼き込まれた黒帯を画面外へ追い出す（スマホ縦画面のみ） */
  .hero-video { transform: scale(1.18); }
  .hero-catch { left: 5%; width: 90%; top: 55%; }
  .hero-ball { left: 55%; top: 45%; width: 32%; }
  .hero-subs { left: 5%; width: 90%; top: 80%; }
  .hero-sub { height: auto; max-width: 100%; }

  .sec { padding: 45px 0 55px; }
  .sec-head { margin-bottom: 30px; }

  .point-block { margin-bottom: 55px; }
  .point-head { margin-bottom: 14px; }
  .point-badge { width: 72px; margin-right: -22px; }
  .point-text { font-size: 16px; }

  .member-text { font-size: 16px; text-align: left; }

  .place-info { font-size: 16px; }
  .place-info .row { flex-direction: column; gap: 6px; padding: 10px 0; }
  .place-info dd { width: 100%; }
  .place-info small { font-size: 13px; }

  .faq-item summary { font-size: 15px; padding: 14px 40px 14px 14px; gap: 10px; }
  .faq-q { width: 26px; height: 26px; }
  .faq-a { padding: 0 14px 14px 14px; font-size: 15px; }

  .rules-text { font-size: 16px; margin-bottom: 60px; }

  .sec-member { padding: 60px 0 70px; }

  .trial-card { padding: 35px 16px 45px; }

  .field-row { flex-direction: column; gap: 0; }

  .form-thanks { font-size: 16px; }
}
