/*
Theme Name: ELK FITNESS
Theme URI: https://elkgym.com
Description: ELK FITNESS SHIZUOKA 専用カスタムテーマ
Author: ELK FITNESS
Version: 3.0
License: proprietary
Text Domain: elk-fitness
*/

@font-face {
  font-family: 'AXIS Latin Pro';
  src: url('fonts/AXISLatinPro-Regular.woff2') format('woff2'),
       url('fonts/AXISLatinPro-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AXIS Latin Pro';
  src: url('fonts/AXISLatinPro-Medium.woff2') format('woff2'),
       url('fonts/AXISLatinPro-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AXIS Latin Pro';
  src: url('fonts/AXISLatinPro-Bold.woff2') format('woff2'),
       url('fonts/AXISLatinPro-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --primary: #32507f;
  --primary-dark: #263d61;
  --primary-light: #4a6a9e;
  --bg: #eaeaea;
  --white: #ffffff;
  --text: #424242;
  --text-light: #6b6b6b;
  --sub-gold: #ddbf2a;
  --sub-red: #a84848;
  --font-latin: 'AXIS Latin Pro', 'Helvetica Neue', Arial, sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* HEADER */
header.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(38,61,97,0.92);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.nav-logo {
  display: flex; align-items: center; text-decoration: none; height: 36px;
}
.nav-logo svg { height: 36px; width: auto; }
.nav-logo svg .st0 { fill: #fff; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-family: var(--font-latin); font-weight: 500; font-size: 12px;
  letter-spacing: 2.5px; text-transform: uppercase;
  opacity: 0.8; transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--white) !important; color: var(--primary) !important;
  padding: 8px 20px; font-weight: 700 !important;
  opacity: 1 !important; transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,255,255,0.25); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: 0.3s; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #32507f; overflow: hidden;
  padding: 80px 0 100px;
  box-sizing: border-box;
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.hero-logo {
  width: clamp(280px, 45vh, 500px);
  margin: 0 auto 20px; animation: fadeInUp 1.2s ease-out;
}
.hero-logo svg, .hero-logo img { width: 100%; height: auto; }
.hero-tagline {
  font-size: 15px; color: rgba(255,255,255,0.55);
  margin-top: 20px; line-height: 2; letter-spacing: 1px;
  animation: fadeInUp 1s ease-out 0.5s both;
}
.hero-buttons {
  margin-top: 36px; display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s both;
}
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%); z-index: 2; animation: bounce 2s infinite;
}
.hero-scroll span { display: block; width: 1px; height: 48px; background: rgba(255,255,255,0.25); margin: 0 auto; }
.hero-scroll small {
  color: rgba(255,255,255,0.35); font-family: var(--font-latin);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
}

/* BUTTONS */
.btn {
  display: inline-block; padding: 14px 36px;
  font-family: var(--font-latin); font-weight: 700; font-size: 13px;
  letter-spacing: 2.5px; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--white); color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: var(--white); }
.btn-navy { background: var(--primary-dark); color: var(--white); }
.btn-navy:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,45,77,0.3); }

/* SECTIONS */
section { padding: 100px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: var(--font-latin); font-weight: 500; font-size: 15px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-latin); font-weight: 700;
  font-size: clamp(30px, 5vw, 48px); color: var(--primary);
  letter-spacing: 3px; line-height: 1.2; margin-bottom: 20px;
  text-transform: uppercase;
}
.section-text { font-size: 15px; color: var(--text-light); line-height: 2; max-width: 640px; text-align: justify; }

