@import url(lower.css);

.message,
.outline,
.organization {
  h2 {
    display: grid;
    gap: 0.6em;
    .en {
      letter-spacing: 0.2em;
      font-weight: 300;
    }
  }
}

.message {
  width: min(100%, 1500px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2em;
  h2 {
    display: grid;
    gap: 0.6em;
  }
  .message-content {
    display: flex;
    gap: 5vw;
    align-items: stretch;
  }
  .ceo-img {
    width: 36%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1em;
    background-color: var(--bg-c);
  }
  .body {
    flex: 1;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5em;
  }
  .name {
    align-self: end;
    text-align: end;
    display: flex;
    flex-direction: column;
    span {
      font-size: var(--fz);
      font-weight: 500;
    }
  }
}

.outline,
.organization {
  padding-top: 0;
  .inner {
    display: flex;
    align-items: start;
    width: min(100%, 1000px);
    margin-inline: auto;
    gap: 50px;
  }
  h2 {
    flex: 1;
    position: sticky;
    top: 40vh;
  }
}

.outline {
  dl {
    width: 60%;
  }
  .row {
    display: flex;
    padding-block: 2em;
    border-bottom: 1px solid var(--bg-c);
  }
  dt {
    width: 25%;
  }
  dd {
    flex: 1;
    li {
      line-height: 1.4;
      position: relative;
      padding-left: 1.6em;
      ~ li {
        margin-top: 0.3em;
      }
      &::before {
        position: absolute;
        inset: 0 auto auto 0;
        content: "・";
      }
    }
  }
}

.organization {
  padding-bottom: max(3vw, 30px);
  .figure {
    flex: 1;
    display: block;
    width: 60%;
  }
}

@media (width < 1024px) {
  .message {
    .message-content {
      flex-direction: column;
    }
    .ceo-img {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 10px;
    }
  }
}

@media (width < 768px) {
  .message {
    .message-content {
      flex-direction: column;
    }
    .ceo-img {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 10px;
    }
  }
  .outline,
  .organization {
    .inner {
      flex-direction: column;
    }
    h2 {
      position: static;
    }
  }
  .outline {
    dl {
      width: min(100%, 400px);
      margin-inline: auto;
    }
    .row {
      flex-direction: column;
      gap: 0.4em;
      padding-block: 1.6em;
      &:first-child {
        padding-top: 0;
      }
    }
    dt {
      width: 100%;
      font-weight: 500;
      color: var(--primary-c);
    }
  }
  .organization {
    .figure {
      width: min(100%, 400px);
      margin-inline: auto;
    }
  }
}
