@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* 検索結果ページのスタイル */
.p-searchResults {
    margin: 2em 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em;
}

.p-searchResults__item {
    /* border: 1px solid #ddd; */
    margin-bottom: 0;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.p-searchResults__item:hover {
    transform: none !important;
    box-shadow: none !important;
}

.p-searchResults__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: opacity 0.3s ease !important;
    box-shadow: none !important;
}

.p-searchResults__link:hover {
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.8 !important;
}

.p-searchResults__img {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 0.5em;
}

.p-searchResults__img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.p-searchResults__content {
    flex: 1;
    padding: 0.5em;
    display: flex;
    flex-direction: column;
}

.p-searchResults__title {
    font-size: 1em;
    margin: 0 0 0.3em;
    color: #333;
    line-height: 1.4;
}

.p-searchResults__price {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0.3em 0;
}

.p-searchResults__excerpt {
    display: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
    .p-searchResults {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .p-searchResults {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .p-searchResults {
        grid-template-columns: 1fr;
    }
}

/* 検索フォームのスタイル */
.p-searchForm {
    padding: 1em;
    background: #f5f5f5;
    margin-bottom: 2em;
}

.p-searchForm .search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.p-searchForm .search-field {
    flex: 1;
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1em;
}

.p-searchForm .search-submit {
    padding: 0.8em 1.2em;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-searchForm .search-submit:hover {
    background: #444;
}

.p-searchForm .screen-reader-text {
    display: none;
}

/* ページネーションのスタイル */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2em 0;
    gap: 0.5em;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5em;
    height: 2.5em;
    padding: 0 1em;
    border: none;
    text-decoration: none;
    color: #999;
    background: #e5e5e5;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 0;
}

.pagination .page-numbers:not(.current,.dots):hover {
    background: #d4d4d4;
    color: #666;
}

.pagination .current {
    background: #8cc63f;
    color: #fff;
}

.pagination .prev,
.pagination .next {
    padding: 0 1em;
}

/* From FNJ 
下記cssがお知らせ部分をクリックできないようにするcssを上書きしてしまっています */
/* .p-postList__link {
    pointer-events: all !important;
} */
