/* ========================================
 PC スタイル
======================================== */
.headerDropDown {
  background-color: #ffffff;
  overflow: visible;
  position: relative;
  z-index: 100;
  padding: 0 27px 0 27px;
}

.headerDropDown .headerInner {
  background-color: #ffffff;
  padding-top: 27px;
}

.headerDropDown .headerInner {
  background-color: #ffffff;
}

/* .headerNavigation クラスの overflow を visible にする */
.headerDropDown .headerNavigation {
  overflow: visible;
  padding: 0;
  /* パディングを削除 */
  box-sizing: border-box;
  background-color: #F6F6F6;
  margin: 0 -27px;
  /* 上4px、左右-27px、下0 */
  position: relative;
}

/* 第一階層メニューを横並びで中央左右寄せに */
.headerDropDown .headerNavigation>ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  width: 100%;
  position: relative;
}

@media screen and (max-width: 767px) {
  .headerDropDown .headerNavigation>ul {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 10px 0;
  }
}
@media screen and (max-width: 743px) and (orientation: portrait) {
  .headerDropDown .headerNavigation>ul {
    max-width: 370px;
  }
}

/* 第一階層メニュー項目のパディング調整 */
.headerDropDown .headerNavigation>ul>li {
  padding: 0;
  /* パディングを削除してくっつける */
}

.headerDropDown .headerNavigation>ul>li:first-child {
  padding-left: 0;
  /* 最初の項目は左パディングなし */
}

.headerDropDown .headerNavigation>ul>li:last-child {
  padding-right: 0;
  /* 最後の項目は右パディングなし */
}

/* 第一階層メニューのリンクカラー */
.headerDropDown .headerNavigation>ul>li>a {
  color: #010101;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 16px 47.5px;
  display: block;
  position: relative;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .headerDropDown .headerNavigation>ul>li>a {
    padding: 16px 22px;
  }
}

@media screen and (max-width: 767px) {
  .headerDropDown .headerNavigation>ul>li>a {
    padding: 1px 15px;
    border-right: 1px solid #D8D8D8;
  }
}

@media screen and (max-width: 743px) and (orientation: portrait) {
  .headerDropDown .headerNavigation>ul>li:nth-child(3)>a,
  .headerDropDown .headerNavigation>ul>li:last-child>a {
    border-right: none;
  }
}

/* 第一階層メニューのマウスオーバー時のカラー */
.headerDropDown .headerNavigation>ul>li>a:hover {
  color: #7D6B53;
  opacity: 1;
  /* box-shadow: inset 0 -2px 0 0 #7D6B53; */
}

/* dropdown要素のマウスオーバー時のボーダー */
.headerDropDown .headerNavigation .dropdown>a {
  position: relative;
}

.headerDropDown .headerNavigation .dropdown:hover>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 47.5px;
  right: 47.5px;
  height: 2px;
  background-color: #7D6B53;
}

@media screen and (max-width: 767px) {
  .headerDropDown .headerNavigation .dropdown:hover>a::after {
    content: none;
  }
}

/* SP版のフォントサイズ */
@media screen and (max-width: 767px) {
  .headerDropDown .headerNavigation>ul>li>a {
    font-size: 13px;
  }
}

.headerDropDown .headerNavigation .dropdown {
  position: static;
  overflow: visible;
}

.headerDropDown .headerNavigation .dropdown:hover .dropdown-menu {
  transform: translateY(0);
  /* opacity: 1; */
  visibility: visible;
}

/* オーバーレイ背景 */
.headerDropDown .headerNavigation .dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
  pointer-events: none;
}

.headerDropDown .headerNavigation .dropdown-overlay.show {
  opacity: 1;
  visibility: visible;
}

@media screen and (max-width: 767px) {
  .headerDropDown .headerNavigation .dropdown-overlay {
    display: none;
  }
}

