.yokonarabi {
    display: flex;
}
/* 親要素：PCでは横並び */
.cat-flex-container {
  display: flex;
  flex-direction: row; /* デフォルトは横並び */
  gap: 40px;           /* 画像間の隙間 */
  margin: 20px 0;
  font-family: sans-serif;
}

/* 各画像ブロック */
.cat-item {
  flex: 1;
  max-width: 250px;    /* PCで画像が大きくなりすぎるのを防ぐ */
}

.cat-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* 画像リンクの設定 */
.cat-img-link {
  display: block;
  transition: opacity 0.3s;
}

.cat-img-link:hover {
  opacity: 0.7;
}

.cat-img-link img {
  width: 100%;         /* 親要素の幅いっぱいに広がる */
  height: auto;        /* 比率を維持 */
  border: solid 1px #ccc;
  box-sizing: border-box;
}

/* --- スマホ対応：画面幅600px以下の設定 --- */
@media (max-width: 600px) {
  .cat-flex-container {
    flex-direction: column; /* ★横並びを「縦並び」に変更 */
    gap: 30px;              /* 縦に並んだ時の上下の間隔 */
    align-items: flex-start; /* 左寄せ（中央にしたい場合はcenter） */
  }

  .cat-item {
    max-width: 100%;        /* ★スマホでは画面幅いっぱいに広がる */
    width: 100%;
  }
}
.seihin {
    font-size: 14px !important;
    font-weight: bold;
    border-bottom: solid 1px;
}
@media screen and (max-width: 480px) {
    .yokonarabi {
        display: block;
    }
    img {
        height: auto;
        max-width: 100%;
    }
}

.prod-container {
  max-width: 1000px;
  margin: 20px auto;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  padding: 0 10px;
}

/* タイトルスタイル */
.prod-group-title { font-weight: bold; margin-bottom: 10px; font-size: 1rem; }
.prod-category-title { color: #d32f2f; font-weight: bold; margin: 25px 0 10px; font-size: 1.1rem; }

/* 画像行（5列1セットの画像が画面に収まるように） */
.prod-row {
  width: 100%;
  margin-bottom: 8px; /* 行間の微調整 */
}
.prod-row img {
  width: 100%;
  height: auto;
  display: block;
  border: none; /* CSSでの枠線はなし */
}

/* もっと見る（details/summary） */
.prod-details {
  margin: 15px 0;
}
.prod-summary {
　color: #457bff;
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
  list-style: none; /* 標準の矢印を非表示 */
  outline: none;
}
.prod-summary::-webkit-details-marker { display: none; } /* Safari用 */

.prod-summary, .prod-summary * {
    color: #457bff !important;
}

.prod-hint {
  color: #007bff;
  font-size: 0.9rem;
  font-weight: normal;
}

/* 展開エリア（枠線なし、マージンのみ） */
.prod-expanded-area {
  margin-top: 10px;
}

/* フッターリンク */
.prod-footer-text {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #666;
}
.prod-footer-text a {
  color: #007bff;
  text-decoration: underline;
}

/* 画像リンクのホバーエフェクト */
.prod-row a {
  display: block;
  transition: opacity 0.3s ease; /* ふわっと変化させるアニメーション */
}

.prod-row a:hover {
  opacity: 0.6; /* ★数値を下げるほど薄くなります（0.6〜0.7が一般的） */
  cursor: pointer; /* カーソルを指の形にする */
}

/* スマホ表示の調整 */
@media (max-width: 600px) {
.right {
    /* ★右寄せをキャンセルして中央寄せにする */
    text-align: center !important;
    padding: 0;
    margin: 15px auto;
  }

  .right img {
    /* ★画像がスマホの横幅を超えないようにする */
    max-width: 100% !important;
    width: auto !important; /* 元のサイズ（200px）以下ならそのサイズ、超えるなら画面幅に */
    height: auto !important;
    display: inline-block;
  }
  .prod-hint { 
    display: block; 
    margin-top: 5px; 
    margin-left: 1.2em; 
  }
}

/* 全体のコンテナ */
.prod-item-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-bottom: 30px;
  line-height: 0;
}

/* 画像の設定 */
.prod-row img {
  width: 100%;
  height: auto;
  display: block;
}

/* ★データシートリンクの5等分レイアウト */
.prod-datasheet-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5等分 */
  width: 100%;
  margin-top: -1em; /* 画像との隙間 */
  padding-bottom: 2em;
}

.prod-ds-cell {
  text-align: center; /* 5等分した中の中央に寄せる */
  padding: 5px 0;
}

/* datasheetリンクの文字デザイン */
.prod-ds-cell a {
  color: #007bff;
  text-decoration: underline;
  font-size: 0.85rem;
  transition: opacity 0.3s;
}

.prod-ds-cell a:hover {
  opacity: 0.6;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .prod-ds-cell a {
    font-size: 0.7rem; /* スマホでは文字を小さくして収める */
  }
}

/* 基本設定（スマホ：100%） */
.cat-flex-container .cat-item:first-child .cat-img-link img {
    width: 100%;
    height: auto;
}

/* PC・タブレット設定（画面幅が768px以上の場合：3分の2） */
@media screen and (min-width: 768px) {
    .cat-flex-container .cat-item:first-child .cat-img-link img {
        width: 66%;
    }
}

/* レイアウト調整（横並びの設定） */
.cat-flex-container {
    display: flex;
    flex-wrap: wrap; /* スマホで縦に並べる場合はこれが必要 */
    gap: 20px;
}