/* ============================================ */
/* == 既存のCSS (ここから) == */
/* ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}
/* カスタマイズ用CSS */
/* カレンダー */
.ec-calendar .ec-calendar__today:before {
    background: #ffd5ec;
}
/* 商品ページ */
.ec-sliderItemRole .slideThumb {
    margin-bottom: 0px;
    margin-top: 25px;
}
/* 全体 */
.ec-footerRole {
    background: #f8e0e8;
    color: #696969;
}
.ec-footerTitle__logo {
    color: #696969;
}
.ec-footerTitle__copyright {
    color: #696969;
}
.ec-footerNavi__link {
    color: #696969;
}

/* 既存の検索ボックススタイル (主にPC用として機能) */
ec-headerSearch .search-name {
    /* input自身の背景と枠線をなくし、親要素のスタイルが見えるようにする */
    background-color: transparent;
    border: none;
    outline: none; /* クリックしたときの青い枠線も消す */
    width: 100%;
    height: 100%;
    padding: 0 15px; /* 文字が端にくっつかないように調整 */
    color: #525263; /* 文字色を親要素から継承しない場合があるので指定 */
}

/* 2. ブラウザのオートフィル時のスタイルを上書き */
.ec-headerSearch .search-name:-webkit-autofill,
.ec-headerSearch .search-name:-webkit-autofill:hover,
.ec-headerSearch .search-name:-webkit-autofill:focus,
.ec-headerSearch .search-name:-webkit-autofill:active {
    /* 
     * 背景色を上書きするためのトリック。
     * background-colorは上書きできないため、box-shadowで背景色と同じ色の内側の影を作る。
     */
    -webkit-box-shadow: 0 0 0 30px #f6f6f6 inset !important;
    
    /* オートフィル時に文字が黒くなってしまうのを防ぐ */
    -webkit-text-fill-color: #525263 !important;
    
    /* ★★★ここで角丸を再設定するのが重要★★★ */
    border-radius: 50px !important;
}

/* (参考) 元のCSSのborder-radiusは1行にまとめられます */
.ec-headerSearch .ec-headerSearch__keyword {
    position: relative;
    color: #525263;
    border: 1px solid #ccc;
    background-color: #f6f6f6;
    float: right;
    width: 90%;
    /* 以下の5行は1行にまとめられます */
    border-radius: 50px;
    
    /* inputとボタンを横並びにするために追加するとより良くなります */
    display: flex;
    align-items: center;
}

/* 既存のレコメンド等スタイル */
.rec_Role {
    color: black; background: #F8F8F8; width: 90%;
    margin-left: 5%; padding: 20px 0; margin-top: 20px; margin-bottom: 20px;
}
.rec-role_sub {
    margin: 0 auto; padding: 0 20px; box-sizing: border-box; font-size: 16px;
    line-height: 1.4; color: #525263; -webkit-text-size-adjust: 100%;
    width: 100%; max-width: 1130px;
}
.rec_secHeading { margin-bottom: 15px; color: black; }
.rec_secHeading_ja { font-size: 15px; font-weight: normal; letter-spacing: .15em; vertical-align: 2px; padding: 15px; }
.flex-container_rec_sp { display: flex; flex-wrap: wrap; padding: 10px; justify-content: center; }
.flex-rec_sp { margin: 5px; box-sizing: border-box; flex-basis: 30%; order:1; text-align: center; }


