body {
  --section-color-text: #333;
  -webkit-font-smoothing: antialiased;
}

#MainContent {
  overflow: hidden;
}

.cm-section-title {
  font-weight: 300;
  font-size: 3.6rem;
  margin: 0;
  color: var(--section-color-text);
  @media (width >= 750px) {
    font-size: 4.8rem;
  }
}
.cm-section-subtitle {
  font-weight: 400;
  margin-block: 0 24px;
  color: var(--section-color-text);
  @media (width >= 750px) {
    margin-block: 0 32px;
  }
}

.cm-width--whole {
  width: 100%;
}
.cm-width--half {
  width: calc((100% - var(--cm-card-gap)) / 2);
}
.cm-width--third {
  width: calc((100% - var(--cm-card-gap) * 2) / 3);
}
.cm-width--quarter {
  width: calc((100% - var(--cm-card-gap) * 3) / 4);
}
.cm-width--fifth {
  width: calc((100% - var(--cm-card-gap) * 4) / 5);
}

@media (min-width: 768px) {
  .cm-width--whole_pc {
    width: 100%;
  }
  .cm-width--half_pc {
    width: calc(50% - var(--cm-card-gap));
  }
  .cm-width--third_pc {
    width: calc((100% - var(--cm-card-gap) * 2) / 3);
  }
  .cm-width--quarter_pc {
    width: calc((100% - var(--cm-card-gap) * 3) / 4);
  }
  .cm-width--fifth_pc {
    width: calc((100% - var(--cm-card-gap) * 4) / 5);
  }
}

@media (max-width: 750px) {
  .page-width {
    padding: 0 2.4rem;
  }
}

.cm-index-section {
  padding-block: 4.8rem;
}

.cm-showmore-button {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 16px 0 0 auto;
  gap: 8px;
  color: var(--section-color-text);
  border-bottom: 1px solid var(--section-color-text);
  &::after {
    content: '';
    width: 8px;
    height: 16px;
    background: url('//etincellebeaute.jp/cdn/shop/t/24/assets/arrow-right.svg?v=25530449945529563031773041386') no-repeat center center;
    background-size: contain;
  }
  @media (width >= 750px) {
    grid-column: 2 / 3;
    margin: 2.4rem 0 0 auto;
  }
  &:hover {
    opacity: .7;
  }
}

.template-index {
  &::before {
    content: "";
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 0;
    background: url(//etincellebeaute.jp/cdn/shop/t/24/assets/etincelleLogoMark.svg?v=99482940573018573661773041386) no-repeat center center / 100%;
    background-color: #F7F7F7;
  }
  .shopify-section:not(.section-header) {
    position: relative;
    z-index: 1;
    &:has(.top-rich-text) {
      z-index: 0;
    }
  }
}
.top-rich-text {
  padding-block: 4.8rem;
  @media (width >= 750px) {
    padding-block: 12rem;
  }
  .rich-text {
    background: transparent!important;
  }
  .rich-text__heading {
    display: block;
    font-family: 'Noto Serif JP', serif;
    max-width: calc(1.015em * 7);
    font-size: 3rem;
    font-weight: 500;
    margin-block: 0 2.4rem;
    text-align: left;
    @media (width >= 750px) {
      max-width: 100%;
      text-align: center;
      font-size: 4rem;
      margin-block: 0 3rem;
      br {
        display: none;
      }
    }
  }
  .rich-text__text {
    margin-block: 0 2.4rem;
    text-align: left;
    @media (width >= 750px) {
      font-size: 2rem;
      text-align: center;
      margin-block: 0 4.8rem;
      line-height: 2.5;
    }
  }
  .rich-text__buttons {
    margin-block: 0;
  }
}

#MainContent {
  .card__information {
    background-color: #fff;
    padding: 8px 12px;
    .card__heading {
      min-height: 1.5em;
      max-height: 1.5em;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .cm-product-card__description {
      min-height: 6em;
      max-height: 6em;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
      font-size: 1.2rem;
      margin-block: .6rem 1.6rem;
    }
    .cm-product-card__viewmore {
      width: 100%;
      height: fit-content;
      color: #fff;
      font-size: 1.2rem;
      font-weight: 700;
      padding: 11px 0;
      margin-top: 0;
    }
  }
}

.cm-product-tags {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  gap: 4px;
  .cm-product-tag {
    font-size: 1.2rem;
    padding: 5.5px 13px;
    /* background-color: #fff; */
    border-radius: 0 0 3px 0;
    color: #333;
    font-weight: 700;
  }
}

/* splide */
#MainContent {
  .splide__arrow[disabled] {
    opacity: 0;
  }
  .splide__arrow--prev {
    left: 0px;
    transform: translate(-50% , -50%);
    width: 48px;
    height: 48px;
    opacity: 1;
    background: url(//etincellebeaute.jp/cdn/shop/t/24/assets/icon-arrow-left.svg?v=36279198349259150521773041386) no-repeat center center / contain;
    svg {
      display: none;
    }
  }
  .splide__arrow--next {
    right: 0px;
    transform: translate(50% , -50%);
    width: 48px;
    height: 48px;
    opacity: 1;
    background: url(//etincellebeaute.jp/cdn/shop/t/24/assets/icon-arrow-right.svg?v=109971443787232185261773041386) no-repeat center center / contain;
    svg {
      display: none;
    }
  } 
}
/* splide */

#MainContent {
  .collection-hero__image-container {
    height: unset;
    aspect-ratio: 5/2;
  }
}
#cart-notification {
  padding: 0;
  .cart-notification__header {
    padding: 1.95rem 2.4rem;
    font-weight: 700; 
    background-color: #CAD3E0;
    .cart-notification__heading {
      font-size: 1.4rem;
      font-weight: 700;
    }
    .cart-notification__close {
      position: absolute;
      top: 0;
      right: 0;
      margin: 0;
      width: 60px;
      height: 60px;
    }
  }
  .cart-notification-product {
    padding: 3.2rem 2.4rem;
    .cart-notification-product__image {
      margin-right: 9px;
      margin-top: 0;
    }
  }
  .cart-notification__links {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 0 2.4rem 3.2rem;
    .button {
      display: flex;
      width: 100%;
      height: 56px;
      font-size: 1.8rem;
      font-weight: 700;
    }
  }
}

