/* 製品ページ用スタイルシート */
/* ここに書いた内容が公開ページと編集画面の両方に反映されます。 */
/* 出展社ごとに1本の共通ファイルです。製品ごとには分かれません。 */

/* 例：本文の見出し */
/*
.extra-info h3 {
  border-left: 4px solid #c26422;
  padding-left: 8px;
}
*/

/* 詳細ページメインコンテンツ部分 */
/* 全体のスタイル */

.main-section {
    display: flex;
    /*flex-wrap: wrap;*/
    flex-wrap: nowrap; /* 縦に並ぶのを防止 */
    align-items: flex-start;
    justify-content: center;
    /*padding: 10px;*/
    
}

.main-section img {
    width: 100% !important; /* 親要素の幅に従わせる */
    height: auto !important; /* 縦横比を維持して高さを調整 */
    border-radius: 8px;
    display: block; /* 画像の隙間を防ぐ */
    max-width: 100%; /* 親要素の幅を超えないようにする */
}

.image-container {
    /*flex: 0 0 auto;  幅の縮小を防ぐ */
    flex: 1 1 50%; /* 幅を50%に固定 */
    padding: 10px;
    text-align: center;
}

.text-container {
    /*flex: 1;*/
    flex: 1 1 50%; /* 幅を50%に固定 */
    padding: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.text-container h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.text-container p {
    font-size: 16px;
    line-height: 1.5;
}

/* レスポンシブデザイン */
@media screen and (max-width:950px) {
/*@media (max-width: 950px) {*/
    .main-section {
        flex-direction: column;
        text-align: center;
    }

    .image-container,
    .text-container {
        flex: unset;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .text-container {
        text-align: left;
    }

    .text-container h1 {
        font-size: 20px;
    }

    .text-container p {
        font-size: 14px;
    }
}


.product-container {
    width: 100%;
    /*margin: 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.product-title_bst {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
    /*text-align: center;*/
}

.product-description {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
    display: block; /* 各pタグをブロック要素として扱う */
}
.product-description p {
    
    margin-bottom: 20px; /* pタグの間隔を調整 (任意) */
}
.product-specifications {
    font-size: 16px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #f6f6f6;
    width: 100%;
}

.product-specifications h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #444;
}

.product-specifications ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.product-specifications ul li {
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #d9534f;
    margin-bottom: 20px;
   /* text-align: center;*/
}

.product-category,
.related-equipment {
    font-size: 16px;
    margin-bottom: 20px;
}

.product-category span,
.related-equipment span {
    font-weight: bold;
    color: #222;
}

.note {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
    line-height: 1.4;
}
######################################################トラスト用css

/* 全体のスタイル */
        .premium-blog-inner-container {
            background: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            max-width: 800px;
            margin: auto;
        }

        /* タイトルのデザイン */
        .premium-blog-entry-title {
            font-size: 1.7em;
            font-weight: bold;
            text-decoration: none;
            color: #333;
            border-bottom: 2px solid #f39c12;
            padding-bottom: 5px;
            display: inline-block;
        }

        /* レイアウト（PC用：写真左、表右） */
        .content-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px; /* 余白を増やして見やすく */
            margin-top: 20px;
        }

        .wp-block-image {
            flex: 1;
            max-width: 48%;
            text-align: center;
        }

        .wp-block-image img {
            width: 100% ! important;
            height: auto ! important;
            border-radius: 8px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
        }

        /* 表のデザイン */
        .table-wrapper {
            flex: 1;
            max-width: 48%;
            padding-right: 10px; /* 右側の余白 */
            display: block; /* フレックスレイアウトの影響を防ぐ */
        }

        .wp-block-table {
            width: 100% ! important; /* 親要素に対して100% */
            border-collapse: collapse;
            font-size: 14px;
        }

        .wp-block-table table {
            width: 100% ! important;
        }

        .wp-block-table th {
            background: #f39c12;
            color: white;
            padding: 10px;
            text-align: center;
            font-weight: bold;
        }

        .wp-block-table td {
            padding: 10px;
            text-align: center;
            border-bottom: 1px solid #ddd;
            font-size:12pt;
        }

        .wp-block-table tbody tr:nth-child(even) {
            background: #f8f8f8;
        }

        .wp-block-table tbody tr:hover {
            background: #fce4b5;
        }

        /* テキストのスタイル */
        .premium-blob-content-inner-wrapper p {
            font-size: 14px;
            color: #444;
            line-height: 1.6;
            text-align: center;
        }

        .premium-blob-content-inner-wrapper p strong {
            color: #e74c3c;
        }

        /* レスポンシブ対応（スマホ用） */
        @media (max-width: 950px) {
            .content-wrapper {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }

            .wp-block-image, .table-wrapper {
                width: 100%; /* 画像と表の幅を統一 */
                max-width: 100%;
            }

            .wp-block-table {
                width: 100%;
            }

            .wp-block-table table {
                width: 100%;
            }

            .wp-block-table th, .wp-block-table td {
                font-size: 12pt;
                padding: 6px;
            }

            .premium-blog-entry-title {
                font-size: 1.5em;
            }
        }



