/* ===== クアッドボール紹介ページ ===== */

/* 概要：画像＋テキスト横並び */
.qb-intro-bg {
  background: #f8f9ff;
}

.qb-split {
  display: flex;
  gap: 48px;
  align-items: center;
}

/* reverseクラスで左右を入れ替え */
.qb-split.reverse {
  flex-direction: row-reverse;
}

/* 全体表示したい画像（フィールド図など） */
.qb-split-img.qb-split-img--full {
  background: #f0f2f8;
}

.qb-split-img.qb-split-img--full img {
  height: auto;
  object-fit: contain;
}

.qb-split-img {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.qb-split-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.qb-split-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qb-split-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: #444;
}

/* フォトギャラリー */
.qb-gallery-bg {
  background: #1a1a2e;
}

.qb-gallery-bg .section-title {
  color: #fff;
}

.qb-gallery-bg .section-title span {
  border-color: #ffd700;
}

.qb-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 8px;
}

.qb-gallery-item {
  overflow: hidden;
  border-radius: 8px;
}

.qb-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.qb-gallery-item img:hover {
  transform: scale(1.04);
}

/* 1枚目を縦長・左側に大きく表示 */
.qb-gallery-item.tall {
  grid-row: span 2;
}

.qb-gallery-item.tall img {
  height: 100%;
  min-height: 408px;
}

/* ===== ルールセクション ===== */
.qb-rule-bg {
  background: #fff;
}

/* 各ルールブロック */
.qb-rule-block {
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid #e8eaf0;
}

.qb-rule-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.qb-rule-title {
  font-size: 1.5rem;
  color: #0f3460;
  margin-bottom: 28px;
  font-weight: bold;
  border-left: 5px solid #0f3460;
  padding-left: 16px;
  line-height: 1.4;
}

/* ペナルティボックス */
.qb-rule-penalty {
  background: #fff3cd;
  border-left: 4px solid #f0ad00;
  border-radius: 6px;
  padding: 16px 20px;
}

.qb-rule-penalty-label {
  display: block;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #856404;
}

.qb-rule-penalty p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #5a4000;
  margin: 0;
}

/* ルールのリード文 */
.qb-rule-lead {
  font-size: 1rem;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ボール3枚カード */
.qb-ball-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.qb-ball-card {
  background: #f8f9ff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-top: 3px solid #0f3460;
}

.qb-ball-img {
  overflow: hidden;
}

.qb-ball-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.qb-ball-card:hover .qb-ball-img img {
  transform: scale(1.05);
}

.qb-ball-body {
  padding: 20px;
}

.qb-ball-body h4 {
  font-size: 1.05rem;
  color: #0f3460;
  margin-bottom: 10px;
}

.qb-ball-en {
  font-size: 0.8rem;
  color: #888;
  font-weight: normal;
  margin-left: 6px;
}

.qb-ball-body p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #555;
}

/* ===== ポジション紹介 ===== */
.qb-position-bg {
  background: #f8f9ff;
  color: #333;
}

.qb-positions {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.qb-position-item {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}

/* reverseクラスで左右を入れ替え */
.qb-position-item.reverse {
  flex-direction: row-reverse;
}

.qb-position-img {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.qb-position-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.qb-position-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.qb-position-badge.chaser { background: #e85d04; color: #fff; }
.qb-position-badge.keeper { background: #2d9e4e; color: #fff; }
.qb-position-badge.beater { background: #1d7fc4; color: #fff; }
.qb-position-badge.seeker { background: #c9a800; color: #1a1a2e; }

.qb-position-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #0f3460;
}

.qb-position-body .en {
  font-size: 0.9rem;
  color: #888;
  font-weight: normal;
  margin-left: 8px;
}

.qb-position-body p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #555;
}

/* ===== CTAセクション ===== */
.qb-cta-bg {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: #fff;
  text-align: center;
}

.qb-cta-bg h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.qb-cta-bg p {
  color: #aac4ff;
  font-size: 1rem;
  margin-bottom: 32px;
}

.qb-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.qb-cta-btn {
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s;
}

.qb-cta-btn:hover {
  opacity: 0.85;
}

.qb-cta-btn.primary {
  background: #ffd700;
  color: #1a1a2e;
}

.qb-cta-btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

/* ===== タブレット対応（768px以下） ===== */
@media (max-width: 768px) {
  .qb-split,
  .qb-split.reverse {
    flex-direction: column;
    gap: 28px;
  }

  .qb-split-img img {
    height: 240px;
  }

  .qb-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .qb-gallery-item.tall {
    grid-row: span 1;
  }

  .qb-gallery-item.tall img {
    min-height: auto;
    height: 200px;
  }

  .qb-ball-cards {
    grid-template-columns: 1fr;
  }

  .qb-position-item,
  .qb-position-item.reverse {
    flex-direction: column;
  }

  .qb-position-img {
    width: 100%;
  }
}

/* ===== スマホ対応（600px以下） ===== */
@media (max-width: 600px) {
  .qb-gallery {
    grid-template-columns: 1fr;
  }

  .qb-rule-title {
    font-size: 1.2rem;
  }

  .qb-cta-bg h2 {
    font-size: 1.4rem;
  }
}
