/*
Theme Name:デジもく！WEB
Author:D-style
Description:オリジナルテーマ。
Template:digimokuweb-prog
Version:1.0
*/

*{margin:0; padding:0;}
header{ margin:30px 0; border-bottom:20px solid #1d9a9a;}
header p{ text-align:right; font-size:13px;}
header p.tel{ font-size:17px; font-weight:bold;}
#wrapper{ width: 98%; max-width: 800px; margin: 0 auto;min-height: 100vh;
position: relative;
padding-bottom: 60px;
box-sizing: border-box;}
.itemimg{position: relative; width: 100%; max-width: 800px;}
.itemimg .absolute{ position: absolute;top: 0;left: 17%;width: 65%;}

.textbox{ width: 100%; margin:30px;}
.textbox li{width: 45%; display: inline-block; border: 2px solid #B9525C; color: #B9525C;padding: 10px 5px;}


.btn,
a.btn,
button.btn {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
margin-bottom: 30px;
}

a.btn--orange {
  color: #fff;
  background-color: #eb6100;
  border-bottom: 5px solid #b84c00;
}
a.btn--orange:hover {
  margin-top: 3px;
  color: #fff;
  background: #f56500;
  border-bottom: 2px solid #b84c00;
}
a.btn--shadow {
  -webkit-box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
}

main{text-align:center;}

footer {
border-bottom: 20px solid #1d9a9a;
text-align: center;
position: absolute;
bottom: 0;
width: 100%;
}

h2.chumon{ margin:20px 0; display: block;}
/* 列幅: メモ欄をやや狭く（画像のイメージに合わせる） */
.chumontable col.chumontable-col-seq{ width: 4%; }
.chumontable col.chumontable-col-order{ width: 74%; }
.chumontable col.chumontable-col-memo{ width: 22%; }
table.chumontable thead th{
  background: #006837;
  color: #fff;
  font-weight: bold;
  text-align: left;
  padding: 10px 12px;
  word-break: keep-all;
  vertical-align: middle;
  border-bottom: 2px solid #222222;
}
/* メモ欄 th：注文商品との境は太線（全体の太線 2px に統一） */
table.chumontable thead th.chumontable-head-memo{
  border-left: none;
}
/*table.chumontable td{ padding: 7px 5px;border-top: 1px solid #282828;border-bottom: 1px solid #282828;border-right: 1px solid #282828;border-left: 1px solid #282828;font-size:14px; }*/
table.chumontable td span{ font-size:14px; /*font-weight:bold*/}
table.chumontable td img{ padding: 5px;vertical-align: bottom;}
a.linkbtn{text-decoration: none;
color: #282828;
font-weight: bold;
background: #fffacd;
padding: 10px;
border-radius: 10px;

margin: 0 10px 10px 0;}
a.linkbtn-save{text-decoration: none;
color: #fff;
font-weight: bold;
background: #135E96;
padding: 10px;
border-radius: 10px;
margin:50px auto;
display:block;
width:200px;
text-align:center;}
table.catchtable th{background: #006837; color: #fff; padding: 10px 0;border-right: 1px solid #fff;word-break:break-all;}
#pagelinkbtn{float: right;}

.catchcopy_btn{
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    background: #ffffff;
    width: 15em;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #1d9a9a;
    display: block;
    margin: 20px auto;
}
.catchcopy_btn:visited{
  color: inherit;
}

.clearfix:after {
  content: ".";
  display: block;
  visibility: hidden;
  height: 0.1px;
  font-size: 0.1em;
  line-height: 0;
  clear: both;
}
br.br-smp{display: none;}

.table-scroll{
  overflow: auto; /*スクロールさせる*/
  /* とりあえずコメント
  white-space: nowrap; /*文字の折り返しを禁止*/
}

/* 以下、スクロールバーを追加 */
.table-scroll::-webkit-scrollbar{
 height: 5px;
}

/* 注文商品一覧：単品表の直後に続く表（セット商品専用表・続く単品表）の間隔 */
form#items .table-scroll + .table-scroll{
  margin-top: 1.75rem;
}

#orderer_auth h3{ margin:2% 0 1%;}
#orderer_auth p{ line-height:1.9;}
#orderer_auth{ background:#f5f5dc; padding:4%;}

/* 注文一覧: 太線は 2px・#222 に統一。列間の内側は薄線 */
.chumontable{
    width: 100%;
    border: 2px solid #282828;
    table-layout: fixed;
    border-collapse: collapse;
}

.chumontable td{ 
  padding: 10px 8px;
  border-top: 1px solid #282828;
  border-bottom: 1px solid #282828;
  border-right: 1px solid #282828;
  border-left: 1px solid #282828;
  font-size:14px; 
}

/* No.2 以降の商品行の上線（商品同士の区切り）：やや太め */
.chumontable tbody.purchased-item-group + tbody.purchased-item-group tr td{
  border-top: 3px solid #282828 !important;
}
/* セット明細：2 行目以降の上線も同じ太さで統一 */
.chumontable tbody.purchased-item-group--set-member + tbody.purchased-item-group--set-member tr td{
  border-top: 3px solid #282828 !important;
}
table.chumontable td span{
  font-size: 14px;
  font-weight: bold;
}

/* キャッチコピー一覧：モバイル専用 thead 行は PC では非表示 */
.catch-copy-head-mobile {
  display: none;
}

.catch-copy-banner-heading img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

table.chumontable.catch-copy-table thead tr.catch-copy-head-desktop .catch-copy-col-seq {
  width: 5%;
}
table.chumontable.catch-copy-table thead tr.catch-copy-head-desktop .catch-copy-col-name {
  width: 35%;
}
table.chumontable.catch-copy-table thead tr.catch-copy-head-desktop .catch-copy-col-price {
  width: 15%;
}
table.chumontable.catch-copy-table thead tr.catch-copy-head-desktop .catch-copy-col-copy {
  width: 50%;
}

/* 注文一覧以外のテーブル用（chumontable は下で個別指定） */
table:not(.chumontable) th {
  width: 22%;
}
.sp{
  display: none;
}
.seqno{
  vertical-align: middle;
  text-align: center;
}
/* 連番列の右＝行番号横の縦罫線は太線 2px */
.chumontable tbody.purchased-item-group td.seqno{
  border-right: 2px solid #222222;
}
.seqno-num{
  font-weight: bold;
  font-size: 15px;
}
.order-item-cell{
  vertical-align: top;
  text-align: left;
}
/* 注文商品列とメモ欄の境の縦線も太線 2px で統一 */
.chumontable tbody.purchased-item-group td.order-item-cell{
  border-right: 2px solid #222222;
}
.memo-cell{
  vertical-align: top;
  text-align: left;
}
.memo-field{
  margin-bottom: 14px;
}
.memo-field:last-of-type{
  margin-bottom: 0;
}
.memo-field > span{
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
}
.memo-field .input_text_box,
.memo-field .input_date_box{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* 送信日はお名前より狭く（幅いっぱいにならないようにする） */
.memo-field--date .input_date_box{
  width: auto;
  max-width: 8.75rem;
}

.input_text_box{
  height: 20px;
}
.input_date_box{
height: 20px;
}
.noborder{
  border: none;
}

.submitbtn{
  -webkit-box-shadow: 0 3px 5px rgb(0 0 0 / 30%);
    box-shadow: 0 3px 5px rgb(0 0 0 / 30%);
    color: #fff;
    background-color: #009c9b;
    border-bottom: 5px solid #047561;
    display: block;
    margin: 20px auto;
}

/* 注文商品セル：タイトル → URL → 区切り線 → お客様ID・期限（緑）＋バッジ */
.purchased-item-stack{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}
.purchased-product-head-row{
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 8px 0;
}
.purchased-product-title-line{
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  color: #000;
}
.purchased-product-name-part{
  font-weight: 600;
}
table.chumontable .purchased-product-title-line span{
  font-size: inherit;
}
.purchased-item-section-rule{
  border: none;
  border-top: 1px solid #bdbdbd;
  margin: 10px 0 12px 0;
  padding: 0;
  height: 0;
  width: 100%;
  box-sizing: border-box;
}
.purchased-item-footer{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px 12px;
  width: 100%;
}
.purchased-meta-inline{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px 12px;
  flex: 1 1 auto;
  min-width: 0;
}
/* バッジとの間までを使い、有効期限ブロックを横方向のおおよそ中央へ（ラベル行は上揃えで三列そろえる） */
.purchased-meta-expiry-wrap{
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}
/* 引換状況：お客様ID・有効期限と同じくラベル上・バッジ下の2段 */
.purchased-meta-block--redemption{
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}
.purchased-meta-block--redemption .purchased-meta-label-green{
  text-align: center;
  width: 100%;
}
.purchased-meta-block--redemption .purchased-badge{
  align-self: center;
}
.purchased-meta-block{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  text-align: left;
}
/* お客様ID：見出しは番号行と同じ幅で横中央／番号データのみ左寄せ */
.purchased-meta-block--customer{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: left;
  flex-shrink: 0;
}
.purchased-meta-block--customer .purchased-meta-label-green{
  text-align: center;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}
.purchased-meta-block--customer .purchased-meta-value-green{
  text-align: left;
  align-self: stretch;
  width: 100%;
}
/* 有効期限：ラベル・データとも中央（ラップ内でさらに中央寄せ） */
.purchased-meta-block--expiry{
  align-items: center;
  text-align: center;
}
.purchased-meta-block--expiry .purchased-meta-label-green,
.purchased-meta-block--expiry .purchased-meta-value-green{
  text-align: center;
  width: 100%;
}
.purchased-meta-label-green{
  display: block;
  font-size: 13px;
  line-height: 1.45;
  font-weight: normal;
  color: #222222;
  word-break: break-all;
  text-align: left;
}
.purchased-meta-value-green{
  display: block;
  font-size: 15px;
  line-height: 1.45;
  font-weight: bold;
  color: #2e7d32;
  word-break: break-all;
  text-align: left;
}
table.chumontable .purchased-meta-label-green{
  font-weight: normal;
  color: #222222;
}
table.chumontable .purchased-meta-value-green{
  font-weight: bold;
  color: #2e7d32;
}
table.chumontable td .purchased-meta-label-green{
  font-size: 13px;
}
table.chumontable td .purchased-meta-value-green{
  font-size: 15px;
}
table.chumontable td .purchased-meta-block--customer .purchased-meta-label-green{
  text-align: center;
}
table.chumontable td .purchased-meta-block--customer .purchased-meta-value-green{
  text-align: left;
}
.purchased-badge{
  display: inline-block;
  margin: 0;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.25;
  flex-shrink: 0;
  align-self: center;
  box-sizing: border-box;
  text-align: center;
  border: none;
}
/* thead の直下の1行目をヘッダー下線に密着 */
.chumontable thead.pc + tbody.purchased-item-group tr:first-child td,
.chumontable thead.pc + tbody.purchased-set-banner tr:first-child td{
  border-top: none !important;
}
/* 2 枚目以降の表（thead なし）：先頭行の上罫線を外枠に合わせる */
.chumontable.purchased-chumontable--no-thead > tbody:first-of-type tr:first-child td{
  border-top: none !important;
}
.purchased-badge--redeemed,
.purchased-badge--unexchanged{
  min-width: 6.5em;
  padding: 6px 20px;
}
.purchased-badge--redeemed{
  color: #fff;
  background: #e53935;
}
.purchased-badge--unexchanged{
  color: #fff;
  background: #bdbdbd;
}
/* セット商品ヘッダー：上下太線・注文列に「セット商品名」＋ recieving_catalog_product_name を横並び（注文｜メモ間は縦線なし） */
.chumontable tbody.purchased-set-banner tr td{
  border-top: 2px solid #222222;
  border-bottom: 2px solid #222222;
  vertical-align: middle;
  background-color: #FFFFCC;
}
.chumontable tbody.purchased-set-banner td.seqno{
  border-right: none !important;
}
/* セット商品ヘッダー：注文列とメモ列の間の縦線は出さない（セット名は注文側に連続表示） */
.chumontable tbody.purchased-set-banner .purchased-set-banner-order-cell{
 border-right: none !important;
 border-left: none !important;
 background-color: #FFFFCC;
}
.chumontable tbody.purchased-set-banner .purchased-set-banner-inline{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  justify-content: flex-start;
}
.chumontable tbody.purchased-set-banner .purchased-set-banner-label-text{
  display: inline-block;
  font-weight: bold;
  font-size: 16px;
  color: #222222;
  flex-shrink: 0;
}
.chumontable tbody.purchased-set-banner .purchased-set-banner-recieving{
  display: inline-block;
  font-weight: bold;
  font-size: 14px;
  color: #222222;
  word-break: break-word;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.chumontable tbody.purchased-set-banner .purchased-set-banner-memo-empty{
  border-left: none !important;
  font-size: 0;
  line-height: 0;
}
table.chumontable tbody.purchased-set-banner td span{
  font-weight: bold;
}
/* セットヘッダーの直下のセット明細 1 行目：二重線にならないよう通常の上線に任せる（バナー下線と接続） */
.chumontable tbody.purchased-set-banner + tbody.purchased-item-group tr:first-child td{
  border-top: 1px solid #bdbdbd !important;
}

/* セット明細ブロック：内側の縦線は表全体と同じ細線にそろえる */
.chumontable tbody.purchased-item-group--set-member td{
  border-left-width: 1px;
  border-right-width: 1px;
  /* border-left-color: #bdbdbd;
  border-right-color: #bdbdbd; */
}
.chumontable tbody.purchased-item-group--set-last tr:last-child td{
  border-bottom-width: 2px;
  border-bottom-color: #222222;
}
/* URLの左にクリップボード、お客様IDは直上 */
.purchased-item-url{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px 10px;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 13px;
  word-break: break-all;
  text-align: left;
}
.purchased-item-url .purchased-url-link{
  flex: 1 1 0;
  min-width: 0;
  color: #0066cc;
  text-decoration: underline;
}
.purchased-url-copy{
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0px;
  padding: 4px 10px;
  cursor: pointer;
  border: 1px solid #bdbdbd;
  border-radius: 6px;
  box-shadow: none;
  background: #fff;
  color: #333;
  line-height: 1.3;
  font-size: 13px;
  font-weight: bold;
  -webkit-appearance: none;
  appearance: none;
}
/* td 内の共通 span 指定(14px)より優先 */
table.chumontable td .purchased-url-copy-text{
  font-size: 13px;
  margin-left: -4px;
  color: #333;
}
.purchased-url-copy:focus{
  outline: none;
}
.purchased-url-copy:focus-visible{
  outline: 2px solid #1d9a9a;
  outline-offset: 2px;
}
.purchased-url-copy-icon{
  display: block;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  object-fit: contain;
  pointer-events: none;
}
.purchased-url-copy:hover{
  background: #f5f5f5;
}
.purchased-list-excel-note{
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 640px;
  text-align: left;
}
/* 注文一覧フォーム内: 「ご購入商品の紹介文はこちら」とフッターボタンで幅を共通にする */
form#items {
  --purchased-action-btn-width: 15em;
}
form#items a.catchcopy_btn {
  width: var(--purchased-action-btn-width);
  max-width: min(var(--purchased-action-btn-width), 100%);
  box-sizing: border-box;
}
/* ボタン横並び: input と a の間の改行・空白が flex の余分な子になるのを防ぐため、PHP でタグを連結している */
/* PC・スマホ共通: 紹介文リンクと同じ幅（全幅に伸ばさない） */
form#items .purchased-list-footer-btns{
  margin: 24px auto;
  max-width: 640px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
form#items .purchased-list-footer-btns-row{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}
form#items .purchased-list-footer-btns-row .submitbtn,
form#items .purchased-list-footer-btns-row .purchased-list-download-btn{
  flex: 1 1 0 !important;
  width: var(--purchased-action-btn-width);
  max-width: min(var(--purchased-action-btn-width), 100%);
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  text-align: center;
  padding: 12px 10px;
  min-height: 5.25rem;
  cursor: pointer;
  line-height: 1.35;
  box-sizing: border-box;
  color: #fff !important;
  text-decoration: none !important;
  white-space: normal;
  font-family: inherit;
}
form#items .purchased-list-footer-btns-row .purchased-save-btn-line,
form#items .purchased-list-footer-btns-row .purchased-download-btn-line1,
form#items .purchased-list-footer-btns-row .purchased-download-btn-line2{
  display: block;
  text-align: center;
  line-height: 1.3;
}
form#items .purchased-list-footer-btns-row .purchased-download-btn-line2{
  margin-top: 0.15em;
}
form#items .purchased-list-footer-btns-row a.purchased-list-download-btn:hover,
form#items .purchased-list-footer-btns-row a.purchased-list-download-btn:visited{
  color: #fff !important;
}

