/* common_disp.css: 下記の既存表示制御を読込順どおりに統合した配布資産です。 */

/* ===== SOURCE: disp/cal_disp.css ===== */
/* ==========================================================
   リピスト商品詳細 カレンダーCSS
   設置先: /ast/disp/cal_disp.css

   【デザイナー向け変更エリア】
   色・サイズ・余白は、基本的にこの :root 内だけ変更してください。
   下の本体CSSは、ここで定義した値を参照しています。
   ========================================================== */

:root {
  /* カレンダー全体 */
  --rp-calendar-title-color: #111111;      /* 年月タイトルの文字色 */
  --rp-calendar-title-size: 18px;          /* 年月タイトルの文字サイズ */
  --rp-calendar-gap: 4px;                  /* 日付マス同士のすき間 */
  --rp-calendar-guidance-size: 16px;       /* カレンダー上部案内の文字サイズ */
  --rp-calendar-guidance-note: #c84657;    /* 消費期限注意書きの文字色 */

  /* 曜日見出し */
  --rp-week-bg: #f3f4f5;                   /* 曜日見出しの背景色 */
  --rp-week-text: #555555;                 /* 曜日見出しの文字色 */
  --rp-week-border: #dcdfe3;               /* 曜日見出しの罫線色 */
  --rp-week-font-size: 12px;               /* 曜日見出しの文字サイズ */

  /* 日付マス共通 */
  --rp-cell-height: 62px;                  /* PCの日付マスの高さ */
  --rp-cell-radius: 3px;                   /* 日付マスの角丸 */
  --rp-cell-text: #222222;                 /* 日付マス内の基本文字色 */
  --rp-day-font-size: 14px;                /* 日付数字の文字サイズ */
  --rp-mark-font-size: 16px;               /* ○ △ × の文字サイズ */
  --rp-stock-font-size: 11px;              /* 残数・完売表示の文字サイズ */

  /* 在庫あり */
  --rp-available-bg: #ffffff;              /* 在庫ありマスの背景色 */
  --rp-available-border: #d8dde3;          /* 在庫ありマスの罫線色 */
  --rp-available-mark: #be0000;            /* ○ の色 */
  --rp-available-mark-size: 18px;          /* ○ の文字サイズ */
  --rp-stock-text: #404040;                /* 残数表示の文字色 */

  /* 残りわずか */
  --rp-limited-bg: #fef5ec;                /* △マスの背景色 */
  --rp-limited-border: #f1dbc2;            /* △マスの罫線色 */
  --rp-limited-text: #d56f12;              /* △と残数の文字色 */

  /* 完売・選択不可 */
  --rp-soldout-bg: #f6f6f6;                /* 完売マスの背景色 */
  --rp-soldout-border: #eeeeee;            /* 完売マスの罫線色 */
  --rp-soldout-text: #c84657;              /* ×と完売の文字色 */
  --rp-unavailable-text: #999999;          /* 選択不可日の薄い文字色 */
  --rp-closed-bg: #f6f6f6;                 /* 注文締切日の背景色 */
  --rp-closed-border: #eeeeee;             /* 注文締切日の罫線色 */
  --rp-closed-text: #999999;               /* 注文締切日の「-」の文字色 */

  /* 選択中 */
  --rp-selected-bg: #171717;               /* 選択中マスの背景色 */
  --rp-selected-border: #171717;           /* 選択中マスの罫線色 */
  --rp-selected-text: #ffffff;             /* 選択中マスの文字色 */

  /* 前月・次月ボタン */
  --rp-nav-bg: #ffffff;                    /* 前月・次月ボタン背景色 */
  --rp-nav-text: #444444;                  /* 前月・次月ボタン文字色 */
  --rp-nav-border: #d8dde3;                /* 前月・次月ボタン罫線色 */
  --rp-nav-font-size: 13px;                /* 前月・次月ボタン文字サイズ */
  --rp-nav-gap: 12px;                      /* 年月と前月・次月ボタンの間隔 */

  /* 購入欄 */
  --rp-after-calendar-gap: 28px;           /* カレンダー下からオプション欄までの余白 */
  --rp-purchase-accent: #be0000;           /* 価格・主要ボタン・確認チェックの色 */
  --rp-purchase-accent-hover: #990000;     /* 主要ボタンのホバー色 */
  --rp-purchase-control: #171717;          /* 数量増減ボタンの色 */

  /* 翌月表示時の注意文 */
  --rp-notice-color: #c84657;              /* 注意文の文字色 */
  --rp-notice-font-size: 13px;             /* 注意文の文字サイズ */
  --rp-notice-margin-bottom: 10px;         /* 注意文とカレンダー表の間隔 */
}