.headerDropDown .headerNavigation .dropdown-menu {
  position: fixed;
  /* top: 100%; */
  left: 0;
  background: #fff;
  z-index: -1;
  width: 100%;
  padding: 0;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.25s ease-out, visibility 0.25s ease-out;
  pointer-events: none;
  box-sizing: border-box;
  display: flex;
  gap: 60px;
  justify-content: center;
  padding: 30px 40px;
}

@media screen and (max-width: 767px) {
  .headerDropDown .headerNavigation .dropdown-menu {
    display: none;
  }
}


.headerDropDown .headerNavigation .dropdown:hover .dropdown-menu {
  pointer-events: auto;
  z-index: -1;
  transform: translateY(0);
  visibility: visible;
}

@media screen and (max-width: 767px) {
  .headerDropDown .headerNavigation .dropdown:hover .dropdown-menu {
    transform: translateY(-100%);
    visibility: hidden;
  }
}

.headerDropDown .headerNavigation .dropdown-inner {
  display: flex;
  gap: 60px 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .headerDropDown .headerNavigation .dropdown-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 20px;
  }
}


/* @media screen and (min-width: 1025px) and (max-width: 1270px) {
  .headerDropDown .headerNavigation .dropdown-inner {
    gap: 30px 60px;
    width: calc(100% - 120px);
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .headerDropDown .headerNavigation .dropdown-inner {
    gap: 20px 40px;
    width: calc(100% - 110px);
  }
} */

.headerDropDown .headerNavigation .dropdown-section .section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  /* margin: 0 0 15px 0; */
  padding-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.headerDropDown .headerNavigation .dropdown-section .section-title a {
  font-size: 16px;
  padding: 0;
}

