/* ==========================================
   プロフィール管理モーダル
========================================== */

.profile-manage-modal {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;

  box-sizing: border-box;

  background: rgba(6, 4, 16, .72);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  z-index: 2147483646;
}


/* ==========================================
   モーダル本体
========================================== */

.profile-manage-modal-inner {
  position: relative;

  width: min(94vw, 720px);
  max-height: 88vh;

  overflow-y: auto;

  padding: 36px 28px 32px;

  box-sizing: border-box;

  border:
    1px solid rgba(212,175,55,.48);

  border-radius: 20px;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(126,88,190,.28),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(25,17,48,.98),
      rgba(9,7,21,.98)
    );

  color: #fff;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 25px 70px rgba(0,0,0,.55);
}


/* ==========================================
   モーダルタイトル
========================================== */

.profile-manage-modal-inner > .section-label {
  margin-bottom: 7px;

  text-align: center;
}

.profile-manage-modal-title {
  margin: 0 0 28px;

  color: #f7d774;

  font-size: 22px;
  font-weight: 600;

  letter-spacing: .08em;

  text-align: center;
}


/* ==========================================
   閉じるボタン
========================================== */

.profile-manage-modal-close {
  position: absolute;

  top: 12px;
  right: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  margin: 0;
  padding: 0;

  border:
    1px solid rgba(212,175,55,.45);

  border-radius: 50%;

  background:
    rgba(255,255,255,.06);

  color: #fff;

  font-size: 20px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    background .2s ease,
    border-color .2s ease;
}

.profile-manage-modal-close:hover {
  background:
    rgba(247,215,116,.10);

  border-color:
    rgba(247,215,116,.70);
}


/* ==========================================
   メイン / サブ セクション
========================================== */

