:root {
  --ink: #1d1915;
  --ink-soft: #5d554b;
  --paper: #f6f0e6;
  --paper-2: #fffaf2;
  --line: #d8c9b2;
  --red: #a8281f;
  --red-deep: #761913;
  --gold: #b98b39;
  --green: #243d34;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(29, 25, 21, 0.16);
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --serif: "Shippori Mincho", "Yu Mincho", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(216, 201, 178, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), var(--paper-2) 44%, #efe4d3 100%);
  background-size: 34px 34px, auto;
  font-family: var(--sans);
  line-height: 1.9;
  letter-spacing: 0;
  overflow-x: hidden;
}

/* 書道「山寺」の大きな透かしを右側に薄く固定（端から少しはみ出す） */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  right: -6%;
  width: min(62vh, 520px);
  height: min(86vh, 720px);
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
  background: url("../img/logo-yamatera.png") no-repeat right center / contain;
  opacity: 0.05;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  overflow-wrap: break-word;
}

main {
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(17, 15, 13, 0.78), rgba(17, 15, 13, 0.12));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 800;
  background: rgba(29, 25, 21, 0.38);
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

.brand-text {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.global-nav a {
  opacity: 0.92;
}

.global-nav a:hover {
  color: #f6d889;
}

/* モバイルメニュー開閉（CSSのみ。チェックボックスで制御） */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 10px;
  cursor: pointer;
}
.nav-burger span {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle:focus-visible ~ .nav-burger {
  outline: 2px solid #f6d889;
  outline-offset: 2px;
}

.hero {
  position: relative;
  min-height: 760px;
  isolation: isolate;
  overflow: hidden;
  background: #15120f;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

/* ヒーロー背景動画（YouTube埋め込みを薄く流す） */
.hero-media { position: absolute; inset: 0; overflow: hidden; background: #15120f; }
.hero-video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; z-index: 0; filter: brightness(1.32) saturate(1.06); }
.hero-video.is-ready { opacity: 1; }
.hero-video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 177.78vh; height: 100vh; min-width: 100%; min-height: 100%; border: 0;
}
.hero.video-on .hero-image { opacity: 0; transition: opacity 1.2s ease; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero.video-on .hero-image { opacity: 1; }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13, 11, 10, 0.3) 0%, rgba(13, 11, 10, 0.06) 34%, rgba(13, 11, 10, 0) 60%),
    linear-gradient(180deg, rgba(13, 11, 10, 0.18) 0%, rgba(13, 11, 10, 0) 26%, rgba(13, 11, 10, 0) 64%, rgba(13, 11, 10, 0.34));
}

