@charset "utf-8";

:root {
  --navy: #14325c;
  --navy-deep: #0c2142;
  --logo-blue: #425aa7;    /* SOLA ロゴの青（フッター背景） */
  --orange: #f28c28;        /* 装飾用（罫線・ドット・濃紺背景上の文字） */
  --orange-ink: #a65300;    /* 白・淡色背景上の文字用（コントラスト 4.5:1 以上） */
  --orange-btn: #b85a0a;    /* 白文字ボタンの背景 */
  --orange-soft: #fff3e6;
  --line-green: #06833b;    /* LINE ボタン（白文字でコントラスト確保のため濃いめ） */
  --ink: #1f2933;
  --muted: #5b6673;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 12px;
  --max: 1040px;
  --header-h: 80px;
}
@media (max-width: 860px) { :root { --header-h: 64px; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 2px; border-radius: 4px; }
footer :focus-visible { outline-color: var(--orange); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.mt-lg { margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 56px; width: auto; }
@media (max-width: 860px) { .brand img { height: 46px; } }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font: inherit; font-size: 14px; color: var(--navy); cursor: pointer;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500;
}
.nav a:hover { background: var(--bg-alt); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px 8px; font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero { --hero-bg: #eef3fa; position: relative; overflow: hidden; isolation: isolate; background: var(--hero-bg); color: var(--ink); padding: 0; }
.hero-media { position: absolute; inset: 0 0 0 40%; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 80% center;
  /* 写真そのものを左端に向けて透明にし、背景色に溶け込ませる */
  --fade: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 28%, #000 65%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
}
.hero-inner { display: flex; align-items: center; min-height: 420px; padding: 64px 16px 72px; }
.hero-copy { max-width: 540px; }
.hero-logo { margin: 0 0 28px; line-height: 0; }
.hero-logo img { width: clamp(240px, 30vw, 340px); height: auto; }
.hero .hero-lead { margin: 0 0 10px; color: var(--navy-deep); font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; line-height: 1.5; }
.hero p { margin: 0 0 16px; }
.hero .addr { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 2px solid transparent;
}
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #056a30; }
.btn-reserve { background: var(--orange-btn); color: #fff; font-size: 18px; padding: 14px 48px; }
.btn-reserve:hover { background: #9e4d08; }
@media (max-width: 760px) {
  .hero-media { inset: 0 0 auto 0; height: 240px; }
  .hero-media img { --fade: linear-gradient(180deg, #000 45%, transparent 100%); }
  .hero-inner { min-height: 0; padding: 236px 16px 40px; }
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
.sec-title { margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); font-weight: 900; color: var(--navy); }
.sec-lead { margin: 0 0 28px; color: var(--muted); }
h3 { color: var(--navy); font-size: 18px; margin: 32px 0 12px; }

/* Notice */
.notice {
  border-left: 4px solid var(--orange); background: var(--orange-soft);
  padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0;
}
.notice .date { display: block; font-size: 13px; font-weight: 700; color: var(--orange-ink); }
.notice p { margin: 8px 0 0; }
.notice ul, .notice ol { margin: 8px 0 0; padding-left: 20px; }

/* お知らせ一覧（最大10件・枠内スクロール） */
.news-list {
  display: grid; gap: 14px;
  max-height: 560px; overflow-y: auto;
  padding-right: 6px; border-radius: var(--radius);
}
.news-list:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
/* 読み込み中のスケルトン */
.news-skeleton { display: grid; gap: 10px; }
.sk {
  display: block; height: 14px; width: 100%; border-radius: 6px;
  background: linear-gradient(90deg, rgba(0,0,0,.06) 25%, rgba(0,0,0,.11) 50%, rgba(0,0,0,.06) 75%) 0 0 / 200% 100%;
  animation: sk-shimmer 1.4s linear infinite;
}
.sk-date { width: 90px; height: 12px; }
.sk-title { width: 55%; height: 18px; }
.sk-short { width: 70%; }
@keyframes sk-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.news-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.news-message { margin: 0; padding: 16px 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.notice .news-title { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.notice .news-body { overflow-wrap: anywhere; }
.notice .news-body > :first-child { margin-top: 8px; }
.notice .news-body h2, .notice .news-body h3, .notice .news-body h4 { margin: 14px 0 0; font-size: 16px; color: var(--navy); }
.notice .news-body a { color: var(--navy); }
.notice .news-body figure { margin: 10px 0 0; }
.notice .news-body img { max-width: 100%; height: auto; border-radius: 8px; }
.notice .news-body figcaption { font-size: 13px; color: var(--muted); }
.notice .news-body blockquote { margin: 8px 0 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
.notice .news-body hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0 0; }
.notice .news-body table { border-collapse: collapse; margin-top: 8px; }
.notice .news-body th, .notice .news-body td { border: 1px solid var(--line); padding: 4px 8px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature strong { display: block; color: var(--navy); margin-bottom: 4px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.gallery img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery img:last-child { grid-column: span 2; } }

/* Video */
.video { width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); margin-top: 24px; display: block; background: #000; }

/* Pricing */
.price-lead { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
/* 年会費：料金カードと同じグリッドの1列分の幅。次のカードを新しい行から始め、単独の行にする */
.fee-note {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px;
}
.fee-note + .price-card { grid-column-start: 1; }
.fee-note .label { font-size: 16px; font-weight: 700; color: var(--navy); }
.fee-note b { font-size: 16px; color: var(--navy); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.price-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 16px; }
.price-card h3 .tag:first-of-type { margin-left: 4px; }
.price-card .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: transparent; border: 1px solid #b9cbe3; color: var(--navy); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.price-row:first-of-type { border-top: none; }
.price-card h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 2px; font-size: 14px; color: var(--navy); }
.price-card h3 + h4 { margin-top: 0; }
.price-card h4 + .price-row { border-top: none; }
.price-row:not(:has(+ .price-row)) { padding-bottom: 0; }
.price-row .label { color: var(--ink); }
.price-row .val { text-align: right; white-space: nowrap; }
.price-row .val b { font-size: 16px; color: var(--navy); }
.price-card .note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-col h3 { margin-top: 0; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { position: relative; padding-left: 22px; margin-bottom: 6px; }
ul.check li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Classes */
.class-list { display: grid; gap: 12px; }
.class-item { display: grid; grid-template-columns: 140px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.class-item .name { font-weight: 900; color: var(--navy); }
.class-item p { margin: 0; font-size: 15px; }
@media (max-width: 560px) { .class-item { grid-template-columns: 1fr; gap: 4px; } }

/* Schedule */
.schedule-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; word-break: auto-phrase; /* 中央揃えの短文を文節で改行（対応ブラウザのみ） */ }
.schedule-box p { margin: 0 0 8px; }
.schedule-box .btn-row { justify-content: center; margin: 16px 0 0; }
.contact-box { margin-top: 32px; }
.tt-lead { margin: 32px 0 12px; color: var(--muted); }
.tt-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* 週間スケジュール表（中身は build_schedule.py が生成） */
.tt-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tt { --ppm: 0.92px; --time-w: 52px; min-width: 720px; padding: 0 8px 12px 0; }
.tt-head, .tt-body { display: grid; grid-template-columns: var(--time-w) repeat(7, 1fr); }
.tt-head div { padding: 4px 0; line-height: 1.4; text-align: center; font-weight: 900; color: var(--navy); }
.tt-head div:nth-child(7) { color: #1f5fae; }   /* 土 */
.tt-head div:nth-child(8) { color: #b3261e; }   /* 日 */
.tt-body { position: relative; height: calc(var(--hours) * 60 * var(--ppm)); }
.tt-times { position: relative; }
.tt-times span {
  position: absolute; right: 8px; top: calc(var(--at) * var(--ppm)); transform: translateY(-50%);
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1;
}
.tt-day {
  position: relative; border-left: 1px solid var(--line);
  background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px calc(60 * var(--ppm)));
}
/* 位置・長さ・色は各ブロックの style 属性（--start, --dur, --lane, --lanes, --bar 背景色）で指定 */
.tt-ev {
  position: absolute; overflow: hidden;
  top: calc(var(--start) * var(--ppm) + 1px); height: calc(var(--dur) * var(--ppm) - 2px);
  left: calc(100% / var(--lanes) * var(--lane) + 2px); width: calc(100% / var(--lanes) - 4px);
  padding: 3px 7px; border-radius: 6px; background: var(--bar);
  font-size: 12px; line-height: 1.35; color: #000;
}
.tt-time { display: block; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tt-name { display: block; font-weight: 700; }
.tt-sub { display: block; font-size: 11px; font-weight: 500; }
.tt-split { padding: 2px 4px; font-size: 11px; line-height: 1.25; }
.tt-center { display: flex; flex-direction: column; justify-content: center; }
/* 電話は LINE より控えめな第二の連絡手段として、ボタンの下に区切り線を挟んで表示 */
.contact-tel { margin: 20px auto 0; padding-top: 16px; border-top: 1px dashed var(--line); max-width: 36em; }
.tel-link { font-weight: 700; font-size: 18px; text-decoration: none; }
.small-note { font-size: 13px; color: var(--muted); }

/* Coaches */
.coaches { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.coach { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
/* 写真全体を表示（左右は白背景の余白）。元画像が小さいため拡大しすぎない */
.coach img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; object-position: center bottom; padding-top: 12px; background: #fff; }
.coach-body { padding: 16px 18px 18px; }
.coach h3 { margin: 0; font-size: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.pill-shake { background: #e3edfa; color: var(--navy); }     /* グリップ：シェーク */
.pill-pen { background: #e1f3e8; color: #17613a; }           /* グリップ：ペン */
.pill-uraura { background: var(--orange-soft); color: var(--orange-ink); }  /* 戦型：裏裏 */
.pill-omoteura { background: #fce8ef; color: #a3214f; }                    /* 戦型：表裏 */
.coach ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink); }
.coach ul li { margin-bottom: 2px; }
.coach .sub { font-size: 13px; font-weight: 700; color: var(--muted); margin: 10px 0 4px; }

/* Shop */
.shop { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.shop img { border-radius: var(--radius); }
@media (max-width: 760px) { .shop { grid-template-columns: 1fr; } }

/* Access */
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); }
.access-list { display: grid; gap: 10px; margin: 0; }
.access-list div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.access-list dt { font-weight: 700; color: var(--navy); font-size: 14px; }
.access-list dd { margin: 0; }

/* Footer */
footer { background: var(--logo-blue); color: #e6ebf5; padding: 40px 0; font-size: 14px; }
.foot-inner { text-align: center; line-height: 1.8; }
.foot-name { color: #fff; font-size: 16px; }
footer a { color: #fff; }
.sns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.sns a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; text-decoration: none; font-size: 13px; }
.sns a:hover { background: rgba(255,255,255,.08); }

/* Mobile CTA bar（ヒーローを過ぎたら表示、お問い合わせ欄が見えている間は隠す） */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(12,33,66,.08);
    transform: translateY(110%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .mobile-cta.show { transform: none; visibility: visible; transition: transform .25s ease; }
  /* 文字幅を基準に余白を均等に配分（左右の空きが両ボタンでほぼ同じになる） */
  .mobile-cta .btn { flex: 1 1 auto; justify-content: center; padding: 10px 8px; font-size: 15px; white-space: nowrap; }
  footer { padding-bottom: 100px; }
}
