@charset "UTF-8";



/*====================================================================================
1. FOUNDATION.
====================================================================================*/



/*====================================================================================
2. LAYOUT.
====================================================================================*/

.l-cart {
  inline-size: 100%;
  &:not(:first-child) {
    margin-block-start: var(--layout-section-spacing-y-compact);
  }
}

.step-input__footer,
.step-confirm__footer {
  margin-block-start: var(--layout-section-spacing-y-compact);

  & .c-btn--order {
    inline-size: 100%;
  }
}

.step-completion .l-cart {
  margin-block: 0 var(--layout-section-spacing-y-compact);
}

@media (width < 768px) {
  .c-cart-table__actions {
    display: flex;
    flex-direction: column-reverse;
  }
}
@media (width >= 768px) {
  .step-input__footer .c-cart-table__actions {
    inline-size: calc(25% - .5em);
  }

  .step-confirm__footer .c-cart-table__actions {
    inline-size: calc(35% - .5em);
  }

  .step-completion .l-cart {
    min-height: 33dvh;

    & .c-btn--order {
      max-inline-size: 30%;
    }
  }
}

/*====================================================================================
3. COMPONENT.
====================================================================================*/

/* BUTTON.
------------------------------------------------------------------------------------*/

.c-btn--remove {
  display: flex;
  align-items: center;
  gap: .333em;
  border: 0 none;
  line-height: 1;

  &::after {
    content: "削除";
    flex-shrink: 0;
  }

  & .c-icon {
    flex-shrink: 0;
    inline-size: 1.666em;
    block-size:  1.666em;
    aspect-ratio: 1 / 1;
    padding: .333em;
    stroke-width: 3px;
    border-radius: var(--radius-full);
    background-color: var(--text-primary);
    color: var(--text-on-dark);
  }
}

/* TABLE.
------------------------------------------------------------------------------------*/

.c-table--cart {
  inline-size: 100%;
  margin-block-start: 1em;

  & td,
  & th {
    font-weight: var(--font-weight-normal);
    text-align: left;
    vertical-align: top;
  }
  & td {
    padding-block-end: 1em;
    border-block-end: 1px solid var(--border-default);
    color: var(--text-primary);
  }
  & th {
    color: var(--text-secondary);
  }
}

.c-cart-table__num {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.c-cart-table__cell--action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-start: 0.5em;
  gap: .5em;
}

.c-cart-table__actions {
  display: flex;
  gap: 1em;

  & .c-form__inner {
    inline-size: 100%;
  }
}

/* --- TOTAL PRICE. --- */

.c-total {
  margin-block: calc(var(--layout-section-spacing-y-compact) / 2);
}

.c-cart-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-block-end: 1px solid var(--status-error-text);
  color: var(--status-error-solid);
  font-weight: var(--font-weight-medium);

  & b {
    font-size: 1.25em;
    font-weight: var(--font-weight-medium);
  }
}

.c-total__list {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1em;
  inline-size: fit-content;
  margin-block: 1em;
  margin-inline-start: auto;
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
}

.c-total__desc--fee {
  text-align: right;
}

.c-cart__footer {
  margin-block-end: var(--layout-section-spacing-y-compact);
}

@media (width < 768px) {
  .c-cart-table {
    inline-size: 100%;
    font-size: var(--font-size-sm);

    & thead {
      display: none;
    }

    & tr {
      display: grid;
      grid-template-columns: 30% 70%;
      grid-template-rows: auto auto auto auto auto;
      overflow: hidden;
      margin-block-start: 1em;
      padding-block-start: 1em;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-strong);
      background-color: var(--bg-base);
    }

    & td,
    & th {
      display: block;
      border-block-end: 0 none;
    }

    & tbody td {
      padding-inline: 1em;
    }

  }

  .c-cart-table__cell--name::before,
  .c-cart-table__cell--quantity::before,
  .c-cart-table__cell--price::before,
  .c-cart-table__cell--actions::before {
    display: block;
    font-size: 8px;
    line-height: var(--line-height-tight);
    color: var(--brand-default);
  }

  .c-cart-table__cell--name {
    grid-column: 1/-1;
    line-height: var(--line-height-snug);

    &::before {
      content: "商品番号 / 商品名";
    }
  }

  .c-cart-table__num {
    line-height: 2;
  }

  .c-cart-table__cell--quantity {
    grid-column: 1 / 2;
    padding-block: 1em;
    &::before {
      content: "数量";
    }
  }
  .c-cart-table__cell--price {
    grid-column: 2 / 3;
    padding-block: 1em;
    &::before {
      content: "価格";
    }
  }
  .c-cart-table__cell--type,
  .c-cart-table__cell--weight {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    margin-block-start: .5em;
    color: var(--text-secondary);
    font-size: var(--font-size-2xs);
    line-height: var(--line-height-tight);
    &::before {
      vertical-align: baseline;
    }
  }
  .c-cart-table__cell--type::before {
    content: "重量区分：";
  }
  .c-cart-table__cell--weight::before {
    content: "重量：";
  }
  .c-cart-table__cell--actions {
    grid-column: span 4;
    padding-block: .5em .75em !important;
    border-block-start: 1px dashed var(--border-strong);
    background-color: var(--bg-muted);

    &::before {
      content: "数量変更/削除";
    }
  }

  .c-cart-table__cell--action {
    & .c-select {
      inline-size: 10em;
      max-inline-size: 100%;
      margin-inline-start: -.5em;
    }
  }
}

