/*
Theme Name: GymMap
Theme URI: https://www.gymmap.jp
Description: GymMap Custom Theme
Version: 1.1
Author: GymMap
Text Domain: gymmap
*/

/* ===== GymMap v2 â Modern Blue Design (inspired by pas0na.com) ===== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800&display=swap');

/* ---------- Base ---------- */
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background: #f7f8fa !important;
  color: #111 !important;
  line-height: 1.8 !important;
  -webkit-font-smoothing: antialiased !important;
}
.main {
  background: transparent !important;
}

/* ---------- Header ---------- */
#header {
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
  border-bottom: none !important;
}
#header .header-in,
.header-container-in {
  background: #fff !important;
}
#header-in,
#header .header-in {
  min-height: auto !important;
  padding: 8px 0 !important;
}
.logo-header {
  margin: 0 !important;
  padding: 0 !important;
}
.logo-header img {
  max-height: 32px !important;
}

/* Site title */
.site-name-text,
#header .site-name-text {
  color: #0F172A !important;
  font-weight: 900 !important;
  font-size: 22px !important;
  letter-spacing: 1px !important;
}

/* ---------- Navigation ---------- */
#navi {
  background: #fff !important;
  border-top: 1px solid #eee !important;
}
#navi .navi-in,
.navi-in {
  background: transparent !important;
}
#navi .navi-in > ul > li > a,
.navi-in > ul > li > a {
  color: #333 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 14px 22px !important;
  transition: all 0.25s ease !important;
  border-bottom: 2px solid transparent !important;
  letter-spacing: 0.5px !important;
}
#navi .navi-in > ul > li > a:hover,
.navi-in > ul > li > a:hover,
#navi .navi-in > ul > .current-menu-item > a {
  color: #FF6B00 !important;
  border-bottom-color: #FF6B00 !important;
  background: transparent !important;
}

/* Mobile header */
.mobile-menu-buttons .menu-button,
.mobile-menu-buttons .search-menu-button {
  color: #333 !important;
}

/* ---------- Content Area ---------- */
.article,
.entry-content {
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #222 !important;
}
.entry-content p {
  margin-bottom: 1.6em !important;
}

/* ---------- Headings (pas0na style) ---------- */
.article h2,
.entry-content h2 {
  font-size: 1.3em !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: #0F172A !important;
  border: none !important;
  padding: 12px 16px !important;
  margin: 2.5em 0 1.2em !important;
  line-height: 1.5 !important;
}
.article h3:not(.gymmap-facility-name),
.entry-content h3:not(.gymmap-facility-name) {
  font-size: 1.1em !important;
  font-weight: 700 !important;
  color: #222 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid #ddd !important;
  padding: 6px 0 8px !important;
  margin: 2em 0 1em !important;
  line-height: 1.5 !important;
}
.entry-content .gymmap-facility-name,
.entry-content .gymmap-facility-card h3,
h3.gymmap-facility-name,
.gymmap-facility-card h3.gymmap-facility-name {
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-width: 0 !important;
  border-style: none !important;
  padding: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}
.gymmap-facility-logo,
.gymmap-facility-logo img,
.gymmap-facility-identity {
  border: none !important;
  border-right: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.article h4,
.entry-content h4 {
  font-size: 1em !important;
  font-weight: 700 !important;
  color: #333 !important;
  border: none !important;
  border-bottom: 1px solid #e0e0e0 !important;
  padding: 0 0 6px !important;
  margin: 1.8em 0 0.8em !important;
}

/* ---------- Article Cards ---------- */
.entry-card-wrap {
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
.entry-card-wrap:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}
.entry-card {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
.entry-card-title {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #0F172A !important;
  line-height: 1.5 !important;
}
.entry-card-snippet {
  color: #666 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* ---------- Links ---------- */
.entry-content a {
  color: #FF6B00;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,102,204,0.2);
  transition: border-color 0.2s;
}
.entry-content a:hover {
  border-bottom-color: #FF6B00;
}

/* ---------- Buttons / CTA ---------- */
.btn,
.btn-wrap a,
.wp-block-button__link {
  background: #FF6B00 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 14px 32px !important;
  transition: background 0.25s ease, transform 0.15s ease !important;
  box-shadow: 0 2px 8px rgba(0,102,204,0.2) !important;
  letter-spacing: 0.5px !important;
}
.btn:hover,
.btn-wrap a:hover,
.wp-block-button__link:hover {
  background: #E85D00 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0,102,204,0.3) !important;
}

/* ---------- Tables ---------- */
.entry-content table {
  border-collapse: collapse !important;
  width: 100% !important;
  font-size: 14px !important;
}
.entry-content table th {
  background: #f4f5f7 !important;
  color: #0F172A !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  border: 1px solid #e0e0e0 !important;
}
.entry-content table td {
  padding: 10px 14px !important;
  border: 1px solid #e0e0e0 !important;
  background: #fff !important;
}
table tr:nth-child(even) td,
table tr:nth-child(even) th,
.entry-content table tr:nth-child(even) td,
.entry-content table tr:nth-child(even) th {
  background-color: #fff !important;
}

/* ---------- Blockquote ---------- */
.entry-content blockquote {
  background: #f7f8fa !important;
  border-left: 4px solid #FF6B00 !important;
  padding: 16px 20px !important;
  margin: 1.5em 0 !important;
  color: #444 !important;
  font-size: 15px !important;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: transparent !important;
  padding: 12px 0 !important;
  font-size: 12px !important;
  color: #888 !important;
}
.breadcrumb a {
  color: #666 !important;
}

/* ---------- Sidebar ---------- */
.sidebar h3,
.widget_block h2 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  border-left: 4px solid #FF6B00 !important;
  padding: 6px 12px !important;
  background: transparent !important;
}

/* ---------- Footer ---------- */
#footer {
  background: #0F172A !important;
  color: rgba(255,255,255,0.6) !important;
  font-size: 13px !important;
}
#footer a {
  color: rgba(255,255,255,0.7) !important;
  transition: color 0.2s !important;
}
#footer a:hover {
  color: #fff !important;
}

