@import '../base.css';
@import '../components/common.css';
@import '../components/header.css';
@import '../components/footer.css';
@import '../components/carousel.css';

/**
  * INFO: 旧スタイル打ち消し用
  * TODO: すべてリニューアルデザインになったら削除
*/
#hero {
  h1 {
    width: inherit;
    margin-left: 0;
  }
}
.footer {
  background: transparent;
  box-shadow: none;
}
nav {
  width: 100%;
}
#features {
  h2 {
    text-align: left;
  }
}

/*
  Tag
*/
body {
  overflow: hidden;
}
h1 {
  font-weight: var(--font-bold);
  font-size: var(--headline-font-size);
}
h2 {
  font-weight: var(--font-md);
  font-size: var(--title-font-size-lg);

  &:has(.caption) {
    display: flex;
    gap: 1.8rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/*
  Class
*/
.caption {
  letter-spacing: 0.1rem;
  color: var(--c-primary);
  font-size: var(--caption-font-size);

  &:has(.caption-partial) {
    color: var(--c-black);
  }

  .caption-partial {
    color: var(--c-primary);
  }
}
:is(h1) .caption {
  width: 100%;
  display: block;
  letter-spacing: 0.5rem;
  font-size: var(--headline-font-size);
}
.box {
  padding: 2.27rem 2.2rem;
  box-shadow: var(--shadow-md);
  border-radius: var(--rounded-lg);
  background-color: var(--bg-white);

  .box__texts {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1fr;
    justify-items: center;

    h3 {
      font-weight: var(--font-normal);
      font-size: var(--title-font-size-lg);
    }
  }
}
.tag {
  color: var(--c-black);
  border-radius: var(--rounded-xl);
  font-size: var(--body-font-size-sm);
  border: 1px solid var(--c-black);
  padding: 0.5rem 1rem;
  display: inline-grid;
  place-content: center;
}
.container {
  max-width: 96rem;
  margin-inline: auto;
}

/*
  Section
*/
#hero {
  padding-top: 2.5rem;

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5.6rem;
  }

  .hero__headline {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: center;
  }

  h1 {
    text-align: center;
    color: var(--c-black);
  }

  .tag {
    color: var(--c-primary);
    border-color: var(--c-primary);
    width: fit-content;
    padding-block: 0;
  }

  .hero__video {
    width: 52rem;
    height: 35rem;
    object-fit: cover;
    overflow: hidden;
  }

  .hero__img {
    width: 480px;
    height: auto;
  }
}

#features {
  color: var(--c-black);
  background-color: var(--bg-gray);

  .container {
    display: flex;
    gap: 5.41rem;
    flex-direction: column;
    align-items: center;
  }

  h2 {
    width: 100%;
  }

  .caption, h2 {
    color: var(--c-black);
  }

  .features__feature-list {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    img {
      transform: scale(1.1);
    }
  }

  .features__products {
    width: 100%;

    .features__products__text {
      width: 100%;
      display: flex;
      row-gap: 1rem;
      flex-direction: column;
      align-items: flex-start;

      .highlight {
        line-height: 1;
        font-size: 1.9rem;
        display: flex;
        align-items: center;

        .highlight-lg {
          font-size: 4.2rem;
          display: inline-block;
          margin-left: 1.1rem;
        }

        .highlight-md {
          font-size: 2.5rem;
          display: inline-block;
          margin-top: 1.2rem;
        }
      }
    }

    .features__products__text-core {
      width: 100%;
      align-self: center;
      display: grid;
      gap: 2.5rem;
      align-items: center;
      justify-content: center;
      grid-template-columns: max-content 23rem;
      transform: translateX(5.7rem);

      div {
        h3 {
          letter-spacing: 0.1rem;
          font-weight: var(--font-normal);
          font-size: var(--caption-font-size);
        }
      }
      img {
        transform: scale(1.2);
      }
    }

    img {
      overflow: hidden;
      transform: rotate(2deg);
    }
  }
}

#advantage {
  position: relative;
  color: var(--c-white);
  background-color: var(--bg-dark-blue);

  .container {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-direction: column;
  }

  h2,p {
    color: var(--c-white);
  }

  /* triangle */
  &::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto;
    border-left: 1.8rem solid transparent;
    border-right: 1.8rem solid transparent;
    border-top: 2.2rem solid var(--bg-dark-blue);
    transform: rotate(180deg);
    position: absolute;
    bottom: -2.2rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .headline {
    align-self: start;
  }
}

