/* ============================================================
   REAL MEDIA — assets/style.css
   カラー: ホワイト / ピンク #EBA7AF / スカイブルー #A8E4FF
   フォント: Nunito / Poppins
   ============================================================ */

:root {
  --pink:      #EBA7AF;
  --blue:      #A8E4FF;
  --pink-dark: #d9838e;
  --blue-dark: #7fcfe8;
  --grad:      linear-gradient(135deg, #EBA7AF 0%, #A8E4FF 100%);
  --grad-r:    linear-gradient(135deg, #A8E4FF 0%, #EBA7AF 100%);
  --grad-soft: linear-gradient(135deg, #fce8ea 0%, #e4f6ff 100%);
  --white:     #ffffff;
  --bg:        #f7f4fc;
  --text:      #2d2d3a;
  --text-sub:  #7a7a9a;
  --radius:    20px;
  --radius-sm: 12px;
  --shadow:    0 4px 24px rgba(160, 130, 190, 0.12);
  --shadow-md: 0 8px 40px rgba(160, 130, 190, 0.18);
  --shadow-lg: 0 16px 60px rgba(160, 130, 190, 0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a     { color: inherit; text-decoration: none; }
img   { max-width: 100%; display: block; }
button { font-family: 'Nunito', sans-serif; }

/* ============================================================
   GRADIENT UTILITIES
   ============================================================ */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-grad {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--grad);
  color: #5a2d35;
  font-weight: 800; font-size: 0.95rem;
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(235, 167, 175, 0.35);
}
.btn-grad:hover  { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(235, 167, 175, 0.5); }
.btn-grad:active { transform: translateY(0); }

.btn-blue {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 50px;
  background: linear-gradient(135deg, #A8E4FF, #7fcfe8);
  color: #1a4a5a; font-weight: 700; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(168, 228, 255, 0.4);
}
.btn-blue:hover { transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 50px;
  background: white; color: var(--pink-dark);
  font-weight: 700; font-size: 0.9rem;
  border: 2px solid var(--pink); cursor: pointer;
  transition: background 0.2s;
}
.btn-outline:hover { background: var(--grad-soft); }

.btn-sm { padding: 7px 16px !important; font-size: 0.82rem !important; }

/* ============================================================
   HEADER
   ============================================================ */
.rm-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(235, 167, 175, 0.18);
  box-shadow: 0 2px 20px rgba(160,130,190,0.08);
}
.rm-header__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; gap: 28px;
}
.rm-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.25rem;
  flex-shrink: 0;
}
.rm-nav { display: flex; gap: 2px; flex: 1; }
.rm-nav__link {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.87rem; color: var(--text-sub);
  transition: all 0.15s; white-space: nowrap;
}
.rm-nav__link:hover, .rm-nav__link.active {
  background: var(--grad-soft); color: var(--pink-dark);
}
.rm-header__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rm-icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; position: relative; transition: transform 0.15s;
}
.rm-icon-btn:hover { transform: scale(1.1); }
.rm-badge {
  position: absolute; top: 0; right: 0;
  background: var(--pink-dark); color: white;
  font-size: 0.62rem; font-weight: 800;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.rm-avatar-menu { position: relative; }
.rm-avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; border: 2px solid var(--pink);
  object-fit: cover; transition: border-color 0.2s;
}
.rm-avatar-sm:hover { border-color: var(--blue-dark); }
.rm-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: white; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); min-width: 160px; padding: 8px; z-index: 999;
}
.rm-avatar-menu:hover .rm-dropdown { display: block; }
.rm-dropdown__name { font-weight: 800; font-size: 0.83rem; padding: 6px 10px; color: var(--text-sub); }
.rm-dropdown a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 0.87rem; font-weight: 600; }
.rm-dropdown a:hover { background: var(--grad-soft); }
.rm-dropdown a.logout { color: #e55; margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.rm-footer {
  margin-top: 60px;
  background: white;
  border-top: 1px solid rgba(235,167,175,0.2);
  padding: 28px 24px;
}
.rm-footer__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.rm-footer__logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1rem; }
.rm-footer__copy { font-size: 0.8rem; color: var(--text-sub); }
.rm-footer__nav  { margin-left: auto; display: flex; gap: 16px; }
.rm-footer__nav a { font-size: 0.82rem; color: var(--text-sub); font-weight: 600; }
.rm-footer__nav a:hover { color: var(--pink-dark); }

/* ============================================================
   FLASH MESSAGE
   ============================================================ */
