@charset "UTF-8";

/* common */

body {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
}

#main p {
  font-size: 16px;
  text-align: center;
}

/* mainVisual（新LP用・必要に応じて追記） */

.mainVisual {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
}

.mainVisual h1 {
  margin: 0;
}

.mainVisual h1 img {
  display: block;
  width: 100%;
}

.mainVisual_copy {
  position: absolute;
  top: 52%;
  left: 65%;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  transform: translate(-50%, -50%);
  text-align: center;
}

.mainVisual_copy img {
  display: block;
  width: 100%;
  max-width: min(70.3125vw,1350px);
  margin: 0 auto;
  opacity: 0;
  filter: blur(20px);
  transform: scale(1.04);
  will-change: opacity, filter, transform;
  animation: appear 3.0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes appear {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.anker_link {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(../img/bg_01.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  height: 428px;
}
.anker_link #anker01 {
  margin-left: 10px;
}
.anker_link #anker02 {
  margin: 0 140px;
}


.menuInner {
  padding-bottom: 110px;
  background-size: contain;
}
.menuInner ul {
  overflow: hidden;
}
.menuInner ul img {
  max-width: 64%;
  margin: 0 auto;
  display: block;
}

.menuInner ul li {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menuInner ul li#menu01 {
  background-image: url(../img/bg_02.jpg);
  padding: min(6.145833333333333vw,118px) 0 min(7.708333333333333vw,148px);
}
.menuInner ul li#menu02 {
  background-image: url(../img/bg_03.jpg);
  padding: min(6.770833333333333vw,130px) 0 min(7.135416666666667vw,137px);
}
.menuInner ul li#menu03 {
  background-image: url(../img/bg_04.jpg);
  padding: min(7.239583333333333vw,139px) 0 min(7.135416666666667vw,137px);
}

.menuInner ul li .illust01 {
  position: absolute;
  right: -50px;
  top: min(9.895833333333333vw,190px);
}
.menuInner ul li .illust02 {
  position: absolute;
  left: -70px;
  top: min(9.635416666666667vw,185px);
}
.menuInner ul li .illust03 {
  position: absolute;
  right: -60px;
  top: min(9.895833333333333vw,190px);
}
.menuInner ul li > div img {
  max-width: 100%;
  padding-left: 0;
}
.menuInner ul li#menu01 .shake img {
  width: min(10.98958333333333vw,211px);
}
.menuInner ul li#menu02 .shake img {
  width: min(12.55208333333333vw,241px);
}
.menuInner ul li#menu03 .shake img {
  width: min(11.30208333333333vw,217px);
}

/* キャラクターが歩く背景のステージ */
.stage {
  position: absolute;
  width: 100%;
  height: 117px;
  overflow: hidden;
  bottom: 0;
  left: 0;
}

/* 歩くキャラクターの共通スタイル */
.walker-gif {
  position: absolute;
  bottom: 0;
  width: 131px;
  height: 117px;
  background-image: url('../img/anime_oyako.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  
  /* 初期状態は全員画面の外に隠し、アニメーションが始まるまで動かさない */
  opacity: 0; 
}
/* ===================================================
   タイムライン設計（総再生時間: 36秒）
=================================================== */

/* 1つ目のステージ：0秒〜12秒（左から右） */
.stage01 {
  left: -131px;
  /* animation: アニメーション名 / 総時間(36秒) / 速度 / 遅延 / ループ */
  animation: walk-left-to-right 36s linear 0s infinite;
}

/* 2つ目のステージ：12秒〜24秒（右から左・反転） */
.stage02 {
  right: -131px;
  /* 画像を左右反転させる */
  transform: scaleX(-1); 
  /* 12秒遅らせてスタート */
  animation: walk-right-to-left 36s linear 12s infinite;
}

/* 3つ目のステージ：24秒〜36秒（左から右） */
.stage03 {
  left: -131px;
  /* 24秒遅らせてスタート */
  animation: walk-left-to-right 36s linear 24s infinite;
}


/* ===================================================
   アニメーションのキーフレーム（@keyframes）
=================================================== */

/* 【パターンA】左から右へ進む（12秒間だけ動き、残りの24秒は隠れる） */
@keyframes walk-left-to-right {
  0% {
    left: -131px;
    opacity: 1;
  }
  33.33% { /* 36秒の1/3 = 12秒の地点 */
    left: 100%;
    opacity: 1;
  }
  33.34%, 100% { /* 残りの時間は画面外で待機（非表示） */
    left: -131px;
    opacity: 0;
  }
}

/* 【パターンB】右から左へ進む（12秒間だけ動き、残りの24秒は隠れる） */
@keyframes walk-right-to-left {
  0% {
    right: -131px;
    opacity: 1;
  }
  33.33% { /* 開始（遅延後）から12秒かけて左端へ */
    right: 100%;
    opacity: 1;
  }
  33.34%, 100% { /* 残りの時間は画面外で待機（非表示） */
    right: -131px;
    opacity: 0;
  }
}

/* menuArea（新LP用・必要に応じて追記） */
.menuArea {
  position: relative;
  background-size: cover;
  padding-bottom: 20px;
}

.menuMain {
  position: relative;
  z-index: 2;
  width: 65%;
  margin: 0 auto;
  padding-top: 170px;
}

.menuMain img {
  width: 100%;
}

/* ブルブル */
.shake {
    animation:shake 0.2s linear infinite;
}
@keyframes shake {
    0%   { transform:translate(0, 0) rotate(0); }
    25%  { transform:translate(.5px, 0) rotate(-1deg); }
    50%  { transform:translate(0, -.5px) rotate(0); }
    75%  { transform:translate(-.5px, 0) rotate(1deg); }
    100% { transform:translate(0, .5px) rotate(0); }
}

.bnr {
  background-color: #fff;
  padding: 80px 0;
  text-align: center;
}

.linkBtn {
  display: block;
  width: 318px;
  margin: 20px auto 0;
  padding: 16px 0;
  border-radius: 60px;
  background-image: url(../img/bg_btn.png);
  color: #fff;
  font-size: 20px;
  text-align: center;
}

/* linksArea */

.linksArea h2 {
  margin: 0 0 16px;
  font-size: 24px;
  text-align: center;
}

.linksArea .online {
  margin: 32px auto;
  max-width: 980px;
}

.linksArea .online ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.linksArea .online li {
  width: 24.5%;
}

.linksArea .online li img {
  border-radius: 5px;
}

.linksArea .variousLinks {
  margin-bottom: 40px;
}

.linksArea .mobileOrder {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.linksArea .shop {
  padding: 50px 0;
  background-color: #fff;
  text-align: center;
}

.linksArea .shop img {
  margin-top: 16px;
}

/* footer */

#footer {
  padding-top: 40px;
}

/* p-gotop */

.p-gotop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s ease;
}

