@charset "UTF-8";

:root {
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --z-header: 1000;
    --z-footer: 2000;
  }

  /* CARDS SYSTEM */
  .brand-cards { position: relative; width: 100%; }
  .brand-cards__card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
  }
  .brand-cards__card-content {
    position: sticky;
    top: 72px;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* 背景色はHTMLの--bg-colorから取得 */
    background-color: #EDECEB;
  }

  /* MEDIA */
  .brand-cards__media {
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    transition: width 1.2s var(--ease-smooth), opacity 0.8s ease;
  }
  .brand-cards__media--shrunk { width: 50%; }
  .brand-cards__media-inner {
    width: 100%; height: 100%;
    position: relative; overflow: hidden;
  }
  .brand-cards__media-inner::after {
    content: '';
    position: absolute; inset: 0;
    z-index: 1;
  }
  .brand-cards__image {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
  }
  .brand-cards__card {
    &.brand-lekarka {
        .brand-cards__image {
            background-image: url(../images/bussines/bg-lekarka.webp);
        }
    }
    &.brand-drex {
        .brand-cards__image {
            background-image: url(../images/bussines/bg-drex.webp);
        }
    }
  }

  /* TEXT AREA */
  .brand-cards__text-area {
    position: absolute;
    top: 0; left: 0;
    width: 50%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    will-change: transform;
    pointer-events: none;
    transform: translateY(100vh);
  }
  .brand-cards__text-area a,
  .brand-cards__text-area button,
  .brand-cards__text-area [role="button"],
  .text-area a,
  .text-area button,
  .text-area [role="button"] {
    pointer-events: auto;
  }
  .brand-cards__text-block {
    margin: 0 auto;
    padding: 50px 0;
    max-width: 470px;
    @media (768px <= width <= 1000px) {
      padding: 50px 10px;
    }
  }
  .brand-cards__inner {
    max-width: 416px;
  }
  .brand-cards__tag {
    font-size: 10px; letter-spacing: 0.38em;
    text-transform: uppercase; display: block; margin-bottom: 20px;
  }
  .brand-cards__text-title {
    font-family: "League Spartan";
    font-size: 3.2rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0.64px;
    margin-bottom: 30px;
    @media screen and (max-width: 767px) {
        font-size: 2.8rem;
        font-style: normal;
        font-weight: 500;
        line-height: 100%;
        letter-spacing: 0.56px;
        margin-bottom: 20px;
    }
  }
  .brand-cards__text-lead-main {
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 210%;
    letter-spacing: 0.3px;
    margin-bottom: 30px;
  }
  .brand-cards__text-img {
    max-width: 416px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
  }
  .brand-cards__text-caption {
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0.32px;
    margin-bottom: 15px;
    @media screen and (max-width: 767px) {
        font-size: 1.7rem;
        letter-spacing: 0.34px;
    }
  }
  .brand-cards__text-lead {
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.3px;
    margin-bottom: 80px;
    @media screen and (max-width: 767px) {
        margin-bottom: 60px;
    }
  }
  .brand-cards__text-title-link {
    font-family: "League Spartan";
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 30px;
    @media screen and (max-width: 767px) {
        font-size: 2rem;
        letter-spacing: 0.4px;
    }
  }
  .brand-cards__button-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 80px;
    @media screen and (max-width: 767px) {
        gap: 12px;
        margin-bottom: 60px;
    }
    li {
        width: calc(50% - 8px);
        @media screen and (max-width: 767px) {
            width: calc(50% - 6px);
        }
        a {
            text-align: center;
            color: #fff;
            width: 100%;
            display: inline-block;
            font-size: 1.4rem;
            font-style: normal;
            font-weight: 400;
            line-height: 100%;
            letter-spacing: 1.4px;
            padding: 18px 0;
            border-radius: 28px;
            background:#110101;
        }
    }
  }
  .brand-cards__text-title-banner {
    text-align: center;
    font-size: 2.2rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0.44px;
    margin-bottom: 30px;
    @media screen and (max-width: 767px) {
        font-size: 18px;
        letter-spacing: 0.36px;
    }
  }
  .brand-cards__text-banner {
    max-width: 451px;
  }
  .brand-cards__title-sub {
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.3px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    margin-bottom: 15px;
    @media screen and (max-width: 767px) {
        font-size: 1.6rem;
        letter-spacing: 0.32px;
        margin-bottom: 10px;
    }
  }
  .brand-cards__text-sub {
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 0.28px;
    margin-bottom: 30px;
    max-width: 360px;
    @media screen and (max-width: 767px) {
        margin-bottom: 30px;
    }
  }

  .brand-lekarka .brand-cards__text-logo {
    width: 130px;
    margin: 0 auto 40px;
    @media screen and (max-width: 767px) {
        width: 118px;
        margin-bottom: 50px;
    }
  }
  .brand-lekarka .brand-cards__text-lead-sub {
    text-align: center;
    font-family: "Shippori Mincho", serif;
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 500;
    line-height: 180%;
    letter-spacing: 0.32px;
    margin-bottom: 121px;
    span {
      text-align: center;
      font-family: "Marcellus", serif;
      font-size: 2.8rem;
      font-style: normal;
      font-weight: 400;
      line-height: 180%;
      letter-spacing: 0.56px;
      @media screen and (max-width: 767px) {
        font-size: 2.5rem;
        letter-spacing: 0.5px;
      }
    }
  }
  .brand-lekarka .btn-style {
    margin-bottom: 162px;
    @media screen and (max-width: 767px) {
        margin-bottom: 100px;
    }
  }
  .brand-drex .brand-cards__text-logo {
    width: 125px;
    margin: 0 auto 48px;
    @media screen and (max-width: 767px) {
        width: 106px;
        margin-bottom: 50px;
    }
  }
  .brand-drex .brand-cards__text-lead-sub {
    text-align: center;
    font-family: "Noto Serif JP";
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 500;
    line-height: 180%;
    letter-spacing: 0.98px;
    margin-bottom: 122px;
    @media screen and (max-width: 767px) {
      font-size: 1.5rem;
      font-style: normal;
      letter-spacing: 1.05px;
    }
  }
  .brand-drex .btn-style {
    margin-bottom: 100px;
  }


  /* MOBILE */
  @media (max-width: 768px) {
    .brand-cards__card-content { top: 70px; }
    .brand-cards__text-area { width: 100%; padding: 0 20px; }
    .brand-cards__media--shrunk { width: 100% !important; opacity: 0; }
  }