@charset "UTF-8";
:root {
  --themeColor: #a1d05c;
}

@media screen and (max-width: 640px) { /*-- SP --*/
  .service_list--title {
    margin: 40px 24px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.8rem;

    &::before, &::after {
      flex-grow: 1;
      content: "";
      display: block;
      height:0;
      border-bottom: 1px solid currentColor;
    }
  }

  .service_list--list {
    margin: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var( --col_grayLine );
    border-radius: 12px;
    padding: 16px;

    a {
      display: block;
      position: relative;

      &::after {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: +1;
        opacity: .25;
      }
    }
  }

  .block-series-item--title {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border: 1px solid currentColor;
    border-width: 0.5px 0;
    margin: 0 -12px 32px;
    padding: 0 0 12px;
    line-height: 1.5;
    letter-spacing: 0.1em;
    color: var( --themeColor );
    height: 144px;
    background: #faffed url("/img/usr/@page/get-well-gift_2026/bg-block-series-item--title_sp.webp")  no-repeat 50% 50% / auto 200px;

    span {
      position: absolute;
      top: 0;
      transform: translateY( -50% );
      border: 1px solid currentColor;
      border-radius: 6px;
      padding: 16px 24px;
      line-height: 1.5;
      font-feature-settings: "palt";
      font-size: 2.0rem !important;
      letter-spacing: 0.05em;
      background-color: #fff;
      filter: drop-shadow(0 1px 0 var( --themeColor ));

      &::after {
        content: "";
        display: block;
        width: 12px;
        aspect-ratio: 1 / 1;
        position:absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX( -50% );
        margin-left: -10px;
        border: 1px solid currentColor;
        border-width: 0 2px 2px 0;
        border-radius: 0 0 5px 0;
        background-color: #fff;
        transform: rotate(45deg) skew(20deg,20deg);
      }
    }

    em {
      min-height: 2lh;
      display: block grid;
      place-items: center;
    }

    &::before {
      display: none !important;
    }
  }

  /*---- ランキング (SP)----*/
  #ranking {
    margin: 0 -12px;
    position: relative;
    width: 100vw;
    overflow: visible;

    h2 {
      margin-left: -24px
    }

    .block-top-event--goods {
      margin: 0 0 0 -12px;
    }

    ul.block-thumbnail-h {
      display: flex;
      flex-wrap: nowrap;
      align-items: stretch;
      gap: 0 16px;
      padding: 0 calc((100vw - 280px) /2);
      overflow-x: scroll;
      scroll-snap-type: x mandatory;
      width: auto;
      position: relative;

      li {
        scroll-snap-align: center;

        .block-thumbnail-h--goods {
          display: flex;
          flex-direction: column;
          height: 100%;
          width: 280px;

          .block-thumbnail-h--goods-image {
            figure {
              box-sizing: border-box;
              position: relative;
              margin: 0 0 12px;
              padding: 5px;
              width: 72vw;

              img {
                width: 100%;
              }

              &::before {
                content: "n";
                display: flex;
                justify-content: center;
                align-items: center;
                position: absolute;
                bottom: 0;
                left: 0;
                height: calc(14vw - 16px);
                aspect-ratio: 1 /1;
                font-size: 2rem;
                font-weight: 700;
                background: #f5f5f5;
                z-index: +1;
              }

              li:nth-child(1) &::before {
                content: "1";
                color: #fff;
                background: var( --col_Gold );
              }
              li:nth-child(2) &::before {
                content: "2";
                color: #fff;
                background: #bababa;
              }
              li:nth-child(3) &::before {
                content: "3";
                color: #fff;
                background: #a67e67;
              }
              li:nth-child(4) &::before {
                content: "4";
              }
              li:nth-child(5) &::before {
                content: "5";
              }
            }
          }

          .block-thumbnail-h--goods-description {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;

            .block-thumbnail-h--goods-name {
              flex-grow: 1;
              display: flex;

              a {
                flex-grow: 1;
                width: 100%;
                display: -webkit-box;
                line-clamp: 2;
                -webkit-line-clamp: 2;
                text-overflow: ellipsis;
                -webkit-box-orient: vertical;
                overflow: hidden;
                line-height: 1.5;
                text-decoration: none;
                font-feature-settings: "palt";
                font-size: 1.6rem;
              }
            }

            .block-thumbnail-h--price-infos {
              font-weight: 700;
              font-size: 1.6rem;
            }
          }
        }
      }
    }
  }

  /*---- ～別のおすすめアイテム（SP） ----*/
  .block-wayreco {
    .block-series-item--desc {
      margin: 32px 0 0;
      text-align: center;
      font-size: 1.8rem;
    }

    .block-wayreco--list {
      margin: 24px 0 0;
    }

    .block-wayreco--wrapper {
      margin: 0 -12px;
    }

    .block-wayreco--items {
      margin: 0;
      padding: 0 12px;
      display: flex;
      flex-wrap: nowrap;
      overflow-x: scroll;
      scroll-snap-type: x mandatory;

      .block-wayreco--item {
        width: calc(100% - 36px);
        padding: 16px;
        flex-shrink: 0;
        scroll-snap-align: center;

        &:nth-child(odd) {
          background-color: #FAFFED;
        }

        .block-wayreco--wayttl {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          gap: 8px;
          position: relative;
          margin: 0 0 14px;
          border: 1px solid currentColor;
          border-radius: 6px;
          padding: 10px 16px 14px;
          color: var( --themeColor );
          line-height: 1;
          text-align: center;
          font-family: var( --ff-sans );
          font-size: 1.6rem;
          background-color: #fff;
          filter: drop-shadow(0 1px 0 currentColor);

          .by-relation & {
            padding: 16px;
          }

          &::after {
            content: "";
            display: block;
            width: 12px;
            aspect-ratio: 1 / 1;
            position:absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX( -50% );
            margin-left: -10px;
            border: 1px solid currentColor;
            border-width: 0 2px 2px 0;
            border-radius: 0 0 5px 0;
            background-color: #fff;
            transform: rotate(45deg) skew(20deg,20deg);
          }

          span {
            em {
              display: inline-flex;
              gap: 2px;
              margin: 0 2px 0 0;
              align-items: baseline;
              font-style: normal;
              font-weight: 700;
              font-size: 3.0rem;
              background: linear-gradient( transparent calc(100% - 8px), #ffff0066 calc(100% - 8px), #ffff0066  100%);

              sub {
                font-size: 2.0rem;
              }
            }

            &:not(:has(sub)) {
              font-size: 2.0rem;
              font-weight: 700;
              em {
              letter-spacing: 0.05em;
              font-size: 2.4rem;
              padding-bottom: 3px;
              }
            }
          }
        }

        a {
          text-decoration: none;
          figure {
            border: 5px solid var( --col_paleGray);
            background: #fff;
          }

          .block-wayreco--name {
            display: flex;
            align-items: center;
            margin: 16px 0 4px;
            min-height: 2lh;
            line-height: 1.5;
            font-feature-settings: "palt";
            font-family: var( --ff-sans );
            font-size: 1.6rem;
            font-weight: 700;
          }

          &::after {
            display: none;
          }
        }
        .block-wayreco--price {
          font-size: 1.6rem;
          font-weight: 700;
        }
        .block-wayreco--desc {
          margin: 8px 0 4px;
        }
      }
    }
  }

  /*---- コラム（SP） ----*/
  .sp-column {
    width: var( --contentWidth );

    .block-series-item--title {
      padding: 0;
      justify-content: center;
    }

    .sp-column-item {
      display: flex;
      flex-direction: column;
      padding: 0;
      box-shadow: 0 0 4px var( --col_grayLine );
      gap: 8px;

      & + & {
        margin: 24px auto 0;
      }

      .sp-column-thumb {
        order: 1;
        padding: 4px 4px 5px 4px;
        background-color: var( --col_paleGray );

        &::after {
          display: none;
        }
      }

      h3 {
        order: 2;
        margin: 0;
        padding: 0 16px;
        font-size: 1.8rem;
        line-height: 1.5;
      }

      .sp-column-txt {
        order: 3;
        padding: 0 16px;
        font-size: 1.3rem;
        text-align: justify;
      }

      .sp-column-lnk {
        order: 4;
        display: inline-flex;
        margin: -4px auto 0;
        padding: 0 16px 12px;
        text-align: center;
        text-decoration: none;
        gap: 4px;

        &::before {
          content: "";
          display: block;
          width: 16px;
          height: 16px;
          background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxOCIgY3k9IjE4IiByPSIxNyIgZmlsbD0id2hpdGUiIHN0cm9rZT0iI0IxOUI3QiIgc3Ryb2tlLXdpZHRoPSIyIi8+PHBhdGggZD0iTTE2IDI0TDIyIDE4TDE2IDEyIiBzdHJva2U9IiM0MzI4MEUiIHN0cm9rZS13aWR0aD0iMiIvPjwvc3ZnPg==) no-repeat 0 0 / cover;
        }
      }
    }

    .sp-column-catLnk {
      position: relative;
      margin: 20px auto 0;
      padding: 0 24px;
      letter-spacing: .05em;
      height: 64px;

      &::after {
        position: absolute;
        inset: auto 12px auto auto;
      }
    }
  }

} /*-- /SP --*/

