@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Noto+Serif+JP:wght@600&display=swap');


.l-base {
	margin-top: 5px !important;
	margin-bottom: 0 !important;
  width: 100% !important;
	padding: 0 !important;
}


@scope(#e-gift) {
  :scope {
    --c-brand: #9e352f;
    --c-bu: #00bfe7;
    --c-gr: #00e7ae;
    --c-bk: #111111;
    --c-rd: #ff0000;
    --f-yumin:
      "游明朝体", "Yu yumin", Yuyumin, "ヒラギノ明朝 Pro", "Hiragino yumin Pro", "Noto Serif JP", "MS P明朝", "MS Pyumin", serif;
    --f-yugo:
      "游ゴシック体", "Yu Gothic", YuGothic, Hiragino Sans,"ヒラギノ角ゴシック", Hiragino Kaku Gothic ProN, "ヒラギノ角ゴ ProN W3",	"メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    --f-lato: "Lato", sans-serif;
    --f-notomin:
      "Noto Serif JP", "游明朝体", "Yu yumin", Yuyumin, "ヒラギノ明朝 Pro", "Hiragino yumin Pro", "Noto Serif JP", "MS P明朝", "MS Pyumin", serif;

    /* margin: -40px auto 40px; */
    font-feature-settings: "palt";
    
    h2, h3, h4, h5, p, dl, dt, dd, ul, ol, figure {
      margin: 0;
      padding: 0;
    }

    ul {
      list-style: none;
    }
    
    font-family: var(--f-yugo);
    font-size: 18px;
    line-height: 1.8;
    font-weight: 500;
    letter-spacing: .1em;
  }



  .section {
    margin: 125px auto 0;
    width: min(1180px, 90%);
  }
  
  .cv + .section {
    margin-top: 0 !important;
  }

  .hero {
    padding: 60px 0 160px;
    position: relative;
    background: url('../img/hero_bg.jpg') center / cover no-repeat;
    
    .hero_inner {
      width: min(90%, 1180px);
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .hero_send {
      display: flex;
      align-items: center;
      gap: 10px;
      position: relative;
      z-index: 2;
    }
  }

  .hero_ribon {
    position: absolute;
    bottom: 60px;
    left: 50%;
    translate: -50% 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
  }
}

.bg {
  padding-bottom: 120px;
  background: url(../img/bg.png);
  position: relative;
  &::before {
    content: '';
    background: url(../img/bg_shikiri.png)no-repeat 100% 0 / cover;
    width: 100%;
    /* aspect-ratio: 1920 / 114; */
    position: absolute;
    display: block;
    width: 100%;
    height: 114px;
    top: -114px;
    z-index: 5;
  }
}


.benri {
  /* padding: 40px;
  counter-reset: howto;
  background: #FFF; */
  ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 0 30px;
    li {
      padding: 20px 10px;
      display: grid;
      gap: 10px;
      grid-template-rows: subgrid;
      grid-row: span 4;
      position: relative;
      
      figure {
        justify-self: center;
        align-self: center;
        position: relative;
        z-index: 5;
        img {
          width: 80px;
        }
      }
      
      h3 {
        text-align: center;
        line-height: 1.4;
        color: var(--c-bu);
        position: relative;
        z-index: 5;
      }
      
      p {
        padding: 0 20px;
        position: relative;
        z-index: 5;
        font-size: 16px;
      }
      
      &::before {
        content: '';
        width: 100%;
        height: 100%;
        display: block;
        background: #FFF;
        border-radius: 24%;
        position: absolute;
        top: 0;
        left: 0;
         z-index: 2;
      }
      &::after {
        content: '';
        width: 100%;
        height: 100%;
        display: block;
        background: var(--c-bu);
        border-radius: 24%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        opacity: .2;
        transform: rotate(-6deg);
      }
    }
  }
}

.scene {
  padding: 50px;
  background: rgba(228,222,195,.25);
  ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    li {
      flex: 1;
      text-align: center;
      figure {
        margin-bottom: 8px;
        img {
          border-radius: 50%;
        }
      }
    }
  }
}


