:root{
  --bg:#FFFCF6;
  --bg-alt:#F1F6F4;
  --bg-alt2:#FFF6EC;
  --ink:#2B2620;
  --ink-soft:#6B6357;
  --orange:#F2792D;
  --orange-deep:#D9601A;
  --orange-soft:#FDE9D8;
  --teal:#005A4E;
  --teal-deep:#00332B;
  --teal-soft:#E1EEEB;
  --gold:#E8B33D;
  --line:#E7E0D2;
  --white:#FFFFFF;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Zen Maru Gothic','Noto Sans JP',sans-serif;
  line-height:1.7;
  overflow-x:hidden;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.display{font-family:'Kaisei Decol', serif;}
.wrap{max-width:1080px; margin:0 auto; padding:0 24px;}

/* ===== Bunting garland (万国旗) ===== */
.bunting{
  width:100%;
  height:40px;
  overflow:hidden;
  position:relative;
  background:var(--white);
}
.bunting svg{display:block; width:100%; height:100%;}

/* ===== Header ===== */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,252,246,0.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:1080px; margin:0 auto; padding:12px 24px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; font-size:15px; color:var(--teal);}
/* 画面幅が足りず1行に収まらないときだけ、指定位置(<wbr>)で改行させるためのヘルパー。
   flexコンテナの直下に文字列を置くと各テキストが個別のflexアイテムになってしまい
   <wbr>が効かなくなるため、.brk-groupで1つのアイテムにまとめてから
   内部の.brk-segをwhite-space:nowrapにして改行位置を制御する。 */
.brk-group{display:inline-block;}
.brk-group .brk-seg{white-space:nowrap;}
.brand .crest{
  width:30px; height:30px; border-radius:50%;
  background:var(--teal); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:900; font-family:'Kaisei Decol',serif;
  flex-shrink:0;
}
.header-date{font-size:12px; color:var(--ink-soft); letter-spacing:.04em;}

/* ===== Global menu grid (site navigation) ===== */
.menu-section{
  background:var(--white);
  border-bottom:1px solid var(--line);
}
.menu-grid{
  display:grid;
  grid-template-columns:repeat(9,1fr);
  max-width:1080px;
  margin:0 auto;
}
.menu-item{
  position:relative;
  padding:18px 8px 16px;
  text-align:center;
  border-right:1px solid var(--line);
  cursor:pointer;
  transition:background .25s ease, transform .2s ease;
}
.menu-grid .menu-item:last-child{border-right:none;}
.menu-item:hover{background:var(--orange-soft);}
.menu-item.active{background:var(--teal-soft);}
.menu-item .icon-badge{
  width:34px; height:34px;
  margin:0 auto 8px;
  display:flex; align-items:center; justify-content:center;
  color:var(--orange);
  transition:transform .3s ease;
}
.menu-item:hover .icon-badge{transform:scale(1.12) rotate(-4deg);}
.menu-item.active .icon-badge{color:var(--teal);}
.menu-item .icon-badge svg{width:22px; height:22px;}
.menu-item .label{
  font-weight:700; font-size:12px; color:var(--teal);
}
.menu-item .grade{
  margin-top:2px; font-size:9px; color:var(--ink-soft); letter-spacing:.03em;
}
.menu-item.mystery .label{color:var(--orange-deep);}
.menu-item.mystery .icon-badge{color:var(--gold);}
.menu-item.mystery .grade{
  color:var(--orange-deep); font-weight:700;
  animation:flicker 2.4s ease-in-out infinite;
}
@keyframes flicker{ 0%,100%{opacity:1;} 50%{opacity:.45;} }

@media (max-width:900px){
  .menu-grid{grid-template-columns:repeat(4,1fr);}
  .menu-item:nth-child(4n){border-right:none;}
  .menu-item{border-bottom:1px solid var(--line);}
}
@media (max-width:480px){
  .menu-grid{grid-template-columns:repeat(2,1fr);}
  .menu-item:nth-child(4n){border-right:1px solid var(--line);}
  .menu-item:nth-child(2n){border-right:none;}
}

/* ===== Hamburger menu (smartphone only) ===== */
.hamburger-btn{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:36px; height:36px;
  padding:0;
  border:none;
  background:none;
  cursor:pointer;
  flex-shrink:0;
}
.hamburger-btn span{
  display:block;
  width:22px; height:2px;
  background:var(--teal);
  border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}
.hamburger-btn.is-active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger-btn.is-active span:nth-child(2){opacity:0;}
.hamburger-btn.is-active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