/* 既存の「月」「日」セレクト行を非表示。フォーム値はJSで同期します。 */
form#form1 .product__spec[data-calendar-hidden-spec="true"] {
  display: none !important;
}

/* 前月・次月ボタン */
form#form1 .rp-calendar-nav {
  display: none;
}

form#form1 .prev-month,
form#form1 .next-month {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 92px !important;
  min-height: 36px;
  margin: 8px 4px 12px;
  padding: 0 14px;
  border: 1px solid var(--rp-nav-border);
  border-radius: 6px;
  background: var(--rp-nav-bg) !important;
  color: var(--rp-nav-text);
  font-size: var(--rp-nav-font-size);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

form#form1 .prev-month[hidden],
form#form1 .next-month[hidden] {
  display: none !important;
}

form#form1 .prev-month::before {
  content: "<";
  margin-right: 6px;
}

form#form1 .next-month::after {
  content: ">";
  margin-left: 6px;
}

/* カレンダー全体 */
form#form1 .rp-calendar-block {
  width: 100%;
  margin: 6px 0 0;
  text-align: center;
}

form#form1 .rp-calendar-guidance {
  margin: 0 0 12px;
  font-size: var(--rp-calendar-guidance-size);
  line-height: 1.6;
  text-align: center;
}

form#form1 .rp-calendar-guidance__title {
  font-weight: 700;
}

form#form1 .rp-calendar-guidance__note {
  color: var(--rp-calendar-guidance-note);
  font-weight: 400;
}

form#form1 .js-calendar {
  width: 100%;
  max-width: none;
  margin: 6px 0 0;
}

form#form1 .js-calendar h2 {
  margin: 0 0 10px;
  color: var(--rp-calendar-title-color);
  font-size: var(--rp-calendar-title-size);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

form#form1 .rp-calendar-header {
  display: grid;
  grid-template-columns: 92px auto 92px;
  align-items: center;
  gap: var(--rp-nav-gap);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

form#form1 .rp-calendar-header__prev {
  display: flex;
  justify-content: flex-start;
}

form#form1 .rp-calendar-header__label {
  display: block;
  white-space: nowrap;
}

form#form1 .rp-calendar-header__next {
  display: flex;
  justify-content: flex-end;
}

form#form1 .rp-calendar-header .prev-month,
form#form1 .rp-calendar-header .next-month {
  margin: 0;
}

form#form1 .rp-calendar-future-notice {
  margin: -2px 0 var(--rp-notice-margin-bottom);
  color: var(--rp-notice-color);
  font-size: var(--rp-notice-font-size);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

form#form1 .rp-calendar-future-notice[hidden] {
  display: none !important;
}

form#form1 .js-calendar table {
  width: 100%;
  border-collapse: separate;
  border-spacing: var(--rp-calendar-gap);
  table-layout: fixed;
}

/* 曜日見出し */
form#form1 .js-calendar th {
  height: 28px;
  padding: 0;
  border: 1px solid var(--rp-week-border);
  border-radius: 3px;
  background: var(--rp-week-bg);
  color: var(--rp-week-text);
  font-size: var(--rp-week-font-size);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

/* 日付マス */
form#form1 .js-calendar td.rp-calendar-cell {
  position: relative;
  height: var(--rp-cell-height);
  padding: 5px 3px;
  border: 1px solid var(--rp-available-border);
  border-radius: var(--rp-cell-radius);
  background: var(--rp-available-bg);
  color: var(--rp-cell-text);
  text-align: center;
  vertical-align: middle;
  cursor: default;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

form#form1 .js-calendar td.rp-calendar-cell--available,
form#form1 .js-calendar td.rp-calendar-cell--limited {
  cursor: pointer;
}

form#form1 .js-calendar td.rp-calendar-cell--empty {
  border-color: #eeeeee;
  background: #fafafa;
}

form#form1 .js-calendar td.rp-calendar-cell--invalid-date {
  color: transparent;
  pointer-events: none;
}

