/* member.css — 会員アプリ用デザイン
 * design/member/ の C-1 「Original+」をベースに、ブルータリスト・ポップな
 * 太枠 + オフセットシャドウのデザインへ移行。既存ビューで使われている
 * クラス名はそのまま維持し、見た目だけを新ルールに合わせて差し替える。
 *
 * デザインルール:
 *   - 押下要素 (button / tab / nav active / 編集アイコン)
 *       → 枠線2px + グレーオフセットシャドウ (3-4px, 0 0 #9A958D)
 *   - 非押下要素 (card / badge / chip / プロフィール枠)
 *       → 枠線のみ、シャドウなし
 *   - ポイント数字は大きく (詳細 56px, マイページ 44px)
 */

:root {
  --main:    #e74577;
  --sub:     #ea9b18;
  --accent:  #FFD8B0;
  --bg:      #FAF4EB;
  --ink:     #161616;
  --mute:    #6B6660;
  --shadow:  #9A958D;

  /* 既存ビュー互換用 */
  --primary:   var(--main);
  --secondary: var(--sub);
  --success: #2CA91C;
  --info:    #007BE4;
  --warning: #E45B00;
  --danger:  #D42222;
}

@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800;900&family=Nunito:wght@400;700;800;900&display=swap");

html, body {
  margin: 0;
  padding: 0;
  background-color: #f0eee9;
  color: var(--ink);
  font-family: "Nunito", "M PLUS Rounded 1c", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 700;
}

* { box-sizing: border-box; }

/* ===== member layout container ===== */
/* 広い画面ではスマホ幅 (420px) で中央寄せ、狭い画面では全画面表示。
 * 角丸・太枠の "phone-frame" は撤去し、ドキュメント自体が会員アプリの
 * キャンバスになるようにしている。 */

.member-body {
  background-color: #f0eee9;
  min-height: 100vh;
}

.member-wrapper {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 421px) {
  .member-wrapper {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  }
}

/* ===== header ===== */
/* ヘッダー上部の brand 領域。クリーム背景の上にロゴと point chip が浮かぶ構成。 */

.app-header {
  background: transparent;
  color: var(--ink);
}

.sub-header {
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 12px;
  margin: 0.75rem 1rem 0;
  font-weight: 900;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

/* ===== main area ===== */

.app-main {
  flex: 1;
  padding: 1rem;
  background: var(--bg);
}

/* ===== bottom tabs ===== */

/* fixed タブがコンテンツの最後を隠さないようにするための余白要素 */
.app-tabs-offset {
  height: 60px;
}

.app-tabs {
  background: #fff;
  border-top: 2px solid var(--ink) !important;
  /* 下部タブを画面下部に固定する。position の固定は Bootstrap の fixed-bottom に任せ、
   * 幅広画面でもレイアウトカラム (420px) で中央寄せする。
   * z-index は Bootstrap の 1030 を上書きし、modal-mock (50)・MapLibre ポップアップ (700) に被らない値にする。
   * (member.css は Bootstrap より後に読み込むため、同じ詳細度で上書きできる) */
  max-width: 420px;
  margin: 0 auto;
  z-index: 10;
}

.app-tabs .app-tab {
  color: var(--mute);
  position: relative;
  font-weight: 900;
  border-right: 1.5px solid var(--ink);
  flex: 1 1 0%;
}

.app-tabs .app-tab:last-child {
  border-right: none;
}

.app-tabs .app-tab.active {
  color: #fff;
  background: var(--main);
}

.app-tabs .app-tab i {
  font-size: 1.15rem;
}

.app-tabs .app-tab .small {
  font-size: 0.7rem;
  font-weight: 900;
}

.app-tabs .app-tab .tab-badge {
  position: absolute;
  top: 4px;
  right: 30%;
  width: 10px;
  height: 10px;
  background: var(--main);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

/* ===== buttons ===== */

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--main);
  border: 2px solid var(--ink);
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--shadow);
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-cta {
  background-color: var(--sub);
  border: 2px solid var(--ink);
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  padding: 0.75rem 1.5rem;
  box-shadow: 3px 3px 0 var(--shadow);
}

.btn-cta:hover {
  background-color: #d68a10;
  color: #fff;
}

.btn-outline-cta {
  background-color: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 900;
  border-radius: 14px;
  padding: 0.5rem 1.25rem;
  box-shadow: 3px 3px 0 var(--shadow);
}

.btn-outline-cta:hover {
  background: var(--accent);
}

/* ===== labels / chips (非押下) ===== */

.label {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  border: 2px solid var(--ink);
  letter-spacing: 0.02em;
}

