* {
  box-sizing: border-box;
}

body {
  margin: 1;
  font-family: sans-serif;
}

/* メインコンテンツの設定 */
.main-content {
    width: 100%; /* コンテンツの幅を調整 */
    max-width: 1000px; /* 最大幅を設定 */
    margin: 0px auto; /* センター表示 */
    text-align: justify; /*  テキストの両端揃え */
    padding: 10px; /* 内側の余白を追加 */
   overflow: hidden; /* 親要素から画像が飛び出さないように */
  margin-top: 70px;
}
.p1{
    width: 90%; /* コンテンツの幅を調整 */
    margin: 0px auto; /* センター表示 */
}
.p2{
    width: 80%; /* コンテンツの幅を調整 */
    margin: 0px auto; /* センター表示 */
}
 .thumbnail {
    width: 100%;
  }

  .overlay img {
    max-width: 90%;
    max-height: 90%;
  }
}

/* イメージコンテナの設定 */
.image-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    gap: 0;
    justify-content: center;
    margin: auto;
}

/* 各画像のラップ要素 */
.image-wrapper {
    position: relative; /*  画像とテキストを重ねる */
    width: 100%; /*  親要素の幅を適用 */
}

/* 画像のスタイル */
.responsive-image {
    width: 100%;
    object-fit: cover;
}
.responsive-image2 {
  width: 100%;
  height: auto;
  max-width: 1000px; /* 元画像サイズに合わせる最大値 */
  display: block;
  margin: 0 auto; /* センター寄せ */
}


/* 画像上にテキストを配置するためのスタイル */
.overlay-text {
    position: absolute;
    top: 50%; /*  画像の中央に配置 */
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 0;
    text-align: center; /*  テキストを中央揃え */
}
.topimg-text {
    position: absolute;
    top: 50%; /* スライドショーの上部に配置 */
    left: 50%;
    transform: translate(-50%, -50%);
    color: #5D554F;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    background: rgba( 255, 255, 255, 0.8); /* 背景を半透明に */
    padding: 10px 20px;
    border-radius: 0;
    width: auto;
    z-index: 1000; 
}