form#form1 .rp-calendar-day {
  display: block;
  margin-bottom: 3px;
  color: inherit;
  font-size: var(--rp-day-font-size);
  font-weight: 700;
  line-height: 1.05;
}

form#form1 .rp-calendar-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  margin-bottom: 2px;
  font-size: var(--rp-mark-font-size);
  font-weight: 700;
  line-height: 1;
}

form#form1 .rp-calendar-stock {
  display: block;
  color: var(--rp-stock-text);
  font-size: var(--rp-stock-font-size);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

/* 在庫あり */
form#form1 .rp-calendar-cell--available {
  border-color: var(--rp-available-border) !important;
  background: var(--rp-available-bg) !important;
}

form#form1 .rp-calendar-cell--available .rp-calendar-status {
  color: var(--rp-available-mark);
  font-size: var(--rp-available-mark-size);
}

/* 残りわずか */
form#form1 .rp-calendar-cell--limited {
  border-color: var(--rp-limited-border) !important;
  background: var(--rp-limited-bg) !important;
}

form#form1 .rp-calendar-cell--limited .rp-calendar-status,
form#form1 .rp-calendar-cell--limited .rp-calendar-stock {
  color: var(--rp-limited-text);
}

/* 完売・選択不可 */
form#form1 .rp-calendar-cell--soldout {
  border-color: var(--rp-soldout-border) !important;
  background: var(--rp-soldout-bg) !important;
  color: var(--rp-unavailable-text);
}

form#form1 .rp-calendar-cell--soldout .rp-calendar-status,
form#form1 .rp-calendar-cell--soldout .rp-calendar-stock {
  color: var(--rp-soldout-text);
}

/* 注文締切日。今日を含めた4日間は選択不可で「-」表示にします。 */
form#form1 .rp-calendar-cell--closed {
  border-color: var(--rp-closed-border) !important;
  background: var(--rp-closed-bg) !important;
  color: var(--rp-closed-text);
}

form#form1 .rp-calendar-cell--closed .rp-calendar-status,
form#form1 .rp-calendar-cell--closed .rp-calendar-stock {
  color: var(--rp-closed-text);
}

/* 選択中 */
form#form1 .rp-calendar-cell--selected {
  border-color: var(--rp-selected-border) !important;
  background: var(--rp-selected-bg) !important;
  color: var(--rp-selected-text) !important;
  box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.12);
}

form#form1 .rp-calendar-cell--selected .rp-calendar-status,
form#form1 .rp-calendar-cell--selected .rp-calendar-stock {
  color: var(--rp-selected-text) !important;
}

/* 既存ラジオを透明化し、セル全体をクリックしやすくします。 */
form#form1 .rp-calendar-radio,
form#form1 .rp-calendar-radio label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

form#form1 .rp-calendar-radio input[name="classcategory_id_m"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

form#form1 .rp-calendar-radio label {
  min-width: 22px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.columns.rp-product-detail-columns > .left-column {
  display: none !important;
}

.columns.rp-product-detail-columns > .center-column {
  width: 100%;
  min-width: 0;
}

.p-product-detail.rp-product-detail-layout {
  --width-image-column: 465px;
  --width-gap-column: 50px;
  width: 100%;
}

.p-product-detail.rp-product-detail-layout .product__image {
  width: var(--width-image-column);
  max-width: var(--width-image-column);
}

.p-product-detail.rp-product-detail-layout .product__main {
  min-width: 0;
}

.p-product-detail.rp-product-detail-layout .rp-related-categories {
  display: none !important;
}

.p-product-detail.rp-product-detail-layout .rp-product-detail-information {
  width: 100%;
  margin-top: 36px;
}

.p-product-detail.rp-product-detail-layout .rp-product-detail-information .product__section-title {
  font-size: 22px;
  letter-spacing: 0;
}

.p-product-detail.rp-product-detail-layout .rp-product-detail-information .product__section-body {
  line-height: 1.8;
}

.p-product-detail.rp-product-detail-layout .product__sale-price-value {
  color: var(--rp-purchase-accent);
}

.p-product-detail form#form1 .rp-order-options-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: var(--rp-after-calendar-gap) 0 0;
}

.p-product-detail form#form1 .rp-order-options-layout > * {
  margin-top: 0;
  margin-bottom: 0;
}

.p-product-detail form#form1 .rp-order-options-layout .product__spec:not(.campaign-option) {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.p-product-detail form#form1 .rp-order-options-layout .product__spec-value {
  width: 100%;
  margin-top: 0;
}