@media screen and (min-width: 1025px) and (max-width: 1270px) {
  .headerDropDown .headerNavigation .dropdown-section .section-title {
    /* margin: 0 0 10px 0; */
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .headerDropDown .headerNavigation .dropdown-section .section-title {
    /* margin: 0 0 5px 0; */
  }
}

.headerDropDown .headerNavigation .dropdown-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.headerDropDown .headerNavigation .dropdown-section li {
  margin: 0;
  padding: 0;
}

.headerDropDown .headerNavigation .dropdown-section a {
  display: block;
  padding: 5px 0;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

@media screen and (min-width: 1025px) and (max-width: 1270px) {
  .headerDropDown .headerNavigation .dropdown-section a {
    padding: 4px 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .headerDropDown .headerNavigation .dropdown-section a {
    padding: 3px 0;
  }
}

.headerDropDown .headerNavigation .dropdown-section a:hover {
  color: #7D6B53;
  opacity: 1;
}

@media screen and (min-width: 768px) {
  .drawer.drawerDropDown .headerNavigation .dropdown-menu {
    display: none;
  }
}

.header_bnr_freearea {
  z-index: -2;
  position: relative;
}

/* ========================================
 TB スタイル
======================================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .drawer.drawerDropDown {
    padding: 30px 15px 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1194px) and (orientation: landscape) {
  .drawer.drawerDropDown.menu-open {
    padding: 30px 15px 0;
  }
}

/* ========================================
 SP スタイル
======================================== */
.drawer.drawerDropDown .headerNavigation,
.drawer.drawerDropDown .headerNavigation {
  margin-bottom: 40px;
}

.drawer.drawerDropDown .headerNavigation,
.drawer.drawerDropDown .headerNavigation a {
  color: #fff;
}

.drawer.drawerDropDown .headerNavigation>ul>li {
  border-top: 1px solid #a0917c;
}

.drawer.drawerDropDown .headerNavigation>ul>li:first-child {
  border-top: none;
}

.drawer.drawerDropDown .headerNavigation>ul>li:last-child {
  border-bottom: 1px solid #a0917c;
}

.drawer.drawerDropDown .headerNavigation .dropdown>a {
  font-size: 16px;
  padding: 14px 30px 14px 0;
  display: block;
  position: relative;
  overflow: visible;
}

.drawer.drawerDropDown .headerNavigation>ul>li.dropdown>a::after {
  background-image: url(/ec/shop/images/common/icon-arrow-up-drawer01.png);
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: inline-block;
  height: 9px;
  position: absolute;
  right: 5px;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(270deg);
  transform: translateY(-50%) rotate(270deg);
  width: 17px;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}

/* 確実に表示されるための追加ルール */
.drawer.drawerDropDown .headerNavigation .dropdown a::after {
  background-image: url(/ec/shop/images/common/icon-arrow-up-drawer01.png);
  content: "";
  display: inline-block;
  opacity: 1;
  visibility: visible;
}

/* menu-open状態でも矢印を表示 */
.drawer.drawerDropDown .headerNavigation.menu-open .dropdown:not(.active) a::after {
  background-image: url(/ec/shop/images/common/icon-arrow-up-drawer01.png);
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: inline-block;
  height: 9px;
  position: absolute;
  right: 5px;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(270deg);
  transform: translateY(-50%) rotate(270deg);
  width: 17px;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}

/* 通常状態での矢印表示 */
.drawer.drawerDropDown .headerNavigation:not(.menu-open) .dropdown a::after {
  background-image: url(/ec/shop/images/common/icon-arrow-up-drawer01.png);
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: inline-block;
  height: 9px;
  position: absolute;
  right: 5px;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(270deg);
  transform: translateY(-50%) rotate(270deg);
  width: 17px;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}

/* SP時のドロップダウンメニューを非表示 */
.drawer.drawerDropDown .headerNavigation .dropdown-menu {
  display: none;
}

/* SP時のスライドアニメーション */
.drawer.drawerDropDown .headerNavigation {
  position: relative;
  overflow: visible;
  height: auto;
  transition: transform 0.3s ease-in-out;
  transform: translateX(0);
}

.drawer.drawerDropDown .headerNavigation.menu-open {
  transform: translateX(-105%);
}

.drawer.drawerDropDown .headerNavigation>ul {
  width: 100%;
  transition: none;
  transform: none;
}

/* SP時のアクティブ状態でドロップダウンメニューを表示 */
.drawer.drawerDropDown .headerNavigation .dropdown-menu {
  display: none;
  position: absolute; /* fixedからabsoluteに変更してdrawerの子要素として扱う */
  top: 0;
  left: 0;
  width: 100%;
  height: auto; /* autoに変更してコンテンツに合わせる */
  min-height: 100vh; /* 最小高さは確保 */
  background: #7D6B53;
  padding: 0;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow: visible; /* visibleに変更してdrawerのスクロールに委ねる */
}

.drawer.drawerDropDown .headerNavigation .dropdown.active .dropdown-menu {
  display: block;
}

.drawer.drawerDropDown .headerNavigation.menu-open .dropdown.active .dropdown-menu {
  transform: translateX(105%);
}

/* 戻るボタンを押して第一階層が戻る時のアニメーション */
.drawer.drawerDropDown .mannerGuide,
.drawer.drawerDropDown .externalLink,
.drawer.drawerDropDown .generalLink {
  transform: translateX(0);
  transition: transform 0.3s ease-in-out;
}

/* 第一階層クリック時に他の要素も左に移動 (優先順位を上げる) */
.drawer.drawerDropDown.menu-open .mannerGuide,
.drawer.drawerDropDown.menu-open .externalLink,
.drawer.drawerDropDown.menu-open .generalLink {
  transform: translateX(-105%) !important;
  transition: transform 0.3s ease-in-out;
}

.drawer.drawerDropDown .headerNavigation.menu-open {
  position: relative;
}

/* 戻るボタン（HTML要素） */
.drawer.drawerDropDown .headerNavigation .dropdown-menu .back-button {
  display: block;
  padding: 14px 20px 0 20px;
  color: #fff;
  font-weight: 400;
  cursor: pointer;
  position: relative;
  text-align: right;
  letter-spacing: 0.055em;
}

.drawer.drawerDropDown .headerNavigation .dropdown-menu .back-button::after {
  content: "";
  background-image: url(/ec/shop/images/common/icon-arrow-up-drawer01.png);
  background-repeat: no-repeat;
  background-size: contain;
  height: 7px;
  position: absolute;
  right: 60px;
  top: 29px;
  transform: translateY(-50%) rotate(90deg);
  width: 13px;
}

.drawer.drawerDropDown .headerNavigation .dropdown-menu .back-button .back-text {
  font-size: 16px;
  font-weight: 600;
}

.drawer.drawerDropDown .headerNavigation .dropdown-menu .back-button .back-icon {
  background-image: url(/ec/shop/images/common/icon-arrow-up-drawer01.png);
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  height: 7px;
  position: absolute;
  right: 38px;
  top: 29px;
  transform: translateY(-50%) rotate(90deg);
  width: 13px;
}

/* SP時のドロップダウンメニュー内のスタイル調整 */

.drawer.drawerDropDown .headerNavigation .dropdown-inner {
  display: block;
  width: 100%;
  padding: 0 12px 50px; /* iOS対応：下部パディングを増やしてロケーションバー分を確保 */
}

@media screen and (max-width: 767px) {
  .drawer.drawerDropDown .headerNavigation .dropdown-inner {
    padding: 0 12px 100px; /* iOS対応：下部パディングを増やしてロケーションバー分を確保 */
    min-height: calc(100vh - 60px); /* iOS対応：最小高さを設定 */
  }
}

.drawer.drawerDropDown .headerNavigation .dropdown-section:not(:last-child) {
  margin-bottom: 10px;
}

.drawer.drawerDropDown .headerNavigation .dropdown-section .section-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px 0;
  padding: 8px 0 5px 5px;
  color: #fff;
  border-bottom: 1px solid #a0917c;
}


.drawer.drawerDropDown .headerNavigation .dropdown-section .section-title a {
  position: relative;
  display: block;
}
.drawer.drawerDropDown .headerNavigation .dropdown-section .section-title a::after {
    background-image: url(/ec/shop/images/common/icon-arrow-up-drawer01.png);
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    display: inline-block;
    height: 9px;
    position: absolute;
    right: 0;
    top: 55%;
    transform: translateY(-50%) rotate(-90deg);
    width: 17px;
    z-index: 1;
}

.drawer.drawerDropDown .headerNavigation .dropdown-section ul li a {
  padding: 2px 0 2px 15px;
  font-size: 16px;
  display: block;
  position: relative;
}

.drawer.drawerDropDown .headerNavigation .dropdown-section ul li a::after {
  background-image: url(/ec/shop/images/common/icon-arrow-up-drawer01.png);
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: inline-block;
  height: 9px;
  position: absolute;
  right: 0;
  top: 55%;
  transform: translateY(-50%) rotate(-90deg);
  width: 17px;
  z-index: 1;
}

.drawer.drawerDropDown .drawerMainMenu {
  margin-bottom: 0;
}

/* iOS対応：ドロワー本体とdrawerInnerのスクロール設定 */
@media screen and (max-width: 767px) {
  /* ドロワー本体のスクロール設定 */
  .drawer.drawerDropDown {
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* drawerInnerの設定 */
  .drawer.drawerDropDown .drawerInner {
    min-height: 100vh !important;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 50px !important; /* iOS対応：下部パディングでロケーションバー分を確保 */
  }
  
  /* 第二階層メニュー表示時のdrawer高さ調整 */
  .drawer.drawerDropDown.menu-open {
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* タブレットデバイス用スタイル（JavaScriptで制御） */
body.tablet-device .headerDropDown .headerNavigation .dropdown:hover .dropdown-menu {
  transform: translateY(-100%) !important;
  visibility: hidden !important;
}

body.tablet-device .headerDropDown .headerNavigation .dropdown:hover>a::after {
  content: none !important;
}

/* iPad mini 6 横向き対応（実際の画面幅1133px） */
@media screen and (width: 1133px) and (orientation: landscape) {
  .drawer.drawerDropDown {
    padding: 30px 15px 0;
  }
}

