/*
Theme Name: Lightning Child - Central Golf
Template: lightning
Description: セントラルゴルフ専用子テーマ
Version: 1.0.0
*/

/* ─── CSS Variables ─── */
:root {
  --forest: #1e4d38;
  --forest-dark: #143328;
  --gold: #b8963e;
  --gold-light: #d4b262;
  --warm-bg: #f7f5f0;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-sub: #666;
  --text-muted: #999;
  --border: #e8e4dc;
  --accent: #c0392b;
  --accent-soft: #e74c3c;
  --teal: #2a7b6f;
  --teal-light: #e6f5f2;
}

/* ─── Reset for front-page ─── */
body.cgolf-front-page {
  font-family: 'Noto Sans JP', 'Hiragino Sans', -apple-system, sans-serif;
  background: var(--warm-bg);
  color: var(--text);
}
body.cgolf-front-page #content,
body.cgolf-front-page .site-body,
body.cgolf-front-page .vk_posts,
body.cgolf-front-page .main-section {
  max-width: 100%;
  padding: 0;
  margin: 0;
}
/* Hide Lightning default header/footer on front page — we use custom ones */
body.cgolf-front-page .site-header,
body.cgolf-front-page .site-footer,
body.cgolf-front-page #vk-mobile-nav-menu-btn,
body.cgolf-front-page .vk-mobile-nav,
body.cgolf-front-page .breadcrumb,
body.cgolf-front-page .home-content-top-widget-area,
body.cgolf-front-page .entry-header {
  display: none !important;
}

/* ─── Sticky Header ─── */
.cgolf-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.cgolf-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  padding: 0 16px;
}
.cgolf-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.cgolf-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
/* Lightning テーマヘッダー（個別ページ）のロゴサイズ制御 */
.siteHeader_logo img {
  max-height: 40px;
  width: auto;
}
.cgolf-header-cta-btn {
  background: var(--forest);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}
.cgolf-header-cta-btn:hover {
  background: var(--forest-dark);
  color: #fff;
}
.cgolf-nav {
  display: flex;
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 0 16px;
  list-style: none;
  background: #fafaf8;
}
.cgolf-nav a {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  border-right: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.cgolf-nav a:last-child {
  border-right: none;
}
.cgolf-nav a:hover {
  color: var(--forest-dark);
  background: rgba(30,77,56,0.06);
}


/* ─── SP Header responsive ─── */
@media (max-width: 767px) {
  .cgolf-header-inner {
    height: 44px;
    padding: 0 10px;
  }
  .cgolf-logo-img {
    height: 24px;
  }
  .cgolf-header-cta-btn {
    font-size: 10px;
    padding: 5px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .cgolf-nav {
    padding: 0 6px;
  }
  .cgolf-nav a {
    font-size: 9px;
    padding: 8px 0;
  }
}

/* ─── Hero ─── */
.cgolf-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1840 / 576;
  max-height: 576px;
}
.cgolf-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://central-golf.com/wp-content/uploads/2026/04/top-hero-banner.png');
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2d6a4f;
}
.cgolf-hero-overlay {
  display: none;
}
.cgolf-hero-content {
  display: none;
}
/* SP: バナー画像をSP用に切り替え */
@media (max-width: 767px) {
  .cgolf-hero {
    aspect-ratio: 1264 / 848;
    max-height: none;
  }
  .cgolf-hero-bg {
    background-image: url('https://central-golf.com/wp-content/uploads/2026/04/top-hero-banner-sp.png');
  }
}

/* ─── CTA Buy/Sell ─── */
.cgolf-cta-buysell {
  background: #fff;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cgolf-cta-buysell p {
  font-size: 15px;
  font-weight: 700;
  color: var(--forest-dark);
  margin: 0 0 16px;
}
.cgolf-cta-buttons {
  display: flex;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}
.cgolf-btn-buy,
.cgolf-btn-sell {
  flex: 1;
  display: block;
  padding: 16px 0;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cgolf-btn-buy {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(192,57,43,0.3);
}
.cgolf-btn-sell {
  background: #fff;
  color: var(--forest-dark);
  border: 2px solid var(--forest-dark);
}
.cgolf-btn-buy:hover,
.cgolf-btn-sell:hover {
  transform: translateY(-1px);
}
.cgolf-trust-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-sub);
}

