/* ========== プロフィール全体のセクション ========== */
.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: flex-start;
  justify-content: center;
  text-align: left;
}

/* PC表示（横並び） */
@media (min-width: 768px) {
  .profile-inner {
    flex-direction: row;
  }
}

/* スマホ表示（縦並び） */
@media (max-width: 767px) {
  .profile-inner {
    flex-direction: column;
    align-items: center;
  }
}

/* ========== 写真エリア ========== */
.profile-images {
  display: flex;
  flex-direction: row; /* PCでは横並び */
  gap: 1rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap; /* 小さい画面では折り返し */
  margin-bottom: 2rem;
}

/* メイン写真 */
.main-photo {
  width: 200px;
  height: 250px;           /* 高さを自動にして全体を表示 */
  max-height: 400px;      /* 高さの上限を設定してレイアウト崩れ防止 */
  object-fit: cover;     /* 全体が見えるように収める */
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  filter: grayscale(100%) brightness(0.8); /* 白黒表示 */
  transition: all 0.3s ease;
}

.main-photo:hover {
  filter: grayscale(0) brightness(1); /* ホバーでカラー */
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* サブ写真 */
.sub-photos {
  display: grid;
  grid-template-columns: repeat(2, 100px); /* 横2列 */
  grid-template-rows: repeat(2, 100px);    /* 縦2行 */
  gap: 12px;
}

.sub-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  filter: grayscale(100%) brightness(0.7); /* 白黒表示 */
  opacity: 0.8;
  transition: all 0.3s ease;
}

.sub-photo:hover {
  filter: grayscale(0) brightness(1); /* ホバーでカラー */
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* スマホ表示は縦並び */
@media (max-width: 767px) {
  .profile-images {
    flex-direction: column;
    align-items: center;
  }
  .sub-photos {
    display: flex;       /* 横スクロールにする場合 */
    flex-direction: row; /* 横並びに */
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

/* スマホはボーダーをなくす */
@media (max-width: 767px) {
  .profile-text {
    padding-left: 0;
    border-left: none;
  }
}

/* Service / Tools を太く大きく */
.highlight-title {
  font-weight: 700;
  font-size: 16px; /* PCは16px、必要なら18pxも可 */
  color: #fff;
}

/* プロフィール名と役職 */
.profile-name {
  font-size: 24px;
  margin: 0 0 8px 0;
  color: #fff;
}

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

/* プロフィール情報リスト */
.profile-info li {
  font-size: 14px;
  margin-bottom: 0.5rem;
  color: #eee;
}