.p-product-detail form#form1 .rp-delivery-confirmation__notes {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.7;
}

.p-product-detail form#form1 .rp-delivery-confirmation {
  padding: 16px;
  border: 1px solid #d8d8d8;
}

.p-product-detail form#form1 .rp-delivery-confirmation__notes p {
  margin: 0;
}

.p-product-detail form#form1 .rp-delivery-confirmation__label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.p-product-detail form#form1 .rp-delivery-confirmation__checkbox {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--rp-purchase-accent);
  cursor: pointer;
}

.rp-delivery-confirmation-dialog-overlay {
  position: fixed;
  z-index: 100001;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.rp-delivery-confirmation-dialog-overlay[hidden] {
  display: none !important;
}

.rp-delivery-confirmation-dialog {
  box-sizing: border-box;
  width: min(100%, 660px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: 6px;
  background: #fff;
  color: #222;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.rp-delivery-confirmation-dialog__message {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.rp-delivery-confirmation-dialog__actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.rp-delivery-confirmation-dialog__button {
  min-width: 120px;
  padding: 10px 20px;
  border: 1px solid var(--rp-purchase-accent);
  border-radius: 4px;
  background: var(--rp-purchase-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.rp-delivery-confirmation-dialog__button:hover {
  border-color: var(--rp-purchase-accent-hover);
  background: var(--rp-purchase-accent-hover);
}

.rp-delivery-confirmation-dialog__button:focus-visible {
  outline: 3px solid #4b9fea;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .rp-delivery-confirmation-dialog {
    padding: 24px 16px 20px;
  }

  .rp-delivery-confirmation-dialog__button {
    width: 100%;
  }
}

.p-product-detail.rp-product-detail-layout form#form1 .campaign-option__checkbox {
  accent-color: var(--rp-purchase-accent);
}

.p-product-detail form#form1 .rp-purchase-summary {
  padding-top: 12px;
}

.p-product-detail form#form1 .rp-purchase-summary__name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.p-product-detail form#form1 .rp-purchase-summary__price {
  margin-top: 24px;
}

.p-product-detail form#form1 .rp-order-options-layout .product__quantity {
  margin-top: 4px;
}

.p-product-detail form#form1 .rp-order-options-layout .product__cart-button {
  width: 100%;
}

.p-product-detail form#form1 .product__cart-button .c-button--gradient-green {
  width: 100%;
  max-width: none;
  color: #ffffff;
  background: var(--rp-purchase-accent);
  border-color: var(--rp-purchase-accent);
}

.p-product-detail form#form1 .product__cart-button .c-button--gradient-green:hover {
  background: var(--rp-purchase-accent-hover);
  border-color: var(--rp-purchase-accent-hover);
}

.p-product-detail form#form1 .product__cart-button .c-button--gradient-green i {
  color: #ffffff;
}

.p-product-detail form#form1 .product__quantity .count-button {
  background-color: var(--rp-purchase-control);
  border-color: var(--rp-purchase-control);
}

.p-product-detail form#form1 .product__quantity .count-button:hover {
  background-color: #333333;
  border-color: #333333;
}

/* タブレット */
@media (max-width: 768px) {
  .p-product-detail.rp-product-detail-layout {
    --width-image-column: 100%;
    --width-gap-column: 20px;
  }

  .p-product-detail.rp-product-detail-layout .product__image {
    width: 100%;
    max-width: none;
  }

  .p-product-detail.rp-product-detail-layout .rp-product-detail-information {
    margin-top: 36px;
  }

  form#form1 .rp-calendar-block {
    width: 100%;
    margin-left: 0;
  }

  form#form1 .js-calendar table {
    border-spacing: 3px;
  }

  form#form1 .js-calendar td.rp-calendar-cell {
    height: 58px;
    padding: 5px 2px;
  }

  form#form1 .rp-order-options-layout {
    gap: 16px;
  }
}

