/* CSSファイル: styles.css（修正済み） */

/* 共通スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Zen Maru Gothic", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('backgroundfoods.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* スプラッシュ全体 */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

/* ロゴ */
.splash-logo {
  width: 250px;
  height: auto;
  animation: shake 0.5s ease-in-out 3;
}

/* いちご3点リーダーの並び */
.loading-ichigo {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  height: 20px;
  align-items: flex-end;
}

/* 各いちごの個別指定 */
.dot {
  width: 30px;
  height: 30px;
  opacity: 0;
  animation: dotPop 1.5s infinite ease-in-out;
  object-fit: contain;
}

/* 遅延タイミングでリズムをつける */
.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

/* ぽんっと浮いて消える */
@keyframes dotPop {
  0%, 80%, 100% {
    opacity: 0;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-6px);
  }
}

/* ロゴのぷるぷるアニメ */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-2deg); }
  40% { transform: translateX(5px) rotate(2deg); }
  60% { transform: translateX(-5px) rotate(-2deg); }
  80% { transform: translateX(5px) rotate(2deg); }
  100% { transform: translateX(0); }
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}


/* フレームデザイン */
.frame {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 20vw;
}
.frame.left {
    left: 0;
}
.frame.right {
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* メインコンテンツ */
.main-content {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 10px;
    overflow: hidden;
    text-align: center;

  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 20px 20px; /* グリッドのサイズ感ここで調整 */
}

/* ロゴアニメーション */
.logo {
    display: block;
    margin: 0 auto 20px;
margin-top: 15px; /* 好きな値に調整 */
    width: 80%;
    max-width: 200px;
    animation: dropIn 1s ease-out;
}
@keyframes dropIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 画像のスタイル */
.small-img2 {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-top: 5px;
    margin-bottom: 20px;
    border-radius: 10px;
}

/* ナビゲーションデザイン */
.main-nav{
    text-align: right;
font-family: 'Zen Maru Gothic', sans-serif;
}

.mobile-nav {
    text-align: center;
font-family: 'Zen Maru Gothic', sans-serif;

}
.main-nav ul, .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-nav li {
    margin-bottom: 30px;
}

.mobile-nav li {
    margin-bottom: 30px;
}

.main-nav a {
    text-decoration: none;
    color: black;
    font-size:  20px;
    font-weight: 700;
}
.mobile-nav a {
    text-decoration: none;
    color: black;
    font-size: 20px;
    font-weight: 700;
}
/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10000;
}
.hamburger-menu div {
    width: 30px;
    height: 3px;
    background-color: black;
    margin: 6px 0;
}

.mobile-nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  /* 背景は半透明の白のみ */
  background: rgba(255, 255, 255, 0.9);
  padding-top: 80px; /* 上部に隙間 */
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 5px;
  text-align: center;
  z-index: 1000;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 130px;
  display: block;
  width: 150px;
  height: 150px;
  background: url("cake.png") no-repeat center;
  background-size: auto 150px;
  animation: cakeWobble 1s steps(2, start) infinite;
  transform: translateX(-50%) rotate(10deg); /* 初期状態 */
}

@keyframes cakeWobble {
  0% {
    transform: translateX(-50%) rotate(10deg);
  }
  50% {
    transform: translateX(-50%) rotate(-10deg);
  }
  100% {
    transform: translateX(-50%) rotate(10deg);
  }
}



