/*
Theme Name: Nagoya Keirin BMX Standalone Copy
Version: 4.0
*/

:root {
  --red: #e60012;
  --red-dark: #c0000f;
  --black: #111111;
  --dark: #1d1d1d;
  --gray-bg: #f3f4f6;
  --border: #dcdfe4;
  --yellow: #ffdd00;
  --text: #1a1a1a;
  --font-en: 'Barlow Condensed', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ja);
  color: var(--text);
  line-height: 1.75;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 90px 24px; position: relative; z-index: 2; }

/* 共通セクション見出し */
.sec-heading { margin-bottom: 40px; }
.sec-heading.center { text-align: center; }
.sec-heading .en {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--red);
  letter-spacing: 0.1em;
}
.sec-heading h2 { font-size: 2.2rem; font-weight: 900; letter-spacing: 0.04em; line-height: 1.3; }

/* 斜めカットボタン */
.btn-skew-red, .btn-skew-outline {
  display: inline-block;
  padding: 16px 40px;
  font-weight: 900;
  text-decoration: none;
  transform: skewX(-15deg);
  transition: 0.25s;
}
.btn-skew-red span, .btn-skew-outline span { display: inline-block; transform: skewX(15deg); }
.btn-skew-red { background: var(--red); color: #fff; box-shadow: 5px 5px 0 var(--black); }
.btn-skew-red:hover { background: var(--red-dark); transform: skewX(-15deg) translateY(-2px); }
.btn-skew-outline { background: #fff; color: var(--black); border: 2px solid var(--black); }
.btn-skew-outline:hover { background: var(--black); color: #fff; }

/* 背景ウォーターマーク英字 */
.bg-watermark {
  position: absolute;
  top: 20px;
  right: -20px;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(5rem, 12vw, 10rem);
  color: rgba(0,0,0,0.04);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(17,17,17,0.95);
  color: #fff;
  z-index: 1000;
  border-bottom: 3px solid var(--red);
}
.header-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo a { text-decoration: none; color: #fff; display: flex; flex-direction: column; }
.logo-en { font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: 1.5rem; line-height: 1.05; letter-spacing: 0.04em; }
.logo-ja { font-size: 0.72rem; color: #ccc; }
.header-nav ul { display: flex; list-style: none; gap: 20px; }
.header-nav a { color: #fff; text-decoration: none; font-size: 0.88rem; font-weight: 700; }
.header-nav a:hover { color: var(--red); }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-reserve-btn {
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.88rem;
  padding: 10px 22px;
  transform: skewX(-14deg);
}
.header-reserve-btn span { display: inline-block; transform: skewX(14deg); }
.header-menu-btn {
  background: #222;
  border: 1px solid #444;
  color: #fff;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header-menu-btn .bars i { display: block; width: 20px; height: 2px; background: #fff; margin: 3px 0; }
.header-menu-btn .menu-txt { font-family: var(--font-en); font-size: 0.7rem; letter-spacing: 0.08em; }

.global-drawer { display: none; }
body.drawer-open .global-drawer {
  display: block;
  position: fixed;
  inset: 65px 0 0 0;
  background: rgba(17,17,17,0.98);
  padding: 36px 24px;
  overflow-y: auto;
}
.drawer-links { list-style: none; max-width: 500px; margin: 24px auto; }
.drawer-links li { border-bottom: 1px solid #333; }
.drawer-links a { display: block; padding: 14px 0; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.drawer-actions { text-align: center; margin-top: 24px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.drawer-sns-link { color: #fff; font-size: 0.9rem; }

/* 左サイド固定SNS */
.side-fixed-sns {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  z-index: 900;
}
.side-fixed-sns a {
  background: var(--black);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 14px 8px;
  border: 1px solid #444;
  letter-spacing: 0.08em;
}

/* 1. ヒーローエリア */
.hero-area {
  position: relative;
  height: 92vh;
  min-height: 620px;
  padding-top: 66px;
  overflow: hidden;
  background: var(--black);
}
.hero-visual, .hero-gradient { position: absolute; inset: 0; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-gradient { background: linear-gradient(100deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 65%, rgba(230,0,18,0.28) 100%); }
.hero-main-copy {
  position: relative;
  z-index: 3;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14vh 24px 0;
  color: #fff;
}
.hero-place {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
  padding: 3px 14px;
  margin-bottom: 14px;
  transform: skewX(-12deg);
}
.hero-main-copy h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 900; line-height: 1.22; margin-bottom: 30px; }
.hero-btn-group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-sns-pill {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 12px 22px;
  font-size: 0.88rem;
  font-weight: 700;
}
.hero-numbers {
  position: absolute;
  bottom: 72px;
  right: 5%;
  z-index: 4;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.num-dot {
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  cursor: pointer;
}
.num-dot.is-active { background: var(--red); border-color: var(--red); }
.hero-marquee {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  background: var(--black);
  color: #fff;
  border-top: 2px solid var(--red);
  padding: 8px 0;
  z-index: 4;
  overflow: hidden;
}
.marquee-flow {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: 1.7rem;
  text-transform: uppercase;
  animation: bmxFlow 18s linear infinite;
}
@keyframes bmxFlow { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 2. 本日の営業状況 */
.status-area { background: var(--black); padding: 10px 0 40px; }
.status-area .container { padding-top: 40px; padding-bottom: 40px; }
.status-frame { background: #fff; padding: 36px; border-top: 6px solid var(--red); }
.status-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.status-en { font-family: var(--font-en); color: var(--red); font-weight: 800; letter-spacing: 0.1em; font-size: 0.9rem; }
.status-top h2 { font-size: 1.65rem; font-weight: 900; }
.status-date-badge { color: var(--red); font-weight: 900; }
.status-date-badge .month, .status-date-badge .day { font-family: var(--font-en); font-size: 2.5rem; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 16px; }
.status-cell { background: var(--gray-bg); padding: 18px; border-left: 4px solid var(--black); }
.status-cell.is-highlight { background: #fff3f4; border-left-color: var(--red); }
.status-cell.is-none { opacity: 0.65; }
.status-cell dt { font-size: 0.82rem; font-weight: 700; color: #555; }
.status-cell dd { font-size: 1.15rem; font-weight: 900; margin-top: 4px; }
.status-bottom { margin-top: 20px; text-align: right; }
.wbgt-btn { font-size: 0.88rem; font-weight: 700; color: var(--text); }

/* 3. お知らせ */
.news-two-col { display: grid; grid-template-columns: 300px 1fr; gap: 48px; }
.gear-visual { margin-top: 20px; position: relative; }
.gear-visual img { border-radius: 4px; }
.news-list { list-style: none; border-top: 2px solid var(--black); }
.news-list li { border-bottom: 1px solid var(--border); }
.news-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 10px;
  text-decoration: none;
  color: var(--text);
  flex-wrap: wrap;
}
.news-list a:hover { background: var(--gray-bg); }
.cat-badge { background: var(--black); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 12px; }
.cat-badge.is-event { background: var(--red); }
.news-list time { font-family: var(--font-en); color: #666; }
.news-ttl { font-weight: 700; }
.news-footer-action { margin-top: 32px; }

/* 4. 施設概要 */
.facility-area { background: var(--gray-bg); position: relative; overflow: hidden; }
.facility-hero-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.facility-catch { font-size: 1.75rem; font-weight: 900; line-height: 1.4; margin-bottom: 18px; }
.facility-catch span { color: var(--red); }
.facility-text p + p { margin-top: 14px; }
.facility-photo img { box-shadow: 10px 10px 0 var(--black); }
.facility-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.fac-card { background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,0.06); }
.fac-img img { width: 100%; height: 155px; object-fit: cover; }
.fac-body { padding: 18px; }
.fac-body h3 { background: var(--red); color: #fff; display: inline-block; font-size: 0.82rem; padding: 2px 10px; margin-bottom: 8px; }
.fac-lead { font-weight: 900; font-size: 0.98rem; margin-bottom: 6px; }
.fac-body p { font-size: 0.86rem; }

.hours-box {
  background: var(--black);
  color: #fff;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  border-left: 8px solid var(--red);
}
.hours-big { font-family: var(--font-en); font-size: 2.7rem; font-weight: 800; color: var(--yellow); margin: 6px 0 18px; }
.hours-list div { display: flex; gap: 20px; padding: 10px 0; border-bottom: 1px solid #333; }
.hours-list dt { width: 130px; font-weight: 700; color: #ccc; }
.cal-card { background: #1e1e1e; padding: 28px; text-align: center; border: 1px solid #333; }
.cal-title { font-weight: 900; font-size: 1.15rem; margin-bottom: 14px; }
.mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 22px; font-size: 0.8rem; }
.mini-cal-grid span { background: #2b2b2b; padding: 6px 2px; }
.mini-cal-grid span.off { background: #442222; color: #ff8888; }
.mini-cal-grid span.sat { color: #66b3ff; }
.mini-cal-grid span.sun { color: #ff6666; }

/* 5. 初めての方へ */
.beginner-area { position: relative; color: #fff; overflow: hidden; }
.beginner-bg { position: absolute; inset: 0; }
.beginner-bg img { width: 100%; height: 100%; object-fit: cover; }
.beginner-bg::after { content: ''; position: absolute; inset: 0; background: rgba(17,17,17,0.84); }
.beginner-content { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.beginner-bike-photo img { border: 4px solid #fff; }
.beginner-icon { background: var(--yellow); color: var(--black); font-weight: 900; padding: 4px 14px; display: inline-block; margin-bottom: 14px; }
.beginner-text-box h2 { font-size: 2.2rem; font-weight: 900; }
.beginner-lead { font-size: 1.25rem; margin: 18px 0 28px; }

/* 6. スクール・コンテンツ */
.school-area { position: relative; overflow: hidden; }
.school-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.school-copy p { margin: 18px 0 28px; }
.collage-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }

/* 7. 利用料金 */
.price-area { background: var(--gray-bg); }
.price-box { background: #fff; padding: 32px; margin-bottom: 24px; }
.price-group-title { font-size: 1.35rem; font-weight: 900; border-left: 5px solid var(--red); padding-left: 12px; margin-bottom: 18px; }
.price-sub-title { margin: 18px 0 8px; font-size: 1.05rem; }
.scroll-note { font-size: 0.82rem; color: #666; margin-bottom: 6px; }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; min-width: 520px; }
.price-table.narrow { min-width: auto; max-width: 540px; }
.price-table th, .price-table td { border: 1px solid var(--border); padding: 14px; text-align: center; }
.price-table thead th { background: var(--black); color: #fff; }
.price-table tbody th { background: #f8f9fa; width: 42%; }
.price-table td { font-weight: 900; font-size: 1.1rem; }
.price-caption { font-size: 0.85rem; color: #555; }
.price-cta { text-align: center; margin-top: 32px; }

/* 8. アクセス */
.access-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.access-table div { display: grid; grid-template-columns: 130px 1fr; padding: 16px 0; border-bottom: 1px solid var(--border); }
.access-table dt { font-weight: 900; color: var(--red); }
.park-code {
  display: inline-block;
  background: var(--black);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  padding: 2px 10px;
  margin: 4px 6px 0 0;
}
.map-visual-card {
  background: var(--gray-bg);
  border: 2px solid var(--black);
  height: 100%;
  min-height: 320px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-head { font-family: var(--font-en); font-weight: 800; color: var(--red); font-size: 1.3rem; margin-bottom: 10px; }
.map-addr { font-weight: 900; font-size: 1.1rem; margin-bottom: 20px; }
.map-pins { display: flex; flex-direction: column; gap: 10px; }
.map-pins span { background: #fff; padding: 10px 14px; border-left: 4px solid var(--red); font-weight: 700; font-size: 0.9rem; }

/* 9. よくあるご質問 */
.faq-area { background: var(--gray-bg); }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { background: #fff; margin-bottom: 14px; border: 1px solid var(--border); }
.faq-item summary {
  padding: 20px 24px;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.q-badge, .a-badge {
  font-family: var(--font-en);
  font-weight: 800;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.q-badge { background: var(--red); }
.a-badge { background: var(--black); }
.faq-body { padding: 18px 24px 24px; border-top: 1px dashed var(--border); display: flex; gap: 14px; }
.a-text p + p { margin-top: 10px; }
.a-text ul { margin: 10px 0 10px 20px; }
.card-list-box { margin-top: 12px; padding: 12px; background: var(--gray-bg); font-weight: 700; font-size: 0.85rem; }
.arrow-link { color: var(--red); font-weight: 900; }
.faq-cta { text-align: center; margin-top: 32px; }

/* フッター */
.site-footer { background: var(--black); color: #fff; padding: 64px 24px 96px; text-align: center; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-cta { margin: 28px 0; }
.footer-contact a, .footer-sub-nav a { color: #fff; text-decoration: none; }
.footer-sub-nav { list-style: none; display: flex; justify-content: center; gap: 24px; margin: 20px 0; }
.footer-sns { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.sns-chip { background: #222; color: #fff; border: 1px solid #444; padding: 6px 16px; border-radius: 20px; text-decoration: none; font-size: 0.85rem; }
.copyright { font-size: 0.82rem; color: #888; margin-top: 24px; }

.bottom-fixed-bar {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  z-index: 999;
}
.bottom-fixed-bar a { text-align: center; padding: 14px 8px; color: #fff; text-decoration: none; font-weight: 900; font-size: 0.9rem; }
.bar-reserve { background: var(--red); }
.bar-access { background: #222; border-left: 1px solid #444; }
.bar-top { background: #111; border-left: 1px solid #444; }

@media (max-width: 1024px) {
  .header-nav, .side-fixed-sns { display: none; }
  .facility-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .news-two-col, .facility-hero-block, .hours-box, .beginner-content, .school-grid, .access-two-col { grid-template-columns: 1fr; }
  .facility-card-grid { grid-template-columns: 1fr; }
}