.header-upper {
    background-color: #fff;
}
.header-lower {
    background-color: #f0f0f0;
}
.header-lower .wrapper {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
}

.category-custom-dropdown {
    width: 185px;
    margin-right: 21px;
    position: relative;
}
.category-custom-dropdown:hover ~ .category-custom-dropdown-overlay {
    visibility: visible;
    opacity: 1;
}

.category-custom-dropdown-label {
    font-size: 0.12rem;
    line-height: 1;
    padding: 8px 7px 8px 9px;
    border: solid 1px #585858;
    border-radius: 2px;
    background: linear-gradient(to bottom, #fafafa 0%, #e0e0e0 97.9%, #c6c6c6 98.3%, #b4b4b4 100%);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16);
    cursor: pointer;
}
.category-custom-dropdown-label span {
    display: block;
    padding-right: 10px;
    position: relative;
}
.category-custom-dropdown-label span::after {
    content: "▼";
    font-family: Meiryo, sans-serif;
    font-size: 0.1rem;
    position: absolute;
    top: calc(50% + 1px);
    right: 0;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
.is-firefox .category-custom-dropdown-label span::after {
    top: calc(50% - 1px);
}

.category-custom-dropdown-inner {
    position: absolute;
    top: 100%;
    left: 0;
    width: 295px;
    border-left: solid 3px #000;
    border-right: solid 1px #707070;
    background-color: #fff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.16);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0s ease 0.2s, visibility 0s ease 0.2s;
}
.category-custom-dropdown-inner.is-active {
    visibility: visible;
    opacity: 1;
}

.category-custom-dropdown-title {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px 10px 8px 12px;
    min-height: 54px;
    font-size: 0.11rem;
    line-height: 1.36;
    border-top: solid 1px #707070;
    font-weight: bold;
}
.category-custom-dropdown-title span {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.category-custom-dropdown-title a {
    margin-left: 17px;
}

.category-custom-dropdown-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.category-custom-dropdown-item {
    font-size: 0.12rem;
    line-height: 1.25;
    border-bottom: solid 0.01rem #707070;
}
.category-custom-dropdown-item:first-child {
    border-top: solid 0.01rem #707070;
}
.category-custom-dropdown-item:hover {
    background: #e8f4fa;
}
.category-custom-dropdown-item:hover .sub-category-custom-wrapper {
    visibility: visible;
    opacity: 1;
}
.category-custom-dropdown-item > a {
    display: block;
    width: 100%;
    color: #000;
    padding: 0.1rem 0.18rem 0.1rem 0.12rem;
    text-decoration: none;
    position: relative;
}
.category-custom-dropdown-item > a:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.09rem;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background: url(../img/common/icn_arrow_gray.svg) no-repeat center/contain;
    width: 0.07rem;
    height: 0.1rem;
}
.category-custom-dropdown-item .sub-category-custom-wrapper {
    position: absolute;
    left: 100%;
    width: 3.4rem;
    top: 0;
    height: 100%;
    padding: 0.18rem 0.15rem 0.18rem 0.2rem;
    background-color: #fff;
    border: solid 0.01rem #707070;
    box-shadow: 0.03rem 0.03rem 0.08rem 0 rgba(0, 0, 0, 0.16);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0s ease 0.2s, visibility 0s ease 0.2s;
}
.category-custom-dropdown-item .sub-category-custom-wrapper::-webkit-scrollbar {
    display: none;
}
.category-custom-dropdown-item .sub-category-custom-title {
    display: block;
    margin-bottom: 0.22rem;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    color: #000;
}
.category-custom-dropdown-item .sub-category-custom-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.category-custom-dropdown-item .sub-category-custom-item {
    margin-bottom: 0.12rem;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
}
.category-custom-dropdown-item .sub-category-custom-item > a {
    display: inline-block;
    color: inherit;
}

.category-custom-dropdown-overlay {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0s ease 0.2s, visibility 0s ease 0.2s;
}

a:hover  {
    color: black;
}

@media print, (min-width: 768px) {
    .category-custom-dropdown-item img {
        display: block;
        width: 24px;
        height: 24px;
        margin-right: 10px;
        position: relative;
        top: -1px;
    }
}

.category-custom-dropdown-item .category-custom-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6px 20px 5px 8px;
    flex-direction: row-reverse;
    position: relative;
}
a img {
    border: none;
}