.rm-flash {
  max-width: 1280px; margin: 14px auto 0;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 700; animation: slideDown 0.3s ease;
}
.rm-flash--success { background: #e8f8ee; color: #1e8a40; border-left: 4px solid #1e8a40; }
.rm-flash--error   { background: #fff0f0; color: #d44;    border-left: 4px solid #d44; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   CARD
   ============================================================ */
.rm-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.rm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ============================================================
   BADGE / PILL
   ============================================================ */
.rm-badge-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 50px;
  font-size: 0.74rem; font-weight: 800;
}
.rm-badge-pill--pink  { background: var(--grad); color: #5a2d35; }
.rm-badge-pill--blue  { background: linear-gradient(135deg,#A8E4FF,#7fcfe8); color: #1a4a5a; }
.rm-badge-pill--green { background: linear-gradient(135deg,#a8ffcc,#5cbf86); color: #1a4a2a; }
.rm-badge-pill--soft  { background: var(--grad-soft); color: var(--pink-dark); }

/* ============================================================
   STATUS BADGES (management)
   ============================================================ */
.status-applied   { background:#fff3d4; color:#a07000; }
.status-matched   { background:#d4eaff; color:#1a5fa0; }
.status-escrowed  { background:#ffe4f0; color:#b0106a; }
.status-posted    { background:#d4ffe4; color:#0d7a3a; }
.status-completed { background:var(--grad); color:#5a2d35; }
.status-rejected  { background:#ffe4e4; color:#c01717; }

/* ============================================================
   FORMS
   ============================================================ */
.rm-form-group { margin-bottom: 20px; }
.rm-form-group label {
  display: block; font-weight: 700; font-size: 0.87rem;
  color: var(--text-sub); margin-bottom: 6px;
}
.rm-input, .rm-select, .rm-textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid #ede8f5; border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-size: 0.94rem;
  background: white; color: var(--text);
  transition: border-color 0.2s; outline: none;
}
.rm-input:focus, .rm-select:focus, .rm-textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(235,167,175,0.15);
}
.rm-textarea { resize: vertical; min-height: 100px; }
.rm-checkbox {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 0.87rem; font-weight: 600; margin-bottom: 8px;
}
.rm-checkbox input[type="checkbox"] { accent-color: var(--pink); width: 15px; height: 15px; }

input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 6px;
  border-radius: 3px; background: #ede8f5; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--grad); cursor: pointer;
  box-shadow: 0 2px 8px rgba(235,167,175,0.4);
}

/* ============================================================
   MODAL
   ============================================================ */
.rm-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(45,35,65,0.4); z-index: 2000;
  align-items: center; justify-content: center; padding: 24px;
}
.rm-modal-overlay.active { display: flex; animation: fadeIn 0.2s; }
.rm-modal {
  background: white; border-radius: var(--radius);
  max-width: 720px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleUp 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.rm-modal__header {
  padding: 22px 26px 14px; border-bottom: 1px solid #f0eaf8;
  display: flex; align-items: center; justify-content: space-between;
}
.rm-modal__title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem; }
.rm-modal__close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-soft); border: none; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.rm-modal__body { padding: 22px 26px; }
@keyframes scaleUp { from { opacity:0; transform:scale(0.92); } to { opacity:1; transform:scale(1); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.rm-page { max-width: 1280px; margin: 0 auto; padding: 28px 24px; }
.rm-page__title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.55rem; margin-bottom: 22px; }

.rm-layout-sidebar {
  display: grid; grid-template-columns: 255px 1fr;
  gap: 22px; align-items: start;
}
.rm-sidebar {
  background: white; border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); position: sticky; top: 80px;
}
.rm-sidebar__title {
  font-weight: 800; font-size: 0.88rem; color: var(--text-sub);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.rm-filter-group { margin-bottom: 18px; }
.rm-filter-group label { font-weight: 700; font-size: 0.84rem; color: var(--text-sub); display: block; margin-bottom: 7px; }

/* ============================================================
   INFLUENCER CARD GRID
   ============================================================ */
.rm-inf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.rm-inf-card {
  background: white; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); transition: all 0.25s; cursor: pointer;
}
.rm-inf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rm-inf-card__top  { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rm-inf-card__avatar {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--pink); flex-shrink: 0;
}
.rm-inf-card__name { font-weight: 800; font-size: 0.97rem; }
.rm-inf-card__cat  { font-size: 0.78rem; color: var(--text-sub); }
.rm-inf-card__eng  { margin-left: auto; }
.rm-radar-wrap     { position: relative; height: 155px; margin-bottom: 12px; }
.rm-inf-card__stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rm-stat-item { display: flex; align-items: center; gap: 3px; font-size: 0.77rem; font-weight: 700; color: var(--text-sub); }
.rm-inf-card__actions { display: flex; gap: 8px; }

/* ============================================================
   CAMPAIGN CARD GRID
   ============================================================ */
.rm-camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.rm-camp-card {
  background: white; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); transition: all 0.25s;
}
.rm-camp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rm-camp-card__company { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rm-camp-card__logo    { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.rm-camp-card__comp-name { font-weight: 800; font-size: 0.86rem; }
.rm-camp-card__title  { font-weight: 800; font-size: 1.02rem; margin-bottom: 7px; }
.rm-camp-card__desc   { font-size: 0.83rem; color: var(--text-sub); line-height: 1.55; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rm-camp-card__reward { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--pink-dark); }
.rm-camp-card__meta   { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }

/* ============================================================
   MANAGEMENT TABLE
   ============================================================ */
.rm-tabs { display: flex; gap: 4px; margin-bottom: 22px; }
.rm-tab {
  padding: 9px 22px; border-radius: 50px; font-weight: 700; font-size: 0.88rem;
  border: none; cursor: pointer; background: white; color: var(--text-sub);
  transition: all 0.2s; box-shadow: var(--shadow);
}
.rm-tab.active { background: var(--grad); color: #5a2d35; }

.rm-mgmt-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rm-mgmt-table th { background: var(--grad-soft); padding: 13px 16px; text-align: left; font-weight: 800; font-size: 0.82rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.06em; }
.rm-mgmt-table td { padding: 13px 16px; border-bottom: 1px solid #f0eaf8; font-size: 0.88rem; }
.rm-mgmt-table tr:last-child td { border-bottom: none; }
.rm-mgmt-table tr:hover td { background: #fdf9ff; }

/* ============================================================
   CHAT
   ============================================================ */
.rm-chat-wrap { display: grid; grid-template-columns: 290px 1fr; height: calc(100vh - 100px); background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.rm-chat-list { border-right: 1px solid #f0eaf8; overflow-y: auto; }
.rm-chat-list__header { padding: 16px 18px; font-weight: 800; font-size: 0.97rem; border-bottom: 1px solid #f0eaf8; background: var(--grad-soft); }
.rm-chat-item { display: flex; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #f8f4ff; cursor: pointer; transition: background 0.15s; }
.rm-chat-item:hover, .rm-chat-item.active { background: var(--grad-soft); }
.rm-chat-item__avatar  { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rm-chat-item__name    { font-weight: 800; font-size: 0.86rem; }
.rm-chat-item__preview { font-size: 0.76rem; color: var(--text-sub); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 155px; }
.rm-chat-main    { display: flex; flex-direction: column; }
.rm-chat-main__header { padding: 14px 20px; border-bottom: 1px solid #f0eaf8; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.rm-chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.rm-bubble { max-width: 60%; padding: 11px 15px; border-radius: 18px; font-size: 0.88rem; line-height: 1.55; word-break: break-word; }
.rm-bubble--mine   { background: var(--grad); color: #5a2d35; align-self: flex-end; border-bottom-right-radius: 4px; }
.rm-bubble--theirs { background: white; color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow); }
.rm-chat-input { padding: 14px 18px; border-top: 1px solid #f0eaf8; display: flex; gap: 8px; background: white; }
.rm-chat-input input { flex: 1; padding: 11px 15px; border: 2px solid #ede8f5; border-radius: 50px; font-family: 'Nunito', sans-serif; outline: none; }
.rm-chat-input input:focus { border-color: var(--pink); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.rm-auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--grad-soft); }
.rm-auth-box  { background: white; border-radius: 28px; padding: 42px; max-width: 480px; width: 100%; box-shadow: 0 16px 60px rgba(160,130,190,0.18); }
.rm-auth-logo { text-align: center; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.75rem; margin-bottom: 6px; }
.rm-auth-sub  { text-align: center; color: var(--text-sub); font-size: 0.88rem; margin-bottom: 30px; }
.rm-error-msg { background: #fff0f0; color: #d44; padding: 10px 14px; border-radius: 10px; font-size: 0.87rem; font-weight: 700; margin-bottom: 18px; }

/* ============================================================
   ANALYTICS / KPI
   ============================================================ */
.rm-analytics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 26px; }
.rm-kpi-card { background: white; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.rm-kpi-card__num {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.75rem;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.rm-kpi-card__label { font-size: 0.78rem; color: var(--text-sub); font-weight: 700; margin-top: 4px; }

/* ============================================================
   ENTRY PAGE
   ============================================================ */
.rm-entry-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: var(--grad-soft); }
.rm-entry-logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2rem; margin-bottom: 6px; text-align: center; }
.rm-entry-sub  { color: var(--text-sub); font-size: 0.93rem; margin-bottom: 44px; text-align: center; }
.rm-entry-cards { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; max-width: 760px; width: 100%; }
.rm-entry-card {
  background: white; border-radius: 26px; padding: 38px 34px; flex: 1; min-width: 290px;
  box-shadow: 0 8px 40px rgba(160,130,190,0.13); text-align: center;
  cursor: pointer; transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s;
  border: 3px solid transparent;
}
.rm-entry-card:hover { transform: translateY(-8px); border-color: var(--pink); }
.rm-entry-card__icon  { font-size: 3.2rem; margin-bottom: 14px; }
.rm-entry-card__title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: 9px; }
.rm-entry-card__desc  { color: var(--text-sub); font-size: 0.86rem; line-height: 1.7; margin-bottom: 22px; }
.rm-entry-card__note  { font-size: 0.78rem; color: var(--text-sub); margin-top: 10px; }
.rm-entry-card__note a { color: var(--pink-dark); font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .rm-layout-sidebar { grid-template-columns: 1fr; }
  .rm-sidebar { position: static; }
  .rm-analytics-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .rm-header__inner { padding: 0 14px; gap: 12px; }
  .rm-nav { display: none; }
  .rm-chat-wrap { grid-template-columns: 1fr; }
  .rm-chat-list { display: none; }
  .rm-analytics-grid { grid-template-columns: repeat(2,1fr); }
  .rm-inf-grid, .rm-camp-grid { grid-template-columns: 1fr; }
}
