/* カスタマイズ用CSS */
:root {
  /* ec-layoutRole__service__detail の共通スタイル変数 */
  --ec-layout-service-bg-color: #f8f9fa;
  --ec-layout-service-border: 1px solid #ddd;
  --ec-layout-service-radius: 10px;
  --ec-layout-service-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --ec-layout-service-primary-bg-color: #167dd8;

  /* 画像サイズ共通変数 */
  --image-width-default: 80px;
  --image-height-default: 55px;

  --image-width-small: 40px;
  --image-height-small: 27.5px;

  /* カラー共通変数 */
  --color-white: #ffffff;
  --color-icon-default: var(--color-white);
}

/* デフォルトスタイル（768px未満） */

/* フロントのフッター、ヘッダー カラー */
.ec-footerRole,
.ec-headerCustomizeTitle {
  background-color: var(--ec-layout-service-primary-bg-color);
}

/* フロントのヘッダー デザイン */
.ec-headerNaviRole {
  padding-top: 40px;
  margin: 0 auto;
  max-width: 100%;
  max-width: 1130px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.ec-headerNaviRole__left,
.ec-headerNaviRole__right {
  display: flex;
  align-items: center;
  height: 100%;
}

.ec-headerNaviRole__search,
.ec-headerRole__navSP,
.ec-headerNaviRole__nav,
.ec-headerRole__cart {
  margin: 0 10px;
  display: flex;
  align-items: center;
  height: 100%;
}

/* フロントのヘッダー アイコン、リンクの色 */
.ec-headerNav .ec-headerNav__itemIcon,
.ec-headerNav .ec-headerNav__itemLink {
  color: var(--color-icon-default);
}

/* フロント ご注文方法について */
.ec-layoutRole__service__detail__icon {
  display: inline-flex;
  background-color: var(--ec-layout-service-primary-bg-color);
  font-size: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--color-icon-default);
  width: 46px;
  height: 46px;
  box-sizing: border-box;
}

.ec-CustomizelayoutRole .ec-CustomizelayoutRole__list,
.payments-contents-logo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.ec-CustomizelayoutRole .ec-CustomizelayoutRole__listItem {
  width: 100%;
  margin-right: 0;
  padding: 20px 0;
}

.ec-CustomizelayoutRole .ec-CustomizelayoutRole__listItemTitle {
  margin-top: 0.5em;
}

.ec-layoutRole__service__detail__payment__title,
.ec-layoutRole__service__detail__box {
  text-align: center;
}

.ec-layoutRole__service__detail__payment__card,
.ec-layoutRole__service__detail__box {
  background-color: var(--ec-layout-service-bg-color);
  border: var(--ec-layout-service-border);
  border-radius: var(--ec-layout-service-radius);
  box-shadow: var(--ec-layout-service-box-shadow);
  box-sizing: border-box;
}

.ec-layoutRole__service__detail__payment__card {
  padding: 20px 10px;
  margin: 20px 0;
}

.ec-layoutRole__service__detail__box {
  padding: 20px 10px 20px;
  margin: 0 0 20px 0;
}

.layoutRole__service__detail__content {
  border-radius: 10px;
  padding: 15px;
  box-sizing: border-box;
  margin: 20px 0;
  padding: 20px 10px;
}

