@charset "UTF-8";

main {
  background: white;

  .pc {
    display: block;
  
    @media screen and (max-width: 640px) {
      display: none;
    }
  }
  
  .sp {
    display: none;
  
    @media screen and (max-width: 640px) {
      display: block;
    }
  }

  .c-spbr{
    display: inline-block;
  }
  
  section {
    width: 90%;
    max-width: 1200px;
    margin-inline: auto;
    position: relative;

    >div{
      position: relative;
      &:not(:first-of-type){
        padding-top: 90px;
        &::before{
          position: absolute;
          content: "";
          width: 90%;
          height: 2px;
          background: #A82629;
          top: 0;
          left: 50%;
          transform: translateX(-50%);
        }
      }
    }
  }
  
  img {
    display: block;
    width: 100%;
  }
}

.pg-set2510__headline {
  margin: 0 auto 75px;

  @media screen and (max-width: 640px) {
    margin-bottom: 30px;
  }

  h2 {
    margin-bottom: 45px;
  }

  .col2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 65px;

    @media screen and (max-width: 640px) {
      grid-template-columns: 1fr;
    }
  }

  dt {
    padding: 10px;
    text-align: center;
    background: #FAE99D;
    font-family: 'Noto Sans Japanese', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.25em);
    letter-spacing: 0.1em;
    border-radius: 5px;
    margin-bottom: 15px;
    color: #432106;
  }

  dd {
    font-size: 0.9em;
    letter-spacing: 0.1em;
    line-height: 1.75em;
    padding: 0 10px;
  }
}

.pg-set2510__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1000px;
  width: 90%;
  margin: 0 auto 90px;

  a {
    position: relative;
    display: block;
    width: 33.333%;
    border-right: 1px solid #ddcdc7;
    margin-bottom: 30px;

    &:nth-of-type(3),
    &:last-of-type {
      border: none;
    }

    @media screen and (max-width: 640px) {
      width: 50%;

      &:nth-of-type(3) {
        border-right: 1px solid #ddcdc7;
      }

      &:nth-of-type(2n) {
        border: none;
      }
    }

    &:hover {
      img {
        top: 10px;
        opacity: .5;
      }
    }
  }

  img {
    transition: all .5s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    display: block;
    margin: 0 auto;
    position: relative;
    top: 0;
    width: auto;
    height: 220px;

    @media screen and (max-width: 950px) {
      height: 180px;
    }

    @media screen and (max-width: 640px) {
      height: 130px;
    }
  }
}

