/* Mypage redesign */
body.mypage {
  --mypage-red: #b90008;
  --mypage-green: #01c300;
  --mypage-beige: #f8f3ef;
  --mypage-border: #d2d2d2;
  margin: 0;
  background: #fff;
  color: #171717;
  font-size: 14px;
}
body.mypage * {
  box-sizing: border-box;
}
body.mypage .ec-layoutRole {
  overflow: hidden;
  width: 100%;
  background: #fff;
}
body.mypage .ec-layoutRole__header,
body.mypage .ec-layoutRole__footer,
body.mypage .ec-layoutRole__contents,
body.mypage .ec-layoutRole__main,
body.mypage .ec-layoutRole__mainWithColumn,
body.mypage .ec-layoutRole__mainBetweenColumn {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.mypage .ec-layoutRole__contents {
  display: block;
}
body.mypage .ec-layoutRole__left,
body.mypage .ec-layoutRole__right,
body.mypage .ec-blockTopBtn {
  display: none;
}
body.mypage a {
  transition: opacity .2s ease;
}
body.mypage a:hover {
  opacity: .75;
  text-decoration: none;
}
.mypage-only-pc {
  display: none;
}
.mypage-content {
  width: 100%;
  max-width: 916px;
  margin: 0 auto;
}
.mypage-main {
  font-size: 11.5px;
}
.mypage-layout-header {
  position: relative;
  z-index: 10;
  border: 0;
  background: #fff;
}
.mypage-header {
  width: 100%;
  height: 104px;
  background: #fff;
}
.mypage-header__line {
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #01c300;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.mypage-header__line--sp {
  display: flex;
  width: calc(100% - 12px);
  height: 32.5px;
  margin: 0 6px 3.5px;
  font-size: 11.5px;
}
.mypage-header__line--sp img {
  width: 19px;
  height: 19px;
  margin-right: 7px;
  object-fit: contain;
}
.mypage-header__line--pc {
  display: none;
}
.mypage-header__row {
  position: relative;
  display: grid;
  grid-template-columns: 32px 32px 1fr auto;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  height: 68px;
  padding: 0 12px;
}
.mypage-header .mypage-header__menu {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #040000;
  font-size: 0;
}
.mypage-header__menu span {
  display: block;
  width: 23px;
  height: 1.5px;
  background: #040000;
}
.mypage-header__account-sp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
}
.mypage-header__account-sp img {
  width: 24px;
  height: 24px;
}
.mypage-header__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 42px;
  transform: translate(-50%, -50%);
}
.mypage-header__logo img {
  width: 48px;
  height: 35px;
  object-fit: contain;
}
.mypage-header__actions {
  display: flex;
  grid-column: 4;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  height: 100%;
}
.mypage-header__action {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #040000;
  text-decoration: none;
}
.mypage-header__action > span:not(.mypage-header__cart-icon),
.mypage-header__action--account,
.mypage-header__cart-price {
  display: none;
}
.mypage-header__action--favorite img {
  width: 27px;
  height: 23px;
}
.mypage-header__action--session img {
  width: 23px;
  height: 23px;
}
.mypage-header__cart-icon {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
}
.mypage-header__cart-icon img {
  width: 25px;
  height: 25px;
}
.mypage-header__cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 7px;
  background: #e83b3b;
  color: #fff;
  font-size: 8px;
  line-height: 13px;
}
.mypage-tabs {
  width: 100%;
  height: 24px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #d2d2d2;
  background: #fff;
}
.mypage .mypage-tabs__list {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 24px;
  margin: 0;
  /* アクティブタブを中央へスクロールさせるための余白は「リスト側」に持たせる。
     各 li に持たせると li 自身（＝赤い下線）が余白の分まで広がり、下線幅が設計値 160px を超える。 */
  padding: 0 calc((100vw - 160px) / 2);
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mypage .mypage-tabs__list::-webkit-scrollbar {
  display: none;
}
/* JS でタブ行を輪にした状態。前後に1周分の複製が並ぶため、中央寄せ用の余白は不要になる。
   （JSが動かない場合は上の padding によるスクロール中央寄せへフォールバックする） */
.mypage .mypage-tabs__list.is-looped {
  padding: 0;
}
.mypage .mypage-tabs .ec-navlistRole__item {
  position: relative;
  flex: 0 0 160px;
  width: 160px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
}
.mypage .mypage-tabs .ec-navlistRole__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 24px;
  min-height: 0;
  padding: 0 5px 2.5px;
  color: #171717;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 21.5px;
  text-decoration: none;
  white-space: nowrap;
}
.mypage .mypage-tabs .ec-navlistRole__item.active {
  border-bottom: 2.5px solid #b90008;
  background: #fff;
}
.mypage .mypage-tabs .ec-navlistRole__item.active a {
  color: #b90008;
}
.mypage .mypage-tabs.is-scrollable {
  position: relative;
  padding-right: 30px;
}
.mypage .mypage-tabs.is-scrollable::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 100%;
  border-left: 1px solid #e4e4e4;
  background: #fff;
  color: #B80008;
  content: "\2194";
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.mypage-intro,
.mypage-section {
  width: 100%;
  background: #f8f3ef;
}
.mypage-intro {
  padding: 25px 14px 18px;
  border-bottom: 1px solid #d2d2d2;
}
.mypage-intro--compact {
  min-height: 64px;
  padding-top: 22px;
  padding-bottom: 14px;
}
.mypage-section__title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #b90008;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.mypage-section__title img {
  flex: 0 0 auto;
  object-fit: contain;
}
.mypage-section__lead {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.85;
}
.mypage-line-register {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 145px;
  height: 42px;
  margin-top: 12px;
  border-radius: 7px;
  background: #01c300;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.mypage-line-register img {
  width: 25px;
  height: 25px;
  margin-right: 13px;
  object-fit: contain;
}
.mypage-count {
  margin: 0 0 14px;
  font-size: 11.5px;
  line-height: 1.6;
}
.mypage-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 73px;
  min-height: 32px;
  padding: 5px 14px;
  border: 1px solid #b90008;
  border-radius: 17px;
  background: #fff;
  color: #b90008;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.mypage-remove {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: block;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c4cbd0;
  color: #fff;
}
.mypage-remove span::before,
.mypage-remove span::after {
  position: absolute;
  top: 7px;
  left: 13px;
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: #fff;
  content: "";
}
.mypage-remove span::before {
  transform: rotate(45deg);
}
.mypage-remove span::after {
  transform: rotate(-45deg);
}

