.search-panel {
    padding: 50px 30px;
    background: #f6f6f7;
}

.search-panel input {
    appearance: auto;
    -webkit-appearance: auto;
}

.search-panel_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.ui-group {
    width: fit-content;
    margin: 0 auto;
}

.search-panel_title {
    font-size: 2.4rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.search-panel_title span:before {
    content: "";
    background: url(../img/interview/icon-filter.svg);
    background-repeat: no-repeat;
    width: 21px;
    height: 24px;
    display: inline-block;
    margin-right: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.filter-group h3 {
    margin-bottom: 0;
    line-height: 1.0;
    color: #222;
    font-size: 1.6rem;
    font-weight: bold;
    width: 100px;
    text-align: center;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.checkbox-item:hover {
    border-color: #ea002a;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ea002a;
}

.checkbox-item.checked {
    border-color: #fff;
    background: #fff;
    color: #222;
}

.button-group {
    display: flex;
    justify-content: center;
    width: fit-content;
    gap: 20px;
    margin: 30px auto 0;
}

.search-button {
    background: #ea002a;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 150px;
}

.search-button:hover {
    transform: translateY(-2px);
}

.search-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.search-button.loading {
    color: transparent;
}

.search-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.reset-button {
    background: #e8e8e8;
    color: #666;
    border: 2px solid #ddd;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.4rem;
    width: 150px;
}

.reset-button:hover {
    background: #ccc;
    border-color: #bbb;
    transform: translateY(-2px);
}

.reset-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.results-section {
    padding: 30px;
}

.results-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
}

.results-header_title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #222;
    margin-right: 30px;
}

.results-count {
    font-size: 1.8rem;
    color: #222;
    transition: all 0.4s ease;
}

.results-count.updating {
    opacity: 0.3;
    transform: scale(0.9);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: opacity 0.6s ease;
}

.card-grid.fade-out {
    opacity: 0;
}

.card-grid.fade-in {
    opacity: 1;
}

.card {
    background: linear-gradient(270deg, #fff 0%, #f5f5f5 100%);
    border-radius: 16px 60px 16px 16px;
    padding: 20px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: cardFadeIn 0.8s ease forwards;
}

@keyframes cardFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-info {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.entry-job-type {
    color: #222;
    font-size: 1.3rem;
}

.freshers .entry-job-type:before {
    content: "\025cf";
    color: #e8ac0a;
    margin-right: 5px;
    display: inline;
}
.careers .entry-job-type:before {
    content: "\025cf";
    color: #00a4c2;
    margin-right: 5px;
    display: inline;
}


.card-img {
    border-radius: 16px 60px 16px 16px;
    margin-top: 20px;
}

.catch {
    color: #222;
    line-height: 1.5;
    letter-spacing: 3.0%;
    font-weight: bold;
    font-size: 2.4rem;
    margin: 20px 0;
}

.card-job-name {
    color: #222;
    font-size: 1.8rem;
    font-weight: bold;
}

.year-type {
    color: #222;
    font-size: 1.4rem;
}

.badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge.entry-type {
    background: #e3f2fd;
    color: #1976d2;
}

.badge.job-type {
    background: #f3e5f5;
    color: #7b1fa2;
}

.card-description {
    color: #666;
    line-height: 1.5;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #333;
}

@media (max-width: 980px) {
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

}
@media (max-width: 425px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* 選択された条件の表示 */
.selected-filters {
    display: none;
    margin: 20px 0 40px;
}

.filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filters-label {
    font-weight: bold;
    color: #222;
    font-size: 1.4rem;
    margin-right: 8px;
}

.filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
}

.filter-tag.entry-filter {
    background-color: #e3f2fd;
    color: #222;
    border: 1px solid #bbdefb;
}

.filter-tag.job-filter {
    background-color: #fff3e0;
    color: #222;
    border: 1px solid #ffcc02;
}

/* レスポンシブ対応 */
@media (min-width: 769px) {
    .search-panel_inner {
        padding: 0;
    }

}

@media (max-width: 768px) {

    .search-panel_inner {
        padding: 0;
    }
    .filters-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters-label {
        margin-bottom: 4px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-group + .filter-group {
        margin-top: 30px;
    }

    .filter-group h3 {
        text-align: left;
        margin-bottom: 15px;
    }

    .checkbox-group {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .results-section {
        padding: 15px;
    }

}
@media (max-width: 767px) {
    .interbox {
        margin: 60px auto 0;
        padding: 0 15px;
    }
}

@media (max-width: 425px) {
    .card-grid {
        gap: 40px;
    }
}