/* ABOUT */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image {
  width: 100%; aspect-ratio: 4/3;
  background: var(--primary-dark); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.about-image svg { width: 55%; height: auto; opacity: 0.3; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 60px; }
.feature-card { padding: 0; background: var(--white); border: 1px solid #d8d8d8; transition: all 0.3s; overflow: hidden; min-width: 0; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,45,77,0.08); border-color: var(--primary); }
.feature-card .feature-content { padding: 28px; }
.feature-icon {
  width: 48px; height: 48px; background: var(--primary-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-title { font-family: var(--font-latin); font-weight: 700; font-size: 17px; letter-spacing: 1px; color: var(--primary-dark); margin-bottom: 12px; }
.feature-desc { font-size: 14px; color: var(--text-light); line-height: 1.9; margin-bottom: 20px; text-align: justify; }
.feature-btn { display: inline-block; padding: 10px 32px; border: 1px solid var(--primary); color: var(--primary); font-family: var(--font-latin); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; transition: all 0.3s; }
.feature-btn:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.feature-card-image { width: 100%; height: 220px; overflow: hidden; position: relative; }
.feature-card-image img { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; transition: transform 0.4s; max-width: none !important; max-height: none !important; }
.feature-card:hover .feature-card-image img { transform: scale(1.05); }
.feature-more { display: inline-block; font-family: var(--font-latin); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--white); background: var(--primary-dark); padding: 10px 24px; text-decoration: none; transition: background 0.3s; }
.feature-more:hover { background: var(--primary); }

/* PLANS */
.plans { background: var(--bg); }
.plan-btn { width: 100%; text-align: center; margin-top: 8px; }
.plan-category { margin-top: 48px; }
.plan-category:first-of-type { margin-top: 40px; }
.plan-category-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary);
}
.plan-category-label {
  font-family: var(--font-latin); font-weight: 700; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); background: var(--primary); padding: 4px 12px;
}
.plan-category-title { font-family: var(--font-jp); font-weight: 700; font-size: 18px; color: var(--text); }
.plan-row-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.plan-row-grid.three { grid-template-columns: repeat(3, 1fr); }
.plan-row-card {
  background: var(--white); padding: 32px 28px; border: 1px solid #d8d8d8;
  transition: all 0.3s; position: relative; display: flex; flex-direction: column;
}
.plan-row-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(50,80,127,0.1); border-color: var(--primary); }
.plan-row-card.popular { border: 2px solid var(--primary); }
.plan-row-card.best-value { border: 2px solid var(--sub-gold); }
.plan-row-card.free { border: 2px solid var(--primary); background: var(--primary); }
.plan-row-card.free .plan-name,
.plan-row-card.free .plan-price,
.plan-row-card.free .plan-row-detail span { color: var(--white); }
.plan-popular-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white);
  font-family: var(--font-jp); font-weight: 700; font-size: 11px;
  padding: 3px 14px; letter-spacing: 1px;
}
.plan-popular-badge.gold { background: var(--sub-gold); color: #333; }
.plan-row-top { margin-bottom: 16px; }
.plan-name { font-family: var(--font-latin); font-weight: 700; font-size: 16px; letter-spacing: 1px; color: var(--text); margin-bottom: 6px; }
.plan-price { font-family: var(--font-latin); font-weight: 700; font-size: 36px; color: var(--primary); line-height: 1; }
.plan-price small { font-family: var(--font-jp); font-size: 13px; color: var(--text-light); font-weight: 400; }
.plan-row-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.plan-row-detail span { font-size: 14px; color: var(--text-light); }
.plan-row-note { font-size: 12px; color: var(--text-light); margin-bottom: 16px; flex-grow: 1; }

/* RENTAL */
.rental-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rental-card { background: var(--primary-dark); padding: 40px 24px; text-align: center; transition: all 0.3s; }
.rental-card-dark .rental-time, .rental-card-dark .rental-price { color: var(--white); }
.rental-card-dark .rental-time small { color: rgba(255,255,255,0.7); }
.rental-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(50,80,127,0.2); }
.rental-time { font-family: var(--font-latin); font-weight: 700; font-size: 48px; color: var(--white); line-height: 1; margin-bottom: 8px; }
.rental-time small { font-size: 18px; font-family: var(--font-jp); }
.rental-price { font-family: var(--font-latin); font-weight: 700; font-size: 24px; color: rgba(255,255,255,0.8); }