/*レオン自動機商品詳細ページ後半部分*/


/* =========================
   成り行き横並びギャラリー（折り返し付き）
   ========================= */
/* --- フル横並び時のカード幅を維持するギャラリー --- */
.flow-gallery {
  --cols: 4;                 /* PCでの列数 */
  --gap: 16px;               /* カード間隔 */
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: flex-start; /* 左寄せ */
  margin: 30px 0;
}

.flow-gallery__item {
  /* 1列あたりの幅 = (コンテナ幅 - ギャップ合計) / 列数 */
  --item-w: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  flex: 0 0 var(--item-w);   /* 幅固定：伸び縮みしない */
  max-width: var(--item-w);  /* 念のため最大幅も固定 */
  margin: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.flow-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.flow-gallery__item figcaption {
  padding: 10px 12px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  text-align: center;
  background: #eee;
  border-top: 1px solid #eee;
}

/* 列数のブレークポイント調整（必要に応じて変更OK） */
@media (max-width: 700px) {
  .flow-gallery { --cols: 3; --gap: 10px;  }
}
@media (max-width: 380px) {
  .flow-gallery { --cols: 2; --gap: 8px; }
}
@media (max-width: 180px) {
  .flow-gallery { --cols: 1; --gap: 8px; }
}


/* =========================
   成り行き横並びギャラリー2（折り返し付き）
   ========================= */
/* --- フル横並び時のカード幅を維持するギャラリー --- */
.flow-gallery2 {
  --cols: 3;                 /* PCでの列数 */
  --gap: 16px;               /* カード間隔 */
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: flex-start; /* 左寄せ */
  margin: 30px 0;
}

.flow-gallery2__item {
  /* 1列あたりの幅 = (コンテナ幅 - ギャップ合計) / 列数 */
  --item-w: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  flex: 0 0 var(--item-w);   /* 幅固定：伸び縮みしない */
  max-width: var(--item-w);  /* 念のため最大幅も固定 */
  margin: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.flow-gallery2__item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.flow-gallery2__item figcaption {
  padding: 10px 12px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  text-align: center;
  background: #eee;
  border-top: 1px solid #eee;
}

/* 列数のブレークポイント調整（必要に応じて変更OK） */
@media (max-width: 700px) {
  .flow-gallery2 { --cols: 3; --gap: 10px;  }
}
@media (max-width: 380px) {
  .flow-gallery2 { --cols: 2; --gap: 8px; }
}
@media (max-width: 180px) {
  .flow-gallery2{ --cols: 1; --gap: 8px; }
}

.second-banner {
  display: inline-block;
  padding: 6px 14px;
  background: #f5f5f5; /* 薄いグレー背景 */
  border-left: 4px solid #0073aa; /* 左ラインにアクセント色 */
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 4px;
  width: 100%;
  margin-top:15px;
}
