/* デフォルト設定
-------------------------------------------------------------*/
* { 
  margin: 0px; 
  padding: 0px; 
}

img {
  width: 100%;
  height: auto;
  vertical-align: top;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

.img-sp {
  display: none;
}

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

@media screen and (max-width: 768px) {
  .u-pc-only {
    display: none;
  }
}

/* リンク要素 */
a { color: #646262; }
a:link,
a:visited,
a:hover,
a:active { text-decoration: underline; }
a:hover,
a,
input[type="submit"],
input[type="button"] {
  transition: 0.2s ease-in-out;
}
a:hover { opacity: 0.8; }

/* メイン背景・レイアウト */
body {
  width: 100%; 
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  font-size: 15px;
  font-family: "游ゴシック Light", "游ゴシック", "YuGothic", sans-serif;
  font-weight: 200;
}

.product-main {
  width: 100%; 
  position: static;
  background-color: #fff;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.product-flame {
  width: 40%; 
  padding: 0em;
  margin: 0em;
  margin-left: auto;
  margin-right: auto;
  background-color: #fff;
  background-image: url('../image/back.webp');
  background-size: contain;  
  background-repeat: repeat;
  min-height: 100vh;
  background-position: top center;
}

@media screen and (max-width:780px){
  .product-flame {
    width: 100%; 
    padding: 0em;
    margin: 0em;
  } 
} 

/* ファーストビュー */
.fv-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-group {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 26; 
}

.fade-in img {
  width: 100%;
  height: auto;
  display: block;
}

/* メインビジュアルの各要素絶対配置 */
.area-left {
  position: absolute;
  top: 6%; 
  left: 2%;
  width: 3.7%; 
}

.area-visual {
  position: absolute;
  top: 13%; 
  left: 15%;
  width: 74%;   
}

.area-under {
  position: absolute;
  bottom: 10%;   
  right: 4%;      
  width: 42%;
}

/* ファーストビューのアニメーション */
.fade-in {
  opacity: 0;
  animation-name: fadeInUp;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

.area-left { animation-delay: 0.8s; }
.area-visual { animation-delay: 1.2s; }
.area-under { animation-delay: 1.8s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* メインコンテンツパーツ */
.schedule {
  width: 100%; 
  padding: 0em; 
  margin: -1.5em 0em 0em 0em;
  margin-left: auto;
  margin-right: auto;
}

.message {
  width: 100%; 
  padding: 0em; 
  margin: 0em;
  margin-left: auto;
  margin-right: auto;
}

/* スクロールフェード */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out; 
  will-change: opacity, transform; 
}

.scroll-fade.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* 無限ループカルーセル */
.loop_wrap {
  position: relative;
  display: flex;
  height: 100px;
  overflow: hidden;
}

.loop_wrap img {
  width: auto;
  max-width: fit-content;
  height: 100%;
  will-change: transform;
}

.loop_wrap img:first-child {
  animation: loop 50s -25s linear infinite;
  backface-visibility: hidden;
  will-change: transform;
}

.loop_wrap img + img {
  animation: loop2 50s linear infinite;
}

@keyframes loop {
  0% { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

@keyframes loop2 {
  0% { transform: translateX(0); }
  to { transform: translateX(-200%); }
}

/* 餃子シアター（飛び出す演出） */
.chaozu-theater {
  position: relative;
  width: 100%;
  max-width: 800px; 
  aspect-ratio: 16 / 6;
  overflow: visible; 
}

.actor-gyoza {
  position: absolute;
  top: 22%;
  left: 22%;
  width: 30%;
  z-index: 2; 
}

.actor-human {
  position: absolute;
  top: 35%;
  left: 35%;
  width: 22%;
  z-index: 1;
  opacity: 0;
  transform: scale(0.1) rotate(-180deg); 
}

/* ★飛び出すスピードを2.0秒に伸ばしてマイルドに調整 */
.scroll-fade-chaozu.is-active .actor-human {
  animation: jumpOut 2.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes jumpOut {
  0% {
    top: 35%;
    left: 35%;
    width: 20%;
    opacity: 0;
    transform: scale(0.2) rotate(-180deg);
  }
  35% {
    opacity: 1;
    top: 25%; 
    left: 42%; 
    width: 25%;
    transform: scale(0.8) rotate(-45deg);
  }
  100% {
    opacity: 1;
    top: 40%;  
    left: 51%; 
    width: 25%; 
    transform: scale(1) rotate(-10deg); 
  }
}

.area-menu {
  position: relative; /* 最初は普通に配置 */
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background-color: transparent; 
  z-index: 9999;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* ★スクロールされて追従した瞬間のスタイル（Safari・Chrome完全対応） */
.area-menu.is-fixed {
  position: fixed !important; /* 画面に完全固定 */
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important; /* 中央寄せ */
  width: 40% !important; /* PC時の product-flame の横幅に合わせる */
  z-index: 10000 !important;
  background-color: rgba(255, 255, 255, 0.4); 
  -webkit-backdrop-filter: blur(10px);       
  backdrop-filter: blur(10px);               
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); 
}

@media screen and (max-width: 780px) {
  .area-menu.is-fixed {
    width: 100% !important; /* スマホ時は画面いっぱいに広げる */
  }
}

.menu-single-img {
  width: 100%;
  height: auto;
  display: block;
}

.menu-links-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex; 
}

.link-item {
  display: block;
  width: 25%; 
  height: 100%;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.3s ease;
}

.link-item:hover {
  background-color: rgba(255, 255, 255, 0.1); 
}

/* 右下固定ポメラニアンボタン */
.floating-dog-btn {
  position: fixed;     
  bottom: 1%;       
  right: 32%;        
  width: 9%;       
  height: auto;
  z-index: 99999;      
  display: block;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.floating-dog-btn img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-dog-btn:hover {
  transform: translateY(-8px) scale(1.05);
  opacity: 0.95; 
}

@media (max-width: 768px) {
  .floating-dog-btn {
    width: 110px;   
    bottom: 0px;   
    right: 12px;
  }
}

/* その他共通パーツ・フッター */
header {
  background: #fff;
  z-index: 1000;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

footer {
  text-align: center;
  padding: 0px;
}

.footer_copyrights {
  color: #000;
  text-align: center;
  font-size: 14px;
  padding: 0em;
  margin: 15px 15px 0px 15px;
}