main.profile {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.profile-container {
  display: flex;
  flex-direction: column; /* デフォルトは縦並び */
  align-items: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 20px;
}

.profile-photo {
  margin-bottom: 80px; /* 写真とテキストの間に余白を追加 */
}

.profile-photo img {
  display: block;
  width: 100%;
  max-width: 400px; /* PCでの最大幅 */
  height: auto;
  border-radius: 0%;
  border: 3px solid #ccc;
  object-fit: cover;
}

.profile-text {
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin-bottom: 30px;
  margin-top:4px;
  margin-left: 20px;
}

.profile-text h1 {
  margin-top: 0; /* タイトルが写真に近すぎるのを防ぐ */
  margin-bottom: 20px; /* タイトルと本文の間に余白を追加 */
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.profile-list li {
  margin-bottom: 12px;
  font-size: 16px;
}

/* ラベルと値を1行に中央表示 */
.profile-list .label {
  display: inline-block;
  font-weight: bold;
  margin-right: 5px;
}

.profile-list .value {
  display: inline-block;
}

/* PC表示でのレイアウト調整 */
@media (min-width: 769px) {
  .profile-container {
      flex-direction: row; /* PCでは横並び */
      text-align: left;
      align-items: flex-start;
      gap: 40px;
      /* 写真を左、文章を右にするための調整 */
  }

  .profile-photo {
      flex-shrink: 0; /* 写真が縮小しないように */
  }

  .profile-text {
      text-align: left;
      order: 1; /* 文章を写真の後に配置 */
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .profile-text {
      padding: 0 10px;
  }

  .profile-list {
      padding: 0 10px;
  }

  .profile-photo img {
      max-width: 300px; /* スマホでの最大幅を調整 */
      margin-bottom: 20px;
  }
}