@charset "utf-8";

.modal {
  padding: 30px 0 60px;
}
@media screen and (max-width: 768px) {
.modal {
  padding: 15px 0 30px;
}
}
.inner {
  /*width: min(100%, 1120px);*/
  width: min(100%, 800px);
  margin: 0 auto;
  padding: 0 20px;
}
@media screen and (max-width: 768px) {
.inner {
  padding: 0 10px;
}
}

/* モーダルを開くボタン */
.modal__cards {
  display: flex;
  justify-content:space-between;
  flex-wrap:wrap;
}

.modal__card {
  /*width: calc((100% - (32px * 2)) / 3);*/
  width: 48%;
  transition: opacity .6s;
}

.modal__card:hover {
  opacity: .6;
}

.modal__trigger {
  cursor: pointer;
}

/*.modal__card:nth-child(2n - 1),
.modal__card:nth-child(2n) {
  margin-left: 32px;
}*/

.modal-card__image {
  position: relative;
}

.modal-card__image:before {
  display: block;
  padding-top: 120%;
  content: '';
}

.modal-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-card__content {
  margin-top: 30px;
}
@media screen and (max-width: 768px) {
.modal-card__content {
  margin-top: 15px;
}
}
.modal-card__title {
  text-align: center;
}

/* モーダル本体 */
.modal__wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
}

.modal__layer {
  height: 100%;
  background: rgba(50, 50, 50, .85);
  cursor: pointer;
}

.modal__container {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100% - 80px), 1000px);
  height: calc(100% - 220px);
  padding: 20px;
  background: #fff;
}
@media screen and (max-width: 768px) {
.modal__container {
  top: 50%;
  width: min(calc(100% - 30px), 1000px);
  height: calc(90% - 120px);
  padding: 10px;
}
}
.modal__inner {
  position: relative;
  overflow-y: scroll;
  height: 100%;
  padding: 80px 20px 20px;
}
@media screen and (max-width: 768px) {
.modal__inner {
  padding: 40px 10px 10px;
}
}
/* モーダルを閉じるボタン */
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(50, 50, 50, 1);
  cursor: pointer;
  transition: opacity .6s;
}
@media screen and (max-width: 768px) {
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: rgba(50, 50, 50, 1);
  cursor: pointer;
  transition: opacity .6s;
}
}
.modal__close:hover {
  opacity: .6;
}

.modal__close:before,
.modal__close:after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #fff;
  content: '';
}

.modal__close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーダル内のコンテンツ */
.profile__group {
  display: flex;
  align-items: flex-start;
}

.profile__image {
  position: relative;
  width: 400px;
}

.profile__image:before {
  display: block;
  padding-top: 120%;
  content: '';
}

.profile__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__content {
  width: calc(100% - 400px);
  padding-left: 40px;
}

.profile__title {
  font-size: 18px;
}

.profile__text {
  margin-top: 30px;
  line-height: 2;
}