.profile-manage-modal .mypage-card {
  margin-bottom: 18px;
  padding: 22px;

  border:
    1px solid rgba(212,175,55,.18);

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(35,24,58,.72),
      rgba(15,11,29,.78)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-manage-modal .mypage-card:last-child {
  margin-bottom: 0;
}


/* ==========================================
   セクションタイトル
========================================== */

.profile-manage-modal .mypage-card > .section-label {
  margin-bottom: 5px;

  color: rgba(247,215,116,.58);

  font-size: 9px;

  letter-spacing: .20em;

  text-align: left;
}

.profile-manage-modal .mypage-card > h2 {
  margin: 0 0 18px;

  color: #f3d98b;

  font-size: 17px;
  font-weight: 600;

  text-align: left;
}


/* ==========================================
   メインプロフィール表示
========================================== */

.profile-manage-modal .main-profile-summary {
  padding: 16px;

  border:
    1px solid rgba(255,255,255,.09);

  border-radius: 12px;

  background:
    rgba(255,255,255,.035);
}

.profile-manage-modal .main-profile-summary p {
  margin: 5px 0;

  color: rgba(255,255,255,.82);

  font-size: 13px;

  line-height: 1.7;
}

.profile-manage-modal .main-profile-summary strong {
  color: #fff;

  font-size: 16px;
}


/* ==========================================
   メインプロフィールフォーム
========================================== */

.profile-manage-modal .main-profile-form-area {
  margin-top: 18px;
  padding-top: 18px;

  border-top:
    1px solid rgba(255,255,255,.08);
}

.profile-manage-modal .main-profile-form-area label,
.profile-manage-modal .sub-profile-form label {
  display: block;

  margin-bottom: 15px;

  color: rgba(255,255,255,.76);

  font-size: 12px;

  text-align: left;
}


/* ==========================================
   Input / Select
========================================== */

.profile-manage-modal input,
.profile-manage-modal select {
  width: 100%;

  margin-top: 6px;
  padding: 10px 12px;

  box-sizing: border-box;

  border:
    1px solid rgba(212,175,55,.25);

  border-radius: 9px;

  background:
    rgba(255,255,255,.07);

  color: #fff;

  font-size: 13px;

  outline: none;
}

.profile-manage-modal input:focus,
.profile-manage-modal select:focus {
  border-color:
    rgba(247,215,116,.65);

  box-shadow:
    0 0 0 2px rgba(247,215,116,.06);
}


/* ==========================================
   生年月日
========================================== */

.profile-manage-modal .birth-select-row {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 8px;
}

.profile-manage-modal .birth-select-row select {
  margin-top: 6px;
}


/* ==========================================
   編集 / 追加ボタン
========================================== */

.profile-manage-modal .main-profile-edit-btn {
  width: 100%;

  margin-top: 14px;
  padding: 11px 14px;

  border:
    1px solid rgba(247,215,116,.40);

  border-radius: 999px;

  background:
    rgba(247,215,116,.07);

  color: #f7d774;

  font-size: 12px;
  font-weight: 600;

  cursor: pointer;
}


/* ==========================================
   保存ボタン
========================================== */

.profile-manage-modal .main-profile-save-btn {
  width: 100%;

  margin-top: 8px;
  padding: 12px 14px;

  border:
    1px solid rgba(247,215,116,.55);

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgba(111,75,158,.92),
      rgba(33,23,53,.96)
    );

  color: #fff3bd;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}


/* ==========================================
   サブプロフィールカード
========================================== */

.profile-manage-modal .sub-profile-card {
  margin-bottom: 12px;
  padding: 16px;

  border:
    1px solid rgba(255,255,255,.09);

  border-radius: 12px;

  background:
    rgba(255,255,255,.035);

  text-align: left;
}

.profile-manage-modal .sub-profile-card p {
  margin: 4px 0;

  color: rgba(255,255,255,.78);

  font-size: 12px;

  line-height: 1.6;
}

.profile-manage-modal .sub-profile-card strong {
  color: #fff;

  font-size: 15px;
}


/* ==========================================
   サブプロフィール 編集 / 削除
========================================== */

.profile-manage-modal .sub-profile-edit-btn,
.profile-manage-modal .sub-profile-delete-btn {
  margin-top: 12px;
  margin-right: 7px;

  padding: 7px 14px;

  border-radius: 999px;

  font-size: 11px;

  cursor: pointer;
}

.profile-manage-modal .sub-profile-edit-btn {
  border:
    1px solid rgba(247,215,116,.35);

  background:
    rgba(247,215,116,.06);

  color: #f7d774;
}

.profile-manage-modal .sub-profile-delete-btn {
  border:
    1px solid rgba(255,120,150,.30);

  background:
    rgba(160,40,70,.15);

  color: #ffc4d0;
}
/* ==========================================
   メインプロフィール表示エリア
========================================== */

.profile-manage-modal .main-profile-view {
  margin: 12px 0;
  padding: 0;

  border: none;
  border-radius: 12px;

  background: transparent !important;

  box-shadow: none;
}
/* ==========================================
   プロフィール表示 中央揃え
========================================== */

.profile-manage-modal .main-profile-view,
.profile-manage-modal .main-profile-summary,
.profile-manage-modal .sub-profile-card {
  text-align: center;
}


/* ==========================================
   セクション見出し 中央揃え
========================================== */

.profile-manage-modal .mypage-card > .section-label,
.profile-manage-modal .mypage-card > h2 {
  text-align: center;
}


/* ==========================================
   編集フォームだけ左揃え
========================================== */

.profile-manage-modal .main-profile-form-area,
.profile-manage-modal .sub-profile-form {
  text-align: left;
}
/* ==========================================
   サブプロフィール UI仕上げ
========================================== */

.profile-manage-modal #profileListArea {
  margin-top: 16px;
}


/* ==========================================
   サブプロフィール 1件
========================================== */

.profile-manage-modal .sub-profile-card {
  position: relative;

  margin: 0 0 14px;
  padding: 20px 18px 18px;

  border:
    1px solid rgba(212,175,55,.16);

  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(35,24,58,.55),
      rgba(15,11,29,.62)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04);

  text-align: center;
}


/* 最後だけ余白なし */

.profile-manage-modal .sub-profile-card:last-child {
  margin-bottom: 0;
}


/* ==========================================
   プロフィール情報
========================================== */

