/* ===================================================================
   Mansion Vacancy Manager - Public CSS
   デモサイト (mansion-site-demo.html) のデザインに合わせたスタイル
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg:        #0f1117;
  --surface:   #1a1d27;
  --surface2:  #22263a;
  --border:    #2e3350;
  --text:      #e8eaf0;
  --muted:     #6b7280;
  --dim:       #9ca3af;
  --accent:    #5c8aff;
  --accent2:   #7c6aff;

  --s-occupied: #7f1d1d; --s-occupied-t: #fca5a5;  /* 赤：入居中（手をつけられない） */
  --s-vacant:   #0e7490; --s-vacant-t:   #a5f3fc;  /* 水色：内覧可（明るく目立つ） */
  --s-cleaning: #4c1d95; --s-cleaning-t: #ddd6fe;  /* 紫：CL中 */
  --s-ready:    #14532d; --s-ready-t:    #6ee7b7;  /* 緑：即入居可 */
  --s-reserved: #1e3a8a; --s-reserved-t: #93c5fd;  /* 青：内覧予約済（先約あり） */
  --s-shop:     #713f12; --s-shop-t:     #fde68a;  /* 琥珀：店舗 */
}

/* ── グローバルリセット（テーマを完全上書き） ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* テーマが挿入するラッパーを無力化 */
body > *:not(script):not(style):not(.mvm-nav):not(.mvm-vacancy):not(.mvm-login-wrap):not(.mvm-top):not(.mvm-mypage):not(#mvm-modal):not(.mvm-auth-wrap):not(.mvm-lp-hero):not(.mvm-lp-section):not(.mvm-lp-footer):not(.rp-wrap):not(.rp-print-btn) {
  all: unset;
  display: contents;
}

/* 管理バーが表示されていてもレイアウトを壊さない */
.wp-admin-bar-showing { padding-top: 0 !important; }

/* ── ナビ ─────────────────────────────────────────────────────── */
.mvm-nav {
  background: var(--surface2);
  border-bottom: 2px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
  gap: .2rem;
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
  min-height: 64px;
}
.mvm-nav-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 0 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  border-bottom: 3px solid transparent;
  transition: all .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.mvm-nav-btn:hover { color: var(--text); background: rgba(255,255,255,.03); }
.mvm-nav-btn--active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.mvm-nav-btn--dummy { opacity: .4; cursor: default; position: relative; }
.mvm-nav-btn--dummy::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .3rem .6rem;
  font-size: .75rem;
  white-space: nowrap;
  display: none;
  z-index: 100;
}
.mvm-nav-btn--dummy:hover::after { display: block; }
.mvm-nav-sep { width: 1px; align-self: stretch; background: var(--border); margin: .8rem .2rem; flex-shrink: 0; }
.mvm-nav-right { margin-left: auto; display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.mvm-login-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .4rem 1rem;
  border-radius: 4px;
  font-size: .88rem;
  white-space: nowrap;
}
.mvm-btn-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: .4rem .9rem;
  border-radius: 4px;
  font-size: .88rem;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all .15s;
  text-decoration: none;
}
.mvm-btn-logout:hover { border-color: var(--dim); color: var(--text); }