@media screen and (min-width: 641px) { /*-- PC --*/
  .service_list--title {
    margin: 56px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    &::before, &::after {
      content: "";
      display: block;
      height:0;
      width: 44px;
      border-bottom: 1px solid currentColor;
    }
  }

  .service_list--list {
    margin: 0px auto;
    display: flex;
    width: 1060px;
    gap: 20px;
    border: 1px solid var( --col_grayLine );
    border-radius: 12px;
    padding: 24px;

    a {
      display: block;
      position: relative;

      &::after {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: +1;
        opacity: .25;
      }
    }
  }

  .block-series-item--title {
    display: flex;
    justify-content: flex-end;
    border: 1px solid currentColor;
    border-width: 0.5px 0;
    padding: 0 0 20px;
    color: var( --themeColor );
    min-height: 110px;
    background: #FAFFED url("/img/usr/@page/get-well-gift_2026/bg-block-series-item--title.webp")  no-repeat 50% 0;

    span {
      top: -10px;
      position: relative;
      border: 1px solid currentColor;
      border-radius: 6px;
      padding: 16px 24px;
      line-height: 1;
      font-feature-settings: "palt";
      font-size: 2.8rem;
      letter-spacing: 0.05em;
      background-color: #fff;
      filter: drop-shadow(0 1px 0 var( --themeColor ));

      &::after {
        content: "";
        display: block;
        width: 12px;
        aspect-ratio: 1 / 1;
        position:absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX( -50% );
        margin-left: -10px;
        border: 1px solid currentColor;
        border-width: 0 2px 2px 0;
        border-radius: 0 0 6px 0;
        background-color: #fff;
        transform: rotate(45deg) skew(20deg,20deg);
      }
    }

    &::before {
      display: none !important;
    }
  }

  /*---- ～別のおすすめアイテム（PC） ----*/
  .block-wayreco {
    .block-series-item--desc {
      text-align: center;
      line-height: 2;
      font-size: 1.6rem;
    }

    .block-wayreco--items {
      margin: 24px auto 0;
      width: 1060px;
      display: flex;
      gap: 8px;
    }
    

    .block-wayreco--item {
      width: 100%;
      padding: 16px;

      &:nth-child(odd) {
        background-color: #FAFFED;
      }

      .block-wayreco--wayttl {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: relative;
        margin: 0 0 14px;
        border: 1px solid currentColor;
        border-radius: 6px;
        padding: 10px 16px 14px;
        color: var( --themeColor );
        line-height: 1;
        text-align: center;
        font-family: var( --ff-sans );
        font-size: 1.6rem;
        background-color: #fff;
        filter: drop-shadow(0 1px 0 currentColor);

        .by-relation & {
          padding: 16px;
        }

        &::after {
          content: "";
          display: block;
          width: 12px;
          aspect-ratio: 1 / 1;
          position:absolute;
          bottom: -8px;
          left: 50%;
          transform: translateX( -50% );
          margin-left: -10px;
          border: 1px solid currentColor;
          border-width: 0 2px 2px 0;
          border-radius: 0 0 5px 0;
          background-color: #fff;
        transform: rotate(45deg) skew(20deg,20deg);
        }

        span {
          em {
            display: inline-flex;
            gap: 2px;
            margin: 0 2px 0 0;
            align-items: baseline;
            font-weight: 700;
            font-size: 3.0rem;
            background: linear-gradient( transparent calc(100% - 8px), #ffff0066 calc(100% - 8px), #ffff0066  100%);

            sub {
              font-size: 2.0rem;
            }
          }

          &:not(:has(sub)) {
            font-size: 2.0rem;
            font-weight: 700;

            em {
            letter-spacing: 0.05em;
            font-size: 2.4rem;
            padding-bottom: 3px;
            }
          }
        }
      }

      a {
        figure {
          border: 5px solid var( --col_paleGray);
          background: #fff;
        }

        .block-wayreco--name {
          display: flex;
          align-items: center;
          margin: 16px 0 4px;
          min-height: 2lh;
          line-height: 1.5;
          font-feature-settings: "palt";
          font-family: var( --ff-sans );
          font-size: 1.6rem;
          font-weight: 700;
        }

        &::after {
          display: none;
        }
      }

      .block-wayreco--price {
        font-size: 1.6rem;
        font-weight: 700;
      }

      .block-wayreco--desc {
        margin: 8px 0 4px;
      }
    }
  }

  /*---- コラム（PC） ----*/
  .sp-column {
    display: flex;
    flex-direction: column;
    .block-series-item--title {
      padding: 0;
      justify-content: center;
    }

    .sp-column-items {
      margin: 0 auto;
      width: 960px;
      display: flex;
      gap: 32px;

      .sp-column-item {
        display: flex;
        flex-direction: column;
        width: calc((100% - 24px) /2);
        gap: 8px;
        border-radius: 13px;

        .sp-column-thumb {
          order: 0;
          display: block;
          padding: 5px;
          aspect-ratio: 16 / 9;
          background: var(--col_paleGray);

          &::after {
            display: none;
          }
        }

        h3 {
          order: 1;
          display: flex;
          align-items: center;
          min-height: 2lh;
          margin: 0;
          line-height: 1.5;
          font-weight: 700;
          font-size: 1.8rem;
        }

        .sp-column-txt {
          flex-grow: 1;
          order: 2;
          height: auto;
          text-align: justify;
          font-size: 1.3rem;
        }

        .sp-column-lnk {
          order: 3;
          margin: 0; 
          align-self: flex-start;
        }
      }
    }

    .sp-column-catLnk {
      display: flex !important;
      margin: 32px auto 0;
      height: 56px;
      min-width: 300px;
    }
  }
}  /*-- /PC --*/
