/* カスタマイズ用CSS */

/* =====================================================================
   本番 EC-CUBE3 テーマの移植（トップの おすすめ商品・プロモーション・全商品一覧ボタン）
   出典: 3 系 html/template/default/css/
     style.css / default.css / bootstrap.custom.min.css
   - 値は 3 系のまま。4 系の CSS と衝突しないよう .ec3 の中だけに効かせる
   - 3 系は html{font-size:62.5%} 前提で rem を併記しているが、4 系は 16px なので px 値のみ使う
   - .front_page #contents / #contents_top の指定は .ec3 に置き換え
   ===================================================================== */

/* --- bootstrap.custom.min.css: グリッド --- */
.ec3 .row:before,
.ec3 .row:after { content: " "; display: table; }
.ec3 .row:after { clear: both; }
.ec3 .col-xs-6, .ec3 .col-xs-12, .ec3 .col-sm-3, .ec3 .col-sm-6, .ec3 .col-sm-12 {
    position: relative;
    min-height: 1px;
}
.ec3 .col-xs-6, .ec3 .col-xs-12 { float: left; }
.ec3 .col-xs-12 { width: 100%; }
.ec3 .col-xs-6 { width: 50%; }
@media (min-width: 768px) {
    .ec3 .col-sm-3, .ec3 .col-sm-6, .ec3 .col-sm-12 { float: left; }
    .ec3 .col-sm-12 { width: 100%; }
    .ec3 .col-sm-6 { width: 50%; }
    .ec3 .col-sm-3 { width: 25%; }
}

/* --- style.css: グリッドの余白（3 系テーマで上書きされた値） --- */
.ec3 .row {
    margin-left: -8px;
    margin-right: -8px;
    padding-bottom: 16px;
}
.ec3 .col-xs-6, .ec3 .col-xs-12, .ec3 .col-sm-3, .ec3 .col-sm-6, .ec3 .col-sm-12 {
    padding-left: 8px;
    padding-right: 8px;
}
.ec3 .no-padding { padding: 0 !important; }
/* 3 系の img は原寸（はみ出す時だけ縮小）。4 系 style.css の .ec-role img { width: 100% } を打ち消す */
.ec3 img { width: auto; max-width: 100%; vertical-align: middle; }

/* --- style.css: ボタン --- */
.ec3 .btn {
    display: inline-block;
    margin-bottom: 0;
    text-align: center;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.42857143;
    user-select: none;
    font-size: 16px;
    padding: 10px 16px;
    font-weight: bold;
    text-decoration: none;
}
.ec3 .btn-success {
    color: #fff;
    background-color: #5CB1B1;
    border-color: #5CB1B1;
}
.ec3 .btn-success:hover,
.ec3 .btn-success:focus,
.ec3 .btn-success:active {
    color: #fff;
    background-color: #50A6A6;
    border-color: #50A6A6;
}
.ec3 .cb {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
}
.ec3 .btn .cb { margin: 0 5px; }

