/* === 横スクロール防止 === */
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
}

.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 {
  margin-bottom: 15px;
  line-height: 1.5;
}

p {
  font-size: 16px; /* 標準的な文字サイズ */
  line-height: 1.6; /* 読みやすい行間 */
  margin-bottom: 15px; /* 段落の間隔 */
}


.display-1 {
  font-size: 60px
}

.display-2 {
  font-size: 32px
}

@media(max-width:600px) {
  .display-1 {
    font-size: 30px;

  }
  .display-2 {
    font-size: 18px;

  }
}



a {
  color:#143C7B;
  text-decoration: none; /* アンダーラインを消す */
}

a:hover {
  opacity: 0.6;
  text-decoration: none; /* ホバー時も消す */
}


/* === .container の幅を制御（横スクロール防止） === */
.container {
  width: 100%;
  max-width: 1280px; /* PC時の最大幅 */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* === .row の調整（余計なマージンを削除） === */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 20px;
  box-sizing: border-box;
}

/* === .col 共通設定 === */
.col {
  box-sizing: border-box;
  padding: 20px;
}

/* === 各カラムの基本設定（PC 981px以上） === */
@media (min-width: 768px) {
  .col-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
  .col-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-2-5ths { flex: 0 0 20%; max-width: 20%; }
  .col-3 { flex: 0 0 25%; max-width: 25%; }
  .col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-6 { flex: 0 0 50%; max-width: 50%; }
  .col-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-9 { flex: 0 0 75%; max-width: 75%; }
  .col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .col-12 { flex: 0 0 100%; max-width: 100%; }
}



/* === タブレットサイズ（601px～767px） → 2列表示 === */
@media (min-width: 601px) and (max-width: 767px) {
  .col { padding: 15px; } /* 余白を少し小さくする */

  .col-1, .col-2, .col-2-5ths, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-11 {
    flex: 0 0 91.6667%;
    max-width: 91.6667%;
  }
  .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}



/* === スマホサイズ（600px以下） → 1列表示 === */
@media (max-width: 600px) {
  .col { padding: 10px; } /* 余白をさらに小さくする */

  .col-1, .col-2, .col-2-5ths, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* スマホ専用のカラム設定（600px以下） */
@media (max-width: 600px) {
  .s-col-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
  .s-col-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .s-col-2-5ths { flex: 0 0 20%; max-width: 20%; }
  .s-col-3 { flex: 0 0 25%; max-width: 25%; }
  .s-col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .s-col-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .s-col-6 { flex: 0 0 50%; max-width: 50%; }
  .s-col-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .s-col-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .s-col-9 { flex: 0 0 75%; max-width: 75%; }
  .s-col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .s-col-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .s-col-12 { flex: 0 0 100%; max-width: 100%; }
}

/* === 画像の最大幅を調整（はみ出し防止） === */
img {
  width: 100%;
  height: auto;
  display: block;
}

/* === カラムスタイル（col-item） === */
.col-item {
  padding: 20px;
  text-align: left; /* テキストは左寄せ */
}

.col-item .btn-primary {
  display: block; /* ブロック要素にする */
  margin: 10px auto; /* 上下10px、左右を auto にして中央寄せ */
  width: fit-content; /* ボタンの幅を中身にフィット */
}

/* === カードスタイル（card） === */
.card {
  background-color: #efefef;
  border-radius: 10px;
  padding:10px;
  margin:10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); 
}

/* === カードアイコン画像（card-icon） === */
.card-icon {
    position: absolute;
    border-radius: 50%;
    font-size: 1.8rem;
    width: 120px;
    margin-top: -100px;
    margin-left: -10px;
}



/* === ナビゲーションバーの基本スタイル === */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.3s ease-in-out;
}

/* スクロール時の背景色 */
.navbar.scrolled {
  background-color: #143C7B;
}

/* ナビゲーションコンテンツ（ロゴ＋サイト名＋ハンバーガー） */
.navbar-content {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

/* ロゴとサイト名 */
.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  margin-left: 20px;
}

.navbar-brand img {
  height: 25px; /* ロゴのサイズ */
  margin: 25px 15px 25px 25px; /* サイト名との間隔 */
}

.navbar-caption {
  font-size: 16px;
  font-weight: bold;
    width: -webkit-fill-available;

}

/* ハンバーガーメニューのボタン */
.navbar-toggler {
  display: block; /* PCでは非表示 */
  background: none;
  border: none;
  cursor: pointer;
  padding: 25px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px; /* 追加 */
  cursor: pointer;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  transition: 0.3s ease-in-out;
}