.label-discover  { background: var(--main); }
.label-new       { background: var(--danger); }
.label-recommend { background: var(--success); }
.label-pending   { background: #6c757d; }
.label-approved  { background: var(--success); }
.label-rejected  { background: #adb5bd; color: var(--ink); }
.label-revision_requested  { background: var(--sub); }

/* ===== map wireframe ===== */

.map-wireframe {
  width: 100%;
  height: 320px;
  background: repeating-linear-gradient(
    45deg,
    #e9f5e9,
    #e9f5e9 12px,
    #d8ecd8 12px,
    #d8ecd8 24px
  );
  border: 2px solid var(--ink);
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3f6b3f;
  font-weight: 900;
  text-align: center;
}

.map-pin {
  position: absolute;
  background: var(--main);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--shadow);
}

/* ===== member マップ全画面（maps#show）===== */
/* メイン領域の余白を消し、地図をヘッダー〜下部タブの間いっぱいに広げる */

.app-main.app-main--map {
  padding: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
}

.app-main--map .member-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.app-main--map .member-map .map-container {
  flex: 1 1 auto;
  min-height: 0;
}

/* 地点ピン・吹き出しは application.css に移動（admin / member 共通）*/

/* ===== photo slots ===== */

.photo-slot {
  width: 100%;
  height: 120px;
  background: #fff;
  border: 2px dashed var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  border-radius: 12px;
  font-size: 1.8rem;
  font-weight: 900;
}

.photo-thumb {
  width: 100%;
  height: 80px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
}

/* ===== point meter (マイページのリング表示) ===== */

.point-meter {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--sub) 0deg 1deg, var(--accent) 1deg 360deg);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  box-shadow: 4px 4px 0 var(--shadow);
}

.point-meter::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.point-meter > * {
  position: relative;
  font-weight: 900;
}

/* ===== menu circle (マイページの丸ボタン群) ===== */

.menu-circle {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
  position: relative;
  box-shadow: 3px 3px 0 var(--shadow);
}

.menu-circle i {
  font-size: 1.4rem;
  color: var(--main);
  margin-bottom: 0.25rem;
}

.menu-circle .new-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: var(--main);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

/* ===== notification bar (お知らせ・通知) ===== */

.notification-bar {
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  font-weight: 800;
}

.notification-bar .app-name {
  font-size: 0.7rem;
  color: var(--mute);
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* ===== exchange card (ポイント交換) ===== */

.exchange-card {
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0.85rem;
  background: #fff;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--shadow);
  cursor: pointer;
}

.exchange-card.selected {
  background: var(--accent);
}

.destination-radio:checked + .exchange-card {
  background: var(--accent);
  border-color: var(--main);
  box-shadow: 3px 3px 0 var(--main);
}

.destination-img-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.destination-img {
  max-width: 88px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== toast / modal ===== */

.toast-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 4px 4px 0 var(--shadow);
  font-weight: 900;
  z-index: 10;
}

.toast-overlay i {
  font-size: 2.5rem;
  color: var(--sub);
}

.modal-mock {
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 22, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-mock .modal-mock-body {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 1.25rem;
  max-width: 320px;
  width: 90%;
  text-align: center;
  box-shadow: 6px 6px 0 var(--shadow);
  font-weight: 800;
}

/* ===== index list (規約・FAQ 系) ===== */

.index-list {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 1.25rem;
}

.index-list h1 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.index-list ol {
  padding-left: 1.25rem;
  font-weight: 700;
}

/* ===== bootstrap 上書き（会員アプリ側のトーン統一） ===== */

.app-main .card {
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
}

.app-main .alert {
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-weight: 800;
}

.app-main .form-control,
.app-main .form-select {
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-weight: 700;
}

.app-main .form-control:focus,
.app-main .form-select:focus {
  border-color: var(--main);
  box-shadow: 0 0 0 0.15rem rgba(231, 69, 119, 0.25);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* =====================================================================
 * 新デザイン (C-1) 用ユーティリティ
 * ===================================================================== */

/* ----- header brand / point chip ----- */

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo-box {
  width: 42px;
  height: 42px;
  background: var(--main);
  border: 2px solid var(--ink);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 6px;
  flex-shrink: 0;
}

.app-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-wordmark {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.point-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.875rem;
  white-space: nowrap;
}

.point-chip .point-dot {
  width: 22px;
  height: 22px;
  background: var(--sub);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.7rem;
}

.point-chip .pts {
  font-size: 0.7rem;
  color: var(--mute);
  font-weight: 800;
  margin-left: 2px;
}

/* ----- ページ大見出し ----- */

.app-title {
  margin: 1.25rem 0 0;
  font-size: 2.125rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--ink);
}

.app-title-sm {
  font-size: 1.5rem;
  letter-spacing: -1px;
}

/* ----- generic blocks ----- */

.ink-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 1rem 1.125rem;
}

.ink-card-soft {
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0.75rem 0.875rem;
}

.ink-card-bg {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0.75rem 1rem;
}

.mission-image {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 16px;
}

.mission-image + .mission-image {
  margin-top: 0.75rem;
}

.ink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  font-weight: 900;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  text-decoration: none;
  cursor: pointer;
}