/* Login */
.mypage-hero {
  left: 0;
  width: 100%;
  height: 121px;
  margin: 0;
  background-position: center;
}
.mypage-hero__badge {
  width: 66px;
  height: 66px;
  padding: 11px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .12);
}
.mypage-login {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 12px 61px;
}
.mypage .mypage-pageHeader h1 {
  margin: 0;
  padding: 20px 2px 10px;
  border: 0;
  border-bottom: 1px solid #d2d2d2;
  color: #3f4350;
  font-size: 17px;
  line-height: 1.4;
}
.mypage-login__form {
  width: 100%;
  max-width: 351px;
  margin: 17px auto 0;
}
.mypage-login .mypage-login__card {
  width: 100%;
  min-height: 442px;
  margin: 0;
  padding: 25px 14px 24px;
  border-radius: 11px;
  background: #f8f3ef;
}
.mypage-login .ec-login__input {
  margin-bottom: 24px;
}
.mypage-login__field + .mypage-login__field {
  margin-top: 17px;
}
.mypage-login__label {
  margin-bottom: 7px;
  color: #3f4350;
  font-size: 11px;
  line-height: 1.3;
}
.mypage-login .mypage-login__inputs input {
  width: 323px;
  max-width: 100%;
  height: 42px;
  margin: 0 auto;
  padding: 8px 12px;
  border: 1px solid #d2d2d2;
  border-radius: 5px;
  background: #fff;
  color: #333;
  font-size: 11px;
}
.mypage-login .mypage-login__inputs input:focus {
  border-color: #b90008;
  box-shadow: 0 0 0 1px rgba(185, 0, 8, .14);
}
.mypage-login__remember {
  margin-top: 16px;
  color: #3f4350;
  font-size: 11px;
}
.mypage-login__remember input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-right: 5px;
}
.mypage-login .mypage-login__button {
  width: 323px;
  max-width: 100%;
  min-height: 0;
  height: 42px;
  margin: 0 auto;
  border: 1px solid #b90008;
  border-radius: 6px;
  background: #b90008;
  color: #fff;
  font-size: 11px;
}
.mypage-login .mypage-login__button:hover,
.mypage-login .mypage-login__button:focus {
  border-color: #b90008;
  background: #b90008;
  opacity: .85;
}
.mypage-login__chevron {
  right: 14px;
  font-size: 22px;
}
.mypage-login .ec-login__link {
  margin-top: 11px;
  font-size: 10.5px;
  line-height: 1.4;
}
.mypage-login__entry a {
  color: #b90008;
}
.mypage-login .other_login {
  margin: 27px 0 14px;
  color: #777;
  font-size: 9.5px;
}
.mypage-login .line_login {
  width: 323px;
  max-width: 100%;
  height: 42px;
  margin: 0 auto;
  line-height: 42px;
}
.mypage-login .line_login a {
  width: 323px;
  max-width: 100%;
  height: 42px;
  border-radius: 6px;
  background-color: #01c300;
  background-image: url(../img/common/line.svg);
  background-position: 13px center;
  background-size: 25px auto;
  font-size: 12px;
  line-height: 42px;
}

/* Mypage top */
.mypage-home__navigation {
  padding: 29px 0 23px;
  background: #fff;
}
.mypage-home__welcome {
  margin: 0 10px 20px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}
.mypage-home__welcome span {
  margin-left: 8px;
}
.mypage-menu {
  display: grid;
  /* 81px は 375px 幅時の設計値。320px 等の狭い端末では 4×81+3×7.5=346.5px が収まらないため、
     4列を保ったまま列幅を縮められるようにする（固定 81px だと4列目が右端で切れる）。 */
  grid-template-columns: repeat(4, minmax(0, 81px));
  grid-auto-rows: auto;
  gap: 7.5px;
  justify-content: center;
  width: 346.5px;
  max-width: calc(100% - 28px);
  margin: 0 auto;
}
.mypage-menu__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 81px;
  aspect-ratio: 1 / 1;
  height: auto;
  padding: 8px 3px 6px;
  border: 1px solid #d2d2d2;
  border-radius: 6px;
  background: #fff;
  color: #171717;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.mypage-menu__item img {
  max-width: 34px;
  max-height: 31px;
  margin-bottom: 8px;
  object-fit: contain;
}
.mypage-menu__item--active {
  border-color: #b90008;
  background: #fff8f8;
  color: #b90008;
}
.mypage-menu__item--active::before,
.mypage-menu__item--active::after {
  position: absolute;
  right: 9px;
  bottom: -9px;
  width: 0;
  height: 0;
  border-style: solid;
  content: "";
}
.mypage-menu__item--active::before {
  border-width: 9px 7px 0;
  border-color: #b90008 transparent transparent;
}
.mypage-menu__item--active::after {
  right: 10px;
  bottom: -7px;
  border-width: 8px 6px 0;
  border-color: #fff8f8 transparent transparent;
}
.mypage-menu__item--cart {
  border-color: #b90008;
  background: #b90008;
  color: #fff;
}
.mypage-menu__item--cart img {
  filter: brightness(0) invert(1);
}
.mypage-history {
  padding: 28px 0 64px;
  border-top: 4px solid #fff;
}
.mypage-history > .mypage-content {
  padding: 0 14px;
}
.mypage-history__body {
  margin-top: 18px;
}
.mypage-history__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mypage-order {
  border-left: 4px solid #b90008;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
}
.mypage-order__summary {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 145px;
  padding: 17px 14px 48px;
  font-size: 11.5px;
  line-height: 1.6;
}
.mypage-order__date {
  flex: 0 0 100%;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
}
.mypage-order__summary dl {
  display: flex;
  flex: 0 0 100%;
  margin: 0;
}
.mypage-order__summary dt,
.mypage-order__summary dd {
  margin: 0;
  font-weight: 400;
}
.mypage-order__summary .mypage-outline-button {
  position: absolute;
  bottom: 13px;
  left: 14px;
}
.mypage-order__toggle {
  position: absolute;
  right: 11px;
  bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 10.5px;
}
.mypage-order__toggle-close,
.mypage-order.is-open .mypage-order__toggle-open {
  display: none;
}
.mypage-order.is-open .mypage-order__toggle-close {
  display: inline;
}
.mypage-order__chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.mypage-order.is-open .mypage-order__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}
.mypage-order__details {
  background: #f8f8f8;
}
.mypage-order-product {
  padding: 21px 14px 18px;
  border-top: 1px solid #d2d2d2;
}
.mypage-order-product + .mypage-order-product {
  border-top-color: #777;
}
.mypage-order-product__overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mypage-order-product__copy {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 10px;
}
.mypage-order-product__name {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}
.mypage-order-product__class {
  margin: 3px 0 0;
  font-size: 10px;
}
.mypage-order-product__price {
  margin: 7px 0 0;
  color: #b90008;
  font-size: 16px;
  font-weight: 700;
}
.mypage-order-product__image {
  flex: 0 0 94px;
  width: 94px;
  height: 94px;
}
.mypage-order-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mypage-order-product__options {
  margin: 0;
  color: #777;
  font-size: 11px;
  line-height: 1.55;
}
.mypage-order-product__options > div {
  display: grid;
  grid-template-columns: 37% 63%;
  min-height: 28px;
  padding: 5px 4px;
  border-bottom: 1px solid #b7b7b7;
}
.mypage-order-product__options dt,
.mypage-order-product__options dd {
  margin: 0;
  font-weight: 400;
}