/* メニュー開閉時のアニメーション */
.hamburger.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* ナビゲーションメニュー */
.navbar-menu {
  display: none; /* 初期状態は非表示 */
  position: absolute;
  top: 70px;
  right: 25px;
  background-color: rgba(40, 40, 40, 0.9);
  width: 300px;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.navbar-menu.active {
  display: block; /* メニューが開いた時に表示 */
}

.navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-nav .nav-item {
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link {
  color: white;
  text-decoration: none;
  display: block;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* スマホ・タブレット用のメニュー表示 */
@media (max-width: 600px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-menu {
    width: 100%;
    right: 0;
    text-align: center;
  }

  .navbar-nav .nav-item {
    border-bottom: none;
  }
}


/* === ボタンの最適化 === */
.btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: #dd1b31;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #eb5a6a;
}

/* === フッターのスタイル === */
.footer {
  background-color: #282828;
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* === .container の max-width を適切に調整 === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}


/* トップに戻るボタンのスタイル */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;               /* ← 表示を透明に */
  visibility: hidden;       /* ← 見えない状態に */
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s;
  z-index: 1000;            /* 必要に応じて調整 */
}

/* フェード表示時のスタイル */
#scrollToTop.visible {
  opacity: 1;
  visibility: visible;
}

/* ホバー時の背景色変更 */
#scrollToTop:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* 中のリンクスタイル */
#scrollToTop a {
  color: white;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}




/* === レスポンシブ対応（スマホ時のナビゲーション） === */
@media (max-width: 600px) {
  .navbar-nav {
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav .nav-item {
    margin-bottom: 10px;
  }

  .btn {
    width: 100%;
  }
}

.sectionid-002 {
  padding-top: 0px;
  padding-bottom: 30px;
  background-color: #C8E5E9;
}

.sectionid-003 {
  padding-top: 50px;
}

.sectionid-004 {
  padding-top: 0px;
  padding-bottom: 60px;
  background-color: #86C8D4;
}

/* === 背景動画のスタイル === */
.sectionid-001 {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 70vh; /* 画面いっぱいの高さ */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #86C7D3;
}

.sectionid-001 .fadeIn {
  opacity: 0; /* ← 初期状態を明示！ */
  animation: fade-in-anim 2s ease 0.5s forwards;
}

@keyframes fade-in-anim {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


.hover-btn {
  background-color: #143C7B;
  padding: 5px;
  border-radius: 20px;
  transition: transform 0.3s, opacity 0.3s;
  cursor: pointer;
  font-size:14px;
  color:#fff;
  text-align:center;
}
.hover-btn:hover {
  transform: scale(1.1);
  opacity: 0.8;
}


/* 背景動画 */
.bg-video {
  position: absolute;
  bottom: 0;           /* 下に揃える */
  left: 50%;
  width: 100%;         /* 横幅100% */
  height: auto;        /* 縦は自動に（縦横比保持） */
  transform: translateX(-50%); /* 横中央に移動 */
  object-fit: cover;
  z-index: 0;
}


/* メインコンテンツ */
.main-block {
  position: relative;
  color: #fff;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 200px;
  z-index: 1; /* 動画より前面 */
}



/* === 画像のホバー拡大 === */
.modal-trigger {
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.modal-trigger:hover {
    transform: scale(1.1);
}

/* === モーダルの基本スタイル === */
/* === モーダル枠外の背景を暗くする === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

/* === モーダルの大きさを固定 === */
.modal-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    width: 80vw;
    height: 45vw;
    max-width: 980px;
    max-height: 552px;
    min-width: 300px;
    min-height: 169px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* ボタンがはみ出しても表示 */
    padding:20px;
}

/* === 画像の表示を最適化 (16:9内にフィット) === */
.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 画像のアスペクト比を維持 */
}


/* === 画像 & 動画をモーダル内で表示 === */
.modal-media-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage, #modalVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 動画を初期状態で非表示 */
#modalVideo {
    display: none;
}





