@charset "utf-8";


/*adoptionCall*/

.adoptionCall {
    --font-size_normal: 16px;
    --font-size_m: 20px;
    --font-size_l: 24px;

    --gap_xs: 15px;
    --gap_s: 30px;
    --gap_m: 60px;
    --gap_l: 100px;


    font-size: var(--font-size_normal);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: calc(26 / 16);
    container-type: inline-size;

    display: block;
    background: #FFFFFF;

    .title {
        font-weight: bold;
    }
}

.adoptionCall_mv {
    height: 22em;
    background-image: url(/common_n/img/adoptionCall/mv.jpg);
    background-size: cover;
    background-position: 50% 40%;
    background-repeat: no-repeat;

    display: grid;
    align-items: center;

    >.title {
        --txtshadow: 0 0 0.5em rgb(0 0 0 / 50%);
        text-shadow: var(--txtshadow), var(--txtshadow), var(--txtshadow);

        text-align: left;
        color: #fff;
        margin: 0 5%;

        display: flex;
        flex-direction: column;
        gap: 1em;

        >.main {
            font-size: 1.5em;
            max-width: max-content;

            &::after {
                content: "";
                display: block;
                width: 55%;
                height: 0.3em;
                background-color: #F3981C;

            }
        }

        >.sub {
            font-size: 2em;
        }
    }
}

.adoptionCall_lead,
.adoptionCall_main {
    width: 1024px;
    margin-inline: auto;
    padding: var(--gap_m) 0;
}


.adoptionCall_lead {
    text-align: left;

    display: flex;
    flex-direction: column;
    gap: var(--gap_s);
}

.adoptionCall_search {
    margin-bottom: var(--gap_m);

    display: flex;
    flex-direction: column;
    gap: var(--gap_s);

    .main {
        border: 1px solid #000;
        padding: var(--gap_m) 5%;
        width: 100%;
        max-width: 50em;
        box-sizing: border-box;
        margin-inline: auto;

        display: flex;
        flex-direction: column;
        gap: var(--gap_s);

        >.title {
            font-size: var(--font-size_m);
        }

        .filter {
            text-align: left;

            display: grid;
            grid-template-columns: repeat(2, max-content);
            grid-template-rows: 1fr;
            justify-content: center;
            align-items: center;

            gap: var(--gap_xs);

            .filter-section {
                display: grid;
                grid-template-columns: 5em 1fr;

                &.kinds {
                    order: 1;
                }

                &.gender {
                    order: 3;
                }
            }

            .filter-label {
                font-weight: bold;
            }

            .reset-button {
                order: 2;
                grid-row: span 2;

                font-size: 0.8em;
                font-weight: bold;
                color: #4C372B;
                border: 1px solid #4C372B;
                background-color: #fff;
                border-radius: 100px;
                padding: 0.5em 1.5em;
                cursor: pointer;
            }
        }


        .search {
            display: flex;
            flex-direction: column;
            gap: var(--gap_s);

            .search-box {
                display: block;
                width: 100%;
                max-width: 32em;
                margin-inline: auto;
                padding: 0.5em;
            }

            .search-button {
                font-size: var(--font-size_m);

                background-color: #F3981C;
                color: white;
                border: none;
                padding: 0.5em;
                border-radius: 100px;
                cursor: pointer;
                width: 100%;
                max-width: 15em;
                margin-inline: auto;
            }

        }

        .radio-group {
            display: flex;
            gap: 1em;


            & label {
                display: flex;
                gap: 0.2em;
            }
        }
    }

    .sub {
        .filter-section {
            display: flex;
            align-items: center;
            justify-content: end;
            gap: 1em;

            .sort-select {
                display: block;
                padding: 0.5em;
                width: 100%;
                max-width: 10em;
            }
        }
    }
}

.adoptionCall_container {
    text-align: left;

    &.protection {
        /* padding-bottom: var(--gap_l); */
        /* border-bottom: 1px solid #C8C2BE; */
        /* margin-bottom: var(--gap_l); */
    }

    >.title {
        font-size: var(--font-size_l);
        text-align: center;
        margin-bottom: var(--gap_s);
    }

    >.grid {

        >.grid_list {

            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: var(--gap_m) 4%;

            >.item {
                display: grid;
                grid-template-rows: auto 1fr;

                .ph {
                    img {
                        width: 100%;
                        height: auto;
                    }
                }

                .body {
                    margin-top: var(--gap_xs);

                    display: flex;
                    flex-direction: column;
                    gap: var(--gap_xs);

                    >.title {
                        font-size: var(--font-size_m);
                    }

                    >.txt {
                        text-align: left;
                    }

                    >.btn {
                        background: #4C372B;
                        height: 3em;
                        border-radius: 0.5em;
                        margin-top: auto;
                        font-weight: bold;


                        & a {
                            color: #fff;
                            text-decoration: none;

                            display: block;
                            width: 100%;
                            height: 100%;

                            display: grid;
                            place-items: center;
                        }
                    }

                }
            }
        }
    }

    >.btn {
        font-size: var(--font-size_m);
        font-weight: bold;
        margin-top: var(--gap_m);
        background-color: #F3981C;
        border-radius: 100px;
        text-align: center;
        max-width: max-content;
        margin-inline: auto;

        & a {
            color: #fff;
            display: block;
            padding: 0.5em 3em;
            text-decoration: none;
        }
    }

}


@media screen and (max-width: 1050px) {
    .adoptionCall {
        --font-size_normal: 15px;
        --font-size_m: 18px;
        --font-size_l: 20px;

        --gap_xs: 15px;
        --gap_s: 20px;
        --gap_m: 40px;
        --gap_l: 80px;
    }

    .adoptionCall_mv {
        font-size: 0.8em;
    }

    .adoptionCall_lead,
    .adoptionCall_main {
        width: 90%;
    }

}

@media screen and (max-width: 767px) {
    .adoptionCall {
        --font-size_normal: 14px;
        --font-size_m: 16px;
        --font-size_l: 18px;

        --gap_s: 10px;
        --gap_s: 15px;
        --gap_m: 35px;
        --gap_l: 70px;
    }

    .adoptionCall_mv {
        font-size: 0.6em;
    }

    .adoptionCall_main {
        .adoptionCall_search {
            & .main {

                .filter {
                    grid-template-columns: 1fr;
                    gap: 0.5em;

                    & .filter-section {
                        grid-template-columns: 1fr;

                        &.kinds {
                            order: 1;
                        }

                        &.gender {
                            order: 2;
                        }
                    }

                    .reset-button {
                        order: 3;
                        grid-row: unset;
                        max-width: max-content;
                        margin-inline: auto;
                    }
                }

                .search {
                    .search-box {
                        box-sizing: border-box;
                    }
                }
            }
        }

        >.adoptionCall_container {

            >.grid {

                >.grid_list {
                    display: grid;
                    grid-template-columns: 1fr;
                    gap: var(--gap_m);

                    >.item {
                        .body {
                            margin-top: var(--gap_s);
                            gap: var(--gap_s);
                        }
                    }
                }
            }
        }
    }
}

