@charset "utf-8";

.modal-kai-wrap {
  width: 100%;
  max-width: 50vw;
  position: fixed;
  top: 10%;
  left: 0;
  right: 0;
  margin: 0 auto;
  opacity: 1;
  transition: all ease-in-out .5s;
  z-index: 20;
}

.modal-kai-wrap.hide {
  transform: scale(0);
  opacity: 0;
}

#mask {
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  transition: all ease-out .8s;
}

.modal-kai-wrap.hide #mask {
  background: rgba(0, 0, 0, 0);
}

.kai-inner {
  background-color: #fff;
  border: #001f6f solid 3px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-content: space-between;
  justify-content: center;
  position: relative;
  overflow: visible;
  z-index: 20;
}


.title-kai h2 {
  color: #fff;
  background-color: #001f6f;
  padding: 1.5rem  0;
  font-size: 1.6rem;
  text-align: center;
  margin: initial;
}

.kai-main {
  padding: 1rem;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
}

.kai-main p {
  margin: initial;
  padding: 1rem;
}

p.main-cap {
  font-size: 1.1rem;
}

.kai-main p img {
  max-width: 100%;
  border-radius: 8px;
}

.kai-disc {
  display: block;
  width: 80%;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.kai-disc p {
  font-size: 1.2rem;
}

.kai-close-icon {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 30;
}

.kai-close-icon svg {
  width: 40px;
  height: 40px;
  transition: all ease-in-out .5s;
}

.kai-close-icon svg:hover {
  fill: #001f6f;
  stroke: #fff;
  transform: rotate(90deg);
}

.nanikore-btn svg {
  width: 40px;
  height: 40px;
  transition: all ease-in .3s;
}



.nanikore-btn svg:hover {
  fill: #93c9ff;
  transform: scale(1.2, 1.2);
}

/*SP版*/
@media (max-width: 750px) {
  .modal-kai-wrap {
    width: 100%;
    max-width: 90vw;
    top: 5%;
  }

  .kai-inner {
    height: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    overflow-y: scroll;
  }

  .kai-main {
    flex-direction: column;
  }

  .nanikore-btn svg {
    width: 20px;
    height: 20px;
  }

  .kai-close-icon {
    position: absolute;
    top: -10px;
    right: -10px;
  }

  .kai-close-icon svg {
    width: 25px;
    height: 25px;
  }

}