.media-appearances {
    font-size: 10px;
    line-height: 200%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .frame {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    .main-nav {
        display: none;
    }
}

/* プロフィール画像を横並びにする */
.profile-images {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* プロフィール画像 */
.profile-image {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
animation: fluffy 3s infinite ease-in-out; /* ずっとふわふわ */
}

/* おでんわ画像のスタイル */
.odenwa-image {
    width: 50px;
    height: auto;
    display: block;
 animation: shake 1s ease-in-out 1,  fluffy 3s infinite ease-in-out 2s;
}


h2 {
    margin-bottom: 3px;
}

/* 2列レイアウトのコンテナ */
.goods-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列にする */
    gap: 5px; /* 余白を調整 */
    justify-content: center; /* 中央揃え */
    align-items: start;
    max-width: 400px; /* 画像幅に合わせて調整 */
    margin: 0 auto; /* 中央揃え */
}

/* 各アイテムのスタイル */
.goods-item {
    display: flex;
    justify-content: center;
    align-items: center;
    Margin-bottom: 5px;

}

/* 商品画像のスタイル */
.book-image {
    width: 180px; /* サイズ調整 */
    height: auto;
border-radius: 10px;
}

/* サラダバートランプのコンテナ */
.saladbar-container {
    position: relative;
    display: inline-block;
}

/* スライドインする手の画像 */
.hand-image {
  position: absolute;
  top: 70%;
  right: -200px;
  transform: translateY(-50%);
  width: 100px;
  height: auto;
  animation: slideInRight 0.8s ease-out forwards, handWobble 1s steps(2, start) infinite;
  z-index: 10;
}

@keyframes handWobble {
  0% {
    transform: translateY(-50%) rotate(5deg);
  }
  50% {
    transform: translateY(-50%) rotate(-5deg);
  }
  100% {
    transform: translateY(-50%) rotate(5deg);
  }
}



.takoyaki-image {
    position: absolute;
    top: 30%;
    right: -100px;
    transform: translateY(-50%);
    width: 110px;
    height: auto;
    animation:  fluffy 3s infinite;
}

.takoyakipose-image {
    position: absolute;
    top: 0%;
    right: 145px;
    transform: translateY(-50%);
    width: 90px;
    height: auto;
    animation:  fluffy 3s infinite;
}

.garlic-image {
    position: absolute;
    top: 45%;
    right: -90px;
    width: 110px;
    height: auto;
    animation:  fluffy 3s infinite;
}


/* 右からスライドイン */
@keyframes slideInRight {
    from {
        right: -100px;
        opacity: 0;
    }
    to {
        right: -20px;
        opacity: 1;
    }
}



/* スライドインする手の画像 */
.puri-image {
    position: absolute;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    width: 150px;
    height: auto;
    animation: slideInLeft 0.8s ease-out forwards, fluffy 3s infinite;
}

/* 左からスライドイン */
@keyframes slideInLeft {
    from {
        left: -100px;
        opacity: 0;
    }
    to {
        left: -20px;
        opacity: 1;
    }
}

/* ふわふわアニメーション */
.fluffy {
    animation: fluffy 3s infinite;
}

@keyframes fluffy {
 0% { transform: translateY(0); }
    50% { transform: translateY(8px); }
    100% { transform: translateY(0); } /* 最初と同じ位置に戻す！ */
}


.small-img3 {
    width: 200px;
    height: auto;
    margin-top: -10px; 
    margin-bottom: 5px;
}


.fixed-social-icons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px; /* アイコン同士の間隔 */
    z-index: 1000;
}

.social-buttons {
    display: flex;
    gap: 10px; /* ボタンの間隔を開ける */
    justify-content: center; /* ボタンを中央寄せ */
    margin-top: 15px; /* 上の余白 */
    margin-bottom: 0px; /* 下の余白を縮める（デフォルトより少なめ） */
}


.social-btn {
    background: white; /* 背景色白 */
     border: 3px solid #FCF2E6; /* 枠線を追加 */
    cursor: pointer;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px; /* ボタンのサイズ */
    height: 70px;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn img {
    width: 60px; /* 画像のサイズ */
    height: 60px;
}

.social-btn:hover {
background: #f5deb3; /* ホバー時に色を変える */
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.01); /* ふわっと浮く */
　　
}


footer {
    text-align: center;
    font-size: 10px;
    color: #666;
    padding: 10px;
}

.logo-small {
    width: 100%; /* 元のサイズの80%に縮小 */
    max-width: 250px; /* 最大幅を250pxに制限 */
    height: auto; /* 縦横比を維持 */
    display: block;
    margin: 10px auto; /* 中央配置＆余白調整 */
}

.logo-small2 {
    width: 130px; /* 元のサイズの80%に縮小 */
    height: auto; /* 縦横比を維持 */
    display: block;
    margin: 10px auto; /* 中央配置＆余白調整 */
}


.works-container {
    position: relative;
    display: inline-block; /* インライン要素として配置 */
}

.works-main {
    width: 100%;
    display: block;
border-radius: 10px;
margin-bottom: 9px;
}

.works-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 230px; /* ロゴのサイズを大きめに */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.works-container:hover .works-logo {
    opacity: 1;
    
}




