.pc-display {
  display: block;
}

.sp-display {
  display: none;
}

.inner {
  position: relative;
  margin: 0 auto;
  max-width: 1090px;
}

#matchingPage .row {
  width: 100%;
  display: flex;
  font-family: noto-sans-cjk-jp;
  margin-bottom: 80px;
}

#matchingPage .row .block25 {
  width: 25%;
  position: relative;
  padding: 0 25px;
}

#matchingPage .row .block75 {
  width: 75%;
  position: relative;
  padding: 0 30px;
}

#matchingPage .row .block50 {
  width: 50%;
  position: relative;
  padding: 0 30px;
}

/* text */

.e-txt__ttl {
  font-size: 22px;
  line-height: 28px;
}

.e-txt__desc {
  font-size: 13px;
}

.e-txt__note {
  font-size: 11px;
}

/* cert */
.b-cert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0 0;
  background-color: #e7ebec;
  margin-bottom: 20px;
}

.b-cert__img {
  width: min(262px, 36%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding-right: 21px;
}

.b-cert__img img {
  height: 74px;
  width: auto;
}

.b-cert__img figcaption {
  font-size: 18px;
  color: #193c4b;
  text-align: center;
  line-height: 1.38;
  font-weight: bold;
}

.b-cert__content {
  position: relative;
  flex: 1;
  margin: 37px 0 20px;
}

.b-cert__ttl {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  font-size: 15px;
  background-color: #193c4b;
  padding: 5px 22px 6px 25px;
  color: #ffffff;
  width: max-content;
  margin-bottom: 0;
}

.b-cert__desc {
  font-size: 13px;
  color: #193c4b;
  line-height: 2.3;
  padding: 32px 25px 22px;
  background-color: #fff;
  margin-bottom: 0;
}

/* member */
.member__container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.member__item {
  width: 212px;
  cursor: pointer;
}

.member__img img {
  width: 100%;
  height: auto;
  display: block;
}

.member__content {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  background-color: #193c4b;
  text-align: center;
  padding: 0 2px;
}

.member__address {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 18px;
}

.member__name {
  font-size: 20px;
}

.member__name span {
  font-size: 12px;
  line-height: 19px;
  display: inline-block;
  margin-bottom: 2px;
}

/* step */
.b-stepflow {
  padding: 1rem;
  margin: 1rem;
  border-left: solid 1px #000;
}

.b-stepflow__row {
  position: relative;
  width: 100%;
  display: flex;
  font-family: noto-sans-cjk-jp;
}

.b-stepflow__number {
  padding-left: 35px;
  margin-bottom: 46px;
  font-size: 52px;
  font-family: aktiv-grotesk, Arial, Helvetica, 'sans-serif';
  color: #193c4b;
  font-weight: 500;
}

.b-stepflow__number::before {
  position: absolute;
  content: '';
  width: 20px;
  height: 20px;
  left: -29px;
  top: 0;
  margin: auto 0;
  background-color: #cccccc;
  border: solid 2px #ffffff;
  border-radius: 100%;
}

.b-stepflow__txt {
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}
.b-stepflow__content {
  padding-left: 30px;
  margin-bottom: 46px;
}

.b-stepflow__content.last {
  margin-bottom: 0;
}

.b-stepflow__headline {
  line-height: 1.6;
}

.b-stepflow__note {
  font-size: 13px;
}

/* highlight-bar */
.highlight-bar {
  align-items: center;
  padding: 1rem;
  min-height: 180px;
  background-color: #193c4b;
  color: #fff;
}
.highlight-bar__ttl {
  font-size: 20px;
  margin-bottom: 16px;
}

.highlight-bar__desc {
  font-size: 16px;
  line-height: 1.5625;
}

.highlight-bar__note {
  font-size: 13px;
  line-height: 1.923;
}

.highlight-bar__btn {
  display: flex;
  justify-content: center;
}

.highlight-bar__btn a {
  color: #fff;
  padding: 7px 20px;
  border: 1px solid #fff;
}

/* modal */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 32, 41, 0.85);
  animation: fadeIn 0.4s;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.4s;
}

.modal.hide {
  animation: fadeOut 0.4s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.modal-content {
  position: relative;
  background: #fff;
  margin: auto;
  width: 90%;
  max-width: 1090px;
  animation: modalPop 0.4s;
}

@keyframes modalPop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  cursor: pointer;
}

/* modal content */
.member-modal {
  font-family: 'Noto Sans CJK JP', sans-serif;
  position: relative;
  padding: 40px;
}
.member-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background-color: #193c4b;
  z-index: 0;
}
.member-modal--big::before {
  height: 218px;
}
.member-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 13px;
  text-transform: uppercase;
  font-family: aktiv-grotesk, Arial, Helvetica, 'sans-serif';
}