.cv {
  margin: 50px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  
  a {
    padding: 20px 0;
    width: min(500px, 80%);
    /* background: linear-gradient(to right, #00d39f 0%, #00b9da 100%, #00d39f 100%); */
    background: var(--c-brand);
    text-decoration: none;
    color: #FFF;
    font-family: var(--f-notomin);
    font-weight: 600;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    /* box-shadow: 8px 8px 0px #fff; */
    transition: .3s;
    &::after {
      content: '';
      background: url(../img/icon_arrow.svg) no-repeat 0 0 / contain;
      width: 26px;
      height: 26px;
      display: block;
    }
    &:hover {
      opacity: .7;
    }
  }
}


.introduction {
  margin: 0 auto;
  width: min(1180px, 90%);
  
  .tokucho {
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 100;
    li {
      position: relative;
      width: 340px;
      padding: 15px 0 40px;
      line-height: 1.5;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 10px;
      img {
        margin-top: -40px;
        z-index: 5;
        position: relative;
        width: auto;
        height: 80px;
      }
      p {
        position: relative;
        z-index: 3;
        font-family: var(--f-notomin);
        font-size: 24px;
        text-align: center;
      }
      &::before {
        content: '';
        width: 100%;
        height: 100%;
        display: block;
        background: #FFF;
        border-radius: 999em;
        position: absolute;
        top: 0;
        left: 0;
         z-index: 2;
      }
      &::after {
        content: '';
        width: 100%;
        height: 100%;
        display: block;
        background: var(--c-bu);
        border-radius: 999em;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        opacity: .2;
        transform: rotate(-5deg);
      }
    }
  }
  
  .about {
    h2 {
      margin-bottom: 20px;
      font-family: var(--f-notomin);
      font-size: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 40px;
      &::before,
      &::after {
        content: '';
        width: 180px;
        height: 2px;
        background: var(--c-bk);
        display: block;
      }
    }
    p {
      text-align: center;
    }
  }
  
}

.howto {
  padding: 40px;
  counter-reset: howto;
  background: #FFF;
  
  .howto_list {
    display: grid;
    grid-template-columns: 20% 80%;
    border-radius: 10px;
    padding: 30px 50px 0;
  }
  
  h3 {
    align-self: center;
    justify-self: center;
    font-family: var(--f-notomin);
    font-weight: 600;
    font-size: 28px;
    background: #FFF;
    border: var(--c-bk) 1px solid;
    display: inline-block;
  }
  
  ol {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    li {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      gap: 15px 0;
      &::before{
        counter-increment: howto;
        content: counter(howto);
        font-family: var(--f-lato);
        font-weight: 700;
        font-size: 24px;
        color: #FFF;
        width: 50px;
        height: 50px;
        background: var(--c-bk);
        border-radius: 100%;
        justify-self: center;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        grid-row: 1 / 2;
      }
      p {
        grid-row: 2 / 3;
        text-align: center;
        justify-content: center;
        letter-spacing: 0;
        span {
          font-size: 12px;
          color: var(--c-rd);
          display: block;
        }
      }
      figure {
        grid-row: 3 / 4;
        justify-self: center;
      }
    }
  }
  
  .sender {
    margin-bottom: 40px;
    background: color-mix(in srgb, var(--c-bu) 10%, transparent);
  }
  
  .recipient {
    background: color-mix(in srgb, var(--c-gr) 10%, transparent);
    /* ol {
      grid-template-columns: repeat(2, 1fr);
      } */
  }
}



