body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* font-family: 'Playfair Display', serif; */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  transition: background 1s ease;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-color: #e5e5e5;
  color: #f0f0f0;
  /* background: linear-gradient(120deg, #111, #444, #eee); */
  /* PCで背景を固定したい場合 */
  /* color: rgb(181, 181, 181); */
  overflow-x: hidden;
}

/* モバイル端末向け：背景のfixedを無効化してパフォーマンス改善 */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}






/* 全体のファーストビュー背景 */
.first-view {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, #757474, #e5e5e5); /* モノクロ調背景 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 粒子Canvas */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* タイピングタイトル */
.typing {
  z-index: 1;
  font-size: 2.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #111;
  border-right: 2px solid #111;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 2.5s steps(10) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 11ch; }  /* "MONO DESIGN"は11文字分 */
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* スクロール矢印 */
.scroll-arrow {
  position: absolute;
  bottom: 80px;
  z-index: 1;
}
.scroll-arrow span {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid #111;
  border-right: 2px solid #111;
  transform: rotate(45deg);
  animation: scrollDown 1.5s infinite;
}
@keyframes scrollDown {
  0% { transform: rotate(45deg) translateY(0); opacity: 1; }
  100% { transform: rotate(45deg) translateY(10px); opacity: 0.2; }
}

/* 下部画像配置 */
.bottom {
  position: absolute;
  bottom: 20px;
  bottom: 2rem;
  z-index: 1;
}
.bottom img {
  width: 300px;
  opacity: 0.85;
  filter: grayscale(100%); /* モノクロ感強調 */
}




/* ===== ロゴ（固定左上） ===== */
.site-header {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}
.site-logo {
  width: 90px;
  height: auto;
}

/* ===== グローバルナビ（右上固定・PCのみ表示） ===== */
.pc-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}
.pc-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pc-nav li {
  text-align: center;
  font-size: 12px;
  color: #6d6c6c;
  line-height: 1.4;
}
.pc-nav a {
  display: block;
  text-decoration: none;
  color: #6d6c6c;
  font-size: 25px;
  transition: color 0.3s ease;
}
.pc-nav a:hover {
  color: #000;
}
@media screen and (max-width: 768px) {
  .pc-nav {
    display: none;
  }
}






/* セクション見出しとサブテキスト */
/* .headBox {
  padding-top: 5rem;
  margin-bottom: 2rem;
  text-align: center;
} */
.title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #777;
  margin-bottom: 1rem;
}
.subtext {
  font-size: 1.4rem;
  color: #777;
}
/* ===== レスポンシブ対応 ===== */
@media screen and (max-width: 768px) {
  /* .headBox {
    padding-top: 2px;
    margin-bottom: 2px;
    padding: 1rem;
    min-height: auto;
  }  */
  .title {
    font-size: 2rem; /* 既に指定済み */
    margin-top: 0; /* もしタイトルの上にmarginがあれば消す */
  }
  .subtext {
    font-size: 1.2rem;
  }
}








/* ハンバーガーメニュー */
.hamburger {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 10000;  /* ←前面に出す */
  cursor: pointer;
  display: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  background-color: #949494;
  transition: transform 0.3s, opacity 0.3s; /* ←これが重要！ */
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

/* ✖️のアニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}







/* サイドメニュー本体 */
.side-menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9); /* ←② 半透明白背景 */
  transition: 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  overflow: hidden; /* ←① スクロール禁止で画面内に収める */
}

/* 表示時 */
.side-menu.active {
  right: 0;
}

/* メニューリストエリア（左側） */
.side-menu-content {
  width: 70%;
  height: 100%;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* ← 中央に寄せる */
  gap: 20px; /* ← 項目間のスペース調整で圧迫感軽減 */
}

/* ロゴエリア（右側） */
.side-menu-logo {
  width: 30%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
}

