/* ========== プロフィール全体のセクション ========== */
.profile-section {
  background: #333;
  color: #fff;
  margin: 30px;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-width: 960px;
}

/* ========== 横並びエリア ========== */
.profile-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  text-align: left;
}

/* ========== プロフィール画像エリア ========== */
.profile-images {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.profile-images img {
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  filter: grayscale(80%) brightness(0.85);
  opacity: 0.9;
}

.main-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: top; /* ← これを追加！ */
  filter: grayscale(60%) brightness(0.9);
  transition: all 0.3s ease;
}

.main-photo:hover {
  filter: none;
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.sub-photos {
  display: flex;
  flex-direction: row;
  /* スマホ（初期）では横並び */
  gap: 12px;
}

.sub-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  filter: grayscale(90%) brightness(0.75);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.sub-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* ========== テキストエリア ========== */
.profile-text {
  padding-left: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  text-align: left;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  color: #fff;
}

.profile-name {
  font-size: 24px;
  margin: 0;
}

.profile-name {
  font-size: 24px;
  margin: 0;
  color: #fff;
}

.profile-role {
  font-size: 16px;
  color: #ccc;
  margin: 0 0 20px;
}

.profile-info li {
  font-size: 14px;
  margin-bottom: 0.5rem;
  color: #eee;
}


/* ========== View More ボタン ========== */
.view-button {
  margin: 10px;
  text-align: right;
}

.view-button a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-button a:hover {
  background-color: #ddd;
  transform: translateY(-2px);
}

/* ========== レスポンシブ対応 ========== */
@media (min-width: 768px) {
  .profile-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .profile-inner {
    flex-direction: column;
    text-align: left;
    /* margin: 30px; */
  }

  .profile-text {
    padding-left: 0;
    border-left: none;
  }

  .view-button {
    text-align: right;
  }
  .profile-info li {
    font-size: 11px;
  }
}

/* パソコンサイズでは縦並びに変更 */
@media (min-width: 630px) {
  .sub-photos {
    flex-direction: column;
  }
}