/* ─── Section shared ─── */
.cgolf-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cgolf-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--forest-dark);
  margin: 0 0 6px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
.cgolf-section-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin: 6px 0 0;
  line-height: 1.6;
}

/* ─── Data Search (157 courses) ─── */
.cgolf-search-section {
  background: #fff;
  padding: 28px 16px;
  border-bottom: 1px solid var(--border);
}
.cgolf-big-number {
  font-size: 42px;
  font-weight: 900;
  color: var(--forest-dark);
  line-height: 1;
}
.cgolf-area-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.cgolf-area-tab {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-sub);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.cgolf-area-tab:hover {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.cgolf-area-tab.active {
  font-weight: 700;
  border: none;
  background: var(--forest);
  color: #fff;
}
.cgolf-search-bar {
  display: flex;
  background: var(--warm-bg);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.cgolf-search-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
}
.cgolf-search-input::placeholder {
  color: var(--text-muted);
}
.cgolf-search-btn {
  background: var(--forest);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
#cgolf-search-clear {
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  padding: 10px 14px;
  border: none;
  cursor: pointer;
}
/* ─── Search Results Dropdown ─── */
.cgolf-search-results {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: -10px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}
.cgolf-search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.cgolf-search-result-item:last-child {
  border-bottom: none;
}
.cgolf-search-result-item:hover {
  background: var(--teal-light);
}
.cgolf-search-result-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest-dark);
}
.cgolf-search-result-pref {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 8px;
}
.cgolf-search-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.cgolf-search-result-more {
  padding: 10px 16px;
  text-align: center;
  font-size: 11px;
  color: var(--text-sub);
  background: var(--warm-bg);
}
.cgolf-area-cards {
  display: flex;
  gap: 8px;
}
.cgolf-area-card {
  flex: 1;
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--warm-bg);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
}
.cgolf-area-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cgolf-area-card-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.cgolf-area-card-name {
  font-size: 11px;
  margin-top: 4px;
  font-weight: 600;
  color: var(--text-sub);
}
.cgolf-price-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cgolf-price-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  color: var(--teal);
  background: var(--teal-light);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cgolf-price-tag:hover {
  background: var(--teal);
  color: #fff;
}

/* ─── Featured ─── */
.cgolf-featured {
  padding: 28px 16px;
}
.cgolf-course-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cgolf-course-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s;
}
.cgolf-course-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.cgolf-course-img {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(30,77,56,0.13), rgba(42,123,111,0.13));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  object-fit: cover;
}
.cgolf-course-info {
  flex: 1;
  min-width: 0;
}
.cgolf-course-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}
.cgolf-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.cgolf-tag-popular { background: rgba(192,57,43,0.09); color: var(--accent); }
.cgolf-tag-premium { background: rgba(184,150,62,0.09); color: var(--gold); }
.cgolf-tag-value   { background: rgba(42,123,111,0.09); color: var(--teal); }
.cgolf-course-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--forest-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cgolf-course-access {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.cgolf-course-price {
  text-align: right;
  flex-shrink: 0;
}
.cgolf-course-price-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.cgolf-course-price-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}
.cgolf-link-btn {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--forest);
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cgolf-link-btn:hover {
  background: var(--forest);
  color: #fff;
}

/* ─── Why Us ─── */
.cgolf-whyus {
  background: var(--forest-dark);
  padding: 32px 16px;
  color: #fff;
}
.cgolf-whyus .cgolf-section-title {
  color: #fff;
}
.cgolf-reason-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cgolf-reason-card {
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px;
  border-left: 3px solid var(--gold-light);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cgolf-reason-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  min-width: 32px;
}
.cgolf-reason-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cgolf-reason-desc {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.7;
}

