.p-top-logo {
  font-size: 20px;
  line-height: 1.4;
  max-width: 90%;
  margin: 30px auto;
  text-align: center;
}

.p-top-logo a {
  display: block;
  transition: opacity .2s;
  text-decoration: none;
  color: #333;
}

.p-top-logo a:hover {
  opacity: .66;
}

.p-top-logo a:active {
  opacity: 1;
}

#slider-wrapper .bx-controls-direction a {
  z-index: 100;
}

#slider-wrapper .bx-viewport {
  top: 0;
  left: 0;
  border: 0;
  background: #f8f8f8;
  box-shadow: none;
}

#slider-wrapper .bx-wrapper img {
  margin: 0 auto;
}

#slider-wrapper .bx-caption {
  top: 0;
  bottom: auto;
  background: rgba(0, 0, 0, .3);
}

#slider-wrapper .bx-caption span {
  padding: 1.5em;
}

#slider-wrapper .bx-pager {
  bottom: 10px;
  padding-top: 0;
}

#slider-wrapper .bx-pager a {
  background: #fff;
}

#slider-wrapper .bx-pager a:hover,
#slider-wrapper .bx-pager a.active {
  background: #fd7f23;
}

.p-news {
  line-height: 1.5;
  margin: 0;
}

.p-news::after {
  display: block;
  clear: both;
  content: '';
}

.p-news__label {
  font-size: 14px;
  font-weight: normal;
  line-height: 1.6;
  width: 180px;
  margin: 0;
  letter-spacing: 1px;
}

.p-news__content {
  line-height: 1.6;
  margin: 5px 0 20px 10px;
}

.p-news__content p:nth-child(1) {
  margin-top: 0;
}

.p-news__label {
  font-family: 'Montserrat', sans-serif;
}

.p-news__label::before {
  content: '-';
}

.p-info {
  line-height: 1.5;
}

.p-contents {
  line-height: 1.5;
  margin-bottom: 40px;
}

.p-contents__list {
  margin: 0 0 20px;
  padding: 0;
  list-style-type: none;
}

.p-contents__list::after {
  display: block;
  clear: both;
  content: '';
}

.p-contents__list li {
  position: relative;
  box-sizing: border-box;
  padding: 0 2em 0 1em;
}

.p-contents__list li::before {
  position: absolute;
  top: .5em;
  left: 0;
  content: '-';
}

.p-contents__list a {
  display: block;
  max-width: 100%;
  padding: .5em 0;
  transition: opacity .2s;
  text-decoration: none;
  color: #333;
}

.p-contents__list a:hover {
  opacity: .66;
}

.p-contents__list a:active {
  opacity: 1;
}

.p-custom-banner {
  margin-top: 50px;
  text-align: center;
}

.p-custom-banner__unit {
  background: #f8f8f8;
}

.p-custom-banner__unit--text {
  font-family: 'Montserrat', sans-serif;
  padding: 30px 10px;
  color: #f8f8f8;
  background: #333;
}

.p-custom-banner__unit--text a {
  color: #f8f8f8;
}

.p-custom-banner__image {
  width: 100%;
}

.p-custom-banner__heading {
  font-size: 24px;
  padding: 10px 0;
}

.p-custom-banner__body {
  line-height: 1.5;
  padding: 10px 0;
}

@media screen and (min-width: 600px) {
  .p-top-logo {
    display: none;
  }

  #slider-wrapper .bx-pager {
    bottom: 30px;
  }

  .p-contents__list li::before {
    top: 0;
  }

  .p-contents__list li {
    float: left;
    width: 50%;
    margin-bottom: 20px;
  }

  .p-contents__list li:nth-child(2n + 1) {
    clear: left;
  }

  .p-contents__list a {
    display: inline-block;
    padding: 0;
  }

  .p-custom-banner {
    display: table;
    width: 100%;
    margin-top: 100px;
    table-layout: fixed;
  }

  .p-custom-banner__unit {
    display: table-cell;
    box-sizing: border-box;
    width: 50%;
    max-width: 50%;
    vertical-align: middle;
    word-break: break-all;
  }

  .p-custom-banner__unit--text {
    padding: 10px 20px;
  }
}