/* レスポンシブ対応（注文商品一覧：一覧幅いっぱい・区切り線ベース） */
@media screen and (max-width: 640px) {
  br.br-smp {
    display: inherit;
  }

  #wrapper {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  /* ブロック化した tbody と幅計算を一致させ、カードが狭く残るのを防ぐ */
  form#items {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .table-scroll {
    overflow-x: visible;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  h2.chumon {
    margin: 16px 0 12px;
    font-size: 1.15rem;
    text-align: center;
  }

  .chumontable {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    table-layout: auto;
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 8px;
    box-sizing: border-box;
  }

  /* PC 用の列幅指定が table の最小幅を縮めないようにする */
  .chumontable colgroup {
    display: none;
  }

  .chumontable thead.pc {
    display: none !important;
  }

  /* スマホ: 注文商品ブロック → メモ欄（1 tr 構成）。ブロック間は太線 */
  .chumontable tbody.purchased-item-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
    padding: 14px 0 18px;
    border: none;
    border-radius: 0;
    border-top: 2px solid #222222;
    overflow: visible;
    background: #fff;
    box-shadow: none;
    box-sizing: border-box;
  }

  .chumontable tbody.purchased-item-group:last-of-type {
    margin-bottom: 8px;
    padding-bottom: 0;
  }

  .chumontable tbody.purchased-item-group--set-member {
    /* border-left: 1px solid #bdbdbd;
    border-right: 1px solid #bdbdbd; */
    box-sizing: border-box;
  }

  .chumontable tbody.purchased-item-group--set-last {
    border-bottom: 2px solid #222222;
  }

  /* セット商品名ヘッダー（スマホ）：連番非表示・注文列に横並び・メモ列は省略 */
  .chumontable tbody.purchased-set-banner{
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 0;
    padding: 0;
    border-top: 2px solid #222222;
    border-left: 2px solid #222222;
    border-right: 2px solid #222222;
    border-bottom: 2px solid #222222;
    box-sizing: border-box;
    background-color: #FFFFCC;
  }

  .chumontable tbody.purchased-set-banner tr.purchased-set-banner-row{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
  }

  .chumontable tbody.purchased-set-banner td{
    display: block;
    border: none !important;
    padding: 12px 10px !important;
    box-sizing: border-box;
  }

  .chumontable tbody.purchased-set-banner td.seqno{
    display: none !important;
  }

  .chumontable tbody.purchased-set-banner .purchased-set-banner-order-cell{
    flex: 1 1 100%;
    width: 100% !important;
    max-width: 100%;
  }

  .chumontable tbody.purchased-set-banner .purchased-set-banner-memo-empty{
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  .chumontable tbody.purchased-set-banner .purchased-set-banner-inline{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .chumontable tbody.purchased-item-group tr {
    display: contents;
  }

  .chumontable tbody.purchased-item-group td + td {
    border-top: none !important;
  }

  /* PC のみシーケンスNo。スマホでは非表示（レイアウトから除外） */
  .chumontable tbody.purchased-item-group td.seqno {
    display: none !important;
  }

  .chumontable tbody.purchased-item-group td.order-item-cell {
    order: 1;
    border-top: none !important;
    box-sizing: border-box;
  }

  .chumontable tbody.purchased-item-group td.memo-cell {
    order: 2;
    border-top: 1px solid #d8e8e8 !important;
    box-sizing: border-box;
  }

  /* セット商品 1 件目：バナー直下は PC 用の tr:first-child 上線が memo にも乗る。2 件目以降と同じくメモ欄上に薄線を出さない */
  .chumontable tbody.purchased-set-banner + tbody.purchased-item-group tr:first-child td.memo-cell {
    border-top: none !important;
  }

  /* スマホ: 一覧カード間は tbody の上線のみ。PC 用の「隣接 tbody の td 上線」が重なって二重になるのを防ぐ */
  .chumontable tbody.purchased-item-group + tbody.purchased-item-group tr td,
  .chumontable tbody.purchased-item-group--set-member + tbody.purchased-item-group--set-member tr td {
    border-top: none !important;
  }

  .chumontable td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    padding: 12px 0;
    font-size: 13px;
    text-align: left;
  }

  /* .chumontable td の padding より優先（注文一覧ブロックのみ） */
  .chumontable tbody.purchased-item-group td.order-item-cell {
    padding: 8px 4px 12px !important;
  }

  .chumontable tbody.purchased-item-group td.memo-cell {
    padding: 14px 0 12px !important;
  }

  .chumontable tbody:not(.purchased-item-group) td + td {
    border-top: 1px solid #d8e8e8;
  }

  .order-item-cell {
    margin: 0;
    border: none !important;
  }


  .memo-cell {
    margin: 0;
    border: none !important;
  }

  /* 注文商品一覧スマホ: ラベル左寄せ・入力右寄せ。入力の高さは従来どおり */
  .chumontable tbody.purchased-item-group .memo-field {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .chumontable tbody.purchased-item-group .memo-field:last-of-type {
    margin-bottom: 0;
  }

  .chumontable tbody.purchased-item-group .memo-field > span {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 12.5em;
    margin-bottom: 0;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.35;
  }

  .chumontable tbody.purchased-item-group .memo-field .input_text_box,
  .chumontable tbody.purchased-item-group .memo-field .input_date_box {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    height: 20px;
    padding: 2px 4px;
    font-size: 14px;
    box-sizing: border-box;
  }

  /* お名前：イメージ2どおりやや広め */
  .chumontable tbody.purchased-item-group .memo-field--name .input_text_box {
    width: 10.5rem;
    max-width: 40%;
  }

  /* 送信日：より小さめのフィールド */
  .chumontable tbody.purchased-item-group .memo-field--date .input_date_box {
    width: 8.25rem;
    max-width: 32%;
  }

  /* .sp { display:block !important } によりメモ行の flex が潰れるのを防ぐ */
  .chumontable tbody.purchased-item-group .memo-field.memo-field--name.sp {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* 《お客様ID》《有効期限》《引換状況》各1行でラベル＋値を横並び、値の開始位置を揃える */
  .chumontable tbody.purchased-item-group .purchased-item-footer {
    --purchased-meta-label-col: 5.0rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .chumontable tbody.purchased-item-group .purchased-meta-inline {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .chumontable tbody.purchased-item-group .purchased-meta-expiry-wrap {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .chumontable tbody.purchased-item-group .purchased-meta-block {
    display: grid;
    grid-template-columns: var(--purchased-meta-label-col) minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    justify-items: start;
    width: 100%;
    min-width: 0;
  }

  .chumontable tbody.purchased-item-group .purchased-meta-block .purchased-meta-label-green {
    grid-column: 1;
    justify-self: start;
    margin: 0;
    white-space: nowrap;
    text-align: left;
    min-width: 0;
  }

  .chumontable tbody.purchased-item-group .purchased-meta-block .purchased-meta-value-green {
    grid-column: 2;
    justify-self: stretch;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    text-align: left;
    margin: 0;
  }

  .chumontable tbody.purchased-item-group .purchased-meta-block--redemption .purchased-meta-label-green {
    grid-column: 1;
    width: auto;
    max-width: none;
  }

  .chumontable tbody.purchased-item-group .purchased-meta-block--redemption .purchased-badge {
    grid-column: 2;
    justify-self: start;
    align-self: center;
    margin: 0;
  }

  .chumontable tbody.purchased-item-group .purchased-meta-label-green {
    font-size: 13px;
    line-height: 1.4;
  }

  .chumontable tbody.purchased-item-group .purchased-meta-value-green {
    font-size: 15px;
  }

  .chumontable tbody.purchased-item-group .purchased-badge {
    min-width: 0;
    max-width: 100%;
    padding: 6px 12px;
    font-size: 13px;
    box-sizing: border-box;
  }

  .chumontable tbody.purchased-item-group .purchased-badge--redeemed,
  .chumontable tbody.purchased-item-group .purchased-badge--unexchanged {
    min-width: 0;
    padding: 6px 12px;
  }

  .purchased-item-url {
    align-items: flex-start;
    gap: 8px;
  }

  .purchased-url-copy {
    align-self: flex-start;
    padding: 4px 8px;
  }

  .purchased-url-copy-icon {
    width: 26px;
    height: 26px;
  }

  /* 紹介文リンクも PC と同じ 15em 幅（form#items の変数） */
  form#items a.catchcopy_btn {
    margin: 16px auto 12px;
    padding: 12px 10px;
    font-size: 14px;
  }

  form#items .purchased-list-footer-btns {
    max-width: 100%;
    margin: 16px auto 12px;
  }

  /* スマホ: 縦2段・幅は PC と同じ固定幅（中央寄せ） */
  form#items .purchased-list-footer-btns-row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px;
  }

  .purchased-list-excel-note {
    padding: 0 4px;
    font-size: 11px;
  }

  a.linkbtn {
    text-decoration: none;
    color: #282828;
    font-weight: unset;
    padding: 0;
    border-radius: 0;
    margin: auto;
    width: 150px;
    text-align: center;
    margin-top: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .pc {
    display: none !important;
  }

  .sp {
    display: block !important;
  }

  /* キャッチコピー一覧（スマホ）：商品名＋参考価格の上段／キャッチコピー下段 */
  table.chumontable.catch-copy-table {
    border: 2px solid #000000 !important;
  }

  table.chumontable.catch-copy-table thead {
    display: block;
    width: 100%;
  }

  table.chumontable.catch-copy-table thead tr.catch-copy-head-desktop {
    display: none !important;
  }

  table.chumontable.catch-copy-table thead tr.catch-copy-head-mobile {
    display: block !important;
    width: 100%;
  }

  table.chumontable.catch-copy-table thead tr.catch-copy-head-mobile th.catch-copy-mobile-thead {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0;
    border: none !important;
    border-bottom: 2px solid #000000 !important;
    color: #fff !important;
    font-weight: bold;
    text-align: left;
    vertical-align: top;
    word-break: keep-all;
  }

  .catch-copy-mobile-thead-line1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    box-sizing: border-box;
  }

  .catch-copy-mobile-h-name {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  .catch-copy-mobile-h-price {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
  }

  .catch-copy-mobile-thead-line2 {
    padding: 8px 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    box-sizing: border-box;
  }

  table.chumontable.catch-copy-table tbody {
    display: block;
    width: 100%;
  }

  table.chumontable.catch-copy-table tbody tr.catch-copy-data-row {
    display: grid !important;
    grid-template-columns: 1fr minmax(4.25rem, 24%);
    grid-template-rows: auto auto;
    width: 100%;
    box-sizing: border-box;
  }

  table.chumontable.catch-copy-table tbody tr.catch-copy-data-row > td {
    display: block !important;
    box-sizing: border-box;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5;
    text-align: left !important;
    border: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 10px !important;
  }

  table.chumontable.catch-copy-table tbody tr.catch-copy-data-row td + td {
    border-top: none !important;
  }

  table.chumontable.catch-copy-table tbody tr.catch-copy-data-row td.catch-copy-col-seq {
    display: none !important;
  }

  table.chumontable.catch-copy-table tbody tr.catch-copy-data-row td.catch-copy-col-name {
    grid-column: 1;
    grid-row: 1;
    font-weight: bold !important;
    padding: 10px !important;
    border-right: none !important;
    border-bottom: 1px solid #bdbdbd !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  table.chumontable.catch-copy-table tbody tr.catch-copy-data-row td.catch-copy-col-price {
    grid-column: 2;
    grid-row: 1;
    font-weight: normal !important;
    text-align: center !important;
    padding: 10px 8px !important;
    border-left: 1px solid #bdbdbd !important;
    border-bottom: 1px solid #bdbdbd !important;
    align-self: stretch;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  table.chumontable.catch-copy-table tbody tr.catch-copy-data-row td.catch-copy-col-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    font-weight: normal !important;
    padding: 10px !important;
    border-bottom: 3px solid #000000 !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  #orderer_auth h3 {
    margin: 2% 0;
    text-align: center;
    font-size: 1em;
  }
}