/*===============================================================
共通トグル　アニメーション
===============================================================*/
/* 下に伸びながら出現 */
.ak-toggle-slidefade {
	overflow: hidden;

	max-height: 0;
	opacity: 0;
	transform: translateY(-10px);

	transition:
		max-height 0.35s ease,
		opacity 0.25s ease,
		transform 0.35s ease;

	&.is-open {
		max-height: 1000px;
		opacity: 1;
		transform: translateY(0);
	}
}




/*===============================================================
共通　検索UI
===============================================================*/
.gtc-search-button {
    background: linear-gradient(to right, #df9b37 0%, #fa8435 100%);
    border: none;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 1000px;
    cursor: pointer;
    transition: 1s;

    &:hover {
        color: #fff;
        opacity: .8;
    }

    &.type_list {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        border-radius: 3px;
    }
}

.gtc-search-ui {

    position: fixed;
    top: 100dvh;
    left: 0;
    z-index: 9999;

    display: block;

    width: 100vw;
    height: 100dvh;

    transition: top .4s ease;

    &.is-open {
        top: 0;
    }

    .gtc-search-ui__overlay {
        position: absolute;
        inset: 0;
        background-color: #fff;
    }

    .gtc-search-ui__panel {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        overflow: hidden;
        max-width: 1000px;
        margin: 0 auto;
        padding: 15px 0px;
        padding-bottom: 15px;

        background: #fff;
        color: #333;

        form.gtc-search-ui__form {
            display: flex;
            flex-direction: column;

            width: 100%;
            height: 100%;
            min-height: 0;

            .gtc-search-ui__header {
                flex: 0 0 auto;
                padding: 10px 15px;
                background-color: #fff;
            }

            .gtc-search-ui__header {
                display: flex;
                justify-content: space-between;
                align-items: center;

                .gtc-search-ui__title {
                    font-weight: 700;
                    font-size: 1.2rem;
                }

                .gtc-search-ui__buttons {

                    .gtc-search-ui__reset {
                        border: 1px solid #333;
                        padding: .2rem .7rem;
                        border-radius: 1000px;
                        font-size: .85rem;
                        margin-left: .5rem;
                        cursor: pointer;
                    }

                    .gtc-search-ui__close {
                        border: 1px solid #333;
                        background-color: #333;
                        color: #fff;
                        padding: .2rem .7rem;
                        border-radius: 1000px;
                        font-size: .85rem;
                        margin-left: .5rem;
                        cursor: pointer;
                    }
                }
            }

            .gtc-search-ui__body {
                flex: 1 1 auto;
                padding: 10px 15px;
                background-color: #fff;

                min-height: 0;
                overflow-y: auto;
                overscroll-behavior: contain;
                /* Firefox */
                scrollbar-width: none;

                /* IE / Edge legacy */
                -ms-overflow-style: none;

                /* Chrome / Safari / Edge */
                &::-webkit-scrollbar {
                    display: none;
                }

                .gtc-search-ui__section {
                    display: flex;
                    flex-wrap: wrap;
                    border-bottom: 1px solid #f7f7f7;
                    padding: 5px 0;
                    padding-top: 10px;

                    .gtc-search-ui__section-title {
                        flex: 0 0 100%;
                        font-size: .7rem;
                        padding-bottom: .5rem;

                        .t1 {
                            color: var(--AKcolor2);
                            font-size: 1rem;
                        }

                        .t2 {}
                    }

                    @media (min-width:992px) {
                        .gtc-search-ui__section-title {
                            flex: 0 0 110px;
                            font-size: .7rem;

                            .t1 {
                                display: block;
                                text-align: center;
                                font-size: 1.3rem;

                                i {
                                    margin-right: 0;
                                }
                            }

                            .t2 {
                                display: block;
                                text-align: center;

                            }
                        }
                    }

                    .gtc-search-ui__section-content {
                        flex: 1;

                        /* 見た目変更 */
                        label {
                            display: inline-block;
                            margin-right: 0.6rem;
                            margin-bottom: 0.6rem;
                            position: relative;


                            input[type="checkbox"],
                            input[type="radio"] {
                                width: 100%;
                                height: 100%;
                                position: absolute;
                                top: 50%;
                                left: 50%;
                                transform: translateY(-50%) translateX(-50%);
                                z-index: 2;
                                margin: 0;
                                opacity: 0;
                                cursor: pointer;

                                &+span {
                                    display: inline-block;
                                    background-color: #ececec;
                                    color: #7c7c7c;
                                    padding: 3px 10px;
                                    border-radius: 100px;
                                    font-size: .9rem;
                                }

                                &:checked+span {
                                    background-color: var(--AKcolor1);
                                    color: #fff;
                                }

                            }


                        }


                    }

                    .gtc-search-ui__comparison-list {
                        .gtc-search-ui__comparison-item {
                            display: flex;
                            flex-wrap: wrap;
                            margin-bottom: .5rem;

                            .gtc-search-ui__comparison-title {
                                color: var(--AKcolor4);
                                font-weight: bold;
                                font-size: 0.7rem;
                                flex: 0 0 100%;
                                margin-bottom: .2rem;
                            }

                            .gtc-search-ui__comparison-options {
                                flex: 1;
                                display: flex;

                                align-items: center;

                                label {
                                    width: calc(100% / 5);
                                    margin-right: 2px;
                                    margin-bottom: 0;

                                    span {
                                        color: #333;
                                        font-size: .6rem;
                                        padding: 3px 0;
                                        display: block;
                                        width: 100%;
                                        border-radius: 0;
                                        text-align: center;
                                    }
                                }
                            }

                        }

                        @media (min-width:992px) {
                            .gtc-search-ui__comparison-item {

                                align-items: center;

                                /*上下位置を揃える*/
                                .gtc-search-ui__comparison-title {
                                    color: var(--AKcolor4);
                                    font-weight: 600;
                                    font-size: 0.8rem;
                                    flex: 0 0 100px;
                                    margin-bottom: 0rem;
                                }

                                .gtc-search-ui__comparison-options {
                                    flex: 1;
                                    display: flex;

                                    align-items: center;

                                    label {
                                        span {
                                            font-size: .7rem;
                                            color: #333;
                                        }
                                    }
                                }

                            }
                        }
                    }

                    &.accept_foreign {
                        label {
                            input[type="checkbox"],
                            input[type="radio"] {
                                &+span {
                                    padding: 13px 17px;
                                }
                            }
                        }
                        
                    }



                }
            }

            .gtc-search-ui__footer {
                flex: 0 0 auto;
                padding: 10px 15px;
                background-color: #fff;

                button.gtc-search-ui__submit {
                    background-color: var(--AKcolor1);
                    border: none;
                    color: #fff;
                    display: block;
                    text-align: center;
                    width: 100%;
                    padding: .7rem 1rem;
                    font-size: 1.1rem;
                    font-weight: 500;
                    cursor: pointer;
                }
            }
        }
    }

}

body {
    &.admin-bar {
        .gtc-search-ui {
            &.is-open {
                padding-top: 32px;
            }
        }

    }

    &.is-search-ui-open {
        overflow: hidden;
    }
}

/*===============================================================
Job
===============================================================*/


/*===============================================================
Talent
===============================================================*/