.index-greeting {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto 90px;
}

.index-greeting-title {
  margin-bottom: 45px;
  text-align: center;
}

.index-greeting-title span {
  display: block;
  font-size: 2.2rem;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.index-greeting-title small {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #6eb943;
}

.index-greeting-content {
  border: 1px solid #6eb943;
  border-radius: 20px;
  padding: 45px;
}

.index-greeting-profile {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 52fr);
  gap: 4%;
  align-items: start;
  margin-bottom: 50px;
}

.index-greeting-photo {
  position: relative;
}

.index-greeting-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.index-greeting-photo figcaption {
  position: absolute;
  left: 50%;
  bottom: -27px;
  transform: translateX(-50%);
  width: 130px;
  padding: 12px 0 0;
  background: #fff;
  border-radius: 10px;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.index-greeting-photo figcaption span {
  display: block;
  margin-bottom: 3px;
}

.index-greeting-photo figcaption small {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  color: #6eb943;
}

.index-greeting h3 {
  margin-bottom: 17px;
  font-size: 2.4rem;
  letter-spacing: 0.15em;
  line-height: 1.6;
}

.index-greeting-career dl {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  line-height: 1.5;
}

.index-greeting-career dt,
.index-greeting-career dd {
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid #6eb943;
}

.index-greeting-career dt:last-of-type,
.index-greeting-career dd:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border: none;
}

.index-greeting-career dt {
  font-weight: 700;
  color: #6eb943;
  line-height: 1.6;
}

.index-greeting-message h3 {
  color: #6eb943;
  letter-spacing: 0.2em;
  margin-bottom: 15px;
}

.index-greeting-message h3 br {
  display: none;
}

.index-greeting-message p {
  margin-bottom: 10px;
  line-height: 1.6;
  text-align: justify;
}

.index-greeting-message p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 1024px) {
  .index-greeting-content {
    border-radius: 10px;
    padding: 20px;
  }
}

@media screen and (max-width: 768px) {
  .index-greeting-title {
    margin-bottom: 25px;
  }

  .index-greeting {
    margin-bottom: 55px;
  }

  .index-greeting-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .index-greeting-profile {
    display: contents;
  }

  .index-greeting-message {
    order: 1;
  }

  .index-greeting-career {
    order: 2;
  }

  .index-greeting-photo {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .index-greeting h3 {
    text-align: center;
  }

  .index-greeting-career dl {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .index-greeting-message h3 {
    letter-spacing: 0.12em;
  }
}

@media screen and (max-width: 480px) {
  .index-greeting-photo figcaption {
    width: 110px;
    bottom: -24px;
    border-radius: 5px;
    padding-top: 7px;
    font-size: 1.7rem;
  }

  .index-greeting-photo figcaption span {
    margin-bottom: 2px;
  }

  .index-greeting-photo figcaption small {
    font-size: 1.3rem;
  }

  .index-greeting h3 {
    font-size: 2rem;
  }

  .index-greeting-message h3 {
    line-height: 1.3;
  }

  .index-greeting-message h3 br {
    display: inline;
  }

}
