/* プロフィールページ専用スタイル */

.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 0;
}

/* プロフィールヘッダー */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 2.5em;
  margin-bottom: 5em;
  padding-bottom: 5em;
  border-bottom: 1px solid var(--color-tertiary);
}

.profile-avatar {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 2.6em;
  font-weight: 400;
  line-height: 1em;
  margin:0.5em 0 0.2em 0;
  color: var(--color-primary);
}

.profile-location {
  font-size: 1.2em;
  color: var(--color-primary);
  margin: 0 0 1.5em 0;
  font-weight: 300;
}

/* プロフィールセクション */
.profile-section {
  margin-bottom: 3em;
}

.profile-account {
  margin-top: 0;
}

.social-links {
  display: flex;
  gap: 0.7em;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.social-link:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Aboutセクションヘッダー */
.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5em;
}

.profile-section-header h2 {
  margin: 0;
  font-size: 1.8em;
  font-weight: 400;
  color: var(--color-primary);
  padding-bottom: 0.5em;
}

.profile-section p {
  font-size: 1.2em;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: 1.5em;
}

.profile-statement {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: 1.5em;
  text-align: justify;
  text-indent: 0;
}

.profile-statement span {
  white-space: pre-wrap;
}

.profile-signature {
  font-size: 0.7em;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: 1.5em;
  text-align: right;
  padding-bottom: 5em;
}

.profile-signature:last-child {
  padding-bottom: 0;
}

/* 言語切り替えボタン */
.lang-buttons {
  display: flex;
  gap: 0.5em;
  align-items: center;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: 1px solid var(--color-primary);
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background-color: #fff;
  border-color: var(--color-primary);
}

.lang-btn.active {
  background-color: var(--color-primary);
  color: #f5f5f5;
  border-color: var(--color-primary);
}

.lang-en { display: none; }
.lang-ja { display: none; }

html.lang-en-active .lang-en { display: inline; }
html.lang-ja-active .lang-ja { display: inline; }




/* レスポンシブ対応 */
@media (max-width: 768px) {
  .profile-container {
    padding: 1em 0;
  }
  
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5em;
  }
  
  .profile-avatar {
    width: 170px;
    height: 170px;
  }
  
  .profile-name {
    font-size: 2em;
  }
  
  .profile-location {
    font-size: 1.1em;
  }
  
  .profile-section p {
    font-size: 1em;
  }
  
  /* 英語テキストのみハイフネーションを有効化 */
  .lang-en {
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
  }
}

@media (max-width: 480px) {
  .profile-container {
    padding: 0.5em 0;
  }
  
  .profile-section {
    margin-bottom: 2em;
  }
  
  .profile-section h2 {
    font-size: 1.5em;
  }
}