/* 既存のカテゴリボックススタイル */
.category_box{ padding:10px; background:#fffacd; border:1px solid #999999; }
.sub_category_box{ position: relative; padding:10px; /* height:100% は内容による */ background:#ffd5ec; border:1px solid #cccccc; }
.sub_sub_category_box{ position: relative; padding: 10px 10px 10px 20px; background:#fff0f5; border:1px solid #cccccc; }
#nolink_a { text-decoration: none; color: black; }

/* 既存の画像高さ調整 */
@media only screen and (max-width: 640px) { img.head{ height: 22px; } }
@media only screen and (min-width: 641px) { img.head{ height: 27px; } }



/* 既存のPC/スマホ共通Flexアイテムスタイル (主にPCで有効になる想定) */
.flex-logo { margin: 10px auto; padding: 5px 10px; box-sizing: border-box; }
.flex-sub { margin: 10px auto; padding: 5px 10px; }
.flex-up { flex-basis: 30%; }
.flex-down { flex-basis: 30%; }
.flex-subcontainer { justify-content: space-between; max-width: 1920px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; }
/* #space { line-height: 300%; } */ /* 非標準プロパティ */

/* 既存のSlick Sliderスタイル */
.slick-slider { margin-bottom: 30px; width: 100%; margin: 0 auto; }
.slick-dots { position: absolute; bottom: -45px; display: block; width: 100%; padding: 0; list-style: none; text-align: center; }
.slick-dots li { position: relative; display: inline-block; width: 20px; height: 20px; margin: 0 5px; padding: 0; cursor: pointer; }
.slick-dots li button { font-size: 0; line-height: 0; display: block; width: 20px; height: 20px; padding: 5px; cursor: pointer; color: transparent; border: 0; outline: none; background: transparent; }
.slick-dots li button:hover, .slick-dots li button:focus { outline: none; }
.slick-dots li button:hover:before, .slick-dots li button:focus:before { opacity: 1; }
.slick-dots li button:before { content: " "; line-height: 20px; position: absolute; top: 0; left: 0; width: 12px; height: 12px; text-align: center; opacity: .25; background-color: black; border-radius: 50%; }
.slick-dots li.slick-active button:before { opacity: .75; background-color: black; }
.slick-dots li button.thumbnail img { width: 0; height: 0; }

/* 既存の送料テーブルスタイル */
table.shipping_table { font-size: 98%; color: #696969; border-collapse: collapse; }
table.shipping_table td { border: 1px solid #595959; border-collapse: collapse; text-align: center; width: 10rem; padding: 3px; height: 25px; }
table.shipping_table th { border: 1px solid #595959; border-collapse: collapse; text-align: left; padding: 5px; height: 25px; background: #f0e6cc; }
.even { background: #fbf8f0; }
.odd { background: #fefcf9; }

/* ================================================= */
/* == PC向けスタイル (@media min-width: 860px) == */
/* ================================================= */
@media only screen and (min-width: 901px) { /* PC & タブレット横向き想定 */
    /* お知らせ欄 (.info) PC用スタイル (既存) */
    .info { text-align: center; margin: 20px auto; border-top: none; border-bottom: none; }
    .info a { display: block; color: #222; font-size: 18px; padding: 10px; background-color: #ff9999; text-decoration: none; }

    /* PC表示時のヘッダー (既存の div#header スタイルが適用される) */
    div#header:not(.mobile-header-only) {
        background: #ffffff; padding: 10px; height: auto; /* 既存の height:100% を解除 */ text-align: center;
        border: 1px solid #cccccc; margin: 0 auto; text-decoration: none;
        display: block !important; /* スマホ用のnone指定を確実に上書き */
    }

    /* PC表示時の既存Flexコンテナ */
    #header:not(.mobile-header-only) .flex-container {
        justify-content: center; /* 既存CSSに合わせる */ max-width: 1920px; margin: 0 auto;
        display: flex !important; /* スマホ用のblock指定を確実に上書き */
        flex-wrap: wrap; align-items: center; flex-direction: row;
    }

    /* PC表示時の既存Flexアイテム */
    #header:not(.mobile-header-only) .flex-search {
        margin: 10px auto; padding: 5px 10px; box-sizing: border-box; padding-right: 38px; width: 30%;
        display: block; flex-basis: auto; order: 0; align-self: auto;
    }
    #header:not(.mobile-header-only) .flex-logo {
        margin: 10px auto; padding: 5px 10px; box-sizing: border-box;
        display: block; flex-basis: auto; order: 0; align-self: auto; text-align: center;
    }
    #header:not(.mobile-header-only) .flex-sub {
        margin: 10px auto; padding: 5px 10px;
        display: block; flex-basis: auto; order: 0; align-self: auto;
    }
    #header:not(.mobile-header-only) .flex-subcontainer {
        justify-content: center; /* 既存CSSに合わせる */ max-width: 1920px; margin: 0 auto;
        display: flex; flex-direction: column; align-items: center;
    }
    #header:not(.mobile-header-only) .flex-up { flex-basis: 30%; display: block; }
    #header:not(.mobile-header-only) .flex-down { flex-basis: 30%; display: block; }

     /* PC表示時の検索ボックススタイル (既存のスタイルが適用されるように) */
    #header:not(.mobile-header-only) .ec-headerSearch .ec-headerSearch__keyword {
        position: relative; float: right; width: 90%;
        border-radius: 50px; border-bottom-left-radius: 50px; /* 既存の丸み */
        border-right: 1px solid #ccc; /* 境界線 */
        box-sizing: content-box; /* 既存に合わせるか確認 */ height: auto; padding: initial;
        font-size: initial; line-height: initial;
        /* スマホ用スタイルを打ち消し */
        flex-grow: initial; border-left: 1px solid #ccc; background-color: #f6f6f6; color: #525263;
    }
    #header:not(.mobile-header-only) .ec-headerSearch button[type="submit"] {
        height: auto; padding: initial; font-size: initial; border-radius: initial;
        border-left: 1px solid #ccc; /* 境界線 */
        /* スマホ用スタイルを打ち消し */
        flex-shrink: initial; display: initial; align-items: initial; justify-content: initial; box-sizing: content-box;
    }

    /* PC表示時に新しいモバイルヘッダー要素を非表示 */
    #header.mobile-header-only { display: none !important; }
    .hamburger-button,
    #hamburger-menu.hamburger-menu-content { display: none !important; visibility: hidden !important; }
}

/* ====================================================== */
/* == 新しいモバイルヘッダースタイル (@media max-width: 900px) == */
/* ====================================================== */
@media only screen and (max-width: 859px) {
    /* お知らせ欄 (.info) スマホ用スタイル (既存) */
    .info { text-align: center; margin: 20px auto; border-top: 1px solid #999999; border-bottom: 1px solid #999999; }
    .info a { display: block; color: #222; padding: 10px; font-size: 12px; background-color: #ff9999; text-decoration: none; }

    /* --- 既存スタイルの打ち消し (スマホ向け) --- */
    div#header:not(.mobile-header-only) { display: none !important; } /* PC用ヘッダー非表示 */
    #header.mobile-header-only { /* 新モバイルヘッダー表示 */
        display: block !important; padding: 0; height: auto; margin: 0; border: none; text-align: left;
        background: #ffffff; box-sizing: border-box;
    }
    /* 既存のPC用Flexコンテナとアイテムを非表示 */
    #header .flex-container, #header .flex-logo, #header .flex-search, #header .flex-sub,
    #header .flex-subcontainer, #header .flex-up, #header .flex-down {
        display: none !important;
    }
    /* 古いハンバーガーメニューを非表示 */
    .menu-btn, .menu-content, .menu-content_sp, #menu-btn-check {
        display: none !important; visibility: hidden !important;
    }

    /* --- 新しい Mobile Header Layout (スマホ向け) --- */
    #header.mobile-header-only .mobile-header-top {
        display: flex !important;
        flex-direction: column;   /* 子要素を縦に積む */
        align-items: center;      /* 子要素を中央揃え */
        padding: 15px 10px;       /* 上下左右の余白 */
        background-color: inherit;
        border-bottom: 1px solid #eee; /* 区切り線 */
        gap: 15px;                  /* 各要素間の縦のスペース */
        width: 100%;
    }

    /* 1. Logo Area */
    #header.mobile-header-only .mobile-header-logo-wrapper {
        order: 1; /* 表示順: 1番目 */
        text-align: center;
    }
    #header.mobile-header-only .mobile-header-logo-wrapper img {
        height: 40px;
        display: inline-block;
        max-width: 180px;
    }

    /* 2. Text Buttons Area */
    #header.mobile-header-only .mobile-header-text-buttons {
        order: 2; /* 表示順: 2番目 */
        width: 100%;
        display: flex;
        flex-wrap: wrap;      /* アイコンを折り返す */
        justify-content: center; /* アイコンを中央揃え */
        gap: 5px; /* アイコン間の隙間 */
    }

    /* 3. Search & Cart Area Wrapper */
    #header.mobile-header-only .mobile-header-search-wrapper {
        order: 3; /* 表示順: 3番目 */
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* 検索とカートを囲むラッパーのスタイル */
    #header.mobile-header-only .flex-search_sp {
        display: flex;
        flex-wrap: wrap; /* ログイン時に折り返しを許可 */
        gap: 8px;
        width: 100%;
    }

    /* 検索ブロックが可能な限り幅を取るように */
    #header.mobile-header-only .flex-search_sp .ec-headerNaviRole__search {
        min-width: 150px;
        width: 70%;
    }

    /* カートは幅を維持する */
    #header.mobile-header-only .flex-search_sp .ec-headerRole__cart {
       
    }

    /* 検索入力欄のスタイルを修正 */
    #header.mobile-header-only .ec-headerSearch .ec-headerSearch__keyword {
        float: none; /* floatを無効化 */
        width: 100%; /* 幅を100%にする */
        position: relative;
        color: #525263;
        border: 1px solid #ccc;
        background-color: #f6f6f6;
        border-radius: 50px;
    }

    /* ようこそメッセージのスタイル */
    #header.mobile-header-only .welcome-message {
        width: 100%;
        order: -1; /* 検索とカートより上に表示 */
        text-align: center;
        font-size: 0.9em;
        color: #555;
        margin: 0;
        padding: 0;
    }
    #header.mobile-header-only .welcome-message p {
        margin: 0;
        padding: 0;
    }


    /* --- Hamburger Menu Content (Filter Only - スマホ向け) --- */
    #header.mobile-header-only #hamburger-menu.hamburger-menu-content {
        display: block !important; visibility: visible !important; position: fixed; top: 0; left: 0; right: auto;
        bottom: 0; width: 85%; max-width: 320px; height: 100%; background-color: #fdfdfd; border-right: 1px solid #ccc;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1); overflow-y: auto; padding: 60px 15px 20px 15px; z-index: 1001;
        transition: transform 0.3s ease-in-out; transform: translateX(-100%); text-align: left;box-sizing: border-box;
    }
    /* 既存メニュー内スタイルリセット */
    #header.mobile-header-only #hamburger-menu.hamburger-menu-content ul { all: initial; list-style: none; }
    #header.mobile-header-only #hamburger-menu.hamburger-menu-content ul li { all: initial; }
    #header.mobile-header-only #hamburger-menu.hamburger-menu-content ul li a { all: initial; display: block; padding: 10px 0; color: #337ab7; text-decoration: none; }
    #header.mobile-header-only #hamburger-menu.hamburger-menu-content ul li a::before { content: none; }

    #header.mobile-header-only #hamburger-menu.hamburger-menu-content.is-active { transform: translateX(0); }

    /* Section inside Menu (スマホ向け) */
    #header.mobile-header-only .hamburger-section.filter-section { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    #header.mobile-header-only .hamburger-section-title.filter-title { font-size: 1.1em; font-weight: bold; margin-bottom: 15px; color: #333; border-left: 4px solid #4CAF50; padding-left: 8px; }

    /* Filter Form Styles (Inside Menu - スマホ向け) */
    #header.mobile-header-only .filter-form { }
    #header.mobile-header-only .filter-fieldset { border: none; padding: 0; margin: 0 0 15px 0; }
    #header.mobile-header-only .filter-fieldset:last-of-type { margin-bottom: 0; }
    #header.mobile-header-only .filter-legend { font-weight: bold; margin-bottom: 10px; padding: 0; display: block; width: 100%; font-size: 1em; color: #444; }
    #header.mobile-header-only .filter-legend-sub { font-weight: normal; font-size: 0.95em; color: #555; margin-top: 10px; }
    #header.mobile-header-only .filter-item { margin-bottom: 8px; }
    #header.mobile-header-only .filter-item:last-child { margin-bottom: 0; }
    #header.mobile-header-only .filter-label { display: block; cursor: pointer; padding: 5px 0; font-size: 0.95em; color: #333; line-height: 1.4; }
    #header.mobile-header-only .filter-checkbox { margin-right: 8px; vertical-align: middle; width: 16px; height: 16px; cursor: pointer; position: relative; top: -1px; }
    #header.mobile-header-only .filter-category-item { margin-bottom: 5px; }
    #header.mobile-header-only .filter-category-heading { display: block; font-weight: bold; margin-bottom: 5px; color: #333; font-size: 1em; }
    #header.mobile-header-only .filter-category-level-2 { padding-left: 15px; }
    #header.mobile-header-only .filter-category-level-3 { padding-left: 30px; }
    #header.mobile-header-only .filter-category-level-4 { padding-left: 45px; }
    #header.mobile-header-only .filter-no-categories { font-size: 0.9em; color: #888; padding: 5px 0; }
    #header.mobile-header-only .filter-submit-button { display: block; width: 100%; margin-top: 20px; padding: 12px 15px; background-color: #4CAF50; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 1em; font-weight: bold; text-align: center; transition: background-color 0.2s ease; }
    #header.mobile-header-only .filter-submit-button:hover,
    #header.mobile-header-only .filter-submit-button:focus { background-color: #45a049; }

    /* Prevent body scroll (スマホ向け) */
    body.menu-open { overflow: hidden; }

} /* End of @media (max-width: 859px) */

