/* ヘッダー用カスタムCSS - EC-CUBEアップデート時に保護されます */

.ec-sliderRole {
    max-width: 100%;
    padding: unset;
    margin-bottom: 0;
}
.slick-slide img {
  width: 100%;
}

/* バナーセクションのスタイル */
.banner-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 0 20px;
}

.banner-item {
    flex: 1;
    max-width: 590px;
}

.banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

.ec-headerNav {
    display: flex;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    height: 44px;
    background: #111111;
   
}
.header-bottom{
  max-width: 1200px;
  margin: 0 auto;
}

.header-top{
  max-width: 1200px;
  margin: 0 auto;
}
/*.ec-headerNav__item a:hover {
  opacity: 0.7;
}*/
.header_r{
    max-width: 1130px;
    margin: 0 180px;
}
.ec-cartNaviWrap {
  margin-right: 0px;
}
.ec-cartNavi {
  width: 120px;
  height: 36px;
  padding: 7px 17px 12px;
}
.ec-cartNavi .ec-cartNavi__icon {
  position: relative;
  top: 2px;
}
.ec-headerNav .ec-headerNav__itemIcon {
  font-size: 28px!important;
  margin-left: 0!important;
}
.ec-headerNav .ec-headerNav__itemIcon:hover {
  color: #d3d3d3!important
}
.ec-headerNav .ec-headerNav__item {
  text-align: center;
  font-size: 12px;
  line-height: 1.15!important;
  width: 96px;
  position: relative;
  top: 10px;
}
.ec-headerNaviRole__right {
  margin: 0 0 0 auto;
}

.header-bottom {
  background-color: #111;
}
.logo img{
    width: 240px;
    margin: 0 20px 0 20px;
    position: relative;
    top: 26px;
}
.header-bottom {
    display: flex;
    height: 80px;
  

}
.ec-headerSearch .ec-headerSearch__category .ec-select select {
    background: #fff;
    color: #111;
    text-align: center;
}
.ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search::before {
    border-top: 6px solid #111;
    margin: 5px 0 0 0;
}
.ec-headerSearch {
    position: relative;
    top: 21px;
}
.header-tel {
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    margin-right: 20px;
    padding: 6px 0;
}

.header-tel:hover {
    color: #d3d3d3;
    transition: all 0.3s ease;
}

.header-tel  span {
    font-size: 11px;
    font-weight: normal;
    position: relative;
    top: -20px;
}
.header-tel:before {
    content: "";
    width: 50%;
}
.global-menu {
    background: #222;
    color: #fff;
}
ul li {
    list-style: none;
}
.global-menu ul.gnavi__lists {
    display: flex;
    margin: 0 auto;
    width: 1180px;
    padding: 0;
}
.global-menu ul li {
    width: 16.66%;
    text-align: center;
}
.global-menu ul li:last-child {
  text-align: center;
}
.global-menu a {
    color: #fff;   
}
.global-menu a:hover {
    color: #d3d3d3;
    transition: all 0.3s ease;
}

/* ▼ ドロップダウン共通設定 */
.has-dropdown {
    position: relative;
}

.dropdown__lists {
    position: absolute;
    top: 100%; /* 親メニューの下に配置 */
    left: 0;
    background: #333;
    padding: 0;
    margin: 0;
    display: none;
    width: 100%;
    z-index: 10;
}

.dropdown__list a {
    display: block;
    padding: 10px 0;
    color: #fff;
    text-decoration: none;
}

.dropdown__list a:hover {
    background: #555;
}

/* ▼ ホバー時に表示 */
.has-dropdown:hover .dropdown__lists {
    display: block;
}

.global-menu ul .has-dropdown li {
    border: none;
}
/* ▼ ドロップダウンの非表示設定 */
.global-menu ul.dropdown__lists {
    display: none; /* ← これが効くようにする */
    position: absolute;
    top: 60px;
    left: 0;
    background: #444;
    padding: 10px;
    margin: 0;
    z-index: 10;
    min-width: 100%; /* デフォルトを狭く */
    width: max-content; /* コンテンツに応じて調整 */
    grid-template-columns: 1fr; /* 1列レイアウト */
    gap: 5px;
}

/* ▼ 項目が多い場合（10個以上）の横幅調整 */
.global-menu ul.dropdown__lists:has(li:nth-child(10)) {
    min-width: 460px;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}
.global-menu ul.dropdown__lists li {
    width: 100%;
    text-align: left;
    padding: 0px;
    margin: 0;
    list-style: none;
}
/* ホバーで表示＆gridにする */
.global-menu li:hover > ul.dropdown__lists {
    display: grid;
    z-index: 9999;
}
.sp{
    display: none;
}
.pc {
    display: block;
}