/* スマホ */
@media (max-width: 480px) {
  form#form1 .prev-month,
  form#form1 .next-month {
    min-width: 78px !important;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  form#form1 .js-calendar h2 {
    font-size: 16px;
  }

  form#form1 .rp-calendar-header {
    grid-template-columns: 74px auto 74px;
    gap: 8px;
  }

  form#form1 .rp-calendar-future-notice {
    font-size: 12px;
  }

  form#form1 .js-calendar table {
    border-spacing: 2px;
  }

  form#form1 .js-calendar th {
    height: 25px;
    font-size: 11px;
  }

  form#form1 .js-calendar td.rp-calendar-cell {
    height: 54px;
    padding: 4px 1px;
    border-radius: 6px;
  }

  form#form1 .rp-calendar-day {
    margin-bottom: 2px;
    font-size: 13px;
  }

  form#form1 .rp-calendar-status {
    min-width: 16px;
    min-height: 16px;
    margin-bottom: 1px;
    font-size: 14px;
  }

  form#form1 .rp-calendar-stock {
    font-size: 10px;
  }
}

/* 極小画面 */
@media (max-width: 360px) {
  form#form1 .js-calendar table {
    border-spacing: 1px;
  }

  form#form1 .js-calendar td.rp-calendar-cell {
    height: 50px;
  }

  form#form1 .rp-calendar-day {
    font-size: 12px;
  }

  form#form1 .rp-calendar-status {
    font-size: 13px;
  }

  form#form1 .rp-calendar-stock {
    font-size: 9px;
  }
}

/* ===== SOURCE: noshi-display/noshi_disp.css ===== */
.p-product-detail .noshi-display {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  box-sizing: border-box;
  width: 100%;
  padding: 16px;
  border: 1px solid #d8d8d8;
}

.p-product-detail form#form1 .rp-order-options-layout .product__spec.noshi-display {
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
}

.p-product-detail .noshi-display .product__spec-label {
  align-self: start;
  padding-top: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

.p-product-detail .noshi-display .product__spec-value {
  width: 100%;
  margin: 0;
}

.p-product-detail .noshi-display .c-select {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  vertical-align: top;
}

.p-product-detail .noshi-display .c-select select {
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.p-product-detail .noshi-display .product__spec.noshi-display__name-row,
.p-product-detail form#form1 .rp-order-options-layout .noshi-display .product__spec.noshi-display__name-row {
  position: relative;
  left: -102px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: calc(100% + 102px);
  max-width: none;
  margin-top: 10px;
}

.p-product-detail .noshi-name-select--inactive {
  color: #999;
  background-color: #f5f5f5;
  pointer-events: none;
}

.p-product-detail .noshi-display__short-note,
.p-product-detail .noshi-display__note {
  position: relative;
  left: -96px;
  width: calc(100% + 96px);
  max-width: none;
  white-space: pre-line;
}

.p-product-detail .noshi-display__short-note {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: inherit;
}

.p-product-detail .noshi-display__note {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: inherit;
}

.p-product-detail .noshi-display__note-highlight {
  color: var(--color__red, #c00);
}

@media (max-width: 767px) {
  .p-product-detail .noshi-display {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    padding: 14px;
  }

  .p-product-detail form#form1 .rp-order-options-layout .product__spec.noshi-display {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .p-product-detail .noshi-display .product__spec-value {
    width: 100%;
  }

  .p-product-detail .noshi-display .product__spec.noshi-display__name-row,
  .p-product-detail form#form1 .rp-order-options-layout .noshi-display .product__spec.noshi-display__name-row {
    left: -84px;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    width: calc(100% + 84px);
  }

  .p-product-detail .noshi-display__short-note,
  .p-product-detail .noshi-display__note {
    left: -84px;
    width: calc(100% + 84px);
    max-width: none;
  }

  .p-product-detail .noshi-display__short-note {
    font-size: 10px;
  }

  .p-product-detail .noshi-display__note {
    font-size: 12px;
  }
}

/* ===== SOURCE: campaign-display/campaign_disp.css ===== */
.p-product-detail .campaign-option {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 18px;
}

.p-product-detail .campaign-option[hidden] {
  display: none !important;
}

.p-product-detail .campaign-option .product__spec-label {
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

.p-product-detail .campaign-option .product__spec-value {
  width: auto;
  margin: 0;
}

.p-product-detail .campaign-option__native-select {
  display: none !important;
}

.p-product-detail .campaign-option__checkbox-label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  cursor: pointer;
  user-select: none;
}

.p-product-detail .campaign-option__checkbox {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #159b15;
  cursor: pointer;
}