/* Favorite */
.mypage-favorite__body {
  min-height: 1170px;
  padding: 17px 9px 64px;
  border-top: 4px solid #fff;
}
.mypage-favorite__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mypage-favorite__item {
  position: relative;
  min-width: 0;
  padding: 8px 8px 12px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .04);
}
.mypage-favorite__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.mypage-favorite__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mypage-favorite__name {
  min-height: 38px;
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.45;
}
.mypage-favorite__price {
  margin: 1px 0 0;
  font-size: 11px;
  font-weight: 700;
}

/* Customer and delivery forms */
.mypage-form-section,
.mypage-delivery__body {
  padding: 17px 9px 73px;
  border-top: 8px solid #fff;
}
.mypage-delivery__body {
  border-top-width: 4px;
}
.mypage-form {
  width: 100%;
  margin: 0;
}
.mypage-form__card,
.mypage-card-form {
  width: 100%;
  padding: 11px 10px 15px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
}
.mypage-form__card dl,
.mypage-card-form dl {
  margin: 0;
  padding: 11px 5px 12px;
  border-bottom: 1px solid #e2e2e2;
}
.mypage-form__card dt,
.mypage-card-form dt {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.mypage-form__card dd,
.mypage-card-form dd {
  margin: 0;
}
.mypage-form__card .ec-label,
.mypage-card-form .ec-label {
  display: block;
  margin: 0;
  color: #3f4350;
  font-size: 11px;
  font-weight: 700;
}
.mypage-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 14px;
  margin-top: 2px;
  padding: 0 4px;
  border-radius: 2px;
  background: #b90008;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 14px;
}
.mypage-form input[type="text"],
.mypage-form input[type="email"],
.mypage-form input[type="tel"],
.mypage-form input[type="password"],
.mypage-form select,
.mypage-card-form input[type="text"],
.mypage-card-form input[type="tel"],
.mypage-card-form select {
  height: 30px;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #d2d2d2;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font-size: 11px;
}
.mypage-form .ec-halfInput {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.mypage-form .ec-halfInput input,
.mypage-form .ec-input input {
  width: 100%;
}
.mypage-form .ec-telInput input {
  width: 145px;
  max-width: 100%;
}
.mypage-form .ec-zipInput {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.mypage-form .ec-zipInput input {
  width: 131px;
}
.mypage-postal-search {
  display: inline-flex;
  align-items: center;
  color: #1491bb;
  font-size: 10px;
  text-decoration: none;
}
.mypage-postal-search__help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border-radius: 50%;
  background: #535264;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.mypage-form .ec-select,
.mypage-form .ec-input {
  margin-top: 8px;
}
.mypage-form .ec-select select {
  max-width: 198px;
}
.mypage-form .ec-birth {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mypage-form .ec-radio label {
  margin-right: 14px;
  font-size: 11px;
}
.mypage-form__actions {
  margin-top: 14px;
}
.mypage-submit-button {
  display: block;
  width: 323px;
  max-width: 100%;
  height: 42px;
  margin: 0 auto;
  border: 0;
  background: #535264;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.mypage-change__line > .ec-off1Grid__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
}
.mypage-change__line > .ec-off1Grid__cell > .col {
  order: 1;
  width: 100%;
  margin-top: 8px;
  padding: 0 !important;
  font-size: 11.5px;
  line-height: 1.85;
}
.mypage-change__line > .ec-off1Grid__cell > .btn {
  order: 2;
  width: 145px;
  height: 42px;
  margin-top: 12px;
  padding: 0;
}
.mypage-change__line .line-button,
.mypage-change__line .line-button img {
  display: block;
  width: 145px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
}
.mypage-change__line .line-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #01c300;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.mypage-change__line .line-button::before {
  width: 25px;
  height: 25px;
  margin-right: 13px;
  background: url(../img/common/line.svg) center/contain no-repeat;
  content: "";
}
.mypage-change__line .line-button::after {
  content: "LINEで登録";
}
.mypage-change__line .line-button img {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Delivery */
.mypage-delivery__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 78px;
}
.mypage-address-card,
.mypage-credit-card {
  position: relative;
  min-height: 140px;
  padding: 21px 20px 17px;
  border-left: 4px solid #b90008;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
  font-size: 11.5px;
  line-height: 1.75;
}
.mypage-address-card p {
  margin: 0;
}
.mypage-address-card__name {
  font-size: 13px;
  font-weight: 700;
}
.mypage-address-card .mypage-outline-button {
  margin-top: 7px;
}
.mypage-delivery__empty,
.mypage-card__empty {
  margin: 0 6px 17px;
}
.mypage-delivery__form {
  margin-top: 15px;
}
.mypage-delivery--edit .mypage-intro {
  padding-bottom: 25px;
}

/* Withdraw */
.mypage-withdraw__body {
  padding: 17px 9px 44px;
  border-top: 4px solid #fff;
}
.mypage-withdraw__warning {
  width: 100%;
  min-height: 294px;
  padding: 53px 30px 32px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
  text-align: center;
}
.mypage-withdraw__alert {
  width: 55px;
  height: 55px;
  margin-bottom: 15px;
  opacity: .45;
}
.mypage-withdraw__warning h2 {
  margin: 0;
  color: #535264;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.mypage-withdraw__warning p {
  margin: 12px 0 20px;
  color: #535264;
  font-size: 11.5px;
  line-height: 1.7;
}
.mypage-withdraw__button {
  width: 208px;
  max-width: 100%;
  height: 42px;
  border: 0;
  background: #535264;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

/* Card */
.mypage-card__body {
  padding: 17px 9px 59px;
  border-top: 4px solid #fff;
}
.mypage-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 84px;
}
.mypage-credit-card {
  min-height: 136px;
  padding: 17px 20px 16px;
}
.mypage-credit-card__checkbox {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}
.mypage-card-form__delete {
  display: none !important;
}
.mypage-credit-card__number {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.mypage-credit-card dl,
.mypage-credit-card dl div {
  display: flex;
  margin: 0;
}
.mypage-credit-card dt,
.mypage-credit-card dd {
  margin: 0;
  font-weight: 400;
}
.mypage-credit-card .mypage-outline-button {
  margin-top: 7px;
}
.mypage-card-form {
  padding-top: 6px;
}
.mypage-card-form input[type="text"],
.mypage-card-form input[type="tel"] {
  width: 160px;
  max-width: 100%;
}
.mypage-card-form__caution {
  margin: 8px 0 0;
  color: #f33;
  font-size: 10px;
  font-weight: 700;
}
.mypage-card-form__note {
  margin: 7px 0 0;
  color: #535264;
  font-size: 10px;
}
.mypage-card-form__expiry {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}
.mypage-card-form__expiry select {
  width: 49px;
  padding-right: 3px;
  padding-left: 7px;
}
.mypage-card-form__actions {
  margin-top: 13px;
}
.mypage-card-form__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 101px;
  min-height: 33px;
  padding: 5px 11px;
  border: 1px solid #d2d2d2;
  border-radius: 0;
  background: #f7f7f7;
  color: #535264;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

/* Footer */
.mypage-layout-footer {
  background: #000;
}
.mypage-footer {
  width: 100%;
  min-height: 274px;
  background: #000;
  color: #fff;
}
.mypage-footer__nav {
  display: grid;
  grid-template-columns: 1fr;
}
.mypage-footer__nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-bottom: 1px solid #4a4a4a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
.mypage-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 122px;
  padding-top: 8px;
  text-align: center;
}
.mypage-footer__name {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}
.mypage-footer__copyright {
  margin: 0;
  font-size: 6.5px;
  line-height: 1;
}

@media only screen and (min-width: 768px) {
  .mypage-only-pc {
    display: block;
  }
  .mypage-header {
    height: 92px;
  }
  .mypage-header__line--sp,
  .mypage-header__account-sp {
    display: none;
  }
  .mypage-header__row {
    display: grid;
    /* LINE帯は 386px を上限に縮められるようにする（固定値のままだと 768〜1199px でヘッダー右側が見切れる）。 */
    grid-template-columns: 43px 94px minmax(0, 386px) minmax(20px, 1fr) auto;
    column-gap: 14px;
    width: 100%;
    max-width: 1200px;
    height: 92px;
    margin: 0 auto;
    padding: 0 12px;
  }
  .mypage-header .mypage-header__menu {
    grid-column: 1;
    width: 32px;
    height: 32px;
  }
  .mypage-header__menu span {
    width: 28px;
    height: 2px;
  }
  .mypage-header__logo {
    position: static;
    grid-column: 2;
    width: 75px;
    height: 55px;
    transform: none;
  }
  .mypage-header__logo img {
    width: 63px;
    height: 46px;
  }
  .mypage-header__line--pc {
    display: flex;
    grid-column: 3;
    width: 100%;
    max-width: 386px;
    height: 36px;
    /* 386px 未満まで縮んだとき（768〜1199px）に文字が途中で断ち切られないよう省略記号にする。 */
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
    overflow: hidden;
  }
  .mypage-header__line--pc span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mypage-header__line--pc img {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    object-fit: contain;
  }
  .mypage-header__actions {
    grid-column: 5;
    gap: 15px;
  }
  .mypage-header__action {
    flex-direction: row;
    gap: 5px;
    font-size: 11px;
    white-space: nowrap;
  }
  .mypage-header__action > span:not(.mypage-header__cart-icon),
  .mypage-header__action--account,
  .mypage-header__cart-price {
    display: inline-flex;
  }
  .mypage-header__action img {
    width: 23px;
    height: 23px;
    object-fit: contain;
  }
  .mypage-header__cart-price {
    align-items: center;
    margin-left: -8px;
    font-size: 11px;
    white-space: nowrap;
  }
  .mypage-tabs {
    height: 72px;
  }
  .mypage .mypage-tabs__list {
    justify-content: center;
    /* 916px は 1200px 時の設計値。それ未満の幅では縮めないと末尾のタブが見切れる。 */
    width: 100%;
    max-width: 916px;
    height: 72px;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
  }
  /* 輪にするための複製は SP 専用。PC 幅では必ず消す（JSの張り替えが走らない場合の保険） */
  .mypage .mypage-tabs .ec-navlistRole__item.is-clone {
    display: none;
  }
  .mypage .mypage-tabs .ec-navlistRole__item {
    flex: 1 1 0;
    width: auto;
    height: 72px;
    /* SP はアクティブタブを中央へスクロールさせるため左右に 100vw 由来の padding を持たせている。
       PC では全タブを1行に収めるため必ず打ち消す（打ち消さないと1タブが画面幅まで広がる）。 */
    padding: 0;
  }
  .mypage .mypage-tabs .ec-navlistRole__item a {
    height: 72px;
    padding: 0 8px 3px;
    font-size: 16px;
    line-height: 69px;
  }
  .mypage .mypage-tabs .ec-navlistRole__item.active {
    border-bottom-width: 3px;
  }
  .mypage-content {
    max-width: 916px;
  }
  .mypage-main {
    font-size: 14px;
  }
  .mypage-intro {
    padding: 42px 30px 34px;
  }
  .mypage-intro--compact {
    min-height: 112px;
    padding-top: 43px;
  }
  .mypage-section__title {
    gap: 11px;
    font-size: 24px;
  }
  .mypage-section__lead,
  .mypage-count {
    font-size: 14px;
  }
  .mypage-section__lead {
    margin-top: 14px;
    line-height: 1.8;
  }
  .mypage-line-register {
    width: 174px;
    height: 50px;
    margin-top: 16px;
    font-size: 14px;
  }
  .mypage-outline-button {
    min-width: 116px;
    min-height: 34px;
    font-size: 13px;
  }
  .mypage-hero {
    height: 312px;
  }
  .mypage-hero__badge {
    width: 142px;
    height: 142px;
    padding: 24px;
  }
  .mypage-login {
    padding: 0 30px 185px;
  }
  .mypage .mypage-pageHeader {
    width: 1140px;
    max-width: 100%;
    margin: 0 auto;
  }
  .mypage .mypage-pageHeader h1 {
    padding: 43px 0 20px;
    font-size: 32px;
  }
  .mypage-login__form {
    max-width: 680px;
    margin-top: 32px;
  }
  .mypage-login .mypage-login__card {
    min-height: 617px;
    padding: 48px 64px;
    border-radius: 16px;
  }
  .mypage-login__label {
    margin-bottom: 10px;
    font-size: 14px;
  }
  .mypage-login__field + .mypage-login__field {
    margin-top: 24px;
  }
  .mypage-login .mypage-login__inputs input {
    width: 100%;
    height: 56px;
    padding: 10px 16px;
    font-size: 14px;
  }
  .mypage-login__remember {
    margin-top: 22px;
    font-size: 14px;
  }
  .mypage-login .mypage-login__button,
  .mypage-login .line_login,
  .mypage-login .line_login a {
    width: 100%;
    height: 50px;
    font-size: 14px;
    line-height: 50px;
  }
  .mypage-login .ec-login__link {
    font-size: 13px;
  }
  .mypage-login .other_login {
    margin-top: 36px;
    font-size: 13px;
  }
  .mypage-home__navigation {
    padding: 18px 0 31px;
  }
  .mypage-home__welcome {
    margin-bottom: 38px;
    font-size: 14px;
  }
  .mypage-menu {
    /* 895px（8列×104px＋7×9px）は 1200px 時の設計値。狭い幅では列を縮めて8列を保つ
       （固定 104px ＋ calc(100% - 305px) のままだと 768〜1199px でタイルが見切れる）。 */
    grid-template-columns: repeat(8, minmax(0, 104px));
    grid-auto-rows: auto;
    gap: 9px;
    justify-content: center;
    width: 895px;
    max-width: 100%;
  }
  .mypage-menu__item {
    width: auto;
    max-width: 104px;
    aspect-ratio: 1 / 1;
    height: auto;
    font-size: 13px;
  }
  .mypage-menu__item img {
    max-width: 42px;
    max-height: 39px;
    margin-bottom: 10px;
  }
  .mypage-history {
    padding: 53px 0 100px;
    border-top-width: 8px;
  }
  .mypage-history > .mypage-content {
    padding: 0;
  }
  .mypage-history__body {
    margin-top: 36px;
  }
  .mypage-history__list {
    gap: 20px;
  }
  .mypage-order__summary {
    flex-wrap: nowrap;
    gap: 28px;
    min-height: 82px;
    padding: 18px 90px 18px 27px;
    font-size: 14px;
  }
  .mypage-order__date,
  .mypage-order__summary dl {
    flex: 0 0 auto;
    margin: 0;
  }
  .mypage-order__date {
    font-size: 16px;
  }
  .mypage-order__summary .mypage-outline-button {
    position: static;
    margin-left: auto;
  }
  .mypage-order__toggle {
    right: 20px;
    bottom: 31px;
    font-size: 12px;
  }
  .mypage-order-product {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    padding: 38px 35px 35px;
  }
  .mypage-order-product__overview {
    margin: 0;
  }
  .mypage-order-product__copy {
    order: 2;
    padding: 0 0 0 21px;
  }
  .mypage-order-product__image {
    order: 1;
    flex-basis: 145px;
    width: 145px;
    height: 145px;
  }
  .mypage-order-product__name {
    font-size: 15px;
  }
  .mypage-order-product__class {
    font-size: 12px;
  }
  .mypage-order-product__price {
    margin-top: 15px;
    font-size: 23px;
  }
  .mypage-order-product__options {
    font-size: 13px;
  }
  .mypage-order-product__options > div {
    min-height: 36px;
    padding: 8px 7px;
  }
  .mypage-favorite__body {
    min-height: 800px;
    padding: 34px 30px 100px;
    border-top-width: 8px;
  }
  .mypage-favorite__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .mypage-favorite__name {
    min-height: 46px;
    font-size: 13px;
  }
  .mypage-favorite__price {
    font-size: 14px;
  }
  .mypage-form-section,
  .mypage-delivery__body,
  .mypage-card__body {
    padding: 34px 30px 100px;
    border-top-width: 8px;
  }
  .mypage-form,
  .mypage-card-form {
    max-width: 730px;
    margin-right: auto;
    margin-left: auto;
  }
  .mypage-form__card,
  .mypage-card-form {
    padding: 22px 30px 30px;
  }
  .mypage-form__card dl,
  .mypage-card-form dl {
    padding: 18px 8px;
  }
  .mypage-form__card dt,
  .mypage-card-form dt,
  .mypage-form__card .ec-label,
  .mypage-card-form .ec-label {
    font-size: 14px;
  }
  .mypage-form input[type="text"],
  .mypage-form input[type="email"],
  .mypage-form input[type="tel"],
  .mypage-form input[type="password"],
  .mypage-form select,
  .mypage-card-form input[type="text"],
  .mypage-card-form input[type="tel"],
  .mypage-card-form select {
    height: 38px;
    font-size: 13px;
  }
  .mypage-change__line > .ec-off1Grid__cell > .col {
    font-size: 14px;
  }
  .mypage-delivery__list,
  .mypage-card__list {
    gap: 18px;
  }
  .mypage-address-card,
  .mypage-credit-card {
    min-height: 156px;
    padding: 25px 28px;
    font-size: 14px;
  }
  .mypage-withdraw__body {
    padding: 34px 30px 80px;
    border-top-width: 8px;
  }
  .mypage-withdraw__warning {
    min-height: 410px;
    padding-top: 70px;
  }
  .mypage-withdraw__alert {
    width: 78px;
    height: 78px;
  }
  .mypage-withdraw__warning h2 {
    font-size: 24px;
  }
  .mypage-withdraw__warning p {
    font-size: 14px;
  }
  .mypage-credit-card__number {
    font-size: 17px;
  }
  .mypage-card-form__caution,
  .mypage-card-form__note,
  .mypage-card-form__expiry,
  .mypage-card-form__save {
    font-size: 13px;
  }
  .mypage-footer {
    min-height: 320px;
  }
  .mypage-footer__nav a {
    height: 46px;
    font-size: 13px;
  }
  .mypage-footer__brand {
    height: 136px;
  }
  .mypage-footer__name {
    font-size: 24px;
  }
  .mypage-footer__copyright {
    font-size: 8px;
  }
}

/* 既存フォームテーマの必須ラベル <p class="need">必須</p> と、デザイン用に追加した
   <span class="mypage-required">必須</span> が並んで「必須 必須」と二重表示になるため、
   マイページのフォーム内では既存側を隠す（デザインは必須バッジ1つ）。 */
.mypage .mypage-form .need,
.mypage .mypage-form p.need {
  display: none;
}

/* Order history detail design (SP artboard: 375px viewport). */
@media only screen and (max-width: 768px) {
  #page_mypage_history {
    --history-red: #B80008;
    --history-gold: #B18852;
    --history-beige: #F8F3EF;
    --history-heading: #F6F7F9;
    --history-gray: #AAAAAA;
    --history-line: #D5D5D5;
  }
  #page_mypage_history .ec-layoutRole__contents,
  #page_mypage_history main.ec-layoutRole__main,
  #page_mypage_history main.ec-layoutRole__main > .ec-layoutRole__main {
    background: var(--history-beige);
  }
  #page_mypage_history .ec-mypageRole .ec-pageHeader h1 {
    margin: 0;
    padding: 24px 14px 18px;
    border: 0;
    color: var(--history-red);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
  }
  #page_mypage_history .ec-orderRole {
    flex-direction: column;
    margin: 0;
    padding: 18px 12px 0;
    color: #333;
    font-size: 12px;
    line-height: 1.6;
  }
  #page_mypage_history .ec-orderRole__detail,
  #page_mypage_history .ec-orderRole__summary {
    width: 100%;
    padding: 0;
  }
  #page_mypage_history .ec-orderOrder,
  #page_mypage_history .ec-orderDelivery,
  #page_mypage_history .ec-orderEngraving,
  #page_mypage_history .ec-orderPayment,
  #page_mypage_history .ec-orderConfirm,
  #page_mypage_history .ec-orderMails,
  #page_mypage_history .ec-orderCoupon {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-left: 5px solid var(--history-red);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
      overflow: hidden;
  }

  /* Order date, number, status and points card. */
  #page_mypage_history .ec-orderOrder {
    padding: 18px 16px;
  }
  #page_mypage_history .ec-orderOrder .ec-definitions {
    display: flex;
    align-items: baseline;
    margin: 0;
    padding: 5px 0;
    border-bottom: 1px solid var(--history-line);
  }
  #page_mypage_history .ec-orderOrder .ec-definitions:last-child {
    border-bottom: 0;
  }
  #page_mypage_history .ec-orderOrder .ec-definitions dt {
    flex: 0 0 auto;
    color: #555;
    font-weight: 400;
  }
  #page_mypage_history .ec-orderOrder .ec-definitions dd {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 5px;
    color: #171717;
  }
  #page_mypage_history .ec-orderOrder .ec-definitions dd[style*="color"] {
    color: var(--history-red) !important;
  }
  #page_mypage_history .ec-orderOrder hr {
    margin: 8px 0;
    border-color: var(--history-line);
  }

  /* Existing section headings become the light-gray header bands. */
  #page_mypage_history .ec-rectHeading h2,
  #page_mypage_history .ec-orderCoupon .ec-rectHeading h2 {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 0 0 10px;
    padding: 8px 14px;
    background: var(--history-heading);
    color: #171717;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
  }

  /* The existing delivery title supplies the red pill text; the pseudo-element is decoration only. */
  #page_mypage_history .ec-orderDelivery__title {
    display: table;
    position: relative;
    max-width: calc(100% - 28px);
    margin: 8px 14px;
    padding: 4px 12px;
    border-radius: 11px;
    background: var(--history-red);
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
  }
  #page_mypage_history .ec-orderDelivery__title::after {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100vw;
    height: 1px;
    background: var(--history-red);
    content: "";
  }

  /* Product card placement; the Round 2 two-column option rows are defined below. */
  #page_mypage_history .ec-orderDelivery__item {
    margin: 0 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--history-line);
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    width: 100%;
    border-top: 0;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__img {
    display: block;
    flex: 0 0 96px;
    width: 96px;
    padding: 0 0 0 12px;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: #333;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__content > p {
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid var(--history-line);
    line-height: 1.55;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__content > p:first-child {
    padding-top: 0;
    border-bottom: 0;
    color: #171717;
    font-weight: 700;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__content > p:last-of-type {
    border-bottom: 0;
    color: var(--history-red);
    font-size: 16px;
    font-weight: 700;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__content a {
    color: inherit;
  }
  #page_mypage_history .ec-orderDelivery__address {
    margin: 8px 14px 0;
  }
  #page_mypage_history .ec-orderDelivery__address p {
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid var(--history-line);
    line-height: 1.55;
  }
  #page_mypage_history .ec-orderDelivery__address p:first-child {
    color: #171717;
    font-size: 14px;
    font-weight: 700;
  }
  #page_mypage_history .ec-orderDelivery .ec-definitions--soft {
    display: flex;
    margin: 0 14px;
    padding: 7px 0;
    border-bottom: 1px solid var(--history-line);
  }
  #page_mypage_history .ec-orderDelivery .ec-definitions--soft dt {
    flex: 0 0 36%;
    color: #666;
  }
  #page_mypage_history .ec-orderDelivery .ec-definitions--soft dd {
    flex: 1 1 auto;
    min-width: 0;
    color: #171717;
  }

  #page_mypage_history .ec-orderEngraving > p,
  #page_mypage_history .ec-orderEngraving__shipping,
  #page_mypage_history .ec-orderPayment > p,
  #page_mypage_history .ec-orderConfirm > p,
  #page_mypage_history .ec-orderMails > p,
  #page_mypage_history .ec-orderMail,
  #page_mypage_history .ec-orderCoupon > strong,
  #page_mypage_history .ec-orderCoupon > p {
    margin-right: 14px;
    margin-left: 14px;
  }
  #page_mypage_history .ec-orderPayment > p,
  #page_mypage_history .ec-orderConfirm > p,
  #page_mypage_history .ec-orderMails > p,
  #page_mypage_history .ec-orderCoupon > p {
    padding: 8px 0;
    color: #171717;
    line-height: 1.6;
  }
  #page_mypage_history .ec-orderMail {
    padding: 8px 0;
    border-bottom: 1px solid var(--history-line);
  }

  /* Preserve the existing totals/reorder content as a gold-edged card. */
  #page_mypage_history .ec-totalBox {
    margin: 0 0 16px;
    padding: 4px 12px 12px;
    border-left: 5px solid var(--history-gold);
    background: #fff;
  }
  #page_mypage_history .ec-totalBox__spec {
    min-height: 30px;
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid var(--history-line);
  }
  #page_mypage_history .ec-totalBox__total,
  #page_mypage_history .ec-totalBox__paymentTotal {
    border-top: 0;
    border-bottom: 1px solid var(--history-line);
  }
  #page_mypage_history .ec-totalBox__price,
  #page_mypage_history .ec-totalBox__paymentTotal {
    color: var(--history-red);
  }
  #page_mypage_history .ec-totalBox__taxLabel {
    font-size: 10px;
  }
  #page_mypage_history .ec-totalBox .ec-blockBtn--action {
    height: auto;
    min-height: 42px;
    padding: 12px 10px;
    border-color: var(--history-red);
    border-radius: 0;
    background: var(--history-red);
    color: #fff;
    line-height: 1.3;
  }

  /* Bottom back action. */
  #page_mypage_history .ec-role.ec-orderRole {
    padding-top: 0;
    padding-bottom: 40px;
  }
  #page_mypage_history .ec-role.ec-orderRole .ec-inlineBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px;
    border: 1px solid var(--history-gray);
    border-radius: 0;
    background: var(--history-gray);
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
  }
}

