/* ==========================================================================
   ATHLON PRIVATE GYM ― 特設サイト
   テーマ: "Studio Aqua"（明るい・清潔感のあるフィットネススタジオ）
   白サーフェス + 淡い寒色グレー基調 + クリアな水色アクセント1色
   ========================================================================== */
:root {
  --bg:        #F6F9FB;
  --surface:   #FFFFFF;
  --surface-2: #EFF4F7;
  --ink:       #14242E;
  --ink-dim:   #576A74;
  --ink-faint: #5A6B73;   /* 白背景で 4.5:1 以上 (旧 #8A99A2 は ~2.9:1 で AA 未達) */
  --line:      #E2EBF0;
  --line-2:    #CFDCE3;
  --accent:    #0A7DA8;
  --accent-d:  #095978;
  --accent-ink:#FFFFFF;
  --support:   #E9F6FB;
  --warn:      #B23B3B;
  --warn-bg:   #FBEDED;
  --ok:        #1E7E54;
  --maxw: 1160px;
  --d: "Montserrat", "Noto Sans JP", sans-serif;
  --b: "Noto Sans JP", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 10px 30px rgba(20,36,46,0.08);
  --shadow-sm: 0 4px 14px rgba(20,36,46,0.06);
  --header-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 4px); /* 実ヘッダー高 66px + 余白 */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body.gym {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--b);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* 日本語の不自然な分割を抑える */
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.nowrap { white-space: nowrap; }

/* ===== skip link ===== */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--d); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-sm); transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0; outline: 3px solid rgba(10,125,168,0.55); outline-offset: 2px; }

.gym-wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ===== display type ===== */
.dsp {
  font-family: var(--d);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.06;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--d);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ===== buttons ===== */
.gym-btn, .gym-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--d); font-weight: 700; letter-spacing: 0.04em;
  font-size: 15px; padding: 14px 28px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.gym-btn { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px rgba(10,125,168,0.22); }
.gym-btn:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10,125,168,0.28); }
.gym-btn:active { transform: translateY(0); }
.gym-btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.gym-btn-outline { background: var(--surface); color: var(--accent); border-color: var(--line-2); }
.gym-btn-outline:hover { border-color: var(--accent); background: var(--support); transform: translateY(-2px); }
:focus-visible { outline: 3px solid rgba(10,125,168,0.55); outline-offset: 2px; border-radius: 6px; }

/* ===== header ===== */
.gym-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,249,251,0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.gym-header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.gym-logo { display: inline-flex; align-items: baseline; gap: 9px; min-width: 0; }
.gym-logo b { font-family: var(--d); font-weight: 800; letter-spacing: 0.06em; font-size: 19px; white-space: nowrap; }
.gym-logo span { font-size: 10px; letter-spacing: 0.24em; color: var(--ink-faint); text-transform: uppercase; font-family: var(--d); font-weight: 700; white-space: nowrap; }
.gym-nav { display: flex; align-items: center; gap: 26px; }
.gym-nav a { font-family: var(--d); font-weight: 600; letter-spacing: 0.04em; font-size: 14px; color: var(--ink-dim); transition: color 0.2s; white-space: nowrap; }
.gym-nav a:hover { color: var(--accent); }
.gym-nav .gym-btn { padding: 9px 18px; font-size: 13px; color: var(--accent-ink); }
.gym-nav .gym-btn:hover { color: var(--accent-ink); }
@media (max-width: 760px) {
  .gym-nav a:not(.gym-btn) { display: none; }
}
/* 狭幅でロゴが横はみ出ししないよう縮小（ロゴ＋予約ボタンを1行に収める） */
@media (max-width: 480px) {
  .gym-logo b { font-size: 16px; letter-spacing: 0.04em; }
  .gym-logo span { display: none; }
}
@media (max-width: 360px) {
  .gym-logo b { font-size: 15px; }
}

/* ===== hero ===== */
.gym-hero {
  position: relative; min-height: 82vh; display: flex; align-items: flex-end;
  background: var(--surface-2); overflow: hidden;
}
.gym-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(246,249,251,0.20) 0%, rgba(246,249,251,0.08) 30%, rgba(246,249,251,0.82) 100%),
    linear-gradient(90deg, rgba(246,249,251,0.45), rgba(246,249,251,0.04) 60%),
    var(--hero-img, none);
  background-size: cover; background-position: center 35%;
}
.gym-hero-inner {
  position: relative; padding: clamp(40px,8vw,90px) 0;
  width: min(100% - 40px, var(--maxw)); margin-inline: auto;
}
.gym-hero h1 {
  /* 書体定義は .dsp に集約。ここはヒーロー固有値のみ */
  margin: 8px 0 0; letter-spacing: 0.01em;
  font-size: clamp(40px, 9vw, 104px); line-height: 0.98; color: var(--ink);
  max-width: 12ch;
  text-shadow: 0 1px 3px rgba(255,255,255,0.7), 0 1px 1px rgba(255,255,255,0.55);
}
.gym-hero h1 .sub { display: block; font-size: clamp(20px,3.4vw,38px); color: var(--accent); letter-spacing: 0.02em; margin-top: 6px; }
.gym-hero p.lead {
  margin: 24px 0 32px; max-width: 38ch; color: var(--ink-dim);
  font-size: clamp(15px,1.7vw,17px); text-wrap: pretty;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}
