/* =========================================================
   第38回 びさいまつり 公式サイト — スタイルシート
   Design concept: 尾州(織物のまち)の藍染め×生成り、
   祭りの朱と金。要所に「布タグ」のモチーフを使用。
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --indigo-900: #1c2b45;
  --indigo-800: #22355a;
  --indigo-700: #2c4472;
  --indigo-600: #3c5a8f;
  --vermillion-700: #a3380a;
  --vermillion-600: #c1440e;
  --vermillion-500: #d85a1f;
  --gold-600: #b3811f;
  --gold-500: #d9a441;
  --gold-300: #ecca86;
  --paper-050: #faf6ea;
  --paper-100: #f2e9d3;
  --paper-200: #e8dbb7;
  --ink-900: #241f18;
  --ink-700: #423c2f;
  --ink-500: #6b6452;
  --line: rgba(36, 31, 24, 0.14);
  --line-strong: rgba(36, 31, 24, 0.26);
  --white: #fffdf7;

  --font-display: "Shippori Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  --container: 1160px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;
  --shadow-card: 0 6px 20px rgba(28, 43, 69, 0.09), 0 1px 3px rgba(28, 43, 69, 0.08);
  --shadow-pop: 0 14px 40px rgba(28, 43, 69, 0.18);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; }

body {
  /* 固定ヘッダーの高さ分だけ本文を下げる（JSで実測値を設定） */
  padding-top: var(--header-h, 64px);
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper-050);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.4; color: var(--indigo-900); }

:focus-visible {
  outline: 3px solid var(--vermillion-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--indigo-900);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  z-index: 999;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

main section { scroll-margin-top: calc(var(--header-h, 64px) + 12px); }

/* ---------- Layout helpers ---------- */
.section-head { max-width: var(--container); margin: 0 auto 2.2rem; padding: 0 1.4rem; }
.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--vermillion-600);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem);
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--vermillion-600), var(--gold-500));
  border-radius: 4px;
}
.section-emoji { filter: saturate(1.05); }
.section-lead {
  max-width: var(--container);
  margin: -1.2rem auto 2rem;
  padding: 0 1.4rem;
  color: var(--ink-500);
  font-size: 0.96rem;
}

main > section { padding: 4.2rem 0; }
main > section:nth-of-type(odd) { background: var(--paper-050); }
main > section:nth-of-type(even) { background: var(--paper-100); }
main > section > *:not(.section-head):not(.section-lead) {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-primary { background: var(--vermillion-600); color: var(--white); box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--vermillion-700); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,253,247,0.12); color: var(--white); border: 1.5px solid rgba(255,253,247,0.75); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,253,247,0.22); transform: translateY(-2px); }

.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1em;
  height: 2.1em;
  border: 2px dashed rgba(255, 253, 247, 0.85);
  border-radius: var(--radius-s);
  background: rgba(193, 68, 14, 0.35);
  font-weight: 700;
  margin: 0 0.05em;
}
.tag-join { opacity: 0.85; margin: 0 0.05em; }

/* ---------- Header / Nav ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(250, 246, 234, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--indigo-900);
  color: var(--gold-300);
  border-radius: var(--radius-s);
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--indigo-900);
}

.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-700);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: var(--paper-200); color: var(--vermillion-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: var(--radius-s);
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--indigo-900); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; margin: 0 auto; }
.nav-scrim { position: fixed; inset: 0; background: rgba(28,20,10,0.4); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 490; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    box-shadow: -12px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    padding: 5.2rem 1.6rem 2rem;
    z-index: 495;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; gap: 0.2rem; }
  .site-nav a { display: block; padding: 0.85rem 1rem; font-size: 1.02rem; }
  body.menu-open .nav-scrim { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero (スライダー) ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#hero-slider { position: relative; }
.slider-container {
  position: relative;
  height: min(calc(88vh - var(--header-h, 64px)), 720px);
  min-height: 420px;
  overflow: hidden;
  background: var(--paper-100);
}
.slider-wrapper { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(.65,0,.35,1); }
.slide { flex: 0 0 100%; height: 100%; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,0.15) 0%, rgba(20,15,10,0.15) 35%, rgba(18,14,10,0.86) 100%),
              linear-gradient(90deg, rgba(15,10,8,0.55) 0%, rgba(15,10,8,0.05) 55%);
}

.hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.4rem 3.6rem;
  color: var(--white);
}
.hero-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255,253,247,0.55);
  border-radius: 999px;
  margin-bottom: 1.1rem;
  background: rgba(28,43,69,0.35);
}
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 1.4rem + 3.8vw, 3.7rem);
  line-height: 1.22;
  margin-bottom: 1rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.hero-copy .catch-copy {
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.slider-nav {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.5rem;
  z-index: 5;
}
.slider-button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,253,247,0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.slider-button.active { background: var(--gold-500); transform: scale(1.35); }

@media (max-width: 640px) {
  .slider-container { height: min(calc(76vh - var(--header-h, 64px)), 560px); min-height: 360px; }
  .hero-copy { padding: 0 1.2rem 3rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Back to top ---------- */
