/*
Theme Name: connect GOLF Custom Theme
Theme URI: https://connect.co
Author: connect GOLF
Author URI: https://connect.co
Description: connect GOLF オフィシャルサイト専用カスタムWordPressテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ovdgolf
Tags: custom, golf, ecommerce
*/

/* ============================================================
   GLOBAL RESET & VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dk: #1a2e1a;
  --dkm: #243624;
  --green: #2e5c2e;
  --sage: #4a7060;
  --gold: #b8962e;
  --lgold: #e8d68a;
  --bg: #f7f5f0;
  --white: #ffffff;
  --gray: #e8e5e0;
  --txt: #222;
  --sub: #666;
  --border: #ddd;
}

body {
  font-family: "Hiragino Kaku Gothic Pro", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--txt);
  background: var(--white);
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  display: none !important;
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
  max-width: 1440px; margin: 0 auto;
}
.site-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: var(--white);
  font-family: "Georgia", serif; flex-shrink: 0;
}
.logo-text .brand { font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--white); }
.logo-text .tagline { font-size: 10px; color: #aaa; letter-spacing: 1px; }
.header-icons {
  display: flex; align-items: center; gap: 20px;
}
.header-icons a {
  color: #ccc; font-size: 12px;
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  transition: color .2s;
}
.header-icons a:hover { color: var(--gold); }
.header-icons .icon { font-size: 20px; }

/* ── PRIMARY NAV ── */
.site-nav {
  background: var(--dkm);
  border-top: 1px solid rgba(255,255,255,.1);
  overflow-x: auto;
}
/* WordPress-generated nav menu */
.site-nav .nav-menu {
  display: flex; list-style: none;
  padding: 0 16px; margin: 0 auto;
  white-space: nowrap;
  width: -moz-fit-content;
  width: fit-content;
}
.site-nav .nav-menu > li { position: relative; }
.site-nav .nav-menu > li > a {
  display: block; padding: 13px 20px;
  color: #ddd; font-size: 15px; font-weight: 500;
  transition: color .2s;
  border-bottom: 3px solid transparent;
}
.site-nav .nav-menu > li > a:hover,
.site-nav .nav-menu > li.current-menu-item > a,
.site-nav .nav-menu > li.current-menu-ancestor > a {
  color: var(--gold); border-bottom-color: var(--gold);
}
.site-nav .nav-menu > li:hover > .sub-menu { display: block; }
/* Dropdown */
.site-nav .nav-menu .sub-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--dk); min-width: 200px; z-index: 200;
  border-top: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  list-style: none; padding: 0; margin: 0;
}
.site-nav .nav-menu .sub-menu li a {
  display: block; padding: 10px 18px;
  color: #ccc; font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: all .15s;
}
.site-nav .nav-menu .sub-menu li a:hover {
  color: var(--gold); padding-left: 24px;
  background: rgba(255,255,255,.04);
}

