#detailBG, div.detail { /*全画面暗転スクリーン、ポップアップゾーン共通のデフォルト非表示、動作時挙動*/
  position: fixed;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}
#detailBG { /*全画面暗転スクリーンの表示領域*/
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
}
div.detail { /*ポップアップゾーンの表示領域*/
  background: #fff;
  padding: 4em;
  inset: 10vh 0 auto 0;
  width: 90%;
  height: auto;
  max-height: 80vh;
  max-width: 800px;
  z-index: 10001;
  margin: auto auto 10vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  overflow-y: scroll;
}
div.detail h3 { /*ポップアップ内のタイトル*/
  width: 100%;
  font-size: 2.2em;
  text-align: center;
  margin: 1em auto;
	color:#148648;
}
/*ポップアップ内の画像、リンク共通の設定*/
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 Pro" !important;
  margin-right: 9px;
}
a.docfile::before { /*リンク先がファイルだったときのアイコン*/
  content: "\f15c";
} 
a.extlink::before { /*リンク先が外部リンクだったときのアイコン*/
  content: "\f35d";
}
div.detail p { /*ポップ内の詳細文*/
  width: 100%;
  text-align: left;
  margin: 1.5em 0;
}
div.detail button[data-buttons="close"] { /*ポップアップ下閉じるボタン*/
  width: 120px;
  border: 1px solid #111;
  padding: 5px;
  margin: 1em auto;
}
div.detail button[data-buttons="close"]:hover, div.detail button[data-buttons="close"]:active { /*ポップアップ下閉じるボタン(ホバー、アクティブ時の挙動)
	*/
  background: #148648;
	border: 1px solid #148648;
  color: #fff;
  transition: all 0.2s ease-in;
}
div.detail a[data-buttons="close"] { /*ポップアップ右上×ボタン*/
  position: absolute;
  top: 2em;
  right: 2em;
  color: #888;
  font-size: 1.5em;
}
div.detail a[data-buttons="close"]:hover, div.detail a[data-buttons="close"]:active { /*ポップアップ右上×ボタン（ホバー、アクティブ時の挙動）*/
  color: #111;
  transition: all 0.2s ease-in;
}

#detailBG.active, div.detail.active { /*非表示→表示*/
  visibility: visible;
  opacity: 1;
}
div[data-info-id]:hover { /*リストの詳細リンクをホバーしたときの挙動*/
  cursor: pointer;
  opacity: 0.7;
}