.habilead-image:hover {
  /* transform削除 */
  /* box-shadow削除 */
  filter: brightness(1.0) drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.gnavi__lists li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

/* ドロップダウンメニューのリストアイテムの高さを調整 */
.global-menu ul.dropdown__lists li {
  min-height: 40px;
}

.gnavi__lists li a {
  display: block;
  text-align: center;
  width: 100%;
}
/* スクロール追随用のスタイル */
.global-menu.sticky {
  position: fixed;   /* 固定表示 */
  top: 0;           /* 上端に固定 */
  left: 0;          /* 左端から */
  width: 100%;      /* 横幅いっぱい */
  z-index: 1000;    /* 他の要素より前に表示 */
  background-color: #222;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* 影を追加して浮いている感を演出 */
  transition: all 0.3s ease; /* スムーズなアニメーション */
}

/* 固定時のメニューリストの調整 */
.global-menu.sticky ul.gnavi__lists {
  margin: 0 auto;
  width: 1180px;
  padding: 0;
}

/* 元の.positionクラスは削除または用途変更 */
.position{
  position: static;  /* スクロール追随を停止 */
  /* top: 0; */       /* 上固定を無効化 */
  left: 0;           /* 左端から */
  width: 100%;       /* 横幅いっぱい */
  z-index: 1000;     /* 他の要素より前に表示 */
  padding: 5px 0 0 0;
  max-width: 100%;
  background-color: #111;
}

/* メニューが固定された時のコンテンツ調整用 */
body.menu-fixed {
  padding-top: 60px; /* メニューの高さ分だけ上部にパディングを追加 */
}
.ec-cartNaviIsset__action{
  margin-bottom: 30px;
}
.header_cart {
  text-align: right;
}
.fa-user {
  color: #fff;
}
.fa-user:hover{
  color: #d3d3d3!important;
}
span.ec-headerNav__itemLink {
  color: #fff;
}
.ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search {
  background: #CCCCCC!important;
}
.ec-headerSearch .ec-headerSearch__category .ec-select select {
  color: #111!important;
}
.ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search::before {
  border-top: 6px solid #111!important;
}
@media screen and (max-width: 1090px) {
  .sp{
    display: block;
  }
  .pc {
    display: none;
  }
  .logo img {
    top: 21px;
  }
  .global-menu {
    display: none;
  }
  .ec-headerNav__item {
    display: none!important;
  }
  .ec-cartNavi {
    display: none;
  }
  .ec-headerNav {
    height: 0px;
  }
  .header-tel {
    display: none;
  }
  .header-bottom {
    height: 135px;
    display: block;
  }
  .ec-headerSearch form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0px; /* 適度な間隔 */
  }

  .ec-headerSearch__category,
  .ec-headerSearch__keyword {
    flex: 1;
    min-width: 150px;
  }
  /* スマホ用：フォーム全体の余白や幅調整 */
  .ec-headerSearch {
    padding: 10px 10px 10px 10px;
  }
  .ec-input {
    display: flex;
  }
  .ec-input input[type="search"] {
    flex: 1;
    padding: 8px;
    font-size: 16px;
  }
  .ec-headerSearch__keywordBtn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
  }
  .ec-headerSearch .ec-headerSearch__category .ec-select select {
    border-radius: 10px 0 0 10px!important;
  }
  .ec-headerSearch .ec-headerSearch__keyword {
    border-radius: 0 10px 10px 0px!important;
  }
  .ec-headerSearch .ec-headerSearch__keyword input[type=search] {
    height: 36.5px!important;
  }
  .ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search {
    background: #fff;
    border-top-right-radius: 0px;
    height: 38px;
    border-radius: 10px 0 0 10px;
    border-top-right-radius: 0!important;
  }
  .ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search::before {
    right: 1em;
  }
  .ec-headerSearch {
    margin: 20px 0 0 0;
  }
  .ec-select.ec-select_search {
      background: #fff;
  }
  .sp_cart {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    position: absolute;
    right: 60px;
  }
  .sp_cart i {
    margin-right: 0px;
   }
  .drawer_sp_cart {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    position: absolute;
    right: 60px;
  }
  .drawer_sp_cart i {
    margin-right: 6px;
   }
  .fa-cart-shopping:before, .fa-shopping-cart:before {
    color: #fff;
    font-size: 24px;
    top: 3px;
    margin-right: 0px;
    position: relative;
  }
  .drawer_sp_cart .fa-shopping-cart:before {
    color: #111;
  }
  /* ここから下がハンバーガーメニューに関するCSS */
  /* チェックボックスを非表示にする */
  .drawer_hidden {
    display: none;
  }
  /* ハンバーガーアイコンの設置スペース */
  .drawer_open {
    display: flex;
    height: 80px;
    width: 60px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;/* 重なり順を一番上にする */
    cursor: pointer;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 100;   /* メニューより前面にする */
    cursor: pointer;
  }
  /* チェックボックスがチェックされたら表示 */
  #drawer_input:checked ~ .drawer_open {
    display: flex; /* もとがflexならこれ */
    position: fixed;
  }
  /* ハンバーガーメニューのアイコン */
  .drawer_open span,
  .drawer_open span:before,
  .drawer_open span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #fff;
    transition: 0.5s;
    position: absolute;
  }
  /* 三本線の一番上の棒の位置調整 */
  .drawer_open span:before {
    bottom: 8px;
  }
  /* 三本線の一番下の棒の位置調整 */
  .drawer_open span:after {
    top: 8px;
  }
  /* アイコンがクリックされたら真ん中の線を透明にする */
  #drawer_input:checked ~ .drawer_open span {
    background: rgba(255, 255, 255, 0);
  }
  /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
  #drawer_input:checked ~ .drawer_open span::before {
    bottom: 0;
    transform: rotate(45deg);
    background: #111;
  }
  #drawer_input:checked ~ .drawer_open span::after {
    top: 0;
    transform: rotate(-45deg);
    background: #111;
  }
  /* メニューのデザイン*/
  .nav_content {
    position: fixed;
    top: 0px;
    left: 150vw;
    width: 100%;
    height: 100vh; /* 画面全体の高さ */
    z-index: 99;
    background: #F0F0F0;
    transition: 0.5s;
    overflow-y: auto; /* ← スクロールできるように */
    -webkit-overflow-scrolling: touch;
  }

  #drawer_input:checked ~ .nav_content {
    left: 0;
  }

  /* ここが重要：スクロール対象の中身にも高さを指定する */
  .gnavi__wrap {
    position: relative;
    padding-bottom: 100px;
    line-height: 1.75;
    min-height: calc(100vh - 130px); /* 高さ確保 */
    box-sizing: border-box;
  }
  /* アイコンがクリックされたらメニューを表示 */
  #drawer_input:checked ~ .nav_content {
    left: 0;/* メニューを画面に入れる */
  }
  .global-menu {
    color: #111;
  }
  .global-menu a {
      color: #111;
  }
  .gnavi__wrap {
    position: relative;
    line-height: 1.75;
  }
  .gnavi__wrap ul li.nav_item {
      font-size: 16px;
  }
  .gnavi__wrap ul li.nav_item a {
    color: #111;
  }
  .nav_item {
      padding: 15px 0;
      border-top: 1px solid #ccc;
  }
  .nav_item .btn {
      background: #8F7A38;
      width: 100%;
      color: #fff;
      padding: 12px 0;
      border-radius: 5px;
      margin: 15px auto 0;
      font-size: 16px;
      font-weight: bold;
  }
  .nav_item .btn:hover{
    border-color:#8F7A38 !important ;
    color: #8F7A38!important;
  }
  .gnavi__wrap ul li.nav_item a.btn {
    color: #fff;
  }

  .dropdown-toggle {
    display: block;
    width: 100%;
    position: relative;
    text-decoration: none;
  }
  
  .dropdown-toggle::after {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 0.5em solid;
    border-right: 0.5em solid transparent;
    border-bottom: 0;
    border-left: 0.5em solid transparent;
  }
  .nav_content .logo img {
      position: relative;
      top: 25px;
  }
}