.ec-layoutRole__service__detail__payment__card h4,
.ec-layoutRole__service__detail__box p {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

.payments-contents-logo img {
  width: var(--image-width-default);
  height: var(--image-height-default);

  /* 画像を中央揃えで表示 */
  display: block; /* ブロック要素として扱い、余計なスペースを防ぐ */
  margin: 0 auto; /* 中央揃え */

  /* アスペクト比を保ちながら、指定サイズ内に収める */
  object-fit: contain;
}

.ec-layoutRole__service__detail__body {
  justify-content: space-between;
  align-items: flex-start;
}

.layoutRole__service__detail__box,
.layoutRole__service__detail__content {
  flex: 1; /* 子要素を均等に拡張 */
  background-color: #f8f9fa;
  border: 1px solid #ddd; /* 枠線を設定 */
  border-radius: 10px;
  padding: 20px 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影を付ける */
  box-sizing: border-box; /* パディングを含む幅の計算 */
}

.ec-layoutRole__service__detail__box,
.ec-layoutRole__service__detail__content {
  width: 100%;
  margin-bottom: 20px;
  flex: none;
}

.ec-layoutRole__service__detail__box br {
  /* brタグを非表示にする */
  display: none;
}

/* ラジオボタンの共通スタイル */
.yuutai-radio,
input[name="yuutai_discount_use[coupon_use]"] {
  all: unset;
  appearance: none;
  width: 13px;
  height: 13px;
  background-color: #f0f0f0;
  border: 2px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
}

/* チェックされた時のスタイル（共通） */
.yuutai-radio:checked,
input[name="yuutai_discount_use[coupon_use]"]:checked {
  background-color: #007bff;
  border-color: #0056b3;
}

/* 金額入力のラッパー */
.js-coupon-amount-wrapper {
  margin-top: 10px;
  padding: 10px 0;
  display: none; /* 初期状態で非表示 */
}

/* 金額入力を横並びに */
.amount-row {
  display: flex;
  align-items: center;
}

/* 各金額入力の項目 */
.amount-item {
  display: flex;
  align-items: center;
  margin-right: 10px; /* 各項目の間に余白 */
}

/* 金額入力のスタイル（特定の要素） */
#yuutai_discount_use_coupon_amount_man,
#yuutai_discount_use_coupon_amount_tenman {
  width: 37.2px; /* 幅を統一 */
}

#yuutai_discount_use_coupon_use .form-check {
  padding-left: 0;
}

/* ラベルのスタイル */
.amount-label {
  font-weight: bold;
  margin-right: 10px;
}

/* ラジオボタンのラッパー */
.js-coupon-use {
  margin-bottom: 10px;
}

/* 選択ボックスのスタイル（共通化） */
.js-coupon-amount-wrapper select {
  margin-right: 5px;
  padding: 5px;
}

#guide .heading02 {
  font-size: 14px;
  font-size: 1.4rem;
  color: #4c3324;
  border-bottom: 2px solid #bbb0aa;
  padding: 0.5em 0.2em;
}

#guide p {
  margin: 0 0 1em;
  color: #6a758a;
  line-height: 1.3;
  text-align: left;
}

#undercolumn h2.title {
  background: none;
  border-bottom: 1px solid #bbb0aa;
  color: #5b3117;
  font-size: 14px;
  font-size: 1.4rem;
  margin: 0;
  padding: 0.8em 0.2em;
  text-align: left;
}

#guide .table ol li {
  display: block;
  padding: 0.8em 1em;
  text-align: center;
  background: #f4f3f0;
  border-right: 1px solid #ddd8d5;
  border-top: 1px solid #ddd8d5;
  overflow-x: hidden;
  color: #4e3324;
}

#guide .table ol {
  padding-left: 0px;
  margin-bottom: 0;
}

#guide .table .tbody .tr > div {
  display: block;
  padding: 0.7em 1em;
  text-align: center;
  border: 1px solid #ddd8d5;
  overflow-x: hidden;
}

#guide .table .thead {
  /* border-bottom: 2px solid red; */
}

/* 768px以上のスタイル メディアクエリ */
@media only screen and (min-width: 768px) {
  .ec-CustomizelayoutRole .ec-CustomizelayoutRole__list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 20px;
  }

  .ec-CustomizelayoutRole .ec-CustomizelayoutRole__listItem {
    width: 48%;
  }

  .ec-CustomizelayoutRole .ec-CustomizelayoutRole__listItem:last-of-type {
    margin-right: 0;
  }

  .ec-layoutRole__service__detail__payment {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2%;
  }

  .ec-layoutRole__service__detail__payment__card {
    flex: 0 0 48%; /* 子要素を48%の幅に固定 */
    box-sizing: border-box;
  }

  .payments-contents-logo img {
    width: var(--image-width-small);
    height: var(--image-height-small);
  }

  .ec-layoutRole__service__detail__body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .ec-layoutRole__service__detail__box {
    flex: 0 0 38%; /* 横幅を全体の38%に設定 */
    box-sizing: border-box;
  }

  .ec-layoutRole__service__detail__content {
    flex: 0 0 58%; /* 横幅を全体の58%に設定 */
    box-sizing: border-box;
    padding: 20px 0;
  }

  .ec-footerNavi .ec-footerNavi__link a {
    text-decoration: none;
  }

  .small-text {
    font-size: 0.8em; /* 通常の 80% のサイズにする */
  }
}