/* ── TAG STRIP ── */
.tag-strip {
  background: var(--dk); padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tag-strip-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 8px; overflow-x: auto;
}
.tag {
  white-space: nowrap; padding: 4px 14px;
  border: 1px solid rgba(255,255,255,.2);
  font-size: 11px; color: #ccc; cursor: pointer;
  transition: all .2s; border-radius: 20px; flex-shrink: 0;
}
.tag:hover, .tag.hot { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  position: relative; overflow: hidden; height: 500px;
  background: var(--dk);
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 60px; opacity: 0; transition: opacity .8s;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.55);
}
.hero-content { position: relative; z-index: 2; color: var(--white); }
.hero-badge {
  display: inline-block; background: var(--gold);
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  padding: 4px 10px; margin-bottom: 12px; color: var(--white);
}
.hero-brand { font-size: 13px; letter-spacing: 3px; color: #ccc; margin-bottom: 8px; }
.hero-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.hero-desc { font-size: 14px; color: #ccc; margin-bottom: 24px; }
.hero-btn {
  display: inline-block; padding: 12px 28px;
  background: var(--gold); color: var(--white);
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  transition: background .2s;
}
.hero-btn:hover { background: #8B7020; }
.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s;
}
.dot.active { background: var(--gold); }
.hero-nav { display: none !important; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.sec-header {
  text-align: center; padding: 56px 0 32px;
}
.sec-header .en {
  font-size: 10px; letter-spacing: 4px; font-weight: 700;
  color: var(--gold); margin-bottom: 8px;
}
.sec-header h2 { font-size: 26px; font-weight: 700; color: var(--dk); }
.sec-header p { font-size: 13px; color: var(--sub); margin-top: 10px; }

/* ============================================================
   FEATURED BRANDS GRID
   ============================================================ */
.featured-brands {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
}
.brand-card {
  position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer;
  display: block;
}
.brand-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.brand-card:hover img { transform: scale(1.06); }
.brand-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 20px;
  color: var(--white);
}
.brand-card-overlay .bname { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.brand-card-overlay .bsub { font-size: 11px; color: #ccc; margin-top: 2px; }

/* ============================================================
   BRAND LOGOS GRID
   ============================================================ */
.brand-logos-section { background: var(--bg); padding: 48px 0; }
.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.logo-item {
  background: var(--white); border: 1px solid var(--border);
  height: 64px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--sub);
  letter-spacing: 1px; text-align: center; padding: 8px;
  transition: border-color .2s, color .2s, box-shadow .2s; cursor: pointer;
}
.logo-item:hover {
  border-color: var(--gold); color: var(--dk);
  box-shadow: 0 2px 12px rgba(184,150,46,.2);
}

/* ============================================================
   SERVICE / STORE BANNERS
   ============================================================ */
.service-banners {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.svc-card {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 16/9; cursor: pointer; background: var(--dk);
  display: block;
}
.svc-card .svc-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .4s; opacity: .7;
}
.svc-card:hover .svc-bg { transform: scale(1.05); }
.svc-card-body {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 20px; color: white;
}
.svc-tag {
  font-size: 9px; letter-spacing: 2px; font-weight: 700;
  background: var(--gold); padding: 3px 8px;
  display: inline-block; margin-bottom: 8px; color: white;
}
.svc-title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.svc-sub { font-size: 11px; color: #ccc; margin-top: 4px; }

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section { background: var(--white); }
.news-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 56px; }
.news-list { list-style: none; }
.news-item { border-bottom: 1px solid var(--border); padding: 0; }
.news-item summary {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
}
.news-item summary::-webkit-details-marker { display: none; }
.news-date {
  font-size: 12px; color: var(--gold); font-weight: 700;
  white-space: nowrap; min-width: 90px;
}
.news-title-txt { font-size: 14px; font-weight: 600; flex: 1; }
.news-arrow {
  font-size: 12px; color: var(--sub); transition: transform .2s; white-space: nowrap;
}
details[open] .news-arrow { transform: rotate(180deg); }
.news-body {
  padding: 0 0 20px 106px;
  font-size: 13px; color: var(--sub); line-height: 1.8;
}
.news-body a { color: var(--gold); text-decoration: underline; }

/* ============================================================
   PRODUCT GRIDS
   ============================================================ */
.products-section { background: var(--bg); }
.products-section.white-bg { background: var(--white); }
.products-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 56px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.prod-card {
  background: var(--white); border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s; cursor: pointer; display: block;
}
.prod-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12); transform: translateY(-3px);
}
.prod-img-wrap { overflow: hidden; }
.prod-img-inner {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(135deg, #e8e5e0 0%, #d8d5d0 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #999; letter-spacing: 1px;
  transition: transform .4s;
}
.prod-img-wrap img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  transition: transform .4s;
}
.prod-card:hover .prod-img-inner,
.prod-card:hover .prod-img-wrap img { transform: scale(1.04); }
.prod-info { padding: 14px 16px; }
.prod-brand {
  font-size: 10px; color: var(--gold); font-weight: 700;
  letter-spacing: 1px; margin-bottom: 4px;
}
.prod-name {
  font-size: 13px; font-weight: 600; line-height: 1.5;
  margin-bottom: 10px; color: var(--dk);
}
.prod-price { font-size: 15px; font-weight: 700; color: var(--dk); }
.prod-price .yen { font-size: 11px; margin-right: 2px; }
.prod-price .tax { font-size: 10px; color: var(--sub); margin-left: 4px; }

/* ============================================================
   BLOG / POST GRID
   ============================================================ */
.blog-section { background: var(--bg); }
.blog-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 56px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: box-shadow .2s; display: block;
}
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.blog-thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: linear-gradient(135deg, #d5d0c8 0%, #c5c0b8 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #aaa; overflow: hidden;
}
.blog-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-body { padding: 16px; }
.blog-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.blog-cat {
  font-size: 9px; font-weight: 700; padding: 2px 8px;
  background: var(--bg); color: var(--sage); border: 1px solid var(--sage);
}
.blog-title-txt { font-size: 13px; font-weight: 600; line-height: 1.6; color: var(--dk); }
.blog-date { font-size: 11px; color: var(--sub); margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dk); color: #ccc; }
.footer-top {
  max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .fb-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.fb-badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: white; font-family: Georgia, serif;
}
.fb-name { font-size: 16px; font-weight: 700; color: var(--white); }
.fb-desc { font-size: 12px; line-height: 1.8; color: #aaa; margin-bottom: 16px; }
.footer-col h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 8px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 12px; color: #aaa; transition: color .2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-col a:hover { color: var(--gold); }
.footer-col a::before { content: "›"; color: var(--gold); }
.contact-info { font-size: 12px; color: #aaa; line-height: 2; }
.contact-tel { font-size: 20px; font-weight: 700; color: var(--white); margin: 8px 0; }
.contact-email { color: var(--lgold); }
.footer-mid {
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: 1200px; margin: 0 auto; padding: 24px;
}
.trust-icons {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(184,150,46,.2); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; margin-top: 2px;
}
.trust-item h5 { font-size: 12px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.trust-item p { font-size: 11px; color: #aaa; line-height: 1.6; }
.footer-bot {
  background: rgba(0,0,0,.3); text-align: center;
  padding: 16px; font-size: 11px; color: #777;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.view-all-btn { display: flex; justify-content: center; padding: 24px 0 0; }
.view-all-btn a {
  display: inline-block; padding: 13px 48px;
  border: 2px solid var(--dk); color: var(--dk);
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  transition: all .2s;
}
.view-all-btn a:hover { background: var(--dk); color: var(--white); }

/* Chatflow floating button */
.chat-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 4px 16px rgba(184,150,46,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s;
}
.chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(184,150,46,.7);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .featured-brands { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .trust-icons { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-top { padding: 0 16px; }
  .header-icons .icon-label { display: none; }
  .hero { height: 360px; }
  .hero-slide { padding: 32px 24px; }
  .hero-title { font-size: 22px; }
  .featured-brands { grid-template-columns: 1fr 1fr; }
  .service-banners { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .service-banners { grid-template-columns: 1fr; }
  .featured-brands { grid-template-columns: 1fr; }
  .news-body { padding-left: 0; }
}
