/* 全体 */
body {
  margin: 0;
  font-family: "Yu Gothic", "游ゴシック体", sans-serif;
  background: #f5f5f5;
  color: #333;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

/* ヘッダー */
.site-header {
  background: #2e7d32;
  color: #fff;
  padding: 16px 24px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* スマホ用ヘッダー */
/* =========================
   SP header（コンパクト）
   ========================= */

.sp-header {
  background: #2e7d32;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.sp-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}

.sp-brand-title {
  font-size: 16px;
  /* ←大きすぎ防止 */
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sp-brand-sub {
  font-size: 11px;
  opacity: 0.95;
}

/* 右側：ハンバーガーボタン */
.sp-menu-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sp-menu-icon {
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  display: block;
}

.sp-menu-icon::before,
.sp-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
}

.sp-menu-icon::before {
  top: -6px;
}

.sp-menu-icon::after {
  top: 6px;
}

/* カウントダウンの位置（コンパクトに） */
.sp-header-bottom {
  padding: 0 12px 10px;
}

/* 既存の .header-countdown デザインを流用してOK
   ※大きすぎるなら以下で少し縮める */
.sp-header .header-countdown {
  padding: 4px 8px;
  gap: 6px;
}

.sp-header .cd-unit {
  min-width: 30px;
  padding: 3px 4px;
}

.sp-header .cd-number {
  font-size: 12px;
}

.sp-header .cd-text {
  font-size: 9px;
}

/* =========================
   SP drawer menu（プルダウン）
   ========================= */

.sp-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
}

.sp-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100vh;
  background: #ffffff;
  color: #333;
  z-index: 1000;
  box-shadow: -8px 0 18px rgba(0, 0, 0, 0.25);
  padding: 14px 12px;
  overflow: auto;
}

.sp-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-menu-list li+li {
  border-top: 1px solid #eee;
}

.sp-menu-list a {
  display: block;
  padding: 12px 8px;
  color: #2e7d32;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.sp-menu-list a:active {
  background: #f3f7f3;
}

/* メニュー上部のボタン列 */
.sp-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 4px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.sp-close-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #f3f7f3;
  color: #333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}



/* ヘッダーカウントダウン ----------------------------------- */

.header-countdown {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  color: #fff;
}

.header-countdown .cd-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.header-countdown .cd-items {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cd-unit {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 4px 6px;
  text-align: center;
  min-width: 40px;
}

.cd-number {
  display: block;
  font-family: "Roboto Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.cd-text {
  display: block;
  font-size: 10px;
  opacity: 0.8;
}

/* 横幅が狭いときは少し詰める */
@media (max-width: 768px) {
  .header-countdown {
    margin-top: 4px;
    padding: 3px 8px;
  }

  .cd-unit {
    min-width: 34px;
    padding: 3px 4px;
  }

  .cd-number {
    font-size: 12px;
  }

  .cd-text {
    font-size: 9px;
  }
}

/* タイトル部分をまとめる */
.header-title-block {
  display: flex;
  flex-direction: column;
}

/* =========================
   PC header layout（要望の配置）
   右上：カウントダウン
   左下：ナビ
   右下：SNS
   ========================= */

.pc-header{
  background:#2e7d32;
  color:#fff;
}

.pc-header-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 14px 12px;

  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "brand countdown"
    "nav   sns";
  gap: 10px 14px;
  align-items: end;
}

/* 左上 */
.pc-brand{ grid-area: brand; }
.pc-title{
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}
.pc-title a{ color:#fff; text-decoration:none; }
.pc-subtitle{
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.95;
}

/* 右上 */
.pc-countdown{
  grid-area: countdown;
  justify-self: end;
  align-self: start;
}

/* 左下 */
.pc-nav{ grid-area: nav; }
.pc-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pc-nav a{
  display:block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color:#fff;
  text-decoration:none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.pc-nav a:hover{ background: rgba(255,255,255,0.18); }

/* 右下 */
.pc-sns{
  grid-area: sns;
  justify-self: end;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pc-sns-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color:#fff;
  text-decoration:none;
  font-size: 13px;
  font-weight: 800;
}
.pc-sns-link:hover{ background: rgba(255,255,255,0.18); }
.pc-sns-link svg{ display:block; }

/* カウントダウン（既存が大きい場合の微調整） */
.pc-header .header-countdown{
  background: rgba(0,0,0,0.25);
}


/* ================================
   スマホヘッダー用SNS情報
   ================================ */
/* ドロワー内 SNS */
/* ドロワー内 SNS（SVG埋め込み） */
.sp-menu-sns{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.sp-menu-sns-title{
  margin: 0 0 8px;
  font-size: 13px;
  color: #666;
  font-weight: 800;
}

.sp-menu-sns-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-sns-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f7f3;
  color: #2e7d32;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid #dfe9df;
}

.sp-sns-ico{
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e7efe7;
}

.sp-sns-text{
  line-height: 1;
}



/* ================================
   PCヘッダー用ナビ（site-nav）
   ================================ */
/* ナビゲーション */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.site-nav a {
  font-size: 14px;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ================================
   スマホヘッダー用ナビ（sp-nav）
   ================================ */

.sp-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  /* はみ出したら横スクロール */
}

.sp-nav li {
  flex: 0 0 auto;
  /* 各メニューを「内容の幅」だけにする */
}

.sp-nav a {
  display: block;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  white-space: nowrap;
  /* ← これで改行させない！ */
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 現在ページだけ強調（あれば） */
.sp-nav li.nav-current a {
  background: #ffffff;
  color: #2e7d32;
  font-weight: 600;
}

.site-title {
  margin: 0;
  font-size: 28px;
}

.site-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
}

/* メイン共通 */
main {
  max-width: 1100px;
  margin: 16px auto 40px;
  padding: 0 16px;
}

/* スライドショー */
.hero {
  margin-bottom: 24px;
}

.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;

  /* どの画像でも高さが一定になるように「比率固定」 */
  aspect-ratio: 16 / 9;
  /* お好みで 4/3 や 21/9 などに変更OK */
}

.slideshow .slide {
  display: none;
}

.slideshow .slide.active {
  display: block;
}

.slideshow img {
  width: 100%;
  display: block;
}

/* スライドボタン（任意） */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
}

.slide-btn.prev {
  left: 8px;
}

.slide-btn.next {
  right: 8px;
}

/* 今年の祭りバナー */
.current-fes {
  margin-bottom: 32px;
}

.current-fes-banner {
  display: block;
  background: linear-gradient(135deg, #66bb6a, #43a047);
  color: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.banner-label {
  display: inline-block;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 4px;
}

.banner-title {
  display: block;
  font-size: 20px;
  font-weight: bold;
  margin-top: 4px;
}

.banner-sub {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

/* お知らせ一覧 */
.section-title {
  font-size: 22px;
  margin-bottom: 12px;
  border-left: 4px solid #2e7d32;
  padding-left: 8px;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.news-list li+li {
  border-top: 1px solid #eee;
}

.news-list a {
  display: flex;
  padding: 10px 12px;
  align-items: baseline;
}

.news-date {
  width: 110px;
  font-size: 13px;
  color: #666;
}

.news-title {
  font-size: 14px;
}

.news-more {
  margin-top: 8px;
  text-align: right;
}

.news-more a {
  font-size: 13px;
  color: #2e7d32;
}

/* フッター */
.site-footer {
  background: #333;
  color: #ccc;
  text-align: center;
  padding: 12px 0;
  font-size: 12px;
}

/* 祭りページ用デザイン -------------------------- */

.festival-container {
  max-width: 1100px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.festival-hero {
  text-align: center;
  margin-bottom: 24px;
}

.festival-title {
  font-size: 28px;
  margin: 0;
  color: #2e7d32;
}

.festival-subtitle {
  font-size: 15px;
  margin-top: 8px;
  color: #555;
}

.festival-section {
  margin-bottom: 32px;
}

.festival-heading {
  font-size: 22px;
  margin-bottom: 12px;
  border-left: 4px solid #2e7d32;
  padding-left: 8px;
}

.festival-info-list {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  list-style: none;
  margin: 0;
}

.festival-info-list li {
  margin-bottom: 10px;
  font-size: 15px;
}

.festival-info-list li:last-child {
  margin-bottom: 0;
}

.festival-text-block {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.festival-text {
  font-size: 15px;
  margin-bottom: 12px;
}

.festival-table-wrapper {
  overflow-x: auto;
}

.festival-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.festival-table th,
.festival-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.festival-table th {
  background: #2e7d32;
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
}

.festival-button-center {
  text-align: center;
}

.festival-button {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

.festival-button:hover {
  opacity: 0.85;
  background: #388e3c;
}

/* 巡行ルートページ用 ---------------------- */

.route-map-wrapper {
  margin: 12px 0 16px;
  text-align: center;
}

.route-map-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.route-map-embed {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.route-notice {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

/* 出店一覧ページ用 ---------------------- */

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-item {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.shop-name {
  font-size: 18px;
  margin: 0 0 4px;
  color: #2e7d32;
}

.shop-meta {
  font-size: 14px;
  margin: 0 0 6px;
  color: #555;
}

.shop-note {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}


/* お知らせ一覧ページ用 ---------------------- */

.news-container {
  max-width: 1100px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.news-hero {
  margin-bottom: 24px;
}

.news-page-title {
  font-size: 26px;
  margin: 0;
  color: #2e7d32;
  /* 緑のベースカラー */
}

.news-page-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.news-section {
  margin-bottom: 28px;
}

/* アーカイブ用に少しコンパクトにしたい場合 */
.news-list-archive .news-date {
  width: 110px;
}

.news-list-archive .news-title {
  font-size: 13px;
}

/* 動画一覧ページ用 ---------------------- */

.video-container {
  max-width: 1100px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.video-hero {
  margin-bottom: 24px;
}

.video-page-title {
  font-size: 26px;
  margin: 0;
  color: #2e7d32;
  /* ベースの緑 */
}

.video-page-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.video-section {
  margin-bottom: 32px;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.video-title {
  font-size: 18px;
  margin: 0 0 4px;
  color: #2e7d32;
}

.video-meta {
  font-size: 13px;
  color: #666;
  margin: 0 0 8px;
}

.video-frame {
  position: relative;
  width: 100%;
  /* 16:9 の比率で埋め込み */
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.video-link-list li+li {
  margin-top: 6px;
}

.video-link-list a {
  color: #2e7d32;
  text-decoration: underline;
}

.video-link-list a:hover {
  opacity: 0.8;
}

/* お問い合わせページ -------------------------- */

.contact-container {
  max-width: 800px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.contact-hero {
  margin-bottom: 24px;
}

.contact-title {
  font-size: 26px;
  margin: 0;
  color: #2e7d32;
}

.contact-subtitle {
  font-size: 14px;
  margin-top: 8px;
  color: #555;
}

.contact-section {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-form {
  margin: 0;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.form-row textarea {
  resize: vertical;
}

.required {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  color: #d32f2f;
}

.form-note {
  font-size: 12px;
  color: #666;
}

.form-buttons {
  text-align: center;
  margin-top: 18px;
}

.contact-submit-btn {
  min-width: 220px;
}

/* エラー時の見た目（emailSend.jsの .error クラス用） */
.error {
  border-color: #d32f2f !important;
  background: #ffebee;
}

/* 確認モーダル -------------------------- */

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.confirm-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.confirm-modal-content {
  position: relative;
  max-width: 600px;
  margin: 60px auto;
  background: #fff;
  border-radius: 8px;
  padding: 20px 20px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.confirm-modal-content h2 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 12px;
}

.confirm-details {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
  white-space: pre-line;
}

.confirm-buttons {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.confirm-buttons .festival-button {
  min-width: 150px;
}

.send-complete-message {
  margin-top: 20px;
  padding: 12px 16px;
  background: #e8f5e9;
  /* 明るい緑系（成功色） */
  border-left: 4px solid #2e7d32;
  color: #2e7d32;
  font-size: 15px;
  border-radius: 6px;
}

/* ================================
   お知らせ詳細
   ================================ */
.news-detail{
  max-width: 900px;
  margin: 16px auto 40px;
  padding: 0 12px;
}

.breadcrumb{
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}
.breadcrumb a{ color: #2e7d32; text-decoration: underline; }

.news-article{
  background:#fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px 14px;
}

.news-meta{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap: wrap;
  margin: 0 0 6px;
}

.news-date-badge{
  display:inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 700;
  font-size: 12px;
}

.news-category{
  font-size: 12px;
  color: #666;
  font-weight: 700;
}

.news-article-title{
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  color: #2e7d32;
}

.news-article-body{
  font-size: 14px;
  line-height: 1.7;
  color:#333;
}
.news-article-body h2{
  margin: 14px 0 8px;
  font-size: 16px;
  border-left: 4px solid #2e7d32;
  padding-left: 8px;
}
.news-article-body ul{
  padding-left: 18px;
}

.news-sign{
  margin-top: 18px;
  color:#666;
  font-size: 13px;
}

.news-article-foot{
  margin-top: 16px;
  text-align: left;
}

.btn-back{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #2e7d32;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.btn-back:hover{ opacity: 0.92; }