.p-product-detail .campaign-option__note {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .p-product-detail .campaign-option {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 16px;
  }

  .p-product-detail .campaign-option .product__spec-value {
    width: auto;
  }

  .p-product-detail .campaign-option__note {
    font-size: 12px;
  }
}

@media (min-width: 769px) {
  .p-product-detail form#form1 .rp-order-options-column--right .campaign-option {
    grid-template-columns: max-content minmax(0, 1fr);
    width: 100%;
    margin-top: 0;
  }
}

/* ===== SOURCE: noshi-note/noshi_note.css ===== */
.noshi-note-default-message {
  color: #d60000 !important;
}

.noshi-note-guidance {
  margin: 8px 0 0;
  color: #d60000;
  font-weight: 700;
}

.noshi-note-guidance[hidden] {
  display: none !important;
}

.noshi-note-dialog-overlay {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.noshi-note-dialog-overlay[hidden] {
  display: none !important;
}

.noshi-note-dialog {
  box-sizing: border-box;
  width: min(100%, 620px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 6px;
  background: #fff;
  color: #222;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.noshi-note-dialog__message {
  margin: 0;
  white-space: pre-line;
  line-height: 1.8;
  text-align: left;
}

.noshi-note-dialog__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.noshi-note-dialog__button {
  min-width: 120px;
  padding: 10px 20px;
  border: 1px solid #777;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.noshi-note-dialog__button--no {
  background: #fff;
  color: #333;
}

.noshi-note-dialog__button--yes {
  border-color: #be0000;
  background: #be0000;
  color: #fff;
}

.noshi-note-dialog__button:focus-visible {
  outline: 3px solid #4b9fea;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .noshi-note-dialog {
    padding: 20px 16px;
  }

  .noshi-note-dialog__actions {
    gap: 10px;
  }

  .noshi-note-dialog__button {
    min-width: 0;
    flex: 1;
  }
}

/* ===== SOURCE: checkout-key-color/checkout_key_color.css ===== */
/* CHECKOUT KEY COLOR BEGIN */
.p-cart .c-button--gradient-green,
.p-order-input .c-button--gradient-green,
.p-order-confirm .c-button--gradient-green,
.p-order-payment-module #gmopg_complete.c-button--gradient-green {
  color: #fff;
  background: #be0000;
  background: linear-gradient(to bottom, #c80000 0%, #ad0000 100%);
  border-color: #be0000;
}

.p-cart .c-highlight--green,
.p-order-input .c-highlight--green,
.p-order-confirm .c-highlight--green,
.p-order-confirm .order-confirm-form__content-wrap .sidebar .order-total__value,
.p-order-confirm .order-confirm-form .confirm-widget .order-total__value {
  color: #be0000;
}

.p-mypage-login #member_form .c-button--default {
  color: #fff;
  background: #be0000;
  background: linear-gradient(to bottom, #c80000 0%, #ad0000 100%);
  border-color: #be0000;
}

.p-mypage-login .c-button--blue {
  color: #fff;
  background: #1ba110;
  background: linear-gradient(to bottom, #1ba110 0%, #18830f 100%);
  border-color: #1ba110;
}

.p-mypage-login #member_form2 .c-button--gradient-green {
  color: #fff;
  background: #171717;
  border-color: #171717;
}

.p-order-input .payment-method-list .payment-affair > .c-highlight {
  color: #000;
  font-size: 13px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .p-order-input .payment-method-list tr:has(input[name="payment_id"][value="6"]) .payment-affair__img {
    max-width: 468px;
    height: auto;
  }
}

/* MYPAGE LOGIN BUTTON COLOR BEGIN */
.p-mypage-login #login_mypage .c-button--default {
  color: #fff;
  background: #be0000;
  border-color: #be0000;
}

.p-mypage-login #login_mypage .c-button--default:hover {
  background: #990000;
  border-color: #990000;
}
/* MYPAGE LOGIN BUTTON COLOR END */

/* CHECKOUT KEY COLOR END */

/* MULTIPLE DELIVERY PRODUCT SUMMARY BEGIN */
.p-order-input.p-multiple-delivery .product-info {
  gap: 12px;
}

.p-order-input.p-multiple-delivery .product-info__image {
  flex: 0 0 80px;
  min-width: 80px;
}

.p-order-input.p-multiple-delivery .product-info__image img {
  display: block;
  width: 80px;
  height: auto;
}