@media (max-width:640px){
  .hamburger-btn{display:flex;}
  .menu-section{
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease;
  }
  .menu-section.is-open{max-height:1200px;}
  .menu-grid{grid-template-columns:1fr;}
  .menu-item{
    border-right:none !important;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    gap:14px;
    text-align:left;
    padding:14px 20px;
  }
  .menu-item:last-child{border-bottom:none;}
  .menu-item .icon-badge{margin:0;}
  .menu-item .grade{margin-top:0;}
}

/* ===== Hero (home page only) ===== */
.hero{
  position:relative;
  padding:64px 24px 56px;
  text-align:center;
  background:
    radial-gradient(ellipse at 15% 0%, var(--orange-soft) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 10%, var(--teal-soft) 0%, transparent 50%),
    var(--bg);
  overflow:hidden;
}
.hero .eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; letter-spacing:.18em; color:var(--orange-deep);
  font-weight:700; margin-bottom:18px;
}
.hero .eyebrow::before, .hero .eyebrow::after{
  content:''; width:22px; height:1px; background:var(--orange-deep); opacity:.5;
}
.hero h1{
  font-size:clamp(34px, 6vw, 64px);
  line-height:1.35;
  color:var(--teal);
  font-weight:700;
}
.hero h1 .accent{ color:var(--orange); }
.hero .sub{
  margin-top:20px;
  font-size:clamp(14px,2.2vw,18px);
  color:var(--ink-soft);
  max-width:520px;
  margin-left:auto; margin-right:auto;
}
.hero .datepill{
  display:inline-flex; gap:10px; align-items:center;
  margin-top:30px;
  background:var(--white);
  border:1px solid var(--line);
  padding:10px 22px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  color:var(--teal);
  box-shadow:0 6px 18px rgba(43,38,32,0.05);
}
.hero .datepill .dot{width:6px;height:6px;border-radius:50%;background:var(--orange);}

/* ===== Page header (sub pages) ===== */
.page-hero{
  padding:56px 24px 40px;
  text-align:center;
  background:
    radial-gradient(ellipse at 20% 0%, var(--teal-soft) 0%, transparent 50%),
    var(--bg);
}
.page-hero .num{
  display:inline-block;
  font-family:'Kaisei Decol',serif;
  font-size:13px; color:var(--orange);
  border:1px solid var(--orange);
  border-radius:999px;
  padding:3px 14px;
  margin-bottom:14px;
}
.page-hero h1{
  font-size:clamp(28px,5vw,44px);
  color:var(--teal);
  font-weight:700;
}
.page-hero .en{
  margin-top:8px;
  font-size:12px; letter-spacing:.18em; color:var(--ink-soft);
}
.page-hero .lead{
  margin-top:18px;
  font-size:14px;
  color:var(--ink-soft);
  max-width:520px;
  margin-left:auto; margin-right:auto;
}

/* ===== Content panels ===== */
section.panel{ padding:56px 24px 80px; }
section.panel.alt{background:var(--bg-alt);}
.panel-body{max-width:1080px; margin:0 auto; color:var(--ink-soft); font-size:15px;}

/* schedule table */
.schedule{width:100%; border-collapse:collapse;}
.schedule th, .schedule td{
  text-align:left; padding:14px 12px; border-bottom:1px solid var(--line); font-size:14px;
}
.schedule th{color:var(--teal); font-weight:700; width:120px;}
.schedule td{color:var(--ink);}

/* card grid */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  padding:22px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{transform:translateY(-4px); box-shadow:0 10px 26px rgba(43,38,32,0.08);}
.card .tag{
  display:inline-block; font-size:11px; font-weight:700;
  color:var(--teal); background:var(--teal-soft);
  padding:3px 10px; border-radius:999px; margin-bottom:10px;
}
.card h3{font-size:16px; color:var(--ink); margin-bottom:6px;}
.card p{font-size:13px; color:var(--ink-soft);}
@media (max-width:760px){ .card-grid{grid-template-columns:1fr;} }

/* live list */
.live-list{display:flex; flex-direction:column;}
.live-row{
  display:grid; grid-template-columns:100px 1fr 100px; gap:16px; align-items:center;
  padding:16px 10px; border-bottom:1px solid var(--line);
  border-radius:10px;
  transition:background .2s ease;
}
.live-row .time{color:var(--orange-deep); font-weight:700; font-size:14px;}
.live-row .time .end{color:var(--ink-soft); font-weight:500; font-size:11px; display:block;}
.live-row .name{font-weight:700; color:var(--ink);}
.live-row .place{font-size:12px; color:var(--ink-soft); text-align:right;}
.live-row.is-current{background:var(--orange-soft);}
.badge-live{
  display:inline-block; background:var(--orange); color:#fff; font-size:10px; font-weight:700;
  padding:2px 8px; border-radius:999px; margin-left:8px; vertical-align:middle;
  animation:pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:1;} 50%{opacity:.5;}}
