/* === 横スクロール防止 === */
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: 24px
}

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

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

  }
}



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

}

a:hover {
  text-decoration: underline; /* ホバー時は出す */
}


/* === .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;
  width: 100%;
}

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

/* === 各カラムの基本設定（PC 981px以上） === */
@media (min-width: 981px) {
  .col-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
  .col-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .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%; }
}

/* === タブレットサイズ（600px～980px） === */
@media (max-width: 980px) {
  .col { padding: 15px; } /* 余白を少し小さくする */
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11 {
    flex: 0 0 50%;
    max-width: 50%; /* 2列表示 */
  }
}

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

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

/* === カラムスタイル（col-item） === */
.col-item {
  padding: 10px;
  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;
    font-size: 1.8rem;
    width: 100px;
    margin-top: -80px;
    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: rgba(255, 255, 255, 1);
}

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

/* ロゴとサイト名 */
.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #231815;
}

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

.navbar-caption {
  font-size: 14px;
  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: #231815;
  width: 250px;
  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;
  margin-top: 50px;
}

/* === .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;
  display: none; /* 初期状態では非表示 */
  transition: opacity 0.3s, transform 0.3s;
}

#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%;
  }
}















/* 背景動画 */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画面いっぱいに表示 */
  transform: translate(-50%, -50%);
  z-index: -1; /* 最背面 */
}

/* メインコンテンツ */
.main-block {
  position: relative;
  color: #fff;
  text-align: center;

  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: 912px;
    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);
}




/* === 背景動画のスタイル === */
.sectionid-001 {
  padding-top: 30px;
  padding-bottom: 150px;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 60vh; /* 画面いっぱいの高さ */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.sectionid-001 .fadeIn {
  animation: zoom-in-anim 2s;
}

@keyframes zoom-in-anim {
  0% {
    transform: scale(2);
    opacity: 0;
  }
  60% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


.sectionid-002 {
  padding-top: 0px;
  margin-top: -100px;
}

.sectionid-002 .display-2 {
    font-size: 18px;
    text-align: center;

}
.sectionid-002 .card {
  height: 280px;
}

.sectionid-003 {
  padding-top: 0px;
}
.sectionid-003 .display-1 {
    font-size: 30px;
    margin-bottom: 0px;
}

.sectionid-003 .display-2 {
    font-size: 14px;
    margin-bottom: 0px;
}

.sectionid-003 .display-3 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: left;
    line-height: 30px;

}



.sectionid-003 .card {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.sectionid-004 {
  padding-top: 0px;
}

.sectionid-004 .btn-primary {
    font-size: 10px;
}

.sectionid-004 .display-1 {
    font-size: 30px;
    margin-bottom: 0px;
}

.sectionid-004 .display-2 {
    font-size: 12px;
    margin-bottom: 0px;
}

.sectionid-004 .display-3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.sectionid-004 p {
    font-size: 12px;
    margin-top: 3px;
}

.sectionid-005 {
  padding-top: 20px;
  padding-bottom: 30px;
}

.sectionid-005 .display-1 {
    font-size: 30px;
    text-align: center;

}

.sectionid-005 .display-3 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: left;
    line-height: 30px;

}


.br-pc {
    display: block;
}
 
@media (max-width: 600px) {
    .br-pc {
        display: none;
    }
}


.bg-img {
    background-image: url('../assets/images/background.jpg');
    background-size: cover;
}

@media (max-width: 600px) {
    .bg-img {
    background-image: url('../assets/images/background4.jpg');
    }
}



.img-pc {
    display: block;
    width: 100vw;
    position: absolute;
    z-index: -1;
}

@media (max-width: 600px) {
    .img-pc {
    display: none;
    }
}

.img-sp {
    display: none;
    width: 100vw;
    position: absolute;
    z-index: -1;
}

@media (max-width: 600px) {
    .img-sp {
    display: block;
    }
}