@media (width >= 768px) {
  .c-cart-table {
    margin-block-start: 1.5em;

    & td,
    & th {
      padding-block: 1em;
      border-block-end: 1px solid var(--border-strong);

      & + & {
        padding-inline-start: 2em;
      }
    }

    & th {
      text-align: left;

      thead & {
        padding-block-end: 0.5em;
        border-block-end: 1px solid var(--border-strong);
        font-size:   var(--typography-label-font-size);
        font-weight: var(--typography-label-font-weight);
        line-height: var(--typography-label-line-height);
        color: var(--typography-label-color);
        white-space: nowrap;
      }
    }
  }

  .step-input th,
  .step-confirm th {
    inline-size: 18.75em;
  }

  .c-cart-table__cell--name {
    inline-size: 57.5%;
    text-align: left;

    .step-cartList & {
      inline-size: 47.5%;
    }
  }
  .c-cart-table__cell--type {
    inline-size: 6em;
  }
  .c-cart-table__cell--weight {
    inline-size: 6em;
    text-align: right;
  }
  .c-cart-table__cell--quantity {
    inline-size: 5em;
    text-align: center;
  }
  .c-cart-table__cell--price {
    inline-size: 6em;
    text-align: right;
    white-space: nowrap;
  }
  .c-cart-table__cell--actions {
    inline-size: 12em;
  }

  .c-cart-table__cell--action {
    & .c-select {
      inline-size: 5em;
      max-inline-size: 100%;
      margin-block: -.75em;
      margin-inline-start: -.5em;
    }
  }
  /* --- TOTAL PRICE. --- */

  .c-cart-price {
    max-inline-size: 50%;
    margin-inline-start: auto;
    padding-block-end: .5em;
  }

  .c-cart__footer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;

    & .c-btn__wrap {
      margin-block-start: 0;
    }
  }

  .c-cart-table__actions {
    inline-size: 50%;
  }
}

/* FORM.
------------------------------------------------------------------------------------*/

.c-payment {
  display: flex;
  flex-direction: column;
  gap: .5em;

  & label {
    display: flex;
    align-items: center;
    inline-size: fit-content;
    gap: .5em;
    padding-inline: .125em;
  }
}

.c-input__group--password {
  display: flex;
  flex-direction: column;
  gap: .75em;

  & .c-notes {
    font-size: 0.875em;
    &::before {
      content: attr(data-text);
    }
  }
}


/*====================================================================================
4. PROJECT.
====================================================================================*/


/* クレジット決済・第三者情報提供・同意文 */
#third-party-provision {
	overflow: auto;
	box-sizing: border-box;
	width: 100%;
	height: 10em;
	margin-block: 1em;
	padding: 1.5em;
	border: 1px solid #ddd;
	& * {
		box-sizing: border-box;
		line-height: 1.8;
	}
	& > * + * {
		margin-block-start: 1em;
	}
	& .__ind {
		display: inline-block;
		padding-inline-start: 1em;
		text-indent: -1em;
	}
}

@media (width < 768px) {
  #third-party-provision {
    font-size: var(--font-size-sm);
  }
}
@media (width >= 768px) {
  #third-party-provision {
    height: 15em;
  }
}

/* CONTACT.
------------------------------------------------------------------------------------*/

.page-contact .step-input__footer .c-cart-table__actions {
  inline-size: min(100%, 17rem);
  margin-inline: auto;
}

.page-contact .step-confirm__footer .c-cart-table__actions {
  inline-size: min(100%, 32rem);
  margin-inline: auto;
}

.page-contact .c-contact-submit {
  position: relative;
  display: flex;
  inline-size: 100%;
  min-block-size: 3em;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--c-btn-border--submit);
  border-radius: var(--radius-sm);
  padding: 0;
  color: var(--text-on-dark);
}

.page-contact .c-contact-submit .c-btn__text {
  flex-grow: 0;
  padding: 0;
}

.page-contact .c-contact-submit .c-btn__icon {
  position: absolute;
  inset-inline-end: 1rem;
  display: flex;
  inline-size: 1.5em;
  block-size: 1.5em;
  justify-content: center;
  align-items: center;
  border: 0;
}

.page-contact .c-contact-submit .c-icon {
  inline-size: 100%;
  block-size: 100%;
}

@media (width >= 768px) {
  .page-contact .step-input__footer .c-cart__footer {
    justify-content: center;
  }

  .page-contact .step-confirm__footer .c-cart__footer {
    justify-content: center;
  }
}
.c-form__error {
  margin-block-start: var(--space-2);
  color: var(--color-danger, #c51f4a);
  font-size: var(--font-size-sm);
}

.page-contact .c-contact-return {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  inline-size: 100%;
  min-block-size: 3em;
  text-decoration: none;
}

.page-contact .c-contact-return .c-btn__icon {
  position: absolute;
  inset-inline-start: 1rem;
  display: flex;
  inline-size: 1.5em;
  block-size: 1.5em;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--text-on-dark);
}

.page-contact .c-contact-return .c-icon {
  inline-size: 100%;
  block-size: 100%;
}
.page-contact .c-contact-completion__actions {
  inline-size: min(100%, 17rem);
  margin-block-start: var(--layout-section-spacing-y-compact);
  margin-inline: auto;
}
.page-contact .step-completion .c-contact-completion__actions .c-btn--order {
  max-inline-size: none;
}