.profile-manage-modal .sub-profile-card p {
  margin: 5px 0;

  color: rgba(255,255,255,.78);

  font-size: 13px;
  line-height: 1.65;

  text-align: center;
}


/* 名前 */

.profile-manage-modal .sub-profile-card p:first-child {
  margin-bottom: 10px;
}


.profile-manage-modal .sub-profile-card strong {
  color: #f7e9bd;

  font-size: 16px;
  font-weight: 600;

  letter-spacing: .04em;
}


/* ==========================================
   編集・削除ボタン
========================================== */

.profile-manage-modal .sub-profile-edit-btn,
.profile-manage-modal .sub-profile-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 82px;

  margin:
    14px
    4px
    0;

  padding: 8px 16px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: .05em;

  cursor: pointer;

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}


/* 編集 */

.profile-manage-modal .sub-profile-edit-btn {
  border:
    1px solid rgba(247,215,116,.38);

  background:
    rgba(247,215,116,.07);

  color: #f7d774;
}


.profile-manage-modal .sub-profile-edit-btn:hover {
  transform: translateY(-1px);

  border-color:
    rgba(247,215,116,.65);

  background:
    rgba(247,215,116,.11);
}


/* 削除 */

.profile-manage-modal .sub-profile-delete-btn {
  border:
    1px solid rgba(255,120,150,.28);

  background:
    rgba(160,40,70,.13);

  color: #ffc4d0;
}


.profile-manage-modal .sub-profile-delete-btn:hover {
  transform: translateY(-1px);

  border-color:
    rgba(255,120,150,.48);

  background:
    rgba(160,40,70,.22);
}



/* ==========================================
   プロフィール追加
========================================== */

.profile-manage-modal #addProfileBtn {
  position: relative;

  width: 100%;

  margin-top: 18px;
  padding: 12px 18px;

  border:
    1px solid rgba(247,215,116,.40);

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgba(111,75,158,.36),
      rgba(33,23,53,.55)
    );

  color: #f7d774;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: .06em;

  cursor: pointer;

  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}


.profile-manage-modal #addProfileBtn:hover {
  transform: translateY(-2px);

  border-color:
    rgba(247,215,116,.65);

  box-shadow:
    0 0 18px rgba(247,215,116,.10);
}


/* ==========================================
   サブプロフィール編集フォーム
========================================== */

.profile-manage-modal .sub-profile-form {
  padding: 18px;

  border:
    1px solid rgba(212,175,55,.16);

  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(35,24,58,.55),
      rgba(15,11,29,.62)
    );

  text-align: left;
}


.profile-manage-modal .sub-profile-form h3 {
  margin: 0 0 20px;

  color: #f3d98b;

  font-size: 17px;
  font-weight: 600;

  text-align: center;

  letter-spacing: .05em;
}


/* ==========================================
   サブプロフィール 戻るボタン
========================================== */

.profile-manage-modal #subProfileCancelBtn {
  margin-top: 10px;

  background: transparent;

  color: rgba(255,255,255,.68);

  border:
    1px solid rgba(255,255,255,.16);
}


/* ==========================================
   スマホ
========================================== */

@media (max-width: 768px) {

  .profile-manage-modal .sub-profile-card {
    padding:
      18px
      12px
      16px;
  }

  .profile-manage-modal .sub-profile-edit-btn,
  .profile-manage-modal .sub-profile-delete-btn {
    min-width: 76px;

    padding:
      8px
      13px;
  }

  .profile-manage-modal .sub-profile-form {
    padding:
      16px
      12px;
  }

}


/* ==========================================
   スマホ
========================================== */

@media (max-width: 768px) {

  .profile-manage-modal {
    padding: 12px;
  }

  .profile-manage-modal-inner {
    width: 100%;
    max-height: 90vh;

    padding:
      34px
      14px
      22px;

    border-radius: 16px;
  }

  .profile-manage-modal .mypage-card {
    padding: 17px 14px;
  }

  .profile-manage-modal-title {
    margin-bottom: 22px;

    font-size: 19px;
  }

}
