@charset "UTF-8";

/* ==================================================
   導入校事例 (Project Block)
================================================== */
.p-case-study {
  padding: 60px 80px 40px;
}

@media (max-width: 768px) {
    .p-case-study {
      padding: 40px 16px;
    }
}

.p-case-study__flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

@media (max-width: 768px) {
  .p-case-study__flex {
    flex-direction: column;
    gap: 20px;
  }
}

.p-case-study__logo-wrapper {
  width: 40%;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .p-case-study__logo-wrapper {
    width: 60%;
  }
}

.p-case-study__lead-wrapper {
  flex-grow: 1;
}

.p-case-study__lead {
  font-size: 2.4rem;
  line-height: 3.6rem;
  text-align: left;
}

@media (max-width: 768px) {
  .p-case-study__lead {
    font-size: 1.6rem;
    line-height: 3.2rem;
    text-align: center;
  }
}

/* ==================================================
   事例用カスタムモーダル (Component Block)
================================================== */
.p-case-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.p-case-modal.is-active {
  display: block;
}

.p-case-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(112, 112, 112, 0.8);
  cursor: pointer;
}

.p-case-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 920px;
  max-height: 80%;
  z-index: 1001;
  overflow: hidden;
  outline: none;
}

@media (max-width: 768px) {
  .p-case-modal__dialog {
    width: 95%;
    max-height: 90%;
  }
}

.p-case-modal__close-wrapper {
  display: inline-flex;;
  justify-content: flex-end;
  cursor: pointer;
}

.p-case-modal__close {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  position: relative;
}

.p-case-modal__close::after {
  content: "";
  background-image: url("/eiken/digital-certificate/assets/images/clone-btn.svg");
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.p-case-modal__header {
  flex: 0 0 auto;
  padding: 24px 32px;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1002;
}

@media (max-width: 768px) {
  .p-case-modal__header {
    padding: 24px 16px 16px;
  }
}

.p-case-modal__title-flex {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (max-width: 768px) {
  .p-case-modal__title-flex {
    flex-direction: column;
    gap: 16px;
  }
}

.p-case-modal__logo {
  flex-shrink: 0;
}

.p-case-modal__logo-img {
  width: auto;
  max-height: 60px;
}

.p-case-modal__title {
  font-size: 2.2rem;
  line-height: 3.4rem;
  margin: 0;
}

@media (max-width: 768px) {
  .p-case-modal__title {
    font-size: 1.6rem;
    line-height: 2.6rem;
    text-align: center;
  }
}

.p-case-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 28px 32px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background-color: #fff;
}

@media (max-width: 768px) {
  .p-case-modal__body {
    padding: 16px;
  }
}

.p-case-modal__body p {
  font-size: 1.6rem;
  line-height: 2.8rem;
  margin: 0;
}

@media (max-width: 768px) {
  .p-case-modal__body p {
    font-size: 1.4rem;
    line-height: 2.4rem;
  }
}