#back-to-top-btn {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--indigo-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-pop);
  z-index: 400;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#back-to-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- お知らせポップアップ ---------- */
.info-title.info-popup-trigger {
  font: inherit;
  font-weight: 700;
  color: var(--indigo-800);
  border-bottom: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  padding: 0;
}
.info-title.info-popup-trigger:hover { color: var(--vermillion-600); border-bottom-color: currentColor; }

.info-popup-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 12, 9, 0.6);
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
}
.info-popup-modal.open { display: flex; }
.info-popup-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-l);
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
}
.info-popup-scroll {
  overflow-y: auto;
  padding: 2.2rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) transparent;
}
.info-popup-scroll::-webkit-scrollbar { width: 8px; }
.info-popup-scroll::-webkit-scrollbar-track { background: transparent; margin-block: 0.6rem; }
.info-popup-scroll::-webkit-scrollbar-thumb { background-color: var(--gold-500); border-radius: 999px; }
.info-popup-scroll::-webkit-scrollbar-thumb:hover { background-color: var(--vermillion-600); }
.info-popup-content .info-popup-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  z-index: 2;
  color: var(--ink-500);
  font-size: 1.8rem;
  line-height: 1;
  background: var(--white);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(28,43,69,0.12);
}
.info-popup-close:hover { color: var(--vermillion-600); }
.info-popup-eyebrow { color: var(--ink-500); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.3rem; }
#infoPopupBody h3 { font-size: 1.3rem; margin-bottom: 0.9rem; padding-bottom: 0.5rem; border-bottom: 3px solid; border-image: linear-gradient(90deg, var(--vermillion-600), var(--gold-500)) 1; }
#infoPopupBody p { font-size: 0.95rem; color: var(--ink-700); margin-bottom: 1rem; }
.info-popup-list { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.info-popup-list li { font-size: 0.95rem; color: var(--ink-700); }
.info-popup-subhead { font-weight: 700; color: var(--indigo-900); margin-bottom: 0.5rem !important; }
.info-popup-table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; font-size: 0.88rem; }
.info-popup-table th { background: var(--indigo-900); color: var(--white); padding: 0.55rem 0.7rem; text-align: left; }
.info-popup-table td { padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-popup-table td:last-child { white-space: nowrap; font-weight: 700; color: var(--vermillion-700); text-align: right; }
.info-popup-table-note { font-size: 0.78rem; color: var(--ink-500); font-weight: 400; }
.info-popup-note { font-size: 0.88rem; }
.info-popup-pdf-link { display: inline-flex; margin-bottom: 1.4rem; }
.info-popup-contact { font-size: 0.8rem !important; color: var(--ink-500) !important; border-top: 1px dashed var(--line-strong); padding-top: 1rem; margin-bottom: 0 !important; line-height: 1.8; }


/* ---------- パンフレット（お知らせポップアップ内） ---------- */
.flyer-figure { margin: 0 0 1.4rem; }
.flyer-figure:last-child { margin-bottom: 0; }
.flyer-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  cursor: zoom-in;
  display: block;
  transition: transform 0.15s ease;
}
.flyer-figure img:hover { transform: translateY(-2px); }
.flyer-figure figcaption {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-500);
  margin-top: 0.5rem;
}

.venue-flyers { max-width: var(--container); margin: 0 auto; padding: 0 1.2rem; }
.venue-flyers .flyer-figure { margin-bottom: 1.8rem; }
.venue-flyers .flyer-figure:last-child { margin-bottom: 0; }