.p-gotop.is-show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.p-gotop.is-hide {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}


@media only screen and (min-width: 992px) {
  .menuInner ul li .menu {
    position: relative;
    max-width: min(41.04166666666667vw,788px);
    margin: 0 auto;
  }

  .sp_view {
    display: none !important;
  }
}

@media screen and (max-width: 991px) {
  .pc_view {
    display: none !important;
  }

  .anker_link {
    background: url(../img/bg_01_sp.jpg);
    height: 136px;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .anker_link #anker01 {
    margin-left: 5px;
  }
  .anker_link #anker02 {
    margin: 0 22px;
  }


  .menuInner {
    padding-bottom: 0;
  }
  .menuInner ul img {
    max-width: 100%;
  }

  .menuInner ul li {
    background-size: cover;
  }

  .menuInner ul li#menu01 {
    background-image: url(../img/bg_02_sp.jpg);
    padding: 40px 0 50px;
  }
  .menuInner ul li#menu02 {
    background-image: url(../img/bg_03_sp.jpg);
    padding: 50px 0 34px;
  }
  .menuInner ul li#menu03 {
    background-image: url(../img/bg_04_sp.jpg);
    padding: 54px 0 45px;
  }

  .menuInner ul li .illust01 {
    right: 5px;
    top: 140px;
  }
  .menuInner ul li .illust02 {
    left: 0;
    top: 155px;
  }
  .menuInner ul li .illust03 {
    right: 5px;
    top: 150px;
  }
  .menuInner ul li#menu01 .shake img {
    width: 106px;
  }
  .menuInner ul li#menu02 .shake img {
    width: 119px;
  }
  .menuInner ul li#menu03 .shake img {
    width: 108px;
  }

  
  /* キャラクターが歩く背景のステージ */
  .stage {
    height: 117px;
  }
  /* 歩くキャラクターのスタイル（GIF用） */
  .walker-gif {
    left: -60px;
    width: 60px;
    height: 47px;
  }
  @keyframes walk-move {
    0% {
      left: -60px;
    }
    100% {
      left: 100%;
    }
  }

  .menuArea {
    padding-bottom: 40px;
  }

  .menuAnime__birdWrap {
    width: 25%;
  }

  .linksArea .online ul {
    margin: 32px 6px;
  }

  .linksArea .online li.w100 {
    width: 100%;
    margin: 0 6px 6px;
    text-align: center;
  }

  .linksArea .online li.w100 img {
    width: 100%;
  }

  .linksArea .online li.w50 {
    width: 49%;
  }

  .linksArea .shop {
    padding: 50px 20px;
  }
}

@media screen and (min-width: 701px) {
  .mainVisual {
    overflow: hidden;
  }

  .mainVisual h1 {
    height: 100%;
  }

  .mainVisual h1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  
  .menuInner ul img {
    max-width: 70%;
    margin: 0 auto;
    display: block;
    padding-left: 2em;
  }
}

/* tablet */
@media screen and (min-width: 701px) and (max-width: 1180px) {
  .mainVisual {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .mainVisual h1 {
    height: auto;
  }

  .mainVisual h1 img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }

  .menuInner ul li .menu {
    position: relative;
    max-width: 390px;
    margin: 0 auto;
  }
  .menuInner ul li .illust01 {
    top: 100px;
  }
  .menuInner ul li .illust02 {
    top: 100px;
  }
  .menuInner ul li .illust03 {
    top: 100px;
  }
}