#cases {
  color: var(--c-white);
  background-color: var(--bg-black);

  .container {
    display: grid;
    row-gap: 4rem;
    grid-template-columns: 1fr;
  }

  h2 {
    text-align: left;
  }

  h2,p {
    color: var(--c-white);
  }

  .cards {
    width: 100%;
    display: grid;
    gap: 2.9rem;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    justify-content: center;
  }
  .card {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: var(--rounded-md);
    background-color: var(--bg-black-light);
    display: grid;
    grid-template-columns: 1fr;

    .card__headline {
      display: flex;
      align-items: start;
      column-gap: 2.3rem;
      justify-content: space-between;

      .card__text {
        display: flex;
        gap: 1.25rem;
        flex-direction: column;
      }

      h3 {
        letter-spacing: normal;
        font-weight: var(--font-md);
        font-size: var(--body-font-size-lg);
        text-align: left;
      }
      img {
        width: 5.8rem;
        height: 5.8rem;
        border-radius: var(--rounded-full);
        object-fit: cover;
      }
    }

    .card__categories {
      display: grid;
      gap: 0.2rem 1.8rem;
      grid-template-columns: repeat(3, max-content);
      font-size: var(--caption-font-size);
      margin-top: 1.4rem;
    }

    .card__continue {
      justify-self: end;
      margin-top: 0.87rem;
      color: var(--c-white);
      display: inline-block;
      font-size: var(--body-font-size-sm);
      text-decoration: underline;
      transition: opacity 0.2s ease-in-out;
    }

    .card__continue:hover {
      text-decoration: none;
      opacity: 0.7;
    }
  }
}

#price {
  color: var(--c-black);
  background-color: var(--bg-white);

  .caption {
    color: var(--c-black);
  }

  .container {
    position: relative;
  }

  .price__cat-img {
    width: 24rem;
    height: auto;
    position: absolute;
    top: -7rem;
    right: -15.2rem;
  }

  .price__box {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .price__subscription {
    padding: 3rem 2.2rem 2.6rem;
    background-color: var(--bg-gray-light);
    border-top-left-radius: var(--rounded-lg);
    border-top-right-radius: var(--rounded-lg);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    h3 {
      text-align: center;
      font-weight: var(--font-md);
      font-size: var(--title-font-size-md);
    }

    .description {
      margin-top: 2.27rem;
    }

    dl {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 3.2rem;

      dt {
        line-height: 1;
        font-size: 1.5rem;
      }

      dd {
        font-size: 2.5rem;
        margin-top: 1.2rem;
        color: var(--c-primary);

        & + dt {
          margin-top: 2rem;
        }

        &:has(.disclaimer) {
          display: flex;
          align-items: center;
          flex-direction: column;
          justify-content: center;
        }
      }
    }

    dl + .disclaimer {
      margin-top: 3.2rem;
    }
  }

  .price__warranty {
    text-align: center;
    padding: 1.47rem 2.2rem 3rem;
    background-color: var(--bg-gray-light);
    border-bottom-left-radius: var(--rounded-lg);
    border-bottom-right-radius: var(--rounded-lg);

    .price__warranty__description {
      color: var(--c-primary);
      font-size: var(--body-font-size-sm);
    }

    .price__warranty__description + .disclaimer {
      margin-top: 1.9rem;
    }
  }

  .price__buy {
    display: flex;
    gap: 1.3rem;
    align-items: center;
    flex-direction: column;
    margin-top: 3rem;

    p {
      font-size: var(--title-font-size-md);
    }
  }
}

#cont4 {
  .spec-table .t-head td {
    font-family: noto-jp, var(--font-family-fallback);
  }
}

/* INFO: featureは共通スタイルになるためクラス名で制御する */
.feature-section {
  position: relative;
  padding-top: 6.4rem;
  background-color: var(--bg-gray-dark);
  z-index: calc(var(--z-index-base) - 2);

  & * {
    position: inherit;
    z-index: var(--z-index-base);
  }

  &::before {
    content: "";
    display: block;
    width: 100%;
    height: 28rem;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--bg-white);
    z-index: calc(var(--z-index-base) - 1);
  }

  .feature-icon {
    position: absolute;
    top: 2rem;
    right: 1.63rem;
    width: 6.2rem;
    height: 6.4rem;
  }

  .feature-img {
    margin-top: 3.4rem;
    box-shadow: var(--shadow-md);
  }

  .feature-description {
    margin-top: 3rem;
  }

  .feature-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 4rem;

    li {
      padding: 1.2rem 3rem;
      color: var(--c-black);
      border-radius: var(--rounded-xl);
      background-color: var(--bg-white);
      display: grid;
      white-space: nowrap;
      place-content: center;
      font-size: var(--body-font-size-sm);
    }
  }
}

