@import url("_reset.css");
@import url("_vars.css");

html {
  width: 100%;
  font-size: 13px;
  scroll-behavior: smooth;
  background-color: #fcc564;
}


body {
  font-family: var(--base-font);
  line-height: 1.5;
  color: #231815;
  width: 100%;
  font-feature-settings: "palt";
  word-wrap: break-word;
}

a {
  text-decoration: underline;
  outline: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

img {
  vertical-align: bottom;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
}

p:not(:last-child) {
  margin-bottom: 0.6em;
}



main {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-color);
  padding-bottom: 50px;
  overflow: clip;
}

.introduction {
  position: relative;
  height: 3000px;
  opacity: 0;
  animation: fadeIn .8s .3s linear forwards;
  @media (min-width: 781px) {
    height: 5000px;
  }
  &.autoplay{
    height: 100vh;
  }

  .inner {
    padding: 50px 20px;
    position: sticky;
    top: 0;
    height: 100dvh;

    @media (min-width: 781px) {
      min-height: 700px;
    }
  }

  .catch {
    position: relative;
    z-index: 4;
    width: 55%;
    margin: 0 auto 30px;
    max-width: 340px;
    opacity: 0;
    transition: opacity .5s linear;

    .ready & {
      opacity: 1;
    }
  }

  .title {
    width: 92%;
    position: absolute;
    z-index: 5;
    left: 50%;
    transform: translate(-50%, 0);
    top: 20px;
    transition: all .8s .3s;

    .title01 {
      width: 78%;
      left: 0;
      transition: all .8s .3s;
    }

    .title02 {
      position: absolute;
      width: 20%;
      right: 0;
      bottom: 50%;
      transform: translate(0%, 32%);
      transition: all .8s .3s;

      /* width: 35%;
      right: 50%;
      bottom: 0;
      transform: translate(50%, 110%); */
    }

    .ready & {
      top: min(38vw, 170px);
      max-width: 540px;
      transition-delay: 0s;

      .title01 {
        width: 100%;
        transition-delay: 0s;
      }

      .title02 {
        width: 35%;
        right: 50%;
        bottom: 0;
        transform: translate(50%, 110%);
        transition-delay: 0s;
      }
    }
  }

  .ganta {
    position: absolute;
    z-index: 1;
    bottom: 50px;
    left: 50%;
    width: 48%;
    max-width: 200px;
    transform: translate(-50%, 0);

    img {
      transform-origin: bottom;
      filter: brightness(0);
      transform: scale(.4);
      /* scale: .4; */
    }
    &.active{
      img{
        filter: brightness(1);
        transform: scale(1);
        transform: translateY(-130px);
        transition: all 1.1s .1s;
      }
    }
  }

  .banners {
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }

  .banner {
    position: absolute;
    z-index: 3;
    width: 12%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 64px;

    &.active {
      .balloon {
        opacity: 1;
        transform: translateY(-13%);
      }

      .letters {
        path {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .sign {
        transform: translate(0%, 5%);
        opacity: 1;
      }
    }


    &.left {
      left: 10px;
      --delay: 0s;
    }

    &.right {
      right: 10px;
      --delay: .1s;
    }

    .balloon {
      transform: translateY(0);
      opacity: 0;
      transition: all .4s var(--delay);
    }

    .letters {
      width: 75%;
      display: block;
      margin: 0 auto;

      path {
        opacity: 0;
        transform: translateY(20px);
        transition: all .4s;
      }



      .cls-4 {
        fill: #eb6d9a;
        transition-delay: calc(.05s + var(--delay));
      }

      .cls-7 {
        fill: #006934;
        transition-delay: calc(.1s + var(--delay));
      }

      .cls-2 {
        fill: #036eb8;
        transition-delay: calc(.15s + var(--delay));
      }

      .cls-3 {
        fill: #956134;
        transition-delay: calc(.2s + var(--delay));
      }

      .cls-5 {
        fill: #f8b62d;
        transition-delay: calc(.25s + var(--delay));
      }

      .cls-1 {
        fill: #e83828;
        transition-delay: calc(.3s + var(--delay));
      }

      .cls-6 {
        fill: #2ea7e0;
        transition-delay: calc(.35s + var(--delay));
      }


    }

    .sign {
      width: 85%;
      transform: translate(0%, 15%);
      opacity: 0;
      transition: all .4s calc(.4s + var(--delay));
    }
  }

  .lights {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: hard-light;

    .light {
      position: absolute;
      top: 0;
      height: 100%;
      width: 100%;
      left: 0;
      opacity: 0;
      transition: opacity .4s;
      &.blue {
        background-color: #7ECEF4;
        clip-path: polygon(0 0, 20% 0, 85% 100%, 15% 100%);
        z-index: 1;
      }

      &.yellow {
        background-color: #FFF100;
        clip-path: polygon(40% 0, 60% 0, 85% 100%, 15% 100%);
        z-index: 3;
      }

      &.red {
        background-color: #F7C9DD;
        clip-path: polygon(80% 0, 100% 0, 85% 100%, 15% 100%);
        z-index: 2;
      }
    }

    &.active{
      .light{
        opacity: .8;
        &.red{
          transition-delay: .15s;
        }
        &.yellow{
          transition-delay: .3s;
        }
      }
    }
  }

  .lead {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    color: #fff;
    font-family: var(--serif-font);
    font-weight: 700;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;

    /* @media (min-width: 781px) {
      font-size: 18px;
    } */

    p {
      opacity: 0;
      transform: translateY(20px);
      margin-bottom: 0;
      transition: all .7s;
      --delay: .1s;

      &:nth-child(1) {
        transition-delay: calc(var(--delay) + .05s);
      }

      &:nth-child(2) {
        transition-delay: calc(var(--delay) + .1s);
      }

      &:nth-child(3) {
        transition-delay: calc(var(--delay) + .15s);
      }

      &:nth-child(4) {
        transition-delay: calc(var(--delay) + .2s);
      }

      &:nth-child(5) {
        transition-delay: calc(var(--delay) + .25s);
      }
    }

    &.active {
      p {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
}


.profile {
  padding: 0 5%;
  position: relative;

  .en {
    position: absolute;
    right: 5%;
    width: 4%;
  }

  .inner {
    background-color: #fff;
    border-radius: 20px;
    padding: 0 20px 20px;
    position: relative;
  }

  .person {
    .text {
      li {
        font-weight: bold;
        font-size: 15px;
        border-bottom: 1px solid #000;
        line-height: 1.2;
        padding-bottom: .25em;
        margin-bottom: .25em;

        @media (min-width: 481px) {
          font-size: 18px;
        }
      }
    }
  }

  .description {
    line-height: 1.6;

    /* font-size: 13px; */
    @media (min-width: 481px) {
      font-size: 1.15rem;
    }

    /* p{
      clear: both;
    } */
    em {
      color: #E60012;
      font-size: 110%;
      font-weight: bold;
      font-family: var(--serif-font);
    }

    &::after {
      clear: both;
    }
  }

  &.ganta {
    margin-top: 35%;

    &.animation {
      .en {
        img {
          opacity: 0;
          transform: translateY(30px);
        }
      }

      .headline {
        .name {
          opacity: 0;
          transform: translateY(10px);
        }
      }

      .person {
        .image {
          .character {
            opacity: 0;
          }

          .sign {
            opacity: 0;
            transform: translateY(10px);
          }

          .dog {
            opacity: 0;
            transform: translateX(80px);
          }
        }
      }

      /* .description {
        .photo {
          img {
            opacity: 0;
            rotate: 10deg;
            transform: translateY(30px);
            transform-origin: right bottom;
          }
        }
      } */
    }

    &.active {
      .en {
        img {
          opacity: 1;
          transform: translateY(0);
          transition: all .7s .1s;
        }
      }

      .headline {
        .name {
          opacity: 1;
          transform: translateY(0);
          transition: all .5s .1s;
        }
      }

      .person {
        .image {
          .character {
            opacity: 1;
            transition: opacity .5s .5s;

            img {
              animation: rotate .6s .4s linear;
            }
          }

          .sign {
            opacity: 1;
            transform: translateY(0);
            transition: all .5s .3s;
          }

          .dog {
            opacity: 1;
            transform: translateX(0);
            transition: transform 1.3s 1s linear, opacity .4s 1s;

            img {
              animation: tokotoko .6s linear 4;
            }
          }
        }
      }

      /* .description {
        .photo {
          img {
            opacity: 1;
            rotate: 0deg;
            transform: translateY(0);
            transition: all .5s 1.2s;
          }
        }
      } */
    }



    .en {
      transform: translate(105%, -50%);
    }

    .headline {
      position: absolute;
      top: 0;
      width: 60%;
      transform: translate(-10%, -68%);

      .catch {
        width: 60%;
        display: block;
      }

      .name {
        width: 82%;
        display: block;
        margin-left: auto;
      }
    }

    .person {
      position: relative;
      padding-top: 18%;
      margin-bottom: 1em;

      .text {
        width: 55%;
        padding-right: 30px;
      }

      .image {
        width: 45%;
        text-align: right;
        position: absolute;
        bottom: 0;
        right: 0;

        .character {
          width: 65%;
          margin-left: auto;
          transform: translateX(-10%);
        }

        .dog {
          position: absolute;
          top: 48%;
          left: 9%;
          width: 28%;
          z-index: 3;
        }


      }
    }

    .description {

      /* p{
        clear: both;
      } */
      .photo {
        float: left;
        width: 30%;
        margin-bottom: 20px;
        transform: translate(-23%, 10%);
        scale: 1.2;
        &.animation{
          img {
            opacity: 0;
            rotate: 10deg;
            transform: translateY(30px);
            transform-origin: right bottom;
          }
        }
        &.active{
          img {
            opacity: 1;
            rotate: 0deg;
            transform: translateY(0);
            transition: all .5s;
          }
        }
      }

      .veg {
        float: right;
        width: 25%;
        margin: 20px 0 20px 20px;
        /* margin-bottom: 20px; */
        /* transform: translate(-23%, 10%); */
        /* scale: 1.2; */
      }
    }

  }

  &.richard {
    margin-top: 20%;

    &.animation {
      .en {
        img {
          opacity: 0;
          transform: translateY(30px);
        }
      }

      .headline {
        .sign {
          img {
            opacity: 0;
            transform: translateY(10px);
          }
        }

        .name {
          img {
            opacity: 0;
            transform: translateY(10px);
          }
        }
      }

      .description {
        .character {
          opacity: 0;
        }
      }

    }

    &.active {
      .en {
        img {
          opacity: 1;
          transform: translateY(0);
          transition: all .7s .1s;
        }
      }

      .headline {
        .sign {
          img {
            opacity: 1;
            transform: translateY(0);
            transition: all .5s .3s;
          }
        }

        .name {
          img {
            opacity: 1;
            transform: translateY(0);
            transition: all .5s .1s;
          }
        }
      }

      .description {
        .character {
          opacity: 1;
          transition: opacity .5s .5s;

          img {
            animation: rotate .6s .4s linear;
          }
        }
      }
    }

    .en {
      transform: translate(105%, 50%);
    }

    .headline {
      position: absolute;
      top: 0;
      left: 5%;
      width: 72%;
      transform: translate(0, -25%);

      .sign {
        width: 55%;
        display: block;
      }

      .name {
        transform: translate(5%, -30%);
      }
    }

    .person {
      position: relative;
      padding-top: 32%;
      margin-bottom: 1em;

      .text {
        width: 55%;
        padding-right: 30px;
      }
    }

    .description {
      p {
        position: relative;
      }

      .character {
        display: inline;
        float: right;
        width: 30%;
        margin: -100px 0 10px 0px;
        transform: translate(10%, 0);
        /* scale: 1.2; */
      }

      .rice {
        position: absolute;
        display: block;
        width: 10%;
        left: 63%;
        top: 0;
        transform: translateY(-40%);

        img {
          width: 100%;
        }
      }

      .michael {
        float: right;
        width: 25%;
        margin: -10px 0 20px 20px;
        position: relative;
        padding-top: 10px;

        .name {
          position: absolute;
          width: 50%;
          top: 0;
          right: 0;
          transform: translate(15%, 0);
        }

        .dog {
          width: 90%;
        }
        &.animation{
          opacity: 0;
          transform: translateX(100%);
          .name {
            opacity: 0;
          }
        }
        &.active{
          opacity: 1;
          transform: translateX(0);
          transition: transform 1.3s linear, opacity .4s;
          
          .dog {
            animation: tokotoko .6s linear 3;
          }

          .name {
            opacity: 1;
            transition: all .3s 2s;
          }
        }

      }
    }

  }
}

.family {
  margin-top: 30%;
  padding: 0 5%;
  position: relative;

  &.animation {
    .headline {
      .title {
        opacity: 0;
        transform: translateY(10px);
      }
    }

    .genta {
      img {
        opacity: 0;
        scale: .8;
      }
    }

  }

  &.active {
    .headline {
      .title {
        opacity: 1;
        transform: translateY(0);
        transition: all .7s .1s;
      }
    }

    .genta{
      img {
        opacity: 1;
        scale: 1;
        transition: all .4s .3s cubic-bezier(.43, 1.51, .75, 1.2);
      }
    }

    .ganta {
      img {
        transition-delay: .4s;
      }
    }

    .richard {
      img {
        transition-delay: .5s;
      }
    }
  }


  .inner {
    background-color: #fff;
    padding: 10px;
    position: relative;
    background: repeating-linear-gradient(-60deg,
        /* 斜め45度 */
        #F4E5A0,
        /* 赤 */
        #F4E5A0 7px,
        /* 10pxの幅 */
        #fff 7px,
        /* 緑 */
        #fff 14px
        /* 10pxごとに色が切り替わる */
      );
  }

  .frame {
    border: 2px dotted #E60012;
    border-top: none;
    padding: 20px 10px;
    position: relative;

    &::before,
    &::after {
      content: '';
      position: absolute;
      top: 0;
      width: 15%;
      height: 2px;
      border-top: 2px dotted #E60012;
    }

    &::before {
      left: 0;
    }

    &::after {
      right: 0;
    }
  }

  .headline {
    position: absolute;
    top: 0;
    width: 90%;
    left: 50%;
    transform: translate(-50%, -80%);

    .catch {
      width: 100%;
      display: block;
    }

    .title {
      width: 70%;
      display: block;
      margin-inline: auto;
    }
  }

  .genta {
    position: absolute;
    z-index: 2;
    width: 25%;
    top: 20%;
    right: 22%;
    transform: translate(50%, -50%);
  }

  .balloon {
    position: absolute;
    padding: 0 30px 5px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    width: 64%;
    aspect-ratio: 400 / 250;
    top: 6%;
    right: 27%;
    background: url(../img/balloon.svg) center/contain no-repeat;
    font-size: 10px;

    @media (min-width: 481px) {
      font-size: 12px;
      width: 60%;
      padding: 0 30px 5px 25px;
    }
  }

  .ganta {
    position: absolute;
    z-index: 2;
    width: 27%;
    bottom: 8%;
    left: 11%;
    transform: translate(-50%, 0%);
    &.animation{
      img {
        opacity: 0;
        scale: .8;
      }
    }
    &.active{
      img {
        opacity: 1;
        scale: 1;
        transition: all .4s .1s cubic-bezier(.43, 1.51, .75, 1.2);
      }
    }
  }

  .richard {
    position: absolute;
    z-index: 2;
    width: 27%;
    bottom: 8%;
    left: 50%;
    transform: translate(-50%, 0%);
    &.animation{
      img {
        opacity: 0;
        scale: .8;
      }
    }
    &.active{
      img {
        opacity: 1;
        scale: 1;
        transition: all .4s .2s cubic-bezier(.43, 1.51, .75, 1.2);
      }
    }
  }
}

.lineup {
  margin-top: 15%;
  padding: 0 5%;
  position: relative;
  .logo {
    width: 55%;
    margin: 0 auto;

    .title02 {
      display: block;
      width: 40%;
      margin: 0 auto;
    }
  }

  .headline {
    font-family: var(--serif-font);
    font-weight: bold;
    text-align: center;
    font-size: 20px;
    position: relative;

    /* margin-bottom: 20px; */
    @media (min-width: 481px) {
      font-size: 24px;
    }

    &::before,
    &::after {
      content: '';
      position: absolute;
      width: 25%;
      top: 50%;
      border-top: 2px dotted #fff;
    }

    &::before {
      left: 0;
    }

    &::after {
      right: 0;
    }
  }

  .headline.online {
    margin-top: 20px;
    &::before,
    &::after {
      content: '';
      position: absolute;
      width: 15%;
      top: 50%;
      border-top: 2px dotted #fff;
    }
  }

  .item {
    border: 3px solid #fff;
    padding: 0 15px 15px;
    position: relative;
    margin-top: 70px;
    &.animation {
      .illust {
        img {
          opacity: 0;
          scale: .7;
        }
      }

      .photoL {
        li {
          &:first-child {
            img {
              opacity: 0;
              transform: translate(20px, 30px);
              rotate: 5deg;
            }
          }

          &:nth-child(2) {
            img {
              opacity: 0;
              transform: translate(-20px, 30px);
              rotate: -5deg;
            }
          }
        }
      }

      .photoR {
        li {
          img {
            opacity: 0;
            transform: translateY(30px);
          }
        }
      }
    }

    &.active {
      .illust {
        img {
          opacity: 1;
          scale: 1;
          transition: all .3s cubic-bezier(.85, 2.35, .71, 1);
        }
      }

      .illust01 {
        img {
          transition-delay: .1s;
        }
      }

      .illust02 {
        img {
          transition-delay: .2s;
        }
      }

      .illust03 {
        img {
          transition-delay: .6s;
        }
      }

      .illust04 {
        img {
          transition-delay: .3s;
        }
      }

      .illust05 {
        img {
          transition-delay: .5s;
        }
      }

      .illust06 {
        img {
          transition-delay: .4s;
        }
      }

      .photoL {
        li {
          &:first-child {
            img {
              opacity: 1;
              transform: translate(0, 0);
              rotate: 0deg;
              transition: all .6s .3s;
            }

          }

          &:nth-child(2) {
            img {
              opacity: 1;
              transform: translate(0, 0);
              rotate: 0deg;
              transition: all .6s .4s;
            }
          }
        }
      }
      .photoR {
        li {
          img {
            opacity: 1;
            transform: translateY(0);
            transition: all .5s .5s;
          }
          &:nth-child(2){
            img{
              transition-delay: .6s;
            }
          }
          &:nth-child(3){
            img{
              transition-delay: .7s;
            }
          }
          &:nth-child(4){
            img{
              transition-delay: .8s;
            }
          }
        }
      }
    }




    .title {
      height: 28px;
      text-align: center;
      transform: translateY(-50%);

      img {
        height: 100%;
      }
    }

    .description {
      font-weight: bold;
      color: #fff;
      margin-bottom: 15px;

      @media (min-width: 481px) {
        font-size: 1.15rem;
      }
    }

    .illust {
      position: absolute;
    }

    .photos {
      display: flex;
      align-items: center;
      /* justify-content: flex-end; */
      justify-content: space-between;
    }

    &.deer {
      background-color: #61a171;
      margin-top: 40px;

      .description {
        padding-left: 18%;
      }

      .illust01 {
        top: 0;
        left: 0;
        width: 22%;
        transform: translate(-20%, 10%);
      }

      .illust02 {
        top: 0;
        right: 10%;
        width: 13%;
        transform: translate(50%, -60%);
      }

      /* .photos{
        justify-content: space-between;
      } */
      .photoL {
        width: 50%;
        display: grid;
        grid-template-columns: 1fr 1fr;

        li {
          &:first-child {
            rotate: -15deg;
            transform: translate(-25%, -5%);
            scale: 1.1;
          }

          &:nth-child(2) {
            rotate: 10deg;
            scale: 1.05;
          }
        }
      }

      .photoR {
        width: calc(50% - 15px);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
      }
    }

    &.meat {
      background-color: #ef9a5d;

      .description {
        width: 70%;
        margin-inline: auto;
      }

      .illust01 {
        top: 0;
        left: 12%;
        width: 14%;
        transform: translate(-50%, -50%);
      }

      .illust02 {
        top: 60px;
        left: 5%;
        width: 8%;
        transform: translate(-50%, -50%);
      }

      .illust03 {
        top: 0;
        right: 12%;
        width: 12%;
        transform: translate(50%, -50%);
      }

      .illust04 {
        top: 70px;
        right: 5%;
        width: 16%;
        transform: translate(50%, -50%);
      }

      .photoL {
        width: 59%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0 10px;

        li {
          &:first-child {
            rotate: -10deg;
            /* transform: translate(-25%, -5%); */
          }

          &:nth-child(2) {
            /* rotate: 10deg; */
            transform: translateX(15%);
          }
        }
      }

      .photoR {
        width: 35%;
      }
    }

    &.fish {
      background-color: #689ccc;

      .description {
        width: 70%;
        margin-inline: auto;
      }

      .illust01 {
        top: 0;
        left: 10%;
        width: 18%;
        transform: translate(-50%, -50%);
      }

      .illust02 {
        top: 50px;
        left: 5%;
        width: 19%;
        transform: translate(-50%, -50%);
      }

      .illust03 {
        top: 100px;
        left: 3%;
        width: 11%;
        transform: translate(-50%, -50%);
      }

      .illust04 {
        top: 0;
        right: 12%;
        width: 16%;
        transform: translate(50%, -35%);
      }

      .illust05 {
        top: 45px;
        right: 4%;
        width: 18%;
        transform: translate(50%, -50%);
      }

      .illust06 {
        top: 105px;
        right: 13%;
        width: 19%;
        transform: translate(50%, -50%);
      }

      .photoL {
        width: 59%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0 10px;

        li {
          &:first-child {
            /* rotate: -10deg; */
            /* transform: translate(-25%, -5%); */
            scale: 1.05;
            transform: translateY(3%);
          }

          &:nth-child(2) {
            /* rotate: 10deg; */
            transform: translateX(15%);
          }
        }
      }

      .photoR {
        width: 35%;
      }
    }

    &.snack {
      background-color: #ea91a4;

      .description {
        width: 70%;
        margin-inline: auto;
      }

      .illust01 {
        top: 0;
        left: 5%;
        width: 20%;
        transform: translate(-50%, -30%);
      }

      .illust02 {
        top: 90px;
        left: 4%;
        width: 12%;
        transform: translate(-50%, -50%);
      }

      .illust03 {
        top: 0;
        right: 10%;
        width: 12%;
        transform: translate(50%, -50%);
      }

      .illust04 {
        top: 50px;
        right: 5%;
        width: 17%;
        transform: translate(50%, -50%);
      }

      .illust05 {
        top: 110px;
        right: 3%;
        width: 11%;
        transform: translate(50%, -50%);
      }

      .photoL {
        width: 55%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-right: 15px;

        li {
          &:first-child {
            /* rotate: -10deg; */
            /* transform: translate(-25%, -5%); */
            scale: .9;
            transform: translate(10%, -6%);
          }

          &:nth-child(2) {
            /* rotate: 10deg; */
            transform: translateX(15%);
          }
        }
      }

      .photoR {
        width: 44%;
      }
    }
  }
}

/*オンラインストア追加分*/
.lineup .item.store {margin-top: 15px;background-color: #f4e5a0;display: flex;justify-content: space-between;flex-wrap: wrap;padding: 15px 15px;}
.store01,.store02,.store03,.store04,.store05{opacity: 0;transition: all .8s cubic-bezier(.85, 2.35, .71, 1);filter: drop-shadow(3px 3px 3px #aaa);}
.lineup .store>div{width: 49%;background: #fff;padding: 10px 20px;border-radius: 5px;margin-bottom: 5px;}
.store {
      &.active{
        .store01{
          opacity: 1;
          transition-delay: .2s;
        }
        .store02{
          opacity: 1;
          transition-delay: .4s;
        }
        .store03{
          opacity: 1;
          transition-delay: .6s;
        }
        .store04{
          opacity: 1;
          transition-delay: .8s;
        }
        .store05{
          opacity: 1;
          transition-delay: 1s;
        }
      }
}
.store.active .store01:hover,.store.active .store02:hover,.store.active .store03:hover,.store.active .store04:hover,.store.active .store05:hover{filter: drop-shadow(1px 1px 1px #aaa);transition-delay: 0.001s;}
 /*会社概要*/
.company{padding: 0 5%;margin: 40px 0;}
.company .inner{background: #fff;padding: 10px;border-radius: 20px;}
.company table{padding: 10px;}
.company .headline {
  font-family: var(--serif-font);
  font-weight: bold;
  text-align: center;
  font-size: 20px;
  position: relative;
  margin-bottom: 15px;
  @media (min-width: 481px) {
    font-size: 24px;
  }

  &::before,
  &::after {
    content: '';
    position: absolute;
    width: 25%;
    top: 50%;
    border-top: 2px dotted #fff;
  }
  &::before {
    left: 0;
  }
&::after {
    right: 0;
  }
}

 .company table {
  border-collapse: collapse;
  width: 100%;
  max-width: 700px;
  font-size: 13px;
  @media (min-width: 481px) {
    font-size: 1.15rem;
  }
}
.company table th,  .company table td {
  border: 2px solid #fff;
  background-color: #fff7d4;
  border-radius: 0 10px 10px 0;
  padding: 1em;
  align-content: center;
}
.company table th {
  background-color: #231815;
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-radius: 10px 0 0 10px;
  width: 20%;
  min-width: 4em;
  position: relative;
}
.company table th::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left: 10px solid #231815;
  z-index: 2;
}
 .company table th::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 2px);
  transform: translateY(-50%);
  border: 12px solid transparent;
  border-left: 12px solid #fff;
  z-index: 1;
}
/*
@media (min-width: 481px) {}
@media (hover: hover) and (pointer: fine) {}
*/

/* ハンバーガーメニュー */
/* Nav styles */
.menu ul {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: fixed;
  top: 0;
  left: -100vw; /* Slide-in from the left */
  width: 100vw;
  height: 100vh; /* Full view height */
  z-index: 10;
  font-family: var(--serif-font);
  font-weight: 800;
}
.menu li {
  background-image: linear-gradient(60deg, #f39800 0%, #ff9100 100%);
  border-bottom: 1px solid #3b3b3b;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  height: calc(100vh / 5); /* 5つのメニューアイテムの場合 */
  width: 100%; /* フル幅 */
  position: relative; /* aタグを位置決めするために必要 */
}

.menu li a {
  position: absolute; /* 親要素のサイズに合わせる */
  top: 0; /* 上端に合わせる */
  left: 0; /* 左端に合わせる */
  width: 100%; /* 親要素の幅いっぱいに広げる */
  height: 100%; /* 親要素の高さいっぱいに広げる */
  display: flex; /* 中央にテキストを配置 */
  justify-content: center;
  align-items: center;
  color: #fff;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s; /* アニメーションを追加 */
}

.menu li a:hover {
  background-image: linear-gradient(60deg, rgba(240, 196, 121, 0.3) 0%, rgba(245, 195, 129, 0.3) 100%); /* 背景色を薄く */
}



/* メニューのアニメーション */
.menu li {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu.open li {
  transform: translateX(100vw); /* 開く時のスライドイン */
}

/* 上から順番に遅延を設定 0.25足していく*/
.menu li:nth-of-type(1) {
  transition-delay: 0s;
}

.menu li:nth-of-type(2) {
  transition-delay: 0.025s;
}

.menu li:nth-of-type(3) {
  transition-delay: 0.05s;
}

.menu li:nth-of-type(4) {
  transition-delay: 0.075s;
}

.menu li:nth-of-type(5) {
  transition-delay: 0.1s;
}

.menu li:nth-of-type(6) {
  transition-delay: 0.125s;
}

.menu li:nth-of-type(7) {
  transition-delay: 0.15s;
}

.menu li:nth-of-type(8) {
  transition-delay: 0.175s;
}
.menu li:nth-of-type(9) {
  transition-delay: 0.2s;
}
.menu li:nth-of-type(10) {
  transition-delay: 0.225s;
}
.menu li:nth-of-type(11) {
  transition-delay: 0.275s;
}
/* スマホサイズ時の閉じるアニメーション */
@media (max-width: 768px) {
  /* メニューが閉じる時に上から順番に戻る */
  .menu.open li:nth-of-type(1) {
    transition-delay: 0s;
  }

  .menu.open li:nth-of-type(2) {
    transition-delay: 0.025s;
  }

  .menu.open li:nth-of-type(3) {
    transition-delay: 0.05s;
  }

  .menu.open li:nth-of-type(4) {
    transition-delay: 0.075s;
  }

  .menu.open li:nth-of-type(5) {
    transition-delay: 0.1s;
  }

  .menu.open li:nth-of-type(6) {
    transition-delay: 0.125s;
  }

  .menu.open li:nth-of-type(7) {
    transition-delay: 0.15s;
  }

  .menu.open li:nth-of-type(8) {
    transition-delay: 0.175s;
  }
  .menu li:nth-of-type(9) {
    transition-delay: 0.2s;
  }
  
  .menu li:nth-of-type(10) {
    transition-delay: 0.225s;
  }
  .menu li:nth-of-type(11) {
    transition-delay: 0.275s;
  }
}
@media (max-width: 1000px) {
  .menu ul {
    flex-direction: column;
  }
}

.hamburger {
  background-color: #fff;
  border-radius: 50%;
  position: fixed;
  top: 20px;
  right: 20px;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  z-index: 999;
}

.hamburger:focus {
  outline: 0;
}

.hamburger .line {
  background-color: #000;
  display: block;
  margin: 4px auto;
  height: 2px;
  width: 20px;
  transition: all 0.1s ease-in;
}

.hamburger.open .line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open .line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.padded-section {
  scroll-margin-top: 150px; /* スクロール時の余白を確保 */
}

@media (max-width: 768px) {
  .padded-section {
      scroll-margin-top: 120px;
  }
}

/********* 選ばれる理由 **********/
#ganko_chosen .title {
  position: relative;
  margin-bottom: 5%;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.riyuu_ganta {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 120px;
  transform: translateX(-10%);
  opacity: 0;
  transition: opacity 0.5s 0.5s;

  img {
    animation: rotate 0.6s 0.4s linear both;
    display: block;
    width: 100%;
  }
}

.title.animate .riyuu_ganta {
  opacity: 1;
}

@keyframes rotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.riyuu_box {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;

  &.animate {
    opacity: 1;
    transform: translateY(0);
  }

  .illust {
    img {
      opacity: 0;
      transform: scale(0.95);
      transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);

      .riyuu_box.animate & {
        opacity: 1;
        transform: scale(1);
      }

       &.slide-in-left {
        transform: translateX(-60px);
        .riyuu_box.animate & {
          transform: translateX(0);
        }
      }

      &.slide-in-right {
        transform: translateX(60px);
        .riyuu_box.animate & {
          transform: translateX(0);
        }
      }

      &.zoom-in {
        transform: scale(0.9);
        .riyuu_box.animate & {
          transform: scale(1);
        }
      }

      &.rotate-clockwise {
        transform: rotate(720deg);
        .riyuu_box.animate & {
          transform: rotate(0deg);
        }
      }

      &.swing-in-right {
        opacity: 0;
        transform: translateX(100%) rotate(15deg);
        .riyuu_box.animate & {
          animation: swingInRight 1s ease-out forwards;
        }
      }
    }
  }
}

@keyframes swingInRight {
  0% { opacity: 0; transform: translateX(100%) rotate(15deg); }
  40% { opacity: 1; transform: translateX(-10px) rotate(-10deg); }
  70% { transform: translateX(5px) rotate(5deg); }
  100% { transform: translateX(0) rotate(0); }
}

/* 初期状態 */
.title-wrapper {
  opacity: 0;
  transform: translateY(20px); /* 初期位置を少し下に設定 */
  transition: opacity 1s ease, transform 1s ease;
}

/* アニメーションが始まる時 */
.title-wrapper.animate {
  opacity: 1;
  transform: translateY(0); /* 元の位置に戻す */
}

/* title_img と riyuu_ganta のアニメーション */
.title_img, .riyuu_ganta {
  opacity: 0;
  transform: translateY(30px); /* 初期位置 */
  transition: opacity 1s ease, transform 1s ease;
}

.title_img.animate, .riyuu_ganta.animate {
  opacity: 1;
  transform: translateY(0); /* 元の位置に戻す */
}

/* 追加のスタイル（必要に応じて） */
.riyuu_ganta {
  position: absolute;
  top: 54px;
  right: -16px;
  width: 120px;
  transform: translateY(30px) rotateY(0deg); /* 初期状態 */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.riyuu_ganta.animate {
  opacity: 1;
  transform: translateY(0) rotateY(360deg); /* 回転 */
}

@media (max-width: 767px) {
  .riyuu_ganta {
    bottom: -6px;
    right: -16px;
    width: 105px;
  }

}
/* ========== レイアウト調整系はそのままでOK ========== */
#ganko_chosen .inner {
  position: relative;
}

.riyuu_box {
  width: 100%;
  position: relative;
  padding: 5% 0;
}
.riyuu_ils01, .riyuu_ils02, .riyuu_ils03_1,
.riyuu_ils03_2, .riyuu_ils04, .riyuu_ils05 {
  position: absolute;
}
.riyuu_ils01 {
  top: 12px;
  right: -14px;
  width: 225px;
}
.riyuu_ils02 {
  top: 29px;
  left: -14px;
  width: 193px;
}
.riyuu_h {
  margin-top: 5%;
}
.riyuu_ils03_1 {
  top: 51px;
  right: 0;
  width: 187px;
}
.riyuu_ils03_2 {
  bottom: 0;
  right: 0;
  width: 383px;
}
.riyuu_ils04 {
  top: 41px;
  left: -11px;
  width: 227px;
}
.riyuu_ils05 {
  top: 41px;
  right: -11px;
  width: 210px;
}

@media (max-width: 767px) {

  .riyuu_box {
    width: 100%;
    position: relative;
    padding: 6% 0;
  }
  .riyuu_h {
    margin-top: 0;
  }
  .riyuu_ils01 {
    top: 12px;
    right: -14px;
    width: 200px;
  }
  .riyuu_ils02 {
    top: 9px;
    left: -14px;
    width: 170px;
  }

  .riyuu_ils03_1 {
    top: 47px;
    right: 0;
    width: 159px;
  }
  .riyuu_ils03_2 {
    bottom: 0;
    right: 0;
    width: 339px;
  }
  .riyuu_ils04 {
    top: 41px;
    left: -11px;
    width: 198px;
  }
  .riyuu_ils05 {
    top: 41px;
    right: -11px;
    width: 190px;
  }

}
/********* がんたを探せ **********/
.answer-img-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease;
}

.answer-img-wrapper.show {
  max-height: 500px; /* 答え画像の高さに合わせて調整 */
  opacity: 1;
}
/* 共通スタイル */
.ganta_s {
  border-radius: 15px;
  background: #FFF;
  padding: 5%;
  margin: 5%;
}
.ganta_sagase_ttl {
  margin-bottom: 5%;
}

/* 問題画像 */
.riddle-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  transition: all 0.3s ease;
  cursor: pointer;
}
@media (min-width: 768px) {
  .riddle-image {
    max-width: 100%;
  }
}

/* 答え見るボタン */
.answer-label {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  background: #0ca239;
  color: #fff;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 0 #8e3838;
  user-select: none;
}
.answer-label:active {
  top: 2px;
  box-shadow: 0 0 0 #8e3838;
}
.answer-label-wrapper {
  text-align: right;
  margin-top: 20px;
}

/* スマホ用答え画像（初期非表示） */
.answer-img {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s ease;
  padding-top: 5%;
}
.popup-toggle:checked ~ .mobile-only {
  max-height: 1000px;
  opacity: 1;
}

/* モーダル非表示状態 */
.popup-toggle {
  display: none;
}
.popup-modal {
  display: none;
}

/* モーダル表示：問題用と答え用を分けて制御 */
#show-question:checked ~ .popup-modal.for-question {
  display: flex;
}
#answer-popup:checked ~ .popup-modal.for-answer {
  display: flex;
}

/* モーダル本体（PCのみ） */
@media (min-width: 768px) {
  .popup-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .popup-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
  }

  .popup-content img {
    max-height: 80vh;
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
  }

  .popup-close {
    position: fixed;
    inset: 0;
    cursor: pointer;
  }

  .mobile-only {
    display: none;
  }
}

/* モバイルではモーダル非表示（答え画像は展開） */
@media (max-width: 767px) {
  .popup-modal {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }
  label[for="show-question"] {
    pointer-events: none;
  }
}
/* ポップアップの閉じるボタン */
.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #333;
  background: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 36px;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}

.popup-close-btn:hover {
  background: #f0f0f0;
}

.riddle-label {
  position: relative;
  display: inline-block;
}

.riddle-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9em;
  padding: 4px 8px;
  border-radius: 5px;
  pointer-events: none;
}
/* 初期状態では非表示 */
.pc-only {
  display: none;
}
.mobile-only {
  display: none;
}

/* スマホ用のみ表示 */
@media (max-width: 767px) {
  .mobile-only {
    display: block;
  }
}

/* PC用のみ表示 */
@media (min-width: 768px) {
  .pc-only {
    display: inline-block; /* または block */
  }
}

#machigaisagashi.ganta_s {
  background: none;
  padding: 0;
  margin: 5%;
}

#machigaisagashi.ganta_s img{

  border-radius: 15px;
}