/* ---------- Coming soon placeholder ---------- */
.coming-soon {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--white);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-l);
}
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--vermillion-700);
  background: rgba(193, 68, 14, 0.08);
  border: 1px dashed var(--vermillion-600);
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
  margin-bottom: 1.1rem;
}
.coming-soon-badge.recruiting {
  color: var(--indigo-900);
  background: rgba(217, 164, 65, 0.16);
  border: 1px dashed var(--gold-600);
}
.coming-soon-text { color: var(--ink-500); font-size: 0.98rem; line-height: 1.9; }
.coming-soon .btn { margin-top: 1.4rem; }

/* ---------- Information ---------- */
.info-list { display: flex; flex-direction: column; gap: 0.2rem; border-top: 1px solid var(--line); }
.info-list li { display: flex; align-items: baseline; gap: 1.1rem; padding: 1rem 0.2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.info-date { font-family: var(--font-display); font-weight: 600; color: var(--ink-500); font-size: 0.92rem; min-width: 6.8em; }
.info-title { font-weight: 700; color: var(--indigo-800); border-bottom: 1px solid transparent; }
.info-title:hover { color: var(--vermillion-600); border-bottom-color: currentColor; }

/* ---------- Sponsors ---------- */
.sponsor-tiers { display: flex; flex-direction: column; gap: 1.6rem; }

.sponsor-tier {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 2.2rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-card);
  border-top: 5px solid var(--line-strong);
}
.sponsor-tier.tier-1 { border-top-color: var(--gold-500); }
.sponsor-tier.tier-2 { border-top-color: #9fa8b5; }
.sponsor-tier.tier-3 { border-top-color: var(--vermillion-600); }

.tier-label {
  position: absolute;
  top: 0;
  left: 1.6rem;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--white);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.tier-1 .tier-label { background: linear-gradient(135deg, var(--gold-600), var(--gold-500)); }
.tier-2 .tier-label { background: linear-gradient(135deg, #6f7c8e, #9fa8b5); }
.tier-3 .tier-label { background: linear-gradient(135deg, var(--vermillion-700), var(--vermillion-500)); }

.sponsor-names { display: grid; gap: 0.2rem 1.4rem; }
.sponsor-names li {
  font-weight: 700;
  color: var(--ink-700);
  padding: 0.5rem 0.2rem;
  border-bottom: 1px dotted var(--line);
  line-height: 1.6;
  /* 社名は折り返さず、収まらない場合はJSで文字幅を自動調整 */
  white-space: nowrap;
  overflow: hidden;
}

/* 特別協賛（大）— 最も大きく */
.tier-1 .sponsor-names { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tier-1 .sponsor-names li {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--indigo-900);
  padding: 0.7rem 0.2rem;
}
/* 特別協賛（小） */
.tier-2 .sponsor-names { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tier-2 .sponsor-names li { font-size: 1rem; color: var(--indigo-800); padding: 0.6rem 0.2rem; }
/* 一般協賛 */
.tier-3 .sponsor-names { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
.tier-3 .sponsor-names li { font-size: 0.88rem; font-weight: 500; }

@media (max-width: 640px) {
  .sponsor-tier { padding: 2rem 1.1rem 1.4rem; }
  .tier-label { left: 50%; transform: translate(-50%, -50%); }
  .tier-1 .sponsor-names li { font-size: 1.02rem; }
  .tier-2 .sponsor-names li { font-size: 0.95rem; }
  .tier-3 .sponsor-names { grid-template-columns: 1fr; }
  .tier-3 .sponsor-names li { font-size: 0.86rem; }
}

/* ---------- Date / countdown ---------- */
.date-countdown-container {
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--indigo-900), var(--indigo-700));
  color: var(--white);
  border-radius: var(--radius-l);
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow-pop);
}
.date-info p { font-family: var(--font-display); font-weight: 700; }
.date-info p:first-child { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); margin-bottom: 0.3rem; }
.date-info p:last-child { color: var(--gold-300); font-size: 1.1rem; }
.countdown-calendar { text-align: center; }
.calendar-title { font-size: 0.86rem; letter-spacing: 0.08em; color: rgba(255,253,247,0.75); display: block; margin-bottom: 0.4rem; }
.countdown-number { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--gold-300); }
.countdown-label { font-size: 0.9rem; margin-top: 0.2rem; }

