/* ===== ベース ===== */
body.index-page {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  margin: 0;
  background: linear-gradient(180deg, #e6f3ff 0%, #c9def7 100%);
  color: #1a2a44;
}

/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 8%; /* ← 全体を上へ持ち上げ */
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#canvas-svg {
  width: 260px;
  height: auto;
  margin-bottom: 0; /* ← 余白を詰める */
}

.hero-title {
  font-size: clamp(26px, 4vw, 46px); /* 大きめで強調 */
  margin: 6px 0 4px;
  font-weight: 900;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-titleB {
  font-size: clamp(42px, 4vw, 74px); /* 大きめで強調 */
  margin: 2px 0 4px;
  font-weight: 900;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-titleC {
  font-size: clamp(21px, 4vw, 37px); /* 大きめで強調 */
  margin: 2px 0 4px;
  font-weight: 900;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}


.hero-date {
  font-size: clamp(16px, 2.3vw, 22px);
  margin-bottom: 14px;
}

/* ===== 新ヒーローテキスト構成 ===== */
.hero-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px; /* 行間を少し詰める */
 margin-top: -30px; /* SVGとの間を詰める（上方向に移動） */
  margin-bottom: 12px; /* 吹き出しとの間に余白 */
}

.hero-text-group .hero-date.small {
  font-size: clamp(14px, 1.8vw, 18px); /* 通常の小サイズ */
  margin: 0;
}

.hero-text-group .mid {
  font-size: clamp(18px, 2.3vw, 24px); /* 中くらいサイズ */
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-text-group .hero-title {
  font-size: clamp(24px, 3vw, 36px); /* 大サイズ（h1と同等） */
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ===== 吹き出し（長文時に自動拡張） ===== */
.speech-bubble {
  background: #fff;
  color: #333;
  padding: 16px 22px;
  border-radius: 20px;
  margin-top: 20px;
  width: 380px;  /* ← 横幅を広げました（PC用） */
  height: auto;  /* ← 高さは内容に応じて可変（上下広がり対応） */
  min-height: 70px;      /* ← 最小高さだけ確保 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.4s ease; /* ← スムーズな高さ変化 */
  line-height: 1.4;          /* ← 長文でも読みやすい行間 */
  flex-wrap: wrap;           /* ← 複数行に対応 */
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 15px 12px 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.info-text {
  opacity: 0;
  transition: opacity 1s ease;
}

.info-text.fade-in {
  opacity: 1;
}

.speech-bubble .count {
  color: #e06b8b;
  font-weight: 800;
  font-size: 1.3em;
}

/* ===== 緊急情報用スタイル ===== */

/* ⚠️ 緊急情報全体（赤文字や太字など） */
.speech-bubble .emergency {
  color: #e53935;
  font-weight: 700;
}

/* ⚫ 部分的に黒字にしたい箇所 */
.speech-bubble .highlight-black {
  color: #000 !important;
  font-weight: 700;
}

/* スマホ対応（黒字強調


/* 吹き出し内で部分的に色を変える */
.speech-bubble .highlight-black {
  color: #000;              /* ← 黒文字にする */
  font-weight: 700;         /* ← 少し太字で強調 */
}

.speech-bubble .highlight-red {
  color: #d33;
  font-weight: 700;
}

.speech-bubble .highlight-blue {
  color: #1565c0;
  font-weight: 700;
}



/* ===== 更新情報 ===== */
.news {
  background: rgba(255,255,255,0.8);
  margin: 40px auto;
  padding: 20px 25px;
  border-radius: 16px;
  width: min(90%, 800px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.news h2 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.6rem;
  color: #163d68;
}
.news ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-size: 1rem;
}
.news li span {
  color: #397ab8;
  font-weight: 600;
  margin-right: 10px;
}

/* ===== アクセス ===== */
.access {
  margin: 40px auto 80px;
  width: min(92%, 900px);
  text-align: center;
}
.access h2 {
  font-size: 1.8rem;
  color: #163d68;
  margin-bottom: 20px;
}
.map-container {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
.access-info {
  text-align: left;
  margin-top: 20px;
  background: rgba(255,255,255,0.8);
  padding: 16px 20px;
  border-radius: 10px;
}
.access-info h3 {
  color: #163d68;
  margin-bottom: 8px;
}
.access-info ul {
  list-style: none;
  padding: 0;
}
.access-info li {
  margin: 8px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .hero-title { font-size: 22px; transform: translateY(-4px); }
  .hero-date { font-size: 14px; margin: 2px 0 6px; }
  #canvas-svg { width: 220px; transform: translateY(-8px); }
 /* 吹き出しを少し下げる */
  .speech-bubble {
    margin-top: 40px;         /* ← 下方向にずらす */
    width: 260px;
    min-height: 60px;         /* ← 最小高さを確保 */
    height: auto;             /* ← 内容が多いときに自動で高さ拡張 */
    padding: 16px 20px;       /* ← 内側の余白を少し広めに */
    display: flex;
    align-items: flex-start;  /* ← テキストが上から詰まるように配置 */
    justify-content: center;
    text-align: center;
  }

  /* 三角の位置も微調整（吹き出しの下側中央） */
  .speech-bubble::after {
    bottom: -14px;
  }

  /* 長文時の読みやすさ（行間調整） */
  .speech-bubble .info-text {
    line-height: 1.4;
  }
}

  /* テキスト調整 */
  .speech-bubble .info-text {
    line-height: 1.45;
  }
}
  .news h2, .access h2 { font-size: 1.4rem; }
}

/* 緊急情報スタイル */
.emergency {
  color: #c80000;
  font-weight: 800;
  font-size: 1.1em;
  text-shadow: 0 1px 6px rgba(255, 200, 200, 0.5);
  animation: blinkSoft 3s ease-in-out infinite;
}



/* === 広告画像調整 === */
.ad-banner {
  text-align: center;
  margin: 40px auto 60px;
}

.ad-banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ad-banner a {
  display: inline-block;  /* ← リンク領域を画像の大きさに限定 */
}

.ad-banner img {
  display: block;  /* ← 画像の余白をなくす */
  width: auto;
  height: auto;
  margin: 0 auto;
}

/* === フッター固定対策 === */
.footer-space {
  height: 120px; /* ← フッターの高さに合わせて調整（固定footerなら必要） */
}

    .cookie-consent {
      position: fixed;
      bottom: 20px;
      left: 20px;
      right: 20px;
      background-color: #fff;
      border: 1px solid #ccc;
      padding: 15px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      font-size: 14px;
      z-index: 10001;
    }

    .cookie-consent button {
      background: #0077cc;
      color: #fff;
      padding: 8px 12px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      float: right;
    }

    .cookie-consent button:hover {
      background: #005fa3;
    }
.overlay-block {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10000;
  display: flex;             
  justify-content: center;
  align-items: center;
  cursor: not-allowed;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

.overlay-block.hidden {
  opacity: 0;
  pointer-events: none;
}

/*snsiconの設定*/
.sns {
    border-radius: 50px;
    margin-inline: auto;
    width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 1px white;
    background-color: var(--white1);
}

.sns a {
    margin: 12px 16px;
    width: 29px;
}

.sns img {
    width: 29px;
}

.cicon p {
  font-size: clamp(10px, 2vw, 15px); 
  margin: 2px 0 4px;
  font-weight: 900;
text-align:center
}


/* ===== iframe（Google Map）共通指定 ===== */
.map-container iframe {
  width: 100%;
  height: 500px;
  border: 0;
  display: block;
}
