/*
 * event.css — イベントページ（テンプレート「イベント」）専用CSS
 * - page-template-event.php を使うページでのみ読み込まれます。
 * - すべて .ev-page 配下 / .ev- 接頭辞に限定し、既存の Tailwind（style.css）に影響しません。
 * - スマホ優先（〜767px が基本、768px 以上で上書き）。
 */
.ev-page{
  --ev-ink:#1a1a1a; --ev-ink-2:#333; --ev-cream:#f8f8f8; --ev-offwhite:#fafafa;
  --ev-olive:#37421c; --ev-olive-2:#56613a; --ev-olive-pale:#eceee4; --ev-olive-soft:#cfd5b8;
  --ev-line:#e2e4da; --ev-gold:#b8860b; --ev-muted:#666;
  --ev-display:"Figtree",system-ui,-apple-system,sans-serif;
  --ev-bar-h:64px;
  /* サイト共通ヘッダーが追従（sticky/fixed）の場合は、この値をヘッダーの高さに変更 */
  --ev-subnav-top:0px;
  display:block;background:var(--ev-offwhite);color:var(--ev-ink);
  font-size:15px;line-height:1.85;letter-spacing:.02em;overflow-x:clip;
}
.ev-page *,.ev-page *::before,.ev-page *::after{box-sizing:border-box}
.ev-page img{max-width:100%;height:auto;display:block}
.ev-page a{color:inherit}
.ev-page h1,.ev-page h2,.ev-page h3,.ev-page p,.ev-page ul,.ev-page ol,.ev-page dl,.ev-page dd{margin:0}
.ev-page ul,.ev-page ol{padding:0;list-style:none}
.ev-page [id^="ev-"]{scroll-margin-top:calc(var(--ev-subnav-top) + 56px)}
html:has(.ev-page){scroll-behavior:smooth}

/* スマホ下部の追従バー分の余白（このテンプレートの body だけ） */
body.page-template-page-template-event-php{padding-bottom:calc(var(--ev-bar-h,64px) + env(safe-area-inset-bottom))}

.ev-wrap{width:100%;max-width:1120px;margin:0 auto;padding:0 20px}
.ev-narrow{max-width:760px}
.ev-center{text-align:center}
.ev-small{font-size:13px}.ev-tiny{font-size:11px;margin-top:8px;opacity:.85}.ev-muted{color:var(--ev-muted)}.ev-mt{margin-top:16px}

/* お知らせ帯 */
.ev-notice{background:var(--ev-gold);color:#fff;font-size:12px;text-align:center;padding:6px 12px;letter-spacing:.04em;line-height:1.5}

/* ページ内ナビ（追従） */
.ev-subnav{position:sticky;top:var(--ev-subnav-top);z-index:40;background:rgba(250,250,250,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--ev-line)}
.ev-subnav-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding-right:0}
.ev-subnav-list{display:flex;gap:18px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:12px 20px 12px 0;white-space:nowrap}
.ev-subnav-list::-webkit-scrollbar{display:none}
.ev-subnav-list a{font-family:var(--ev-display);font-size:12px;font-weight:700;letter-spacing:.16em;text-decoration:none}
.ev-subnav-list a:hover{color:var(--ev-olive-2)}
.ev-subnav-cta{display:none!important}