/* ヒーロー：ローディング演出（中央ロゴ）→ 動画準備完了でクロスフェード */
.hero-intro {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(120% 120% at 50% 40%, #15110d 0%, #0b0907 70%);
}
.hero.js-intro .hero-intro { display: flex; }
.hero-intro__brush {
  width: auto;
  height: clamp(285px, 46vw, 460px);
  filter: drop-shadow(0 14px 44px rgba(0, 0, 0, 0.72));
  animation: heroIntroIn 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-intro__ja {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #fff;
  animation: heroIntroIn 1.1s .12s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-intro__line {
  width: min(320px, 64%);
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0d18a, transparent);
  animation: heroLineIn 1.1s .2s ease both;
}
.hero-intro__en {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: #f0d18a;
  animation: heroIntroIn 1.1s .24s cubic-bezier(.2, .7, .2, 1) both;
}
/* 和風の雲（霞）を右上・左下に点対称で配置 */
.hero-intro__cloud {
  position: absolute;
  width: min(56vw, 520px);
  aspect-ratio: 514 / 118;
  background: url("../img/cloud-jp.png") no-repeat center / contain;
  opacity: 0;
  pointer-events: none;
  animation: heroCloudIn 1.8s .15s ease both;
}
.hero-intro__cloud--tr { top: 7%; right: -2%; transform: rotate(180deg); }
.hero-intro__cloud--bl { bottom: 7%; left: -2%; }
@keyframes heroCloudIn { to { opacity: 0.62; } }
@keyframes heroIntroIn {
  from { opacity: 0; transform: translateY(14px) scale(1.05); }
  to { opacity: 1; transform: none; }
}
@keyframes heroLineIn {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
.hero.is-revealed .hero-intro {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.hero.js-intro .hero-content {
  opacity: 0;
  transform: translateY(10px);
}
.hero.js-intro.is-revealed .hero-content {
  opacity: 1;
  transform: none;
  transition: opacity 1s 0.15s ease, transform 1s 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  .hero-intro__brush,
  .hero-intro__ja,
  .hero-intro__line,
  .hero-intro__en { animation-duration: 0.01ms; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 760px;
  max-width: 780px;
  padding: 120px clamp(24px, 8vw, 108px) 96px;
  color: var(--white);
  /* 四角い暗がり（フィルター）は使わず、文字ごとのやわらかい影（ハロー）で視認性を確保 */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 0, 0, 0.55);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero .eyebrow {
  color: #f0d18a;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  gap: 14px;
}

.hero .eyebrow::before {
  width: 54px;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-size: 4.7rem;
  line-height: 1.08;
  font-weight: 800;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.46);
}

/* お知らせパネル 左カラムの補足 */
.today-sub { margin-top: 12px; color: var(--ink-soft); font-size: 0.9rem; }
.today-head .text-link { margin-top: 14px; }

/* ヒーロー：筆文字「山寺」を紋章＝主役に、右に名乗りを添える */
.hero h1.hero-lockup {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 16px 0 22px;
  font-size: initial;
  line-height: 1;
  text-shadow: none;
}
.hero-brush {
  width: auto;
  height: clamp(167px, 25.9vw, 253px);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) drop-shadow(0 8px 26px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 22px rgba(0, 0, 0, 0.5));
}
.hero-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 26px;
  border-left: 2px solid rgba(240, 209, 138, 0.55);
}
.hero-name__ja {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 4px 22px rgba(0, 0, 0, 0.6), 0 0 26px rgba(0, 0, 0, 0.5);
}
.hero-name__en {
  margin-top: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.36em;
  font-weight: 500;
  color: #f0d18a;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 0, 0, 0.5);
}

.hero-copy {
  max-width: 560px;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid currentColor;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.button-primary:hover {
  background: var(--red-deep);
}

.button-ghost {
  color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.hero-note {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: 42px;
  z-index: 2;
  min-width: 260px;
  padding: 22px 24px;
  color: var(--white);
  border-left: 3px solid var(--gold);
  background: rgba(29, 25, 21, 0.70);
  backdrop-filter: blur(8px);
}

.hero-note span {
  display: block;
  color: #f0d18a;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-note .hero-note__sasa {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240, 209, 138, 0.3);
}

.hero-note strong {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.today-panel,
.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.today-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  margin-top: -54px;
  padding: 36px 40px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.today-head h2,
.section-title h2,
.history-text h2,
.taiko-copy h2,
.join-inner h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1.35;
  font-weight: 800;
}

.news-list {
  display: grid;
  align-content: start;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 86px 64px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-item time {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-weight: 700;
}

.news-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 13px;
  color: var(--white);
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  border-radius: 4px;
  white-space: nowrap;
}

.news-item.important span {
  background: var(--red);
}

.news-item p {
  font-size: 0.94rem;
  line-height: 1.75;
}

.section {
  padding: 96px 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-title.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-title.centered .section-kicker {
  justify-content: center;
}

.section-title.centered .section-kicker::before {
  width: 28px;
}

.section-title p {
  margin-top: 16px;
  color: var(--ink-soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.intro-text {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.lead {
  font-family: var(--serif);
  font-size: 1.34rem;
  line-height: 1.8;
  font-weight: 700;
}

.intro-photo {
  margin: 0;
}

.intro-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.intro-photo figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
}

.fact-row div {
  padding: 26px 24px;
  background: rgba(255, 250, 242, 0.82);
}

.fact-row strong {
  display: block;
  color: var(--red);
  font-family: var(--serif);
  font-size: 2.05rem;
  line-height: 1.2;
}

.fact-row span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.history-band {
  width: 100%;
  padding: 0;
  margin-top: 28px;
  background: var(--green);
  color: var(--paper-2);
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  min-height: 640px;
}

.history-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 72px clamp(28px, 6vw, 78px);
}

.history-text .section-kicker {
  color: #f0d18a;
}

.history-text p {
  margin-top: 22px;
  color: rgba(255, 250, 242, 0.86);
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

/* HISTORY帯から「山寺山笠とは」への詳細ボタン（金のアウトライン→ホバーで反転） */
.history-cta {
  align-self: flex-start;
  margin-top: 32px;
  color: #f0d18a;
  border-color: rgba(240, 209, 138, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.history-cta:hover {
  background: #f0d18a;
  color: var(--green);
  border-color: #f0d18a;
}

.timeline li {
  padding: 16px 0 16px 24px;
  border-left: 1px solid rgba(240, 209, 138, 0.56);
  color: rgba(255, 250, 242, 0.84);
}

.timeline span {
  display: block;
  color: #f0d18a;
  font-family: var(--serif);
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

/* 一つの山笠が「笹山 → 飾り山」へ姿を変える“流れ”の見せ方 */
.form-flow {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.form-flow .feature-card {
  position: relative;
}

.form-flow__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  color: var(--red);
}

.form-flow__arrow::before {
  content: "→";
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

.form-flow__arrow span {
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.feature-card .flow-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 13px;
  background: rgba(36, 61, 52, 0.92);
  color: var(--white);
  border-radius: 9px;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 6px 18px rgba(29, 25, 21, 0.22);
}

.feature-card .flow-badge i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 2px;
}

.feature-card .flow-badge small {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.88;
  letter-spacing: 0.02em;
}

.form-flow__note {
  max-width: 760px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.feature-card,
.day-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(29, 25, 21, 0.08);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* 写真の上に山笠名を大きく載せる（笹山笠 / 飾り山笠 を対等に見せる） */
.form-card__media {
  position: relative;
  margin: 0;
  line-height: 0;
}

.form-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  z-index: 1;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.74), rgba(20, 16, 12, 0));
  pointer-events: none;
}

.feature-card .form-card__name {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 16px 24px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.feature-card div {
  padding: 28px;
}

.feature-card span,
.date {
  color: var(--red);
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 800;
}

.feature-card h3,
.day-card h3 {
  margin: 6px 0 12px;
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.35;
}

.schedule-section {
  padding-top: 64px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.day-card {
  min-height: 270px;
  padding: 28px 24px;
}

.day-card p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.75;
}

.day-card strong {
  color: var(--ink);
  font-family: var(--serif);
}

/* Guide cards (top page → 中ページ導線) */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(29, 25, 21, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(29, 25, 21, 0.14);
}

.guide-card-media {
  display: block;
  overflow: hidden;
}

.guide-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.guide-card:hover .guide-card-media img {
  transform: scale(1.05);
}

.guide-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 28px 30px;
}

.guide-card-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.35;
}

.guide-card-body p {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

.guide-card-body .button {
  margin-top: auto;
}

.wide-photo {
  position: relative;
  min-height: 470px;
  margin-top: 18px;
  overflow: hidden;
  color: var(--white);
  background: #15120f;
}

.wide-photo img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  opacity: 0.84;
}

.wide-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.10));
}

.wide-photo div {
  position: absolute;
  left: clamp(24px, 8vw, 112px);
  bottom: 54px;
  z-index: 2;
  max-width: 600px;
}

.wide-photo span {
  color: #f0d18a;
  font-family: var(--serif);
  font-weight: 800;
}

.wide-photo p {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.8vw, 2.25rem);
  line-height: 1.38;
  font-weight: 800;
  white-space: nowrap;
}

.taiko-section {
  width: min(1320px, calc(100% - 40px));
}
.taiko-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(480px, 1.5fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.taiko-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: var(--red);
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.video-frame {
  position: relative;
  background: #12100e;
  box-shadow: var(--shadow);
}

.video-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.84;
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-frame button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding: 0;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: rgba(168, 40, 31, 0.88);
  font-weight: 700;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: 230px;
  gap: 16px;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid img:first-child {
  grid-row: span 2;
}

.photo-grid img:nth-child(4) {
  grid-column: span 2;
}

/* 動画埋め込み（16:9・レスポンシブ） */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #15120f;
  box-shadow: var(--shadow);
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed video {
  object-fit: cover;
  background: #15120f;
}

/* 協賛・ご芳志 */
.sponsors-section {
  text-align: center;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

/* 企業名＋リンクだけで成立する“協賛ボタン”。ロゴ無しでも品位を保つ */
.sponsor-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 112px;
  padding: 24px 22px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* 上辺の差し色（紅×金）で“協賛”らしい格を出す */
.sponsor-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  opacity: 0.85;
}

.sponsor-item .sponsor-mark {
  width: 22px;
  height: 22px;
  background: url("../img/logo-mon.svg") center / contain no-repeat;
  opacity: 0.5;
}

.sponsor-item .sponsor-logo {
  max-width: 80%;
  max-height: 46px;
  object-fit: contain;
  margin-bottom: 2px;
}

.sponsor-item .sponsor-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.sponsor-item .sponsor-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
}

.sponsor-item .sponsor-go .arr {
  transition: transform 0.18s ease;
}

.sponsor-item.is-link:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 40, 31, 0.35);
  box-shadow: 0 16px 34px rgba(29, 25, 21, 0.12);
}

.sponsor-item.is-link:hover .sponsor-go .arr {
  transform: translate(2px, -2px);
}

.sponsors-note {
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.join-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: stretch;
  margin-top: 40px;
  background: var(--red-deep);
  color: var(--white);
}

.join-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(48px, 7vw, 94px);
}

