@charset "utf-8";

.table-scroll-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
  }

  /* 表の上のテキスト配置 */
  .table-header-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 4px;
    min-width: 600px; /* 表の幅に合わせて調整 */
  }

  /* 表全体のデザイン */
  .price-table {
    width: 100%;
    min-width: 600px; /* スマホで縮みすぎないように幅を確保 */
    border-collapse: collapse;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
  }

  .price-table th,
  .price-table td {
    border: 1px solid #000; /* 黒い枠線 */
    padding: 8px;
    vertical-align: middle; /* ここで上下中央揃え！ */
  }

  /* 背景色グレーのクラス */
  .price-table .bg-gray {
    background-color: #e0e0e0;
    font-weight: bold;
  }

  /* 左寄せ用クラス */
  .price-table .align-left {
    text-align: left;
  }

  .scroll-hint {
    display: none;
  }
  
  /* スマホ（画面幅768px以下）の時だけ表示 */
  @media (max-width: 768px) {
    .scroll-hint {
      display: block;
      font-size: 12px;
      color: #666;
      text-align: right; /* 右寄せでさりげなく */
      margin-bottom: 5px;
    }
    
    /* ついでにスクロールバーを常にうっすら表示させる設定（iOSなど用） */
    .table-scroll-wrapper::-webkit-scrollbar {
      height: 4px; /* バーの太さ */
    }
    .table-scroll-wrapper::-webkit-scrollbar-thumb {
      background: #ccc; /* バーの色 */
      border-radius: 4px;
    }

    .sp-only-hint {
        display: block;
        font-size: 11px;
        color: #666;
        text-align: right;
        margin: 0 0 5px 0;
      }
  
      /* 表全体の文字を小さく */
      .price-table {
        font-size: 11px; /* 14px → 11px に縮小 */
        min-width: 450px; /* 最低幅も少し狭くしてOKにする */
      }
  
      /* マスの余白をギュッと狭く */
      .price-table th, 
      .price-table td {
        padding: 4px; /* 8px → 4px に半減 */
      }
      
      /* タイトル部分も少し小さく */
      .table-header-text {
        min-width: 450px;
        font-size: 0.8em;
      }
  }

  /*--------------
  ガス機器LP
  ----------------*/
  /*annotation内の表*/
.annotation-table {
  width: 100%;
  max-width: 330px;
  margin: 20px auto;
  border: 1px solid #a9a9a9;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ヘッダー部分 */
.annotation-table-header-wrapper {
  background-color: #a9a9a9;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* ボディ部分（スクロール領域） */
.annotation-table-body-wrapper {
  max-height: 250px;
  overflow-y: auto;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* スマホ用テーブルの共通スタイル */
.annotation-table table {
  width: 100%;
  table-layout: fixed; 
}

.annotation-table-header-wrapper th {
  color: #fff;
  font-weight: 500;
font-size: 1.4rem;
  padding: 15px;
text-align: left;
}

.annotation-table-body-wrapper td {
  padding: 5px 15px;
  border-bottom: 1px solid #e2e8f0;
  background-color: #fff;
}
.annotation-table-body-wrapper tr:last-child td {
  border-bottom: none;
}
.annotation-table-body-wrapper tr:nth-child(even) td {
  background-color: #f5f5f5;
}

/* スマホ用テーブルの列幅 */
.annotation-col-item { 
  width: 55%;
font-size: 1.2rem;
  text-align: left; 
}
.annotation-table-header-wrapper .annotation-col-item {
text-align: center; 
}

.annotation-col-price { 
  width: 45%;
font-size: 1.2rem;
  text-align: right; 
  white-space: nowrap;
}

@media (min-width: 1024px) {
.annotation-table {
  max-width: 70%;
}
.annotation-table-header-wrapper .annotation-col-item { 
  width: 40%;
  text-align: center; 
}
.annotation-col-item {
  width: 40%;
  text-indent:2rem;
}
.annotation-table-header-wrapper .annotation-col-price, .annotation-col-price{ 
  width: 30%;
  text-align: center; 
}
}