/* =====================================================
   Tennis School Page – Base
===================================================== */
:root {
  --primary-color: #0066cc; /* ボタンなどの基調色 */
  --accent-color: #00b37f; /* 強調・ステータス表示 */
  --dark-color: #1d1d1d;
  --light-color: #f5f7fa;
  --radius: 6px;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

/* 汎用ユーティリティ */
.inner {
  max-width: 720px; /* ← ここを 720px に固定 */
  margin: 0 auto;
  padding: 0 1rem; /* ← スマホで左右に余白 */
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 2.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

.section__lead {
  max-width: 40rem;
  margin: 0.75rem auto 0;
  color: var(--gray-600);
  text-align: center;
}

/* =====================================================
   1. Hero
===================================================== */
#content {
  padding-top: 0;
  margin: 0;
}
.hero {
  position: relative;
  height: 20vh;
  min-height: 20vh;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin: 0;
}

.hero__subtitle {
  color: var(--white);
  margin-top: 1.2rem;
  text-align: center;
  font-size: 1.4rem;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 2.4rem;
  }

  .hero__subtitle {
    color: var(--white);
    margin-top: 1.2rem;
    text-align: center;
    font-size: 1.6rem;
  }

  .hero {
    position: relative;
    height: 40vh;
    min-height: 40vh;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
}

/* =====================================================
   2. About
===================================================== */
.ts-about {
  padding: 4rem 0;
}

.ts-image {
  position: relative;
}

.ts-about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem; /* ← SP は 1rem で統一 */
}

.ts-about h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

/* 横並びラッパー → SP では縦並び */
.ts-about .flex {
  display: flex;
  flex-direction: column; /* ← 先に縦並びをデフォルトに */
  flex-wrap: wrap;
  gap: 1.5rem; /* ← SP 用の狭いギャップ */
  align-items: center; /* 画像を中央寄せ */
}

.ts-about .about-img {
  flex: 0 0 auto;
  width: 60%;
  max-width: 420px; /* 上限が要らなければ削除 */
  margin: 0 auto;
}

.ts-about .about-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ts-about .about-txt {
  margin-top: 2rem;
  flex: 1 1 0%;
  text-align: left;
}

.founder-career {
  padding: 1rem;
  background: #f3f4f6b0;
  position: absolute;
  bottom: 8px;
  right: 8px;
}

@media (min-width: 768px) {
  .ts-about {
    padding: 5rem 0;
  }

  .ts-about-inner {
    padding: 0 3rem; /* タブレットでは横余白を広く */
  }

  /* 横並びを再開 */
  .ts-about .flex {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
  }

  /* 画像サイズを固定値にする（例: 260px）*/
  .ts-about .about-img {
    flex: 0 0 260px;
    width: auto; /* SP の 60% を打ち消し */
    max-width: none;
    margin: 0; /* 自動中央寄せを解除 */
  }
}

@media (min-width: 1024px) {
  .ts-about-inner {
    padding: 0 1rem; /* デスクトップは元の 1rem へ */
  }

  /* 画像を 28%–320px のクランプへ */
  .ts-about .about-img {
    flex: 0 0 clamp(240px, 28%, 320px);
  }
}

/* =====================================================
   3. Brochure
===================================================== */
.ts-brochure {
  background: var(--light-color);
  padding: 4rem 0;
}

.ts-brochure h2 {
  text-align: center;
  font-size: 1.8rem;
}

.brochure-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.brochure-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.brochure-item img {
  object-fit: cover;
  aspect-ratio: 3 / 4;
  width: 100%;
}

.brochure-item span {
  display: block;
  padding: 0.8rem 1rem;
  font-weight: 600;
}

.brochure-item:hover {
  transform: translateY(-4px) scale(1.02);
}

.line-cta {
  margin-top: 3rem;
  text-align: center;
}

.line-cta img {
  width: 240px;
}

/* --- PDF アイコン (素材があれば画像 / Font Awesome などに切替可) --- */
.icon-pdf {
  display: inline-block;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.4rem;
  background: url("../../image/icon-pdf2.svg") center/contain no-repeat;
  vertical-align: middle;
}

/* --- リスト見た目調整 --- */
.brochure-list {
  list-style: none;
  margin: 0 auto;
  margin-top: 3rem;
  margin-bottom: 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brochure-img-wrap {
  margin-top: 3rem;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* CSSの最新書法（モダンブラウザ対応） */
  overflow: hidden;
  border-radius: var(--radius); /* 任意：角丸 */
  box-shadow: var(--shadow); /* 任意：影 */
}

.brochure-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* トリミングしながら中央にフィット */
}

.brochure-list li {
  width: 100%;
}

.brochure-link {
  width: 100%; /* カード全体をクリック領域に */
  display: block;
  padding: 1rem 1.2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.brochure-link:hover {
  transform: translateY(-4px);
}

@media (min-width: 768px) {
  .ts-brochure {
    background: var(--light-color);
    padding: 5rem 0;
  }

  .brochure-list {
    list-style: none;
    margin: 0 auto;
    margin-bottom: 2rem;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    max-width: 800px;
    justify-items: center;
    margin-top: 3rem;
  }
}

/* =====================================================
   Coach Section
===================================================== */

/* --- セクション余白 --- */
.ts-coach {
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .ts-coach {
    padding: 5rem 0;
  }
}

/* --- 見出し --- */
.ts-coach h2 {
  text-align: center;
  font-size: 1.8rem;
}

/* --- カードを並べるグリッド --- */
.coach-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 3rem;
}