/* ---------- Schedule ---------- */
.rain-key { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.9rem; font-size: 0.85rem; }
.rain-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.6;
  background: rgba(193, 68, 14, 0.1);
  color: var(--vermillion-700);
  border: 1px solid rgba(193, 68, 14, 0.35);
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  white-space: nowrap;
  vertical-align: middle;
}
.rain-badge.alt {
  background: rgba(60, 90, 143, 0.1);
  color: var(--indigo-700);
  border-color: rgba(60, 90, 143, 0.35);
  white-space: normal;
}

.schedule-tabs { display: flex; gap: 0.7rem; margin-bottom: 1.8rem; }
.schedule-tab {
  flex: 1 1 auto;
  max-width: 260px;
  padding: 0.85rem 1.2rem;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-500);
  box-shadow: var(--shadow-card);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.schedule-tab:hover { border-color: var(--vermillion-600); color: var(--vermillion-700); }
.schedule-tab.active { background: var(--vermillion-600); color: var(--white); border-color: var(--vermillion-600); }

.schedule-day[hidden] { display: none; }
.schedule-columns { display: grid; gap: 1.6rem; }
.schedule-columns > * { min-width: 0; }
@media (min-width: 900px) {
  .schedule-columns { grid-template-columns: 1fr 1fr; align-items: start; }
}

.schedule-venue {
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 1.6rem 1.5rem 1.8rem;
  box-shadow: var(--shadow-card);
}
.venue-title {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-s);
  color: var(--white);
  background: var(--indigo-800);
  text-align: center;
}
.venue-title.outdoor { background: linear-gradient(135deg, var(--vermillion-600), var(--gold-600)); }
.venue-title.hall { background: linear-gradient(135deg, var(--indigo-800), var(--indigo-600)); }

.subgroup-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--indigo-900);
  margin: 1.6rem 0 0.8rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--gold-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.schedule-venue > .subgroup-title:first-of-type { margin-top: 0; }

.schedule-list { display: flex; flex-direction: column; }
.schedule-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.8rem 0.2rem;
  border-bottom: 1px dotted var(--line-strong);
}
.schedule-list li:last-child { border-bottom: none; }
.stime {
  flex: 0 0 auto;
  min-width: 4.8em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--vermillion-700);
  white-space: nowrap;
}
.sbody { display: flex; flex-direction: column; gap: 0.25rem; }
.sname { font-weight: 700; color: var(--ink-900); font-size: 0.98rem; line-height: 1.6; }
.sperformer { font-size: 0.86rem; color: var(--ink-500); }
.scomment {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vermillion-700);
  background: rgba(217, 164, 65, 0.16);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-top: 0.15rem;
}
.sdetail {
  font-size: 0.83rem;
  color: var(--ink-700);
  line-height: 1.8;
  background: var(--paper-050);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
  padding: 0.6rem 0.8rem;
  margin-top: 0.3rem;
}

.schedule-highlight {
  min-width: 0;
  margin: 1.6rem 0;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, rgba(60, 90, 143, 0.09), rgba(217, 164, 65, 0.14));
  border: 1.5px solid var(--gold-500);
  text-align: center;
}
.hl-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--vermillion-600);
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  margin-bottom: 0.7rem;
}
.schedule-highlight h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--indigo-900);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
/* タイトルは「&」を独立した行にして中央寄せ */
.hl-line, .hl-amp { display: block; text-align: center; }
.hl-line { white-space: nowrap; overflow: hidden; }
/* 意味の切れ目以外で折り返さない行（狭い画面では文字幅を自動調整） */
.fit-line {
  display: block;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.hl-amp { font-size: 0.95em; color: var(--vermillion-700); line-height: 1.4; }
.hl-meta { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; color: var(--ink-700); margin-bottom: 0.7rem; }
.hl-note { font-size: 0.86rem; font-weight: 700; color: var(--vermillion-700); margin-bottom: 0.4rem; }
.hl-text { font-size: 0.88rem; color: var(--ink-700); margin-bottom: 0.7rem; }
.hl-credit { font-size: 0.72rem; color: var(--ink-500); line-height: 1.7; }

@media (max-width: 520px) {
  .schedule-tab { font-size: 0.92rem; padding: 0.75rem 0.6rem; }
  .schedule-venue { padding: 1.3rem 1.1rem 1.5rem; }
  .schedule-list li { flex-direction: column; gap: 0.3rem; align-items: flex-start; padding: 0.75rem 0.1rem; }
  .stime { font-size: 0.9rem; }
  .rain-key { display: flex; margin: 0.4rem 0 0; }
}

.bishu-images { display: flex; gap: 0.6rem; margin: 0.7rem 0; flex-wrap: wrap; }
.bishu-images img { width: 130px; border-radius: var(--radius-s); cursor: zoom-in; box-shadow: var(--shadow-card); }
.bishu-copyright { font-size: 0.72rem; color: var(--ink-500); margin-bottom: 0.5rem; }
.bishu-link-btn, .event-link-btn, .detail-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 700; color: var(--vermillion-700); border-bottom: 1px solid currentColor; padding-bottom: 0.1rem; }