#MainContent {
  .product__media-list {
    margin-bottom: 1.6rem;
  }
}

cart-items {
  .title {
    font-size: 2.4rem;
    font-weight: 400;
    @media (width >= 750px) {
      font-size: 3.6rem;
    }
  }
}

.cart-item__name-subtitle {
  font-size: 1.4rem;
}
.cart-item__price-wrapper {
  .price {
    font-size: 1.6rem;
  }
}

.cart__blocks .cm-showmore-button {
  @media screen and (max-width: 749px) {
    margin: 16px 0 0 auto;
  }
  margin: 16px auto 0;
}

.customer {
  .select {
    --color-foreground: 219, 216, 214;
    --inputs-border-opacity: 1;
    --inputs-radius: 12px;
    --inputs-radius-outset: 12px;
  }
  .field {
    --color-foreground: 219, 216, 214;
    --inputs-border-opacity: 1;
    --inputs-radius: 12px;
    --inputs-radius-outset: 12px;
    margin: 0 0 12px;
    input {
      height: 56px;
    }
  }
}

.customer__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  .customer__title {
    text-align: center;
    margin: 0;
  }
  .customer__subtitle {
    text-align: center;
  }
}
.customer .customer__logout {
  display: block;
  width: fit-content;
  margin: 48px auto 0;
}

