.professors-profile-container {
  padding: 5vw 7vw 6vw;
  background-color: rgba(255, 255, 255, 0.96);
  display: grid;
  row-gap: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);

  a {
    text-decoration: none;

    .button-group {
      margin-bottom: 1vw 0;
    }
  }

  .link-hp {
    text-decoration: underline;
    color: black;
  }

  .bold {
    font-weight: bold;
  }

  .professors-profile-content {
    display: flex;
    align-items: flex-start;
    gap: 3.5vw;
    margin-bottom: 1vw;

    .professors-profile-image {
      width: 14vw;
    }
    .professors-profile-name {
      display: grid;
      gap: 0.25vw;
      margin-bottom: 1.5vw;

      span:first-child {
        font-size: clamp(14px, 1.0vw, 18px);
        color: #00A73C;
        font-family: 'Book Antiqua', serif;
        font-weight: 400;
        letter-spacing: 1.4px;
      }
      span:last-child {
        font-size: clamp(24px, 2.0vw, 40px);
        font-family: "Zen Kaku Gothic Antique";
        color: #000000;
        letter-spacing: 2.8px;
        font-weight: 600;
      }
    }
    
    .professors-profile-name-sp {
      display: none;
    }

    .professors-profile-text {
      display: grid;
      gap: 10px;
      flex-grow: 1;
    }

    .professors-profile-info {
      border-bottom: 1px solid #00A73C;
      display: grid;
      gap: 5px;
      padding-bottom: 0.7vw;

      span:first-child {
        color: #00A73C;
        font-size: clamp(14px, 0.9vw, 18px);
        font-family: "Zen Kaku Gothic Antique";
        font-weight: 600;
        letter-spacing: 0.4px;
      }
      span:last-child {
        font-size: clamp(14px, 0.8vw, 18px);
        font-family: "Zen Kaku Gothic Antique";
        font-weight: 400;
        letter-spacing: 0.4px;
      }
    }
  }

  .list {
    .list-item {
      .list-title {
        font-size: clamp(14px, 1vw, 18px);
        font-weight: 400;
        width: 20vw;
        padding: 1.5vw 1vw;
      }
      
      .list-content {
        padding: 1.5vw;
      }
    }
  }

  .title-h3 {
    margin-top: 2.5vw;
  }

  .title-h5 {
    margin-bottom: 0.5vw;
  }

  ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  li {
    position: relative;
    padding-left: 1em;
    letter-spacing: 0;
  }

  li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #000;
    font-size: 1em;
  }

  /* 年表リストの改行時のインデント */
  .year-list {
    list-style: none;
  }

  .year-list li {
    text-indent: -2em;
    padding-left: 2em;
    margin-bottom: 0.5em;

    &::before {
      content: '・';
      position: unset;
      color: #000;
      font-size: 1em;
    }
  }

  /* 改行された行のインデント調整 */
  .year-list .indent {
    margin-left: 2.8em;
  }
  
}

.professors-profile-message {
  position: relative;
  background-color: #F2F2F2;
  padding: 6vw 7vw 4vw;
  margin: 60px 0 1vw;
  display: grid;
  gap: 40px;

  .title-h1 {
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;

    .title-main {
      font-size: clamp(18px, 1.2vw, 42px);
    }
  }

  .text {
    letter-spacing: 0;
  }
}

.professors-profile-link {
  text-decoration: none;
  display: inline-block;
  margin: 40px auto 0;
}

.professors-button {
  margin-inline: auto;
}

@media screen and (max-width: 820px) {
  .professors-profile-container {
    .professors-profile-content {
      flex-wrap: wrap;

      .professors-profile-name-sp {
        display: grid;
        width: 100%;
      }
      .professors-profile-name-pc {
        display: none;
      }

      .professors-profile-image {
        display: flex;
        align-items: center;
        gap: 24px;
        width: 100%;

        img {
          width: 40%;
        }
      }
    }

    .list {
      .list-item {
        .list-title {
          width: 100%;
          font-size: clamp(16px, 1.5vw, 18px);
          font-weight: 400;
          padding: 1.5vw 3vw;
        }
        
        .list-content {
          min-height: 5vh;
        }
      }
    }

    .title-h5 {
      margin-bottom: 1vw;
    }
  }

  .professors-profile-message {
    padding: 80px 20px 40px;
    .title-h1 {
      top: -24px;
    }
  }
}