/* ---------- 会場内の催し ---------- */
.venue-events {
  margin: 0 auto;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-pop);
}
.venue-events img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.venue-events img:hover { transform: scale(1.01); }
.venue-events figcaption {
  font-size: 0.85rem;
  color: var(--ink-500);
  text-align: center;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- Vendors ---------- */
.vendor-search { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.vendor-search input, .vendor-search select { padding: 0.75rem 1rem; border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--white); font-size: 0.95rem; }
.vendor-search input { flex: 1 1 240px; }
.vendor-search select { flex: 0 0 auto; }
.vendor-search input:focus, .vendor-search select:focus { border-color: var(--vermillion-600); }

.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.vendor-card { background: var(--white); border-radius: var(--radius-m); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-card); border-left: 4px solid var(--gold-500); cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.vendor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.vendor-card h4 { font-family: var(--font-display); font-size: 1rem; color: var(--indigo-900); margin-bottom: 0.3rem; }
.vendor-card p { font-size: 0.88rem; color: var(--ink-500); }
.vendor-card[data-category*="food"] { border-left-color: var(--vermillion-600); }
.vendor-card[data-category*="experience"] { border-left-color: var(--indigo-700); }
.vendor-card[data-category*="goods"] { border-left-color: var(--gold-500); }

.vendor-pagination { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.8rem; }
.vendor-pagination button { padding: 0.6rem 1.3rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font-weight: 700; }
.vendor-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.vendor-pagination button:not(:disabled):hover { background: var(--indigo-900); color: var(--white); border-color: var(--indigo-900); }
#pageInfo { font-weight: 700; color: var(--ink-500); }

/* ---------- 出店者一覧 ---------- */
#vendors { scroll-margin-top: calc(var(--header-h, 64px) + 12px); }
#vendor-list { scroll-margin-top: calc(var(--header-h, 64px) + 12px); }

.vendor-map-placeholder { margin: 0 0 1.4rem; }
.vendor-map-placeholder img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}
.map-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  aspect-ratio: 16 / 9;
  background: var(--white);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-l);
  text-align: center;
  padding: 1.5rem;
}
.map-pending p { color: var(--ink-500); font-size: 0.92rem; }
.vendor-map-placeholder figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 0.6rem;
}

.vendor-note { font-size: 0.88rem; color: var(--ink-500); margin-bottom: 1.4rem; }

.vendor-areas { display: flex; flex-direction: column; gap: 2rem; }
.vendor-area-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--indigo-800), var(--indigo-600));
  border-radius: var(--radius-s);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.vendor-list { display: grid; gap: 0.7rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .vendor-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .vendor-list { grid-template-columns: repeat(3, 1fr); } }

.vendor-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--white);
  border-radius: var(--radius-m);
  border-left: 4px solid var(--gold-500);
  box-shadow: var(--shadow-card);
  padding: 0.9rem 1rem;
}
.vendor-no {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--indigo-900);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 0.4rem;
}
.vendor-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
/* 「内容（販売物）」を一番目立たせる */
.vendor-goods {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-900);
}
.vendor-name { font-size: 0.83rem; color: var(--ink-500); line-height: 1.5; }

@media (max-width: 520px) {
  .vendor-item { padding: 0.8rem 0.9rem; gap: 0.65rem; }
  .vendor-goods { font-size: 0.97rem; }
}

