/* 社員紹介セクションに関係するスタイル */

/* 社員詳細ページのレイアウトを画面いっぱいに */
.employee-detail-container {
  margin-top: 120px;
  padding: 0;
  display: flex;
  justify-content: center;
}

.employee-card {
  width: 100%;
  max-width: 800px;
  text-align: center;
  background: none;
  border-radius: 0;
  padding: 40px 0;
  box-shadow: none;
}

#employee-name {
  color: #ff4081;
  margin-bottom: 10px;
}

.role-tag,
.mbti-tag {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
}

.role-tag { background: #fff59d; }
.mbti-tag { background: #b3e5fc; }

.qa-block {
  margin-bottom: 40px;
  animation: fadeIn 0.6s ease;
}

.qa-block.visible {
  opacity: 1;
}


.question {
  max-width: 80%;
  background: #bbdefb;
  color: #0d47a1;
  padding: 20px;
  border-radius: 0 16px 16px 16px;
  position: relative;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto 20px 0;
  text-align: left;
}

.question::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-right-color: #bbdefb;
  border-left: 0;
  border-top: 0;
}


.answer {
  max-width: 80%;
  background: #ffe082;
  color: #e65100;
  padding: 20px;
  border-radius: 16px 0 16px 16px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 40px auto;
  text-align: left;
}

.answer::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-left-color: #ffe082;
  border-right: 0;
  border-top: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* レイアウトとヘッダー */
.detail-header {
  padding: 12px 0;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

#employee-detail {
  max-width: 1100px;
  margin: 120px auto 40px;
  padding: 0 20px;
}

.detail-navigation {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-button {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  padding: 20px 24px;
  border-radius: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
}

.nav-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.25);
}

.nav-button:hover::before,
.nav-button:focus-visible::before {
  opacity: 1;
}

.nav-button .nav-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-button .nav-subtitle {
  font-size: 0.85rem;
  opacity: 0.85;
  letter-spacing: 0.04em;
}

.nav-button.back-home {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}

.nav-button.next-employee {
  background: linear-gradient(135deg, #f97316, #fb7185);
}

.nav-button.next-employee::after {
  content: "→";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.65;
}

.nav-button.back-home::after {
  content: "⌂";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  opacity: 0.5;
}

.profile-wrapper {
  display: flex;
  width: 160px;
  height: auto;
  object-fit: cover;
  border-radius: 12px; /* ← 角を少しだけ丸める。完全な四角にしたいなら 0 に */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-photo:hover {
  transform: scale(1.05);
}

.profile-info {
  flex: 1 1 500px;
}

.profile-info h2 {
  margin: 0 0 10px;
  font-size: 2.4rem;
}

.profile-info .meta {
  font-style: italic;
  margin-bottom: 24px;
}

/* 社員詳細の画像をポップに表示 */
#employee-photo {
  width: 60%;
  max-width: 400px;
  display: block;
  margin: 20px auto;
  border-radius: 0;
  border: 6px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
  .profile-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .profile-photo {
    width: 120px !important;
  }

  .profile-info {
    text-align: center;
  }

  #employee-photo {
    width: 100%;
  }

  .qa-block .answer {
    margin: 0 auto 32px 0;
    max-width: 100%;
    text-align: left;
  }

  .nav-button {
    align-items: center;
    text-align: center;
  }
}