/* CAMPAIGN */
.campaign { background: var(--primary-dark); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.campaign .section-label { color: var(--primary-light); }
.campaign .section-heading { color: var(--white); }
.campaign .section-text { color: rgba(255,255,255,0.5); margin: 0 auto 40px; }
.campaign-highlight {
  font-family: var(--font-latin); font-weight: 700;
  font-size: clamp(26px, 4vw, 52px); letter-spacing: 3px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--white) 0%, var(--sub-gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* JOIN */
.join { text-align: center; position: relative; overflow: hidden; }
.join-has-bg { color: var(--white); }
.join-has-bg::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(230,230,230,0.85); z-index: 0;
}
.join-has-bg .section-inner { position: relative; z-index: 1; }
.join .section-text { margin: 0 auto 40px; }
.join-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* RESERVE BUTTONS */
.plan-reserve-btn { text-align: center; margin-top: 28px; }

/* ADMISSION */
.admission-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 0;
  transition: all 0.3s;
}
.admission-grid:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,45,77,0.08);
}
.admission-grid .plan-row-card {
  border-right: none; transition: none;
}
.admission-grid .plan-row-card:hover {
  transform: none; box-shadow: none; border-color: #d8d8d8;
}
.admission-notes {
  background: var(--white); border: 1px solid #d8d8d8; border-left: none;
  padding: 28px 32px; font-size: 13px; color: var(--text-light);
  line-height: 2; display: flex; align-items: center;
}
@media (max-width: 900px) {
  .admission-grid { grid-template-columns: 1fr; }
  .admission-grid .plan-row-card { border-right: 1px solid #d8d8d8; border-bottom: none; }
  .admission-notes { border-left: 1px solid #d8d8d8; border-top: none; }
}
.btn-reserve {
  display: inline-block; padding: 16px 48px;
  font-family: var(--font-latin); font-weight: 700; font-size: 15px;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  color: var(--white); background: var(--sub-red);
  transition: all 0.3s; cursor: pointer; border: none;
}
.btn-reserve:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168,72,72,0.3);
  background: #c05555;
}

