/* Minimal Membership Pro - Style */

.mmp-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-weight: bold;
  border: 1px solid #000;
  cursor: pointer;
  transition: background 0.3s;
}
.mmp-btn:hover {
  background: #fff;
  color: #000;
}

.mmp-btn--outline {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}
.mmp-btn--outline:hover {
  background: #000;
  color: #fff;
}

.mmp-fav-wrap {
  text-align: right;
  margin-bottom: 10px;
}

/* アイキャッチ右上重ね表示用 */
.mmp-thumb-wrap {
  position: relative;
  display: inline-block;
}
.mmp-fav-wrap--thumb {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
}
.mmp-fav-btn {
  background: #fff;
  border: 1px solid #000;
  color: #000;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}
.mmp-fav-btn:hover {
  background: #000;
  color: #fff;
}
.mmp-fav-btn.active {
  background: #000;
  color: #fff;
}

.mmp-fav-list {
  list-style: none;
  padding: 0;
}
.mmp-fav-list li {
  margin: 6px 0;
}

/* CTA card for locked content */
.mmp-cta {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #eaeaea;
  background: #f8f8f8; /* subtle neutral card */
  border-radius: 8px;
  color: #333; /* ensure readable text */
}
.mmp-cta a { color: inherit; }
.mmp-cta a:hover { color: inherit; }

/* Account tabs */
.mmp-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
}
.mmp-tab {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}
.mmp-tab.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}
.mmp-tab-panel {
  display: none;
}
.mmp-tab-panel.is-active {
  display: block;
}
.mmp-otp-link {
  margin: 8px 0 16px;
}
.mmp-otp-link a {
  color: #000;
  text-decoration: underline;
}
.mmp-account-actions {
  margin-top: 16px;
}

/* Auth widget (links only) */
.mmp-auth-widget-links {
  border: 1px solid #ccc;
  background: #fff;
}
.mmp-auth-link {
  border-bottom: 1px solid #e5e5e5;
}
.mmp-auth-link:last-child {
  border-bottom: none;
}
.mmp-auth-link a {
  display: block;
  padding: 10px 12px;
  color: #000;
  text-decoration: none;
}
.mmp-auth-link a:hover {
  background: #f5f5f5;
  text-decoration: none;
}
.mmp-auth-link form {
  margin: 0;
}
.mmp-auth-link button {
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: #000;
}
.mmp-auth-link button:hover {
  background: #f5f5f5;
}
.mmp-auth-note {
  padding: 8px 12px;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #e5e5e5;
}
.mmp-cta-title {
  margin: 0 0 10px 0;
  font-weight: 700;
}
.mmp-cta-desc { margin: 0 0 12px 0; }
.mmp-btn-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.mmp-btn-group .mmp-btn { margin: 0; }

/* ブロック用スタイル */
.mm-paywall,
.mm-free-content-locked,
.mm-paid-content-locked {
  padding: 20px;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  background: #fafafa;
  text-align: center;
  margin: 20px 0;
  color: #333; /* readable text */
}

.mm-free-content,
.mm-paid-content {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 10px 0;
}

.mm-free-content {
  background: #fff;
  border-color: #ccc;
  color: #333;
}

.mm-paid-content {
  background: #fff;
  border-color: #ccc;
  color: #333;
}

/* 閲覧制限通知 */
.mm-content-notice {
  padding: 8px 12px;
  margin: 0 0 15px 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.mm-free-notice {
  background: transparent;
  color: #333; /* readable neutral */
  border: none;
}

.mm-paid-notice {
  background: transparent;
  color: #333; /* readable neutral */
  border: none;
}

/* Forms */
.mmp-form {
  max-width: 420px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}
.mmp-form label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}
.mmp-form input[type="email"],
.mmp-form input[type="password"],
.mmp-form input[type="text"],
.mmp-form input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}
.mmp-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mmp-input-row input[type="password"],
.mmp-input-row input[type="text"] {
  padding-right: 12px; /* reset to normal */
}
.mmp-eye-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  color: #666;
  margin-top: 0;
}
.mmp-eye-btn:hover { border-color: #999; }
.mmp-eye-btn .dashicons { font-size: 18px; line-height: 1; }
.mmp-eye-btn.active { color: #2DBE61; border-color: #2DBE61; }
.mmp-form .mmp-actions {
  margin-top: 14px;
}
.mmp-form .mmp-btn {
  width: 100%;
}

/* CTA buttons (free/paid lock cards) */
.mmp-cta .mmp-btn {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
.mmp-cta .mmp-btn:hover {
  background: #fff;
  color: #000;
}
.mmp-cta .mmp-btn--outline {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}
.mmp-cta .mmp-btn--outline:hover {
  background: #000;
  color: #fff;
}

/* Download ranking */
.mmp-download-ranking {
  border: 1px solid #222;
  background: #fff;
}
.mmp-download-ranking__title {
  margin: 0 0 15px 0 !important;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid #222;
}
.mmp-download-ranking__title::before {
  content: url("../img/dl_icon.png");
  display: block;
  line-height: 0;
  flex: 0 0 auto;
  align-self: center;
}
.mmp-download-ranking__empty {
  margin: 0;
  padding: 16px 18px;
  color: #666;
}
.mmp-download-ranking__list {
  margin: 0;
  padding: 0 15px 0 0;
  list-style: none;
}
.mmp-download-ranking__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 12px;
}
.mmp-download-ranking__item:last-child {
  margin-bottom: 0;
}
.mmp-download-ranking__rank {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: #1f3b57;
}
.mmp-download-ranking__link {
  display: inline-block;
  margin-top: 2px;
  color: #1f3b57;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.mmp-download-ranking__link:hover {
  text-decoration: underline;
}
.mmp-download-ranking__meta {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mmp-download-ranking__date {
  color: #3a4f64;
  font-size: 14px;
  line-height: 1;
}
.mmp-download-ranking__cat {
  display: inline-block;
  padding: 4px 8px;
  background: #e1252a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.mmp-download-ranking__count {
  margin-left: auto;
  font-size: 12px;
  color: #666;
}
