@charset "utf-8";

.title {
  height: 310px;
  background-image: url(../images/kibannyusou_container/s.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-shadow: 1px 1px 10px #4b2c14;
}

.title h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 48px;
  line-height: 52px;
  font-weight: bold;
}

.title p {
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  margin-top: 15px;
}

.main h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: bold;
  line-height: 30px;
  text-align: left;
}

.kibannyusou_container {
  display: block;
  justify-content: space-between;
  width: 930px;
  max-width: 90%;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
}

.kibannyusou_container p {
  /* font-family: 'Noto Serif JP', serif; */
  font-size: 20px;
  text-align: left;
  margin-top: 25px;
  margin-bottom: 20px;
  line-height: 30px;
}

.kibannyusou_container ul {
  /* font-family: 'Noto Serif JP', serif; */
  font-size: 20px;
  text-align: left;
  margin-top: 25px;
  margin-bottom: 20px;
  line-height: 30px;
  padding-left: 1.5em;
}

.kibannyusou_container li{
  list-style-type: disc;
  margin-bottom: 10px;
}

.each li{
  list-style-type: circle;
}

.detail {
  margin-top: 60px;
  margin-bottom: 60px;
}

/* 全体のコンテナ（PCでは横並び） */
.product-container {
  display: flex;
  flex-wrap: wrap; /* 折り返しを許可 */
  gap: 10px;       /* 商品間の隙間 */
  background-color: #66cccc; /* 元の背景色 */
  padding: 10px;
  justify-content: center;
  margin: 20px 0px;
}

/* 各商品カードの基本設定 */
.product-card {
  width: 300px; /* PCでの幅目安 */
  background-color: #66cccc;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* 画像エリア */
.product-img {
  background-color: #ffffff;
  text-align: center;
  padding: 10px;
}
.product-img img {
  width: 100%;
  height: auto;
  object-fit: cover; /* 比率を保ったまま枠を埋める */
  display: block;
}

/* 商品名 */
.product-name {
  text-align: center;
  font-weight: bold;
  padding: 10px 0;
  font-size:24px;
}

/* スペック表 */
.product-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 20px;
}
.product-spec th {
  width: 80px;
  text-align: left;
  vertical-align: top;
  font-weight: normal;
  padding: 6px;
}
.product-spec td {
  padding: 6px;
}

/* 備考（蓋別売りなど） */
.product-note {
  font-size: 20px;
  padding: 5px;
  min-height: 1.5em;
}

/* テーブルを囲む枠：スマホで横スクロールさせる設定 */
.table-wrapper {
  width: 100%;
  overflow-x: auto; /* 横はみ出しをスクロールに */
  -webkit-overflow-scrolling: touch; /* iOS用スムーズスクロール */
  margin-bottom: 80px;
}

/* テーブル全体の基本設定 */
.spec-table {
  width: 100%;
  min-width: 800px; /* 重要：スマホでも表が潰れないよう最小幅を確保 */
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  border: 1px solid #ccc;
}

/* セルの基本設定 */
.spec-table th,
.spec-table td {
  border: 1px solid #ccc;
  padding: 8px 4px;
}

/* ヘッダー・フッターの色付け（一括管理） */
.header-main,
.footer-info th {
  background-color: #66cccc;
}

.header-sub th {
  background-color: #ffffff;
}

/* フッターの背景色 */
.footer-info td {
  background-color: #ffffff;
}

/* 偶数行に薄い色をつけて読みやすくする場合（オプション） */
/* .spec-table tbody tr:nth-child(even) { background: #f9f9f9; } */


/* 仕様図エリアのコンテナ */
.spec-charts {
  display: flex;
  flex-wrap: wrap; /* スマホで折り返せるようにする */
  padding: 20px 0;
  justify-content: center;
  align-items: flex-start;    /* 上揃え */
}

/* 各画像アイテムの枠 */
.chart-item {
  border: 1px solid #ccc;
  background-color: #ffffff;
  padding: 5px;
  box-sizing: border-box;
  width: 100%;
  max-width: 500px;
}

/* 画像のレスポンシブ設定 */
.chart-item img {
  display: block;
  width: 100%;
  height: auto;    /* アスペクト比を維持 */
}

/* PC：1画面に3つ並べる（2行x3列） */
@media (min-width: 801px) {
  .product-card {
    width: calc(33.33% - 10px); /* 3列にする */
  }
}

@media (max-width: 800px) {

  /* スマホ：1列にする（6行x1列） */
  .product-card {
    width: 100%; /* 1列にする */
    max-width: 400px; /* スマホで広がりすぎないよう制限 */
    margin-left: auto;
    margin-right: auto;
  }

  .table-wrapper::before {
    content: "← 横スクロールできます →";
    display: block;
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 5px;
  }

  .spec-charts {
    justify-content: center; /* スマホでは中央寄せ */
  }
  
  .chart-item {
    max-width: 100%; /* 大きくなりすぎないよう制限 */
  }

}