/* Round 2: history detail markup now exposes product rows and both pill headings. */
#page_mypage_history .ec-mypageRole .ec-pageHeader h1::before {
  margin-right: 8px;
  content: "\f1da";
  font-family: "Font Awesome 5 Free";
  font-size: 1.2em;
  font-weight: 900;
}

@media only screen and (max-width: 768px) {
  #page_mypage_history .ec-orderDelivery__productTitle,
  #page_mypage_history .ec-orderDelivery__title {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    height: 20px;
    margin: 14px 14px 8px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--history-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
  }
  #page_mypage_history .ec-orderDelivery__productTitle::after,
  #page_mypage_history .ec-orderDelivery__title::after {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 100%;
    width: 100vw;
    height: 1px;
    background: var(--history-red);
    content: "";
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 10px 12px;
    align-items: start;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__img {
    grid-column: 2;
    grid-row: 1;
    width: 90px;
    padding: 0;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__content {
    grid-column: 1;
    grid-row: 1;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__content > p {
    border-bottom: 0;
  }
  #page_mypage_history .ec-orderDelivery__item .mypage-history-product__price {
    margin-top: 8px;
    color: var(--history-red);
    font-size: 16px;
    font-weight: 700;
  }
  #page_mypage_history .mypage-history-product__options {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
  #page_mypage_history .mypage-history-product__options dl {
    display: grid;
    grid-template-columns: 37% minmax(0, 1fr);
    align-items: center;
    min-height: 27px;
    margin: 0;
    border-bottom: 1px solid var(--history-line);
  }
  #page_mypage_history .mypage-history-product__options dl:last-child {
    border-bottom: 0;
  }
  #page_mypage_history .mypage-history-product__options dt,
  #page_mypage_history .mypage-history-product__options dd {
    min-width: 0;
    margin: 0;
    padding: 6px 0;
    color: #666;
    font-weight: 400;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  #page_mypage_history .mypage-history-product__options dt {
    padding-left: 8px;
  }
  #page_mypage_history .mypage-history-product__options dd {
    color: #555;
  }
}

