/*
Theme Name: ウッディパル余呉（新デザイン）
Theme URI: https://woodypal-yogo.jp
Description: ウッディパル余呉 公式サイト — 森のアウトドアパーク（新デザイン）
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: wpweb
*/

/* ── Emergency Ticker ── */
.emergency-ticker {
  display: flex;
  align-items: center;
  height: 40px;
  background: #c0392b;
  overflow: hidden;
  position: relative;
  z-index: 150;
}
.emergency-ticker__label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: #a93226;
  height: 100%;
  padding: 0 18px;
  color: #fff;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 2px;
  white-space: nowrap;
}
.emergency-ticker__wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
.emergency-ticker__track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: ticker-scroll 24s linear infinite;
  will-change: transform;
}
.emergency-ticker__track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.emergency-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  transition: opacity .15s;
}
.emergency-ticker__item:hover { opacity: .82; }
.emergency-ticker__date {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: .75;
  font-weight: 600;
}
.emergency-ticker__title {
  font-size: 13px;
  font-weight: 600;
}
.emergency-ticker__sep {
  color: rgba(255,255,255,.35);
  font-size: 13px;
}
@media (max-width: 480px) {
  .emergency-ticker__label { padding: 0 12px; font-size: 11px; }
  .emergency-ticker__title { font-size: 12px; }
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  position: relative;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid #e8e4d8;
}
.breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 12px 40px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.breadcrumbs__item { display: flex; align-items: center; }
.breadcrumbs__link {
  font-size: 12.5px;
  color: #6b7a63;
  text-decoration: none;
  transition: color .15s;
}
.breadcrumbs__link:hover { color: #2f5d34; text-decoration: underline; }
.breadcrumbs__current {
  font-size: 12.5px;
  color: #33332c;
  font-weight: 600;
}
.breadcrumbs__sep {
  margin: 0 8px;
  color: #c8ccc2;
  font-size: 12px;
}
@media (max-width: 640px) {
  .breadcrumbs__list { padding: 10px 20px; }
  .breadcrumbs__link, .breadcrumbs__current { font-size: 11.5px; }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #33332c;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ── Image slots ── */
.img-slot {
  display: block;
  background-color: #c8d8c0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Site header (shared across all non-villa pages) ── */
.site-header { display:flex; align-items:center; justify-content:space-between; padding:22px 40px; }
.site-logo { display:flex; align-items:center; gap:13px; text-decoration:none; color:#fff; }
.site-logo__text { line-height:1.1; }
.site-logo__sub { font-size:10px; letter-spacing:1px; opacity:.85; font-weight:500; }
.site-logo__name { font-family:'Zen Kaku Gothic New',sans-serif; font-weight:900; font-size:23px; letter-spacing:1px; }
.site-logo__en { font-size:9px; letter-spacing:3px; opacity:.8; font-weight:500; }
.site-nav { display:flex; gap:24px; color:#fff; white-space:nowrap; }
.site-nav__link { text-align:center; text-decoration:none; color:#fff; line-height:1.3; }
.site-nav__label { font-family:'Zen Kaku Gothic New',sans-serif; font-weight:700; font-size:15px; }
.site-nav__en { font-size:9px; letter-spacing:1.5px; opacity:.8; }
.header-actions { display:flex; align-items:center; gap:12px; }
.btn-villa-nav { display:flex; align-items:center; gap:5px; background:#c9943a; border:1.5px solid #c9943a; color:#fff; text-decoration:none; padding:9px 14px; border-radius:7px; font-family:'Zen Kaku Gothic New',sans-serif; font-weight:700; font-size:13px; transition:background .15s; white-space:nowrap; }
.btn-villa-nav:hover { background:#b07e2e; border-color:#b07e2e; }
.btn-booking { display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.18); color:#fff; text-decoration:none; padding:11px 18px; border-radius:7px; font-family:'Zen Kaku Gothic New',sans-serif; font-weight:700; font-size:14px; border:1px solid rgba(255,255,255,.4); }
.btn-hamburger { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; width:52px; height:52px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.35); border-radius:8px; cursor:pointer; }
.btn-hamburger__bar { display:block; width:22px; height:2px; background:#fff; }
.btn-hamburger__label { font-size:8px; letter-spacing:1px; color:#fff; font-weight:700; margin-top:1px; opacity:.85; }

/* Page header: solid green bar (non-hero context) */
.site-header--page {
  position: relative;
  background: #2f5d34;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.site-header--page .btn-booking {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
}
.site-header--page .btn-hamburger {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
}

/* ── Event tabs ── */
.event-tab-btn {
  flex: 1;
  border: none;
  cursor: pointer;
  padding: 9px 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 12px;
  transition: background 0.18s, color 0.18s;
}
.event-tab-btn.is-active  { background: #2f5d34; color: #fff; }
.event-tab-btn:not(.is-active) { background: #fff; color: #7a8a6f; }

/* ── Season slider ── */
.season-slider { scrollbar-width: none; }
.season-slider::-webkit-scrollbar { display: none; }

/* ── Promo Banner (cross-page) ── */
.promo-banner {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 200px;
  text-decoration: none;
  background: #fff;
  border-top: 1px solid #e8e8de;
  border-bottom: 1px solid #e8e8de;
  overflow: hidden;
  transition: opacity .2s;
}
.promo-banner:hover { opacity: .88; }
.promo-banner__photo { overflow: hidden; }
.promo-banner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.promo-banner:hover .promo-banner__photo img { transform: scale(1.04); }
.promo-banner__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 48px;
  background: #faf7f0;
}
.promo-banner__eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  font-weight: 700;
  color: #8aaf84;
  margin: 0 0 8px;
}
.promo-banner__h2 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 2.5vw, 26px);
  color: #2a2a24;
  margin: 0 0 10px;
  line-height: 1.35;
}
.promo-banner__desc {
  font-size: 14px;
  color: #5a5a52;
  margin: 0 0 20px;
  line-height: 1.75;
}
.promo-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3a6b35;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.promo-banner__cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #3a6b35;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .promo-banner { grid-template-columns: 1fr; }
  .promo-banner__photo { height: 180px; }
  .promo-banner__body { padding: 24px 20px; }
}

/* ── Promo Banner wrapper (content width) ── */
.promo-banner-wrap {
  padding: 32px 40px;
  background: #fff;
  border-top: 1px solid #e8e8de;
  border-bottom: 1px solid #e8e8de;
}
.promo-banner-wrap .promo-banner {
  max-width: 1100px;
  margin: 0 auto;
  border-top: none;
  border-bottom: none;
  border-radius: 15px;
}

/* 2バナー横並び */
.promo-banner-wrap--double {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.promo-banner-wrap--double .promo-banner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  border-top: none;
  border-bottom: none;
}

@media (max-width: 700px) {
  .promo-banner-wrap { padding: 20px; }
  .promo-banner-wrap--double { gap: 16px; }
}

/* ── Promo Banner Slider ── */
.promo-banner-slider {
  display: grid;
  width: 100%;
}
.promo-banner-slider__slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  z-index: 0;
  transition: opacity .6s ease;
  pointer-events: none;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  border-radius: 15px;
}
.promo-banner-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.promo-banner-slider__dots {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.promo-banner-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #c8d8c0;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.promo-banner-slider__dot.is-active {
  background: #2f5d34;
  transform: scale(1.25);
}

/* ── Archive Ad Slot (イベント/体験/施設一覧のページネーション下) ── */
.archive-ad-slot { margin-top: 40px; }
.archive-ad-slot .wpweb-widget + .wpweb-widget { margin-top: 20px; }

/* ── Sidebar Widgets (共通) ── */
.wpweb-widget {
  background: #f8f7f2;
  border: 1px solid #e8e4da;
  border-radius: 12px;
  padding: 22px;
  font-size: 13px;
  line-height: 1.85;
  color: #55554c;
}
.wpweb-widget__title {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2f5d34;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: #2f5d34;
}
.wpweb-widget ul { margin: 0; padding-left: 1.2em; }
.wpweb-widget img { max-width: 100%; height: auto; }

/* ── Drawer Menu (full-screen) ── */
.drawer-overlay { display: none; } /* not needed for full-screen */

.drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, #1a3520 0%, #2a5230 55%, #1e3d24 100%);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  flex-shrink: 0;
}
.drawer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.drawer__logo-name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  opacity: .9;
}
.drawer__close {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255,255,255,.35);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.drawer__close:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.drawer__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 20px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
}
.drawer__close span:first-child  { transform: translate(-50%,-50%) rotate(45deg); }
.drawer__close span:last-child   { transform: translate(-50%,-50%) rotate(-45deg); }

.drawer__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 48px 32px;
}

.drawer-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 60px;
  width: 100%;
  max-width: 900px;
}