/* 初期状態：スマホサイズで非表示 */
@media screen and (max-width: 1090px) {
  /* 初期状態で非表示 */
  .nav_item ul {
    display: none;
  }

  /* 開いたときだけ表示 */
  .nav_item.open ul {
    display: block;
    font-size: 14px;
    padding: 0.5rem 0 1rem 0.5rem;
  }
  
  /* アコーディオン内のリンクの余白を増やす */
  .nav_item.open ul li {
    padding: 8px 0;
  }
  
  .nav_item.open ul li a {
    display: block;
    padding: 8px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .navi__lists {
    padding-left: 0;
    width: 90%;
    margin: 0 auto;
  }
  .drawer_header {
    height: 74px;
  }
  .fa-user {
    color: #fff;
    font-size: 24px;
    margin-right: 10px;
    position: absolute;
    right: 100px;
    margin-top: 3px;
  }
  .drawer_header .fa-user, .drawer_header .fa-shopping-cart:before{
    color: #111;
  }
}
@media screen and (max-width: 768px){
  .logo img{
    width: 180px;
  }
}
@media only screen and (min-width: 768px) {
  .ec-headerSearch .ec-headerSearch__keyword input[type=search]{
    text-align: center;
  }
}
.ec-headerNav .ec-headerNav__itemIcon {
  color: inherit!important; /* 親要素（aタグ）の色を使う */
  margin-bottom: 8px!important;
}
.ec-headerNav .ec-headerNav__itemLink {
  color: inherit!important; /* 親要素（aタグ）の色を使う */
  font-size: 12px!important;
}
.ec-headerNav__item a {
  display: flex;         /* アイコンと文字を横並びに */
  flex-direction: column; /* 縦並びにする */
  align-items: center;   /* 縦位置を揃える */
  color: #fff!important;           /* 通常時の色 */
  text-decoration: none; /* 下線消し */
}

.ec-headerNav__item a:hover {
  color: #d3d3d3!important;            /* hover時に両方まとめて色変更 */
}

.ec-headerNav__itemIcon {
  margin-right: 5px;     /* アイコンと文字の間隔 */
  margin-top: 8px;
}