@import url(lower.css);

section:not(.cta) {
  h2 {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    .en {
      letter-spacing: 0.2em;
      font-weight: 300;
    }
  }
}
.lead {
  line-height: 1.8;
}

.incubation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: max(5vw, 50px) 5vw;
  .support {
    justify-self: center;
    grid-area: 2/1/4/3;
    width: min(100%, 1200px);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 1em;
    > li {
      background-color: var(--bg-c);
      padding: 1em 1.6em;
      display: flex;
      flex-direction: column;
      gap: 6px;
      border-radius: 8px;
    }
    h4 {
      font-size: var(--fz);
      font-weight: 500;
      line-height: 1.6;
      + p {
        color: #666;
        align-self: end;
        font-size: 14px;
      }
    }
  }
  h3 {
    font-size: clamp(1.2rem, 1.8vw, 28px);
    font-weight: 500;
    margin-bottom: 1em;
  }
  .figure {
    width: min(100%, 400px);
    justify-self: center;
  }
}

.shared {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto 1fr;
  background-color: var(--bg-c);
  gap: 2em 5vw;
  ul {
    grid-area: 1/1/3/2;
    width: 520px;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
  }
  li {
    background-color: #fff;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: 160px;
    border-radius: 50%;
    font-weight: 500;
    color: var(--primary-c);
  }
}

.placement {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 5vw;
  h2 {
    margin-bottom: 2em;
  }
  .figure {
    margin-inline: auto;
    grid-area: 1/2/3/3;
    width: min(100%, 460px);
  }
  ul {
    margin-top: max(5vw, 50px);
    grid-area: 3/1/4/3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: max(3vw, 1em);
  }
  li {
    background-color: var(--bg-c);
    padding: 2em;
    container-type: inline-size;
    border-radius: 10px;
    p {
      line-height: 1.6;
    }
    > div {
      font-size: var(--fz);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 12px;
      span {
        font-size: 2em;
        color: var(--primary-c);
      }
    }
  }
  h3 {
    font-weight: 600;
    color: var(--primary-c);
  }
}

.seminar {
  background-color: var(--bg-c);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 5vw;
  dl {
    align-self: start;
    grid-area: 1/2/3/3;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
  }
  .row {
    display: flex;
    --border: 4px solid var(--bg-c);
    dt,
    dd {
      padding: 1em;
      line-height: 1.6;
    }
    dt {
      width: max(25%, 6.4em);
      border-right: var(--border);
    }
    dd {
      flex: 1;
    }
    ~ .row {
      border-top: var(--border);
    }
  }
  h2 {
    margin-bottom: 2em;
  }
  ul {
    grid-area: 3/1/4/3;
    justify-self: center;
    display: flex;
    margin-top: max(5vw, 50px);
    gap: max(3vw, 1em);
    li {
      display: grid;
      place-items: center;
      aspect-ratio: 1;
      width: 260px;
      text-align: center;
      line-height: 1.7;
      font-weight: 500;
      color: var(--primary-c);
      position: relative;
      isolation: isolate;
      z-index: 1;
      &::before,
      &:after {
        position: absolute;
        content: "";
        border-radius: 50%;
      }
      &:after {
        inset: 1em -1em -1em 1em;
        background-color: #fff;
        z-index: -1;
      }
      &::before {
        inset: 0;
        content: "";
        border: 2px solid;
      }
    }
  }
}

.journal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto 1fr;
  gap: 2em 5vw;
  --border: 1px solid color-mix(in srgb, var(--primary-c), #fff 80%);
  dl {
    grid-area: 1/2/3/3;
    border-top: var(--border);
  }
  .row {
    display: flex;
    padding-block: 1.4em;
    border-bottom: var(--border);
  }
  dt {
    width: max(25%, 6em);
    color: var(--primary-c);
    font-weight: 500;
  }
  dd {
    flex: 1;
    line-height: 1.6;
  }
}

@media (width < 1024px) {
  .shared,
  .placement,
  .seminar,
  .journal {
    display: flex;
    flex-direction: column;
    .lead {
      width: min(100%, 600px);
      align-self: center;
    }
  }
  .placement {
    .figure {
      margin-top: 2em;
    }
  }
  .seminar {
    dl {
      margin-top: 2em;
      width: min(100%, 600px);
      align-self: center;
    }
  }
  .journal {
    dl {
      width: min(100%, 600px);
      align-self: center;
    }
  }
}

@media (width < 768px) {
  .incubation {
    display: flex;
    flex-direction: column;
  }
  .shared {
    ul {
      width: 100%;
      gap: 10px;
    }
    li {
      text-align: center;
      width: 7.2em;
      .sp {
        display: block;
      }
    }
  }
  .placement {
    li {
      padding: 1.2em 1em;
      > div {
        margin-bottom: 4px;
      }
    }
  }
  .seminar {
    ul {
      flex-direction: column;
      align-items: center;
      gap: 30px;
      li {
        width: 240px;
        aspect-ratio: auto;
        padding-block: 1.6em;
        &::before,
        &:after {
          border-radius: 10px;
        }
        &:after {
          inset: 8px -8px -8px 8px;
        }
      }
    }
  }
}
