main {
  position: relative;
  padding: 157px 0px 100px;
}

a {
  color: #870101;
  text-decoration: none;
}

.ec-role {
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 35px;
  color: #1a1819;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 1130px;
}

.ec-pageHeader h1 {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 24px;
  font-weight: bold;
}

.ec-cartRole {
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 28px;
  color: #1a1819;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 50px auto 0;
  max-width: 600px;
  margin: 0 auto;
}

form.ec-cartRole {
  padding: 0;
}

.ec-cartRole .ec-cartRole__progress,
.ec-cartRole__progress {
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  margin-top: 50px;
}

.ec-cartRole .ec-cartRole__progress {
  margin-top: 10px;
}

.ec-progress {
  margin: 0 auto;
  padding: 0;
  display: table;
  table-layout: fixed;
  width: 100%;
  max-width: 600px;
  list-style: none;
}

.ec-progress .ec-progress__item {
  display: table-cell;
  position: relative;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
  z-index: 10;
}

.ec-progress .ec-progress__number {
  font-family: "Zen Old Mincho", serif;
  line-height: 28px;
  width: 30px;
  height: 30px;
  margin-bottom: 0px;
  font-size: 16px;
  background: #333333;
  color: #fff;
  top: 0;
  left: 18px;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  border-radius: 50%;
}

.ec-progress .is-complete .ec-progress__number {
  background: #870101;
}

.ec-progress .is-complete .ec-progress__label {
  color: #870101;
}

.ec-progress .ec-progress__label {
  font-size: 12px;
  line-height: normal;
  color: #1a1819;
  font-weight: 500;
  width: 48px;
  margin: 5px auto 0;
}

.ec-progress .ec-progress__item:not(:last-child)::after {
  content: "";
  position: absolute;
  display: block;
  background: #333333;
  width: 100%;
  height: 1px;
  top: 15px;
  left: 50%;
  margin-left: 0;
  z-index: -1;
}

.ec-cartRole .ec-cartRole__totalText {
  margin-bottom: 0;
  padding: 46px 0 6px;
  width: 100%;
  text-align: center;
  font-weight: normal;
  color: #1a1819;
}

.ec-cartRole .ec-cartRole__cart {
  margin: 0;
  width: 100%;
}

.ec-cartTable {
  display: table;
  border-top: 1px solid #999999;
  width: 100%;
}

.ec-cartHeader {
  display: none;
  width: 100%;
  background: #f4f3f0;
}

.ec-cartRow {
  display: table-row;
}

.ec-cartRow .ec-cartRow__delColumn {
  border-bottom: 1px solid #999999;
  text-align: center;
  display: table-cell;
  width: 28px;
  vertical-align: middle;
}

.ec-icon img {
  max-width: 100px;
  max-height: 100px;
}

.ec-cartRole img {
  aspect-ratio: 1;
  object-fit: cover;
}

.ec-cartRow .ec-cartRow__delColumn .ec-icon img {
  width: 12px;
  height: 12px;
}

.ec-cartRow .ec-cartRow__contentColumn {
  border-bottom: 1px solid #999999;
  padding: 16px 0;
  display: table;
  width: min(238px, max(180px, calc(238px + 100vw - 375px)));
}

@media (min-width: 376px) {
  .ec-cartRow .ec-cartRow__contentColumn {
    width: 100%;
  }
}

.ec-cartRow .ec-cartRow__img {
  display: table-cell;
  width: 34.7%;
  vertical-align: middle;
  padding-right: 0;
  padding-right: 16px;
}

.ec-cartRow .ec-cartRow__summary {
  display: table-cell;
  margin-left: 5px;
  font-weight: bold;
  vertical-align: middle;
  width: 36.4%;
  color: #1a1819;
}

.ec-cartRow .ec-cartRow__summary .ec-cartRow__name {
  margin-top: 5px;
  margin-bottom: 0px;
}

.ec-cartRow .ec-cartRow__summary .ec-cartRow__name a {
  font-size: 16px;
  line-height: 24px;
}

.ec-cartRow__unitPrice {
  font-size: 16px;
  line-height: 28px;
  font-weight: 500;
}

.ec-cartRow__sutbtotalSP {
  margin-top: 8px;
  font-size: 14px;
  line-height: 26px;
}

.ec-cartRow .ec-cartRow__summary .ec-cartRow__sutbtotalSP {
  display: block;
  font-weight: normal;
}

