@charset "UTF-8";

:root {
    --white: #ffffff;
    --black: #1d1d1d;
    --gray: #f5f5f5;
    --blue: #2d7de6;
}

.case-top .article a {
    background-size: 0;
}

/* フォーム */
.case-top .form {
    background-color: var(--gray);
    padding: 24px 35px
}

.case-top .search {
    width: 100%;
    display: flex;
    gap: 24px;
    margin-bottom: 50px;
}

.case-top .select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    flex: 1;
}

.case-top .select-box {
    background-color: var(--white);
    font-size: 16px;
    color: var(--black);
    border: none;
    box-shadow: none;
    border-radius: 5px;
    -webkit-appearance: none;
    cursor: pointer;
}

.case-top .select-box-wrap {
    position: relative;
}

.case-top .select-box-wrap::after {
    position: absolute;
    content: "";
    left: 0.8em;
    top: 50%;
    width: 0.5em;
    height: 0.5em;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    background: transparent;
    -webkit-transform: translateY(-50%) rotate(135deg);
    transform: translateY(-50%) rotate(135deg);
    left: auto;
    right: 0.8em;
    pointer-events: none;
}

.case-top .search__text {
    border: none;
    box-shadow: none;
    border-radius: 5px;
}

.case-top .search__button {
    height: 100%;
}

.case-top .search__button a,
.case-top .search__button button {
    display: block;
    background-color: #3dbdac;
    color: var(--white) !important;
    font-weight: bold;
    font-size: 24px;
    border-radius: 5px;
    aspect-ratio: 1/1;
    width: 100px;
    filter: drop-shadow(0 3 6 rgba(0, 0, 0, .16));
    text-align: center;
    position: relative;
    padding: 12px 0 46px;
}

.case-top .search__button a:hover,
.case-top .search__button button:hover {
    background-color: #68DECF;
}

.case-top .search__button a::after,
.case-top .search__button button::after {
    content: "";
    background: url(/wp-content/themes/a1data_2022/asset/img/case/search.svg) no-repeat center bottom / contain;
    display: block;
    width: 37%;
    aspect-ratio: 1/1;
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translate(-50%, 0);
}

.case-top .search-tags {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.case-top .search-tags a {
    color: var(--black);
    font-size: 14px;
    border-radius: 5px;
    border: solid 1px #969696;
    padding: 0 16px;
    white-space: nowrap;
}

.case-top .search-tags a:hover {
    background-color: #cecece;
}

@media screen and (max-width: 768px) {
    .case-top .form {
        padding: 16px
    }

    .case-top .search {
        width: 100%;
        display: block;
        gap: 8px;
        margin-bottom: 24px;
    }

    .case-top .select {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }

    .case-top .select-box {
        font-size: 14px;
        border-radius: 3px;
    }

    .case-top .search__text {
        border-radius: 3px;
        font-size: 14px;
    }

    .case-top .search__button a,
    .case-top .search__button button {
        margin: 0 auto;
        font-size: 20px;
        aspect-ratio: auto;
        width: 160px;
        padding: 4px;
        position: relative;
    }

    .case-top .search__button a::after,
    .case-top .search__button button::after {
        width: 24px;
        position: absolute;
        left: 8px;
        bottom: 50%;
        transform: translate(0, 50%);
    }

    .case-top .search-tags {
        gap: 8px;
    }

    .case-top .search-tags a {
        font-size: 12px;
        padding: 0 12px;
    }
}

/* 一覧 */
.case-top .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    margin: 50px 0 100px;
}

.case-top .content>a {
    display: flex;
    flex-direction: column;
    color: inherit;
    position: relative;
    height: 100%;
}

.case-top .content .case__cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #efefef;
    font-size: 10px;
    border-radius: 5px;
    padding: 6px 36px;
    min-width: 100px;
}

.case-top .content .case-shumbnail {
    width: 100%;
}

.content .case-shumbnail img {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
}

.title {
    background-color: var(--gray);
    padding: 20px;
    flex-grow: 1;
}

.title-content {
    overflow: hidden;
}

.title p {
    line-height: 1.375;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    max-height: calc(1.375em * 3);
}

.info {
    background-color: rgba(45, 125, 230, .95);
    color: var(--white);
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.case-top .content>a:hover .info {
    display: block;
}

.info__title {
    margin-top: 5px;
    padding: 10px 0;
    border-top: var(--white) 2px solid;
}

.info__title p {
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    max-height: calc(1.5em * 4);
}

.info__desc {
    padding: 10px 0 0;
    border-top: var(--white) 2px solid;

}

.info__desc p {
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    max-height: calc(1.5em * 4);
}

@media screen and (max-width: 768px) {
    .case-top .wrap {
        gap: 16px;
        margin: 30px 0;
    }

    .title {
        padding: 16px;
    }

    .title p {
        font-size: 14px;
    }

    .case-top .content .case__cat {
        padding: 3px 10px;
        min-width: 50px;
        border-radius: 3px;
    }

    .case-top .content>a:hover .info {
        display: none;
    }
}

/* ページネーション */
.pagenation {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.pagenation a {
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.4px;
}

.pagenation a.prev::before {
    content: "";
    background-image: url("/wp-content/themes/a1data_2022/asset/img/case/prev.svg");
    display: block;
    width: 8px;
    height: 8px;
}

.pagenation a.next::after {
    content: "";
    background-image: url("/wp-content/themes/a1data_2022/asset/img/case/next.svg");
    display: block;
    width: 8px;
    height: 8px;
}

.pagenation .page {
    display: flex;
    gap: 20px;
    list-style-type: none;
}

.pagenation .page .active {
    color: #fff;
}

.pagenation .page li a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: solid 2px var(--blue);
    color: var(--blue);
    font-weight: bold;
    height: 100%;
}

.button {
    color: #fff;
    font-weight: bold;
    line-height: 1.6;
    padding: 0 25px;
    background-color: var(--blue);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .pagenation {
        gap: 16px;
    }

    .pagenation a {
        font-size: 14px;
    }

    .pagenation .page {
        gap: 8px;
    }

    .pagenation a.prev,
    .pagenation a.next {
        display: none;
    }

    .button {
        padding: 0 15px;
    }

}