@charset "UTF-8";
/*
 * LUX 管理画面スタイル
 * Figma「UC管理画面 / UIリニューアルPC(デザイン5/27以降)」の実測値に準拠する。
 *   配色      : 濃紺 #001f54 / #274581 / #5a70b1 、アクセント #f16ba6 / #ffa7e2 / #fdf4ff 、グレー #c9c1d7
 *   本文      : #222222 、補助 #666666 / #777777 、プレースホルダ #a6a6a6
 *   レイアウト: 基準幅1512px / サイドバー240px / コンテンツ967px / 下部固定バー
 *   書体      : Noto Sans JP
 *   角丸      : 4px
 */

:root {
  --navy:        #001f54;
  --navy-mid:    #274581;
  --navy-light:  #5a70b1;
  --pink:        #f16ba6;
  --pink-light:  #ffa7e2;
  --pink-bg:     #fdf4ff;
  --gray-purple: #c9c1d7;

  --text:        #222222;
  --text-sub:    #666666;
  --text-muted:  #777777;
  --placeholder: #a6a6a6;
  --border:      #666666;
  --border-btn:  #282828;
  --line:        #e3e3e8;
  --bg:          #f5f6f9;
  --white:       #ffffff;

  --radius:      4px;
  --sidebar-w:   240px;
  --content-w:   967px;
  --bar-h:       79px;

  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--navy-mid); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

/* ---------------- レイアウト ---------------- */

.l-shell { display: flex; min-height: 100vh; }

.l-sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.l-sidebar__brand { padding: 24px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.14); }
.l-sidebar__logo { display: block; font-size: 26px; font-weight: 700; letter-spacing: .18em; }
.l-sidebar__tag { display: block; margin-top: 4px; font-size: 11px; color: var(--pink-light); letter-spacing: .04em; }