@scope(.product-list) {
  :scope {
    --max-size: 300px;
    --column-gap: 80px;
    --row-gap: 90px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--max-size)), 1fr));
    column-gap: var(--column-gap);
    row-gap: var(--row-gap);
    align-items: start;
  }

  &[data-type="small"] {
    --max-size: 230px;
    --column-gap: 25px;
    --row-gap: 40px;
  }

  .item {
    container-type: inline-size;
    container-name: --item;
    
    &:nth-of-type(4) {
      .name {
        span {
          display: inline-block;
          margin-left: 1em;
        }
      }
    }
  }
  
  .thumbnail {
    position: relative;
    display: grid;
    place-items: center;
    min-block-size: 260px;
    border: 1px solid #9c9c9c;
    background: #FFF;
    aspect-ratio: 1;
    margin: 0;
  }

  .details {
    grid-area: 1 / 1 / 2 / 2;
    place-self: end;
    background-color: white;
    border: 1px solid;
    display: grid;
    grid-auto-flow: column;
    align-items: baseline;
    padding: 5px 8px;
    font-size: 13px;
    line-height: 1.2;
    transition: opacity 0.3s;
    overflow: clip;
    translate: 1px 1px;
    column-gap: 7px;
    position: relative;

    &[aria-expanded="false"] {
      &::after {
        content: "＋";
      }
    }

    &[aria-expanded="true"] {
      &::after {
        content: "－";
      }
    }
  }

  .img {
    grid-area: 1 / 1 / -1 / -1;
    max-inline-size: calc(100% - 10px);
  }

  .balloon {
    --triangle-height: 18;
    position: absolute;
    inset-block-start: calc(100% + 28px);
    inset-inline-end: 10px;
    inline-size: min(100%, 245px);
    border: 1px solid #878787;
    padding: 10px;
    border-radius: 5px;
    background-color: #f5f5f5;
    line-height: 1.6;
    font-size: 12px;
    letter-spacing: 0;
    box-shadow: 2px 2px 4px rgba(0,0,0,.25);
    transition: opacity 0.3s, translate 0.3s;
    translate: 0 0;
    z-index: 1;

    &[aria-hidden="true"] {
      display: none;
    }

    @starting-style {
      &[aria-hidden="false"] {
        opacity: 0;
        translate: 0 3px;
      }
    }

    &::before,
    &::after {
      content: "";
      position: absolute;
      inset-block-start: calc(-1px * var(--triangle-height));
      inset-inline-end: 30px;
      block-size: calc(1px * var(--triangle-height));
      aspect-ratio: 21/var(--triangle-height);
      clip-path: polygon(0 100%, 50% 0, 100% 100%);
    }

    &::before {
      background-color: #878787;
    }

    &::after {
      background: #f5f5f5;
      block-size: calc((1px * var(--triangle-height)) - 2px);
      translate: -1px 2px;
    }

    > ul {
      margin: 0;
      li {
        padding-left: 1em;
        text-indent: -1em;
        &::before {
          content: '・';
          
        }
      }
    }
  }

  .info {
    display: grid;
    align-items: start;
    margin-block-start: 10px;
    position: relative;
  }

  .name {
    margin: 8px 0 !important;
    font-size: min(8cqi, 24px);
    font-family: var(--f-yumin);
    line-height: 1.3;
    font-weight: 700;
    span {
      display: block;
    }
  }

  .prices {
    padding: 5px !important;
    border-top: var(--c-bk) 1px solid;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline;
    font-size: clamp(22px, 2vw, 32px);
    font-family: var(--f-yumin);
    line-height: 1.3;
    font-weight: 700;
    text-align: right;
    
    &::before {
      content: '送料込';
      font-family: var(--f-yugo);
      font-size: 14px;
      align-self: center;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 4em;
      color: var(--c-brand);
      border: var(--c-brand) 2px solid;
      line-height: 1;
      letter-spacing: 0;
      display: inline-block;
      margin-right: 6px;
      padding: 4px;
    }


    .unit {
      font-size: 0.6em;
      white-space: nowrap;
    }
  }
  
  .kaninfo {
    order: 999;
    background: #fad849;
    border-radius: 8px;
    & > div {
      padding: 40px 25px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      background: #fff2cc;
      border-radius: 999em;
      h3 {
        font-size: 22px;
        font-family: var(--f-notomin);
        font-weight: 600;
        text-align: center;
      }
      p {
        font-size: 16px;
        line-height: 1.6;
      }
    }
  }
}

