.mybm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mybm-btn-guest {
  opacity: 0.6;
  border-style: dashed;
  background: #f9fafb;
}

.mybm-btn:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #d0d0d0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.mybm-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mybm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mybm-btn[aria-pressed="true"] {
  color: #2563eb;
  background: #eff6ff;
  border-color: #2563eb;
}

.mybm-btn[aria-pressed="true"]:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #1d4ed8;
}

.mybm-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}

.mybm-btn-text {
  display: inline-block;
}

.mybm-inline-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.mybm-single-button {
  margin-top: 12px;
}

/* ログイン促しモーダル */
.mybm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.mybm-modal-overlay.is-open {
  display: flex;
}

.mybm-modal {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid #e5e7eb;
}

.mybm-modal-text {
  margin: 0 0 16px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.6;
}

.mybm-modal-close {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mybm-modal-close:hover {
  background: #1d4ed8;
}

.mybm-list {
  margin: 0;
  padding: 0;
}

.mybm-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mybm-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mybm-list-with-thumb li {
  align-items: center;
}

.mybm-list-with-thumb .mybm-item-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mybm-list li:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.mybm-list li a {
  flex: 1;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.5;
}

.mybm-list li a:has(img) {
	max-width:80px!important;
}

.mybm-list-with-thumb .mybm-item-content > a {
  flex: 1;
  text-align: left;
  align-self: center;
}

.mybm-list li a:hover {
  color: #2563eb;
}

.mybm-list li .mybm-btn {
  flex-shrink: 0;
  margin-left: auto;
}

/* サムネイルがない場合のボタン右寄せ */
.mybm-list:not(.mybm-list-with-thumb) li .mybm-item-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.mybm-list[data-mybm-list] p {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
}

.mybm-ranking {
  margin: 0;
  padding: 0;
}

.mybm-ranking h3 {
  margin: 0 0 20px 0;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

.mybm-ranking ol {
  list-style: none;
  counter-reset: ranking-counter;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #fff;
}

.mybm-ranking ol li {
  counter-increment: ranking-counter;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
  position: relative;
}

.mybm-ranking ol li:last-child {
  border-bottom: none;
}

.mybm-ranking-with-thumb ol li {
  align-items: flex-start;
  gap: 16px;
}

.mybm-ranking-with-thumb ol li::before {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  min-width: 28px;
  height: 28px;
  font-size: 13px;
  border-radius: 4px;
}

.mybm-ranking-with-thumb .mybm-item-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mybm-ranking ol li::before {
  content: counter(ranking-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mybm-ranking ol li:nth-child(1)::before {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.mybm-ranking ol li:nth-child(2)::before {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
}

.mybm-ranking ol li:nth-child(3)::before {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
}

.mybm-ranking ol li:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.mybm-ranking ol li:hover::before {
  transform: scale(1.05);
}

.mybm-ranking ol li a {
  flex: 1;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.5;
}

.mybm-ranking ol li a:has(img) {
  max-width:80px!important;
}

.mybm-ranking-with-thumb .mybm-item-content > a {
  flex: 1;
}

.mybm-ranking ol li a:hover {
  color: #2563eb;
}

.mybm-ranking .mybm-count {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 4px;
  flex-shrink: 0;
}

/* サムネイル画像のスタイル */
.mybm-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

.mybm-thumb-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
  position: relative;
}

.mybm-thumb-link:hover {
  opacity: 0.8;
}

.mybm-ranking-with-thumb .mybm-thumb-link {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 6px;
}

.mybm-ranking-with-thumb .mybm-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.mybm-thumb-placeholder {
  width: 80px;
  height: 80px;
  background: #f3f4f6;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

.mybm-ranking-with-thumb .mybm-thumb-placeholder {
  position: relative;
}

/* ========= いいね機能のスタイル（ブックマーク機能と共有） ========= */

.mylove-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mylove-btn:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #d0d0d0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.mylove-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mylove-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mylove-btn[aria-pressed="true"] {
  color: #dc2626;
  background: #fef2f2;
  border-color: #dc2626;
}

.mylove-btn[aria-pressed="true"]:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #b91c1c;
}

.mylove-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}

.mylove-btn-text {
  display: inline-block;
}

.mylove-list {
  margin: 0;
  padding: 0;
}

.mylove-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mylove-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mylove-list-with-thumb li {
  align-items: center;
}

.mylove-list-with-thumb .mylove-item-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mylove-list li:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.mylove-list li a {
  flex: 1;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.5;
}

.mylove-list li a:has(img) {
  max-width:80px!important;
}

.mylove-list-with-thumb .mylove-item-content > a {
  flex: 1;
  text-align: left;
  align-self: center;
}

.mylove-list li a:hover {
  color: #2563eb;
}

.mylove-list li .mylove-btn {
  flex-shrink: 0;
  margin-left: auto;
}

/* サムネイルがない場合のボタン右寄せ */
.mylove-list:not(.mylove-list-with-thumb) li .mylove-item-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.mylove-list[data-mylove-list] p {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
}

.mylove-ranking {
  margin: 0;
  padding: 0;
}

.mylove-ranking h3 {
  margin: 0 0 20px 0;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

.mylove-ranking ol {
  list-style: none;
  counter-reset: ranking-counter;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mylove-ranking ol li {
  counter-increment: ranking-counter;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  position: relative;
}

.mylove-ranking-with-thumb ol li {
  align-items: flex-start;
  gap: 16px;
}

.mylove-ranking-with-thumb ol li::before {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  min-width: 28px;
  height: 28px;
  font-size: 13px;
  border-radius: 4px;
}

.mylove-ranking-with-thumb .mylove-item-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mylove-ranking ol li::before {
  content: counter(ranking-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mylove-ranking ol li:nth-child(1)::before {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.mylove-ranking ol li:nth-child(2)::before {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(156, 163, 175, 0.3);
}

.mylove-ranking ol li:nth-child(3)::before {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
}

.mylove-ranking ol li:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.mylove-ranking ol li:hover::before {
  transform: scale(1.05);
}

.mylove-ranking ol li a {
  flex: 1;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.5;
}

.mylove-ranking ol li a:has(img) {
  max-width:80px!important;
}

.mylove-ranking-with-thumb .mylove-item-content > a {
  flex: 1;
}

.mylove-ranking ol li a:hover {
  color: #2563eb;
}

.mylove-ranking .mylove-count {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 4px;
  flex-shrink: 0;
}

/* サムネイル画像のスタイル（いいね機能用） */
.mylove-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

.mylove-thumb-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
  position: relative;
}

.mylove-thumb-link:hover {
  opacity: 0.8;
}

.mylove-ranking-with-thumb .mylove-thumb-link {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 6px;
}

.mylove-ranking-with-thumb .mylove-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.mylove-thumb-placeholder {
  width: 80px;
  height: 80px;
  background: #f3f4f6;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

.mylove-ranking-with-thumb .mylove-thumb-placeholder {
  position: relative;
}
