/* ==========================================================================
   EC-CUBE 3系（アヴァロン様）完全再現統合CSS
   ========================================================================== */

/* 1. 基本設定・全体幅1000px固定 */
body {
    background-color: #ffffff !important;
    font-family: sans-serif;
    color: #333333;
}
a {
    color: #F6AB00;
    text-decoration: none;
}
a:hover {
    color: #d27d00;
}

/* 全体幅1000px中央寄せ・2カラムフレックス */
.ec-layoutRole__contents {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 15px auto !important;
    padding: 0 10px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
}
.ec-layoutRole__left {
    width: 200px !important;
    min-width: 200px !important;
    flex: 0 0 200px !important;
    margin-right: 20px !important;
}
.ec-layoutRole__main {
    width: 780px !important;
    max-width: 780px !important;
    flex: 1 1 780px !important;
}

/* 2. 上部メニュー（HOME / 商品一覧 / 決済...） */
#top_nav {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
    text-align: right;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 5px;
}
#top_nav li {
    display: inline-block;
    margin-left: 15px;
    font-size: 12px;
}
#top_nav li a {
    color: #555;
}
#top_nav li a:hover {
    color: #F6AB00;
}

/* 3. ヘッダー・ロゴ・検索 */
.ec-headerNav {
    background: #fff !important;
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
}
.ec-headerRole {
    max-width: 1000px !important;
    margin: 0 auto !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header_sub_title {
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
}
.ec-headerSearch .ec-input {
    background-color: #f3e5ca !important;
    border: 1px solid #e2cb9d !important;
    border-radius: 4px 0 0 4px !important;
    height: 38px !important;
}
.ec-headerSearch .ec-headerSearch__keywordBtn {
    background-color: #F6AB00 !important;
    border: none !important;
    color: #8d5a0e !important;
    height: 38px !important;
    border-radius: 0 4px 4px 0 !important;
}

/* 4. 左サイドバー（MENU見出し・カテゴリ・バナー） */
#side_menu_title {
    background: #404040;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    margin-bottom: 5px;
    text-align: center;
}
.ec-categoryNavi ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ec-categoryNavi > ul > li {
    display: block !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    background: whitesmoke !important;
    border-left: solid 6px #F6AB00 !important;
    border-bottom: solid 2px #dadada !important;
}
.ec-categoryNavi > ul > li > a {
    display: block !important;
    padding: 8px 10px !important;
    color: #404040 !important;
    font-weight: bold !important;
    font-size: 13px !important;
    text-decoration: none !important;
}
.ec-categoryNavi > ul > li > a:hover {
    background: #eee !important;
    color: #d27d00 !important;
}
#side_verbatim_banner {
    margin-top: 20px;
}

/* 5. メインエリア：メイン画像（nagare.jpg） */
#top_main_img {
    margin-bottom: 25px;
    text-align: center;
}
#top_main_img img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
}

/* 6. メインエリア：TOP商品一覧（3列グリッド完全再現） */
.avalon_top_items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 30px;
}
.top_cat_title {
    width: 100% !important;
    font-size: 15px !important;
    font-weight: bold !important;
    background: #EFEFEF !important;
    border-left: solid 6px #F6AB00 !important;
    padding: 8px 12px !important;
    margin: 20px 0 15px 0 !important;
    color: #333333 !important;
    box-sizing: border-box !important;
}
.avalon_top_items .top_cat_title:first-child {
    margin-top: 0 !important;
}
.item_waku {
    width: 31.3% !important;
    margin: 0 1% 20px 1% !important;
    border: 1px solid #E8E8E8 !important;
    padding: 12px 10px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}
.item_waku img {
    max-width: 100% !important;
    max-height: 160px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto 10px auto !important;
}
.item_ti {
    font-size: 12px !important;
    line-height: 1.4 !important;
    height: 4.2em !important;
    overflow: hidden !important;
    margin: 0 0 8px 0 !important;
    text-align: left !important;
}
.item_ti a {
    color: #404040 !important;
    font-weight: bold !important;
}
.kakaku {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #DE5D50 !important;
    margin: 0 0 10px 0 !important;
    text-align: right !important;
}
.kakaku a {
    color: #DE5D50 !important;
}
.more a {
    display: block !important;
    padding: 6px 0 !important;
    color: #FFF !important;
    background: #fd9535 !important;
    border-bottom: solid 2px #d27d00 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-align: center !important;
}
.more a:hover {
    background: #e57e1b !important;
}

/* 7. メインエリア：foot_menu（配送・支払案内枠） */
.avalon_foot_menu {
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}
.foot_haisou {
    margin-bottom: 20px;
}
.foot_t {
    font-weight: bold;
    font-size: 14px;
    background: #f5f5f5;
    padding: 6px 10px;
    border-left: 4px solid #F6AB00;
    margin-bottom: 8px;
    color: #333;
}
.foot_setumei {
    font-size: 12px;
    line-height: 1.6;
    padding: 0 10px;
    color: #555;
}
.foot_setumei ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 8. フッター（黄色背景・リンク白） */
.ec-footerRole {
    background-color: #F6AB00 !important;
    border-top: 1px solid #e8e8e8 !important;
    padding: 25px 0 !important;
    margin-top: 50px !important;
}
.custom_footer_area {
    text-align: center;
}
.footer_nav_links a {
    color: #ffffff !important;
    font-size: 13px;
    margin: 0 5px;
}
.footer_nav_links a:hover {
    text-decoration: underline !important;
}
.custom_footer_area .copyright {
    color: #ffffff !important;
    font-size: 12px;
    margin-top: 15px;
    line-height: 1.5;
}

/* スマホ表示対応 */
@media only screen and (max-width: 767px) {
    .ec-layoutRole__contents {
        display: block !important;
        padding: 0 10px !important;
    }
    .ec-layoutRole__left,
    .ec-layoutRole__main {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
    }
    .item_waku {
        width: 48% !important;
        margin: 0 1% 15px 1% !important;
    }
}