.join-inner .section-kicker {
  color: #f0d18a;
}

.join-inner p {
  margin-top: 22px;
  color: rgba(255, 250, 242, 0.88);
}

.join-section img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 44px clamp(24px, 6vw, 78px);
  color: rgba(255, 250, 242, 0.82);
  background: #15120f;
}

.site-footer strong {
  font-family: var(--serif);
  font-size: 1.4rem;
}

.site-footer p,
.site-footer small {
  color: rgba(255, 250, 242, 0.64);
}

@media (max-width: 980px) {
  .nav-burger {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    background: rgba(17, 15, 13, 0.97);
    backdrop-filter: blur(4px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.25s ease;
  }
  .nav-toggle:checked ~ .global-nav {
    max-height: 76vh;
    opacity: 1;
    pointer-events: auto;
  }
  .global-nav a {
    padding: 13px clamp(18px, 5vw, 56px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
  }

  .hero,
  .hero-content {
    min-height: 700px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .today-panel,
  .intro-grid,
  .history-layout,
  .taiko-layout,
  .join-section {
    grid-template-columns: 1fr;
  }

  .today-panel > *,
  .intro-grid > *,
  .history-layout > *,
  .taiko-layout > *,
  .join-section > * {
    min-width: 0;
  }

  .today-panel {
    margin-top: -34px;
  }

  .history-photo img,
  .join-section img {
    min-height: 360px;
  }

  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid img:first-child,
  .photo-grid img:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  body {
    background-size: 28px 28px, auto;
  }

  .site-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 1.5rem;
  }

  .hero,
  .hero-content {
    min-height: 700px;
  }

  /* 下部の余白は「開催期間ノート」の高さぶんを確保し、ボタンと重ならないようにする */
  .hero-content {
    padding: 90px 20px 190px;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .hero-copy {
    font-size: 1.1rem;
  }

  .hero-lockup { gap: 16px; }
  .hero-name { padding-left: 16px; }
  .hero-brush { height: clamp(136px, 34.6vw, 185px); }
  .hero-name__ja { letter-spacing: 0.1em; }

  .hero-note {
    right: 20px;
    bottom: 22px;
    left: 20px;
    min-width: 0;
  }

  .button {
    width: 100%;
  }

  /* ヒーローの2ボタンはスマホでも左右に並べる */
  .hero-actions {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 40px;
  }
  .hero-actions .button {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .today-panel,
  .section {
    width: min(100% - 28px, 1120px);
  }

  .today-panel {
    padding: 22px;
  }

  .today-head h2,
  .section-title h2,
  .history-text h2,
  .taiko-copy h2,
  .join-inner h2 {
    font-size: 1.78rem;
  }

  .news-item {
    grid-template-columns: 82px 1fr;
  }

  .news-item span {
    justify-self: start;
  }

  .news-item p {
    grid-column: 1 / -1;
  }

  .section {
    padding: 70px 0;
  }

  .lead {
    font-size: 1.14rem;
  }

  .intro-photo img {
    aspect-ratio: 4 / 3;
  }

  .fact-row,
  .form-grid,
  .schedule-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .form-flow {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .form-flow__arrow::before {
    content: "↓";
  }

  .wide-photo,
  .wide-photo img {
    min-height: 360px;
    height: 360px;
  }

  .wide-photo p {
    font-size: clamp(1.0rem, 5vw, 1.56rem);
  }

  .photo-grid {
    grid-auto-rows: 220px;
  }

  .join-inner {
    padding: 46px 22px;
  }

  .join-section img {
    min-height: 320px;
  }

  .site-footer {
    display: grid;
    padding: 34px 22px;
  }
}

/* =====================================================================
   中ページ共通コンポーネント（about / schedule / taiko / gallery /
   recruit / news で使用）
   ===================================================================== */

/* ---- ページヘッダー（深緑の帯） ---- */
.page-header {
  padding: 92px clamp(24px, 6vw, 78px) 28px;
  color: var(--paper-2);
  background:
    linear-gradient(180deg, rgba(17, 15, 13, 0.30), rgba(17, 15, 13, 0.08)),
    #7c2e33; /* えんじ色 */
}
.page-header .section-kicker { color: #f0d18a; }
.page-header h1 {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
}
.breadcrumb { font-size: 0.84rem; color: rgba(255, 250, 242, 0.74); }
.breadcrumb a { border-bottom: 1px solid transparent; }
.breadcrumb a:hover { border-color: currentColor; }
.breadcrumb i { margin: 0 8px; font-style: normal; opacity: 0.6; }

/* お知らせ記事本文（news-detail） */
.article-body { font-size: 1.02rem; line-height: 1.95; color: var(--ink); }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.1em; }
.article-body h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 800; margin: 1.6em 0 0.6em; }
.article-body ul, .article-body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.4em; }
.article-body a { color: var(--red); border-bottom: 1px solid currentColor; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 0.6em 0; display: block; }
.article-body .embed-yt { position: relative; padding-top: 56.25%; margin: 1.2em 0; background: #000; border-radius: 10px; overflow: hidden; }
.article-body .embed-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- セクション背景ユーティリティ ---- */
.band-paper { background: rgba(255, 250, 242, 0.7); border-block: 1px solid var(--line); }
.section.narrow { max-width: 880px; }
.section-title.has-lead p { max-width: 760px; }
.lead-center { max-width: 720px; margin: 0 auto; color: var(--ink-soft); text-align: center; }

/* ---- リード見出し（太鼓ページ等） ---- */
.lead-quote {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.7;
  font-weight: 700;
  text-align: center;
}
.lead-quote .accent { color: var(--red); }

/* ---- ステップ（参加の流れ・練習の流れ） ---- */
.steps { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; counter-reset: step; }
.step {
  position: relative;
  padding: 24px 26px 24px 82px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 26px; top: 22px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  color: #fff; background: var(--red);
  font-family: var(--serif); font-weight: 800; font-size: 1.1rem;
}
.step h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.2rem; }
.step p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---- FAQ（アコーディオン） ---- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); background: var(--paper-2); }
.faq summary {
  position: relative;
  cursor: pointer; list-style: none;
  padding: 18px 52px 18px 22px;
  font-family: var(--serif); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; position: absolute; right: 20px; top: 18px; color: var(--red); font-weight: 800;
}
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 22px 20px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---- 情報カード（練習日・必要なもの等） ---- */
.info-card {
  padding: clamp(26px, 3vw, 38px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(29, 25, 21, 0.06);
}
.info-card .section-kicker { margin-bottom: 4px; }
.info-card h3 { font-family: var(--serif); font-size: 1.4rem; margin: 6px 0 16px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }

/* ---- チェックリスト ---- */
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--ink); }
.checklist a { color: var(--red); border-bottom: 1px solid currentColor; }