.section {
    padding: 20px;
    border-radius: 10px; /* 角を少し丸く */
    margin-bottom: 30px; /* 各セクションの間に余白 */
}

/* 各セクションの色（調整可） */
.media-section {
    background-color: #FCF2E6; /* 柔らかいオレンジ系 */

}


.wide-image-container {
    text-align: center; /* 画像を中央配置 */
    margin: 10px 0; /* 上下の余白 */
}

.wide-image {
    width: 98%; /* コンテナいっぱいに広げる */
    max-width: 400px; /* 最大幅を指定（デザインに応じて調整） */
    height: auto; /* 縦横比を維持 */
    border-radius: 10px; /* 角を少し丸く */
}

a {
    color: #cd853f; /* オレンジ */
}

.takoyakisanwalk {
    width: 100px; /* たこ焼きさんのサイズ */
    height: auto;
    position: fixed; /* 画面の下に固定 */
    bottom: 10px; /* 画面の下ギリギリ */
    left: -100px; /* 画面外からスタート */
    animation: runAround 5s linear infinite;
}

/* たこ焼きさんの走るアニメーション */
@keyframes runAround {
    0% { left: -100px; transform: rotate(0deg); }
    25% { left: 25%; transform: rotate(10deg); }
    50% { left: 50%; transform: rotate(-10deg); }
    75% { left: 75%; transform: rotate(10deg); }
    100% { left: 100%; transform: rotate(0deg); }
}


.address {
    color: #E5B758; /* オレンジ */
font-size: 25px;
}

.food-form-container {
    background-color: #FCF2E6; /* クリーム色で目立たせる */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 10px auto;
    width: 95%;
}

.food-form-container input {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #E5B758;
    border-radius: 5px;
    width: 60%;
}

.food-form-container button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #E5B758;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.food-form-container button:hover {
    background-color: #E08000;
}

#thanks-message {
    font-size: 18px;
}


/* 炊飯ボタンの枠線を統一 */
.social-btn {
    border: 2px solid #FCF2E6; /* クリーム色の枠線 */
}

/* ご飯（rice.png）が降ってくるアニメーション */
.rice {
  width: 100px;
  height: auto;
  position: fixed;
  z-index: 100;
  pointer-events: none;
  transition: top 0.8s ease-in;
}



/* ご飯がランダムな場所に降ってくるアニメーション */
@keyframes fall {
    from {
        transform: translateY(-50px);
        opacity: 1;
    }
    to {
        transform: translateY(93vh);
        opacity: 1;
    }
}

.steam {
  position: fixed;
  width: 120px;
  height: 80px;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(255, 255, 255, 0.8) 20%,
    rgba(255, 255, 255, 0) 80%
  );
  border-radius: 30% / 50%;
  opacity: 0;
  animation: steam-wobble 5s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
  filter: blur(12px) drop-shadow(0 0 10px rgba(255,255,255,0.4));
}




@keyframes steam-wobble {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0;
  }
  15% {
    transform: translate(-2px, -12px) scale(1.05) rotate(1deg);
    opacity: 0.4;
  }
  35% {
    transform: translate(3px, -28px) scale(1.1) rotate(-2deg);
    opacity: 0.3;
  }
  60% {
    transform: translate(-2px, -48px) scale(1.2) rotate(1.5deg);
    opacity: 0.2;
  }
  85% {
    transform: translate(2px, -70px) scale(1.3) rotate(-1deg);
    opacity: 0.1;
  }
  100% {
    transform: translate(0, -90px) scale(1.35) rotate(0deg);
    opacity: 0;
  }
}




.footer-area {
  background-color: #ffebcd;
  
  margin: 0 -10px -10px -10px;
  padding: 30px 10px 50px;
  border-radius: 0;
}


.success-rice {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 300px;
  opacity: 0;
  z-index: 999;
  transition: opacity 0.3s ease;
  animation: stamp-pop 0.5s ease-out;
}

@keyframes stamp-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* 出現してしばらくしてからふわっと消える */
@keyframes fadeOutLater {
  to {
    opacity: 0;
  }
}

.stamp-steam {
  position: absolute;
  width: 100px;
  height: 120px;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(255, 255, 255, 0) 90%
  );
  border-radius: 30% / 50%;
  animation: steam-up 5s ease-out forwards;
  pointer-events: none;
  z-index: 10;
  filter: blur(14px) drop-shadow(0 0 10px rgba(255,255,255,0.3));
}


