/* ===== Layout ===== */
.inner {
    width: 1200px;
    margin: 0 auto;
}

/* ===== Visual ===== */
.visual-wrap {
    margin-top: 100px;
    height: 240px;
}
.visual-wrap .bg {
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* ===== Contents ===== */
.contents-wrap {
    padding: 20px 0 80px;
}

/* ----- inner_top ----- */
div.inner_top {
    display: flex;
    justify-content: space-between;
}
div.inner_top .navi {
    display: flex;
    align-items: center;
}
div.inner_top .navi a {
    font-size: 20px;
    color: #222;
    text-decoration: none;
    font-weight: bold;
}
div.inner_top .navi span {
    font-size: 15px;
    color: #222;
    font-weight: bold;
    margin: 0 10px;
}

/* ----- view_expired_tour ----- */
div.view_expired_tour {
    text-align: right;
}
div.view_expired_tour a {
    font-size: 15px;
    color: #222;
    text-decoration: none;
}

/* ----- category_header ----- */
div.category_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
div.category_header h1 {
    margin: 0;
}
div.category_header a {
    font-size: 15px;
    color: #222;
    text-decoration: none;
}

/* ----- category_item_area ----- */
div.category_item_area {
    margin: 50px 0;
}

/* ----- sort-wrap ----- */
.contents-wrap .sort-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 0;
    gap: 20px;
}
.contents-wrap .sort-wrap button {
    background: none;
    border: none;
    font-size: 14px;
    position: relative;
    color: #666;
}
.contents-wrap .sort-wrap button.active {
    font-weight: bold;
}
.contents-wrap .sort-wrap button:before {
    content: "|";
    margin-right: 16px;
    color: #ccc;
    position: absolute;
    left: -10px;
    font-size: 12px;
    top: 3px;
}
.contents-wrap .sort-wrap button:first-child:before {
    content: none;
}
.contents-wrap .sort-wrap button a {
    color: #666;
    text-decoration: none;
}

/* ----- cat-wrap ----- */
.contents-wrap .cat-wrap {
    display: flex;
    gap: 8px 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
}
.contents-wrap .cat-wrap input {
    width: 0;
    height: 0;
    position: absolute;
}
.contents-wrap .cat-wrap label {
    border: 1px solid #dadada;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    box-sizing: border-box;
    color: #9e9494;
    transition: background-color .3s;
}
.contents-wrap .cat-wrap label:before {
    content: "#";
    padding-right: 1px;
}
.contents-wrap .cat-wrap input:focus + label {
    border-color: #aaa;
}
.contents-wrap .cat-wrap input:checked + label {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* ----- region_area ----- */
div.region_area {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
div.region_area * {
    box-sizing: border-box;
}
div.region_area button {
    border: 0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
}
div.region_area ul.region {
    list-style: none;
    display: flex;
    white-space: nowrap;
    flex-wrap: nowrap;
    flex-basis: 90%;
    padding: 0;
    border-bottom: 2px solid #777;
}
div.region_area ul.region li {
    flex-basis: 12.5%;
}
div.region_area ul.region li.hidden {
    display: none;
}
div.region_area ul.region li a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    border-top: 1px solid #eae9e9;
    border-right: 1px solid #eae9e9;
    width: 100%;
    display: inline-block;
    text-align: center;
    padding: 15px 0;
}
div.region_area ul.region li:not(.hidden):first-child {
    border-left: 1px solid #eae9e9;
}
div.region_area ul.region li.active a {
    border-top: 2px solid #777;
    border-right: 2px solid #777;
    border-left: 2px solid #777;
}

/* ----- list-wrap ----- */
.contents-wrap .list-wrap {
    display: grid;
    margin-top: 24px;
    gap: 32px 24px;
    grid-template-columns: repeat(5, 1fr);
}
.contents-wrap .list-wrap a {
    flex: 1;
    width: 100%;
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all .2s;
    top: 0;
}
.contents-wrap .list-wrap a:hover {
    top: -8px;
}
.contents-wrap .list-wrap a .cover_image {
    width: 100%;
    height: 0;
    padding-bottom: calc(100% * 7 / 5);
    position: relative;
    overflow: hidden;
}
.contents-wrap .list-wrap a .cover_image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contents-wrap .list-wrap a .title {
    font-size: 16px;
    font-weight: 500;
    padding-top: 16px;
}
.contents-wrap .list-wrap a .desc {
    font-size: 14px;
    color: #959595;
    display: -webkit-box;
    word-wrap: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 59px;
    max-height: 35px;
}
.contents-wrap .list-wrap a .tag-box {
    padding: 5px 0;
    display: flex;
    gap: 8px;
}
.contents-wrap .list-wrap a .tag-box span {
    border-radius: 20px;
    background: #f3f3f3;
    padding: 4px 8px;
    color: #848484;
    white-space: nowrap;
}
.contents-wrap .list-wrap a .tag-box span.paid {
    background: #46B1E1;
    color: #fff;
}
.contents-wrap .list-wrap a .tag-box span.free {
    background: #47D45A;
    color: #fff;
}

/* ----- pagination ----- */
.pagination {
    display: flex;
    flex-direction: initial !important;
    justify-content: center;
    margin-top: 40px !important;
    gap: 0 !important;
    padding: 0;
}
.pagination .page-item {
    border: 0 !important;
    color: #82889c;
    padding: 0 4px !important;
    min-width: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 15px;
    display: inline-block;
    font-size: 14px;
    margin: 0 !important;
}
.pagination .page-item .page-link {
    border-radius: 100%;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    color: #82889c;
}
.pagination .page-item a {
    text-decoration: none;
    display: block;
}
.pagination .page-item.active .page-link {
    color: #fff !important;
    background: #5b83d7;
}

/* ===== Responsive (max-width: 768px) ===== */
@media all and (max-width: 768px) {
    .inner {
        width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }
    .visual-wrap {
        margin-top: 60px;
        height: 200px;
    }
    .contents-wrap {
        padding: 10px 0;
    }
    .contents-wrap .cat-wrap {
        gap: 5px 4px;
        margin-top: 8px;
        padding: 0;
        justify-content: center;
    }
    .contents-wrap .cat-wrap label {
        padding: 5px 10px;
        font-size: 12px;
    }
    .contents-wrap .sort-wrap {
        padding: 8px 0;
        justify-content: flex-end;
    }
    .contents-wrap .sort-wrap button {
        font-size: 12px;
    }
    .contents-wrap .list-wrap {
        margin-top: 16px;
        gap: 16px;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Responsive region_area (max-width: 767px) ===== */
@media (max-width: 767px) {
    div.region_area ul.region {
        flex-basis: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
    }
    div.region_area ul.region li {
        flex-basis: 40%;
    }
    div.region_area ul.region li a {
        padding: 10px 15px;
        font-size: 14px;
    }
}