/* FIXED BOTTOM RESERVE */
.fixed-reserve {
  position: fixed; bottom: 0; left: 0; width: 100%;
  z-index: 999; padding: 12px 24px;
  background: rgba(168,72,72,0.97);
  backdrop-filter: blur(8px);
  display: flex; justify-content: center; gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.fixed-reserve-btn {
  display: inline-block; padding: 14px 40px;
  font-family: var(--font-jp); font-weight: 700; font-size: 15px;
  letter-spacing: 2px; text-decoration: none;
  color: var(--white); background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.fixed-reserve-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.fixed-line-btn {
  display: inline-block; padding: 14px 40px;
  font-family: var(--font-jp); font-weight: 700; font-size: 15px;
  letter-spacing: 2px; text-decoration: none;
  color: var(--white); background: #06C755;
  border: 2px solid #06C755;
  transition: all 0.3s;
}
.fixed-line-btn:hover {
  background: #05b34c;
  border-color: #05b34c;
}
body { padding-bottom: 72px; }

/* GALLERY */
.gallery-section { background: var(--white); overflow: hidden; }
.gallery-slider { margin-top: 48px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery-slider::-webkit-scrollbar { display: none; }
.gallery-track {
  display: flex; gap: 20px; padding-bottom: 8px;
  cursor: grab; user-select: none;
}
.gallery-track:active { cursor: grabbing; }
.gallery-slide {
  flex: 0 0 180px; cursor: pointer; transition: transform 0.3s;
}
.gallery-slide:hover { transform: translateY(-4px); }
.gallery-slide img {
  width: 100%; height: 130px; object-fit: cover; display: block;
}
.gallery-caption {
  font-size: 13px; color: var(--text-light);
  padding: 10px 0 0; line-height: 1.6; text-align: center;
}

/* LIGHTBOX */
.gallery-lightbox {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92); z-index: 9999;
  align-items: center; justify-content: center;
}
.gallery-lightbox.active { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 85vh; text-align: center; position: relative; }
.lightbox-content img { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; margin: 0 auto; }
.lightbox-caption { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 12px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff; font-size: 40px;
  cursor: pointer; z-index: 10001; line-height: 1; opacity: 0.7; transition: opacity 0.3s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  font-size: 48px; width: 56px; height: 56px;
  cursor: pointer; z-index: 10001; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; opacity: 0.6; transition: all 0.3s;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* TRAINER */
.trainer-section { background: var(--bg); }
.trainer-single {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px;
  align-items: center; margin-top: 60px; max-width: 900px; margin-left: auto; margin-right: auto;
}
.trainer-photo-single { width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; }
.trainer-photo-single img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
.trainer-photo-placeholder {
  width: 100%; height: 100%; background: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.trainer-role { font-family: var(--font-latin); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.trainer-name-single { font-family: var(--font-jp); font-weight: 700; font-size: 28px; color: var(--text); margin-bottom: 20px; }
.trainer-bio-single { font-size: 15px; color: var(--text-light); line-height: 2; text-align: justify; }

/* NEWS */
.news-section { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 60px; }
.news-card { display: block; text-decoration: none; color: inherit; transition: all 0.3s; }
.news-card:hover { transform: translateY(-4px); }
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-image { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--primary-dark); }
.news-card-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; transition: transform 0.4s; }
.news-card-noimage { display: flex; align-items: center; justify-content: center; }
.news-card-date-large { font-family: var(--font-latin); font-weight: 700; font-size: 28px; color: rgba(255,255,255,0.4); letter-spacing: 2px; }
.news-card-content { padding: 20px 4px; }
.news-date { font-family: var(--font-latin); font-size: 12px; color: var(--text-light); letter-spacing: 1px; }
.news-title { font-family: var(--font-jp); font-weight: 700; font-size: 16px; color: var(--text); margin: 8px 0; line-height: 1.5; }
.news-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.8; text-align: justify; }

/* ACCESS */
.access-section { background: var(--bg); }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; align-items: start; }
.access-map { width: 100%; aspect-ratio: 4/3; background: var(--primary-dark); overflow: hidden; }
.access-map iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }
.access-map-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: 14px; }
.access-info-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.access-info-table tr { border-bottom: 1px solid #d8d8d8; }
.access-info-table tr:last-child { border-bottom: none; }
.access-info-table th {
  padding: 14px 16px; font-size: 13px; font-weight: 700;
  color: var(--white); text-align: center;
  width: 90px; vertical-align: middle; white-space: nowrap;
  background: var(--primary); letter-spacing: 1px;
}
.access-info-table td {
  padding: 14px 20px; font-size: 14px;
  color: var(--text); line-height: 1.8;
  background: var(--white); vertical-align: middle;
}
.access-info-table a { color: var(--primary); text-decoration: none; }
.access-info-table a:hover { text-decoration: underline; }

/* FOOTER */
footer.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.4); padding: 48px 24px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-brand { font-family: var(--font-latin); font-weight: 700; font-size: 18px; letter-spacing: 3px; color: var(--white); margin-bottom: 20px; text-transform: uppercase; }
.footer-logo { margin-bottom: 24px; }
.footer-logo svg { width: 260px; height: auto; }
.footer-logo svg path, .footer-logo svg .st0 { fill: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { max-width: 1100px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; font-size: 11px; font-family: var(--font-latin); letter-spacing: 1px; }

/* FIXED BOTTOM CTA */
.fixed-cta {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999;
  background: rgba(26,45,77,0.97); backdrop-filter: blur(8px);
  padding: 12px 24px;
  display: flex; justify-content: center; gap: 16px; align-items: center;
}
.fixed-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 40px; font-family: var(--font-latin);
  font-weight: 700; font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  transition: all 0.3s; border: none; cursor: pointer;
  min-width: 200px;
}
.fixed-cta .cta-reserve {
  background: var(--white); color: var(--primary-dark);
}
.fixed-cta .cta-reserve:hover {
  transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,255,255,0.3);
}
.fixed-cta .cta-line {
  background: #06C755; color: var(--white);
}
.fixed-cta .cta-line:hover {
  transform: translateY(-2px); box-shadow: 0 4px 16px rgba(6,199,85,0.4);
}
body { padding-bottom: 70px; }

@media (max-width: 600px) {
  .fixed-cta a { min-width: 0; flex: 1; padding: 14px 16px; font-size: 12px; }
}