@scope(.section-headline) {
  :scope {
    text-align: center;
    font-family: var(--f-notomin);
    font-size: 40px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }
  &::after {
    content: '';
    background: url(../img/headline.png) no-repeat 0 0 / contain;
    width: 303px;
    height: 49px;
    margin-bottom: 30px;
  }
}



.faq {
  padding: 40px 90px;
  background: #FFF;
  width: min(100%, 1180px);
  counter-reset: faqnum;
}

.faq-list[hidden],
.faq-more[hidden] {
  display: none;
}

.faq-more {
  margin-block-start: 34px;
  text-align: center;
}

.faq-more__button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: var(--c-brand);
  color: #FFF;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  min-width: 320px;
  padding: 14px 42px;
}

.faq-more__button:hover {
  opacity: .85;
}

.faq-more__button:focus-visible {
  outline: 2px solid var(--c-bk);
  outline-offset: 4px;
}


@scope(.faq-list) {
  :scope {
    &:not(:last-of-type) {
      background: url(../img/line.png) repeat-x left bottom;
    }
  }

  > summary {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: block;
    inline-size: 100%;
    padding: 24px 54px 24px 64px;
    position: relative;
    text-align: start;
    font: inherit;
    font-family: var(--f-notomin);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
  }

  > summary::-webkit-details-marker {
    display: none;
  }

  > summary::marker {
    content: "";
  }

  > summary:focus-visible {
    outline: 2px solid var(--c-bk);
    outline-offset: 4px;
  }

  > summary::before {
    counter-increment: faqnum;
    content: counter(faqnum);
    font-family: var(--f-lato);
    font-weight: 700;
    font-size: 20px;
    color: #FFF;
    width: 50px;
    height: 50px;
    background: var(--c-bk);
    border-radius: 100%;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 0;
    translate: 0 -50%;

  }

  > summary::after {
    content: "";
    inline-size: 12px;
    aspect-ratio: 1;
    border-block-end: 2px solid currentColor;
    border-inline-end: 2px solid currentColor;
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 20px;
    translate: 0 -50%;
    rotate: 45deg;
    transition: rotate 0.2s;
  }

  &[open] > summary::after {
    rotate: 225deg;
  }

  > .faq-answer {
    margin: 0;
    padding: 0 20px 26px 64px !important;
    font-size: 18px;
    line-height: 1.8;
  }
}

@scope(.caution-box) {
  :scope {
    margin: 60px auto;
    max-width: 880px;
    margin-inline:auto;
    border: 4px double #962222;
    padding: 24px 40px;
  }

  .ttl {
    font-weight: bold;
    font-size: 24px;
    margin: 0 auto 8px;
    text-align: center;
    color: #962222;
  }

  .body {
    h4 {
      position: relative;
      padding-left: 0.7em;
      &::before {
        content: '';
        width: 4px;
        height: 22px;
        background: var(--c-brand);
        display: inline-block;
        position: absolute;
        top: 4px;
        left: 0;
      }
      &:not(:first-of-type) {
        margin-top: 20px;
      }
    }
    ul {
      list-style-type: "・";
      padding-inline: 1em;
    }
  }
}

/* ボタン横幅調整 */
.anygift-gift-ui__container {
  width: 100% !important;
}

/* ボタン文言変更 */
.anygift-gift-ui__main-button { 
    text-indent: -9999px;
    position: relative;
}
.anygift-gift-ui__main-button:before { 
    content: 'eギフトを贈る' !important; 
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
    white-space: nowrap;
}

.ag-fixed {
  z-index: 10000;
}


.fb {
  font-weight: bold;
}
.c-rd {
  color: var(--c-rd);
}



ul.list {
  li {
    padding-left: 1em;
    position: relative;
    &::before {
      content: '';
      width: 4px;
      height: 4px;
      border-radius: 999em;
      background: #000;
      display: inline-block;
      position: absolute;
      top: .7em;
      left: .3em;
    }
  }
  padding-inline: 1em;
}