.member-modal__close::after {
  content: '';
  width: 25px;
  height: 25px;
  margin-top: -4px;
  background: url('/assets/img/matching/icon_close.svg') no-repeat center;
}
.member-modal__wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
}
.member-modal__avatar {
  max-width: 290px;
  width: 100%;
}
.member-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-modal__content {
  flex: 1;
  padding-top: 8px;
}
.member-modal__sub-ttl {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}
.member-modal__ttl {
  margin-bottom: 42px;
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
}
.member-modal__ttl span {
  font-size: 26px;
}
.member-modal__head {
  font-size: 16px;
  color: #193c4b;
  margin-bottom: 10px;
}
.member-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.member-modal__tag {
  border: 1px solid #193c4b;
  border-radius: 4px;
  padding: 6px 11px 6px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #193c4b;
}
.member-modal__desc {
  font-size: 13px;
  line-height: 1.923;
  color: #193c4b;
  margin-bottom: 18px;
}
.member-modal__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 17px 20px;
  background-color: #193c4b;
  color: #fff;
  font-size: 16px;
  max-width: 336px;
  width: 100%;
  text-align: center;
  border-radius: 100px;
  cursor: pointer;
  outline: none;
  border: none;
}

.member-modal__btn:hover {
  opacity: 0.7;
  transition: opacity 0.3s;
}

@media screen and (max-width: 1280px) {
  .inner {
    width: 90%;
  }
}

@media screen and (max-width: 821px) {
  .pc-display {
    display: none;
  }

  .sp-display {
    display: block;
  }
 
  .inner {
    width: calc(100% - 40px);
  }
  #matchingPage .row {
    flex-direction: column;
    margin-bottom: 43px;
  }
  #matchingPage .row .block25 {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    padding: 0 2.5%;
  }

  #matchingPage .row .block50,
  #matchingPage .row .block75{
    width: 100%;
    padding: 0 30px;
  }
  /* text */
  .e-txt__ttl {
    margin-bottom: 25px;
  }
  .e-txt__ttl--space {
    margin-bottom: 16px;
  }
  .e-txt__ttl--space2 {
    margin-bottom: 41px;
  }
  /* cert */
  .b-cert {
    flex-direction: column;
    gap: 30px;
    padding: 18px 10px;
  }

  .b-cert__img {
    flex-direction: row;
    width: 100%;
    gap: 10px;
    padding-right: 0;
  }

  .b-cert__img img {
    height: 41px;
  }

  .b-cert__img figcaption {
    font-size: 15px;
  }

  .b-cert__content {
    margin: 0;
  }

  .b-cert__ttl {
    font-size: 14px;
    padding: 2px 15px 4px 17px;
    transform: translateY(0);
    top: -10px;
  }

  .b-cert__desc {
    padding: 35px 15px 24px;
    font-size: 12px;
  }

  /* member */
  .member__container {
    gap: 20px;
  }
  .member__item {
    width: calc(50% - 10px);
    cursor: pointer;
  }
  .member__content {
    min-height: 130px;
  }
  .member__address {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .member__name {
    font-size: 15px;
  }

  .member__name span {
    font-size: 9px;
    line-height: 15px;
  }
  /* step */
  .b-stepflow {
    margin: 1rem;
    padding: 1rem;
  }

  .b-stepflow__row {
    flex-direction: column;
    padding-left: 15px;
  }

  .b-stepflow__number {
    padding-left: 0;
    margin-bottom: 17px;
  }

  .b-stepflow__txt {
    font-size: 15px;
  }
  .b-stepflow__content {
    padding-left: 0;
    margin-bottom: 50px;
  }

  .b-stepflow__note {
    font-size: 12px;
  }
  /* highlight bar */
  .highlight-bar {
    padding-top: 35px;
    padding-bottom: 35px;
  }
  .highlight-bar__ttl {
    font-size: min(18px, 4.5vw);
    margin-bottom: 10px;
  }

  .highlight-bar__desc {
    font-size: 12px;
    margin-bottom: 13px;
  }

  .highlight-bar__note {
    font-size: 11px;
  }

  .highlight-bar__btn {
    margin-top: 27px;
  }

  .highlight-bar__btn a {
    font-size: 16px;
  }
  /* modal */
  .modal-content {
    margin: 50px auto auto;
  }
  .member-modal {
    height: 90dvh;
    padding: 30px 32px 20px;
    overflow-y: auto;
  }
  .member-modal::before {
    height: 0;
    right: 0;
  }
  .member-modal__close {
    font-size: 15px;
    top: -35px;
  }

  .member-modal__close::after {
    width: 23px;
    height: 23px;
  }
  .member-modal__wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .member-modal__avatar {
    max-width: 280px;
    margin: 0 auto 20px;
  }
  .member-modal__content {
    padding-top: 0;
  }
  .member-modal__sub-ttl {
    font-size: 14px;
  }
  .member-modal__ttl {
    font-size: 11px;
  }
  .member-modal__ttl span {
    font-size: 18px;
  }
  .member-modal__head {
    font-size: 14px;
    margin-bottom: 7px;
  }
  .member-modal__tags {
    margin-bottom: 21px;
  }
  .member-modal__tag {
    font-size: 11px;
    padding: 4px 8px;
  }
  .member-modal__btn {
    font-size: 15px;
    padding: 15px 10px;
  }

  .member-modal__header-sp {
    position: relative;
  }
  .member-modal__header-sp::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -32px;
    right: -32px;
    bottom: -18px;
    background-color: #193c4b;
    z-index: -1;
  }
}