.thanks-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%; /* 丸くする！ */
  vertical-align: middle;
  object-fit: cover;  /* 中身がつぶれないように調整 */
}


.hidden-title {
  font-size: 0;
  line-height: 0;
}


.sticker-container {
    position: relative;
    display: inline-block;
margin-bottom: 10px; /* 画像の下に10pxの余白を追加（好みで調整） */
}


.exhibition-container {
    position: relative;
    display: inline-block;
margin-bottom: 5px; /* 画像の下に10pxの余白を追加（好みで調整） */
}




.nav-link {
    text-decoration: none;
    color: black; /* デフォルトの色 */
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s ease-in-out;
    display: inline-block; /* アニメーションのため */
}

/* ホバー時のスタイル */
.nav-link:hover {
    color: #E5B758; /* オレンジ色に変化 */
    animation: shake 0.4s ease-in-out;
}

/* ぷるぷる震えるアニメーション */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-2deg); }
    50% { transform: translateX(3px) rotate(2deg); }
    75% { transform: translateX(-3px) rotate(-2deg); }
    100% { transform: translateX(0); }
}



/* トーストボタン */
.toast-btn {
  width: 70px;
  height: 70px;
  padding: 0;
 background: none;      /* 背景を消す */
  border: none;          /* 枠線を消す */
  padding: 0;            /* 余白をゼロに */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.toast-btn img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* 飛び出すパン */
.toast-bread {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  z-index: 999;
  animation: toast-pop-drop 1.2s ease-in forwards;
}

/* アニメーション定義 */
@keyframes toast-pop-drop {
  0% {
    transform: translateX(-50%) translateY(100px) rotate(5deg);
    filter: blur(4px);
    opacity: 0.6;
  }

  25% {
    transform: translateX(-50%) translateY(-50vh) rotate(5deg);
    filter: blur(0);
    opacity: 1;
  }

  30% {
    transform: translateX(-50%) translateY(-50vh) rotate(-5deg);
opacity: 1; /* 必ず不透明に */
    filter: blur(0);
  }

  35% {
    transform: translateX(-50%) translateY(-50vh) rotate(5deg);
opacity: 1; /* 必ず不透明に */
    filter: blur(0);
  }

  40% {
    transform: translateX(-50%) translateY(-50vh) rotate(-4deg);
opacity: 1; /* 必ず不透明に */
    filter: blur(0);
  }

  45% {
    transform: translateX(-50%) translateY(-50vh) rotate(3deg);
opacity: 1; /* 必ず不透明に */
    filter: blur(0);
  }

  50% {
    transform: translateX(-50%) translateY(-50vh) rotate(0deg);
opacity: 1; /* 必ず不透明に */
    filter: blur(0);
  }

  100% {
    transform: translateX(-50%) translateY(100vh) rotate(0deg);
    filter: blur(4px);
    opacity: 0.6;
  }
}


.toast-steam {
  position: fixed;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.8) 30%,
    rgba(255, 255, 255, 0) 80%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 998;
  opacity: 0;
  animation: steam-float 3s ease-out forwards;
  filter: blur(10px);
}

@keyframes steam-float {
  0% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-40px) scale(1.6);
    opacity: 0;
  }
}

.curtain-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.kanaiga-name {
  display: block;
  width: 300px; /* 必要に応じてサイズ調整 */
  height: auto;
  opacity: 1;
 
}

.curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* カーテン色 */
  z-index: 2;
  animation: slideCurtain 2s ease forwards;
}

@keyframes slideCurtain {
  0% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

@keyframes showImage {
  to { opacity: 1; }
}

img.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

img.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}


