/* 全体2カラムレイアウト */
.compare-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.compare-main {
  flex: 1 1 65%;
  min-width: 0;
}

.compare-sidebar {
  flex: 0 0 30%;
  min-width: 280px;
}

/* タイトル用バッジ */
.compare-badge.inline {
  display: inline-block;
  margin-left: 0.6em;
  vertical-align: middle;
  font-size: 0.9rem;
  padding: 0.3em 0.9em;
  background-color: var(--color-sub2);
  color: #fff;
  border-radius: 999px;
  font-weight: bold;
  line-height: 1.2;
  font-family: var(--font-sans);
}

/* カード用バッジ */
.sidebar-item,
.recommend-item {
  position: relative;
  overflow: visible;
}

.compare-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--color-sub2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: var(--font-sans);
}

/* サイドバー内の画像サイズ制限 */
.sidebar-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.review-featured-image img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  aspect-ratio: 4 / 3; /* or 3 / 2 などでもOK */
  border-radius: 12px;
}

.sidebar-item,
.recommend-item {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
}

.sidebar-item:hover,
.recommend-item:hover {
  transform: translateY(-2px);
}

.sidebar-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.sidebar-thumb {
  margin-bottom: 0.5rem;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.4;
  margin-top: 0;
  color: var(--color-text-main);
}

.sidebar-list,
.recommend-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-title {
  font-size: 1rem; /* ← 例えば元が 0.875rem なら */
  font-weight: bold;
  margin-top: 0.5rem;
  color: #333;
  line-height: 1.4;
}


.main-eyecatch img {
  height: auto;
  max-height: 320px; /* ← 現状200px程度なら少し緩める */
  object-fit: cover; /* 必要なら維持 */
  width: 100%;
  border-radius: 8px;
}


.author-box {
  display: flex;
  align-items: center;
  margin-top: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.3em;
}

.author-bio {
  font-size: 0.9rem;
  color: #666;
}
