/* 女神の集客自動化 会員サイト — Teachable風サイドバー＋アプリUI (2026-07-09) */

/* ===== サイドバー本体 ===== */
#ma-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 300px; z-index: 900;
  background: #fffdfb; border-right: 1px solid #ecdcc8;
  display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .25s ease;
}
.ma-has-sidebar.ma-drawer-open #ma-sidebar { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.18); }

.ma-side-head { padding: 16px 16px 12px; border-bottom: 1px solid #f0e6d8; background: linear-gradient(135deg,#fdf8f2,#f9efe2); }
.ma-home { display: inline-block; font-size: 12.5px; color: #8b5e3c; text-decoration: none; font-weight: 700; margin-bottom: 10px; }
.ma-home:hover { text-decoration: underline; }
.ma-prog-label { font-size: 11.5px; color: #8a7a68; margin-bottom: 6px; font-weight: 600; }
.ma-prog-track { height: 8px; background: #efe5d6; border-radius: 999px; overflow: hidden; }
.ma-prog-track i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg,#d4a984,#b88a6a); transition: width .4s; }

.ma-nav { flex: 1; overflow-y: auto; padding: 10px 0 90px; -webkit-overflow-scrolling: touch; }
.ma-sec { margin-bottom: 6px; }
.ma-sec-h { font-size: 11.5px; font-weight: 700; color: #6b5638; padding: 10px 14px 6px;
  border-left: 4px solid #b88a6a; margin: 8px 0 2px; background: #fbf6ee; display:flex; justify-content:space-between; align-items:center;}
.ma-sec-n { font-size: 10px; color: #a08b6a; font-weight: 600; }
.ma-item { display: flex; align-items: center; gap: 9px; padding: 8px 14px; font-size: 12.5px;
  color: #4a4038; text-decoration: none; line-height: 1.5; }
.ma-item:hover { background: #fdf4e9; }
.ma-item.cur { background: #f6e8d8; font-weight: 700; border-right: 3px solid #b88a6a; }
.ma-ck { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #d9c9b2; flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; }
.ma-ck.on { background: #6aab8e; border-color: #6aab8e; }
.ma-t { flex: 1; }

/* ===== PC: サイドバー常時表示・本文を右へ ===== */
@media (min-width: 1024px) {
  #ma-sidebar { transform: translateX(0); }
  .ma-has-sidebar body { margin-left: 300px; }
  #ma-drawer-btn { display: none; }
  #ma-overlay { display: none !important; }
}

/* ===== スマホ: ドロワー ===== */
@media (max-width: 1023.98px) {
  #ma-drawer-btn { position: fixed; left: 14px; bottom: 18px; z-index: 950;
    background: #8b5e3c; color: #fff; border: none; border-radius: 999px;
    padding: 12px 18px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
  #ma-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 890;
    opacity: 0; pointer-events: none; transition: opacity .25s; }
  .ma-drawer-open #ma-overlay { opacity: 1; pointer-events: auto; }
}

/* ===== 完了して次へ ボタンの既完了状態 ===== */
.complete-btn.done-nav { background: linear-gradient(135deg,#b88a6a,#d4a984) !important; cursor: pointer !important; color:#fff !important; }

/* ===== トースト ===== */
.ma-toast { position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 9999;
  background: #b88a6a; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: 90%; text-align: center; }
.ma-toast.ok { background: #6aab8e; }
.ma-toast.out { opacity: 0; transition: opacity .45s; }