.customer__details {
  @media (width >= 990px) {
    width: 327px;
  }
  .customer__details-title {
    font-weight: 700;
    margin-bottom: 1.2rem;
  }
  .customer__details-content {
    background-color: #F7F7F7;
    padding: 3.2rem 2.4rem;
    font-size: 1.4rem;
    .customer__details-content-name {
      font-weight: 700;
      margin-bottom: 1.2rem;
    }
    .customer__details-content-address {
      margin-bottom: 1.2rem;
      p {
        margin: 0;
      }
    }
    .customer__details-content-item-link {
      text-decoration: none;
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

.customer.addresses {
  h1 {
    text-align: center;
  }
}

.shopify-policy__container {
  margin-bottom: 4.8rem;
}
.shopify-policy__title {
  h1 {
    font-size: 24px;
    @media (width >= 750px) {
      font-size: 32px;
    }
  }
}

/* blog */
.template-blog {
  #MainContent {
    .main-blog__header {
      padding: 2.4rem 0;
      @media (width >= 750px) {
        padding: 2.4rem 0 4.8rem;
      }
      h1 {
        text-align: center;
        font-size: 3.6rem;
        margin: 0;
        font-weight: 300;
        @media (width >= 750px) {
          font-size: 4.8rem;
        }
      }
      p {
        text-align: center;
        font-size: 1.6rem;
        margin: 0;
      }
    }
    .blog-articles  {
      grid-template-columns: 1fr 1fr;
      @media (width >= 750px) {
        grid-template-columns: repeat(4, 1fr);
      }
      @media (width < 750px) {
        .article-card__image--small .ratio::before {
          padding-bottom: 30vw;
        }
      }
      .card__heading {
        min-height: 3em;
        max-height: 3em;
        -webkit-line-clamp: 2;
      }
    }
  }
}
/* blog */

/* page */
.template-page:not(.suffix-brand_story):not(.suffix-subscription) {
  #MainContent {
    .main-page__header {
      padding: 2.4rem 0;
      @media (width >= 750px) {
        padding: 2.4rem 0 4.8rem;
      }
    }
    .main-page-title {
      text-align: center;
      font-size: 3.6rem;
      margin: 0;
      font-weight: 300;
      @media (width >= 750px) {
        font-size: 4.8rem;
      }
    }
    p {
      text-align: center;
      font-size: 1.6rem;
      margin: 0;
    }
    .contact__button {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: center;
      .button {
        height: fit-content;
        padding: 1.2rem 2.4rem;
      }
    }
  }
}
/* page */

/* unsubscribe */
.shopify-email-marketing-confirmation__container {
  margin-bottom: 7.2rem;
  h1 {
    text-align: center;
    font-size: 3.6rem;
    font-weight: 300;
    @media (width >= 750px) {
      font-size: 4.8rem;
    }
  }
}
/* unsubscribe */

/* gosub page */
.sengine_email_confilm {
  padding-block: 2.4rem 7.2rem;
  input[type="submit"] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
    border: 0;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font: inherit;
    font-size: 1.4rem;
    text-decoration: none;
    color: rgb(var(--color-button-text));
    transition: box-shadow var(--duration-short) ease;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    background-color: rgba(var(--color-button), var(--alpha-button-background));
  }
}
/* gosub page */

/* brand story */
.suffix-brand_story {
  .shopify-section:not(.cm-pickup-products):not(.shopify-section-group-footer-group) {
    h2 {
      font-family: "Noto Serif JP", serif;
      font-weight: 500;
      font-size: 30px;
      margin: 0 0 12px;
      line-height: 1.5;
      text-align: center;
      letter-spacing: 0;
    }
    p {
      line-height: 2;
      margin: 0 0 16px;
      letter-spacing: 0;
      &:last-of-type {
        margin: 0;
      }
      @media (width >= 750px) {
        font-size: 1.6rem;
        text-align: center;
      }
    }
    .subtitle {
      font-family: "Noto Serif JP", serif;
      font-size: 16px;
      line-height: 1.5;
      color: #333;
      text-align: center;
      margin: 0 0 32px;
      opacity: 1;
      font-weight: 500;
      letter-spacing: 0;
    }
    .tech {
      .tech-grid {
        display: flex;
        justify-content: center;
        gap: 24px;
        margin-block-start: 24px;
        @media (width >= 750px) {
          margin-block-start: 32px;
          gap: 48px;
        }
        .tech-grid-item {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 4px;
          width: calc((100% - 48px) / 3);
          @media (width >= 750px) {
            width: fit-content;
          }
          span {
            font-size: 1.4rem;
            line-height: 2;
            font-weight: 400;
          }
        }
      }
    }
    .free {
      .free-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
        background: #E1DDD7;
        list-style: none;
        @media (width >= 750px) {
          gap: 12px;
          padding: 32px;
          max-width: 538px;
          margin: 0 auto 12px;
        }
        li {
          display: flex;
          align-items: center;
          font-size: 1.4rem;
          line-height: 2;
          &::before {
            content: "・";
            display: block;
          }
        }
      }
      .free-tested {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 1.6rem;
        line-height: 1.5;
        width: fit-content;
        margin: 0 auto 4px;
        &::before, &::after {
          content: "";
          display: block;
          width: 12px;
          height: 1px;
          background: #AEA9A5;
        }
      }
      .free-caution {
        display: flex;
        justify-content: center;
        font-size: 1.2rem;
        &::before {
          content: "※";
        }
      }
    }
    .doctor {
      h2 {
        margin: 0 0 24px;
      }
      .doctor-wrapper {
        display: flex;
        flex-direction: column;
        gap: 35px;
        @media (width >= 750px) {
          justify-content: center;
          flex-direction: row;
        }
        .doctor-info {
          @media (width >= 750px) {
            max-width: 408px;
          }
          img {
            width: 100%;
            max-width: 100%;
            height: auto;
          }
          h3 {
            margin: 12px 0 4px;
            font-size: 1.8rem;
            line-height: 1.5;
            font-weight: 700;
            letter-spacing: 0;
            text-align: center;
            font-family: "Noto Serif JP", serif;
          }
          p {
            margin: 0;
            text-align: center;
          }
        }
        .doctor-text {
          position: relative;
          width: 100%;
          padding: 24px;
          border-radius:12px;
          background: #FFFCE9;
          height: fit-content;
          &::before {
            content: "";
            position: absolute;
            top: -24px;
            left: 24px;
            display: block;
            width: 36px;
            height: 36px;
            background: url(//etincellebeaute.jp/cdn/shop/t/24/assets/brand_story_triangle.svg?v=51165842195118712471773041386) no-repeat center center / contain;
          }
          @media (width >= 750px) {
            max-width: 384px;
            &::before {
              top: 24px;
              left: -24px;
              transform: rotate(270deg);
            }
          }
          p {
            text-align: left;
            line-height: 1.5;
          }
        }
      }
    }
  }
}
/* brand story */

