.category-content {
  text-align: left;
  margin-inline: 5px;
  @media (min-width: 950px) {
    margin-inline: 0;
  }
  > section,
  > div {
    &:not(:last-child) {
      margin-bottom: 30px;
      @media (min-width: 950px) {
        margin-bottom: 50px;
      }
    }
  }
  h2 {
    margin-bottom: 10px;
    font-size: 24px;
  }
  h3 {
    margin-bottom: 10px;
    font-size: 20px;
  }
  p {
    margin-bottom: 20px;
  }
  a {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  img {
    margin-bottom: 10px;
    width: 100%;
    height: auto;
  }
  .flex {
    display: flex;
    gap: 10px;
    > li {
      flex: 1;
    }
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    @media (min-width: 950px) {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  .coming-soon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
  }
  /* サイズテーブルのスタイル（共通） */
  .size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;

    thead {
      th {
        background-color: #666666;
        color: #fff;
        border: 1px solid #444444;
        padding: 10px 8px;
        text-align: center;
        font-weight: bold;
      }
    }

    th, td {
      border: 1px solid #ccc;
      padding: 8px;
    }

    th {
      background-color: #666666;
      color: #fff;
      font-weight: bold;
    }

    /* インチ列は改行防止 */
    .inch-cell {
      white-space: nowrap;
      text-align: center;
    }

    /* サイズ列は見出し行を除いて左寄せ */
    .size-cell {
      text-align: left;
    }

    /* 交互の行をグレー系に（デフォルト） */
    tbody tr:nth-child(odd) {
      background-color: #f5f5f5;
    }
    tbody tr:nth-child(even) {
      background-color: #e8e8e8;
    }

    /* MONSTA 用（青系） */
    &.monsta {
      thead th {
        background-color: #0066cc;
        color: #fff;
        border: 1px solid #004499;
      }
      th {
        background-color: #0066cc;
        color: #fff;
      }
      tbody tr:nth-child(odd) {
        background-color: #e6f0ff;
      }
      tbody tr:nth-child(even) {
        background-color: #cce0ff;
      }
    }

    /* マッドスター用（黄色系） */
    &.mudstar {
      th, td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
      }
      th {
        background-color: #f4c842;
        color: #000;
        font-weight: bold;
        text-align: center;
      }
      td:first-child {
        text-align: center;
      }
      tbody tr:nth-child(odd) {
        background-color: #fffbe6;
      }
      tbody tr:nth-child(even) {
        background-color: #fff8cc;
      }
    }

    a {
      display: inline;
      color: #0066cc;
      text-decoration: underline;
      white-space: nowrap;
      margin-right: 5px;
      &:hover {
        opacity: 0.7;
      }
    }

    + img {
      margin-top: 10px;
      margin-bottom: 0;
    }
  }

  /* ボトム画像 */
  .bottom-image {
    width: 100%;
    height: auto;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  /* 動画 */
  video {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  /* 詳細説明テキスト */
  .detail-description__text {
    margin-bottom: 20px;
    line-height: 1.8;
  }

  /* リンクグリッド - スマホでもカラム数を維持 */
  .links {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

    &.-col3 {
      grid-template-columns: repeat(3, 1fr);
    }

    &.-col4 {
      grid-template-columns: repeat(4, 1fr);
    }

    li {
      margin: 0;

      a {
        display: block;

        img {
          width: 100%;
          height: auto;
          margin: 0;
        }
      }
    }
  }

  /* ページの一番下の余白 */
  > section:last-child,
  > div:last-child {
    margin-bottom: 30px;
    @media (min-width: 950px) {
      margin-bottom: 50px;
    }
  }
}

/* マッドスター専用スタイル */
.category-content.mudstar {
  @media (min-width: 950px) {
    margin-top: 20px;
  }
  .top-image {
    margin-bottom: 10px;
    img {
      margin-bottom: 0;
    }
  }
  .lineup {
    margin-bottom: 10px;
    img {
      width: 100%;
      height: auto;
      margin-bottom: 0;
    }
    .lineup-list {
      display: flex;
      flex-direction: row;
      gap: 10px;
      margin: 10px 0;
      list-style: none;
      padding: 0;
      li {
        flex: 1;
        img {
          width: 100%;
          height: auto;
          margin-bottom: 0;
        }
      }
    }
  }
  .product-section {
    margin-bottom: 10px;
    h2 {
      margin-bottom: 10px;
      img {
        width: 100%;
        margin-bottom: 0;
      }
    }
    .size-table {
      th:first-child,
      td:first-child {
        width: 50px;
        @media (min-width: 950px) {
          width: 80px;
        }
      }
    }
  }
}
