/* --------------------
   基本スタイル
-------------------- */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

#home .japanese {
  font-family: 'Zen Maru Gothic', sans-serif;
}
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #fff7f2;
  color: #4b2e2e;
}

/* ヘッダー */
header {
  background: #ffdadb;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0 0 12px;
  text-align: center;
}

header h1 img {
  width: 500px;
  max-width: 80vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ナビゲーション */
nav {
  background: #fff0e1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
}

nav a {
  text-decoration: none;
  color: #8c4e4e;
  font-weight: normal;
  font-family: "Homemade Apple", cursive;
  font-size: 1.3rem;
  white-space: nowrap;
}


nav a:nth-child(1) {
  color: #8c4e4e;
}



nav a:nth-child(5) {
  color: #8c4e4e;
}

/* クリックした時に動き */
nav a:active {
  transform: scale(0.9) rotate(-5deg);
  transition: 0.1s;
}

#home {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 70px 20px;
}

#home h2 {
  text-align: center;
  margin-bottom: 30px;
}

#home p {
  text-align: center;
  line-height: 2;
  margin: 0 auto;
}

/* --------------------
   セクション
-------------------- */
section {
  padding: 1rem;
}


/* フッター */
footer {
  background: #ffeae1;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

a.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  background: #fcb3b3;
  color: white;
  border-radius: 20px;
  text-decoration: none;
}






.shop-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button.coconala {
  background: #fcb3b3; /* ピンクっぽく */
}

.button.suzuri {
  background: #b3d4fc; /* 水色っぽく */
}



/* ドア全体 */
#door-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: opacity 1s ease;
  pointer-events: none;
}

/* ドア動画の黒背景を視覚的になじませる */
#door-video {
  mix-blend-mode: screen;
  display: block;
  width: 230px;
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}


#door-container.fade-out {
  opacity: 0;
}

.door {
  display: block;
  width: 266px;
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}
#home-content {
  opacity: 0;
  transition: opacity 1.5s ease;
  display: none; /* display:none にする */
}

#home-content.show {
  display: block; /* フェードイン時に表示 */
  opacity: 1;
}



.christmas-gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.christmas-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.christmas-gallery .item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.event-gallery img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.button.mercari {
  background: #ffb84d; /* オレンジ系 */
}


#back-to-top:hover {
  transform: scale(1.2) rotate(10deg);
  opacity: 1;
}
/* 画面幅が600px以下のスマホ向け */

@media (max-width: 600px) {
  nav {
    flex-direction: column; /* 横並び→縦並び */
    gap: 0.3rem;            /* 項目の間隔を狭く */
    padding: 0.3rem;


     #home {
  padding: 40px 20px;
}

#home h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

#home p {
  font-size: 0.85rem;
  line-height: 1.9;
}
  }

  nav a {
    font-size: 0.85rem;      /* 文字サイズを少し小さく */
  }
}
.language-switch {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 14px;
  z-index: 1000;
}

/* トップに戻る蝶々ボタン */
#home-back-to-top {
  display: none;
}

#home-content.show #home-back-to-top {
  display: block;
}

#back-to-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  z-index: 1000;
  overflow: hidden;
}

/* 蝶々の画像 */
#back-to-top img {
  width: 90%;
  height: auto;
  pointer-events: none;
}

/* マウスを乗せたときの動き */
#back-to-top:hover {
  transform: scale(1.12) rotate(6deg);
  transition: transform 0.2s;
}

/* 中の画像をちょうど良く収める */
#back-to-top img {
  width: 90%;    /* 画像は丸内の90%に */
  height: auto;
  pointer-events: none; /* 画像上のクリックを邪魔しない */
}

/* hover の動き（今のスタイルを踏襲） */
#back-to-top:hover {
  transform: scale(1.12) rotate(6deg);
  transition: transform 0.2s;
}


/* 日本語フォント */
.japanese {
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

/* セクション見出しをメニューバーと同じフォントにする */
#works h2,
#events h2,
#christmas h2,
#about h2,
#shop h2 {
  font-family: "Homemade Apple", cursive;
}


/* --------------------
   Works 横スクロールギャラリー
-------------------- */

.works-slider {
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0 2rem;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.works-slider:active {
  cursor: grabbing;
}

.works-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.works-set {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-shrink: 0;
}

.works-item {
  --rotate: 0deg;

  display: block;
  flex-shrink: 0;

  width: 190px;
  height: 230px;

  transform: rotate(var(--rotate));
  transition: transform 0.3s ease;

  text-decoration: none;
}

.works-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 22px;

  display: block;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


/* それぞれ少しずつ角度を変える */

.works-item:nth-child(1) {
  --rotate: -4deg;
}

.works-item:nth-child(2) {
  --rotate: 3deg;
}

.works-item:nth-child(3) {
  --rotate: -2deg;
}

.works-item:nth-child(4) {
  --rotate: 5deg;
}

.works-item:nth-child(5) {
  --rotate: -3deg;
}

.works-item:nth-child(6) {
  --rotate: 2deg;
}

.works-item:nth-child(7) {
  --rotate: -5deg;
}

.works-item:nth-child(8) {
  --rotate: 3deg;
}

.works-item:nth-child(9) {
  --rotate: -2deg;
}

.works-item:nth-child(10) {
  --rotate: 4deg;
}


/* マウスを乗せたら少し大きくなる */

.works-item:hover {
  transform: rotate(var(--rotate)) scale(1.08);
  z-index: 10;
}







/* スマホ */

@media (max-width: 600px) {

  .works-slider {
    padding: 2rem 0 2.5rem;
  }

  .works-set {
    gap: 1.5rem;
  }

  .works-item {
    width: 180px;
    height: 230px;
  }

 
}