/* ---------- Marche stamp rally ---------- */
#marche-stamp-campaign { margin-top: 3rem; }
.stamp-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f3a52a, var(--vermillion-600) 55%, #b8365f);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: 2.4rem 1.8rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-pop);
}
.stamp-banner::before,
.stamp-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.12);
  pointer-events: none;
}
.stamp-banner::before { width: 220px; height: 220px; top: -90px; right: -60px; }
.stamp-banner::after { width: 160px; height: 160px; bottom: -70px; left: -50px; }

.stamp-eyebrow {
  position: relative;
  display: inline-block;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  background: var(--white);
  color: var(--vermillion-700);
  border-radius: 999px;
  padding: 0.3rem 1.2rem;
  margin-bottom: 0.7rem;
}
.stamp-title {
  position: relative;
  color: var(--white);
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.6rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.stamp-prizes {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 620px;
  margin: 0 auto 1.6rem;
}
.stamp-prizes li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 253, 247, 0.96);
  color: var(--ink-900);
  border-radius: 999px;
  padding: 0.7rem 1.2rem 0.7rem 0.7rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.prize-rank {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}
.rank-1 { background: linear-gradient(135deg, #e0a521, #b8830f); }
.rank-2 { background: linear-gradient(135deg, #93a2b3, #6d7d8f); }
.rank-3 { background: linear-gradient(135deg, #c98a52, #a06835); }
.prize-name { flex: 1 1 auto; text-align: left; font-weight: 700; font-size: 1rem; line-height: 1.5; }
.prize-count {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--vermillion-700);
  white-space: nowrap;
}

.stamp-rules {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 620px;
  margin: 0 auto 1.8rem;
  text-align: left;
}
.stamp-rules li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.7;
}
.stamp-rules li::before { content: "★"; position: absolute; left: 0; top: 0; color: var(--gold-300); }
.stamp-rules strong { font-size: 1.08em; color: #fff2c9; }

.stamp-cta {
  position: relative;
  background: rgba(255, 253, 247, 0.96);
  border-radius: var(--radius-m);
  padding: 1.3rem 1.2rem;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.stamp-cta p { color: var(--ink-700); font-weight: 700; font-size: 0.92rem; margin-bottom: 0.9rem; }

@media (max-width: 560px) {
  .stamp-banner { padding: 2rem 1.1rem 1.8rem; }
  .stamp-prizes li { flex-wrap: wrap; border-radius: var(--radius-m); padding: 0.9rem 1rem; gap: 0.6rem; }
  .prize-name { flex: 1 1 60%; font-size: 0.94rem; }
  .prize-count { font-size: 1.05rem; }
  .stamp-rules li { font-size: 0.88rem; }
}

/* ---------- Other events ---------- */
.other-event-block { margin-bottom: 2.6rem; }
.other-event-block h3 { font-size: 1.2rem; margin-bottom: 1rem; padding-left: 0.85rem; border-left: 4px solid var(--vermillion-600); }
.same-day-events-section { margin: 3rem 0 1.6rem; text-align: center; }
.same-day-events-title { display: inline-block; font-size: 1.3rem; padding-bottom: 0.5rem; position: relative; }
.same-day-events-title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 60px; height: 3px; background: var(--gold-500); border-radius: 3px; }
.other-event-block.same-day-event h3 { border-left-color: var(--indigo-700); }

.subevent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.3rem; }
.subevent-card { background: var(--white); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.subevent-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-200); }
.subevent-image img { width: 100%; height: 100%; object-fit: cover; }
.subevent-title, .subevent-desc, .subevent-detail, .subevent-organizer, .subevent-link { padding: 0 1rem; }
.subevent-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-top: 0.9rem; color: var(--indigo-900); }
.subevent-desc { font-size: 0.86rem; color: var(--ink-700); margin-top: 0.4rem; }
.subevent-detail { font-size: 0.8rem; color: var(--ink-500); margin-top: 0.5rem; line-height: 1.7; }
.subevent-organizer { font-size: 0.78rem; color: var(--ink-500); margin-top: 0.6rem; padding-bottom: 1rem; margin-top: auto; }
.subevent-link { margin-top: 0.5rem; }

/* ---------- Access ---------- */
.google-map { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-pop); margin-bottom: 1.8rem; }
.access-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }
.tab-button { padding: 0.7rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font-weight: 700; font-size: 0.9rem; color: var(--ink-500); }
.tab-button.active { background: var(--indigo-900); color: var(--white); border-color: var(--indigo-900); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.transport-info { display: grid; gap: 1.2rem; }
.transport-item { background: var(--white); border-radius: var(--radius-m); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-card); }
.transport-item h4 { font-family: var(--font-display); font-size: 1rem; color: var(--indigo-900); margin-bottom: 0.7rem; }
.transport-item ul { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; }
.transport-item.notice-box { background: rgba(193,68,14,0.06); border: 1px dashed var(--vermillion-600); }
.bus-stop-info { display: grid; gap: 1rem; }
.bus-stop-map iframe { border-radius: var(--radius-s); width: 100%; }
.bus-stop-map h5 { font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--ink-500); }
.parking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.parking-item { background: var(--paper-050); border-radius: var(--radius-s); padding: 1rem; border: 1px solid var(--line); }
.parking-item h5 { font-size: 0.95rem; margin-bottom: 0.6rem; }
.map-link-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 700; color: var(--indigo-800); border-bottom: 1px solid currentColor; }

