.country-modal-overlay {
  display: none;
  position: fixed;
  z-index: 500;
  left: 0;
  top: 0;
  height: 100%;
  width: 100vw;
  background-color: rgba(var(--black), 0.5);
  animation-name: modal-open;
  animation-duration: 0.5s;
}

.country-modal-content {
  width: 70%;
  margin: 5vh auto 0 auto;
  height: 80vh;
  background-color: rgb(var(--gray));
  color: rgb(var(--blue));
  border-radius: 8px;
  padding: 8px 40px;
  background-image: url(https://jds-scholarship.org/image/modal-world-map.png);
  background-repeat: no-repeat;
  background-size: 35%;
  background-position: right 10px bottom 10px;
}

@keyframes modal-open {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.country-modal-header {
  display: flex;
  justify-content: space-between;
  height: 10%;
}

.country-modal-close {
  font-size: 200%;
}

.country-modal-close:hover {
  cursor: pointer;
}

div.country-modal-close {
  width: 70%;
  padding: 8px 40px;
  margin: 0 auto;
  text-align: center;
  color: rgb(var(--blue));
  background-color: rgb(var(--white));
}

.country-modal-body {
  height: 90%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.country-modal-body img {
  margin-right: 10px;
}

.country-modal-body ul {
  column-count: 2;
  list-style-type: none;
  padding: 0 15px 0 0;
}

.country-modal-body li {
  margin-bottom: 10px;
  border: 1.6px rgb(var(--blue)) solid;
  border-radius: 4px;
  background-color: rgb(var(--white));
}

.country-modal-body a {
  color: rgb(var(--blue));
  display: block;
  padding: 10px;
  font-weight: bold;
}

/* download */

.download-modal-overlay {
  display: none;
  position: fixed;
  z-index: 500;
  left: 0;
  top: 0;
  height: 100%;
  width: 100vw;
  background-color: rgba(var(--black), 0.9);
  animation-name: modal-open;
  animation-duration: 0.5s;
}

.download-modal-content {
  max-width: 800px;
  margin: 5vh auto 0 auto;
  height: 90vh;
  background-color: rgb(var(--white));
  color: rgb(var(--black));
  border-radius: 8px;
  padding: 5px 30px;
  background-repeat: no-repeat;
  background-size: 10%;
  background-position: right 10px bottom 10px;
}

.download-modal-header {
  justify-content: space-between;
  height: 4%;
  font-size: 200%;
  text-align: right;
}

.download-modal-close {

}

.download-modal-close:hover {
  cursor: pointer;
}

div.download-modal-close {

}

.download-modal-body {
  height: 90%;
  padding: 1%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.download-modal-body ul {
  column-count: 2;
  list-style-type: none;
  padding: 0 15px 0 0;
}

.download-modal-body li {
  border-radius: 4px;
  background-color: rgb(var(--white));
}

.download-modal-body a {
  color: rgb(var(--blue));
  display: block;
}

.download-modal-body a:hover {
  opacity: var(--opacity);
}

.abc-item{
  text-align: right
}

.abc-content{

  margin-left: 10px;
}

.abc-item-list{
  display: flex;
}

/* ダウンロードボタン  */
.download-yes-btn {
  width: 350px;
  text-align: center;
  padding: 2% 1%
}

.download-no-btn {
  width: 350px;
  text-align: center;
  padding: 2% 1%;
}

.download-yes-no {
  display: flex;
  justify-content: center;
}


/* univ-video */
.video-modal-overlay {
  display: none;
  position: fixed;
  z-index: 500;
  left: 0;
  top: 0;
  height: 100%;
  width: 100vw;
  background-color: rgba(var(--black), 0.5);
  animation-name: modal-open;
  animation-duration: 0.5s;
}

.video-modal-content {
  max-width: 800px;
  margin: 10vh auto 0 auto;
  background-color: rgb(var(--white));
  color: rgb(var(--black));
  border-radius: 8px;
  padding: 20px 50px 40px;
  background-repeat: no-repeat;
  background-size: 10%;
  background-position: right 10px bottom 10px;
}

.video-modal-header {
  justify-content: space-between;
  height: 10%;
  font-size: 200%;
  text-align: right;
  margin-right: -20px;
}

.video-modal-close {

}

.video-modal-close:hover {
  cursor: pointer;
}

div.video-modal-close {

}

.video-modal-body {
	
}

.video-modal-body p {
	line-height: 1.6;
}

.video-yes-btn {
  width: 350px;
  text-align: center;
  padding: 2% 1%
}

.video-no-btn {
  width: 350px;
  text-align: center;
  padding: 2% 1%;
}

.video-yes-no {
  display: flex;
  justify-content: space-around;
}

/* SPサイズ */
@media screen and (max-width: 960px) {
  .video-modal-body {
    padding: 0% 6%;
  }

  .video-modal-content {
    padding: 0 0 6% 0;
    width: 80%;
  }

  .video-modal-overlay {
    display: none;
    position: fixed;
    z-index: 500;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(var(--black), 0.9);
    animation-name: modal-open;
    animation-duration: 0.5s;
  }

  .video-modal-header {
    font-size: 200%;
	text-align: right;
	padding-top: 3%;
	padding-right: 3%;
	margin-right: 0;
}

  .video-modal-close {

}
	
  .video-yes-no {
  display: block;
}

  .video-yes-btn {
  width: 95%;
  text-align: center;
  padding: 1% 0%;
}

  .video-no-btn {
  width: 95%;
  text-align: center;
  padding: 1% 0%;
}

}


/* seminar */

.seminar-modal-overlay {
  display: none;
  position: fixed;
  z-index: 500;
  left: 0;
  top: 0;
  height: 100%;
  width: 100vw;
  background-color: rgba(var(--black), 0.9);
  animation-name: modal-open;
  animation-duration: 0.5s;
}

.seminar-modal-content {
  max-width: 800px;
  margin: 5vh auto 0 auto;
  height: 85vh;
  background-color: rgb(var(--white));
  color: rgb(var(--black));
  border-radius: 8px;
  padding: 30px 50px;
  background-repeat: no-repeat;
  background-size: 10%;
  background-position: right 10px bottom 10px;
}

 @media screen and (max-width: 750px) {
	 .seminar-modal-content {
		 max-width: 90%;
		 padding: 10px;
	 }
}
.seminar-modal-header {
  justify-content: space-between;
  height: 4%;
  font-size: 200%;
  text-align: right;
}

.seminar-modal-close {

}

.seminar-modal-close:hover {
  cursor: pointer;
}

div.seminar-modal-close {

}

.seminar-modal-body {
  height: 90%;
  padding: 1%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.seminar-modal-body ul {
  column-count: 2;
  list-style-type: none;
  padding: 0 15px 0 0;
}

.seminar-modal-body li {
  border-radius: 4px;
  background-color: rgb(var(--white));
}

.seminar-modal-body a {
  color: rgb(var(--blue));
  display: block;
}

.seminar-modal-body a:hover {
  opacity: var(--opacity);
}

/* ダウンロードボタン  */
.seminar-yes-btn {
  width: 350px;
  text-align: center;
  padding: 2% 1%
}

.seminar-no-btn {
  width: 350px;
  text-align: center;
  padding: 2% 1%;
}

.seminar-yes-no {
  display: flex;
  justify-content: center;
	overflow: hidden;
}




/* モーダルCSS */
.modalArea {
  display: none;
  position: fixed;
  z-index: 10; /*サイトによってここの数値は調整 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modalBg {
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.9);
}

.z {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 500px;
  padding: 10px 30px;
  background-color: #fff;
}

.closeModal {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  cursor: pointer;
}

/* 以下ボタンスタイル */
button {
  padding: 10px;
  border: 1px solid #282828;
  border-radius: 2px;
  cursor: pointer;
  background-color: rgba(var(--gray));
}

#openModal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.country-modal-body a:hover {
  opacity: var(--opacity);
}

/* SPサイズ */
@media screen and (max-width: 960px) {
  .country-modal-body img {
    width: 60px;
    height: 40px;
  }

  .country-modal-body ul {
    column-count: 1;
  }

  .country-modal-content {
    background-color: rgb(var(--blue));
    color: rgb(var(--white));
    border-end-end-radius: 0;
    border-end-start-radius: 0;
    background-image: none;
  }

 /* SP download */

  .download-modal-body {
    padding: 0% 6% 0% 1%;
  }

  .download-modal-content {
    padding: 0;
    width: 80%;
  }

  .download-modal-overlay {
    display: none;
    position: fixed;
    z-index: 500;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(var(--black), 0.9);
    animation-name: modal-open;
    animation-duration: 0.5s;
    font-size: 40%;
  }

  .download-modal-header {
    font-size: 400%;
	text-align: right;
}

  /* ダウンロードボタン  */
.download-yes-btn {
  width: 95%;
  text-align: center;
  padding: 1% 0%;
}

.download-no-btn {
  width: 95%;
  text-align: center;
  padding: 1% 0%;
}

.download-yes-no {
  display: contents;
}

}

/* PCサイズ */
@media screen and (min-width: 960px) {
  .country-modal-body img {
    width: 100px;
    height: 66px;
  }
}