.menu-logo {
  width: 180px;     /* ←③ ロゴサイズ大きめ */
  height: auto;
  max-width: 100%;
}

/* メニューリスト */
.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* メニュー項目 */
.side-menu li {
  width: 100%;
  padding: 10px 50px;
  box-sizing: border-box;
}

/* メニューリンク */
.side-menu a {
  display: flex;
  align-items: center;
  gap: 12px;  /* ←③ 画像と文字の間隔 */
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
}

/* 英語部分だけ小さく・淡色に */
.side-menu a span {
  font-size: 13px;
  font-weight: normal;
  color: #777;
}









/* スマホ用　ボトムメニュー */
.bottom-menu {
  position: fixed;
  /* bottom: 0; */
  /* width: 100%; */
  background: white;
  border-top: 1px solid #ddd;
  display: none;
  justify-content: space-around;
  padding: 8px 0;
  /* z-index: 100; */
  /* position: fixed; */
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;          /* ←透けないよう白背景 */
  z-index: 10000;             /* ←サイドメニューより前面に */
  justify-content: space-around;
  padding: 8px 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.bottom-menu a {
  text-decoration: none;
  color: #333;
  font-size: 12px;
  text-align: center;
}

/* スマホ用（画面幅768px以下で表示） */
@media screen and (max-width: 768px) {
  .bottom-menu {
    display: flex;
  }
}











/* ファーストビュー　スクロール */
.scroll-view {
  position: absolute;
  bottom: 30px;
  left: 70%;
  /* やや右側に寄せる */
  transform: translateX(-50%);
  font-size: 16px;
  color: #b7b7b7;
  z-index: 50;
  opacity: 0.9;
  transition: opacity 1s ease;
  pointer-events: auto;
  animation: verticalBounce 3s ease-in-out infinite;
}

/* 上下にゆったりループするアニメーション */
@keyframes verticalBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-15px);
    /* 上に15px移動 */
  }
}

/* スマホ向け調整 */
@media screen and (max-width: 768px) {
  .scroll-view {
    font-size: 14px;
    bottom: 20px;
  }
}











/* 各セクション枠 */
.works-section {
  position: relative;
  background: #F5F5F5;
  overflow: hidden;
  padding: 80px 20px;
  max-width: 85%;
  margin: 30px auto;
  border-radius: 3%;
  text-align: center;
  z-index: 1;
}

















/* 常時表示　各SNSアイコン */
.sns {
  position: fixed;
  bottom: 10px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.sns img {
  width: 30px;
  height: 30px;
}

/* スマホサイズ（600px以下）では非表示にする */
@media (max-width: 600px) {
  .sns {
    display: none;
  }
}









/* フッター */
footer {
  margin-top: 40px;
  padding-bottom: 60px;
  /* ← この追加が特に効果的 */
  text-align: center;
  color: #666;
  font-size: 14px;
}










/* ページトップへ戻るボタン　目立つ位置に固定＋スタイル */
#scrollToTopBtn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 100;
  display: none;
  /* 初期は非表示 */
  background-color: #626262;
  color: #fff;
  border: none;
  padding: 5px 10px 10px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

#scrollToTopBtn:hover {
  opacity: 1;
}










/* ===== 　　　　　　　　　　　　　　　　　レビュー全体 　　　　　　　　　　　　　　　　　===== */
.review-section {
  background: #f3f3f3;
  padding: 50px 20px;
  text-align: center;
  max-width: 85%;
  margin: 0 auto;
  border-radius: 20px;
}

/* ===== カルーセル枠 ===== */
.carousel-wrapper {
  overflow: hidden;
  padding: 0 10vw;
  margin: 0 auto;
}

/* ===== スライド横並び ===== */
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
  touch-action: pan-y;
}

/* ===== カード（レビュー） ===== */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 80px 30px;
  flex: 0 0 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* ===== ナビゲーション（左右・インジケーター） ===== */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 20px;
}