#products {
  color: var(--c-black);
  background-color: var(--bg-gray-dark);

  :is(h2) .caption {
    color: var(--c-black);
  }

  .products__core-belt {
    margin-top: 4.2rem;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;

    .attention {
      text-align: left;
      margin-top: 4.4rem;
    }

    .description {
      text-align: left;
      margin-top: 1.4rem;
    }
  }

  .products__core {
    margin-top: 3rem;
  }

  .products__core + .attention {
    margin-top: 6.5rem;
  }

  .products__core + .attention + .full-w-img {
    margin-top: 3.4rem;
  }

  .products__home {
    transform: translateY(-5.5rem)
  }

  .products__belt-category {
    /* display: flex;
    gap: 4rem;
    align-items: center; */

    span {
      color: var(--c-black);
      border-radius: var(--rounded-xl);
      font-size: var(--body-font-size-sm);
      border: 1px solid var(--c-black);
      padding: 0.5rem 1rem;
      display: inline-grid;
      place-content: center;
    }
  }

  .products__buckle-full {
    display: flex;
    flex-direction: column;
    gap: 2.55rem;
    align-items: center;
    justify-content: center;

    img {
      width: 100vw;
      height: auto;
      margin-inline: var(--padding-x-main-negative);
    }

    span {
      font-size: var(--body-font-size-sm);
    }
  }

  .products__belt {
    .products__belt__colors {
      display: flex;
      gap: 2.5rem;
      align-items: center;
      justify-content: center;

      li {
        width: 1.5rem;
        height: 1.5rem;
        border-radius: var(--rounded-full);

        &:nth-child(1) {
          background-color: var(--belt-blue);
        }
        &:nth-child(2) {
          background-color: var(--belt-brown);
        }
        &:nth-child(3) {
          background-color: var(--belt-red);
        }
        &:nth-child(4) {
          background-color: var(--belt-brown-dark);
        }
        &:nth-child(5) {
          background-color: var(--belt-blue-dark);
        }
      }
    }

    .box__texts {
      margin-top: 3.3rem;
    }
  }
}

#application {
  color: var(--c-white);
  background-color: var(--bg-charcoal);

  :is(.application__headline) h2, .description, .caption {
    color: var(--c-white);
  }

  .application__headline {
    display: flex;
    gap: 2rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .application__img {
    margin-top: 1.67rem;
    display: inline-block;
    transform: translateX(4.53rem);
  }

  .application__img + .description {
    margin-top: 5.04rem;
  }

  .application__introduction {
    margin-top: 2rem;
    display: grid;
    gap: 3.5rem;
    grid-template-columns: 9.8rem 1fr;
    align-items: center;

    .application__introduction__text {
      display: flex;
      gap: 1.1rem;
      flex-direction: column;

      h3 {
        font-weight: var(--font-normal);
        font-size: var(--title-font-size-md);
        letter-spacing: 0.15rem;
      }

      .application__introduction__text-detail {
        margin-top: 1.2rem;
      }
    }

  }
}

#how-to-use {
  background-color: var(--bg-gray-dark);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;

  h2 {
    .caption {
      color: var(--c-black);
    }
  }

  .boxes {
    display: grid;
    gap: 5rem;
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .box:nth-child(1) {
    /* トイプードル */
    .how-to-use__toy-poodle-img {
      width: 8.2rem;
      height: auto;
    }

    .how-to-use__figures {
      display: grid;
      gap: 3.2rem;
      grid-template-columns: 1fr 1fr;
      justify-content: space-between;
      align-items: baseline;

      /* TODO: ここから */
      figure {

      }

      figcaption {
        font-size: var(--caption-font-size);
      }
    }
  }
}

/* --breakpoint-sp: 768px */
@media screen and (min-width: 768px) {
  :where(#advantage) img {
    width: 30%;
    height: auto;
  }
  :where(#hero,#features) img {
    width: 50%;
    height: auto;
  }

  #hero {
    padding-top: 7.5rem;

    .hero__video {
      width: 57.3rem;
      height: 36rem;
    }
  }

  .features__products {
    .features__products__text-core {
      grid-template-columns: 1fr 1fr;
      transform: translateX(0);

      div {
        justify-self: end;
      }
      img {
        width: 100%;
        justify-self: start;
      }
    }
  }
}
