@charset "utf-8";

/* 土台リセット（このレイアウト共通のベース） */
html,body{width:100%;max-width:100%;overflow-x:hidden;box-sizing:border-box}
*,*::before,*::after{box-sizing:inherit}

/* Futureshopラッパー：PCでは中央1200px、スマホでは100% */
.fs-l-pageMain,.fs-l-main{width:100%;max-width:1216px;margin:0 auto;box-sizing:border-box}

/* ラッパー配下は“縮められる・はみ出さない” */
#epilogue-wrap *{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}

/* メディア要素のはみ出し防止 */
#epilogue-wrap img,#epilogue-wrap video,#epilogue-wrap canvas,#epilogue-wrap svg,#epilogue-wrap iframe,#epilogue-wrap table{max-width:100%;height:auto}

.fs-l-main{padding-left:0!important;padding-right:0!important;}
.fs-l-pageMain{background:#121212;color:#eee;margin: 0;padding: 0;}


/* ============================   基本（PC前提の共通スタイル）   ============================ */
#epilogue-wrap {
  width: 100%;
  max-width: 1050px!important;
  margin: 0 auto;
  padding: 40px 24px;
  box-sizing: border-box;
  line-height: 1.6;
}

/* 商品画像エリア（例） */
#epilogue-wrap .product-image {
  max-width: 960px;
  margin: 0 auto 40px;
  display: block;
}

/* 商品説明エリア（例） */
#epilogue-wrap .product-description {
  font-size: 16px;
  margin-bottom: 40px;
}

/* ============================   スマホ（〜599px）   ============================ */
@media screen and (max-width: 599px) {
  #epilogue-wrap {
    padding: 24px 16px;
  }
  #epilogue-wrap .product-description {
    font-size: 14px;
  }
  #epilogue-wrap .product-image {
    max-width: 100%;
  }
}

/* ============================   タブレット（600〜1024px）   ============================ */
@media screen and (min-width: 600px) and (max-width: 1024px) {
  #epilogue-wrap {
    padding: 32px 20px;
  }
  #epilogue-wrap .product-description {
    font-size: 15px;
  }
  #epilogue-wrap .product-image {
    max-width: 90%;
  }
}

/* ============================   大型ディスプレイ（1600px〜）   ============================ */
@media screen and (min-width: 1600px) {
  #epilogue-wrap {
    max-width: 1280px;
  }
  #epilogue-wrap .product-image {
    max-width: 1000px;
  }
}

/* ---------------------------------------- ハンバーガーメニュー */
/* ☰ ハンバーガーボタン：初期状態（共通） */
.fs-p-drawerButton {
  position: fixed;
  top: 120px;
  left: 20px;
  z-index: 999!important;
  background-color: transparent;
  padding: 10px;
  transition: all 0.3s ease;
}
.fs-p-drawerButton.scrolled {
  top: 20px;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.fs-p-drawerButton--close {
  display: none;
  position: fixed;
  top: 90px;
  left: 20px;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 3px;
  z-index: 10001;
}

/* ✅ ドロワー本体（PC含め左からスライド・幅400px固定） */
.fs-p-drawer {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 400px !important;
  max-width: none !important;
  height: 100vh;
  z-index: 10000 !important;
  background: #fff;
  transform: translateX(-100%) !important;
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: block !important;
}
/* .fs-l-sideArea による幅制限の打ち消し */
.fs-p-drawer.fs-l-sideArea {
  max-width: none !important;
  width: 400px !important;
}

/* チェックONで左からスライドイン */
#fs_p_ctrlDrawer:checked + .fs-p-drawer,
#fs_p_ctrlDrawer:checked ~ .fs-p-drawer,
.fs-p-ctrlDrawer:checked + .fs-p-drawer,
.fs-p-ctrlDrawer:checked ~ .fs-p-drawer {
  transform: translateX(0) !important;
}

/* タブレット位置調整（共通化） */
@media screen and (min-width: 768px) {
  .fs-p-drawerButton { top: 80px !important; }
  .fs-p-drawerButton.scrolled { top: 40px !important; }
  .fs-p-drawerButton--close { top: 80px !important; }
}

/* PCでもハンバーガーを有効化 */
@media screen and (min-width: 1025px) {
  .fs-p-drawerButton,
  .fs-p-drawerButton--close {
    display: block !important;
  }
}

/* PCレイアウト時（≥1200px） */
@media screen and (min-width: 1200px) {
  .fs-p-drawer {
    position: fixed !important;
    transform: translateX(-100%) !important;
  }
  .fs-p-drawer.fs-l-sideArea {
    max-width: none !important;
    width: 400px !important;
  }
}

/* ✅ メインコンテンツをフル幅（レスポンシブ対応） */
@media screen and (min-width: 1025px) {
  .fs-l-main,
  .fs-l-pageMain {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
  }
  .fs-l-sideArea + .fs-l-pageMain,
  .fs-l-pageMain + .fs-l-sideArea {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
  }
}

/* ========================== */
/* ロゴとハンバーガーの衝突防止調整 */
/* ========================== */

/* 中間サイズでロゴが右にずれる＆少し縮小 */
@media screen and (max-width: 1350px) and (min-width: 1100px) {
  #cm-hdnv3-logo {
    margin-left: 60px; /* ☰との距離を確保 */
    transition: margin 0.3s ease;
  }
  #cm-hdnv3-logo img {
    width: 85% !important; /* わずかに縮小 */
    height: auto;
    transition: width 0.3s ease;
  }
}

/* さらに幅が狭いとき（タブレット寄り）で強めに縮小 */
@media screen and (max-width: 1099px) {
  #cm-hdnv3-logo {
    margin-left: 70px;
  }
  #cm-hdnv3-logo img {
    width: 75% !important;
  }
}

