/* ------------------------------------プロフィールdiv------------------------------------ */
#edit-profile-button, 
#logout-button {
  align-items: center; /* ボタン内のテキストを中央に揃える */
  margin: 8px 5px;
  padding: 2px 6px; /* 縦幅を小さく調整 */
  font-size: 8px; /* フォントサイズも少し小さく */
  color: #808080; /* 灰色に変更 */
  background-color: transparent;
  border: 1px solid #808080; /* 枠線も灰色に変更 */
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 影を追加 */
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#edit-profile-button:hover, 
#logout-button:hover {
  background-color: #0056b3;
  color: #fff;
}

#profile-div {
  display: flex;               /* ← 子要素を横並びに */
  justify-content: center;     /* 子要素を中央寄せ */
  align-items: center;         /* 高さ方向も中央寄せ（必要なら） */
  margin: 20px auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f7f7f7;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#profile-n2 {
  display: flex;            /* 子要素を横並びにする */
  gap: 10px;                /* 要素間の隙間を調整 */
  justify-content: center; /* 中央寄せ（必要に応じて） */
  align-items: center;      /* 縦方向の中央揃え（任意） */
}

#profile-n3 {
  flex: 4;
}
#profile-n4 {
  flex: 6;
}

#profile-bio {
  font-size: 8px;
}



#profile-div h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

#profile-pic {
  margin: 0 auto 0px;
  border-radius: 50%;  /* 円形にする */
  width: 80%;          /* 親要素の80%の幅 */
  height: auto;        /* 高さを横幅に合わせる（自動調整） */
  aspect-ratio: 1/1;   /* 正方形を維持 */
  object-fit: cover;   /* 画像を要素にフィットさせる（縦横比を維持） */
}



#profile-div p {
  font-size: 18px;
  margin: 10px 0;
  color: rgba(85, 85, 85, 0.7);
}

#profile-div strong {
  font-weight: bold;
  color: #333;
}
/* ------------------------------------プロフィールdiv------------------------------------ */



/* ------------------------------------プロフィール編集div------------------------------------ */

#user-settings-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(8px);
  z-index: 9999;
}

#user-settings-form {
  display: none; /* デフォルトで非表示 */
  width: min(92vw, 520px);
  padding: 28px 26px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
  text-align: left;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

#user-settings-form .profile-modal-header {
  margin-bottom: 18px;
}

#user-settings-form h2 {
  font-size: 22px;
  margin-bottom: 6px;
  color: #0f172a;
  text-align: left;
}

#user-settings-form .profile-modal-subtitle {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

#user-settings-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #475569;
  font-weight: 600;
}

#user-settings-form input[type="text"],
#user-settings-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#user-settings-form input[type="text"]:focus,
#user-settings-form textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#user-settings-form textarea {
  height: 110px;
  resize: vertical; /* テキストエリアのサイズを変更可能に */
}

#user-settings-form input[type="file"] {
  margin-bottom: 18px;
  font-size: 13px;
  color: #475569;
}

#user-settings-form .profile-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

#cancel-button,
#finish-editing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#cancel-button {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

#finish-editing-button {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

#cancel-button:hover,
#finish-editing-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.25);
}

#profile-pic-preview {
  display: block;
  margin: 6px auto 18px;
  border-radius: 50%;
  width: 40%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}
/* ------------------------------------プロフィール編集div------------------------------------ */ ------------------ */