.gym-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== section base ===== */
.gym-section { padding: clamp(64px, 9vw, 116px) 0; }
.gym-section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.gym-head { max-width: 56ch; margin-bottom: clamp(36px, 5vw, 56px); }
.gym-head h2 {
  margin: 0; font-family: var(--d); font-weight: 800; letter-spacing: 0.005em;
  font-size: clamp(28px, 4.6vw, 48px); line-height: 1.12; color: var(--ink);
  text-wrap: balance;
}
.gym-head p { margin: 18px 0 0; color: var(--ink-dim); text-wrap: pretty; }

/* ===== concept stats ===== */
.gym-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gym-stat {
  background: var(--surface); padding: clamp(24px,3vw,34px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.gym-stat b { display: block; font-family: var(--d); font-weight: 800; font-size: clamp(26px,3.4vw,40px); color: var(--accent); line-height: 1.05; }
.gym-stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-dim); }
@media (max-width: 640px){ .gym-stats { grid-template-columns: 1fr; } }

/* ===== equipment ===== */
.gym-equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gym-equip-card {
  position: relative; border: 1px solid var(--line); background: var(--surface);
  overflow: hidden; border-radius: 16px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.gym-equip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gym-equip-card .ph { aspect-ratio: 3/4; overflow: hidden; background: var(--surface-2); }
.gym-equip-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gym-equip-card:hover .ph img { transform: scale(1.05); }
.gym-equip-card .cap { padding: 16px 18px; display: flex; align-items: baseline; gap: 10px; }
.gym-equip-card .cap .no { font-family: var(--d); font-weight: 800; color: var(--accent); font-size: 14px; letter-spacing: 0.04em; }
.gym-equip-card .cap b { font-family: var(--d); font-weight: 700; letter-spacing: 0.01em; font-size: 16px; color: var(--ink); }
.gym-equip-card .cap small { display: block; color: var(--ink-faint); font-size: 12px; font-family: var(--b); font-weight: 500; }

/* ===== pricing ===== */
.gym-price-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; overflow: hidden; }
.gym-price-table th, .gym-price-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gym-price-table thead th { font-family: var(--d); font-weight: 700; letter-spacing: 0.02em; font-size: 14px; color: var(--ink-dim); background: var(--surface-2); }
.gym-price-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.gym-price-table .price { font-family: var(--d); font-weight: 700; color: var(--accent); font-size: 18px; white-space: nowrap; }
.gym-price-table tr:last-child td, .gym-price-table tr:last-child th { border-bottom: 0; }
.gym-notes { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.gym-notes li { position: relative; padding-left: 22px; color: var(--ink-dim); font-size: 14.5px; text-wrap: pretty; }
.gym-notes li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ===== reserve form ===== */
.gym-form-wrap { max-width: 760px; }
.gym-form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm);
}
.gym-field { margin-bottom: 22px; }
.gym-field:last-child { margin-bottom: 0; }
.gym-field > label, .gym-legend { display: block; font-family: var(--d); font-weight: 700; letter-spacing: 0.02em; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.gym-req { color: var(--accent); margin-left: 6px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.gym-input, .gym-select, .gym-textarea {
  width: 100%; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-2);
  border-radius: 10px; padding: 13px 14px; font: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.gym-textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.gym-input:focus, .gym-select:focus, .gym-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,125,168,0.4); }
.gym-input[aria-invalid="true"], .gym-textarea[aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(178,59,59,0.18); }
.gym-input::placeholder, .gym-textarea::placeholder { color: var(--ink-faint); }
.gym-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .gym-grid-2 { grid-template-columns: 1fr; } }

/* duration / category chips */
.gym-choice { display: flex; flex-wrap: wrap; gap: 10px; }
.gym-choice label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1.5px solid var(--line-2); background: var(--surface); padding: 11px 18px; border-radius: 10px;
  font-size: 15px; transition: all 0.15s var(--ease); white-space: nowrap;
}
.gym-choice input { accent-color: var(--accent); width: 16px; height: 16px; }
.gym-choice label:hover { border-color: var(--accent); }
.gym-choice label:has(input:checked) { border-color: var(--accent); background: var(--support); color: var(--accent-d); font-weight: 700; }

