    html, body {
      font-family: 'Zen Kaku Gothic New', sans-serif;
      color: #333;
      background: url('images/original2.jpg') no-repeat center center fixed;
      background-size: cover;
      padding-bottom: 60px;
    }

    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background-color: rgba(255, 255, 255, 0.85);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 30px;
      z-index: 1000;
      backdrop-filter: blur(6px);
    }

    .logo img { height: 50px; }

    nav ul {
      list-style: none;
      display: flex;
      gap: 20px;
    }

    nav ul li {
      position: relative;
    }

    nav ul li a {
      display: inline-block;
      padding: 10px 20px;
      font-weight: 500;
      color: #333;
      text-decoration: none;
      transition: color 0.3s;
      position: relative;
    }

    nav ul li a:hover {
      color: #8b0000;
    }

    nav ul li a::after {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0%;
      height: 2px;
      background-color: #8b0000;
      transition: width 0.3s;
    }

    nav ul li a:hover::after {
      width: 100%;
    }

    .dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #fff;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
      border-radius: 8px;
      overflow: hidden;
      z-index: 1000;
    }

    nav ul li:hover .dropdown-menu {
      display: block;
    }

    .dropdown-menu li a {
      display: block;
      padding: 12px 20px;
      font-size: 15px;
      white-space: nowrap;
      color: #333;
    }

    .dropdown-menu li a:hover {
      background: #f3e9d2;
      color: #8b0000;
    }

        main {
      padding-top: 0; /* ← ここを0に */
    }

.catch-section {
  margin-top: 0;  /* ← 確実に上に詰める */
  padding-top: 140px;  /* ← 内容をナビ下にずらす */
  padding-bottom: 60px;
  background-image: url('images/abu10.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}

    .catch-section h1 {
      font-size: 42px;
      color: #8b0000;
      margin-bottom: 20px;
    }

    .catch-section p {
      font-size: 18px;
      color: #333;
    }

 
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 30px;
    }

    nav {
      margin-right: 60px; /* 追加: ナビゲーションを左へ寄せる */
      margin-left: auto;  /* ロゴとの間に余白を確保 */
    }

    nav ul {
      display: flex;
      gap: 20px;
      list-style: none;
    }
/* 画像のはみ出し防止 */
img {
  max-width: 100%;
  height: auto;
}

/* レイアウト切り替え */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }
  .controls {
    flex-direction: column;
  }
  nav ul {
    flex-direction: column; /* スマホ用に縦メニュー化 */
  }
  nav ul li {
    margin-bottom: 10px;
  }
}