@media (max-width:600px){ .live-row{grid-template-columns:76px 1fr;} .live-row .place{display:none;} }

/* now / next widget (home page) — 有志発表・野外劇をひとつのタイムラインとして表示 */
.now-single{
  max-width:640px; margin:0 auto;
  background:var(--white); border:1px solid var(--line); border-radius:16px;
  overflow:hidden;
}
.now-block-link{display:block; transition:background .2s ease;}
.now-block-link:hover{background:var(--orange-soft);}
.now-block{padding:24px 28px;}
.kind-tag{
  display:inline-block; font-size:11px; font-weight:700;
  color:var(--teal); background:var(--teal-soft);
  padding:2px 10px; border-radius:999px; margin-right:8px;
  letter-spacing:.02em;
}
.kind-tag.alt{color:var(--orange-deep); background:var(--orange-soft);}
.now-block .status{display:flex; align-items:center; font-size:11px; letter-spacing:.08em; color:var(--ink-soft); font-weight:700; margin-bottom:10px;}
.now-block .status.on-air{color:var(--orange-deep);}
.now-block .title{font-size:18px; font-weight:700; color:var(--ink);}
.now-block .meta{font-size:12px; color:var(--ink-soft); margin-top:4px;}
.now-divider{height:1px; background:var(--line);}
.now-empty{padding:24px 28px; font-size:13px; color:var(--ink-soft);}
@media (max-width:600px){
  .now-block{padding:20px 22px;}
}

/* お知らせ欄 */
.notice-list{
  max-width:1080px; margin:0 auto;
  background:var(--white); border:1px solid var(--line); border-radius:16px;
  overflow:hidden;
}
.notice-item{
  display:grid; grid-template-columns:110px 1fr; gap:18px;
  padding:20px 28px; border-bottom:1px solid var(--line);
}
.notice-item:last-child{border-bottom:none;}
.notice-date{font-size:12px; color:var(--ink-soft); font-weight:700; letter-spacing:.03em; padding-top:2px;}
.notice-title{font-weight:700; color:var(--ink); font-size:14px; margin-bottom:4px;}
.notice-body{font-size:13px; color:var(--ink-soft);}
@media (max-width:600px){
  .notice-item{grid-template-columns:1fr; gap:4px; padding:18px 20px;}
}

/* 有志発表ページ：日程タブ */
.day-tabs{
  display:flex; gap:10px; justify-content:center;
  margin-bottom:32px;
}
.day-tab{
  display:flex; flex-direction:column; align-items:center; gap:2px;
  min-width:120px;
  padding:10px 22px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--white);
  color:var(--ink-soft);
  font-weight:700; font-size:14px;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.day-tab .sub{font-size:10px; font-weight:500; letter-spacing:.04em;}
.day-tab:hover{border-color:var(--teal);}
.day-tab.is-active{background:var(--teal); border-color:var(--teal); color:#fff;}
.day-tab.is-active .sub{color:#CFE6E1;}

/* map */
.map-box{
  background:var(--white); border:1px dashed var(--line); border-radius:16px;
  padding:50px 20px; text-align:center; color:var(--ink-soft); font-size:14px;
}

/* mystery */
.mystery-box{
  max-width:1080px; margin:0 auto;
  background:linear-gradient(135deg, var(--teal-deep), var(--teal));
  border-radius:20px;
  padding:56px 32px;
  text-align:center;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.mystery-box h2{font-family:'Kaisei Decol',serif; font-size:clamp(22px,4vw,30px); margin-bottom:12px;}
.mystery-box p{color:#D9EBE7; font-size:14px; max-width:440px; margin:0 auto;}
.mystery-box .qmark{
  font-family:'Kaisei Decol',serif; font-size:80px; color:var(--gold);
  opacity:.25; position:absolute; top:-10px; right:20px;
}

footer{
  background:var(--teal-deep); color:#E4EFEC; padding:48px 24px 28px; text-align:center;
}
footer .brand2{font-family:'Kaisei Decol',serif; font-size:20px; margin-bottom:10px;}
footer p{font-size:12px; color:#9BB8B2; margin-top:6px;}
footer a.backhome{
  display:inline-block; margin-top:16px; font-size:12px; color:#E4EFEC;
  border:1px solid #3E6B63; padding:6px 16px; border-radius:999px;
}
footer a.backhome:hover{background:#0A4A40;}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}