.l-nav { padding: 12px 0; flex: 1 1 auto; overflow-y: auto; }
.l-nav__item {
  display: block; padding: 11px 20px; color: rgba(255,255,255,.86);
  text-decoration: none; font-size: 13px; border-left: 3px solid transparent;
}
.l-nav__item:hover { background: rgba(255,255,255,.07); color: #fff; }
.l-nav__item.is-active { background: var(--navy-mid); border-left-color: var(--pink); color: #fff; font-weight: 500; }

.l-sidebar__foot { padding: 16px 20px 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; }
.l-sidebar__user { margin-bottom: 10px; }
.l-sidebar__username { font-size: 13px; font-weight: 500; }
.l-sidebar__role { color: var(--gray-purple); font-size: 11px; }
.l-sidebar__ver { margin-top: 12px; color: rgba(255,255,255,.45); font-size: 11px; letter-spacing: .06em; }

.l-main { flex: 1 1 auto; min-width: 0; }
.l-main__inner { max-width: var(--content-w); margin: 0 auto; padding: 28px 32px calc(var(--bar-h) + 40px); }

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

.c-breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.c-breadcrumb a { color: var(--text-muted); margin-right: 8px; }
.c-breadcrumb a::after { content: "›"; margin-left: 8px; color: var(--gray-purple); }

.c-pagehead { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.c-pagehead__title { font-size: 17px; font-weight: 700; margin: 0; flex: 1 1 auto; }
.c-pagehead__actions { display: flex; gap: 8px; }

.c-subtitle { font-size: 14px; font-weight: 700; margin: 20px 0 6px; }

/* ---------------- セクション ---------------- */

.c-section {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 20px;
}
.c-section--staff { background: var(--pink-bg); border-color: var(--pink-light); }
.c-section__title {
  font-size: 17px; font-weight: 700; margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.c-section__note { font-size: 13px; line-height: 1.8; color: var(--text-sub); margin: 0 0 14px; }
.c-section__actions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }

/* ---------------- フォーム ---------------- */

.c-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.c-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.c-field--wide { grid-column: 1 / -1; }
.c-field--narrow { max-width: 160px; }
.c-field--grow { flex: 1 1 220px; }
.c-field--inline { flex: 0 0 auto; }
.c-field--check { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-field__label { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.c-field__help { font-size: 12px; color: var(--text-sub); line-height: 1.7; }
.c-field.is-error .c-input, .c-field.is-error .c-select, .c-field.is-error .c-textarea { border-color: #c0392b; }
.c-field__error { font-size: 12px; color: #c0392b; }

.c-input, .c-select, .c-textarea {
  font-family: var(--font); font-size: 14px; color: var(--text);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px; width: 100%; line-height: 1.5;
}
.c-input--num { max-width: 140px; }
.c-textarea { resize: vertical; min-height: 96px; line-height: 1.8; }
.c-input::placeholder, .c-textarea::placeholder { color: var(--placeholder); }
.c-input:focus, .c-select:focus, .c-textarea:focus { outline: 2px solid var(--navy-light); outline-offset: 1px; }
.c-input:disabled, .c-select:disabled, .c-input[readonly] { background: #f2f2f5; color: var(--text-sub); }

.c-require { color: var(--pink); font-weight: 700; }
.c-require-note { font-size: 12px; color: var(--text-sub); margin: 0 0 14px; }

/* ---------------- ボタン ---------------- */

.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 28px;
  padding: 6px 20px; border-radius: var(--radius); border: 1px solid var(--border-btn);
  background: var(--white); color: var(--text); cursor: pointer; text-decoration: none;
  letter-spacing: .05em;
}
.c-btn:hover { background: #f7f7fa; }
.c-btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.c-btn--primary:hover { background: var(--navy-mid); }
.c-btn--ghost { background: var(--white); }
.c-btn--danger { background: var(--white); border-color: #c0392b; color: #c0392b; }
.c-btn--danger:hover { background: #fdf1f0; }
.c-btn--sm { font-size: 13px; line-height: 20px; padding: 5px 12px; }
.c-btn--lg { font-size: 16px; min-width: 200px; padding: 10px 20px; }
.c-btn--block { width: 100%; }
.c-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- 絞り込み ---------------- */

.c-filter {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px;
}
.c-filter__row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.c-filter__row + .c-filter__row { margin-top: 10px; }
.c-filter__actions { margin-left: auto; display: flex; gap: 8px; }

.c-listhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.c-listhead__count { font-size: 13px; color: var(--text-sub); }

/* ---------------- カードグリッド ---------------- */

.c-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px; }

.c-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.c-card:hover { border-color: var(--navy-light); box-shadow: 0 2px 8px rgba(0,31,84,.1); }
.c-card__ribbon {
  font-size: 11px; text-align: center; padding: 3px 6px; color: #fff; background: var(--navy-light);
}
.c-card__ribbon--prospect { background: var(--gray-purple); color: var(--text); }
.c-card__ribbon--active   { background: var(--pink); }
.c-card__ribbon--on_hold  { background: var(--gray-purple); color: var(--text); }
.c-card__ribbon--engaged   { background: var(--navy-mid); }
.c-card__ribbon--married   { background: var(--navy); }
.c-card__ribbon--withdrawn { background: #9b9b9b; }
.c-card__ribbon--rejected  { background: #9b9b9b; }

.c-card__photo { position: relative; aspect-ratio: 3 / 4; background: #eceef3; }
.c-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-card__nophoto {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--placeholder); font-size: 12px;
}
.c-card__body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.c-card__number { font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.c-card__line { font-size: 12px; color: var(--text-sub); line-height: 1.5; }
.c-card__pr { font-size: 12px; color: var(--text); line-height: 1.5; margin-top: 2px; }
.c-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.c-card__agency {
  margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--text-muted); display: flex; gap: 6px; align-items: center;
}
.c-card__agency a { color: var(--navy-mid); text-decoration: underline; }

.c-tag {
  display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 2px;
  border: 1px solid var(--gray-purple); color: var(--text-sub); background: var(--white);
}
.c-tag--ok   { border-color: var(--navy-light); color: var(--navy-mid); }
.c-tag--warn { border-color: var(--pink); color: var(--pink); }
.c-tag--off  { border-color: #bbb; color: #888; }

.c-badge { font-size: 11px; padding: 2px 8px; border-radius: 2px; background: var(--gray-purple); color: var(--text); font-weight: 400; }
.c-badge--staff { background: var(--pink-light); }
.c-badge--own { background: var(--navy-light); color: #fff; }

/* ---------------- ページャ ---------------- */

.c-pager { display: flex; gap: 4px; align-items: center; }
.c-pager--bottom { justify-content: center; margin-top: 24px; }
.c-pager button {
  min-width: 34px; padding: 5px 9px; font-size: 13px; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--radius); cursor: pointer; color: var(--text);
}
.c-pager button.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.c-pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------------- テーブル ---------------- */

.c-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 13px; }
.c-table th, .c-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.c-table th { background: #f0f2f7; font-weight: 700; color: var(--text-sub); white-space: nowrap; }
.c-table--form th { font-size: 12px; }
.c-table--form td { padding: 5px 6px; }
.c-table--form .c-input, .c-table--form .c-select { padding: 6px 8px; font-size: 13px; }
.c-table__actions { white-space: nowrap; }
.c-nowrap { white-space: nowrap; }
.c-audit__detail { font-size: 11px; color: var(--text-sub); word-break: break-all; max-width: 260px; }

/* ---------------- 詳細画面 ---------------- */

.c-def { display: grid; grid-template-columns: 168px 1fr; gap: 0; border: 1px solid var(--line); border-bottom: none; }
.c-def__k, .c-def__v { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.c-def__k { background: #f0f2f7; font-weight: 700; color: var(--text-sub); }
.c-def__v { background: var(--white); word-break: break-word; }
.c-def__v--empty { color: var(--placeholder); }

.c-media { display: flex; flex-wrap: wrap; gap: 12px; }
.c-media__item { width: 148px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.c-media__thumb { aspect-ratio: 3 / 4; background: #eceef3; }
.c-media__thumb img, .c-media__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-media__meta { padding: 6px 8px; font-size: 11px; color: var(--text-sub); }
.c-media__actions { padding: 0 8px 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.c-media__group { margin-bottom: 18px; }
.c-media__grouptitle { font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--text-sub); }
.c-media__count { font-weight: 400; color: var(--text-muted); margin-left: 6px; }

.c-doc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 10px; padding: 10px 12px; }
.c-doc__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.c-doc__label { font-weight: 700; font-size: 13px; }
.c-doc__file { font-size: 12px; color: var(--text-sub); word-break: break-all; }
.c-doc__actions { margin-left: auto; display: flex; gap: 6px; }
.c-doc__req { font-size: 11px; }

/* ---------------- 下部固定バー ---------------- */

.c-fixedbar {
  position: fixed; left: var(--sidebar-w); right: 0; bottom: 0; height: var(--bar-h);
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); z-index: 20;
  display: flex; align-items: center;
}
.c-fixedbar__inner {
  max-width: var(--content-w); width: 100%; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
}
.c-fixedbar__msg { margin-right: auto; font-size: 13px; color: #c0392b; }

/* ---------------- ステップ ---------------- */

.c-steps { display: flex; list-style: none; padding: 0; margin: 0 0 20px; gap: 6px; }
.c-steps__item {
  flex: 1 1 0; font-size: 12px; text-align: center; padding: 8px 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-muted);
}
.c-steps__item.is-active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }
.c-steps__item.is-done { background: var(--navy-light); border-color: var(--navy-light); color: #fff; }

/* ---------------- 設定 ---------------- */

.c-settings__row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.c-settings__row:last-child { border-bottom: none; }
.c-settings__meta { flex: 1 1 auto; min-width: 0; }
.c-settings__key { display: block; font-size: 12px; color: var(--navy-mid); }
.c-settings__desc { font-size: 13px; color: var(--text-sub); }
.c-settings__control { flex: 0 0 auto; }
.c-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

.c-perms { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 16px; margin-top: 8px; }
.c-perms__item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.c-perms__item code { color: var(--text-muted); margin-left: auto; }

/* ---------------- ダイアログ・通知 ---------------- */

.c-dialog { border: none; border-radius: var(--radius); padding: 0; width: min(760px, 92vw); }
.c-dialog::backdrop { background: rgba(0,31,84,.42); }
.c-dialog__body { padding: 22px 24px; }
.c-dialog__title { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.c-dialog__actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; }

.c-toast {
  position: fixed; right: 24px; bottom: calc(var(--bar-h) + 20px); z-index: 60;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius);
  font-size: 13px; box-shadow: 0 4px 14px rgba(0,31,84,.28); max-width: 420px;
}
.c-toast--error { background: #c0392b; }

.c-flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.c-flash--success { background: var(--pink-bg); border: 1px solid var(--pink-light); }
.c-flash--error { background: #fdf1f0; border: 1px solid #e8b4ae; color: #c0392b; }

.c-alert { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin: 0 0 14px; }
.c-alert--error { background: #fdf1f0; border: 1px solid #e8b4ae; color: #c0392b; }

.c-loading { color: var(--text-muted); font-size: 13px; }
.c-empty { text-align: center; padding: 60px 20px; }
.c-empty__title { font-size: 17px; margin: 0 0 8px; }
.c-empty__text { color: var(--text-sub); font-size: 13px; margin: 0 0 20px; }
.c-empty__detail { text-align: left; background: #f0f2f7; padding: 12px; font-size: 12px; overflow-x: auto; border-radius: var(--radius); }

/* ---------------- ログイン ---------------- */

.p-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--navy); }
.p-login__box { width: min(420px, 92vw); background: var(--white); border-radius: var(--radius); padding: 36px 34px 28px; }
.p-login__brand { text-align: center; margin-bottom: 22px; }
.p-login__logo { font-size: 32px; font-weight: 700; letter-spacing: .2em; color: var(--navy); }
.p-login__tag { font-size: 11px; color: var(--text-muted); letter-spacing: .06em; }
.p-login__title { font-size: 16px; font-weight: 500; text-align: center; margin: 0 0 20px; }
.p-login__form { display: flex; flex-direction: column; gap: 16px; }
.p-login__note { font-size: 12px; color: var(--text-muted); text-align: center; margin: 18px 0 0; }
.p-login__ver { text-align: center; font-size: 11px; color: var(--placeholder); margin-top: 12px; letter-spacing: .06em; }

/* ---------------- 画面幅が狭い場合 ---------------- */

@media (max-width: 900px) {
  .l-shell { flex-direction: column; }
  .l-sidebar { width: 100%; height: auto; position: static; flex: 0 0 auto; }
  .l-nav { display: flex; overflow-x: auto; padding: 0; }
  .l-nav__item { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .l-nav__item.is-active { border-left: none; border-bottom-color: var(--pink); }
  .l-sidebar__foot { display: flex; align-items: center; gap: 12px; }
  .l-main__inner { padding: 20px 16px calc(var(--bar-h) + 30px); }
  .c-grid { grid-template-columns: 1fr; }
  .c-perms { grid-template-columns: 1fr; }
  .c-fixedbar { left: 0; }
  .c-fixedbar__inner { padding: 0 16px; }
  .c-def { grid-template-columns: 110px 1fr; }
  .c-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