.drawer-group {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.drawer-group__label {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.drawer-link {
  display: block;
  padding: 8px 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  transition: color .15s, transform .15s;
  line-height: 1.4;
}
.drawer-link--top { color: rgba(255,255,255,1) !important; opacity: 1 !important; margin-bottom: 4px; }
.drawer-link:hover {
  color: #a8d4a0;
  transform: translateX(4px);
}

.drawer-villa-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 500px;
  margin: 20px 0 0;
  background: linear-gradient(135deg, #2d1f08 0%, #5a3a12 100%);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: opacity .18s;
  border: 1px solid rgba(201,148,58,.5);
}
.drawer-villa-banner:hover { opacity: .88; }
.drawer-villa-banner__img {
  width: 130px;
  height: 96px;
  background-image: url('img/villa/bath-outdoor.jpg');
  background-size: cover;
  background-position: center;
  flex: none;
}
.drawer-villa-banner__body {
  padding: 10px 16px 10px 0;
  flex: 1;
}
.drawer-villa-banner__label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #c9943a;
  font-weight: 700;
  margin: 0 0 3px;
}
.drawer-villa-banner__title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  margin: 0 0 5px;
}
.drawer-villa-banner__cta {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  font-weight: 700;
}

.drawer__foot {
  flex-shrink: 0;
  padding: 24px 48px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.drawer__booking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  text-decoration: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 30px;
  transition: background .2s, border-color .2s;
}
.drawer__booking:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.6); }
.drawer__tel {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin: 0;
}
.drawer__tel a { color: rgba(255,255,255,.8); font-weight: 700; text-decoration: none; }
.drawer__tel a:hover { color: #fff; }

/* Hamburger open state */
.btn-hamburger.is-open .btn-hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.is-open .btn-hamburger__bar:nth-child(2) { opacity: 0; }
.btn-hamburger.is-open .btn-hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-hamburger__bar { transition: transform .25s, opacity .2s; }

/* ── Site Nav Dropdown ── */
.site-nav__item { position: relative; }
.site-nav__label { display: flex; align-items: center; gap: 4px; }
.site-nav__chevron { opacity: .7; transition: transform .25s ease; flex-shrink: 0; }
.site-nav__item:hover .site-nav__chevron,
.site-nav__item:focus-within .site-nav__chevron { transform: rotate(180deg); }

.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 34, 15, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 196px;
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 300;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.site-nav__dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown {
  opacity: 1;
  pointer-events: auto;
}
.site-nav__drop-link {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: background .15s, color .15s;
}
.site-nav__drop-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav__dropdown li + li { border-top: 1px solid rgba(255,255,255,.07); }

/* ── Header language link ── */
.header-lang-link {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  background: #c9943a;
  border: 1px solid #c9943a;
  border-radius: 999px;
  opacity: 1;
  transition: background .15s, border-color .15s;
}
.header-lang-link:hover { background: #b07e2e; border-color: #b07e2e; }

/* ── Header SNS ── */
.header-sns { display:flex; align-items:center; gap:8px; }
.header-sns__link { display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; color:#fff; text-decoration:none; transition:opacity .2s, transform .18s; }
.header-sns__link:hover { opacity:.82; transform:scale(1.1); }
.header-sns__link--instagram { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.header-sns__link--facebook  { background:#1877F2; }
.header-sns__link--twitter   { background:#000; }

/* ── Drawer SNS ── */
.drawer__sns { display:flex; gap:12px; }
.drawer-sns__link { display:flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; color:#fff; text-decoration:none; transition:opacity .2s, transform .18s; }
.drawer-sns__link:hover { opacity:.82; transform:scale(1.1); }
.drawer-sns__link--instagram { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.drawer-sns__link--facebook  { background:#1877F2; }
.drawer-sns__link--twitter   { background:#000; }

/* ── Footer SNS brand colors ── */
.footer-sns__icon--instagram { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color:transparent; }
.footer-sns__icon--facebook  { background:#1877F2; border-color:transparent; }
.footer-sns__icon--twitter   { background:#000; border-color:transparent; }

/* ── Site Header Responsive ── */
@media (max-width: 900px) {
  .site-header { padding: 16px 24px; }
  .site-nav { display: none; }
  .header-sns { display: none; }
  .btn-booking { font-size: 13px; padding: 9px 14px; }
}
@media (max-width: 480px) {
  .site-header { padding: 12px 16px; }
  .btn-booking { display: none; }
  .btn-villa-nav { display: none; }
}

@media (max-width: 768px) {
  .drawer__head { padding: 20px 24px; }
  .drawer__body { padding: 16px 24px 24px; align-items: flex-start; }
  .drawer-groups { grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .drawer-villa-banner { margin: 16px 0 0; }
  .drawer__foot { padding: 20px 24px calc(28px + 70px); flex-direction: column; align-items: flex-start; gap: 12px; }
  .drawer-link { font-size: 16px; }
  .header-sns { display: none; }
}
@media (max-width: 480px) {
  .drawer-groups { grid-template-columns: 1fr; }
}

/* =============================================
   SITE-WIDE ANIMATIONS
   ① Scroll Fade-up  ② Hero Entrance  ③ Header Scroll
   ============================================= */

/* prefers-reduced-motion: すべて即時表示 */
@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-up.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
  [class*="hero__body"] > *,
  .hero__copy > * { opacity: 1 !important; animation: none !important; }
}

/* ------------------------------------------
   ① Scroll Fade-up
   ------------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}
.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------
   ② Hero Entrance（CSS only・JSゼロ）
   ------------------------------------------ */
@keyframes heroEnterKf {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

[class*="hero__body"] > *,
.hero__copy > * {
  opacity: 0;
  animation: heroEnterKf 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
[class*="hero__body"] > *:nth-child(1),
.hero__copy > *:nth-child(1) { animation-delay: 0s; }
[class*="hero__body"] > *:nth-child(2),
.hero__copy > *:nth-child(2) { animation-delay: 0.15s; }
[class*="hero__body"] > *:nth-child(3),
.hero__copy > *:nth-child(3) { animation-delay: 0.30s; }
[class*="hero__body"] > *:nth-child(4),
.hero__copy > *:nth-child(4) { animation-delay: 0.45s; }

/* ------------------------------------------
   ③ Header Scroll（フロントページ透明ヘッダー専用）
   ------------------------------------------ */
.site-header {
  transition: background 0.35s ease, box-shadow 0.3s ease;
}
.site-header--scrolled {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  background: rgba(10, 36, 12, 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
}