/* slot list (縦並び) */
.gym-time-hint { margin: 0 0 12px; font-size: 13px; color: var(--ink-dim); text-wrap: pretty; }
.gym-slots { display: grid; gap: 8px; }
.gym-slots-empty { margin: 0; padding: 18px 16px; text-align: center; color: var(--ink-faint); font-size: 14px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--surface); }
.gym-slot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: left; font: inherit;
  padding: 14px 18px; border: 1.5px solid var(--line-2); background: var(--surface);
  border-radius: 12px; cursor: pointer; transition: all 0.15s var(--ease);
}
.gym-slot .t { font-family: var(--d); font-weight: 700; font-size: 16px; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; }
.gym-slot .avail { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.gym-slot .avail.ok { color: var(--ok); background: #E6F4EC; }
.gym-slot .avail.low { color: var(--accent-d); background: var(--support); }
.gym-slot .avail.full { color: var(--ink-dim); background: var(--surface-2); }
.gym-slot:hover:not(.is-full) { border-color: var(--accent); }
.gym-slot.is-range { background: var(--support); border-color: var(--accent); }
.gym-slot.is-start { box-shadow: inset 0 0 0 2px var(--accent); border-color: var(--accent); }
.gym-slot.is-start .t { color: var(--accent-d); }
/* 満席は opacity に頼らず border/背景で無効状態を表現（テキストは可読性維持） */
.gym-slot.is-full { cursor: not-allowed; background: var(--surface-2); border-style: dashed; border-color: var(--line-2); }
.gym-slot.is-full .t { color: var(--ink-dim); }
.gym-slot.is-invalid { background: var(--warn-bg); border-color: var(--warn); }
.gym-slot.is-invalid .t { color: var(--warn); }

.gym-range { margin: 12px 0 0; font-size: 14px; font-weight: 700; padding: 11px 14px; border-radius: 10px; }
/* ライブリージョンは常時 DOM に残すが、空のときは視覚的に隠す */
.gym-range:empty { display: none; margin: 0; padding: 0; }
.gym-range.is-ok { color: var(--accent-d); background: var(--support); border: 1px solid var(--line-2); }
.gym-range.is-warn { color: var(--warn); background: var(--warn-bg); border: 1px solid #E7C3C3; }

.gym-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-dim); cursor: pointer; line-height: 1.7; }
.gym-check input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 4px; flex: none; }
.gym-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.gym-form-actions { margin-top: 6px; }
.gym-form-actions .gym-btn { width: 100%; padding: 17px; font-size: 16px; }
.gym-form-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-faint); text-align: center; text-wrap: pretty; }

.gym-success { display: none; border: 1.5px solid var(--accent); background: var(--support); border-radius: 18px; padding: clamp(28px,4vw,44px); text-align: center; }
.gym-success.is-shown { display: block; }
.gym-success h3 { font-family: var(--d); font-weight: 800; letter-spacing: 0.01em; color: var(--accent-d); margin: 0 0 12px; font-size: clamp(20px, 5.5vw, 24px); }
.gym-success p { color: var(--ink-dim); margin: 0; text-wrap: pretty; }

/* ===== footer ===== */
.gym-footer { border-top: 1px solid var(--line); padding: 48px 0; background: var(--surface); }
.gym-footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.gym-footer .f-brand b { font-family: var(--d); font-weight: 800; letter-spacing: 0.05em; font-size: 18px; color: var(--ink); }
.gym-footer dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; color: var(--ink-dim); }
.gym-footer dt { color: var(--ink-faint); font-family: var(--d); font-weight: 700; letter-spacing: 0.06em; font-size: 11px; text-transform: uppercase; padding-top: 3px; }
.gym-footer dd { margin: 0; }
.gym-footer a.back { font-family: var(--d); font-weight: 700; letter-spacing: 0.02em; font-size: 14px; color: var(--accent); border-bottom: 1.5px solid var(--line-2); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s; }
.gym-footer a.back:hover { color: var(--accent-d); border-color: var(--accent); }
.gym-copy { margin-top: 32px; color: var(--ink-faint); font-size: 12px; letter-spacing: 0.02em; }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ===== FAQ ===== */
.gym-faq { display: grid; gap: 14px; max-width: 860px; }
.gym-faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.gym-faq-item h3 {
  position: relative;
  margin: 0 0 8px;
  padding-left: 30px;
  font-family: var(--b);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.gym-faq-item h3::before {
  content: "Q";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--d);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.gym-faq-item p {
  margin: 0;
  padding-left: 30px;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.9;
  text-wrap: pretty;
}
@media (max-width: 640px) {
  .gym-faq-item { padding: 18px 20px; }
  .gym-faq-item h3 { font-size: 15px; padding-left: 27px; }
  .gym-faq-item p { padding-left: 27px; font-size: 14px; }
}