@media (min-width: 700px) {
  .transport-info { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .bus-stop-info { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */
footer { background: var(--indigo-900); color: rgba(255,253,247,0.85); padding: 3rem 1.4rem; text-align: center; }
.footer-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-300); margin-bottom: 0.4rem; }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.2rem;
}
.footer-contact li {
  background: rgba(255, 253, 247, 0.08);
  border: 1px solid rgba(255, 253, 247, 0.18);
  border-radius: var(--radius-m);
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 240px;
}
.contact-label {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--indigo-900);
  background: var(--gold-300);
  border-radius: 999px;
  padding: 0.1rem 0.8rem;
  margin-bottom: 0.3rem;
}
.contact-when { font-size: 0.78rem; color: rgba(255, 253, 247, 0.7); }
.footer-contact a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  border-bottom: none;
  letter-spacing: 0.02em;
}
.footer-contact a:hover { color: var(--gold-300); }
footer a { border-bottom: 1px solid rgba(255,253,247,0.4); }
footer a:hover { color: var(--gold-300); }

/* ---------- Image modal ---------- */
.image-modal { display: none; position: fixed; inset: 0; z-index: 960; background: rgba(15,12,9,0.9); align-items: center; justify-content: center; padding: 2rem; }
.image-modal.open { display: flex; }
.image-modal .modal-content { position: relative; max-width: 92vw; max-height: 88vh; text-align: center; overflow: auto; -webkit-overflow-scrolling: touch; }
.image-modal img { max-width: 92vw; max-height: 78vh; border-radius: var(--radius-s); margin: 0 auto; cursor: zoom-in; transition: max-width 0.2s ease, max-height 0.2s ease; }
/* 拡大表示（もう一度タップで等倍・スクロール可） */
.image-modal.zoomed .modal-content { max-width: 100vw; max-height: 92vh; }
.image-modal.zoomed img { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
.modal-hint {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: rgba(255, 253, 247, 0.85);
  background: rgba(28, 43, 69, 0.75);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  pointer-events: none;
  white-space: nowrap;
}
.modal-copyright { color: rgba(255,253,247,0.7); font-size: 0.8rem; margin-top: 0.8rem; }
.close-modal { position: absolute; top: -2.6rem; right: 0; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  main > section { padding: 3rem 0; }
  .date-countdown-container { flex-direction: column; align-items: flex-start; text-align: left; }
  .countdown-calendar { align-self: center; }
  .marche-prizes { gap: 0.9rem; }
  .marche-prize { width: 100%; max-width: 260px; }
}

/* 中止のお知らせ */
.cancel-banner { background: #b3261e; color: #fff; padding: 1.1rem 1.2rem; text-align: center; border-bottom: 4px solid #7f1a15; }
.cancel-banner-inner { max-width: 960px; margin: 0 auto; }
.cancel-banner-label { display: inline-block; background: #fff; color: #b3261e; font-weight: 800; font-size: 0.85rem; padding: 0.15rem 0.8rem; border-radius: 999px; margin-bottom: 0.5rem; }
.cancel-banner-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.4rem; line-height: 1.5; }
.cancel-banner-text { margin: 0; font-size: 1rem; line-height: 1.8; }
.info-cancel .info-title { color: #b3261e; }
.info-cancel-tag { background: #b3261e; color: #fff; font-size: 0.75rem; font-weight: 800; padding: 0.1rem 0.6rem; border-radius: 4px; margin-right: 0.5rem; }
