/* About Meページ専用CSS - 視覚的に凝ったバージョン */

/* ページヘッダー - パララックス & 浮遊図形 */
.page-header {
  height: 60vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(135deg, #2c5f7d 0%, #4a7c9e 30%, #6b9ab8 60%, #5a8aa8 100%);
  z-index: 1;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  transition: transform 0.1s ease-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
  top: 10%;
  right: 15%;
  animation: float1 20s infinite ease-in-out;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  bottom: 20%;
  left: 10%;
  animation: float2 15s infinite ease-in-out;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent);
  top: 50%;
  left: 50%;
  animation: float3 18s infinite ease-in-out;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.1); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.15); }
}

@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(calc(-50% + 20px), calc(-50% - 20px)) scale(1.08); }
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 3;
}

.page-header-content {
  position: relative;
  z-index: 4;
  text-align: center;
}

.title-wrapper {
  animation: fadeInUp 1.2s ease;
}

.page-title {
  font-size: 5rem;
  font-weight: 200;
  letter-spacing: 0.4em;
  margin-bottom: 25px;
  color: white;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

.title-line {
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, white, transparent);
  margin: 0 auto 25px;
  animation: expandLine 1.5s ease;
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to { width: 150px; opacity: 1; }
}

.page-subtitle {
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  line-height: 1.8;
}

/* イントロセクション */
.intro-section {
  text-align: center;
  padding: 80px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.intro-text p {
  font-size: 1.15rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  letter-spacing: 0.08em;
  animation: fadeIn 1s ease;
}

.intro-text p:first-child {
  animation-delay: 0.3s;
}

.intro-text p:last-child {
  animation-delay: 0.6s;
}

/* プロフィールメイン - 左右分割 */
.profile-main {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 50px;
  margin-bottom: 80px;
  align-items: start;
}

/* プロフィールビジュアル */
.profile-visual {
  position: sticky;
  top: 120px;
}

.profile-avatar {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 30px;
}

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a7c9e, #6b9ab8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  animation: avatarAppear 1s ease;
  overflow: hidden;
}

@keyframes avatarAppear {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* プロフィール写真 */
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* 写真がない場合のイニシャル表示 */
.avatar-initial {
  font-size: 5rem;
  font-weight: 300;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 154, 184, 0.4), transparent 70%);
  z-index: 1;
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

.profile-name-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.profile-name-ja {
  font-size: 2rem;
  font-weight: 400;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 0.2em;
}

.profile-name-en {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
  font-weight: 300;
}

/* プロフィール詳細 */
.profile-details {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 45px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.details-title {
  font-size: 1.8rem;
  font-weight: 400;
  color: white;
  margin-bottom: 35px;
  letter-spacing: 0.2em;
  position: relative;
  padding-bottom: 15px;
}

.details-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #6b9ab8, transparent);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.detail-item.fade-in {
  opacity: 1;
  transform: translateX(0);
}

.detail-item:nth-child(1) { transition-delay: 0.1s; }
.detail-item:nth-child(2) { transition-delay: 0.2s; }
.detail-item:nth-child(3) { transition-delay: 0.3s; }
.detail-item:nth-child(4) { transition-delay: 0.4s; }
.detail-item:nth-child(5) { transition-delay: 0.5s; }
.detail-item:nth-child(6) { transition-delay: 0.6s; }

.detail-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(107, 154, 184, 0.3);
  transform: translateX(8px);
}

.detail-icon {
  font-size: 2rem;
  width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-label {
  font-size: 0.75rem;
  color: #6b9ab8;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
}

.detail-value {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
}

/* セクションヘッダー共通 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 2rem;
  font-weight: 400;
  color: white;
  margin-bottom: 45px;
  letter-spacing: 0.2em;
}

.header-icon {
  font-size: 2.2rem;
}

/* アクティビティセクション */
.activities-section {
  margin-bottom: 80px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.activity-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
}

.activity-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.activity-card:nth-child(1) { transition-delay: 0.1s; }
.activity-card:nth-child(2) { transition-delay: 0.2s; }
.activity-card:nth-child(3) { transition-delay: 0.3s; }

.activity-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 50px rgba(74, 124, 158, 0.4);
  border-color: rgba(107, 154, 184, 0.4);
}

.activity-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.activity-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: white;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}

.activity-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

/* 質問セクション */
.questions-section {
  margin-bottom: 80px;
}

.question-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.question-card {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 35px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  text-decoration: none;
  color: white;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(-30px);
}

.question-card.fade-in {
  opacity: 1;
  transform: translateX(0);
}

.question-card:nth-child(1) { transition-delay: 0.1s; }
.question-card:nth-child(2) { transition-delay: 0.3s; }

.question-card:hover {
  background: rgba(107, 154, 184, 0.2);
  border-color: rgba(107, 154, 184, 0.4);
  transform: translateX(15px);
  box-shadow: 0 12px 45px rgba(107, 154, 184, 0.35);
}

.question-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: #6b9ab8;
  flex-shrink: 0;
  width: 90px;
  text-align: center;
  letter-spacing: 0.05em;
}

.question-content {
  flex: 1;
}

.question-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.question-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.question-arrow {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.question-card:hover .question-arrow {
  color: white;
  transform: translateX(8px);
}

/* HOMEリンク */
.back-link {
  text-align: center;
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  padding: 16px 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  transition: all 0.4s ease;
  font-weight: 300;
  background: rgba(255, 255, 255, 0.05);
}

.back-button:hover {
  background: rgba(107, 154, 184, 0.25);
  border-color: rgba(107, 154, 184, 0.6);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107, 154, 184, 0.35);
}

.back-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.back-button:hover .back-arrow {
  transform: translateX(-5px);
}

/* フェードインアニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .profile-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .profile-visual {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 3rem;
    letter-spacing: 0.3em;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .intro-text p {
    font-size: 1rem;
  }
  
  .profile-avatar {
    width: 180px;
    height: 180px;
  }
  
  .avatar-initial {
    font-size: 4rem;
  }
  
  .profile-details {
    padding: 30px 25px;
  }
  
  .detail-item {
    padding: 16px;
  }
  
  .detail-icon {
    font-size: 1.6rem;
  }
  
  .activity-grid {
    grid-template-columns: 1fr;
  }
  
  .question-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 25px;
  }
  
  .question-number {
    width: auto;
  }
  
  .question-arrow {
    transform: rotate(90deg);
  }
  
  .question-card:hover .question-arrow {
    transform: rotate(90deg) translateX(8px);
  }
}