.carousel-btn {
  background: #b7b7b7;
  border: none;
  font-size: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: #fff;
}

/* インジケーター */
.carousel-indicators {
  display: flex;
  gap: 6px;
}

.carousel-indicators span {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-indicators span.active {
  background: #333;
}

/* ===== レスポンシブ対応 ===== */
@media screen and (max-width: 768px) {
  .carousel-wrapper {
    padding: 0 5vw;
  }

  .card {
    flex: 0 0 80%;
    max-width: 80%;
    margin: 0 auto 20px;
    font-size: 14px;
    padding: 60px 20px;
  }

  .carousel-btn {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }
}




/* 注文セクション */
.order-section {
  background-color: #333;
  color: #ccc;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  margin: 30px 0 50px;
}

/* ステップコンテナ（横スクロール） */
.step-container {
  display: flex;
  gap: 1.5rem;
  align-items: stretch; /* ←追加 */
  justify-content: center;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto; /* ← 常に表示 */
  /* scrollbar-color: #999 transparent; */
}

.step-container::-webkit-scrollbar {
  height: 12px;
}
.step-container::-webkit-scrollbar-track {
  background: transparent;
}
.step-container::-webkit-scrollbar-thumb {
  background-color: rgb(241, 241, 241); /* 明るいグレー */
  border-radius: 6px;
}

/* ステップボックス */
.step-box {
  background: #fff;
  min-width: 220px;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: flex; /* ←追加 */
  flex-direction: column; /* ←追加 */
  justify-content: space-between; /* ←追加 */
}
.step-box:hover {
  transform: translateY(-5px);
}

/* ラベル */
.step-label {
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.5rem;
  color: #333;
}

/* 画像 */
.step-image img {
  height: 80px;
  object-fit: contain;
  margin: 1rem auto;
}

/* ステップ詳細（タイトル・説明） */
.step-overlay {
  background-color: rgba(102, 102, 102, 0.8);
  color: #fff;
  padding: 0.5rem 0.8rem;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 10px 10px;
}

.step-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.step-description {
  font-size: 0.85rem;
  margin-top: 0.3rem;
  text-align: center;
  line-height: 1.4;
  opacity: 1;
  max-height: none;
  transition: none;
}

/* スライドボタン（PCのみ） */
.slide-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.7);
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1.4rem;
  color: #333;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
}
.slide-left { left: 5px; }
.slide-right { right: 5px; }

/* レスポンシブ（スマホ対応） */
@media (max-width: 1200px) {
  .order-section {
    width: 85%;
    border-radius: 3%;
  }

  .step-container {
    justify-content: center; /* ← 左寄せから中央寄せに変更 */
    padding-left: 1.5rem; /* ← 左右に余白を少し足す */
    padding-right: 1.5rem;
    scrollbar-width: auto;
  }

  .step-box {
    scroll-snap-align: center;
    width: 75vw;
    max-width: 260px;
    min-width: 220px;
    max-height: 460px; /* 必要に応じて調整 */
    margin: 0 auto; /* ← 個々のボックスを中央に */
  }

  .slide-btn {
    display: block;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    background-color: #fff;
  }
  .slide-btn:hover {
    opacity: 1;
  }

  /* 垂れ幕機能をOFFにし常時表示 */
  .step-overlay {
    transform: none !important;
    background-color: rgba(102, 102, 102, 0.8);
    justify-content: center;
    align-items: center;
  }

  .step-description {
    opacity: 1 !important;
    max-height: none !important;
    transition: none !important;
  }

  /* Hover演出を無効化（オプション） */
  .step-box:hover .step-overlay {
    transform: none;
    background-color: rgba(102, 102, 102, 0.8);
  }
}

/* 手書き注意書きボックス */
.handwritten-box {
  background: #fffbe6;
  border: 2px dashed #f2c94c;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-family: "Comic Sans MS", "Segoe Print", sans-serif;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin: 2rem 0;
}