/* POST TEMPLATE */
.post-main { padding-top: 100px; padding-bottom: 80px; }
.post-article { max-width: 800px; margin: 0 auto; padding: 0 32px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-meta time { font-family: var(--font-latin); font-size: 13px; color: var(--text-light); letter-spacing: 1px; }
.post-cat { font-size: 11px; background: var(--primary); color: var(--white); padding: 3px 12px; letter-spacing: 1px; font-weight: 700; }
.post-title { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 32px; line-height: 1.5; }
.post-thumbnail { margin-bottom: 32px; aspect-ratio: 16/9; overflow: hidden; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-footer { margin-top: 48px; text-align: center; }

/* Post Content - WordPress Block Editor Support */
.post-content { font-size: 16px; line-height: 1.7; color: var(--text); }
.post-content p { margin-bottom: 8px; }
.post-content h2 { font-size: 24px; font-weight: 700; color: var(--primary); margin: 48px 0 16px; padding: 12px 16px; border-left: 4px solid var(--primary); background: rgba(50,80,127,0.04); line-height: 1.5; }
.post-content h3 { font-size: 20px; font-weight: 700; color: var(--text); margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #d8d8d8; line-height: 1.5; }
.post-content h4 { font-size: 17px; font-weight: 700; color: var(--text); margin: 28px 0 8px; line-height: 1.5; }
.post-content img { max-width: 100%; height: auto; display: block; margin: 24px 0; }
.post-content figure { margin: 24px 0; }
.post-content figcaption { font-size: 13px; color: var(--text-light); text-align: center; margin-top: 8px; }
.post-content ul, .post-content ol { margin: 16px 0 24px 24px; }
.post-content li { margin-bottom: 8px; line-height: 1.8; }
.post-content blockquote { margin: 24px 0; padding: 20px 24px; border-left: 4px solid var(--primary); background: rgba(50,80,127,0.03); font-style: italic; color: var(--text-light); }
.post-content blockquote p { margin-bottom: 0; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content a:hover { color: var(--primary-light); }
.post-content strong { font-weight: 700; color: var(--text); }
.post-content em { font-style: italic; }
.post-content mark, .post-content .has-inline-color { padding: 2px 4px; }
.post-content pre { background: #f5f5f5; padding: 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 24px 0; border: 1px solid #e0e0e0; }
.post-content code { background: #f5f5f5; padding: 2px 6px; font-size: 14px; border: 1px solid #e0e0e0; }
.post-content hr { border: none; border-top: 1px solid #d8d8d8; margin: 40px 0; }
.post-content .wp-block-image { margin: 24px 0; }
.post-content .wp-block-image img { margin: 0 auto; }
.post-content .wp-block-image.aligncenter { text-align: center; }
.post-content .wp-block-image.alignleft { float: left; margin: 0 24px 16px 0; }
.post-content .wp-block-image.alignright { float: right; margin: 0 0 16px 24px; }
.post-content .wp-block-gallery { margin: 24px 0; }
.post-content .wp-block-columns { margin: 24px 0; }
.post-content .wp-block-separator { border: none; border-top: 2px solid var(--primary); width: 60px; margin: 40px auto; }
.post-content .wp-block-button .wp-block-button__link { display: inline-block; padding: 14px 36px; background: var(--primary); color: var(--white); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 1px; transition: all 0.3s; }
.post-content .wp-block-button .wp-block-button__link:hover { background: var(--primary-light); transform: translateY(-2px); }
.post-content .wp-block-table { margin: 24px 0; overflow-x: auto; }
.post-content .wp-block-table table { width: 100%; border-collapse: collapse; }
.post-content .wp-block-table th,
.post-content .wp-block-table td { padding: 12px 16px; border: 1px solid #d8d8d8; font-size: 14px; line-height: 1.8; }
.post-content .wp-block-table th { background: var(--primary); color: var(--white); font-weight: 700; }
.post-content .wp-block-cover { margin: 24px 0; }
.post-content .wp-block-group { margin: 24px 0; }
.post-content .wp-block-spacer { display: block; }
.post-content .wp-block-embed { margin: 24px 0; }
.post-content .wp-block-embed iframe { max-width: 100%; }
.post-content .wp-block-video { margin: 24px 0; }
.post-content .wp-block-video video { max-width: 100%; }

@media (max-width: 600px) {
  .post-article { padding: 0 24px !important; }
  .post-title { font-size: 22px; }
  .post-content h2 { font-size: 20px; margin-top: 36px; }
  .post-content h3 { font-size: 18px; margin-top: 28px; }
  .post-content .wp-block-image.alignleft,
  .post-content .wp-block-image.alignright { float: none; margin: 16px 0; }
  .post-content .wp-block-columns { flex-direction: column !important; }
}

/* PAGE TEMPLATE */
.page-main { padding-top: 100px; }
.page-article { max-width: 800px; margin: 0 auto 60px; padding: 0 32px; }
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 32px; line-height: 1.5; color: var(--primary); }
.page-content { font-size: 15px; line-height: 1.8; color: var(--text-light); text-align: justify; }
.page-content p { margin-bottom: 8px; }
.page-content h2 { font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 48px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); line-height: 1.5; }
.page-content h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-top: 36px; margin-bottom: 12px; line-height: 1.5; }
.page-content h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-top: 28px; margin-bottom: 8px; line-height: 1.5; }
.page-content ul, .page-content ol { margin: 8px 0 16px 24px; }
.page-content li { margin-bottom: 4px; line-height: 1.8; }
.page-content .wp-block-spacer { display: block; }
.page-content table,
.page-content .wp-block-table table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.page-content table th,
.page-content table td,
.page-content .wp-block-table th,
.page-content .wp-block-table td { padding: 14px 16px; border: 1px solid #d8d8d8; font-size: 14px; line-height: 1.8; vertical-align: top; }
.page-content table th,
.page-content .wp-block-table th { background: var(--primary); color: var(--white); font-weight: 700; text-align: center; white-space: nowrap; width: 120px; }
.page-content table td,
.page-content .wp-block-table td { background: var(--white); color: var(--text); }
@media (max-width: 600px) {
  .page-article { padding: 0 24px !important; }
  .page-content { overflow-x: hidden; }
  .page-content h2 { font-size: 20px; margin-top: 40px; }
  .page-content h3 { font-size: 17px; margin-top: 32px; }
  .page-content table,
  .page-content .wp-block-table table,
  .page-content table thead,
  .page-content table tbody,
  .page-content table tr,
  .page-content table th,
  .page-content table td,
  .page-content .wp-block-table thead,
  .page-content .wp-block-table tbody,
  .page-content .wp-block-table tr,
  .page-content .wp-block-table th,
  .page-content .wp-block-table td { display: block; width: 100% !important; box-sizing: border-box; }
  .page-content table tr,
  .page-content .wp-block-table tr { margin-bottom: 12px; border: 1px solid #d8d8d8; }
  .page-content table th,
  .page-content .wp-block-table th {
    border-bottom: none; text-align: left;
    padding: 10px 16px; font-size: 13px; white-space: normal;
  }
  .page-content table td,
  .page-content .wp-block-table td {
    border-top: none; padding: 12px 16px;
  }
  .page-content .wp-block-table { overflow-x: visible; }
  .page-content .wp-block-table figure { margin: 0; }
}

/* ANIMATIONS */
img { max-width: 100%; height: auto; }
.feature-card-image img, .about-image img { max-width: none !important; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(38,61,97,0.97); padding: 24px 32px; gap: 20px; }
  .about-grid {
    display: flex; flex-direction: column; gap: 24px;
  }
  .about-grid .about-text-wrap {
    display: contents;
  }
  .about-grid .about-header { order: 1; }
  .about-grid .about-image { order: 2; }
  .about-grid .about-text-wrap > .section-text { order: 3; }
  .features-grid { grid-template-columns: 1fr; }
  .plan-row-grid { grid-template-columns: 1fr; }
  .plan-row-grid.three { grid-template-columns: 1fr; }
  .rental-grid { grid-template-columns: 1fr; }
  .trainer-single { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .gallery-slider { overflow: visible; }
  .gallery-track {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    overflow: visible; cursor: default;
  }
  .gallery-slide { flex: none; }
  .gallery-slide img { height: 120px; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 10px 16px; }
  section { padding: 64px 24px; }
  .section-text, .feature-desc, .trainer-bio-single { max-width: 100%; }
  .join .section-text { max-width: 100%; }
}

/* Dark background text override */
.dark-about .about .section-label,
.dark-about .about .section-heading,
.dark-about .about .section-text { color: var(--white); }
.dark-service #features .section-label,
.dark-service #features .section-heading,
.dark-service #features .feature-title,
.dark-service #features .feature-desc { color: var(--white); }
.dark-trainer .trainer-section .section-label,
.dark-trainer .trainer-section .section-heading { color: var(--white); }
.dark-news .news-section .section-label,
.dark-news .news-section .section-heading { color: var(--white); }
.dark-gallery .gallery-section .section-label,
.dark-gallery .gallery-section .section-heading,
.dark-gallery .gallery-section .gallery-caption { color: var(--white); }
.dark-access .access-section .section-label,
.dark-access .access-section .section-heading { color: var(--white); }
