/* Import common styles from index.css */
@import url('../index.css');

.smc{

  /* 共通スタイルを上書き */
  .common-img-container.display-pc-only {
    display: block;
  }

  .common-img-container.display-sp-only {
    display: none;
  }

  /* スマホのみのスタイル */
  @media screen and (max-width: 819px) {
    .common-img-container.display-pc-only {
      display: none;
    }

    .common-img-container.display-sp-only {
      display: block;

      .title-h3 {
        padding: 8px 0 3vw 8px;
        font-size: clamp(15px, 1.6vw, 30px);
      }
    }

    .common-links-wrapper {
      .research-section {
        .research-link {
          font-size: clamp(15px, 1.3vw, 20px);
        }
      }
    }
  }
}

/* 固有のスタイルを記載 */
.smc-main-activities {
  position: relative;
}

.smc-main-activities-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  z-index: 0;
  margin: 0 calc(50% - 50vw);
  background: linear-gradient(to right, #00A73C, #21A78D);
}

.smc-main-activities .common-content {
  position: relative;
  z-index: 1;
  margin: 5vw 0;

  .title-h1 .title-main,
  .title-h1 .title-sub {
    color: #fff;

  }
  .title-h1 .title-main {
    font-size: clamp(18px, 1.8vw, 45px);
  }
}

.smc-main-activities-content-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5vw;
  width: 90%;
  margin: 5vw auto;
}

.smc-main-activities-item {
  display: flex;
  flex-direction: column;
}

.smc-main-activities-img-wrapper {
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    background-color: #C6E5D1;
    z-index: 0;
  }

  img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
  }
}

.smc-main-activities-text-area {
  color: #fff;
  margin-top: 1.5vw;
  display: flex;
  flex-direction: column;
  flex-grow: 1;

  h3 {
    font-size: clamp(14px, 1.5vw, 20px);
    letter-spacing: 1.8px;
  }

  hr {
    border: none;
    border-top: 1px solid #fff;
    margin: 1vw 0;
  }

  .text {
    color: #fff;
    font-size: clamp(13px, 1.1vw, 18px);
    flex-grow: 1;
  }

  a {
    color: #fff;
    text-decoration: underline;
    display: block;
    margin-top: 0.5vw;
    font-size: clamp(14px, 1.5vw, 20px);
  }
}

.smc-gradient-wrapper {
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100% + 60px);
    margin: 0 calc(50% - 50vw);
    background: linear-gradient(to bottom, #F2F2F200, #F2F2F2);
    z-index: 0;
    pointer-events: none;
  }

  > * {
    position: relative;
    z-index: 1;
  }
}

.smc-content-text {
  margin-bottom: 5vw;

  h2 {
    letter-spacing: 1.8px;
    line-height: 1.8;
    font-size: clamp(19px, 1.8vw, 32px);
    font-weight: 600;
    text-align: center;
    margin: 2vw 0;
  }

  .text {
    text-align: center;
    font-size: clamp(14px, 1vw, 16px);
  }
}

.smc-content {
  text-align: center;
  margin-bottom: 5vw;

  img {
    position: static;
    max-width: 40%;
    width: 100%;
  }
}

.smc-content-member-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3vw;
  gap: 2.25vw;
}

.smc-content-member-item {
  img {
    position: static;
    width: 95%;
    height: auto;
    max-width: none;
    border-right: 10px solid #00A73C;
  }

  .member-department {
    text-align: center;
    font-size: clamp(11.5px, 0.9vw, 18px);
    font-weight: 400;
  }

  .member-name {
    text-align: center;
    font-size: clamp(18px, 1.2vw, 18px);
    font-weight: 600;
    letter-spacing: 1.5px;
  }

  .member-kana {
    text-align: center;
    font-size: clamp(12px, 0.8vw, 18px);
  }

  .member-description {
    text-align: justify;
    font-size: clamp(14px, 0.9vw, 18px);
    margin-top: 1.5vw;
    letter-spacing: 0;
  }
}

.smc-content-member-text {
  margin-top: 8px;
  text-align: center;
  color: #000;

  .member-kana {
    color: #939393;
    margin-top: -0.5vw;
  }
}

.smc-content-banner {
  margin-top: 64px;
  box-shadow: 7px 7px 5px #00000033;
  padding: 60px 90px;
  background-color: #fff;
  margin-bottom: 3vw;
  border-radius: 10px;
}

.smc-content-banner-content {
  text-align: center;
  margin-bottom: 24px;

  .content-text {
    color: #00A73C;
    font-size: clamp(14px, 1.5vw, 28px);
    font-weight: 400;
    text-align: center;
  }

  .banner-slash {
    font-size: clamp(24px, 2vw, 36px);
    color: #00A73C;
  }
}

.smc-content-banner-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2vw;
  width: 85%;
  margin: 0 auto;

  img {
    width: 100%;
    height: auto;
  }
}

@media (820px >= width) {
  .smc .smc-content-banner-content .content-text .sp-br {
    display: none;
  }
}

/* スマホ版 */
@media (819px >= width) {

  .smc .smc-content-banner-content .content-text .sp-br {
    display: block;
  }

  .smc-main-activities {
    margin: 10vw auto 0;
  }

  .smc-main-activities-content {
    .title-h1 .title-sub{
      margin-bottom: 8px;
    }
  }

  .smc-main-activities-content-list {
    width: 100%;
    margin: 10vw auto;
    justify-items: center;
  }

  .smc-main-activities-text-area {
    margin-top: 3vw;

    h3 {
      height: 2lh;
    }

    hr {
      margin: 3vw 0;
    }

    a {
      margin-top: 3vw;
    }
  }

  .smc-content-text {
    margin-bottom: 12vw;
    h2, .text {
      text-align: left;
    }
  }

  .smc-content img {
    max-width: 100%;
  }

  .smc-content-member-list {
    margin-top: 8vw;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4vw;
    row-gap: 8vw;
  }

  .smc-content-banner {
    padding: 28px 15px 36px;
    margin-top: 15vw;
  }

  .smc-main-activities-img-wrapper::before {
    top: -5px;
    right: -5px;
  }

  .smc-content-banner-list {
    width: 92%;
    gap: 3vw;
  }

  .smc-content-member-item .member-name {
    font-size: 23px;
  }

  .smc-content-member-text .member-kana {
    margin-top: -1.5vw;
  }

  .smc-content-banner-content .content-text {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .smc-content-banner-content .banner-slash {
    transform: scaleY(3) scaleX(0.7);
    display: inline-block;
  }
}

@media (375px >= width) {
  .smc-content-banner-content .content-text {
    font-size: 13px;
  }
}