.ink-btn:hover {
  color: var(--ink);
  filter: brightness(0.97);
}

.ink-btn-main {
  background: var(--main);
  color: #fff;
}
.ink-btn-main:hover { color: #fff; }

.ink-btn-sub {
  background: var(--sub);
  color: #fff;
}
.ink-btn-sub:hover { color: #fff; }

.ink-btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.ink-btn-danger {
  background: var(--danger);
  color: #fff;
}
.ink-btn-danger:hover { color: #fff; filter: brightness(0.9); }

/* 非押下チップ */
.ink-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}

.ink-chip-bg     { background: var(--bg); }
.ink-chip-accent { background: var(--accent); }
.ink-chip-main   { background: var(--main); color: #fff; }
.ink-chip-sub    { background: var(--sub);  color: #fff; }
.ink-chip-mute   { background: #fff; color: var(--mute); }

/* 押下チップ（並び替えなど） */
.ink-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--shadow);
  text-decoration: none;
  cursor: pointer;
}

.ink-chip-btn:hover {
  color: var(--ink);
  filter: brightness(0.97);
}

/* ----- 大きいポイント表示 ----- */

.points-xl,
.points-lg,
.points-md {
  font-weight: 900;
  color: var(--main);
  letter-spacing: -2px;
  line-height: 1;
}

.points-xl { font-size: 3.5rem; }   /* 56px - ジョブ詳細 */
.points-lg { font-size: 2.75rem; }  /* 44px - マイページ */
.points-md { font-size: 1.75rem; }  /* 28px - リスト用 */

.points-xl .pts,
.points-lg .pts,
.points-md .pts {
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: 0;
  margin-left: 4px;
  font-weight: 900;
}

.points-md .pts { font-size: 0.875rem; }

/* ----- 小見出し ----- */

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--mute);
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.section-title {
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--ink);
}

/* ----- タブ ----- */

.tab-pair {
  display: flex;
  gap: 8px;
}

.tab-pair .tab {
  flex: 1;
  padding: 0.7rem 0;
  text-align: center;
  font-weight: 900;
  font-size: 0.875rem;
  background: #fff;
  color: var(--mute);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--shadow);
  text-decoration: none;
  cursor: pointer;
}

.tab-pair .tab.active {
  background: var(--main);
  color: #fff;
}

.tab-pair .tab:hover { color: inherit; }

/* ----- 小さいタグ ----- */

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-strip .tag {
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 900;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
}

/* ----- ランクバッジ / カード（マイページ） ----- */

.rank-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 1.125rem;
}

.rank-badge {
  width: 84px;
  height: 84px;
  background: var(--sub);
  border: 2px solid var(--ink);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  text-align: center;
}