.ec-cartRow .ec-cartRow__amountColumn {
  display: table-cell;
  border-bottom: 1px solid #999999;
  vertical-align: middle;
  text-align: center;
  width: 20%;
}

.ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amount {
  display: none;
  margin-bottom: 10px;
}

.ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountSP {
  display: block;
  margin-bottom: 0px;
  font-weight: 500;
  font-size: 14px;
  line-height: 26px;
}

.ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountUpDown {
  display: flex;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #c7c7c7;
  width: fit-content;
  margin: 0 auto;
}

.ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountDownButton,
.ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountDownButtonDisabled {
  margin: 0;
  display: inline-block;
  border: none;
  border-radius: 0;
  width: 35px;
  min-width: 35px;
  max-width: 35px;
  height: 35px;
  cursor: pointer;
  line-height: 40px;
  vertical-align: middle;
  position: relative;
  text-align: center;
  background: #fff;
  border-right: 1px solid #c7c7c7;
}

.ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountDownButtonDisabled {
  cursor: default;
}

.ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountDownButton .ec-cartRow__amountDownButton__icon img,
.ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountDownButtonDisabled .ec-cartRow__amountDownButton__icon img {
  display: block;
  margin-left: 0;
  width: 14px;
  height: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountUpButton .ec-cartRow__amountUpButton__icon img {
  display: block;
  margin-left: 0;
  width: 14px;
  height: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountUpButton {
  margin: 0;
  display: inline-block;
  border: none;
  border-radius: 0;
  width: 35px;
  min-width: 35px;
  max-width: 35px;
  height: 35px;
  cursor: pointer;
  line-height: 40px;
  vertical-align: middle;
  position: relative;
  text-align: center;
  background: #fff;
}

.ec-cartRow .ec-cartRow__subtotalColumn {
  display: none;
  border-bottom: 1px dotted #ccc;
  text-align: right;
  width: 16.66666667%;
}

.ec-color-red {
  color: #af0101;
}

.ec-cartRole .ec-cartRole__actions {
  width: 100%;

}

.ec-cartRole .ec-cartRole__total {
  padding: 15px 0 5px;
  font-weight: bold;
  font-size: 14px;
  line-height: 26px;
  border-bottom: 1px solid #999999;
  width: 210px;
  margin-left: auto;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
}

.ec-cartRole .ec-cartRole__totalAmount {
  color: #870101;
  font-size: 24px;
  line-height: 32px;
}

.ec-blockBtn--action {
  font-family: "Zen Old Mincho", serif;
  display: inline-block;
  margin-bottom: 0;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: none;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 19px;
  line-height: 1;
  border-radius: 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 10px 16px;
  text-decoration: none;
  color: #fff;
  background-color: #870101;
  border-color: #870101;
  display: block;
  width: 100%;
  height: 60px;
  line-height: 60px;
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.21);

}

.ec-cartRole .ec-blockBtn--action {
  margin-bottom: 10px;
}

.ec-blockBtn--cancel {
  font-family: "Zen Old Mincho", serif;
  display: inline-block;
  margin-bottom: 0;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: none;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 19px;
  line-height: 1;
  border-radius: 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 10px 16px;
  text-decoration: none;
  color: #fff;
  background-color: #333333;
  border-color: unset;
  display: block;
  width: 100%;
  height: 60px;
  line-height: 60px;
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.21);
  margin: 16px auto 0;
  max-width: 335px;
}

.customer-form__prev {
  margin-top: 16px;
}

.ec-cartRow .ec-cartRow__subtotalColumn {
  display: none;
  border-bottom: 1px solid #999999;
  text-align: right;
  width: 16.66666667%;
  font-weight: 500;
  vertical-align: middle;
}

.ec-totalBox .ec-totalBox__btn .common-button {
  font-size: 19px;
  display: block;
  margin-bottom: 0;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: none;
  white-space: nowrap;
  border-radius: 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 0 16px;
  text-decoration: none;
  color: #fff;
  border-color: unset;
  width: 100%;
  height: 60px;
  line-height: 60px;
}

.ec-totalBox .ec-totalBox__btn .ec-blockBtn--action {
  margin-top: 20px;
}