/* ===== レスポンシブ対応 ===== */
@media screen and (max-width: 1000px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
  }

  .facility-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  .gallery-box,
  .info-box,
  .feature-box {
    width: 100%;
  }

  .intro-message {
    font-size: 18px;
    padding: 0 10px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-right {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .map-frame {
    margin-top: 30px;
    width: 100%;
  }

  .catch-logo {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
  }

  .catch-text h1 {
    font-size: 2rem;
  }

  .catch-section {
    padding-top: 120px;
    padding-bottom: 40px;
    background-position: center center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-card {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .feature-image {
    width: 80%;
    max-width: 200px;
  }

  .application-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .pdf-button {
    width: 80px;
    height: 90px;
  }

  .arrow-down {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  .catch-text h1 {
    font-size: 1.8rem;
  }

  .catch-text p,
  .intro-message {
    font-size: 16px;
  }

  .footer-left p {
    font-size: 16px;
  }

  .info-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-icon {
    margin-bottom: 6px;
  }
}
@media screen and (max-width: 480px) {
  .catch-text h1 {
    font-size: 1.8rem;
  }

  .catch-text p,
  .intro-message {
    font-size: 16px;
  }

  .footer-left p {
    font-size: 16px;
  }

  .info-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-icon {
    margin-bottom: 6px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}
@media screen and (max-width: 768px) {
  .feature-card {
    flex-direction: column;
    text-align: center;
  }

  .feature-image {
    width: 80%;
    height: auto;
  }
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.wrapper {
  min-height: 100vh;       /* ビューポートの高さに最低合わせる */
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;                 /* main が残りのスペースを埋める */
}

footer {
  /* 既存のスタイルでOKですが、上記レイアウトで最下部に押し下げられます */
}

@media screen and (max-width: 1000px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 40px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
  }

  .facility-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  .gallery-box,
  .info-box,
  .feature-box {
    width: 100%;
  }

  .intro-message {
    font-size: 18px;
    padding: 0 10px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-right {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .map-frame {
    margin-top: 30px;
    width: 100%;
  }

  .catch-logo {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
  }

  .catch-text h1 {
    font-size: 2rem;
  }

  .catch-section {
    padding-top: 120px;
    padding-bottom: 40px;
    background-position: center center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-card {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .feature-image {
    width: 80%;
    max-width: 200px;
  }

  .application-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .pdf-button {
    width: 80px;
    height: 90px;
  }

  .arrow-down {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  .catch-text h1 {
    font-size: 1.8rem;
  }

  .catch-text p,
  .intro-message {
    font-size: 16px;
  }

  .footer-left p {
    font-size: 16px;
  }

  .info-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-icon {
    margin-bottom: 6px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
}

/* 拡大画像 */
.modal-content {
  display: block;
  margin: 5% auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

@media screen and (max-width: 768px) {
  /* 背景画像の拡大抑制と位置調整 */
  html, body {
    background-size: contain; /* 拡大しすぎを防ぐ */
    background-position: center center; /* 中央に寄せる */
    background-attachment: scroll; /* 固定を解除してスクロール時も動くように */
  }

  /* ヘッダーの幅・パディング調整 */
  header {
    padding: 10px 15px;
    flex-wrap: wrap; /* 小さい画面で折り返し可能に */
    justify-content: center; /* 中央寄せに */
  }

  /* ロゴサイズを小さく */
  .logo img {
    height: 35px; /* 元は50px → 35pxに縮小 */
  }

  /* ナビゲーションの間隔を詰める */
  nav ul {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 10px 0 0 0;
  }

  /* 施設名やキャッチテキストの余白を調整 */
  @media screen and (max-width: 768px) {
  .catch-section {
    background-position: 0% 20%; /* ← PCと同じ位置 */
  }
}

  /* キャッチテキストの文字サイズを小さく */
  .catch-text h1 {
    font-size: 1.8rem; /* 元は2.8rem */
  }

  .catch-text p {
    font-size: 14px;
    padding: 0 15px;
  }

  /* 左上ロゴ（catch-logo）が大きすぎるので縮小＆中央寄せ */
  .catch-logo {
    left: 50% !important;
    transform: translateX(-50%);
    width: 80px; /* 元は120px */
  }
}

/* ハンバーガー初期非表示、モバイルナビ非表示 */
.hamburger, .nav-mobile {
  display: none;
}

/* スマホサイズのみ表示切り替え */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
  }

  .nav-pc {
    display: none;
  }

  .nav-mobile {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-mobile.open {
    display: flex;
  }

  .nav-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-mobile li {
    border-bottom: 1px solid #eee;
  }

  .nav-mobile li a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
  }

  .nav-mobile li a:hover {
    background-color: #f9f9f9;
  }
}

@media screen and (max-width: 768px) {
  .dropdown-menu {
    width: 100vw; /* スマホの画面幅いっぱい */
    left: 0;      /* 画面の左端から表示 */
    border-radius: 0; /* 角丸も無効にするなら追加 */
  }

  .dropdown-menu li a {
    padding: 14px 20px; /* 内側の余白も調整可能 */
    font-size: 16px;     /* 必要なら文字サイズも調整 */
  }
}

@media screen and (max-width: 768px) {
  .catch-section {
    background-position: top center !important;
  }
}

.hamburger {
  margin-right: 20px; /* 右側に余白を作る */
}

@media (max-width: 768px) {
  .nav-mobile.open ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列に */
    gap: 12px; /* 項目間の隙間 */
    padding: 10px 20px;
  }

  .nav-mobile.open ul li {
    border-bottom: none;
    border: 1px solid #eee;
    border-radius: 6px;
  }

  .nav-mobile.open ul li a {
    padding: 12px 15px;
    display: block;
    text-align: center; /* 文字中央寄せ */
  }
}

@media (max-width: 768px) {
  .nav-mobile {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    padding: 20px 10px;
  }

  .nav-mobile.open {
    display: block;
  }

  .nav-mobile ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 横2列 */
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .nav-mobile li {
    text-align: center;
  }

  .nav-mobile li a {
    display: block;
    padding: 12px 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
  }

  .nav-mobile li a:hover {
    background-color: #f3e9d2;
    color: #8b0000;
  }

  .nav-mobile .dropdown-menu {
    display: none !important;
  }
}

/* ▼ ハンバーガー開いたときのメニュー全体 */
.nav-mobile.open ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: white;
  padding: 10px;
  gap: 10px;
  list-style: none;
  margin: 0;
}

/* ▼ 個別メニュー項目（ボタン風解除・中央寄せ） */
.nav-mobile.open ul li {
  width: 30%; /* 3列 */
  text-align: center;
  padding: 5px 0;
  border: none;
  background: none;
  box-shadow: none;
}

/* ▼ メニュー文字リンク（ボタン風解除） */
.nav-mobile.open ul li a {
  display: inline-block;
  color: #333;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
}

/* ▼ hover時の下線 */
.nav-mobile.open ul li a:hover {
  border-bottom: 2px solid #7f0000;
}

/* ▼ ドロップダウンメニュー非表示（通常） */
.nav-mobile .dropdown-menu {
  display: none;
  padding: 0;
  margin: 0;
  background: #fff;
}

/* ▼ ドロップダウン表示時 */
.nav-mobile li.open .dropdown-menu {
  display: block;
  width: 100%;
}

/* ▼ ドロップダウン項目 */
.nav-mobile .dropdown-menu li {
  text-align: center;
  padding: 5px 0;
}

.nav-mobile .dropdown-menu li a {
  font-size: 15px;
  color: #333;
  text-decoration: none;
}

.nav-mobile ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

.nav-mobile li {
  width: 45%; /* 2列にする */
  margin: 10px 5px;
  list-style: none;
  text-align: center;
}

.nav-mobile a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  font-size: 16px;
  color: #333;
  border: none;
  background: none;
  border-radius: 0; /* ←角丸なし */
  box-shadow: none; /* ←影なし */
}

.nav-mobile li {
  position: relative;
}

.nav-mobile .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  width: 100%;
  z-index: 999;
}

.nav-mobile li:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 100%;
  margin: 0;
}

@media (max-width: 768px) {
  .controls {
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
  }

  .controls input[type="text"],
  .controls select {
    font-size: 14px;
    padding: 6px 12px;
    height: 36px; /* 約1cmの高さ */
    width: 100%;
    border-radius: 6px;
    box-sizing: border-box;
  }
}