@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; /* 半透明に */
}


/* 「ご注文手続きへ進む」ボタンのスタイルを修正 */
.c-cart-order-btn {
	background-color: #1a1311 !important; /* 背景色 */
	color: #ffffff !important;           /* 文字色（白） */
	border: none !important;             /* 枠線を消す */
	transition: opacity 0.3s ease;       /* ふわっと変化させる */
	text-decoration: none !important;    /* 下線を消す */
	display: flex !important;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

/* マウスオーバーした時に薄くする（ログインボタンと同じ挙動） */
.c-cart-order-btn:hover {
	opacity: 0.7 !important;             /* 透明度を下げて薄く見せる */
	background-color: #1a1311 !important; /* 背景色は固定 */
	color: #ffffff !important;           /* 文字色も固定 */
}

/* カートをフローティング */
/* PCでは非表示 */
.floating-panel {
display: none;
}

@media screen and (max-width: 768px) {
#js-floating-panel {
display: block !important;
position: fixed !important;
bottom: 0 !important;
left: 0 !important;
width: 100% !important;
background: rgba(255, 255, 255, 0.95);
border-top: 1px solid #eee;
z-index: 2147483647 !important;
padding: 15px 15px calc(15px + env(safe-area-inset-bottom));
transform: translateY(100%);
transition: transform 0.3s ease-in-out;
box-shadow: 0 -3px 10px rgba(0,0,0,0.05);
}

#js-floating-panel.is-active {
    transform: translateY(0);
}

.floating-panel-inner {
    display: flex;
    justify-content: center;
    width: 100%;
}

.floating-cart-btn {
    display: flex;
    justify-content: center; /* 文字を中央に配置 */
    align-items: center;
    width: 100%;
    max-width: 400px;
    background: #000;
    color: #fff !important;
    text-align: center;
    padding: 18px 0;
    font-size: 14px;
    text-decoration: none;
    border-radius: 2px;
    line-height: 1;
    letter-spacing: 0.1em;
    position: relative; /* アイコンを絶対配置するための基準 */
    font-weight: 300;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, Osaka, "MS PGothic", arial, helvetica, sans-serif;
}

/* アイコンをボタンの右端に固定 */
.floating-cart-btn::after {
    content: '';
    position: absolute; /* 絶対配置に変更 */
    right: 20px; /* 右端からの距離 */
    top: 50%; /* 上下中央 */
    transform: translateY(-50%); /* 上下中央補正 */
    width: 25px;
    height: 22px;
    background-image: url('<https://graf.itembox.design/item/img/common/icon_cart_white.svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
}

/* =============================================
   送料ポップアップ アニメーション・干渉防止
   ============================================= */

/* 1. 全体共通の初期状態（非表示） */
.graf-modal-check {
    display: none !important;
}

.postage-modal-group {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; /* 通常時はクリックを透過 */
    z-index: 2147483640;
}

/* 背景（オーバーレイ） */
.postage-modal-group .popup-overlay {
    display: block !important;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: pointer;
}

/* ウィンドウ（中身） */
.postage-modal-group .popup-window {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -48%); /* 少し下から */
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    pointer-events: auto; /* ウィンドウ内はクリック可能 */
}

/* 2. 表示状態（それぞれのチェックボックスに対応） */
#popup-btn:checked ~ #unique-btn-modal,
#popup-text:checked ~ #unique-text-modal {
    pointer-events: auto;
}

#popup-btn:checked ~ #unique-btn-modal .popup-overlay,
#popup-text:checked ~ #unique-text-modal .popup-overlay {
    opacity: 1;
    visibility: visible;
}

#popup-btn:checked ~ #unique-btn-modal .popup-window,
#popup-text:checked ~ #unique-text-modal .popup-window {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%); /* 中央へスッと移動 */
}

/* 閉じるボタンのアイコン色調整（背景が白なので黒に） */
.popup-close line {
    stroke: #3c3c3c !important; 
}