/*
 * プロフィール称号の見た目（称号の行: user/profile_title_row.php、称号設定モーダル: user/profile_title_modal.php）
 *
 * ディレクターの決定（2026-11-04）で、
 * 住居・ファン歴の下の行と、プロフィール上のモーダルにしている（画面イメージ Tixpo称号.zip の試作に合わせた）。
 * ★（profile_title.rank）は表示しない（同じ決定）。
 * - 枠・見出し・ボタンは共通の部品（l_modalWrapper・m_modalCardTitle・m_buttonPrimary）に任せ、ここは並べ方だけ持つ
 * - クラス名は .p_profTitleRow / .TitleSelectModal（.p_profHeaderTitle は pluspo 共通 CSS とブロックリスト画面の見出しで使われている）
 * - 称号画像は四角い帯なので角を丸めない
 */

/* ===== 称号の行（自分・他人のプロフィール） ===== */
.p_profTitleRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
}
.p_profTitleRow__label {
  flex: none;
  font-size: 1.2rem;
  font-weight: bold;
}
.p_profTitleRow__image {
  display: flex;
  align-items: center;
  justify-content: center; /* 称号を「称号」の文字とボタンの中間に置き、左右の余白を揃える */
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
}
.p_profTitleRow__image img {
  display: block;
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
}
.p_profTitleRow__unset {
  font-size: 1.2rem;
  opacity: 0.6;
}
.p_profTitleRow__button.m_buttonPrimary {
  flex: none;
  margin: 0;
  cursor: pointer;
}

/* ===== 称号設定モーダル ===== */
.TitleSelectModal .TitleSelectModal__note {
  margin: 0 10px 12px;
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
}
.TitleSelectModal .TitleSelectModal__list {
  overflow-y: auto;
  margin: 0 0 14px;
  padding: 0 4px;
  max-height: 320px;
  list-style: none;
}
.TitleSelectModal .TitleSelectModal__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 6px 10px; /* 称号 40px で5件が一覧（max-height 320px）に収まるよう、上下を詰める */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.TitleSelectModal .TitleSelectModal__item img {
  display: block;
  min-width: 0;
  max-width: calc(100% - 30px);
  max-height: 40px;
  width: auto;
  height: auto;
}
/* 選んでいる称号（枠を強調し、右の丸に印を付ける） */
.TitleSelectModal .TitleSelectModal__item.is_selected {
  border: 2px solid #fff;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.12);
}
.TitleSelectModal .TitleSelectModal__radio {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}
.TitleSelectModal .TitleSelectModal__item.is_selected .TitleSelectModal__radio {
  border-color: #fff;
  background: #fff;
}
.TitleSelectModal .TitleSelectModal__item.is_selected .TitleSelectModal__radio:after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  color: #000;
  content: '✓';
}

/* キャンセル・設定する（ボタン部品を横に並べる。部品は枠線の太さが違い高さがずれるため、高さを揃えて文字を中央に置く） */
.TitleSelectModal .TitleSelectModal__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.TitleSelectModal .TitleSelectModal__buttons .m_buttonPrimary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  box-sizing: border-box;
  margin: 0;
  height: 40px;
  line-height: 1;
  cursor: pointer;
}
/* モーダルは2つ目以降のボタンを縦積み前提で下げる（.l_modalContent .m_buttonPrimary:nth-of-type(n+2)）。横並びなので打ち消す */
.l_modalWrapper.TitleSelectModal .l_modalContent .TitleSelectModal__buttons .m_buttonPrimary:nth-of-type(n+2) {
  margin-top: 0;
}
/* 選択を変えるまで押せない */
.TitleSelectModal .TitleSelectModal__buttons .m_buttonPrimary.is_disabled {
  opacity: 0.4;
  pointer-events: none;
}