/* ボタン */
.ev-btn-ticket{display:inline-flex;align-items:center;justify-content:center;background:var(--ev-olive);color:#fff!important;text-decoration:none;font-weight:700;font-size:13px;letter-spacing:.08em;padding:10px 16px;min-height:40px;white-space:nowrap;transition:background .3s}
.ev-btn-ticket:hover{background:var(--ev-olive-2)}
.ev-btn-ticket--light{background:#fff;color:var(--ev-olive)!important}
.ev-btn{display:inline-block;padding:15px 28px;background:var(--ev-olive);color:#fff!important;font-size:14px;font-weight:700;letter-spacing:.15em;line-height:1.5;text-decoration:none;text-align:center;border:0;transition:background-color .3s,transform .3s}
.ev-btn:hover{background:var(--ev-olive-2);transform:translateY(-2px)}
.ev-btn--dark{background:var(--ev-ink)}.ev-btn--dark:hover{background:var(--ev-ink-2)}
.ev-btn--white{background:#fff;color:var(--ev-olive)!important}.ev-btn--white:hover{background:var(--ev-olive-pale)}
.ev-btn--block{display:block;width:100%}
.ev-btn--disabled,.ev-btn--disabled:hover{background:#999;cursor:not-allowed;transform:none}
.ev-btn-outline{display:inline-block;padding:14px 22px;border:1px solid rgba(255,255,255,.7);color:#fff!important;text-decoration:none;font-size:13px;font-weight:700;letter-spacing:.12em;line-height:1.5}
.ev-text-link{display:inline-block;margin-top:14px;font-weight:700;color:var(--ev-olive)!important;text-underline-offset:4px}
.ev-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.ev-btns .ev-btn{flex:1 1 auto}

/* セクション見出し */
.ev-sec{padding:64px 0}
.ev-bg-cream{background:var(--ev-cream)}
.ev-eyebrow,.ev-kicker{font-family:var(--ev-display);font-size:11px;font-weight:700;letter-spacing:.24em;color:var(--ev-olive-2);text-transform:uppercase;line-height:1.6}
.ev-title{font-size:26px;line-height:1.4;font-weight:700;margin:8px 0 20px!important;color:var(--ev-olive);letter-spacing:.02em}
.ev-sub-en{font-family:var(--ev-display);font-weight:500;letter-spacing:.14em;color:var(--ev-olive-2);margin:-12px 0 24px!important;font-size:13px}
.ev-lead{font-size:16px;font-weight:500}
.ev-lead-sm{font-size:14px;margin:-8px 0 24px!important;opacity:.9}

/* ヒーロー */
.ev-hero{position:relative;min-height:min(calc(100svh - 160px),640px);display:flex;align-items:flex-end;color:#fff;overflow:hidden;background:var(--ev-olive)}
.ev-hero--noimg{min-height:0}
.ev-hero-bg,.ev-hero-bg img{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover}
.ev-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,20,8,.05) 25%,rgba(15,20,8,.78));pointer-events:none}
.ev-hero-inner{position:relative;z-index:1;padding-top:48px;padding-bottom:32px}
.ev-hero .ev-kicker{color:#fff;opacity:.9;font-size:10px}
.ev-hero-title{font-family:var(--ev-display);font-weight:900;font-size:44px;line-height:.98;letter-spacing:-.01em;margin:10px 0!important;color:#fff}
.ev-hero-sub{font-size:18px;font-weight:700}
.ev-hero-meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:10px!important;font-size:13px}
.ev-hero-meta b{font-family:var(--ev-display)}
.ev-pill{background:#fff;color:var(--ev-olive);font-weight:700;padding:0 10px}

/* ABOUT */
.ev-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:28px!important}
.ev-stat{background:#fff;border:1px solid var(--ev-line);padding:16px}
.ev-stat b{display:block;font-family:var(--ev-display);font-size:22px;color:var(--ev-olive);line-height:1.3}
.ev-stat span{font-family:var(--ev-display);font-size:11px;letter-spacing:.16em;color:var(--ev-muted)}

/* レイアウト */
.ev-two-col{display:grid;gap:28px}
.ev-rounded{border-radius:4px}
.ev-venue-dl{margin-top:18px!important;border-left:3px solid var(--ev-olive);padding-left:12px}
.ev-venue-dl dt{font-family:var(--ev-display);font-weight:900;letter-spacing:.06em}
.ev-venue-dl dd{font-size:14px}

/* ブース配置図 */
.ev-zoom{position:relative;display:block;width:100%;padding:12px;background:#fff;border:1px solid var(--ev-line);cursor:zoom-in;font:inherit;color:inherit}
.ev-zoom-hint{position:absolute;right:10px;bottom:10px;background:var(--ev-olive);color:#fff;font-size:12px;font-weight:700;padding:4px 10px}
.ev-lightbox{border:0;padding:0;max-width:96vw;max-height:92vh;background:#fff}
.ev-lightbox::backdrop{background:rgba(0,0,0,.75)}
.ev-lightbox img{width:min(96vw,1200px);height:auto;display:block}
.ev-lightbox-close{position:absolute;right:6px;top:6px;width:40px;height:40px;border:0;background:var(--ev-olive);color:#fff;font-size:22px;cursor:pointer}

/* タイムテーブル */
.ev-tt-days{display:grid;gap:20px}
.ev-tt-date{font-family:var(--ev-display);font-weight:900;letter-spacing:.08em;color:var(--ev-olive);font-size:18px;margin-bottom:8px!important}
.ev-tt{background:#fff;border:1px solid var(--ev-line)}
.ev-tt-row{display:grid;grid-template-columns:7.5em 1fr;gap:12px;padding:12px 16px;border-top:1px solid var(--ev-line)}
.ev-tt-row:first-child{border-top:0}
.ev-tt-time{font-family:var(--ev-display);font-weight:700;color:var(--ev-olive);font-size:14px}
.ev-tt-body b{display:block;font-size:14px}
.ev-tt-body small{display:block;font-size:12px;color:var(--ev-muted)}

/* 出演者・プログラム */
.ev-guest{display:grid;grid-template-columns:88px 1fr;gap:16px;align-items:start;background:#fff;padding:18px;border:1px solid var(--ev-line);margin-bottom:24px}
.ev-guest--nophoto{grid-template-columns:1fr}
.ev-guest-photo{width:88px!important;height:88px!important;object-fit:cover;border-radius:50%}
.ev-guest-role{font-family:var(--ev-display);font-size:12px;font-weight:700;letter-spacing:.1em;color:var(--ev-olive-2)}
.ev-guest-catch{font-size:17px;font-weight:700;line-height:1.55;margin:4px 0 8px!important}
.ev-programs{display:grid;gap:16px;margin-bottom:16px}
.ev-prog{background:#fff;border:1px solid var(--ev-line);overflow:hidden}
.ev-prog img{width:100%;aspect-ratio:16/9;object-fit:cover}
.ev-prog-body{padding:16px 18px 18px}
.ev-prog-label{font-family:var(--ev-display);font-weight:900;letter-spacing:.1em;color:var(--ev-olive);font-size:15px}
.ev-prog-label span{font-weight:500;font-size:11px;color:var(--ev-muted);margin-left:8px;letter-spacing:.04em}
.ev-prog h3{font-size:16px;margin:2px 0 6px!important}
.ev-place::before{content:"場所：";font-weight:700}

/* チケット */
.ev-sec-olive{background:var(--ev-olive);color:#fff}
.ev-sec-olive .ev-eyebrow{color:var(--ev-olive-soft)}.ev-sec-olive .ev-title{color:#fff}
.ev-tickets{display:grid;gap:16px;margin-bottom:18px}
.ev-ticket{background:#fff;color:var(--ev-ink);padding:22px 20px 18px;border-top:4px solid var(--ev-olive-soft)}
.ev-ticket-badge{display:inline-block;background:var(--ev-olive-pale);color:var(--ev-olive);font-size:12px;font-weight:700;padding:2px 10px}
.ev-ticket h3{font-size:19px;line-height:1.45;margin:10px 0!important;color:var(--ev-olive)}
.ev-ticket-meta{font-size:14px;display:grid;gap:4px}
.ev-ticket-meta li{display:flex;gap:8px;align-items:baseline}
.ev-ico{flex:0 0 auto;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ev-olive-pale);color:var(--ev-olive);font-size:10px;font-weight:700;line-height:1}
.ev-slots{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0 0!important}
.ev-slots li{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 6px;border:1px solid var(--ev-line);padding:6px 6px;font-family:var(--ev-display);font-weight:700;font-size:13px;line-height:1.4;text-align:center}
.ev-slots a{text-decoration:underline;text-underline-offset:3px}
.ev-slot-no{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--ev-olive);color:#fff;font-size:11px}
.ev-slots .is-soldout{opacity:.55}.ev-slots .is-soldout span:not(.ev-slot-no){text-decoration:line-through}
.ev-slots em{flex-basis:100%;font-style:normal;font-size:10px;color:#a33;letter-spacing:.1em}
.ev-ticket-price{margin:14px 0 12px!important;font-weight:700;font-size:15px}
.ev-status{font-size:11px;font-weight:700;color:var(--ev-gold);border:1px solid var(--ev-gold);padding:0 6px;margin-left:6px;white-space:nowrap}
.ev-ticket--on_sale .ev-status{color:var(--ev-olive);border-color:var(--ev-olive)}
.ev-ticket--sold_out .ev-status{color:#a33;border-color:#a33}

/* 出展者 */
.ev-logos{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px!important}
.ev-logo{min-height:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#fff;border:1px solid var(--ev-line);padding:10px;text-align:center}
.ev-logo a{display:block;text-decoration:none}
.ev-logo-img{max-height:64px;width:auto!important;object-fit:contain;margin:0 auto}
.ev-logo-name{font-weight:700;font-size:14px;line-height:1.4}
.ev-logo-meta{font-size:11px;color:var(--ev-muted);line-height:1.3}
.ev-logo--soon{border-style:dashed;color:#9aa085;font-family:var(--ev-display);font-weight:700;letter-spacing:.14em;font-size:12px}

/* アクセス */
.ev-parking{display:grid;gap:12px;margin:28px 0 10px!important}
.ev-card{background:#fff;border:1px solid var(--ev-line);padding:18px}
.ev-card h3{font-size:15px;color:var(--ev-olive);border-bottom:1px solid var(--ev-line);padding-bottom:8px;margin-bottom:8px!important}
.ev-card li{font-size:14px;padding-left:1em;text-indent:-1em}.ev-card li::before{content:"・"}
.ev-details{margin-top:20px;background:#fff;border:1px solid var(--ev-line)}
.ev-details summary{cursor:pointer;padding:14px 18px;font-weight:700;color:var(--ev-olive)}
.ev-details .ev-dots{padding:0 18px 16px}
.ev-dots li{position:relative;padding-left:16px;font-size:14px;margin-bottom:6px}
.ev-dots li::before{content:"";position:absolute;left:0;top:.75em;width:7px;height:7px;border-radius:50%;background:var(--ev-olive-2)}

/* FAQ */
.ev-faq .ev-details{margin-top:10px}
.ev-faq summary{display:flex;gap:10px;align-items:baseline;list-style:none}
.ev-faq summary::-webkit-details-marker{display:none}
.ev-faq summary::after{content:"＋";margin-left:auto;font-weight:700}
.ev-faq details[open] summary::after{content:"−"}
.ev-faq-q{font-family:var(--ev-display);font-weight:900;color:var(--ev-olive-2)}
.ev-faq-a{padding:0 18px 16px 38px;font-size:14px}

/* FOR DOGS */
.ev-rules{display:grid;gap:10px}
.ev-rule{background:var(--ev-olive-pale);padding:16px 18px}
.ev-rule-no{font-family:var(--ev-display);font-weight:900;color:var(--ev-olive-2);margin-right:8px}
.ev-rule p{font-size:14px;margin-top:2px!important}

/* イベント用フッター */
.ev-footer{background:var(--ev-olive);color:#fff;padding:56px 0 40px}
.ev-footer .ev-kicker{color:var(--ev-olive-soft)}
.ev-footer-title{font-family:var(--ev-display);font-weight:900;font-size:28px;line-height:1.1;margin:10px 0 14px!important}
.ev-footer-meta{font-size:14px}
.ev-footer-grid{display:grid;gap:28px}
.ev-footer-logo img{width:min(70vw,320px)}
.ev-copy{font-size:12px;opacity:.65;margin-top:28px!important}

/* パスワード保護時 */
.ev-protected form{display:grid;gap:12px}
.ev-protected input[type="password"]{border:1px solid var(--ev-line);padding:10px;width:100%;max-width:320px}
.ev-protected input[type="submit"]{background:var(--ev-olive);color:#fff;border:0;padding:10px 20px;cursor:pointer;width:fit-content}

/* 追従チケットバー（スマホ） */
.ev-ticket-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:10px;height:calc(var(--ev-bar-h) + env(safe-area-inset-bottom));padding:0 16px env(safe-area-inset-bottom);background:var(--ev-olive);color:#fff;box-shadow:0 -6px 20px rgba(0,0,0,.15);transition:transform .3s}
.ev-ticket-bar.is-hidden{transform:translateY(110%)}
.ev-ticket-bar-info{display:flex;flex-direction:column;line-height:1.3;font-size:11px}
.ev-ticket-bar-info b{font-family:var(--ev-display);font-size:15px;letter-spacing:.04em}
.ev-ticket-bar .ev-btn-ticket{flex:0 0 auto;min-height:44px;padding:10px 22px;font-size:14px}

/* ≥768px */
@media (min-width:768px){
  .ev-page{font-size:16px}
  body.page-template-page-template-event-php{padding-bottom:0}
  .ev-ticket-bar{display:none}
  .ev-wrap{padding:0 32px}
  .ev-sec{padding:96px 0}
  .ev-subnav-inner{min-height:56px;padding-right:32px}
  .ev-subnav-list{gap:22px}
  .ev-subnav-cta{display:inline-flex!important}
  .ev-title{font-size:36px}
  .ev-hero{min-height:min(78vh,720px)}
  .ev-hero--noimg{min-height:420px}
  .ev-hero-inner{padding-bottom:64px}
  .ev-hero-title{font-size:84px}
  .ev-hero .ev-kicker{font-size:12px}
  .ev-hero-sub{font-size:26px}
  .ev-hero-meta{font-size:15px}
  .ev-btns .ev-btn{flex:0 0 auto}
  .ev-stats{grid-template-columns:repeat(4,1fr)}
  .ev-two-col{grid-template-columns:1.1fr 1fr;align-items:center;gap:56px}
  .ev-two-col--rev{grid-template-columns:1fr 1.1fr}
  .ev-tt-days{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
  .ev-guest{grid-template-columns:140px 1fr;padding:28px;gap:28px}
  .ev-guest--nophoto{grid-template-columns:1fr}
  .ev-guest-photo{width:140px!important;height:140px!important}
  .ev-guest-catch{font-size:22px}
  .ev-programs{grid-template-columns:repeat(3,1fr)}
  .ev-tickets{grid-template-columns:1fr 1fr;gap:24px}
  .ev-logos{grid-template-columns:repeat(4,1fr)}
  .ev-parking{grid-template-columns:repeat(3,1fr)}
  .ev-rules{grid-template-columns:repeat(4,1fr)}
  .ev-footer-grid{grid-template-columns:1.3fr .7fr;align-items:center}
  .ev-footer-title{font-size:44px}
  .ev-footer-logo{justify-self:end}
}
@media (prefers-reduced-motion:reduce){html:has(.ev-page){scroll-behavior:auto}.ev-page *{transition:none!important}}
/* チケットカード：左右の下部位置を強制的に揃える */
@media (min-width: 768px) {

	.ev-tickets {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		align-items: stretch !important;
	}

	.ev-ticket {
		display: flex !important;
		flex-direction: column !important;
		height: 100% !important;
	}

	.ev-ticket-price {
		margin-top: auto !important;
	}
}