/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jul 20 2026 | 19:47:18 */
/* ==========================================
   Products Layout Base
========================================== */

.products-container {
    /*max-width: 1140px;*/
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

/* ==========================================
   フィルターUI（PHP変更なし対応版）
========================================== */

/* ★重要：gridでもflexでもなく安全なwrap設計 */
.products-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

/* 検索（1行フル幅） */
.products-filters input[type="text"] {
    flex: 1 1 100%;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}

/* セレクト共通（下段3つ横並び） */
.products-filters select {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 160px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
}

/* フォーカス */
.products-filters input:focus,
.products-filters select:focus {
    border-color: #1e73be;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,115,190,0.15);
}

/* ==========================================
   一覧レイアウト
========================================== */

.products-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
	color: #333;
}

/* ==========================================
   カードUI（安定版）
========================================== */

.product-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    transition: 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card-link {
    display: block;
    padding: 16px;
    color: inherit;
    text-decoration: none;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-meta p {
    margin: 4px 0;
    font-size: 14px;
    color: #444;
}

/* ==========================================
   スマホ対応
========================================== */

@media (max-width: 767px) {

    /* フィルター縦積み */
    .products-filters {
        flex-direction: column;
    }

    .products-filters select {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* ==========================================
   スマホ：ドロップダウン拡張（改善）
========================================== */

@media (max-width: 767px) {

    .products-filters select {
        height: 52px;              /* ← ここで高さUP */
        font-size: 15px;           /* ← 少し読みやすく */
        padding: 14px 14px;           /* ← 内側余白増加 */
        border-radius: 10px;       /* ← 少し柔らかいUI */
    }

    .products-filters input[type="text"] {
        height: 52px;              /* 検索も統一 */
        font-size: 15px;
        padding: 14px 14px;
        border-radius: 10px;
    }
}


/* ==========================================
   強制はみ出し検知＆防止
========================================== */

body.post-type-archive-products #content,
body.single-products #content {
    overflow-x: hidden;
}

.products-container,
.products-filters,
.products-filters * {
    box-sizing: border-box;
    max-width: 100%;
}

/* フィルターを強制安定化 */
.products-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* input/select完全制御 */
.products-filters input,
.products-filters select {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
}



/* ==========================================
   products詳細：SWELLレイアウト完全制御
========================================== */

/* SWELLのコンテンツ幅を解除 */
body.single-products .l-content,
body.single-products .l-main,
body.single-products .l-mainContent {
    max-width: none !important;
    width: 100% !important;
}

/* コンテナを正しい中央基準に */
body.single-products .products-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* サイドバー完全排除 */
body.single-products .l-sidebar {
    display: none !important;
}

/* SWELLの2カラム構造解除 */
body.single-products .l-container {
    display: block !important;
}



body.single-products .l-container {
    display: block !important;
}

body.single-products .l-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

body.single-products .l-sidebar {
    display: none !important;
}


.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)){
    font-size: 1.1em;
}














/*==========================================
比較部分ヘッダー
==========================================*/

.products-archive {
    padding: 32px 32px;
	background:#fff;
}


/*
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
*/



.db-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.db-header__title {
    font-size: 24px;
    font-weight: 500;
    color: #222;
    line-height: 1.2;
    margin-bottom: 4px;
	font-weight:700;
}

.db-header__sub {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/*==========================================
比較ボタン
==========================================*/

.compare-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px;
    background: #fff;
    border: 0.5px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.2s;
	font-size: 1em;
}

.compare-btn:hover {
    border-color: #bbb;
}

.compare-btn__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a7cff;
    flex-shrink: 0;
}

.compare-btn__info {
    display: flex;
    flex-direction: column;
}

.compare-btn__label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.compare-btn__count {
    font-size: 11px;
    color: #4a7cff;
    margin-top: 2px;
}

.compare-btn__arrow {
    color: #bbb;
    flex-shrink: 0;
}

/*==========================================
フィルターエリア
==========================================*/

.products-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

/*==========================================
検索ボックス
==========================================*/

.filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 0.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 14px;
    height: 44px;
    transition: border-color 0.2s;
}

.filter-search:focus-within {
    border-color: #4a7cff;
}

.filter-search__icon {
    color: #aaa;
    flex-shrink: 0;
}

.filter-search input {
    border: none;
    background: none;
    font-size: 16px;
    color: #333;
    outline: none;
    flex: 1;
    min-width: 0;
}

.filter-search input::placeholder {
    color: #bbb;
}

.filter-search input {
    border: none !important;
    background: none !important;
    font-size: 16px;
    color: #333;
    outline: none !important;
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
    padding: 0 !important;
}
/*==========================================
セレクトボックス
==========================================*/

.filter-select-wrap {
    position: relative;
}

.filter-select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #aaa;
    pointer-events: none;
}

.filter-select {
    width: 100%;
    height: 44px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 0.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 36px 0 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #4a7cff;
}

/*==========================================
件数 + 並び替え
==========================================*/

.filter-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
}

.filter-meta__count {
    font-size: 14px;
    color: #888;
}

.filter-meta__count span {
    color: #333;
    font-weight: 500;
}

.filter-sort {
    display: flex;
    gap: 6px;
}

.sort-btn {
    font-size: 14px;
    padding: 5px 20px;
    border-radius: 8px;
    border: 0.5px solid #e0e0e0;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.sort-btn:hover {
    border-color: #bbb;
    color: #333;
}

.sort-btn.active {
    background: #f9f9f9;
    border-color: #ccc;
    color: #333;
    font-weight: 500;
}

/* 並び替えボタンをpill型に */
.sort-btn {
    border-radius: 99px;
    padding: 6px 16px;
}

/*==========================================
タブレット
==========================================*/

@media (max-width: 768px) {
    .db-header {
        flex-direction: column;
        gap: 16px;
    }

    .compare-btn {
        align-self: flex-start;
    }

    .filter-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-sort {
        width: 100%;
        justify-content: flex-end;
    }
}

/*==========================================
スマホ
==========================================*/

@media (max-width: 480px) {
    .sort-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
	
.db-header__title {
    font-size: 1.3em;
}
}