/*アコーディオン*/
.メーカー-accordion-content {
  overflow: hidden; /* 内容がはみ出ないように */
  max-height: 0;    /* デフォルトで高さを0にして非表示にする */
  padding-top: 0;   /* 開閉時にパディングもアニメーションさせる */
  padding-bottom: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* スムーズな開閉アニメーション */
  /* 必要に応じて他のスタイル (margin, borderなど) を追加 */
}

.メーカー-accordion-content.active {
  /* 十分な高さを指定 (コンテンツが収まる高さ) */
  max-height: 500px; /* 例: コンテンツの最大高さを適宜調整 */
}

/* オプション: トリガーボタンのスタイル */
.メーカー-accordion {
　display: block;
  position: relative; /* 子要素(::after)の絶対位置指定の基準点 *
  width: 100%;    /* 幅を親に合わせる場合 */
  text-align: left; /* テキストを左寄せにする場合 */
  cursor: pointer;
  transition: background-color 0.2s;
}
.メーカー-accordion strong {
  display: block; /* 必要に応じて */
  margin: 0;
  white-space: nowrap;
}
.メーカー-accordion:hover {
}
/* 開閉アイコン (::after 擬似要素) - strong 要素に適用 */
.メーカー-accordion strong::after {
  content: "▼"; /* デフォルトアイコン */
  display: inline-block; /* ★ 隣に表示 */
  margin-left: 8px;      /* ★ テキストとの間に少しスペース */
  font-size: 0.8em;      /* 例 */
  color: #333;          /* 例 */
  vertical-align: middle; /* ★ 縦方向の位置をテキストと合わせる（必要に応じて）*/
  /* position, right, top, transform, float は削除 */
}

/* 開いている状態のアイコン - トリガーの active クラスを参照 */
/* セレクタを修正: .メーカー-accordion.active の中の strong::after */
.メーカー-accordion.active strong::after {
  content: "▲";
}