#detailBG01,
#detailBG02,
#detailBG03,
#detailBG04,
#detailBG05,
#detailBG06,
div.detail { /*全画面暗転スクリーン、ポップアップゾーン共通のデフォルト非表示、動作時挙動*/
  position: fixed;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}
#detailBG01,
#detailBG02,
#detailBG03,
#detailBG04,
#detailBG05,
#detailBG06 { /*全画面暗転スクリーンの表示領域*/
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}
div.detail { /*ポップアップゾーンの表示領域*/
  background: #fff;
  padding: 4em;
  inset: 10vh 0;
  width: 90%;
  height: auto;
  max-height: 80vh;
  max-width: 800px;
  z-index: 1001;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  overflow-y: scroll;
}
div.detail .inner {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}
div.detail h3 { /*ポップアップ内のタイトル*/
  width: 100%;
  font-size: 2.2em;
  text-align: center;
  margin: 1em auto;
  line-height: 1.5;
}
/*ポップアップ内の画像、リンク共通の設定*/
div.detail div.imgbox, div.detail div.linkbox {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
/*ポップアップ内の画像の設定*/
div.detail div.imgbox img {
  width: 100%;
  height: auto;
  pointer-events: none;
}
div.detail div.imgbox {
  pointer-events: none;
}
/*ポップアップ内のリンクの設定*/
div.detail div.linkbox {
  margin: 2em auto;
}
div.detail div.linkbox a {
  font-size: 18px;
  padding: 9px 18px;
  border: 1px solid #777;
  color: #FFF;
  background: #777;
  margin: auto;
}
div.detail div.linkbox a:hover {
  background: #FFF;
  color: #333;
  transition: all 0.3s;
}
div.linkbox a::before {
  font-family: "Font Awesome 5 Free" !important;
  margin-right: 9px;
}
a.docfile::before { /*リンク先がファイルだったときのアイコン*/
  content: "\f15b";
} 
a.extlink::before { /*リンク先が外部リンクだったときのアイコン*/
  content: "\f14d";
}
div.detail p { /*ポップ内の詳細文*/
  width: 100%;
  text-align: left;
  margin: 1.5em 0;
  line-height: 1.5;
}
div.detail button[data-buttons="close"] { /*ポップアップ下閉じるボタン*/
  display: grid;
  place-items: center;
  width: 150px;
  border: 1px solid #111;
  padding: 0.5em;
  font-size: 1.6rem;
  margin: auto auto 1em;
}
div.detail button[data-buttons="close"]:hover, div.detail button[data-buttons="close"]:active { /*ポップアップ下閉じるボタン(ホバー、アクティブ時の挙動)
	*/
  background: #888;
  color: #fff;
  transition: all 0.2s ease-in;
}
div.detail a[data-buttons="close"] { /*ポップアップ右上×ボタン*/
  display: block;
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 4rem;
  height: 4rem;
  color: #888;
  font-size: 1.5em;
  cursor: pointer;
}
div.detail a[data-buttons="close"]::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 4rem;
  height: 2px;
  background-color: #111;
  content: "";
}
div.detail a[data-buttons="close"]::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 4rem;
  height: 2px;
  background-color: #111;
  content: "";
}
div.detail a[data-buttons="close"]:hover, div.detail a[data-buttons="close"]:active { /*ポップアップ右上×ボタン（ホバー、アクティブ時の挙動）*/
  color: #111;
  transition: all 0.2s ease-in;
}

#detailBG01.active,
#detailBG02.active,
#detailBG03.active,
#detailBG04.active,
#detailBG05.active,
#detailBG06.active,
div.detail.active { /*非表示→表示*/
  visibility: visible;
  opacity: 1;
}
div[data-info-id]:hover { /*リストの詳細リンクをホバーしたときの挙動*/
  cursor: pointer;
  opacity: 0.7;
}

.news-link {
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s;
}
@media (hover: hover) and (pointer: fine) {

  .news-link:hover {
    color: #F39610;
  }

}

@media screen and (max-width: 767px) {

  div.detail {
    padding: 4em 20px;
  }
  div.detail h3 {
    font-size: 2.4rem;
  }
  div.detail p {
    font-size: 1.5rem;
  }
  div.detail div.linkbox a {
    font-size: 1.6rem;
  }

}