/* =====================================================
   Coach Card
===================================================== */
.coach-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  padding: 1rem;
}
.coach-card:hover {
  transform: translateY(-4px);
}

/* ---------- 左右並び用ラッパー ---------- */
.coach-card .flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* ---------- 写真（丸型 140×140px 固定） ---------- */
.coach-card figure {
  flex: 0 0 140px; /* shrink しない／grow しない／basis 140px */
  width: 140px;
  height: 140px;
  margin: 0;
  overflow: hidden; /* はみ出しカット */
  border-radius: 50%; /* ← ここで丸くする */
}
.coach-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- プロフィール ---------- */
.coach-profile {
  flex: 1 1 0;
}

.coach-card h3 {
  font-size: 1.2rem;
}
.coach-card .position {
  color: var(--accent-color);
  font-size: 1rem;
  text-align: center;
}

.coach-card h4 {
  font-size: 1rem;
  margin: 0.8rem 0 0.3rem;
  font-weight: 600;
}
.coach-card .career {
  margin: 0.4rem 0 1rem 1.2rem;
  list-style: disc;
  font-size: 0.8rem;
}
.coach-card .comment {
  font-size: 0.8rem;
  line-height: 1.6;
}

/* --- PC 文字サイズ微調整 --- */
@media (min-width: 768px) {
  .coach-card .position {
    font-size: 0.9rem;
  }
}

/* =====================================================
   Event Section
===================================================== */
.ts-event {
  background: var(--light-color);
  padding: 4rem 0;
}

.ts-event h2 {
  text-align: center;
  font-size: 1.8rem;
}

/* --------------- カード一覧 --------------- */
.event-list {
  display: flex;
  flex-direction: column; /* 1 列縦並び */
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-top: 3rem;
}

/* --------------- 個別カード --------------- */
.event-item {
  display: flex;
  gap: 1.2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.event-item:hover {
  transform: translateY(-4px);
}

/* アイキャッチ */
.event-item figure {
  flex: 0 0 80px; /* 幅・高さをまとめて固定 */
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
}

.event-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* テキスト部 */
.event-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0; /* テキスト折り返し */
}

.event-header {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.event-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.event-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.6rem;
}

.event-meta .date i {
  margin-right: 0.25rem;
}

/* 抜粋 */
.event-content p {
  font-size: 0.9rem;
  margin: 0;
}

/* --------------- バッジ --------------- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 9999px;
  font-weight: 600;
  white-space: nowrap;
  background: #e8f9e6; /* デフォルト */
}
.cat-tournament {
  background: #dbe5ff;
}
.cat-workshop {
  background: #e8f9e6;
}
.cat-camp {
  background: #ffeab3;
}

/* --------------- 一覧ボタン --------------- */
.event-more {
  text-align: center;
  margin-top: 2.8rem;
}

/* ---------- メディアクエリ ---------- */
@media (max-width: 480px) {
  .event-item {
    gap: 0.8rem;
    padding: 1rem;
  }
  .event-content h3 {
    font-size: 1rem;
  }
  .event-content p {
    font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
  .event-excerpt {
    display: none;
  }
}

@media (min-width: 768px) {
  .ts-event {
    padding: 5rem 0;
  } /* 余白だけ上書き */
  .event-item figure {
    flex: 0 0 120px;
    height: 120px;
  }
}

/* =====================================================
   7. Access
===================================================== */

.access-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.access-name {
  font-size: 1.4rem;
  font-weight: 600;
}
.access-icon {
  color: #0056b3;
}
.ts-access {
  background-color: white;
  padding: 4rem 0;
}

.ts-access figure {
  flex: 0 0 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ts-access .access-info {
  flex: 1 1 0%;
}

.ts-access h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2.4rem;
}

.ts-access .address {
  margin: 0.5rem 0 0 1.75rem;
}

.notes {
  margin: 0.5rem 0 0 1.75rem;
}

.access-means {
  background-color: #f9fafb;
  padding: 2rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.access-label {
  font-weight: 600;
}

.access-list {
  list-style: disc;
  margin: 0.5rem 0 0 1.75rem;
  padding: 0;
}

.access-list li {
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.park-info {
  margin: 0.5rem 0 0 1.75rem;
}

.park-info__item {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.25rem;
}

.park-info__divider {
  width: 100%;
  height: 1px;
  background-color: #e5e7eb; /* グレーのライン */
}

/* =====================================================
   Responsive Tweaks
===================================================== */
@media (max-width: 768px) {
  .ts-about .about-img,
  .ts-access figure {
    flex: 0 0 100%;
  }

  .ts-about .flex,
  .ts-access .flex {
    flex-direction: column;
  }
}
