.front-page {
  padding: 0;
}

/* ========================
   HEROセクション（背景画像のみ）
======================== */
.hero-section.no-overlay {
  background-image: url('../img/MainTop_PC_1450x550.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 550px;
  margin: 0 auto;
  padding: 0;
  display: block;
}

@media screen and (max-width: 768px) {
  .hero-section.no-overlay {
    background-image: url('../img/MainTop_SP_720x940.png');
    height: 600px;
  }
}

/* ========================
   最新レビュー記事
======================== */
.latest-review,
.category-summary {
  padding: 40px 20px;
}

.latest-review h2,
.category-summary h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.review-item {
  list-style: none;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.review-item:hover {
  transform: translateY(-4px);
}

.review-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.review-card-content {
  padding: 16px;
}

.review-title {
  font-size: 1.1rem;
  margin: 0 0 0.5em;
}

.review-date {
  font-size: 0.875rem;
  color: #888;
}

.review-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================
   カテゴリまとめ
======================== */
.summary-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-cats li a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #eee;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

/* ========================
   最新の比較記事
======================== */
.latest-compare {
  margin: 80px 0;
  padding: 0 24px;
}

.latest-compare h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 24px;
  color: #333;
}

.compare-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-item {
  list-style: none;
}

/* ========================
   比較記事カード共通（.sidebar-card 再利用）
======================== */
.sidebar-card {
  display: block;
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.sidebar-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-card-body {
  padding: 12px;
}

.sidebar-card-body .sidebar-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

/* ========================
   横スクロール防止
======================== */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* 2カラム構成 */
.latest-review-section .two-column {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.main-column {
  flex: 2;
}

.sidebar-column {
  flex: 1;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}


.category-list li {
  margin-bottom: 1em;
}

.category-list a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.category-list a:hover {
  text-decoration: underline;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.category-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.category-icon {
  width: 48px;
  height: 48px;
  margin-right: 16px;
}

.category-label {
  font-size: 1rem;
}

.category-list-with-icons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-parent {
  margin-bottom: 1.5em;
}

.category-parent-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.category-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.subcategory-list {
  list-style: none;
  margin-top: 0.5em;
  margin-left: 34px;
  padding-left: 0;
  font-size: 0.95rem;
}

.subcategory-item {
  margin: 0.2em 0;
}

.subcategory-item a {
  color: #555;
  text-decoration: none;
}

.subcategory-item a:hover {
  text-decoration: underline;
}

.category-list-with-icons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-parent {
  margin-bottom: 2em;
  border-bottom: 1px solid #eee;
  padding-bottom: 1em;
}

.category-parent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-parent-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1rem;
}

.category-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.category-arrow {
  font-size: 1.2rem;
  text-decoration: none;
  color: #999;
}

.category-arrow:hover {
  color: #333;
}

.subcategory-list {
  list-style: none;
  margin-top: 0.5em;
  margin-left: 34px;
  padding-left: 0;
  font-size: 0.9rem;
}

.subcategory-item {
  margin: 0.2em 0;
}

.subcategory-item a {
  color: #555;
  text-decoration: none;
}

.subcategory-item a:hover {
  text-decoration: underline;
}


.recommend-link {
  display: flex;
  text-decoration: none;
  color: #333;
}

.recommend-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 1rem;
}

.recommend-text {
  flex: 1;
}

.recommend-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 0.4rem;
  line-height: 1.4;
}

.recommend-meta {
  font-size: 0.85rem;
  color: #999;
  margin: 0;
}


.recommend-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 1rem;
}

.recommend-text {
  flex: 1;
}

.recommend-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 0.4rem;
  line-height: 1.4;
}

.recommend-meta {
  font-size: 0.85rem;
  color: #999;
  margin: 0;
}

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

.recommend-item {
  margin-bottom: 1.5rem;
}

.recommend-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 1rem;
}

.recommend-text {
  flex: 1;
}

.recommend-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 0.4rem;
  line-height: 1.4;
}

.recommend-meta {
  font-size: 0.85rem;
  color: #999;
  margin: 0;
}

.magazine-item {
  margin-bottom: 2rem;
}

.magazine-link {
  display: block;
  text-decoration: none;
  color: #333;
}

.magazine-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.magazine-text {
  margin-top: 0.8rem;
}

.magazine-date {
  font-size: 0.55rem;
  color: #aaa;
  display: block;
 margin: 0 10px;
}

.magazine-title {
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 10px 21px;
}

.magazine-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.magazine-item:hover {
  transform: translateY(-4px);
}

.magazine-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ← ここで3列固定 */
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .magazine-list {
    grid-template-columns: 1fr; /* スマホなど小さい画面では1列に */
  }
}

.review-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.magazine-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 8px;
}

.magazine-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.magazine-card {
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* タイトルとの間に余白 */
.magazine-card .magazine-title {
  margin-top: 12px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.compare-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}

.compare-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s;
}

.compare-item:hover {
  transform: translateY(-2px);
}

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

.sidebar-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar-card-body {
  padding: 1rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.4;
}

.latest-compare {
  margin-top: 0;
}

.main-column h2 {
  margin-top: 0;
}

.compare-item {
  position: relative;
}

.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.8em;
  border-radius: 999px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: var(--font-sans);
}

.compare-item,
.sidebar-card {
  overflow: visible !important;
}

@media screen and (max-width: 768px) {
  .latest-review-section .two-column {
    flex-direction: column;
  }

  .main-column,
  .sidebar-column {
    width: 100%;
  }

  .compare-list {
    grid-template-columns: 1fr;
  }

  .magazine-list {
    grid-template-columns: 1fr;
  }
}