/* subscription */
.suffix-subscription {
  .cm-hero {
    height: 480px;
    .cm-hero--content {
      background: transparent;
      h1 {
        font-family: Urbanist, sans-serif;
        font-weight: 300;
        line-height: 1.5;
        margin: 0;
        font-size: 3.2rem;
        @media (width >= 750px) {
          font-size: 4.8rem;
        }
      }
      p {
        font-size: 1.6rem;
        margin: 0 0 24px;
        letter-spacing: 0;
        @media (width >= 750px) {
          margin: 0 0 32px;
        }
      }
      a {
        display: block;
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        padding: 19px 25px;
        color: #fff;
        background: #222222;
        @media (width >= 750px) {
          padding: 19px 55.5px;
          font-size: 1.8rem;
        }
        &:hover {
          opacity: .7;
        }
      }
    }
  }
  .shopify-section:not(.cm-story-banner) {
    .cm-index-section {
      @media (width >= 750px) {
        padding-block: 7.2rem;
      }
      h2 {
        font-size: 2.4rem;
        margin: 0;
        letter-spacing: 0;
        text-align: center;
        @media (width >= 750px) {
          font-size: 3.2rem;
        }
      }
      p {
        font-size: 1.4rem;
        letter-spacing: 0;
        @media (width >= 750px) {
          font-size: 1.6rem;
        }
      }
    }
  }
  .cm-accordion {
    .cm-section-subtitle {
      text-align: center;
      margin: 12px 0 24px;
    }
    .cm-accordion-item {
      max-width: 680px;
      margin-inline: auto;
      div, button {
        font-size: 1.4rem;
        @media (width >= 750px) {
          font-size: 1.6rem;
        }
      }
    }
  }
  .trial {
    display: flex;
    flex-direction: column;
    gap: 24px;
    @media (width >= 750px) {
      flex-direction: row;
      gap: 32px;
    }
    .trial-image {
      width: 100%;
      @media (width >= 750px) {
        width: calc(50% - 16px);
      }
      img {
        max-width: 100%;
        height: auto;
      }
    }
    .trial-text {
      width: 100%;
      @media (width >= 750px) {
        width: calc(50% - 16px);
      }
      h2 {
        text-align: center;
        font-size: 2.4rem;
        margin: 0 0 12px;
        @media (width >= 750px) {
          font-size: 3.2rem;
          margin: 0 0 24px;
        }
      }
      p {
        font-size: 1.4rem;
        margin: 0;
        @media (width >= 750px) {
          font-size: 1.6rem;
        }
      }
      a {
        display: block; 
        width: fit-content;
        margin: 24px auto 0;
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        padding: 19px 37.5px;
        color: #fff;
        background: #222222;
        @media (width >= 750px) {
          font-size: 1.8rem;
        }
        &:hover {
          opacity: .7;
        }
      }
    }
  }
  .cm-pickup-products {
    .cm-section-title {
      font-weight: 400;
    }
    .cm-pickup-products-container {
      margin: 32px 0 0;
      grid-template-columns: 1fr;
      gap: 0;
      @media (width >= 750px) {
        grid-template-columns: repeat(3, 1fr);
        gap: 0 32px;
        margin: 48px 0 0;
      }
      .cm-pickup-product-card {
        grid-column: unset;
        padding: 48px 0;
        @media (width >= 750px) {
          padding: 0;
        }
      }
    }
    .cm-showmore-button::after {
      filter: none;
    }
  }
}
/* subscription */