@media (min-width: 768px) {
  main {
    position: relative;
    padding: 189px 0px 150px;
  }

  .ec-pageHeader h1 {
    font-size: 35px;
    line-height: 51px;
  }

  .ec-cartRole {
    max-width: min(1130px, max(770px, calc(1130px + 100vw - 1920px)));
  }

  .ec-cartRole .ec-cartRole__progress,
  .ec-cartRole__progress {
    margin-top: 50px;
    text-align: right;
  }

  #form_cart .ec-cartRole__progress {
    margin-top: 30px;
  }

  .ec-progress {
    padding-bottom: 0;
  }

  .ec-progress .ec-progress__number {
    line-height: 38px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    left: 18px;
  }

  .ec-progress .ec-progress__item:not(:last-child)::after {
    top: 20px;
  }

  .ec-progress .ec-progress__label {
    width: 72px;
  }

  .ec-progress .ec-progress__item:nth-child(4) .ec-progress__label {
    width: 84px;
  }

  .ec-cartRole .ec-cartRole__totalText {
    padding: 20px 0;
  }

  .ec-cartTable {
    display: table;
    border-top: 1px dotted #ccc;
    width: 100%;
  }

  .ec-cartHeader {
    width: 100%;
    background-color: #cccccc;
    display: table-row;
  }

  .ec-cartHeader .ec-cartHeader__label {
    display: table-cell;
    padding: 0;
    text-align: center;
    background: #cccccc;
    overflow-x: hidden;
    font-weight: bold;
    white-space: nowrap;
    font-size: 14px;
    height: 45px;
    line-height: 45px;
  }

  .ec-cartHeader .ec-cartHeader__label:last-child {
    text-align: right;
    padding-right: 15px;
  }

  .ec-cartRow .ec-cartRow__delColumn {
    border-bottom: 1px solid #999999;
    text-align: center;
    display: table-cell;
    width: 58px;
    vertical-align: middle;
  }

  .ec-cartRow .ec-cartRow__summary .ec-cartRow__sutbtotalSP {
    display: none;
  }

  .ec-cartRole img {
    aspect-ratio: 1;
  }

  .ec-cartRow .ec-cartRow__contentColumn {
    min-width: 193px;
  }

  .ec-cartRow .ec-cartRow__img {
    display: inline-block;
    width: min(200px, max(135px, 9.5vw));
    max-width: min(200px, max(135px, 9.5vw));
    min-width: 100px;
    padding-right: 35px;
  }

  .ec-cartRow .ec-cartRow__subtotalColumn {
    display: table-cell;
  }

  .ec-cartRow .ec-cartRow__contentColumn {
    padding: 20px 0;
  }

  .common-button {
    font-size: 16px;
  }

  .ec-blockBtn--action {
    margin-top: 30px;
    height: 50px;
    line-height: 50px;
    margin-right: 0;
  }

  .ec-blockBtn--cancel {
    max-width: 230px;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    transition: all 0.3s;
    margin: 16px 0 0 auto;
  }

  .ec-totalBox .ec-totalBox__btn .ec-blockBtn--cancel {
    margin-top: 16px;

  }

  .ec-blockBtn--cancel:hover {
    background-color: #737373;
  }

  .ec-cartRow .ec-cartRow__img {
    vertical-align: middle;
  }

  .ec-cartRow .ec-cartRow__summary {
    display: inline-block;
    margin-left: 0px;
    font-weight: bold;
    vertical-align: middle;
    width: calc(100% - min(200px, max(135px, 10vw)));
    color: #1a1819;
    text-align: left;
    margin-right: auto;
    margin-left: 0;
  }

  .ec-cartRow .ec-cartRow__delColumn .ec-icon img {
    width: 12px;
    height: 12px;
  }

  .ec-cartRole .ec-cartRole__total {
    padding: 49px 0 5px;
    width: 230px;
    margin-left: auto;
    margin-bottom: 30px;
  }

  .ec-cartRole .ec-cartRole__totalAmount {
    text-align: right;
  }

  @media (min-width: 768px) {
    .ec-totalBox .ec-totalBox__btn .common-button {
      max-width: 296px;
      height: 50px;
      line-height: 45px;
      font-size: 16px;
    }
  }

  .ec-totalBox .ec-totalBox__btn .ec-blockBtn--cancel {
    margin-top: 10px;
  }

  .ec-cartRole .ec-cartRole__actions {
    width: 100%;
    text-align: right;
    margin-right: 0 !important;
  }
}