.p-order-input.p-multiple-delivery .product-info__detail > div {
  margin-bottom: 2px;
  line-height: 1.5;
}

.p-order-input.p-multiple-delivery .product-info__detail .product-info__name {
  font-weight: 600;
}

.p-order-input.p-multiple-delivery .add-shipping-address .c-button--primary.c-button--reverse {
  color: #be0000;
  border-color: #be0000;
}
/* MULTIPLE DELIVERY PRODUCT SUMMARY END */

/* 固定ヘッダーと複数お届け先見出しの重なりを防ぐ */
.p-multiple-delivery { padding-top: 120px; }
@media (max-width: 767px) {
  .p-multiple-delivery { padding-top: 80px; }
}


.p-order-confirm .order-confirm-form__multiple-delivery-group +
  .order-confirm-form__multiple-delivery-group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #d8d8d8;
}

/* ===== SOURCE: mypage_user_color.css ===== */
/* MYPAGE USER NAME COLOR BEGIN */
.p-mypage .mypage-point-info__user .c-highlight,
.p-mypage .point-info__user > span {
  color: #000;
}
/* MYPAGE USER NAME COLOR END */

/* MYPAGE RECEIPT COLOR BEGIN */
.p-mypage .js-download-receipt {
  color: #fff;
  background: #1ba110;
  background: linear-gradient(to bottom, #1ba110 0%, #18830f 100%);
  border-color: #1ba110;
}

.p-mypage .js-download-receipt:hover {
  opacity: 0.6;
}
/* MYPAGE RECEIPT COLOR END */

/* ===== SOURCE: cart-date-guard/cart_date_guard.css ===== */
/* カート・購入手続きの日付警告だけに適用する。 */
.mimiu-date-warning { display: block; color: #b00000; font-size: 14px; line-height: 1.6; margin: 6px 0 10px; overflow-wrap: anywhere; }
.mimiu-date-warning[hidden], .mimiu-date-modal[hidden] { display: none !important; }
.mimiu-date-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .5); }
.mimiu-date-modal__panel { box-sizing: border-box; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 28px; border-radius: 8px; background: #fff; color: #222; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.mimiu-date-modal__panel p { margin: 0 0 24px; font-size: 16px; line-height: 1.8; }
.mimiu-date-modal__ok { display: block; min-width: 120px; margin: 0 auto; padding: 12px 24px; border: 0; border-radius: 4px; background: #c00; color: #fff; font: inherit; cursor: pointer; }
.mimiu-date-modal__ok:focus-visible { outline: 3px solid #222; outline-offset: 3px; }
@media (max-width: 480px) { .mimiu-date-modal__panel { padding: 22px; } }

/* ===== SOURCE: top_renewal_popup.css ===== */
.mimiu-renewal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .58);
  box-sizing: border-box;
}
.mimiu-renewal-overlay[hidden] { display: none !important; }
.mimiu-renewal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 64px 32px 24px;
  box-sizing: border-box;
  background: #fff;
  color: #191919;
  box-shadow: 0 8px 36px rgba(0, 0, 0, .22);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
}
.mimiu-renewal-body { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.mimiu-renewal-body h2 { margin: 0 0 22px; font-size: 21px; font-weight: 700; line-height: 1.5; text-align: center; }
.mimiu-renewal-body p { margin: 0 0 18px; }
.mimiu-renewal-body a { color: #be0000; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mimiu-renewal-reset { white-space: nowrap; }
.mimiu-renewal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #191919;
  border-radius: 50%;
  background: #fff;
  color: #191919;
  font-family: sans-serif;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.mimiu-renewal-footer { flex-shrink: 0; padding-top: 12px; text-align: center; }
.mimiu-renewal-close { min-height: 44px; width: 180px; max-width: 100%; padding: 8px 24px; border: 1px solid #191919; background: #191919; color: #fff; font: inherit; cursor: pointer; }
.mimiu-renewal-panel button:focus-visible, .mimiu-renewal-panel a:focus-visible { outline: 2px solid #be0000; outline-offset: 3px; }
@media (max-width: 480px) {
  .mimiu-renewal-overlay { padding: 12px; }
  .mimiu-renewal-panel { padding: 64px 20px 20px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); font-size: 15px; line-height: 1.85; }
  .mimiu-renewal-body h2 { font-size: 18px; margin-bottom: 18px; }
  .mimiu-renewal-close { width: 100%; }
}
