/* The O.K.A Tennis Player's Academy — 共通スタイル */
:root {
  --ink: #14231C;
  --ink-soft: #3E4F46;
  --green: #1F5C45;
  --paper: #F6F4EC;
  --white: #FFFFFF;
  --line: #E3E0D3;
  --accent: #D9E84A;
  --radius: 20px;
  --font-body: "Noto Sans JP", sans-serif;
  --font-head: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --font-en: "Outfit", "Zen Maru Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--ink); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section--green { background: var(--green); color: var(--white); }

/* 見出し */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 600; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--green);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--green .eyebrow { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.35; margin: 0; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 12px; }
.section-lead { color: var(--ink-soft); margin: 0 0 48px; max-width: 640px; }
.section--green .section-lead { color: #D3DED7; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 236, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--green); flex: none;
}
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 4px 22px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--green); }
.nav .btn { padding: 9px 20px; font-size: 14px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--white); cursor: pointer; font-size: 20px; color: var(--ink);
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: none; }
  .site-header.is-open .nav { display: flex; }
}

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { color: var(--ink); background: #E6F26A; }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { color: var(--white); background: var(--ink); }
.btn--outline { border: 2px solid currentColor; color: var(--white); padding: 12px 26px; }
.btn--outline:hover { color: var(--accent); }

/* ヒーロー */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: flex; align-items: flex-end; color: var(--white); overflow: hidden;
  background: var(--ink);
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,35,28,.1) 0%, rgba(20,35,28,.35) 45%, rgba(20,35,28,.88) 100%);
}
.hero__content { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 80px; width: 100%; }
.badge {
  display: inline-block; background: var(--accent); color: var(--ink);
  font-weight: 700; font-size: 13px; padding: 6px 16px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2rem, 6.4vw, 4.6rem); line-height: 1.2; margin: 24px 0 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero h1 .hl { color: var(--accent); }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 0 0 36px; max-width: 560px; color: #E8EFEA; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin: 28px 0 0; font-size: 14px; color: #D3DED7; }

/* 数字で見る */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--green); color: var(--white);
}
.stat { padding: 32px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--font-en); font-weight: 700; font-size: 44px; line-height: 1; color: var(--accent); }
.stat__num small { font-family: var(--font-head); font-size: 16px; margin-left: 4px; color: var(--white); }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr; } .stat { padding: 24px 12px; } .stat__num { font-size: 32px; } .stat:nth-child(2) { border-right: none; } .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); } }
.stat__label { font-size: 14px; color: #D3DED7; margin-top: 10px; }

/* カード */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--line);
}
.section--white .card { background: var(--paper); }
.card__num {
  font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .1em;
  color: var(--green); margin-bottom: 14px;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-soft); }

/* 写真ギャラリー */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-wide { grid-column: span 3; aspect-ratio: 4 / 3; }
.gallery .g-tall { grid-column: span 2; aspect-ratio: 3 / 4; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-wide { grid-column: span 2; }
  .gallery .g-tall { grid-column: span 1; }
  .gallery .g-tall:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 4 / 3; }
}

/* コース */
.course {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.course--featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.course__name { font-family: var(--font-en); font-weight: 700; font-size: 20px; }
.course__target { font-size: 14px; color: var(--ink-soft); margin: 4px 0 18px; }
.course--featured .course__target { color: #C9D6CE; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.5; }
.price span { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.course--featured .price span { color: #C9D6CE; }
.price--big { font-size: 36px; }
.course ul { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px dashed var(--line); font-size: 15px; }
.course--featured ul { border-top-color: rgba(255,255,255,.2); }
.course li { padding-left: 18px; position: relative; }
.course li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.course__note { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); }
.course--featured .course__note { color: var(--accent); font-weight: 700; }

/* コーチ */
.coach { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 56px; align-items: center; }
.coach__photo { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border: 6px solid var(--white); box-shadow: 0 20px 50px rgba(20,35,28,.12); }
.coach__name { font-family: var(--font-en); font-size: 34px; font-weight: 700; }
.coach__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 500; }
.coach p { color: var(--ink-soft); margin: 0 0 12px; }
@media (max-width: 760px) { .coach { grid-template-columns: 1fr; gap: 32px; } .coach__photo { max-width: 260px; } }

/* 場所と時間 */
.access-photo { border-radius: var(--radius); aspect-ratio: 21 / 9; object-fit: cover; width: 100%; margin-bottom: 24px; }
.info-label { font-weight: 700; margin-bottom: 6px; color: var(--green); font-size: 14px; letter-spacing: .05em; }

/* お知らせ */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center;
  padding: 22px 4px; text-decoration: none; color: var(--ink);
}
.news-list a:hover { color: var(--green); }
.news-list time { font-family: var(--font-en); font-size: 14px; color: var(--ink-soft); }
.news-list .arrow { color: var(--green); }
@media (max-width: 600px) { .news-list a { grid-template-columns: 1fr; gap: 2px; } .news-list .arrow { display: none; } }

.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 8px 0 24px; }
.article__date { font-family: var(--font-en); color: var(--ink-soft); }
.article__body p { margin: 0 0 1.4em; }
.article__body h2 { font-size: 1.4rem; margin: 2em 0 .8em; }
.article__body img { border-radius: var(--radius); margin: 1.6em 0; }
.article__back { margin-top: 48px; }

/* お問い合わせ */
.contact-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--white); color: var(--ink); border-radius: 24px; padding: 32px 36px;
}
.contact-box .info-label { margin: 0; }
.contact-box__mail { font-family: var(--font-en); font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; text-decoration: none; word-break: break-all; }

/* フッター */
.site-footer { background: var(--ink); color: #C9D6CE; padding: 48px 0; font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer .logo { color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: #C9D6CE; text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }

/* ページ見出し（下層ページ） */
.page-hero { padding: 80px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 20px 0 16px; }
.page-hero p { font-size: 18px; max-width: 680px; color: var(--ink-soft); margin: 0; }
.wide-photo { border-radius: 28px; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 60%; width: 100%; }

/* スクロールでふわっと表示 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .gallery img { transition: none; }
}
