@charset "UTF-8";

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#80000000,endColorstr=#80000000);
  background: rgba(0, 0, 0, 0.5);
	text-align: left;
}

.modal-wrap {
  height: 100%;
  padding: 0 30px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-content {
  height: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.modal-table-wrap {
  display: table;
  table-layout: fixed;
  height: 100%;
  width: 100%;
}

.modal-table-cell {
  display: table-cell;
  padding: 60px 0 60px;
  vertical-align: middle;
}

.modal-content-box {
  position: relative;
  margin: 0 auto;
  background: #fff;
}

.modal-content-inner {
  padding: 50px 30px 50px;
}

.modal-btn-close {
  position: absolute;
  top: -40px;
  right: 0;
  z-index: 9;
  height: 30px;
  width: 30px;
  cursor: pointer;
}
.modal-btn-close span {
  display: block;
  background: #fff;
  height: 2px;
  width: 30px;
}
.modal-btn-close .bar01 {
  -moz-transform: translateY(15px) rotate(-45deg);
  -ms-transform: translateY(15px) rotate(-45deg);
  -webkit-transform: translateY(15px) rotate(-45deg);
  transform: translateY(15px) rotate(-45deg);
}
.modal-btn-close .bar02 {
  -moz-transform: translateY(13px) rotate(45deg);
  -ms-transform: translateY(13px) rotate(45deg);
  -webkit-transform: translateY(13px) rotate(45deg);
  transform: translateY(13px) rotate(45deg);
}

.modal-ct-text-box .info-box div {
	margin-bottom: 8px
}

@media only screen and (max-width: 768px) {
  .modal-wrap {
    padding: 0 5%;
  }

  .modal-content-inner {
    padding: 40px 3.33333% 40px;
  }
}

/* 参加団体 */
.modal-content-inner { background: url(../images/bg.jpg);}
/* #index_participants { padding: 3em 0; } */
a#modal-open { text-decoration: none; color: blue; }
a#modal-open:hover { text-decoration: underline; }
#method .box #index_participants h3 { color: #333333; }
#index_participants [class^="box"] + [class^="box"] { margin-top: 1em; }
#index_participants [class^="box"] > h4 { font-size: 3.2rem; background: #F3E6E0; text-align: center; border-radius: 12px 12px 0 0; padding: 1em; }
#index_participants [class^="box"] > div { background: #fff;  border-radius: 0 0 12px 12px; padding: 1em; }

#index_participants .list { display: flex; justify-content: center; flex-wrap: wrap; gap: 1em 1em; }
#index_participants .list li { width: calc((100% - 1em)  / 2); }
#index_participants .list a { transition: opacity .4s; }
#index_participants .list a:hover { opacity: .5; transition: opacity .4s; }
#index_participants .list img { width: 100%; border: 1px solid #ccc; }

#index_participants .box3 > div { border-radius: 12px; padding: 1.5em 1em; }

@media screen and ( min-width:671px ) {
  #index_participants [class^="box"] > h4 { font-size: 1.6rem; }
	#index_participants .list { gap: 1em 1em; }
	#index_participants .list li { width: auto; }
	#index_participants .list a { width: auto; }
	#index_participants .list a img { width: auto; }
}