.pg-set2510__set {
  background: url('../image/set/2510/back.webp') repeat center/contain;

  h3 {
    padding: 60px 0;
    background: url('../image/set/2510/title_back_or.webp') repeat center/cover;

    @media screen and (max-width: 640px) {
      padding: 30px 0;
    }

    img {
      width: 90%;
      margin-inline: auto;
      @media screen and (max-width: 640px) {
        width: 80%;
      }
    }
  }

  ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 95%;
    margin-inline: auto;
    padding: 90px 0;
    @media screen and (max-width: 840px) {
      grid-template-columns: repeat(3, 1fr);
      padding: 30px 0 60px;
    }
    @media screen and (max-width: 640px) {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      padding: 30px 0 45px;
    }
  }

  li {
    position: relative;
    background: white;
  }

  .icon {
    &::before {
      position: absolute;
      content: "";
      top: 10px;
      left: 10px;
      transform: translate(-50%, -50%);
      width: 70px;
      @media screen and (max-width: 640px) {
        width: 50px;
      }
    }
  }

  .rank {
    &::before {
      aspect-ratio: 7/8;
    }
  }

  .rank_01 {
    &::before {
      background: url('../image/set/2510/icon_num_1.svg') no-repeat center/contain;
    }
  }

  .rank_02 {
    &::before {
      background: url('../image/set/2510/icon_num_2.svg') no-repeat center/contain;
    }
  }

  .rank_03 {
    &::before {
      background: url('../image/set/2510/icon_num_3.svg') no-repeat center/contain;
    }
  }

  .new{
    &::before{
      aspect-ratio: 1/1;
      background: url('../image/set/2510/icon_new.svg') no-repeat center/contain;
    }
  }

  .season{
    &::before{
      aspect-ratio: 1/1;
      background: url('../image/set/2510/icon_season.svg') no-repeat center/contain;
    }
  }

  .two{
    &::before{
      aspect-ratio: 1/1;
      background: url('../image/set/2510/icon_2set.svg') no-repeat center/contain;
    }
  }

  .pieces {
    &::before{
      aspect-ratio: 1/1;
      background: url('../image/set/2510/icon_2pieces.svg') no-repeat center/contain;
    }
  }

  .type02 {
    position: absolute;
    background: white;
    display: grid;
    place-items: center;
    font-size: .9rem;
    color: #43a4ee;
    border: 2px solid #43a4ee;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    border-radius: 100vmax;
  }

  h5 {
    padding: 20px;
    text-align: center;
    font-size: clamp(.9rem, 2vw, 1rem);
    @media screen and (max-width: 840px) {
      padding: 15px;
    }
  }

  a {
    display: grid;
    grid-template-columns: auto 17px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    gap: 7px;
    max-width: 370px;
    width: 90%;
    margin: 0 auto 90px;
    padding: 15px 45px;
    border-radius: 100vmax;
    font-size: clamp(.9rem, 2vw, 1.1rem);
    filter: drop-shadow(0 0 10px rgba(52, 30, 30, 0.4));
    transition: all .5s ease;

    &::after {
      content: "";
      display: block;
      width: 17px;
      aspect-ratio: 1/1;
      background: url('../image/set/2510/icon_arrow.svg') no-repeat center/contain;
    }

    @media (any-hover: hover){
      &:hover {
        color: white;
        filter:brightness(1.1)drop-shadow(0 0 10px rgba(52, 30, 30, 0.4));
      }
    }
  }

  .set01 { /* 人気お惣菜セット */
    a{
      background: #A82629;
    }
  }

  .set02 { /* 知久屋のおかずセット */
    a{
      background: #8B3C71;
    }
  }

  .set03 { /* お魚・お肉セット */
    a{
      background: #D13C26;
    }
  }

  .set04 { /* お惣菜詰め合わせセット */
    a{
      background: #669666;
    }
  }

  .set05 { /* お弁当おかずセット */
    a{
      background: #D0A447;
    }
  }

  .set06 { /* ドリアとスープのセット */
    a{
      background: #3A5DAC;
    }
  }

  .set06,
  .set07 {
    h3 {
      background: url('../image/set/2510/title_back_bl.webp') repeat center/cover;
    }
  }

  .set07 {

    h3 {
      img {
        max-width: 400px;
        width: 70%;
        margin-inline: auto;
        display: block;
      }
    }

    /* 冷凍セット */
    .grid {
      display: grid;
      grid-template-columns: repeat(8, 1fr);
      grid-template-rows: repeat(2, auto);
      gap: 60px 30px;
      @media screen and (max-width: 890px) {
        gap: 45px 15px;
      }
      @media screen and (max-width: 760px) {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
      }
      @media screen and (max-width: 640px) {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    li {
      display: grid;
      &:first-of-type {
        grid-area: 1 / 1 / 2 / 3;
      }

      &:nth-of-type(2) {
        grid-area: 1 / 3 / 2 / 5;
      }

      &:nth-of-type(3) {
        grid-area: 1 / 5 / 2 / 7;
      }

      &:nth-of-type(4) {
        grid-area: 1 / 7 / 2 / 9;
      }

      &:nth-of-type(5) {
        grid-area: 2 / 2 / 3 / 4;
      }

      &:nth-of-type(6) {
        grid-area: 2 / 4 / 3 / 6;
      }

      &:nth-of-type(7) {
        grid-area: 2 / 6 / 3 / 8;
      }

      @media screen and (max-width: 760px) {
        grid-area: auto !important;
      }

      width: 100%;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid #e6dfd9;

      div {
        position: relative;
        padding: 15px;
      }
    }

    img{
      margin-bottom: 15px;
    }

    h5 {
      text-align: left;
      font-weight: 500;
      font-size: 1rem;
      padding: 0;
      padding-bottom: 12px;
      margin-bottom: 12px;
      border-bottom: dotted 1px #432106;
    }

    .place {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      flex-wrap: wrap;
      font-size: 0.85rem;
      letter-spacing: .08em;
    }

    button {
      background: #432106;
      width: 100%;
      margin-top: auto;

      a {
        display: block;
        font-size: .8rem;
        background: none;
        padding: 15px;
        margin-bottom: 0;

        &::after {
          display: none;
        }
      }
    }
  }
}