.rank-badge.rank-bronze { background: #cd7f32; }
.rank-badge.rank-silver { background: #b0b6bb; color: var(--ink); }
.rank-badge.rank-gold   { background: var(--sub); }

.rank-badge .emoji { font-size: 1.875rem; line-height: 1; }
.rank-badge .name  { font-size: 0.625rem; font-weight: 900; margin-top: 2px; }

/* 進捗バー */

.progress-rank {
  height: 18px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-rank .bar {
  height: 100%;
  background: var(--main);
  border-right: 2px solid var(--ink);
  min-width: 6px;
}

.progress-rank .labels {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 0.55rem;
  font-weight: 900;
  color: var(--ink);
}

/* 特典ストリップ */

.reward-strip {
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reward-strip .icon {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* バッジ獲得表示 */

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.badge-grid .badge-cell {
  padding: 8px 4px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-weight: 900;
}

.badge-grid .badge-cell.locked {
  background: #EAE6DE;
  border-color: #C4BFB8;
  opacity: 0.6;
}

.badge-grid .badge-cell .emoji { font-size: 1.25rem; line-height: 1; }
.badge-grid .badge-cell .label {
  font-size: 0.55rem;
  margin-top: 2px;
  /* グローバル .label の白文字を解除 */
  color: var(--ink);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  display: block;
}
.badge-grid .badge-cell.locked .emoji { filter: grayscale(1); }

/* プロフィール行 */

.profile-rows {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 4px 14px;
}

.profile-rows .row-item {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px dashed var(--ink);
}

.profile-rows .row-item:last-child { border-bottom: none; }

.profile-rows .row-item .label {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--mute);
  border: none;
  background: none;
  padding: 0;
  display: block;
}

.profile-rows .row-item .value {
  font-size: 0.875rem;
  font-weight: 900;
  margin-top: 1px;
  color: var(--ink);
}

.profile-rows .row-item .value.muted { color: var(--mute); }

.profile-rows .row-item .edit-btn {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--shadow);
  color: var(--ink);
  text-decoration: none;
}

/* アクショングリッド（マイページ下部） */

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* button_to が生成する <form> を grid セル化させない */
.action-grid form {
  display: contents;
}

.action-cell {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 12px 4px;
  text-align: center;
  box-shadow: 3px 3px 0 var(--shadow);
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.action-cell:hover { color: var(--ink); }

.action-cell .icon {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  background: var(--main);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.action-cell .icon i { font-size: 1rem; }

.action-cell .label {
  font-size: 0.65rem;
  font-weight: 900;
  margin-top: 6px;
  /* グローバル .label (ステータスチップ) の色やボーダーを無効化 */
  color: var(--ink);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  display: block;
}

.action-cell .new-dot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: var(--main);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

/* ----- ジョブカード（ジョブ一覧） ----- */

.job-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.job-card:hover { color: var(--ink); }

.job-card .job-img {
  height: 130px;
  background: var(--accent);
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.job-card .job-img .badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.job-card .job-body {
  padding: 1rem 1.125rem;
}

.job-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--mute);
}

.job-meta .geo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-meta .geo::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--main);
  border: 1.5px solid var(--ink);
}

.job-title {
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 0.5rem 0 0;
}

.job-sub {
  font-size: 0.75rem;
  color: var(--mute);
  font-weight: 700;
  margin-top: 2px;
}

.points-strip {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ----- フォーム (member 内) のラベル太字 ----- */

.app-main .form-label {
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ----- リストカード（テキストのみリスト用） ----- */

.list-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-cards .list-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--shadow);
}

.list-cards .list-card:hover { color: var(--ink); }

.list-cards .list-card.flat { box-shadow: none; }

.list-cards .list-card .meta {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--mute);
}

/* ----- チャット吹き出し（お問い合わせ詳細） ----- */
/* C-1: 太枠 (2px ink) の吹き出し。運営=左・白、会員=右・メインピンク。
 * しっぽは ::before(枠線) + ::after(塗り) の二枚重ねで 2px 枠を再現する。 */

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-row {
  display: flex;
}

.chat-row--in  { justify-content: flex-start; }
.chat-row--out { justify-content: flex-end; }

.chat-item {
  max-width: 80%;
}

.chat-meta {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--mute);
  margin: 0 0.25rem 4px;
}

.chat-row--out .chat-meta {
  text-align: right;
}

.chat-bubble {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble p:last-child { margin-bottom: 0; }

.chat-bubble--in {
  background: #fff;
  color: var(--ink);
}

.chat-bubble--out {
  background: var(--main);
  color: #fff;
}

/* しっぽ（枠線のインク色） */
.chat-bubble--in::before,
.chat-bubble--out::before {
  content: "";
  position: absolute;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.chat-bubble--in::before {
  left: -12px;
  border-right: 12px solid var(--ink);
}

.chat-bubble--out::before {
  right: -12px;
  border-left: 12px solid var(--ink);
}

/* しっぽ（塗り。枠の内側に一回り小さく重ねる） */
.chat-bubble--in::after,
.chat-bubble--out::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.chat-bubble--in::after {
  left: -8px;
  border-right: 9px solid #fff;
}

.chat-bubble--out::after {
  right: -8px;
  border-left: 9px solid var(--main);
}

/* breadcrumb (member) — 太枠調整 */

.app-main .breadcrumb {
  font-weight: 800;
  background: transparent;
  padding: 0;
}

.app-main .breadcrumb-item.active { color: var(--mute); }

/* alert (member) */

.app-main .alert-info {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--ink);
}

.app-main .alert-danger {
  background: #ffd6d6;
  color: var(--ink);
  border-color: var(--ink);
}

.app-main .alert-warning {
  background: #ffe7c2;
  color: var(--ink);
  border-color: var(--ink);
}

/* ===== Markdown 文書（利用規約・会員規約など） ===== */
.markdown-document {
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink);
  word-break: break-word;
}

.markdown-document h1 {
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
  margin: 0 0 1.5rem;
}

.markdown-document h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 1.8rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1.5px solid var(--ink);
}

.markdown-document p {
  margin: 0.6rem 0;
}

.markdown-document ol {
  margin: 0.6rem 0;
  padding-left: 1.6rem;
}

.markdown-document ol ol {
  margin: 0.3rem 0;
}

.markdown-document li {
  margin: 0.3rem 0;
}

.markdown-document a {
  color: var(--info);
  word-break: break-all;
}

/* Markdown 本文中の画像が画面幅からはみ出さないようにする */
.markdown-body img {
  max-width: 100%;
  height: auto;
}
