/*
Theme Name: 摂津峡バーベキュー川遊びと蛍の郷
Theme URI: https://example.com
Author: 摂津峡BBQ
Description: 大阪府高槻市・摂津峡のBBQ・川遊び・蛍鑑賞施設のオリジナルテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: Private
Text Domain: settsukyou-bbq
*/

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

:root {
  --forest:   #1e3d2f;
  --forest2:  #2d5a3d;
  --leaf:     #4a8c5c;
  --mint:     #7dbf8e;
  --fire:     #e8702a;
  --ember:    #f5a623;
  --cream:    #fdf6ec;
  --sand:     #e8dcc8;
  --night:    #0d1f2d;
  --firefly:  #c8f565;
  --water:    #4a9bbe;
  --text:     #2c2c2c;
  --text-light: #666;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ========== UTILITY ========== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--forest);
  text-align: center;
  margin-bottom: 0.4em;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}
.badge {
  display: inline-block;
  background: var(--fire);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border-radius: 2px;
  margin-bottom: 0.8em;
}

/* ========== HEADER / NAV ========== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
header.scrolled {
  background: rgba(30,61,47,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.nav-logo span { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.85; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ember); }
.nav-reserve {
  background: var(--fire);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-reserve:hover { background: var(--ember) !important; color: var(--forest) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========== HERO ========== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(74,140,92,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 40%, rgba(232,112,42,0.25) 0%, transparent 55%),
    linear-gradient(160deg, #0d2b1a 0%, #1e4d30 35%, #2d6b40 60%, #1a3a50 100%);
}
.fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--firefly);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(200,245,101,0.8);
  animation: fly linear infinite;
  opacity: 0;
}
@keyframes fly {
  0%   { transform: translate(0,0) scale(0.5); opacity: 0; }
  20%  { opacity: 1; }
  50%  { transform: translate(var(--dx), var(--dy)) scale(1.2); opacity: 0.9; }
  80%  { opacity: 0.6; }
  100% { transform: translate(var(--dx2), var(--dy2)) scale(0.3); opacity: 0; }
}
.hero-water {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  overflow: hidden;
}
.wave {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 80px;
  background: rgba(74,155,190,0.18);
  border-radius: 50% 50% 0 0 / 80px 80px 0 0;
  animation: wave 6s ease-in-out infinite;
}
.wave:nth-child(2) {
  height: 60px;
  background: rgba(74,155,190,0.12);
  animation-delay: -2s;
  animation-duration: 8s;
}
.wave:nth-child(3) {
  height: 50px;
  background: rgba(255,255,255,0.06);
  animation-delay: -4s;
  animation-duration: 10s;
}
@keyframes wave {
  0%, 100% { transform: translateX(-25%) scaleY(1); }
  50%       { transform: translateX(0%) scaleY(1.15); }
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 100px 24px 80px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,245,101,0.15);
  border: 1px solid rgba(200,245,101,0.4);
  color: var(--firefly);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero-label::before { content: '✦'; }
.hero-title {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 1.2rem;
}
.hero-title em {
  font-style: normal;
  color: var(--ember);
}
.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--fire);
  color: #fff;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(232,112,42,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,112,42,0.6); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ========== FEATURES ========== */
#features {
  padding: 100px 0;
  background: var(--cream);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid transparent;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.feature-card.bbq { border-top-color: var(--fire); }
.feature-card.river { border-top-color: var(--water); }
.feature-card.firefly-card { border-top-color: var(--firefly); }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--forest); margin-bottom: 0.8rem; }
.feature-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.8; }

/* ========== ABOUT / SEASONAL ========== */
#about {
  padding: 100px 0;
  background: var(--forest);
  color: #fff;
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 80%, rgba(74,140,92,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(200,245,101,0.1) 0%, transparent 40%);
  pointer-events: none;
}
#about .section-title { color: #fff; }
#about .section-sub { color: rgba(255,255,255,0.65); }
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.season-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: background 0.2s;
}
.season-card:hover { background: rgba(255,255,255,0.12); }
.season-card .icon { font-size: 2.4rem; margin-bottom: 0.8rem; }
.season-card h3 { font-size: 1rem; font-weight: 700; color: var(--ember); margin-bottom: 0.5rem; }
.season-card p { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.8; }

/* ========== PLAN / PRICING ========== */
#pricing {
  padding: 100px 0;
  background: #f7f2ea;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}
