/* --------------------
　カテゴリーヘッダー
(エクスペリエンスフラグメント内HTMLエリア)
-------------------- */

/* エディタ画面の調整 */
.xf-web-container {
    width: auto;
}

#category_header ul {
    list-style-type: none;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
}


/* スティッキー表示 */
.sticky_category_menu {
    position: sticky;
    top: 0;
    z-index: 9;
}

.sticky_category_menu #category_header {
    margin-top: -1px;
}

/* カテゴリーヘッダー */
#category_header {
    background-color: #313235;
    /*#45464B;*/
    margin: 0;
    padding: 10px 0;
}
#category_header a {
    color: #fff;
    pointer-events: auto;
}

#category_header > div {
    max-width: 1260px;
    margin: 0px auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 45px;
}

#category_header p {
    flex-basis: 20%;
    flex-shrink: 2;
    font-size: 23px;
    letter-spacing: 1px;
    color: #fff;
    margin: 0;
}

#category_header section {
    flex-basis: 60%;
    flex-grow: 2;
}

#category_header ul {
    display: flex;
    justify-content: flex-end;
}

#category_header li {
    flex-grow: 2;
    padding: 0 3px;
    text-align: center;
    /*border-right:1px solid #888;*/
    position: relative;
    margin: 0 4px;
}

#category_header li::before {
    content: "";
    display: block;
    position: absolute;
    background-color: #888;
    height: 30%;
    width: 1px;
    right: -5px;
    top: 40%;
}

#category_header li a {
    display: inline-block;
    width: 100%;
    height: 100%;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    color: #ccc;
    text-decoration: none;
    padding-top: 6px;
}

#category_header li a:hover {
    padding-bottom: 0px;
    opacity: 1;
    text-decoration: none !important;
}

#category_header li a::after {
    content: "";
    display: block;
    background-color: #fff;
    width: 60%;
    height: 10px;
    margin: 10px auto -20px;
    border-radius: 100% 100% 0 0;
    box-shadow: 0px 0px 15px 15px #fff;
    transition: all 0.5s;
    opacity: 0;
}

#category_header li a:hover::after,
#category_header li a.active::after {
    transition: all 0.3s;
    opacity: 0.3;
}

/* 1行・2行表示の調整 */

#category_header section.row1 li:first-child {
    /*border-left:1px solid #ccc;*/
}

#category_header section.row1 li:last-child {
    /*border-right:1px solid #ccc;*/
}

#category_header section.row2 li {
    width: 100%;
}


/* 罫線の調整 */

#category_header li:last-child {
    border-right: none;
}

#category_header li:last-child::before {
    content: none;
}

#category_header ul:nth-of-type(2) li {
    border-top: 1px solid #888;
}

/*#category_header ul:nth-of-type(2) li::before,
#category_header ul:nth-of-type(2) li::after
{
    content: "";
    position: absolute;
    background-color: #45464B;
    width: 6px;
    height: 8px;
    top:-4px;
}*/

/*#category_header ul:nth-of-type(2) li::before {
    left: -1px;
}
#category_header ul:nth-of-type(2) li::after {
    right: -1px;
}*/


@media screen and (min-width:769px) {
    #category_header p,#category_header p > a {
        pointer-events: none;
        text-decoration:none;
    }
}



@media screen and (max-width:768px) {

    #category_header > div
     {
        display: block;
        padding: 0 3.5%;
    }
    #category_header section,
    #category_header ul {
        display: block;
        padding: 0;
    }

    #category_header p {
        padding: 5px 0 10px;
        position: relative;
    }

    #category_header p::before,
    #category_header p::after {
        display: block;
        content: "";
        position: absolute;
        top: 45%;
        right: 0px;
        width: 24px;
        height: 2px;
        margin: 0;
        background: #fff;
    }

    #category_header p::after {
        transform: rotate(90deg);
    }

    #category_header p.open::after {
        transform: rotate(0deg);
    }

    #category_header li {
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid #888;
        padding-top: 3px;
    }

    #category_header li::before {
        content: none;
    }

    #category_header li:first-child {
        border-top: none;
    }

    #category_header li a {
        line-height: 2.7;
        font-size: 16px;
    }

    #category_header section,
    #category_header li a:hover::after,
    #category_header li a.active::after {
        display: none;
    }
}
