/* -------------------- カート初期化ここから -------------------- */
.spinner_area input[type="button"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: inherit;
  border-radius: 0;
  box-shadow: none;
}

/* input numberリセット */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.cart_button_in_value:after {
  display: block;
  padding-left: 0;
}
.item_price_unit {
  display: none !important;
}

table.item_kind_table.btn_disp > tbody > tr > td.item_count_val,
table.item_kind_table.btn_disp > tbody > tr > td.cart_button_val {
  display: block !important;
}
table.item_kind_table.btn_disp > tbody > tr > td.item_count_val {
  text-align: left !important;
  margin-bottom: 20px;
  min-width: 355px;
}

select[name="item_kind_disp"] {
  font-family: "MOBO", sans-serif !important;
  font-weight: 400 !important;
  border: 1px solid #ccc;
  margin: 0;
  padding: 8px 8px 8px 64px;
  border-radius: 5px;
  font-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNC42NyAyNC42NyI+PGNpcmNsZSBjeD0iMTIuMzQiIGN5PSIxMi4zNCIgcj0iMTIuMzQiIHN0eWxlPSJmaWxsOiNjY2NlZDMiLz48cGF0aCBkPSJtMTIuMzQgMTguMzEtNi44LTYuOCAxLTEgNS44IDUuNzkgNS43OS01Ljc5IDEgMS02Ljc5IDYuOHoiIHN0eWxlPSJmaWxsOiMyMzE4MTUiLz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 24px 24px;
  padding-right: 50px;
  width: 100%;
}
/* カート並び順・スペース調整 */
.ems_jscart {
  display: flex;
  flex-direction: column;
  gap: 15px 0;
  font-family: "MOBO", sans-serif !important;
  font-weight: 600;
}
@media screen and (min-width: 768px) {
  .ems_jscart {
    gap: 20px 0;
  }
}

.item_name {
  order: 0;
}
.item_explain_sub1 {
  order: 1;
}
.item_explain {
  order: 2;
}
.item_kind_select {
  order: 3;
}
.item_explain_sub2 {
  order: 4;
}
.kind_table {
  order: 5;
}
.js_cart_ordermade {
  order: 5;
}

.ems_jscart > .item_count {
  order: 3;
}
.ems_jscart > .cart_form {
  order: 4;
}

div[data-item-code="AS1938"] {
  margin-bottom: 36px !important;
}
/* -------------------- カート初期化ここまで -------------------- */

.item_price_ttl.item_count_ttl,
.for_sp.item_count_ttl_sp.item_price_ttl {
  font-size: 13px;
  display: inline-block;
  margin: 0 1em 0 0;
  letter-spacing: 0.1em;
}

.item_kind_select_ttl {
  font-size: 13px;
  display: inline-block;
  margin: 0;
  letter-spacing: 0.1em;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
}
.item_kind_select {
  position: relative;
}

.count_input_area {
  position: relative;
  display: inline-block;
  width: 260px !important;
  height: 36px !important;
}

input[value="＋"],
input[value="－"] {
  position: absolute;
  top: 8px;
  z-index: 10;
  font-size: 16px;
}
input[value="＋"] {
  right: 15px;
}
input[value="－"] {
  left: 15px;
}

input[name="item_count"] {
  font-family: "MOBO", sans-serif !important;
  font-weight: 400 !important;
  border: 1px solid #ccc;
  margin: 0;
  border-radius: 5px;
  font-size: 16px;
  width: 260px !important;
  height: 40px !important;
  text-align: center !important;
}

.grid.item_kind_table.btn_disp.display_other_than_table {
  width: 100% !important;
}

.cart_button.in {
  /* max-width: 600px !important; */
  /* min-width: 200px; */
  width: 100% !important;
  font-size: 16px !important;
  background: #d1000a !important;
  border: 1px solid #1c2940 !important;
  border-radius: 5px !important;
  margin: 0;
}

.normal_price_ttl.item_price_ttl,
.item_name_ttl,
.normal_price_ttl_sp {
  font-size: 15px;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}
.price_unit_sub {
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: #000;
}

.item_name_val {
  font-family: "MOBO", sans-serif !important;
  font-weight: 700;
  font-size: 25px;
  display: block;
  line-height: 1.2;
}
@media screen and (min-width: 768px) {
  .item_name_val {
    font-size: 33px;
  }
}

.normal_price_val.item_price_val {
  font-family: brandon-grotesque, sans-serif;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  font-size: 25.5px;
  position: relative;
  padding-left: 20px;
}
.normal_price_val.item_price_val::before {
  content: "¥";
  position: absolute;
  top: 8px;
  left: 0;
  z-index: 11;
  font-size: 21px;
}
@media screen and (min-width: 768px) {
  .normal_price_val.item_price_val {
    font-size: 34px;
  }
  .normal_price_val.item_price_val::before {
    font-size: 29px;
    top: 11px;
  }
}

.item_explain_val {
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.item_explain_sub1 {
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
@media screen and (min-width: 768px) {
  .item_explain_val,
  .item_explain_sub1 {
    font-size: 13px;
    letter-spacing: 0.1em;
  }
}

.item_explain_val h2,
.item_explain_val h3,
.item_explain_val p {
  font-size: 13px;
}

.item_explain_val ul {
  margin: 0 0 1em 1em;
  padding: 0;
}

.item_explain_val h2 {
  margin-bottom: 1em;
}
.item_explain_val h3 {
  margin-bottom: 0.5em;
}
.item_explain_val p {
  font-weight: 400;
  margin-bottom: 2em;
}

/* -------------------- サイズ表ここから -------------------- */

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "MOBO", sans-serif !important;
  font-weight: 400;
  font-size: 13px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.size-table thead {
  background-color: #f6f6f6;
}

.size-table th,
.size-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
  word-break: break-word;
}

.size-table th {
  font-weight: 600;
  color: #333;
}

.size-table td {
  color: #444;
}

.size-table tr:hover {
  background-color: #f9f9f9;
}

/* タブレット・PC向け（768px以上） */
@media screen and (min-width: 768px) {
  .size-table {
    font-size: 14px;
  }

  .size-table th,
  .size-table td {
    padding: 10px;
  }
}

/* サイズ表の開閉処理 */
.table-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.table-wrapper.open {
  max-height: 1000px;
}
.toggle-link {
  display: inline-block;
  margin-bottom: 10px;
  cursor: pointer;
  color: #0073aa;
  text-decoration: underline;
}
/* -------------------- サイズ表ここまで -------------------- */