/* ---------- Pagination ---------- */
.pagination .current {
  background: #FF6B00 !important;
  color: #fff !important;
  border: none !important;
}
.pagination a {
  color: #333 !important;
  border: 1px solid #ddd !important;
  transition: all 0.2s !important;
}
.pagination a:hover {
  border-color: #FF6B00 !important;
  color: #FF6B00 !important;
}

/* ---------- Tag / Category Labels ---------- */
.cat-label {
  background: #FF6B00 !important;
  color: #fff !important;
  border-radius: 3px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}
.tag-link {
  background: #f4f5f7 !important;
  color: #333 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 3px !important;
  font-size: 11px !important;
}

/* ---------- TOC (Table of Contents) ---------- */
.toc {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 20px 24px !important;
}
.toc-title {
  font-weight: 700 !important;
  color: #0F172A !important;
  font-size: 15px !important;
}

/* ---------- Cocoon Box Styles ---------- */
.blank-box {
  border-color: #e0e0e0 !important;
  border-radius: 6px !important;
}
.information-box,
.question-box,
.alert-box {
  border-radius: 6px !important;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #bbb; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #888; }

/* ---------- Selection ---------- */
::selection {
  background: rgba(0,102,204,0.15) !important;
  color: inherit !important;
}

/* ---------- SNS Share Buttons ---------- */
.ss-top .sns-share-buttons a,
.ss-bottom .sns-share-buttons a {
  border-radius: 4px !important;
}

/* ---------- Author Box Hide ---------- */
.author-info {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .article h2,
  .entry-content h2 {
    font-size: 1.15em !important;
    padding: 10px 14px !important;
  }
  .article h3:not(.gymmap-facility-name),
  .entry-content h3:not(.gymmap-facility-name) {
    font-size: 1em !important;
  }
  .entry-content {
    font-size: 15px !important;
  }
}

/* ===== Facility page v4 fixes (2026-04-16) ===== */
/* Width fix: remove double 90% constraint */
.gymmap-facility-card { width: 100% !important; max-width: none !important; }
/* Remove logo border */
.gymmap-facility-identity .gymmap-facility-logo { border: none !important; }
/* Logo and name vertically centered */
.gymmap-facility-identity { display: flex !important; align-items: center !important; gap: 16px !important; }
.gymmap-facility-identity .gymmap-facility-name { margin: 0 !important; }
/* Tab: horizontal scroll only */
.gymmap-tabs { touch-action: pan-x !important; overscroll-behavior-y: contain !important; }
.gymmap-tabs-sticky-wrap { overflow: hidden; }
/* Info table: lines only, no background fill */
.entry-content .gymmap-info-table th,
.entry-content .gymmap-info-table td,
.gymmap-info-table th,
.gymmap-info-table td { background: transparent !important; background-color: transparent !important; }
/* CTA button: always white text */
.gymmap-btn-cta-v4,
.gymmap-btn-cta-v4:link,
.gymmap-btn-cta-v4:visited,
.gymmap-btn-cta-v4:hover,
.gymmap-btn-cta-v4:active { color: #fff !important; text-decoration: none !important; }
/* Access pin icon (SVG) */
.gymmap-access-icon { display: inline-flex; align-items: center; }
.gymmap-access-icon svg { flex-shrink: 0; }