/* ── サマリーバー ───────────────────────────────────────────────── */
.mvm-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.mvm-stat-item { background: var(--surface); padding: .9rem 1.1rem; }
.mvm-stat-label { font-size: .78rem; color: var(--muted); letter-spacing: .05em; }
.mvm-stat-value { font-family: 'DM Mono', monospace; font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.mvm-stat-sub   { font-size: .75rem; color: var(--muted); }
.mvm-c-green    { color: #6ee7b7; }
.mvm-c-blue     { color: #67e8f9; }
.mvm-c-orange   { color: #fdba74; }
.mvm-c-reserved { color: #93c5fd; } /* 内覧予約済：青 */

/* ── 凡例 ─────────────────────────────────────────────────────── */
.mvm-legend {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.3rem;
  align-items: center;
  flex-wrap: wrap;
}
.mvm-legend-title { font-size: .88rem; color: var(--muted); }
.mvm-legend-item { display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--dim); }
.mvm-legend-dot { width: 13px; height: 13px; border-radius: 2px; flex-shrink: 0; }

/* ── 棟カード ───────────────────────────────────────────────────── */
.mvm-buildings { display: flex; flex-direction: column; gap: 1.2rem; }
.mvm-building-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.mvm-building-header {
  padding: .7rem 1.1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mvm-building-name { font-size: 1.1rem; font-weight: 700; letter-spacing: .05em; }
.mvm-building-meta { font-size: 1rem; color: var(--muted); font-family: 'DM Mono', monospace; display: flex; gap: .8rem; }
.mvm-building-meta em { color: #6ee7b7; font-style: normal; font-weight: 700; }

/* ── PC グリッド ────────────────────────────────────────────────── */
.mvm-grid-wrap { padding: .9rem 1.1rem; overflow-x: auto; }
.mvm-floor-row { display: flex; align-items: center; gap: .45rem; margin-bottom: .4rem; }
.mvm-floor-row:last-child { margin-bottom: 0; }
.mvm-floor-label {
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  color: var(--muted);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.mvm-rooms-row { display: flex; gap: .35rem; flex-wrap: nowrap; }
.mvm-room {
  width: 72px;
  height: 60px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  transition: transform .12s, filter .12s;
  user-select: none;
  flex-shrink: 0;
}
.mvm-room--clickable { cursor: pointer; }
.mvm-room--clickable:hover { transform: translateY(-2px) scale(1.07); filter: brightness(1.3); z-index: 2; }
.mvm-room-num  { line-height: 1; font-size: 1rem; font-weight: 800; }
.mvm-room-tag  { font-size: .7rem; opacity: .9; line-height: 1; }

/* ── SP リスト ──────────────────────────────────────────────────── */
.mvm-sp-list { display: none; }
.mvm-sp-room-row {
  display: flex;
  align-items: center;
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--border);
  gap: .7rem;
  cursor: pointer;
  transition: background .12s;
}
.mvm-sp-room-row:last-child { border-bottom: none; }
.mvm-sp-room-row:hover:not(.mvm-sp-no-click) { background: rgba(255,255,255,.03); }
.mvm-sp-no-click { cursor: default; }
.mvm-sp-status-bar { width: 6px; height: 40px; border-radius: 3px; flex-shrink: 0; }
.mvm-sp-room-num { font-family: 'DM Mono', monospace; font-size: .95rem; font-weight: 700; width: 50px; flex-shrink: 0; }
.mvm-sp-status-label { font-size: .85rem; flex: 1; filter: brightness(1.6); }
.mvm-sp-rent { font-size: .8rem; color: var(--muted); font-family: 'DM Mono', monospace; white-space: nowrap; }
.mvm-sp-arrow { color: var(--muted); font-size: .9rem; flex-shrink: 0; }
.mvm-sp-floor-label {
  background: var(--surface2);
  padding: .35rem .9rem;
  font-size: .68rem;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  border-bottom: 1px solid var(--border);
  letter-spacing: .05em;
}

/* ── モーダル ─────────────────────────────────────────────────── */
.mvm-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 10000;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.mvm-modal-overlay.is-active { display: flex; }
.mvm-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 420px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: mvmIn .18s ease;
}
@keyframes mvmIn {
  from { transform: scale(.95) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.mvm-modal-header {
  padding: 1rem 1.2rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
}
.mvm-modal-title { font-size: 1.05rem; font-weight: 700; }
.mvm-modal-sub   { font-size: .72rem; color: var(--muted); margin-top: .18rem; }
.mvm-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: .2rem;
}
.mvm-modal-close:hover { color: var(--text); }
.mvm-modal-body   { padding: 1.1rem 1.2rem; }
.mvm-modal-footer {
  padding: .85rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

/* モーダル内コンポーネント */
.mvm-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1rem; }
.mvm-info-label { font-size: .66rem; color: var(--muted); margin-bottom: .15rem; }
.mvm-info-value { font-size: .85rem; font-weight: 500; }

.mvm-status-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 3px;
  font-size: .73rem;
  font-weight: 700;
}
.mvm-status-badge.vacant   { background: var(--s-vacant);   color: var(--s-vacant-t);   }
.mvm-status-badge.cleaning { background: var(--s-cleaning); color: var(--s-cleaning-t); }
.mvm-status-badge.ready    { background: var(--s-ready);    color: var(--s-ready-t);    }
.mvm-status-badge.reserved { background: var(--s-reserved); color: var(--s-reserved-t); }
.mvm-status-badge.occupied { background: var(--s-occupied); color: var(--s-occupied-t); }

.mvm-m-section { font-size: .66rem; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; margin: 1rem 0 .5rem; }

.mvm-date-slots { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-bottom: .9rem; }
.mvm-date-slot {
  padding: .42rem .6rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: .74rem;
  cursor: pointer;
  transition: all .13s;
  display: flex;
  align-items: center;
  gap: .38rem;
  color: var(--dim);
  background: none;
}
.mvm-date-slot:hover:not(.is-taken) { border-color: var(--accent); background: rgba(92,138,255,.08); }
.mvm-date-slot.is-selected { border-color: var(--accent); background: rgba(92,138,255,.15); color: #93c5fd; }
.mvm-date-slot.is-taken { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.mvm-d-dot { width: 5px; height: 5px; border-radius: 50%; background: #6ee7b7; flex-shrink: 0; }
.mvm-date-slot.is-taken .mvm-d-dot { background: #444; }

.mvm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .5rem; }
.mvm-form-field { display: flex; flex-direction: column; gap: .2rem; }
.mvm-form-field label { font-size: .66rem; color: var(--muted); }
.mvm-form-field input,
.mvm-form-field textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .36rem .55rem;
  font-size: .78rem;
  color: var(--text);
  outline: none;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color .13s;
  resize: vertical;
}
.mvm-form-field input:focus,
.mvm-form-field textarea:focus { border-color: var(--accent); }

.mvm-note-box {
  background: rgba(80,80,80,.1);
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  padding: .6rem .8rem;
  font-size: .74rem;
  color: var(--muted);
  margin-bottom: .7rem;
}

.mvm-btn-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: .45rem 1rem;
  border-radius: 6px;
  font-size: .78rem;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all .13s;
}
.mvm-btn-cancel:hover { border-color: var(--dim); color: var(--text); }
.mvm-btn-submit {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: .45rem 1.2rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background .13s;
}
.mvm-btn-submit:hover { background: #7aa3ff; }
.mvm-btn-submit:disabled { background: var(--surface2); color: var(--muted); cursor: not-allowed; border: 1px solid var(--border); }

/* ── ログインページ ─────────────────────────────────────────────── */
.mvm-login-wrap {
  max-width: 380px;
  margin: 4rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.mvm-login-header {
  padding: 1.5rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.mvm-login-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.mvm-login-sub   { font-size: .75rem; color: var(--muted); }
.mvm-login-body  { padding: 1.5rem; }
.mvm-login-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.mvm-login-field label { font-size: .75rem; color: var(--muted); }
.mvm-login-field input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .55rem .8rem;
  font-size: .85rem;
  color: var(--text);
  outline: none;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color .13s;
}
.mvm-login-field input:focus { border-color: var(--accent); }
.mvm-btn-login {
  width: 100%;
  background: var(--accent);
  border: none;
  color: #fff;
  padding: .65rem;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background .13s;
  margin-top: .5rem;
}
.mvm-btn-login:hover { background: #7aa3ff; }
.mvm-login-note { font-size: .7rem; color: var(--muted); text-align: center; margin-top: .8rem; line-height: 1.6; }
.mvm-login-note a { color: var(--accent); }

.mvm-alert { padding: .6rem .8rem; border-radius: 5px; font-size: .78rem; margin-bottom: .8rem; }
.mvm-alert-error { background: rgba(127,29,29,.3); border: 1px solid #7f1d1d; color: #fca5a5; }
.mvm-alert-success { background: rgba(20,83,45,.3); border: 1px solid #14532d; color: #6ee7b7; }

/* ── トップページ ─────────────────────────────────────────────── */
.mvm-top { max-width: 900px; margin: 2rem auto; padding: 0 1.5rem; }
.mvm-top-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background: linear-gradient(135deg, rgba(92,138,255,.08), rgba(124,106,255,.08));
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 2rem;
}
.mvm-top-hero h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.4; }
.mvm-accent { color: var(--accent); }
.mvm-top-hero p { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.mvm-top-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.mvm-top-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.3rem;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.mvm-top-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.mvm-top-card--admin:hover { border-color: var(--accent2); }
.mvm-top-card-icon  { font-size: 1.8rem; margin-bottom: .6rem; }
.mvm-top-card-title { font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
.mvm-top-card-desc  { font-size: .75rem; color: var(--muted); line-height: 1.6; }
.mvm-top-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
}
.mvm-top-info h2 { font-size: .88rem; font-weight: 700; margin-bottom: .8rem; color: var(--dim); }
.mvm-top-info ul { list-style: none; padding: 0; margin: 0; }
.mvm-top-info li { font-size: .8rem; color: var(--muted); padding: .3rem 0; padding-left: 1rem; position: relative; }
.mvm-top-info li::before { content: '✓'; position: absolute; left: 0; color: #6ee7b7; }

/* ── マイページ ──────────────────────────────────────────────── */
.mvm-mypage { padding: 0 1rem; }
.mvm-section-head {
  font-size: .78rem;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .8rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}

/* テーブル共通 */
.mvm-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.mvm-table th {
  background: var(--surface2);
  padding: .5rem .8rem;
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.mvm-table td { padding: .55rem .8rem; border-bottom: 1px solid var(--border); color: var(--dim); }
.mvm-table tr:last-child td { border-bottom: none; }
.mvm-table tr:hover td { background: rgba(255,255,255,.02); }

.mvm-chip {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 700;
}
.mvm-chip-pending   { background: #7c2d12; color: #fdba74; }
.mvm-chip-confirmed { background: #14532d; color: #6ee7b7; }
.mvm-chip-rejected  { background: #3f3f46; color: #9ca3af; }

.mvm-no-data { text-align: center; color: var(--muted); padding: 2rem !important; }
.mvm-mono { font-family: 'DM Mono', monospace; }

/* ── レスポンシブ ────────────────────────────────────────────── */
@media (max-width: 767px) {
  .mvm-pc-grid { display: none !important; }
  .mvm-sp-list { display: block !important; }

  .mvm-stats-bar { grid-template-columns: repeat(3, 1fr); }
  .mvm-stats-bar .mvm-stat-item:nth-child(4),
  .mvm-stats-bar .mvm-stat-item:nth-child(5) { display: none; }

  .mvm-top-cards { grid-template-columns: 1fr; }
  .mvm-form-row  { grid-template-columns: 1fr; }
  .mvm-info-grid { grid-template-columns: 1fr; }

  .mvm-nav { padding: 0 .8rem; }
  .mvm-nav-right { display: none; }

  .mvm-table { font-size: .72rem; }
  .mvm-table th,
  .mvm-table td { padding: .4rem .5rem; }
}

@media (min-width: 768px) {
  .mvm-pc-grid { display: block !important; }
  .mvm-sp-list { display: none !important; }
}

/* ── 駐車場グリッド ───────────────────────────────────────────── */
.mvm-parking-lot { margin-bottom: 2rem; }
.mvm-parking-lot-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
}
.mvm-parking-lot-name span {
  font-size: .78rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: .5rem;
}
.mvm-pspot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.mvm-pspot {
  width: 84px;
  height: 90px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  border: 1px solid rgba(255,255,255,.08);
  user-select: none;
}
.mvm-pspot:hover { opacity: .85; transform: scale(1.04); }
.mvm-pspot-icon { font-size: 2.8rem; line-height: 1; }
.mvm-pspot-num  { font-size: 2rem; font-weight: 800; line-height: 1; }

/* 駐車場ステータスバッジ */
.mvm-parking-grid { padding: .9rem 1.1rem; }
.mvm-parking-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

/* 駐車場ステータスバッジ */
.mvm-parking-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}

/* モーダル成功メッセージ */
.mvm-modal-success {
  text-align: center;
  padding: 2rem 1.5rem;
}
.mvm-modal-success-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.mvm-modal-success h3 { font-size: 1rem; margin-bottom: .5rem; }
.mvm-modal-success p  { font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ── 電話番号バナー ────────────────────────────────────────────── */
.mvm-phone-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #0e4d8a 100%);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-align: center;
  font-size: .85rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-top: 1rem;
}
.mvm-phone-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .08em;
  text-decoration: none;
  margin-top: .3rem;
}
.mvm-phone-number:hover { color: #93c5fd; }

/* ── 内覧スケジュール（モーダル内） ────────────────────────────── */
.mvm-tour-slot-list {
  list-style: none;
  margin: .5rem 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.mvm-tour-slot-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .45rem .8rem;
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.mvm-tour-schedule-empty {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  padding: .8rem 0;
}

/* ── 間取り図（モーダル内） ─────────────────────────────────────── */
.mvm-floorplan-wrap { text-align: center; }
.mvm-floorplan-img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ── マイページ（内覧スケジュール） ─────────────────────────────── */
.mvm-mypage { max-width: 900px; margin: 0 auto; padding: 1.5rem; }
.mvm-section-head {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}
.mvm-no-data { color: var(--muted); padding: 2rem; text-align: center; }

/* ── LP ページ ───────────────────────────────────────────────────── */
.mvm-lp-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 320px;
  overflow: hidden;
  background: #0f172a;
}
.mvm-slideshow { position: absolute; inset: 0; }
.mvm-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.mvm-slide.is-active { opacity: 1; }
.mvm-slide-placeholder { width: 100%; height: 100%; background: #1e3a5f; }

.mvm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 3rem;
}
.mvm-hero-inner { color: #fff; }
.mvm-hero-company {
  font-size: .95rem;
  letter-spacing: .15em;
  opacity: .85;
  margin-bottom: .5rem;
}
.mvm-hero-catchphrase {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.mvm-lp-section {
  padding: 3rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}
.mvm-lp-container { max-width: 760px; margin: 0 auto; }
.mvm-lp-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e3a5f;
  padding-bottom: .6rem;
  border-bottom: 3px solid #1e3a5f;
  margin-bottom: 1.5rem;
}

/* 会社情報 */
.mvm-lp-company { background: #f8fafc; }
.mvm-company-info { display: flex; flex-direction: column; gap: .8rem; }
.mvm-company-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.mvm-company-label {
  font-size: .85rem;
  font-weight: 600;
  color: #64748b;
  min-width: 80px;
}
.mvm-company-value { font-size: .95rem; color: #1e293b; line-height: 1.6; }
.mvm-lp-phone { font-size: 1.3rem; font-weight: 700; color: #1e3a5f; }

/* ニュース */
.mvm-lp-news { background: #fff; }
.mvm-news-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.mvm-news-item {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding-bottom: .8rem;
  border-bottom: 1px solid #e2e8f0;
}
.mvm-news-item:last-child { border-bottom: none; }
.mvm-news-date { font-size: .82rem; color: #64748b; white-space: nowrap; font-family: 'DM Mono', monospace; }
.mvm-news-title { font-size: .95rem; color: #1e293b; }

/* LPフッター */
.mvm-lp-footer {
  background: #1e3a5f;
  color: #94a3b8;
  text-align: center;
  padding: 1.5rem;
  font-size: .82rem;
}

/* LP用 body 背景を白に */
body:has(.mvm-lp-hero) {
  background: #fff !important;
  color: #1e293b !important;
}

/* ── 業者登録フォーム ────────────────────────────────────────────── */
.mvm-auth-wrap {
  min-height: 100vh;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.mvm-auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 480px;
}
.mvm-auth-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mvm-auth-logo-icon { font-size: 2rem; }
.mvm-auth-logo-sub { font-size: .8rem; color: #64748b; }
.mvm-auth-logo-title { font-size: 1.1rem; font-weight: 700; color: #1e3a5f; }
.mvm-form-group { margin-bottom: 1rem; }
.mvm-form-group label { display: block; font-size: .85rem; font-weight: 600; color: #374151; margin-bottom: .3rem; }
.mvm-form-group input {
  width: 100%;
  padding: .6rem .9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: .95rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color .15s;
}
.mvm-form-group input:focus { outline: none; border-color: #3b82f6; background: #fff; }
.mvm-login-btn {
  width: 100%;
  padding: .75rem;
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background .15s;
  margin-top: .5rem;
}
.mvm-login-btn:hover { background: #1e4d8a; }
.mvm-login-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── @media print ────────────────────────────────────────────────── */
@media print {
  body { background: #fff !important; color: #1e293b !important; }
  .mvm-nav, .mvm-stats-bar, .mvm-legend { display: none !important; }
}