/* リンクのスタイル */
.overlay-text a {
    color: white;
    text-decoration: none;
    display: block; /* クリック範囲を広げる */
    width: 100%;
    height: 100%;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* ホバー時のリンクのスタイル */
.overlay-text a:hover {
    text-decoration:  none; /*  ホバー時に下線なし */
}

/* 見出し */
.highlighted-text {
    font-size: 20px; /* テキストサイズを変更 */
    background-color: #737F67; /* 背景 */
    color: #fff; /* テキストカラー（ダークグレー） */
    padding: 10px; /* 内側の余白を追加 */
    border-radius: 0; /* 角を少し丸める（不要なら削除可） */
    text-align: justify; /* 両端揃え */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* 中間見出し */
.highlighted2-text {
    font-size: 20px; /*  テキストサイズを変更 */
    background-color: rgba(115, 127, 103, 0.7); /* 背景 */
    color: #fff; /* テキストカラー（ダークグレー） */
    padding: 10px; /* 内側の余白を追加 */
    border-radius: 0; /* 角を少し丸める（不要なら削除可） */
    text-align: justify; /* 両端揃え */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}


/* 通常のリンクカラー */
.main-content a {
    display: inline-block; /*  背景色を適用するためにブロック要素化 */
    background-color: rgba(128, 121, 102, 0.7);  /* 初期の背景色 */
    color: white; /* 文字色を白に */
    padding: 10px 15px; /* 余白を追加 */
    text-decoration: none; /* 下線を消す */
    border-radius: 0; /* 角を少し丸める（不要なら `border-radius: 0;` に変更） */
    transition: background-color 0.3s ease-in-out; /* ホバー時の滑らかな変化 */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* メインコンテンツ内のリンクのみに適用 */
.main-content a:hover {
    background-color: orange; /* ホバー時にオレンジへ変更 */
    color: white; /* 文字色はそのまま */
}

/* ヘッダーのリンクには影響を与えない */
.header a {
    background-color: transparent; /* 背景色を適用しない */
    color: inherit; /* 元の文字色を維持 */
    padding: 0; /* 余白なし */
}



/* フッター全体 */
.footer {
    background-color: #5D554F; /* 落ち着いたカラー */
    color: white; /* テキストの視認性を向上 */
    text-align: center;
    padding: 20px;
    width: 100%;
}

/* フッターの内容を中央に配置 */
.footer-content {
    max-width: 800px;
    margin: auto;
    padding: 10px; /* 余白を少し狭める */
    margin-bottom: 5px;
    
}
.footer-content p {
    line-height: 0.5; /* 行間を少し詰める */
    font-size: 14px; /* 文字サイズを指定 */
}


/* 連絡先リンクのスタイル */
.phone-number a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* ホバー時のエフェクト */
.phone-number a:hover {
    text-decoration: underline;
}

/* アドレス情報のスタイル */
address {
    font-style: normal;
}
/* 施設コンテナ */
.facility-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: auto;
    max-width: 1000px;
}

/* 施設アイテム */
.facility-item {
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    align-items: center;
    background-color: rgba(245, 245, 245, 1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

/* 施設画像 */
.facility-image {
    width: 100%;
    max-width: 300px;
    height: 50%;
    object-fit: cover;
    border-radius: 5px;
}
.facility-image2 {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain; /* 枠に収めて切れないようにする */
    border-radius: 5px;
}

/* 施設テキスト */
.facility-info {
    flex: 1;
}

/* リンクのスタイル */
.facility-info a {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

/* 施設情報の説明テキスト */
.facility-info p {
    font-size: 16px;
}
.iframe-wrapper {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 450px;
  max-height: 80vh;
  border: none;
}
.facility-table1 {
  width: 80%;
  border-collapse: collapse;
  margin: 20px auto;
  font-size: 16px;
}

.facility-table1 th,
.facility-table1 td {
  border-bottom: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

.facility-table1 th {
  background-color: #f5f5f5;
  font-weight: bold;
}
.facility-table1 td:nth-child(2),
.facility-table1 th:nth-child(2),
.facility-table1 td:nth-child(3),
.facility-table1 th:nth-child(3), 
.facility-table1 td:nth-child(4),
.facility-table1 th:nth-child(4) {
  border-left: 1px solid #999;
}
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba( 255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-overlay img {
  max-width: 90%;
  max-height: 80vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  border-radius: 8px;
}
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 高さ比率（16:9） */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 100%; 
  padding: 10px;
}

.event-item {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

/* 画面サイズが小さい場合に調整 */
@media screen and (max-width: 768px) {
  .main-content {
    width: 95%;
  }

  .menu {
    width: 100%;
    right: 0;
    padding: 15px;
  }

  .logo {
    display: flex;
    align-items: center;
  }

  .logo img {
    width: 200px;
    height: auto;
    display: block;
  }
  .responsive-image2 {
    max-width: 100%;
  }
  .responsive-image {
    height: 220px; /* お好みで：たとえばスマホではコンパクトに */
  }
  .topimg-text {
    top: 50%;                  /* テキスト位置を少し下へ */
    font-size: 12px;           /* フォント小さめに */
    padding: 3px 3px;         /* 余白も縮小 */
    transform: translate(-50%, -50%);
   }
    .overlay-text {
    top: 50%;                  /* テキスト位置を少し下へ */
    font-size: 12px;           /* フォント小さめに */
    padding: 3px 3px;         /* 余白も縮小 */
    transform: translate(-50%, -50%);
   }
 .slideshow-container {
    height: 50vh;
  }
  .slide-text {
    font-size: 12px;
    padding: 3px 3px;
  }
 .slideshow-wrapper {
    max-width: 600px; /* ← 小さめに制限 */
  }
  .wrap {
    flex-direction: column;   /* 縦並びに変更 */
    align-items: center;      /* 中央揃え */
  }

  .img {
    width: 90vw;              /* 画面幅に応じて拡大 */
    height: auto;
    padding: 10px;
  }

  .modal-content {
    width: 95%;               /* モーダルの画像もやや広げる */
  }
.facility-item {
    padding: 10px;     /* スマホ時の余白を少し小さく */
    gap: 10px;         /* アイテム間の隙間も調整可能 */
  }
.facility-table1 {
  width: 100%;
  margin: 20px auto;
}
.p1{
    width: 100%; /* コンテンツの幅を調整 */
}
p2{
    width: 100%; /* コンテンツの幅を調整 */
}
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px auto;
  max-width: 100%; 
  padding: 10px;
}
}