.plan-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.13); }
.plan-card.featured { border: 2px solid var(--fire); transform: scale(1.02); }
.plan-card.featured:hover { transform: scale(1.02) translateY(-4px); }
.plan-header { padding: 24px; background: var(--forest); color: #fff; text-align: center; }
.plan-card.featured .plan-header { background: var(--fire); }
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.plan-tag { font-size: 0.75rem; opacity: 0.8; }
.plan-body { padding: 28px 24px; }
.plan-price { text-align: center; margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--sand); }
.plan-price .yen { font-size: 0.9rem; color: var(--forest); vertical-align: top; padding-top: 6px; }
.plan-price .amount { font-size: 2.6rem; font-weight: 900; color: var(--forest); line-height: 1; }
.plan-price .unit { font-size: 0.8rem; color: var(--text-light); }
.plan-features { list-style: none; margin-bottom: 1.5rem; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  padding: 6px 0;
  color: var(--text);
  border-bottom: 1px solid #f3f0ea;
}
.plan-features li::before { content: '✓'; color: var(--leaf); font-weight: 700; flex-shrink: 0; }
.plan-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--forest);
  color: #fff;
  transition: background 0.2s;
}
.plan-card.featured .plan-btn { background: var(--fire); }
.plan-btn:hover { background: var(--fire); }
.plan-card.featured .plan-btn:hover { background: var(--ember); }
.plan-note { text-align: center; font-size: 0.82rem; color: var(--text-light); margin-top: 2rem; line-height: 1.9; }

/* ========== FACILITIES ========== */
#facilities {
  padding: 100px 0;
  background: var(--cream);
}
.facility-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.facility-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  color: var(--forest);
}
.facility-item .fi { font-size: 1.4rem; }

/* ========== RULES ========== */
#rules {
  padding: 80px 0;
  background: #fff7ee;
  border-top: 1px solid var(--sand);
}
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rule-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sand);
}
.rule-group ul { list-style: none; }
.rule-group li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 6px 0;
  padding-left: 1.2em;
  position: relative;
  line-height: 1.6;
}
.rule-group li::before { content: '・'; position: absolute; left: 0; }

/* ========== ACCESS ========== */
#access {
  padding: 100px 0;
  background: var(--night);
  color: #fff;
}
#access .section-title { color: #fff; }
#access .section-sub { color: rgba(255,255,255,0.6); }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.access-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ember);
  margin: 1.4rem 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.access-info p, .access-info address { font-size: 0.92rem; color: rgba(255,255,255,0.8); font-style: normal; line-height: 1.8; }
.access-info .tel { font-size: 1.5rem; font-weight: 700; color: var(--ember); letter-spacing: 0.05em; }
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.map-wrap .map-icon { font-size: 3rem; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.route-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.route-icon { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 8px; font-size: 1.2rem; flex-shrink: 0; }
.route-text { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.7; }
.route-text strong { color: #fff; display: block; }

/* ========== CONTACT ========== */
#contact { padding: 100px 0; background: var(--cream); }
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.08);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--forest); margin-bottom: 6px; }
.form-group label .req { color: var(--fire); margin-left: 4px; font-size: 0.75rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--sand);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fdfaf6;
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(74,140,92,0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--fire);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: inherit;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--ember); transform: translateY(-1px); }

/* ========== FOOTER ========== */
footer { background: #0a1a10; color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .name { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.5; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.9; }
footer h4 { font-size: 0.85rem; font-weight: 700; color: var(--ember); margin-bottom: 1rem; letter-spacing: 0.1em; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.5rem; }
footer ul li a { font-size: 0.85rem; transition: color 0.2s; }
footer ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14,35,22,0.97);
    justify-content: center;
    align-items: center;
    gap: 32px;
    font-size: 1.2rem;
    z-index: 99;
  }
  .nav-links.open .nav-reserve { font-size: 1.1rem; padding: 12px 32px; }
  .access-grid { grid-template-columns: 1fr; gap: 40px; }
  .rules-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-wrap { padding: 32px 24px; }
}

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HERO WITH PHOTO ========== */
.hero-bg {
  background-size: cover !important;
  background-position: center !important;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(74,140,92,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 40%, rgba(232,112,42,0.2) 0%, transparent 55%),
    linear-gradient(160deg, rgba(13,43,26,0.82) 0%, rgba(30,77,48,0.72) 35%, rgba(45,107,64,0.6) 60%, rgba(26,58,80,0.78) 100%);
}

/* ========== FEATURE CARD WITH PHOTO ========== */
.feature-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  display: block;
}

/* ========== GALLERY SECTION ========== */
#gallery {
  padding: 100px 0;
  background: #1a2e1f;
}
#gallery .section-title { color: #fff; }
#gallery .section-sub { color: rgba(255,255,255,0.6); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: unset;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

/* ========== ACCESS PHOTOS ========== */
.route-photo {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ========== FACILITY PHOTOS ========== */
.facility-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1.5rem;
}
.facility-photo-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.facility-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.facility-photo-item:hover img { transform: scale(1.04); }
.facility-photo-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 6px;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
  .facility-photos-grid { grid-template-columns: 1fr 1fr; }
}
