/* ==============================
   プロフィール共通スタイル
   ============================== */
/* タイトルを包む親に中央揃え */
.profile-title-wrapper {
  text-align: center;
}

/* ページタイトル */
.profile-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* 下線アクセント */
.profile-title::after {
  content: "";
  position: absolute;
  left: 50%; /* 親要素中央に配置 */
  bottom: 0;
  height: 3px;
  width: 50px;
  background: linear-gradient(90deg, #81c784, #66bb6a);
  transform: translateX(-50%);
}

/* ==============================
   プロフィール編集フォーム (edit)
   ============================== */
.profile-form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.profile-form-group {
  margin-bottom: 1rem;
}

.profile-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 15px;
}

.profile-form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

.profile-form-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.profile-form-btn {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background: #4CAF50;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.profile-form-btn:hover {
  background: #45a049;
}

.profile-form-btn-danger {
  background: #e11d48;
}

.profile-form-btn-danger:hover {
  background: #be123c;
}

/* 区切り「ーー または ーー」 */
.profile-divider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.profile-divider-text {
  position: relative;
  font-size: 14px;
  padding: 0 10px;
}

.profile-divider-text::before,
.profile-divider-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 50px;
  height: 1px;
  background: #ccc;
}

.profile-divider-text::before {
  left: -60px; /* 線とテキストの間隔 */
}

.profile-divider-text::after {
  right: -60px;
}

/* 横並び用 */
.profile-form-actions-inline {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 500px;
  margin: 1rem auto 0 auto;
}

/* 外側のモーダル背景 */
.profile-destroy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1000;
}

/* 内側のモーダル要素 */
.profile-destroy-inner {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: auto;
  max-width: 400px;
  height: auto;
  max-height: 90%;
  overflow-y: auto;
  box-sizing: border-box;
  text-align: center;
}

/* タイトル */
.profile-destroy-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

/* 本文テキスト */
.profile-destroy-text {
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ボタンエリア */
.profile-destroy-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==============================
   プロフィール表示 (show)
   ============================== */
.profile-show-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.profile-show-avatar {
  text-align: center;
  margin-bottom: 1rem;
}

.profile-show-avatar img {
  max-width: 150px;
  height: auto;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.profile-show-item {
  margin-bottom: 0.5rem;
  font-size: 14px;
}

.profile-show-label {
  display: inline-block;
  width: 80px;
  font-weight: bold;
}

/* ==============================
   アバター編集用スタイル
   ============================== */
.profile-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.profile-avatar-input {
  display: none;
}

.profile-avatar-label {
  display: block;
  cursor: pointer;
  position: relative;
}

.profile-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.profile-avatar-camera {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: #6fcf97;
  color: #fff;
  border-radius: 50%;
  padding: 5px;
  font-size: 20px;
}