.img-fadein {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.img-fadein.loaded {
  opacity: 1;
}

@keyframes butterFall {
  0% {
    top: -100px;
    transform: rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    top: calc(100vh - 80px); /* 下から80pxの位置で止まる */
    transform: rotate(var(--rotate-deg));
    opacity: 1;
  }
}

.butter-fall {
  position: fixed;
  width: 100px;
  z-index: 9999;

  animation: butterFall 2.3s ease-in forwards;
}

.news-box {
  border: 1px solid #000;
  padding: 20px;
  margin-bottom: 25px; /* ←ここを増やす！20 → 40 にしてみよう */
  background-color: #fff;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}


.news-entry {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 10px;
  font-family: 'Zen Maru Gothic', sans-serif;
  text-align: left;
}

.news-date {
  font-weight: bold;
  margin-right: 8px;
  color: #333;
  text-decoration: underline; /* ←これ！ */
}


.news-box {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}
.news-box.show {
  opacity: 1;
  transform: scale(1);
}

.reveal-pop {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}
.reveal-pop.show {
  opacity: 1;
  transform: scale(1);
}


.reveal-drop {
  opacity: 0;
  transform: translateY(-20px);
  clip-path: inset(0 0 100% 0);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    clip-path 1s ease; /* ← ここだけ長めにした！ */
}

.reveal-drop.show {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}


.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  z-index: 10001;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.back-to-top img {
  width: 100%;
  height: auto;
}
.back-to-top:hover {
  transform: scale(1.1);
}

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: #fff;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.marquee-inner {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-marquee 25s linear infinite;
}

.marquee-box {
  overflow-x: auto; /* ←ユーザーが触れるように */
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1.3px solid #E5B758;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox用のスクロールバー非表示 */
margin-bottom: 27px; /* 👈 下に余白追加 */
}

.marquee-box::-webkit-scrollbar {
  display: none; /* Chrome/Safari用のスクロールバー非表示 */
}

.marquee-scroll {
  overflow: hidden; /* 自動スクロール用に外枠 */
  width: 100%;
}

.marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marquee-loop 25s linear infinite;
will-change: transform; /* ←滑らかになる */
}

.marquee-text {
  display: inline-flex;
  white-space: nowrap;
height: 1.6em; /* 1行分の高さで統一 */
}

.marquee-text span {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  line-height: 1.6;
  margin-right: 25px;
  display: inline-block; /* ←追加で安定させる！ */
  min-height: 1.6em; /* ←行の高さ揃える */
  vertical-align: middle; /* ←高さのズレを抑える */
will-change: transform;
}


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


@keyframes iconWobble {
  0% { transform: rotate(6deg); }
  50% { transform: rotate(-6deg); }
  100% { transform: rotate(6deg); }
}

.social-btn.animate {
  animation: iconWobble 1s steps(2, start) infinite;
}

.works-container {
  position: relative;
  display: inline-block;
}

.works-credit {
  position: absolute;
  bottom: 15px;
  left: 50%; /* 中央寄せの起点 */
  transform: translateX(-50%); /* 自身の幅の半分だけ左にずらして中央揃え */
  font-size: 10px;
  color: black;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}


.works-container:hover .works-credit {
  opacity: 1;
}


.saladbar-container {
  position: relative;
  display: inline-block;
}

/* ロゴを重ねて中央に表示し、カクカク動かす */
.logo-overlay {
  position: absolute;
  bottom: 135px; /* ← 下からの位置（調整可） */
  left: 50%;
  transform: translateX(-50%);
  width: 150px; /* ← サイズ調整 */
  height: auto;
  animation: goodslogoWobble 3s steps(2, start) infinite;
  z-index: 12;
}

.goods-item {
  position: relative; /* ← これで中の絶対配置が効くようになる！ */
  display: inline-block; /* ← 必要に応じて（画像サイズに合わせたいなら） */
}

.logo-overlay2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 完全中央に */
  width: 110px; /* お好みで調整！ */
  height: auto;
  z-index: 12;
  animation: goodslogoWobble 3s steps(2, start) infinite; /* これは元のまま */
}



/* すでに定義済みのアニメーションを再利用 */
@keyframes goodslogoWobble {
  0%   { transform: translateX(-50%) rotate(3deg); }
  50%  { transform: translateX(-50%) rotate(-3deg); }
  100% { transform: translateX(-50%) rotate(3deg); }
}


.exhibition-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  Margin-top: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.exhibition-nav img {
  width: 100px;
  height: auto;
  transition: transform 0.2s ease;
}

.exhibition-nav a:hover img {
  transform: scale(1.05);
}


html {
  scroll-behavior: smooth;
}


.back-to-top-btn-fixed {
  position: fixed;
  bottom: 20px;
  right: 50%;
  transform: translateX(180px); /* メインコンテンツの右端に寄せる（値は調整可） */
  width: 80px; /* ← 少し大きめに！ */
  height: 80px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.back-to-top-btn-fixed.show {
  opacity: 1;
  pointer-events: auto;
}
