img {
  box-shadow: 10px 10px 10px rgba(0,0,0,0.6);
}

video{
  box-shadow: 10px 10px 10px rgba(0,0,0,0.6);
}
.swiper-slide img {
  height: auto;
  width: 100%;
}

.swiper-slide video {
  height: auto;
  width: 100%;
}

/* ページネーションの矢印の色 */
.swiper-button-next,
.swiper-button-prev {
    --swiper-navigation-color: var(--font-color-4); 
}

/* ページネーションのポッチのサイズと色 */
.swiper-pagination-bullet {
	width: 12px; /* 幅 */
	height: 12px; /* 高さ */
	background: #9acd32; /* 色：緑 */
	opacity: 0.5; /* 半透明（デフォルトでは0.2） */
}

.chapter{
  color: var(--font-color-1);
  text-align: center;
  margin: 3rem auto 0.5rem auto;
  font-size: 2rem;
}

#overview-text {
  color: var(--font-color-1);
  margin: 2rem;
  display: block;
}

#overview-text li{
  list-style: square;
  font-size: 0.9rem;
  margin-left: 2rem;
}     

#popup-background{
  display: none;
	position: fixed; /* ブラウザの定位置に固定 */
	background: rgba(0, 0, 0, .5); /* 背景色を半透明の黒色に */
	width: 100%; /* 要素の横幅を画面全体に */
	height: 100%; /* 要素の高さを画面全体に */
	top: 0; /* 要素の固定位置をブラウザ最上部に合わせる */
	left: 0; /* 要素の固定位置をブラウザ左側に合わせる */
	z-index: 999; /* 要素をコンテンツより前面に（要調整） */
}

#popup-news-wrapper{
  display: none;
  position: fixed;
  background-color: white;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateX(-50%)
             translateY(-50%);
  z-index: 1000;
  transition: all .3s ease;
  border: solid;
  padding: 2rem;
  color: var(--font-color-1);
  text-align: center;
  color: var(--font-color-4);
  border-radius: 1rem;
}

/* ↓ポップアップ閉じるボタン↓ */
#detail-close-btn {
  display: block;
  position: sticky;
  position: -webkit-sticky;
  top: 1.5rem;
  left: calc(100% - 30px - 1.5rem);
  width: 30px;
  height: 30px;
  background: var(--font-color-4); /* ボタンの背景色 */
}

#detail-close-btn::before, #detail-close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 25px;
  background: #fff; /* バツ印の色 */
}

#detail-close-btn:before {
  transform: translate(-50%,-50%) rotate(45deg);
}

#detail-close-btn::after {
  transform: translate(-50%,-50%) rotate(-45deg);
}

#detail-close-btn:hover{
  background: var(--font-color-2);
}
/* ↑ポップアップ閉じるボタン↑ */

.popup-title{
  font-size: 2rem;
  margin:1rem;
}

.popup-link a{
  color:inherit;
  color:var(--font-color-2);
  font-size: 1.5rem;
}

.popup-link a:hover{
  color:var(--font-color-1);
}

.popup-text a{
  color:inherit;
  color:var(--font-color-2);
}

.popup-text a:hover{
  color:var(--font-color-1);
}

.headline-in-news-text {
  margin: 2rem 0rem 0.5rem 0rem;
  font-size: 1.3rem;
  color: var(--font-color-1); /* 下の文章と色を合わせる */
}

.news-text {
  margin: 0.5rem 2rem 1.5rem 2rem; /* 左右に2remの余白を作りインデントを揃える */
  color: var(--font-color-1);
}


/* タブレット用 */
@media screen and (max-width: 959px) {
  #popup-news-wrapper{
    padding: 2rem;
    width: 80vw;
  }

  #detail-close-btn {
    top: 0.5rem;
    margin: 0 0 0 calc(100% - 30px - 2rem);
  }
}

/* スマホ用 */
@media screen and (max-width: 480px) {
  #popup-news-wrapper{
    padding: 0.5rem;
  }

  #detail-close-btn {
    margin: 0 0 0 calc(100% - 30px - 0.5rem);
  }
}