@media screen and (min-width: 960px) {
  .p-news__label {
    float: left;
    clear: left;
    margin-right: 20px;
  }

  .p-news__content {
    overflow: hidden;
    margin: 0 0 20px;
  }

  .p-custom-banner__heading {
    font-size: 30px;
  }
}
 .free {
    border-top: 1px solid #000;
    padding: 100px 10px 10px 20px;
    text-align: center;
    position: relative; /* 相対配置を設定して、ホバー時のオーバーレイを配置する */
}

/* カテゴリボタン全体のスタイル */
.category-button {
    display: flex; /* 画像を横並びに配置する */
    flex-wrap: wrap; /* 画面幅が狭くなると折り返す */
    justify-content: center; /* 中央寄せ */
}

/* 画像コンテナのスタイル */
.category-button div {
    margin: 5px; /* 画像間の余白 */
    flex: 1 0 50px; /* 画像の幅を均等に分割し、最小幅は50px */
    max-width: 250px; /* 画像が親要素を超えないようにする */
    position: relative; /* 相対配置を設定して、ホバー時のオーバーレイを配置する */
}

/* ホバー時のオーバーレイ */
.category-button div::after {
    content: ""; /* 擬似要素にコンテンツを追加 */
    position: absolute; /* 絶対配置 */
    top: 0; /* 上端に配置 */
    left: 0; /* 左端に配置 */
    width: 100%; /* 親要素と同じ幅 */
    height: 100%; /* 親要素と同じ高さ */
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒色 */
    opacity: 0; /* 初期状態では非表示 */
    transition: opacity 0.3s ease; /* オーバーレイの表示/非表示にトランジションを追加 */
}

/* ホバー時のスタイル */
.category-button div:hover::after {
    opacity: 1; /* ホバー時にオーバーレイを表示 */
}

/* 画像のスタイル */
.category-button img {
    width: 100%; /* 画像を親要素に合わせて拡大縮小する */
    height: auto; /* アスペクト比を保持しつつ高さは自動調整 */
}

/* ホバー時のオーバーレイ */
.category-button div::after {
    content: ""; /* 擬似要素にコンテンツを追加 */
    position: absolute; /* 絶対配置 */
    top: 0; /* 上端に配置 */
    left: 0; /* 左端に配置 */
    width: 100%; /* 親要素と同じ幅 */
    height: 100%; /* 親要素と同じ高さ */
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒色 */
    opacity: 0; /* 初期状態では非表示 */
    transition: opacity 0.3s ease; /* オーバーレイの表示/非表示にトランジションを追加 */
    pointer-events: none; /* マウスイベントを無効にする */
}

/* 画像のスタイル */
.free-banner1 img {
    width: auto; /* 元の画像の幅を保持 */
    height: auto; /* 元の画像の高さを保持 */
    max-width: 100%; /* 親要素に合わせて最大幅を設定 */
    max-height: 100%; /* 親要素に合わせて最大高さを設定 */
    transition: transform 0.3s ease; /* 画像にトランジションを追加 */
    margin-bottom: 30px;
}

/* ホバー時のスタイル */
.free-banner1:hover {
    	opacity:0.7;
	transition:0.3s;
}

.iframe-wrapper {
  position: relative;
  padding-top:60%;
  height: 0;
  overflow: hidden;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-wrapper {
  text-align: center;

}
video {
  width: 100%;
  height: 56.25%;
  border-radius: 0px;
}
.video-section {
  background-color: #000; /* セクション全体の背景を黒 */
  padding: 0px 0;
}
.iframe-video-wrapper {
  position: relative; 

  width: 100%;
  height: 100%;
  overflow: hidden;
}

.iframe-video-wrapper iframe {
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* ユーザー操作を無効化（UIなしの背景動画として使う場合） */

}