/* PC has no separate artboard; retain the native two-column order layout and apply the SP design language. */
@media only screen and (min-width: 769px) {
  #page_mypage_history {
    --history-red: #B80008;
    --history-gold: #B18852;
    --history-beige: #F8F3EF;
    --history-heading: #F6F7F9;
    --history-gray: #AAAAAA;
    --history-line: #D5D5D5;
  }
  #page_mypage_history .ec-layoutRole,
  #page_mypage_history .ec-layoutRole__contents,
  #page_mypage_history main.ec-layoutRole__main,
  #page_mypage_history main.ec-layoutRole__main > .ec-layoutRole__main {
    background: var(--history-beige);
  }
  #page_mypage_history .ec-mypageRole .ec-pageHeader {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
  }
  #page_mypage_history .ec-mypageRole .ec-pageHeader h1 {
    margin: 0;
    padding: 36px 0 24px;
    border: 0;
    color: var(--history-red);
    font-size: 26px;
    font-weight: 700;
  }
  #page_mypage_history .ec-orderRole {
    gap: 24px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 32px 24px 0;
    color: #333;
    font-size: 14px;
  }
  #page_mypage_history .ec-orderRole__detail {
    width: calc(68% - 12px);
    padding: 0;
  }
  #page_mypage_history .ec-orderRole__summary {
    width: calc(32% - 12px);
    padding: 0;
  }
  #page_mypage_history .ec-orderOrder,
  #page_mypage_history .ec-orderDelivery,
  #page_mypage_history .ec-orderEngraving,
  #page_mypage_history .ec-orderPayment,
  #page_mypage_history .ec-orderConfirm,
  #page_mypage_history .ec-orderMails,
  #page_mypage_history .ec-orderCoupon {
    margin: 0 0 20px;
    padding-bottom: 18px;
    border-left: 5px solid var(--history-red);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    overflow: hidden;
  }
  #page_mypage_history .ec-orderOrder {
    padding: 22px 24px;
  }
  #page_mypage_history .ec-orderOrder .ec-definitions {
    display: flex;
    align-items: baseline;
    min-height: 36px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--history-line);
  }
  #page_mypage_history .ec-orderOrder .ec-definitions:last-child {
    border-bottom: 0;
  }
  #page_mypage_history .ec-orderOrder .ec-definitions dt {
    flex: 0 0 180px;
    color: #555;
    font-weight: 400;
  }
  #page_mypage_history .ec-orderOrder .ec-definitions dd {
    flex: 1 1 auto;
    min-width: 0;
  }
  #page_mypage_history .ec-rectHeading h2,
  #page_mypage_history .ec-orderCoupon .ec-rectHeading h2 {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin: 0 0 14px;
    padding: 10px 20px;
    background: var(--history-heading);
    color: #171717;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
  }
  #page_mypage_history .ec-orderDelivery__productTitle,
  #page_mypage_history .ec-orderDelivery__title {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    height: 28px;
    margin: 16px 20px 10px;
    padding: 0 18px;
    border-radius: 14px;
    background: var(--history-red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 28px;
    white-space: nowrap;
  }
  #page_mypage_history .ec-orderDelivery__productTitle::after,
  #page_mypage_history .ec-orderDelivery__title::after {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 100%;
    width: 100vw;
    height: 1px;
    background: var(--history-red);
    content: "";
  }
  #page_mypage_history .ec-orderDelivery__item {
    margin: 0 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--history-line);
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 16px 24px;
    align-items: start;
    border-top: 0;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__img {
    grid-column: 2;
    grid-row: 1;
    width: 150px;
    padding: 0;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__content {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__content > p {
    margin: 0;
    padding: 7px 0;
    border: 0;
    line-height: 1.55;
  }
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__content > p:first-child {
    padding-top: 0;
    color: #171717;
    font-size: 16px;
    font-weight: 700;
  }
  #page_mypage_history .ec-orderDelivery__item .mypage-history-product__price {
    margin-top: 10px;
    color: var(--history-red);
    font-size: 22px;
    font-weight: 700;
  }
  #page_mypage_history .mypage-history-product__options {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
  #page_mypage_history .mypage-history-product__options dl {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: center;
    min-height: 38px;
    margin: 0;
    border-bottom: 1px solid var(--history-line);
  }
  #page_mypage_history .mypage-history-product__options dl:last-child {
    border-bottom: 0;
  }
  #page_mypage_history .mypage-history-product__options dt,
  #page_mypage_history .mypage-history-product__options dd {
    min-width: 0;
    margin: 0;
    padding: 8px 10px;
    color: #555;
    font-weight: 400;
    overflow-wrap: anywhere;
  }
  #page_mypage_history .ec-orderDelivery__address,
  #page_mypage_history .ec-orderDelivery .ec-definitions--soft,
  #page_mypage_history .ec-orderEngraving > p,
  #page_mypage_history .ec-orderEngraving__shipping,
  #page_mypage_history .ec-orderPayment > p,
  #page_mypage_history .ec-orderConfirm > p,
  #page_mypage_history .ec-orderMails > p,
  #page_mypage_history .ec-orderMail,
  #page_mypage_history .ec-orderCoupon > strong,
  #page_mypage_history .ec-orderCoupon > p {
    margin-right: 20px;
    margin-left: 20px;
  }
  /* SP側 (max-width:768px) と同じく、商品名リンクをブラウザ既定の青ではなく
     デザイン案の黒太字にそろえる（PC側に同等指定が無く青のままだった）。 */
  #page_mypage_history .ec-orderDelivery__item .ec-imageGrid__content a {
    color: inherit;
  }
  #page_mypage_history .ec-orderDelivery__address p,
  #page_mypage_history .ec-orderDelivery .ec-definitions--soft {
    min-height: 38px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--history-line);
  }
  #page_mypage_history .ec-orderDelivery .ec-definitions--soft {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
  }
  #page_mypage_history .ec-orderDelivery .ec-definitions--soft dt,
  #page_mypage_history .ec-orderDelivery .ec-definitions--soft dd {
    min-width: 0;
    margin: 0;
    color: #555;
    font-weight: 400;
  }
  #page_mypage_history .ec-totalBox {
    margin: 0;
    padding: 8px 18px 18px;
    border-left: 5px solid var(--history-gold);
    background: #fff;
  }
  #page_mypage_history .ec-totalBox__spec {
    min-height: 38px;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--history-line);
  }
  #page_mypage_history .ec-totalBox__price,
  #page_mypage_history .ec-totalBox__paymentTotal {
    color: var(--history-red);
  }
  #page_mypage_history .ec-totalBox .ec-blockBtn--action {
    min-height: 46px;
    border-color: var(--history-red);
    border-radius: 0;
    background: var(--history-red);
    color: #fff;
  }
  #page_mypage_history .ec-role.ec-orderRole {
    display: block;
    padding-top: 0;
    padding-bottom: 64px;
  }
  #page_mypage_history .ec-role.ec-orderRole .ec-orderRole__detail {
    width: 100%;
  }
  #page_mypage_history .ec-role.ec-orderRole .ec-inlineBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--history-gray);
    border-radius: 0;
    background: var(--history-gray);
    color: #fff;
    font-weight: 700;
  }
}