/* ─── News ─── */
.cgolf-news {
  padding: 28px 16px;
}
.cgolf-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cgolf-news-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.cgolf-news-item:hover .cgolf-news-title {
  color: var(--forest);
}
.cgolf-news-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.cgolf-news-date {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.cgolf-news-more {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}

/* ─── Flow ─── */
.cgolf-flow {
  background: #fff;
  padding: 28px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cgolf-flow-steps {
  display: flex;
  position: relative;
}
.cgolf-flow-line {
  position: absolute;
  top: 20px;
  left: calc(10% + 20px);
  right: calc(10% + 20px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.cgolf-flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cgolf-flow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-sub);
}
.cgolf-flow-step:first-child .cgolf-flow-circle {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.cgolf-flow-step:last-child .cgolf-flow-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.cgolf-flow-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}
.cgolf-flow-buttons {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}
.cgolf-flow-btn-primary {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cgolf-flow-btn-secondary {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--forest);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}
.cgolf-flow-btn-secondary:hover {
  background: var(--forest);
  color: #fff;
}

/* ─── FAQ ─── */
.cgolf-faq {
  padding: 28px 16px;
}
.cgolf-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cgolf-faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
}
.cgolf-faq-question {
  width: 100%;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-family: inherit;
}
.cgolf-faq-q-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
}
.cgolf-faq-q-mark {
  font-weight: 800;
  font-size: 14px;
  color: var(--teal);
  flex-shrink: 0;
}
.cgolf-faq-q-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.cgolf-faq-toggle {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.cgolf-faq-item.open .cgolf-faq-toggle {
  transform: rotate(45deg);
}
.cgolf-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.cgolf-faq-answer-inner {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}
.cgolf-faq-a-wrap {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  align-items: flex-start;
}
.cgolf-faq-a-mark {
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}
.cgolf-faq-a-text {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.8;
}

/* ─── Bottom CTA ─── */
.cgolf-bottom-cta {
  background: linear-gradient(135deg, var(--forest) 0%, var(--teal) 100%);
  padding: 32px 20px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cgolf-bottom-cta h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.cgolf-bottom-cta-sub {
  font-size: 12px;
  opacity: 0.8;
  margin: 0 0 20px;
  line-height: 1.6;
}
.cgolf-bottom-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}
.cgolf-cta-phone {
  display: block;
  background: #fff;
  color: var(--forest-dark);
  padding: 14px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
}
.cgolf-cta-mail {
  display: block;
  background: var(--gold);
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.cgolf-bottom-cta-hours {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 12px;
}

/* ─── Footer ─── */
.cgolf-footer {
  background: var(--forest-dark);
  padding: 24px 16px 16px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  text-align: center;
}
.cgolf-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.cgolf-footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 11px;
  padding: 4px 0;
}
.cgolf-footer-links a:hover {
  color: rgba(255,255,255,0.8);
}
.cgolf-footer-info {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  text-align: center;
}
.cgolf-footer-company {
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}
.cgolf-footer-address {
  font-size: 10px;
  line-height: 1.7;
}
.cgolf-footer-copy {
  font-size: 9px;
  margin-top: 12px;
  opacity: 0.5;
}

/* ─── Fixed Mobile Bottom Bar ─── */
.cgolf-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  padding: 8px 12px;
  gap: 8px;
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
.cgolf-mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.cgolf-mobile-bar-phone {
  background: var(--forest);
  color: #fff;
}
.cgolf-mobile-bar-contact {
  background: var(--gold);
  color: #fff;
}
.cgolf-mobile-spacer {
  height: 64px;
}

/* ─── PC responsive ─── */
@media (min-width: 768px) {
  .cgolf-mobile-bar {
    display: none;
  }
  .cgolf-mobile-spacer {
    height: 0;
  }


  .cgolf-cta-buttons {
    max-width: 400px;
  }
  .cgolf-course-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cgolf-course-card {
    flex: 1 1 calc(50% - 5px);
    min-width: 300px;
  }
  .cgolf-reason-cards {
    flex-direction: row;
  }
  .cgolf-reason-card {
    flex: 1;
  }
  .cgolf-faq-list {
    max-width: 700px;
    margin: 0 auto;
  }
  .cgolf-bottom-cta-btns {
    flex-direction: row;
    max-width: 500px;
    margin: 0 auto;
  }
  .cgolf-nav a {
    font-size: 12px;
    padding: 10px 0;
  }
  .cgolf-search-section,
  .cgolf-featured,
  .cgolf-news,
  .cgolf-faq,
  .cgolf-flow {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  .cgolf-whyus > *,
  .cgolf-bottom-cta > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .cgolf-course-card {
    flex: 1 1 calc(33.333% - 7px);
  }
}