/* === 閉じるボタン（正円・枠外に配置） === */
.close-btn {
    position: absolute;
    top: -20px;  /* モーダルの外に配置 */
    right: -20px; /* モーダルの外に配置 */
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    user-select: none;
    z-index: 1001; /* 他の要素より前に */
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

/* === ホバー時のエフェクト === */
.close-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* === 左右の矢印ボタン（正円） === */
.prev-btn, .next-btn {
    visibility: hidden;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; /* 正円のサイズ */
    height: 50px; /* 正円のサイズ */
    background-color: rgba(255, 255, 255, 0.7); /* 半透明の黒 */
    color: #000;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%; /* 正円 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    user-select: none; /* 選択不可 */
    z-index: 1001; /* 他の要素より前に */
}

/* === ホバー時のエフェクト（色変更 & 拡大） === */
.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 左矢印（←） */
.prev-btn {
    left: 15px; /* 画面の端ではなく、少し内側 */
}

/* 右矢印（→） */
.next-btn {
    right: 15px; /* 画面の端ではなく、少し内側 */
}


/* === 画像をページロード時に非表示にする === */
.image-gallery {
    display: none; /* 非表示にする */
}

/* === スライド画像内の中央下にインジケーターを配置 === */
.dots-container {
    visibility: hidden;
    position: absolute;
    bottom: 10px; /* 画像の内側の下部に配置 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.4); /* 半透明の黒背景 */
    padding: 5px 10px;
    border-radius: 20px; /* 角丸にする */
}

/* 各ドットのデザイン */
.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

/* 現在のスライドのドット */
.dot.active {
    background-color: white;
    transform: scale(1.3);
}

/* ホバー時 */
.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.thumb-wrapper {
  position: relative;
  display: inline-block;
  margin: 10px;
}

.thumb-img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.hover-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  border-radius: 8px;
}

.thumb-wrapper:hover .hover-overlay {
  opacity: 1;
}

.hover-caption {
  font-size: 16px;
  margin-bottom: 10px;
}

.open-gallery-btn {
  cursor: pointer;
}


/* ベース枠（カード内で使うときに便利） */
.hover-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* 画像部分 */
.thumb-wrapper.special-hover {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

/* 画像ズーム */
.thumb-wrapper.special-hover img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

/* ホバーで画像拡大 */
.thumb-wrapper.special-hover:hover img {
  transform: scale(1.05);
}

/* 説明エリア */
.hover-info {
  position: absolute;
  left: 0;
  bottom: -100%; /* 初期は隠れてる */
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  transition: bottom 0.3s ease-in-out;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%; /* 画像と同じ高さ */
}

/* ホバーで説明エリアが上がってくる */
.thumb-wrapper.special-hover:hover .hover-info {
  bottom: 0;
}

/* 説明テキスト */
.hover-caption {
  margin-bottom: 10px;
  font-size: 15px;
}

/* モーダル起動ボタン */
.hover-info .open-gallery-btn {
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.hover-info .open-gallery-btn:hover {
  background-color: #eee;
}

/* === slide_002/000.jpg 用：画像＋スライドダウン説明スタイル === */

/* 親要素 */
.hover-expand {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
}

/* ホバー判定に使うラッパー */
.hover-trigger {
  position: relative;
  z-index: 1;
}

/* 画像 */
.hover-img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: transform 0.21s ease-in-out;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.hover-expand:hover .hover-img {
  transform: scale(1.2);
  outline: 10px solid #143C7B;
  outline-offset: -10px;             /* ← 枠線が画像内に食い込むように調整 */
  border-radius: 8px;               /* ← 画像の角丸と一致させる */
  z-index: 4;
}

/* 説明エリア：画像の下に浮かせて配置（初期は非表示） */
.expand-info {
  position: absolute;
  top: 110%; /* 画像の下に配置 */
  left: 0;
  width: 100%;
  background-color: #143C7B;
  color: white;
  padding: 0px 20px 20px 20px;
  box-sizing: border-box; /* ← これを必ず入れる！ */
  border-radius: 0 0 8px 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-30px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 3;
}

/* ホバー時に説明を表示（親全体にホバー判定） */
.hover-expand:hover .expand-info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transform: scale(1.2);
  z-index: 3;
}

/* 説明テキスト */
.expand-caption {
  font-size: 13px;
  margin-bottom: 10px;
}

/* ボタン */
.expand-info .open-gallery-btn {
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 20px;
  padding: 5px 30px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.expand-info .open-gallery-btn:hover {
  background-color: #eee;
}


    .tab-container {
      display: flex;
    }

    .tab-button {
      padding: 10px 40px;
      background-color: #ccc;
      color: #333;
      border: none;
      cursor: pointer;
      font-size: 20px;
      border-radius: 8px 8px 0px 0px;
    }

    .tab-button.active {
      background-color: #fff;
      color: #143C7B;
      font-weight: bold;
border-radius: 8px 8px 0px 0px;
    }

    .tab-content {
      display: none;
      padding: 40px 20px 10px 20px;
      font-size: 36px;
      background-color: #fff;
      border-radius: 0px 10px 10px 10px;
      margin: 0px 20px;
    }

    .tab-content.active {
      display: block;
    }