/* ---- フォーム ---- */
.form-card {
  max-width: 720px; margin: 0 auto;
  padding: clamp(28px, 4vw, 46px);
  background: var(--paper-2); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.92rem; }
.form-field .req { margin-left: 8px; padding: 1px 8px; color: #fff; background: var(--red); font-size: 0.66rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: 1rem; color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-field textarea { min-height: 130px; resize: vertical; }
.button-block { width: 100%; margin-top: 6px; }
.form-note { margin-top: 14px; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.7; }
.form-note code { padding: 1px 6px; background: rgba(168, 40, 31, 0.08); color: var(--red-deep); font-size: 0.85em; }

/* ---- 歓迎バナー ---- */
.welcome-banner {
  max-width: 880px; margin: 0 auto; text-align: center;
  padding: clamp(34px, 5vw, 56px);
  background: var(--paper-2); border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}
.welcome-banner .section-kicker { justify-content: center; }
.welcome-banner h2 { margin: 12px 0 16px; font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.4; }
.welcome-banner p { color: var(--ink-soft); }

/* ---- 役割カード（4枚） ---- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.role-card { background: var(--paper-2); border: 1px solid var(--line); }
.role-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.role-card .role-body { padding: 22px 22px 26px; }
.role-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.2rem; }
.role-card p { color: var(--ink-soft); font-size: 0.9rem; }
.role-card a { color: var(--red); border-bottom: 1px solid currentColor; }

/* ---- ギャラリー（フィルター + グリッド） ---- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper-2);
  font-family: var(--serif); font-weight: 700; font-size: 0.9rem; color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { color: #fff; background: var(--red); border-color: var(--red); }
.gallery-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-full figure { position: relative; margin: 0; overflow: hidden; background: #15120f; }
.gallery-full img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s ease; }
.gallery-full figure:hover img { transform: scale(1.05); }
.gallery-full figure.is-hidden { display: none; }

/* ---- お知らせ一覧（news ページ） ---- */
.news-full { max-width: 860px; margin: 0 auto; display: grid; gap: 0; }
.news-full .news-item { grid-template-columns: 110px 70px 1fr; padding: 20px 0; }
.news-full .news-item p { font-size: 1rem; }

/* ---- 法被セクション（about） ---- */
.happi-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr); gap: clamp(30px, 5vw, 64px); align-items: center; }
.happi-split .prose p { margin-top: 16px; color: var(--ink-soft); }
.happi-split .prose p:first-child { margin-top: 0; }
.happi-split figure { margin: 0; }
.happi-split figure img { width: 100%; box-shadow: var(--shadow); }
.happi-split figcaption { margin-top: 12px; color: var(--ink-soft); font-size: 0.86rem; text-align: center; }
.mon-inline { margin: 22px 0 0; max-width: 280px; }
.mon-inline img { width: 100%; border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(29, 25, 21, 0.1); }
.mon-inline figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 0.82rem; text-align: center; }