/* --- style.css: 商品一覧 --- */
.ec3 .item_photo {
    display: block;
    margin: 0 0 8px;
    text-align: center;
}
.ec3 .item_photo img { width: 100%; }
.ec3 .item_comment { margin: 0 0 8px; }
.ec3 .item_name {
    color: #525263;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: normal;
}
.ec3 .item_price {
    color: #525263;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}
.ec3 .text-warning { color: #9A947E; }
.ec3 .pickup_item a { color: inherit; text-decoration: none; }
@media only screen and (min-width: 768px) {
    .ec3 .item_photo { margin: 0 0 15px; }
    .ec3 .item_comment { margin: 0 0 15px; }
}

/* --- bootstrap.custom.min.css: h1（normalize）。太字はブラウザ既定と同じ --- */
.ec3 h1 { font-size: 2em; margin: 0.67em 0; font-weight: bold; }

/* --- default.css: Top Page --- */
.ec3 .txt_center { text-align: center; }
.ec3 .img_right { text-align: right; }
.ec3 a:hover img { opacity: 0.8; }
.ec3 .row > div { padding-bottom: 8px; }
.ec3 .row.no-padding > div { padding-bottom: 0; }
.ec3 .comment_area h4 { font-size: 24px; font-weight: bold; margin: 0 0 2px; }
.ec3 .comment_area h5 { font-size: 16px; font-weight: bold; margin: 0; }
.ec3 .comment_area p { margin: 10px 0 15px; }
/* 3 系では .front_page（トップ）だけのルール */
.front_page .ec3 .item_comment { color: #444; }
.ec3 .item_comment.text-warning,
.ec3 .item_name.text-warning {
    color: #9a947e;
    font-weight: bold;
    font-size: 16px;
}
@media only screen and (min-width: 768px) {
    .ec3 .row { padding-bottom: 24px; }
    .ec3 .comment_area h4 { font-size: 32px; margin: 0 0 8px; }
    .ec3 .comment_area h5 { font-size: 20px; }
    .ec3 .comment_area p { font-size: 20px; margin: 24px 0 24px; }
}


/* =====================================================================
   フッター
   出典: 3 系 style.css「Footer Setting」（#footer → .ec3-footer）
   4 系の黒いフッター（.ec-footerRole）は footer.twig の差し替えで使わない
   ===================================================================== */
.ec3-footer {
    background: #f8f8f8;
    border-top: 1px solid #e8e8e8;
    padding-top: 12px;
    padding-bottom: 24px;
    margin-top: 36px;
}
.ec3-footer .inner { max-width: 1150px; margin-left: auto; margin-right: auto; padding-left: 8px; padding-right: 8px; }
.ec3-footer ul { text-align: center; list-style: none; margin: 0; padding: 0; }
.ec3-footer ul li { display: inline-block; margin: 0 8px 8px; }
.ec3-footer a { color: #444; text-decoration: none; }
.ec3-footer a:hover { color: #686868; }
.ec3-footer .footer_logo_area { text-align: center; color: #000; }
.ec3-footer .footer_logo_area .logo { font-size: 16px; font-weight: bold; margin-bottom: 0; }
.ec3-footer .footer_logo_area .copyright { font-size: 10px; margin-top: 0; }
@media only screen and (min-width: 768px) {
    .ec3-footer { padding-top: 32px; margin-top: 80px; }
    .ec3-footer ul li:first-child { margin-left: 0; }
    .ec3-footer .footer_logo_area { margin-top: 88px; }
    .ec3-footer .footer_logo_area .logo { font-size: 30px; margin: 0; }
    .ec3-footer .footer_logo_area .copyright { font-size: 16px; }
}

/* ユーザー定義ページ（代金引換について / ポイント規約）
   出典: 3 系 style.css「COD Page」(.codTb)。
   見出し h3 は 3 系では専用ルールがなくブラウザ標準のまま → 4 系のリセットを戻してブラウザ標準値にする */
.ec3-userData h3 { font-size: 1.17em; font-weight: bold; margin: 1em 0; }
.codTb { width: 100%; border-collapse: collapse; }
.codTb tr:nth-child(2n-1) { background-color: #E7F3F3; }
.codTb th {
    padding: 8px 20px;
    border-bottom: 2px solid #CCC;
    background-color: #5CB1B1;
    color: #FFF;
}
.codTb th:nth-of-type(1) { border-right: 1px solid #FFF; }
.codTb td { padding: 8px 20px; border-bottom: 1px solid #CCC; }

/* =====================================================================
   商品一覧（app/template/default/Product/list.twig）
   出典: 3 系 style.css「a」「topicpath」「pagenumberarea」「Item List」「pagination」「form-control」「intro」
   グリッド・.item_photo/.item_name/.item_price は上の .ec3 共通ルールを使う
   ===================================================================== */
.ec3-list a { color: #0092C4; text-decoration: none; cursor: pointer; }
.ec3-list a:hover,
.ec3-list a:focus,
.ec3-list a:active { color: #33A8D0; text-decoration: none; outline: none; }
.ec3-list ul, .ec3-list ol { list-style: none; margin: 0; padding: 0; }
.ec3-list dl, .ec3-list dd { margin: 0; }

/* topicpath */
.ec3-list #topicpath {
    border-top: 1px solid #ccc;
    border-bottom: 1px dotted #ccc;
    padding: 0 8px;
}
.ec3-list #topicpath ol { padding-top: 1em; padding-bottom: 1em; list-style: none; overflow: hidden; }
.ec3-list #topicpath li { float: left; color: #333; font-size: 12px; }
.ec3-list #topicpath li a { float: left; display: inline-block; }
.ec3-list #topicpath li:after { content: "｜"; }
.ec3-list #topicpath li:last-child { font-weight: bold; }
.ec3-list #topicpath li:last-child:after { content: ""; }

/* 件数・表示件数・並び順 */
.ec3-list .intro { margin: 0; }
.ec3-list .pagenumberarea {
    text-align: right;
    margin: 0;
    padding-right: 16px;
    padding-bottom: 20px;
}
.ec3-list .pagenumberarea > li { float: none; display: inline-block; margin-left: 3px; width: auto; }
.ec3-list .form-control {
    border: 1px solid #C4CCCE;
    border-radius: 3px;
    box-shadow: none;
    font-size: 16px;
    height: 40px;
    padding: 6px 12px;
    width: auto;
    line-height: 1.5;
    background-color: #fff;
    color: #525263;
}
.ec3-list .form-control:focus { border-color: #3c8dbc; box-shadow: none; outline: none; }

/* 商品 */
.ec3-list .product_item { position: relative; }
.ec3-list .product_item a { display: block; padding-bottom: 16px; }
.ec3-list .product_item a:hover { background: rgba(255,255,255,0.3); text-decoration: none; }
.ec3-list .product_item a:hover img { opacity: 0.8; }
/* 3 系は matchHeight(jQuery) で高さを揃えていた → flex で代替 */
.ec3-list #item_list > .row { display: flex; flex-wrap: wrap; }
.ec3-list #item_list > .row:before,
.ec3-list #item_list > .row:after { display: none; }

/* pagination */
.ec3-list .pagination { width: 95%; margin: 16px auto; position: relative; clear: both; }
.ec3-list .pagination ul { list-style-type: none; margin: 0 auto; padding: 1em 0; text-align: center; }
.ec3-list .pagination ul li { display: inline-block; min-width: 29px; padding: 0 3px 0 2px; text-align: center; position: relative; }
.ec3-list .pagination ul li a { color: #525263; display: block; line-height: 1.8; padding: 5px 1em; text-decoration: none; }
.ec3-list .pagination ul li a:hover,
.ec3-list .pagination ul li a:focus { background: #f1f1f1; }
.ec3-list .pagination ul li.active a { background: #F3F3F3; text-decoration: none; }

@media only screen and (min-width: 768px) {
    .ec3-list #topicpath { padding: 24px 16px; border: 0 none; }
    .ec3-list #topicpath ol { padding-top: 0.7em; padding-bottom: 0.7em; border-bottom: 1px solid #ccc; }
    .ec3-list #topicpath li { font-size: 16px; }
    .ec3-list .intro { margin: 0; padding-top: 0.5em; padding-bottom: 28px; }
    .ec3-list .product_item { padding-bottom: 24px; }
    .ec3-list .pagination { width: 100%; }
}

/* =====================================================================
   商品詳細の説明文・フリーエリア内の画像（送料別途などのバッジ等）
   4 系 style.css の .ec-productRole img / .ec-role img { width: 100% } で引き伸ばされるため、
   3 系と同じく原寸（はみ出す時だけ縮小）に戻す
   ===================================================================== */
.ec-productRole .ec-productRole__description img,
.ec-role .ec-productRole__description img { width: auto; max-width: 100%; vertical-align: middle; }

/* =====================================================================
   ヘッダー（ロゴ・カート・検索・会員メニュー・カテゴリメニュー）
   出典: 3 系 style.css「Header Setting / cart / Search / Member area / Category navigation」
         default.css「Header Setting / cart area / search area」
   - #header は .ec3-header に置き換え
   - PC(768px〜) は 3 系の見た目、スマホは 4 系標準ヘッダー（.ec3-sp）を使う
   ===================================================================== */

/* PC / スマホの出し分け（3 系 style.css の .pc / .sp と同じ考え方） */
.ec3-pc { display: none !important; }
@media only screen and (min-width: 768px) {
    .ec3-pc { display: block !important; }
    .ec3-sp { display: none !important; }
}

/* --- style.css: 丸アイコンの色（svg スプライトは ec3_svg.twig）
   <use> で呼び出した中身には親要素を条件にしたセレクタが効かないため、3 系と同じく単独クラスで指定する
   （4 系テーマでは .icon-bg / .icon-with-bg は未使用） --- */
.icon-bg { fill: #d4d4d5; }
.icon-with-bg { fill: #fff; }

/* --- style.css / default.css: 共通 --- */
.ec3-header { color: #525263; }
.ec3-header ul { list-style: none; margin: 0; padding: 0; }
.ec3-header .copy { font-size: 9px; margin-top: 0; margin-bottom: 0; }
.ec3-header .header_logo_area { position: relative; z-index: 10; min-height: 54px; }
.ec3-header .header_logo_area .header_logo { font-size: 20px; margin: 0; }
.ec3-header .header_logo_area .header_logo a { text-decoration: none; color: #000; }
.ec3-header .header_logo_area .header_logo img { max-width: 100%; height: auto; }

/* badge */
.ec3-header .badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    background-color: #DE5D50;
    border-radius: 10px;
}

/* cart-trigger */
.ec3-header .cart-trigger {
    position: relative;
    display: block;
    height: 44px;
    overflow: hidden;
    white-space: nowrap;
    z-index: 3;
    cursor: pointer;
    margin: 0;
}
.ec3-header p.cart-trigger a:link,
.ec3-header p.cart-trigger a:visited,
.ec3-header p.cart-trigger a:hover,
.ec3-header p.cart-trigger a:active { text-decoration: none; color: #525263; }
.ec3-header p.cart-trigger:hover { opacity: 0.8; }
.ec3-header p.cart-trigger a {
    display: inline-block;
    width: 50px;
    height: 44px;
    line-height: 44px;
    vertical-align: middle;
    text-align: center;
    outline: none;
}
.ec3-header p.cart-trigger .cb { vertical-align: middle; font-size: 30px; }
.ec3-header p.cart-trigger .badge { position: absolute; right: 1px; top: 5px; }

/* search */
.ec3-header #searchform { position: relative; }
.ec3-header .bt_search {
    border: 0;
    background: none;
    position: absolute;
    right: 0; top: 0;
    display: block;
    width: 44px;
    height: 44px;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1;
    cursor: pointer;
}
.ec3-header .bt_search .cb-search { fill: #636378; font-size: 25px; }
.ec3-header .search select {
    height: 50px;
    border: 1px solid #ccc;
    font-size: 16px;
    padding: 0.5em 1em;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    background-color: #fff;
    color: #525263;
}
.ec3-header .search select option { max-width: 190px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ec3-header .search .input_search {
    height: 50px;
    padding: 0 50px 0 1em;
    border-bottom: 1px solid #ccc;
    position: relative;
    margin-left: 1%;
    box-sizing: border-box;
}
.ec3-header .search input[type="search"] {
    height: 50px;
    width: 100%;
    font-size: 16px;
    border: 0 none;
    padding: 0.5em 0;
    box-shadow: none;
    background: none;
    box-sizing: border-box;
    outline: none;
}
.ec3-header .search .bt_search { margin-top: 3px; }
/* default.css: search area */
.ec3-header #search { background: #EBEBEB; padding: 16px 8px; }
.ec3-header #search select { width: 100%; }
/* shop.css（default.css の後に読まれる本番独自の上書き） */
.ec3-header #search select { width: auto; max-width: 200px; }

/* member */
.ec3-header .member_link a {
    color: #525263;
    display: block;
    font-size: 14px;
    height: 50px;
    line-height: 50px;
    overflow: hidden;
    padding: 0 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}
.ec3-header .member_link a:hover { color: #9797a1; }
.ec3-header .member_link a .cb {
    font-size: 30px;
    fill: #B8BEC4;
    margin-right: 5px;
    position: relative;
    top: -1px;
}
.ec3-header .member_link a:hover .cb { fill: #c6cbd0; }

/* category-nav */
.ec3-header .category-nav a {
    display: block;
    height: 50px;
    line-height: 50px;
    padding: 0 10px;
    color: #525263;
    font-size: 16px;
    font-weight: bold;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}
.ec3-header .category-nav a:hover,
.ec3-header .category-nav li > a:hover { background: rgba(204, 204, 204, 0.1); }
.ec3-header .category-nav ul { display: none; }

@media only screen and (min-width: 768px) {
    /* --- style.css: Header Setting (PC) --- */
    .ec3-header .copy { font-size: 16px; }
    .ec3-header .header_logo_area .header_logo { font-size: 40px; margin: 0; }
    /* default.css: ロゴ右側の余白 */
    .ec3-header .header_logo_area { float: left; margin-right: 265px; }
    .ec3-header__top { position: relative; padding-top: 15px; }
    .ec3-header__top:after { content: ""; display: table; clear: both; }

    /* --- default.css / style.css: cart_area (PC) --- */
    .ec3-header .ec3-cart { position: absolute; top: 15px; right: 16px; }
    .ec3-header #cart_area p {
        border: 1px solid #D9D9D9;
        float: right;
        min-width: 256px;
    }
    .ec3-header #cart_area p.cart-trigger a { position: relative; float: left; }
    .ec3-header #cart_area p.cart-trigger .cb-shopping-cart { position: relative; left: 9px; }
    .ec3-header #cart_area p.cart-trigger .badge { position: relative; left: 15px; top: 0; right: auto; }
    .ec3-header #cart_area .cart_price {
        float: right;
        height: 44px;
        line-height: 44px;
        vertical-align: middle;
        margin-right: 16px;
        font-size: 12px;
    }
    .ec3-header #cart_area .cart_price .price { font-size: 16px; }
    /* 4 系の展開部分をカート枠の下に出す */
    .ec3-header .ec3-cart .ec-cartNaviIsset,
    .ec3-header .ec3-cart .ec-cartNaviNull { top: 50px; }

    /* --- style.css: search_area (PC) --- */
    .ec3-header .header_bottom_area { clear: both; padding-top: 16px; }
    .ec3-header .header_bottom_area:after { content: ""; display: table; clear: both; }
    /* 3 系では #search 自体は float しない（中の select / .input_search だけ float） */
    .ec3-header #search { background: none; padding: 0; }
    .ec3-header #searchform select,
    .ec3-header #searchform input { float: left; }
    .ec3-header .search .input_search { float: left; }
    .ec3-header .search select option { max-width: 246px; }

    /* --- default.css / style.css: member (PC) --- */
    .ec3-header #member { float: right; }
    .ec3-header .member ul li { display: inline-block; }

    /* --- style.css: category_nav in header (PC) --- */
    .ec3-header #category { clear: both; padding: 20px 0 0; }
    /* default.css: #contents { padding-top: 30px }（ヘッダーとメインの間） */
    .ec3-header #category { margin-bottom: 30px; }
    .ec3-header .category-nav {
        border-top: 1px solid #D9D9D9;
        border-bottom: 1px solid #D9D9D9;
        text-align: center;
    }
    .ec3-header .category-nav > li { margin: 0; text-align: left; }
    .ec3-header .category-nav li { position: relative; display: inline-block; }
    .ec3-header .category-nav li ul {
        display: block;
        position: absolute;
        z-index: 100;
        top: 100%;
        left: 0;
        width: 200px;
        height: auto;
        overflow: visible;
        background: #fff;
        box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    }
    .ec3-header .category-nav > li > a {
        position: relative;
        display: inline-block;
        color: #2e3233;
        overflow: visible;
        padding: 0 1em;
        height: 55px;
        line-height: 55px;
        border-bottom: none;
        transition: color 0.3s, box-shadow 0.3s;
    }
    .ec3-header .category-nav li a { display: block; }
    .ec3-header .category-nav li ul li {
        float: left;
        overflow: hidden;
        width: 100%;
        height: 0;
        transition: .2s;
    }
    .ec3-header .category-nav li ul li a { text-align: left; }
    .ec3-header .category-nav > li:hover > a { color: #0860A8; }
    .ec3-header .category-nav > li:hover li:hover > a { background: rgba(204, 204, 204, 0.1); }
    .ec3-header .category-nav > li:hover > ul > li { overflow: visible; height: 50px; }
    .ec3-header .category-nav li ul li ul { top: 0; left: 100%; }
    .ec3-header .category-nav li:last-child ul li ul { left: 100%; width: 100%; }
    .ec3-header .category-nav li ul li ul:before {
        position: absolute;
        content: ">";
        top: 13px;
        left: -15px;
        width: 0;
        height: 0;
    }
    .ec3-header .category-nav li ul li:hover > ul > li { overflow: visible; height: 50px; }
    .ec3-header .category-nav li:hover ul li ul li a:hover { background: rgba(204, 204, 204, 0.1); }
    .ec3-header .category-nav ul > li > a,
    .ec3-header .category-nav ul > li > ul > li > a,
    .ec3-header .category-nav ul > li > ul > li > ul > li a {
        padding-left: 10px;
        background-color: #EEE;
        border-top: 1px solid #CCC;
        border-right: 1px solid #CCC;
        border-left: 1px solid #CCC;
    }
    .ec3-header .category-nav li ul li ul li a { border-left: none; }
}
