/* モーダル時にエフェクト */
.header.blur,
.container.blur {
  filter: blur(2px);
}
.modal-close {
  position: absolute;
  top: calc(50% - 16px);
  right: 24px;
  display: block;
  width: 32px;
  height: 32px;
  transform: rotate(-45deg);
  transition-duration: 0.25s;
  cursor: pointer;
}
.modal-close:hover {
  background-color: #333;
  border-radius: 50%;
}
.modal-close:before,
.modal-close:after {
  position: absolute;
  content: "";
  display: block;
  background-color: #FFF;
}
.modal-close:before {
  top: 16px;
  width: 32px;
  height: 1px;
}
.modal-close:after {
  left: 16px;
  width: 1px;
  height: 32px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.6);
}
.modal-wrapper {
  position: fixed;
  top: 75px;
  left: calc(50% - 325px);
  margin: 0 auto;
  max-width: 650px;
  max-height: calc(100% - 100px);
  overflow-y: scroll;
  z-index: 2;
}
.modal-bg {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
}
.modal-head {
  position: relative;
  background-color: #0044AC;
  padding: 24px;
}
.modal-head h2 {
  color: #FFF;
  font-size: 2rem;
}
.modal-num {
  color: #065EE3;
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  background-color: #FFF;
  border-radius: 20px;
}
.modal-img {
  background-color: #FFF;
}
.modal-img img {
  width: 100%;
  vertical-align: bottom;
}
.modal-contents {
  padding: 24px;
  background-color: #15315E;
  color: #FFF;
}
.modal-contents a {
  color: #FFF;
  transition-duration: 0.25s;
}
.modal-contents a {
  border-radius: 0 1px 0 #FFF;
}
.modal-contents h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.modal-contents sup {
  font-size: 1.2rem;
}

/* profile-modal */
.profile-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 90%;
  height: 90%;
  max-width: 480px;
  margin: auto;
  background-color: #FFF;
  border-radius: 8px;
}
.profile-modal .modal-close {
  top: 16px;
  right: 16px;
  z-index: 10001;
}
.modal-back {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  width: 100%;
  height: 100%;
  overflow: auto;
}

.modal-header {
  height: 50%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.modal-header img {
  height: auto;
  max-width: 420px;
  object-fit: cover;
}
.modal-body {
  height: 100%;
  overflow: auto;
  background-color: #FFF;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}
.modal-content {
  padding: 16px 24px 24px;
  box-sizing: border-box;
  color: #223344;
  border-radius: 8px;
}
.modal-content .name {
  font-size: 2.0rem;
}
.modal-content .name span {
  display: block;
  font-size: 1.4rem;
}
.modal-body .english {
  margin-bottom: 16px;
  color: #065EE3;
}
.modal-photo {
  max-height: 480px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.modal-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

