@media screen and (max-width: 640px) {
  .scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}
  
  .tbl-r07 {
  width: max-content;
  min-width: 640px;
  table-layout: auto;
}

  .tbl-r07 th, .tbl-r07 td {
    white-space: nowrap !important; /* テキストが折り返さないように */
    word-break: keep-all; /* 日本語を単語単位で切らない */
  }

  .text, .excuse, .plice {
    font-size: 1.1rem !important; /* モバイルでは文字を小さくして、スペースを確保 */
  }
}


table.postage {
  border-collapse: collapse;
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","ヒラギノ角ゴ ProN W3",Meiryo,メイリオ,Osaka,"MS PGothic",arial,helvetica,sans-serif;
  letter-spacing: 1px;
  margin: 0 auto;
  font-size: 1.3rem;
}


/* テーブル */
.tbl-r07 {
  width: 100%; /* 親要素にフィット */
  table-layout: auto; /* テーブルのレイアウトを自動調整 */
  min-width: 640px; /* テーブルの最小幅を設定 */
  overflow: visible; /* テーブル内でのスクロールバーを削除 */
}


.tbl-r07 th, .tbl-r07 td {
  white-space: nowrap !important; /* テキストが折り返さないように */
  word-break: keep-all; /* 日本語を単語単位で切らない */
}

h3.postage {
  color: #3c3c3c;
  font-weight: right;
  text-align: center;
  margin-bottom: 10px;
}

caption.postage {
  caption-side: bottom;
  padding: 10px;
  font-weight: right;
}

thead, tfoot {
  background-color: #f8f8f8;
  color: #3c3c3c;
}

th.postage {
  background-color: #f8f8f8;
  color: #3c3c3c;
  border: 1px solid #ddd;
  padding: 5px;
}

td.postage {
  border: 1px solid #ddd;
  background-color: #FFF;
  color: #3c3c3c;
  padding: 10px 3px;
  font-size: 1.3rem;
}

tbody.postage > tr:nth-of-type(even) {
  background-color: rgb(237 238 242);
}

tfoot th.postage {
  text-align: right;
}

tfoot td.postage {
  font-weight: right;
}

.text {
  font-weight: right;
  text-align: center;
  line-height: 150%;
}

.excuse {
  font-weight: right;
  text-align: left;
  color: #3c3c3c;
}

.plice {
  font-weight: right;
  text-align: center;
}

/* ポップアップのオーバーレイ */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* 半透明の黒 */
  z-index: 9999; /* オーバーレイを最前面に */
}

/* ポップアップウィンドウ */
.popup-window {
  width: 90vw; /* ビューポートの90%の幅 */
  max-width: 960px; /* 最大幅を960pxに設定 */
  padding: 40px;
  background-color: #ffffff;
  border-radius: 6px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000; /* ポップアップはオーバーレイの上 */
  overflow: hidden; /* はみ出さないように */
}

/* テーブルの横スクロール設定 */
.popup-window .scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.popup-text {
  margin: 0;
}

.popup-text:not(:last-of-type) {
  margin-bottom: 1em;
}

.popup-close {
  cursor: pointer;
  position: absolute;
  top: -26px;
  right: 0;
}

.bottom {
  margin-bottom: 8px;
}

/*ボタンの装飾*/
label.postage {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  background: #fff url(https://graf.itembox.design/item/img/common/icon_arrow_black.svg) no-repeat right 20px center;
}

/* ボタンにマウスオーバーしたとき */
.pbtn:hover {
  opacity: 0.7; /* 半透明に */
}