/* ---- 本文プロース（about 等） ---- */
.prose h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2rem); margin: 0 0 4px; }
.prose h3 { font-family: var(--serif); font-size: 1.25rem; margin: 26px 0 4px; }
.prose p { margin-top: 16px; color: var(--ink-soft); }
.prose strong { color: var(--ink); }

/* ---- CTA 帯（深緑・全幅） ---- */
.cta-section {
  width: 100%;
  padding: clamp(58px, 8vw, 88px) clamp(24px, 6vw, 78px);
  text-align: center; color: var(--paper-2); background: var(--green);
}
.cta-section h2 { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.2rem); color: #fff; }
.cta-section p { max-width: 620px; margin: 14px auto 0; color: rgba(255, 250, 242, 0.86); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---- フッターナビ ---- */
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-nav a { color: rgba(255, 250, 242, 0.72); font-size: 0.86rem; }
.footer-nav a:hover { color: #f0d18a; }
/* 公式SNS（フッター） */
.foot-sns { display: flex; gap: 10px; margin-top: 16px; }
.foot-sns .sns { display: inline-flex; width: 38px; height: 38px; border-radius: 9px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); transition: transform .15s, opacity .15s; }
.foot-sns .sns svg { display: block; width: 100%; height: 100%; }
.foot-sns .sns:hover { transform: translateY(-2px); opacity: 0.9; }

/* ---- 3カラムカード ---- */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* 3枚を「お汐井取り → 笹山笠 → 飾り山笠」の流れで見せる（カード間に矢印） */
.cards-flow {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}
.cards-flow .feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
/* 本文エリアを伸ばして3つの箱の高さを揃える */
.cards-flow .feature-card > div { flex: 1 1 auto; }
.cards-flow .form-flow__arrow { align-self: center; }

/* ---- テキストのみカード（初めて見る人へ 等） ---- */
.text-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.text-card { padding: 28px; background: var(--paper-2); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.text-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.15rem; }
.text-card p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---- 年表（紙地） ---- */
.history-list { max-width: 860px; margin: 0 auto; border: 1px solid var(--line); background: var(--paper-2); }
.history-list .row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.history-list .row:last-child { border-bottom: 0; }
.history-list .yr { color: var(--red); font-family: var(--serif); font-weight: 800; }
.history-list .row p { color: var(--ink-soft); }

/* ---- 引用・注釈パネル ---- */
.callout { max-width: 840px; margin: 0 auto; padding: clamp(26px, 3vw, 38px); background: var(--paper-2); border: 1px solid var(--line); border-left: 5px solid var(--red); }
.callout h2 { margin: 0 0 12px; font-family: var(--serif); color: var(--ink); font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.callout p { margin: 0; color: var(--ink-soft); }

/* ---- スケジュール（縦・日別フル） ---- */
.sched-day { max-width: 880px; margin: 0 auto 26px; border: 1px solid var(--line); background: var(--paper-2); }
.sched-day__head { display: flex; align-items: baseline; gap: 16px; padding: 20px 26px; color: #fff; background: var(--green); }
.sched-day__head .d { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; }
.sched-day__head .dt { color: #f0d18a; font-size: 0.9rem; }
.sched-row { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 16px 26px; border-bottom: 1px solid var(--line); }
.sched-row:last-child { border-bottom: 0; }
.sched-row .t { color: var(--red); font-family: var(--serif); font-weight: 800; }
.sched-row .ttl { font-weight: 700; }
.sched-row .pl { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 0.88rem; }
.sched-row.is-high { background: rgba(185, 139, 57, 0.08); }
.sched-row.is-high .ttl::after { content: "見どころ"; margin-left: 10px; padding: 1px 8px; color: #fff; background: var(--gold); font-size: 0.68rem; vertical-align: middle; }

/* ---- 中ページ用レスポンシブ ---- */
@media (max-width: 980px) {
  .cards-3, .text-cards { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-full { grid-template-columns: repeat(2, 1fr); }
  .two-col, .happi-split { grid-template-columns: 1fr; }
  .happi-split figure { order: -1; max-width: 460px; }
}
@media (max-width: 680px) {
  .page-header { padding: 84px 20px 26px; }
  .role-grid { grid-template-columns: 1fr; }
  .gallery-full { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .step { padding: 22px 20px 22px 72px; }
  .news-full .news-item { grid-template-columns: 100px 1fr; }
  .news-full .news-item span { justify-self: start; }
  .news-full .news-item p { grid-column: 1 / -1; }
  .history-list .row { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .sched-row { grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 20px; }
  .sched-day__head { padding: 16px 20px; }
}

/* ===== お知らせ本文：レイアウトブロック（管理画面のテンプレートと対応） ===== */
/* 写真＋キャプション */
.article-body .news-figure { margin: 1.3em 0; }
.article-body .news-figure img { margin: 0; }
.article-body .news-figure figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
/* 写真とテキストの2カラム（左右） */
.article-body .news-split { display: flex; gap: 22px; align-items: flex-start; margin: 1.5em 0; }
.article-body .news-split--right { flex-direction: row-reverse; }
.article-body .news-split__media { flex: 0 0 44%; margin: 0; }
.article-body .news-split__media img { margin: 0; }
.article-body .news-split__media figcaption { margin-top: 6px; font-size: 0.82rem; color: var(--ink-soft); }
.article-body .news-split__body { flex: 1 1 0; min-width: 0; }
.article-body .news-split__body > *:first-child { margin-top: 0; }
.article-body .news-split__body > *:last-child { margin-bottom: 0; }
/* テキストまわり込み（写真の横に本文が回り込む） */
.article-body .news-float { margin: 0.4em 0 1em; }
.article-body .news-float img { margin: 0; }
.article-body .news-float figcaption { margin-top: 6px; font-size: 0.82rem; color: var(--ink-soft); }
.article-body .news-float--left { float: left; width: 46%; max-width: 360px; margin: 0.4em 1.5em 0.9em 0; }
.article-body .news-float--right { float: right; width: 46%; max-width: 360px; margin: 0.4em 0 0.9em 1.5em; }
.article-body::after { content: ""; display: block; clear: both; }
@media (max-width: 680px) {
  .article-body .news-split,
  .article-body .news-split--right { flex-direction: column; gap: 12px; }
  .article-body .news-split__media { flex-basis: auto; width: 100%; }
  .article-body .news-float,
  .article-body .news-float--left,
  .article-body .news-float--right { float: none; width: 100%; max-width: none; margin: 1em 0; }
}

/* =====================================================================
   山笠はいまどこ？（/live/）と、トップの「いまどこ」バナー
   ===================================================================== */
.live-status {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto 18px;
  padding: 14px 20px;
  border-radius: 10px;
  background: #f1efe9;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 1.02rem;
}
.live-status__dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b3aca0;
}
.live-status[data-state="online"] {
  background: #fdeeec;
  color: var(--red-deep);
}
.live-status[data-state="online"] .live-status__dot {
  background: var(--red);
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 40, 31, 0.45); }
  50%      { box-shadow: 0 0 0 9px rgba(168, 40, 31, 0); }
}
.live-map-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.live-map {
  height: min(62vh, 560px);
  min-height: 320px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(29, 25, 21, 0.10);
  z-index: 0; /* サイトヘッダー(z:50)の下に敷く */
}
.live-notes {
  max-width: 920px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.live-notes p { margin-bottom: 8px; }
/* 地図上の山笠マーカー（紋色の丸＋波紋） */
.live-marker { background: none; border: none; }
.live-marker__core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 20px;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.live-marker__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(168, 40, 31, 0.35);
  animation: liveMarkerPulse 1.6s ease-out infinite;
}
@keyframes liveMarkerPulse {
  0%   { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* トップページ：ヒーロー直下の「いまどこ」バナー */
.live-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: linear-gradient(90deg, var(--red-deep), var(--red) 45%, var(--red-deep));
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.98rem, 2.4vw, 1.12rem);
  text-align: center;
}
.live-banner:hover { filter: brightness(1.08); }
/* News パネルの margin-top:-54px による食い込みをかわす（PC）
   隣接マージンの相殺で 70-54=16px の隙間が残る */
.live-banner { margin-bottom: 70px; }

/* メニューの「いまどこ？」は、表示スイッチON（body.live-on）のときだけ出す */
.nav-live { display: none; }
body.live-on .nav-live { display: revert; }
/* バナーは hidden で開始し、スイッチONのときにJSが表示する */
.live-banner[hidden] { display: none; }
.live-banner__icon {
  flex: 0 0 auto;
  display: block;
  color: #fff;
  opacity: 0.95;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.live-banner[data-state="online"] .live-banner__icon {
  color: #ffd76a;
  animation: livePinHop 1.4s ease-in-out infinite;
}
@keyframes livePinHop {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.live-banner__arrow { opacity: 0.85; }
.live-banner__text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.live-banner__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
/* PCでは説明の前に「—」をはさんで1行に見せる */
.live-banner__sub::before { content: "— "; }

/* スマホ：画面下に常時固定（メニューより手前・ホームバー分の余白も確保） */
@media (max-width: 680px) {
  .live-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    margin: 0;
    padding: 13px 16px calc(13px + env(safe-area-inset-bottom));
    font-size: 0.95rem;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.28);
  }
  /* スマホ：タイトルで改行して2行・中央寄せ */
  .live-banner__text {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }
  .live-banner__title { font-size: 1.06rem; }
  .live-banner__sub { font-size: 0.83rem; opacity: 0.92; font-weight: 500; }
  .live-banner__sub::before { content: none; }
  .live-banner__arrow { display: none; }
  /* 固定バナー（2行）の高さぶん、ページ末尾に余白を足してフッターが隠れないようにする */
  body:has(.live-banner:not([hidden])) { padding-bottom: 84px; }
}

/* スマホでだけ効く改行（PCでは無視される） */
.br-sp { display: none; }
@media (max-width: 680px) {
  .br-sp { display: inline; }
}
