.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:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #d0d0d0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.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-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);
  transform: translateY(-2px);
}

.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 {
  justify-content: space-between;
}

.mybm-list:not(.mybm-list-with-thumb) li .mybm-btn {
  margin-left: auto;
}

.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;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mybm-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;
}

.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);
  transform: translateY(-1px);
}

.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-ranking p {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
}

/* サムネイル画像のスタイル */
.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;
}

