/*
Theme Name: SWELL Child
Description: SWELL子テーマ - 不動産サイト用カスタマイズ
Template: swell
Version: 1.0.0
*/

/* ==================================================
   不動産サイト用カスタムCSS
   ================================================== */

/* ==================================================
   物件新着情報ショートコード用スタイル
   ================================================== */

.fudou-recent-properties-image img {
    width: 100%;
    aspect-ratio: 1024 / 539;
    object-fit: cover;
}

/* データなしの場合 */
.no-properties {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
    border-radius: 8px;
}

/* ==================================================
   物件検索ウィジェット
   ================================================== */

.fudou-search-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.fudou-search-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6;
}

.fudou-search-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
}

.search-select,
.search-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.search-select:focus,
.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 価格帯・面積の範囲選択 */
.price-range,
.size-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-select-half {
    flex: 1;
    padding: 0.625rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #ffffff;
}

.range-separator {
    flex-shrink: 0;
    color: #6b7280;
    font-weight: 500;
}

/* 検索ボタン */
.search-submit {
    margin-top: 0.5rem;
}

.search-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-icon {
    font-size: 1.1rem;
}

/* サイドバー内での調整 */
.sidebar .fudou-search-widget {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar .fudou-search-widget .widget-title {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.sidebar .search-field label {
    font-size: 0.85rem;
}

.sidebar .search-select,
.sidebar .search-input,
.sidebar .search-select-half {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .fudou-search-widget {
        padding: 1rem;
    }

    .price-range,
    .size-range {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-select-half {
        width: 100%;
    }

    .range-separator {
        display: none;
    }

    .hentry {
        margin-top: 1rem;
    }
}

/* ==================================================
   物件カテゴリウィジェット
   ================================================== */

.fudou-category-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.fudou-category-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    margin-bottom: 0.75rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #3b82f6;
    border-radius: 0 6px 6px 0;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
}

.category-link:hover {
    background: #f8fafc;
    border-left-color: #1d4ed8;
    color: #1e40af;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.category-count {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* グリッドレイアウト（1列表示） */
.category-list.layout-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-list.layout-grid .category-link {
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-left: 4px solid #3b82f6;
    border-radius: 0 6px 6px 0;
}

.category-list.layout-grid .category-link:hover {
    border-left-color: #1d4ed8;
    transform: translateX(2px);
}

/* ボタンレイアウト */
.category-list.layout-button .category-link {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    justify-content: center;
    font-weight: 600;
    border: none;
    border-radius: 6px;
}

.category-list.layout-button .category-link:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.category-list.layout-button .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ==================================================
   売買新着物件ウィジェット
   ================================================== */

.fudou-sale-recent-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.fudou-sale-recent-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f59e0b;
}

.sale-property-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sale-property-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.sale-property-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* サイドバー用レイアウト */
.sale-property-list.sidebar-layout .property-item-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* カード全体のリンク */
.property-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.75rem;
    margin: -0.75rem;
}

.property-item-link:hover {
    background-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 右端：ホバー時の矢印アイコン */
.property-hover-arrow {
    flex-shrink: 0;
    align-self: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #3b82f6;
    font-weight: bold;
}

.property-item-link:hover .property-hover-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* 左側：物件画像 80x60px */
.property-thumbnail-small {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
}

.property-thumbnail-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-thumbnail-small .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #9ca3af;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

/* 中央：物件情報 */
.property-info-compact {
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem; /* 右側に少し余白を追加 */
}

.property-title-small {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.property-title-small a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-title-small a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.property-details-compact {
    font-size: 0.75rem;
}

.detail-item {
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.detail-value {
    color: #374151;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%; /* 最大幅を制限 */
    display: block;
}

/* 長いテキスト用の共通スタイル */
.detail-value.long-text {
    font-size: 0.75rem; /* 少し小さく */
    line-height: 1.2;
    white-space: normal; /* 改行を許可 */
    word-break: break-all; /* 長い単語を改行 */
    max-height: 2.4em; /* 最大2行まで */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行で切り詰め */
    -webkit-box-orient: vertical;
}

/* 価格は特別扱い（1行で表示） */
.detail-value.price {
    color: #dc2626;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 面積情報も長い場合があるので調整 */
.detail-value.size {
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: normal;
    word-break: break-all;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 右端：詳細リンク */
.property-detail-link {
    display: none;
}

.detail-arrow {
    display: none;
}

/* タイトルのリンクスタイルを調整 */
.property-item-link .property-title-small a {
    color: inherit;
    text-decoration: none;
}

.property-item-link:hover .property-title-small {
    color: #3b82f6;
}

/* 価格の色を維持 */
.property-item-link .detail-value.price {
    color: #dc2626;
    font-weight: 600;
}

/* ウィジェットフッター */
.widget-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.view-all-link {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* サイドバー内での調整 */
.sidebar .fudou-category-widget,
.sidebar .fudou-sale-recent-widget {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.sidebar .fudou-category-widget .widget-title,
.sidebar .fudou-sale-recent-widget .widget-title {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.sidebar .category-link {
    padding: 0.625rem 0.875rem;
}

/* サイドバー内のコンパクト表示 */
.sidebar .property-thumbnail-small {
    width: 80px;
    height: 60px;
}

.sidebar .property-title-small {
    font-size: 0.85rem;
}

.sidebar .property-details-compact {
    font-size: 0.7rem;
}

.sidebar .detail-arrow {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}

/* ==================================================
   純正物件検索ウィジェットのカスタムスタイル
   ================================================== */

/* 純正検索ウィジェットの基本スタイル */
.widget_fudo_b_k {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget_fudo_b_k .c-widget__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6;
}

/* 検索フォームの基本スタイル */
#searchitem {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 注意文のスタイル */
.jsearch_caution1,
.jsearch_caution2 {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #92400e;
    text-align: center;
    margin-bottom: 1rem;
}

/* 種別選択のスタイル */
#shubetsu {
    margin-bottom: 1rem;
}

#shubetsu select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

#shubetsu select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 路線・駅選択のスタイル */
.roseneki {
    margin-bottom: 1rem;
}

.jsearch_roseneki {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    display: block;
    margin-bottom: 0.5rem;
}

.roseneki select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.roseneki select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 地域選択のスタイル */
.chiiki {
    margin-bottom: 1rem;
}

.jsearch_chiiki {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    display: block;
    margin-bottom: 0.5rem;
}

.chiiki select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.chiiki select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 価格・賃料・面積のスタイル */
.kakaku_c,
.kakaku_b,
.memseki {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.kakaku-flex-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.kakaku_c .jsearch_kakaku,
.kakaku_b .jsearch_kakaku,
.memseki .jsearch_memseki {
    width: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    display: block;
    margin-bottom: 1rem;
}

.kakaku_c select,
.kakaku_b select,
.memseki select {
    width: 100%;
    padding: 0.625rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.kakaku_c select:focus,
.kakaku_b select:focus,
.memseki select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 駅徒歩のスタイル */
.hofun {
    margin-bottom: 1rem;
}

.jsearch_hofun {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    display: block;
    margin-bottom: 0.5rem;
}

.hofun select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.hofun select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 間取りのスタイル */
.madori_cb {
    margin-bottom: 1rem;
}

.jsearch_madori {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    display: block;
    margin-bottom: 0.5rem;
}

.madori_cb span {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.madori_cb input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.madori_cb label {
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

/* 築年数のスタイル */
.chikunen {
    margin-bottom: 1rem;
}

.jsearch_chikunen {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    display: block;
    margin-bottom: 0.5rem;
}

.chikunen select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.chikunen select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 面積のスタイル */
.memseki {
    margin-bottom: 1rem;
}

.jsearch_memseki {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    display: block;
    margin-bottom: 0.5rem;
}

.memseki select {
    width: 100%;
    padding: 0.625rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.memseki select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 設備・条件のスタイル */
.setsubi_cb {
    margin-bottom: 1rem;
}

.jsearch_setsubi {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    display: block;
    margin-bottom: 0.5rem;
}

.setsubi_cb span {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.setsubi_cb input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.setsubi_cb label {
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

/* 検索ボタンのスタイル */
#btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

#btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* サイドバー内での調整 */
.sidebar .widget_fudo_b_k {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar .widget_fudo_b_k .c-widget__title {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.sidebar .jsearch_roseneki,
.sidebar .jsearch_chiiki,
.sidebar .jsearch_kakaku,
.sidebar .jsearch_hofun,
.sidebar .jsearch_madori,
.sidebar .jsearch_chikunen,
.sidebar .jsearch_memseki,
.sidebar .jsearch_setsubi {
    font-size: 0.85rem;
}

.sidebar .roseneki select,
.sidebar .chiiki select,
.sidebar .kakaku_c select,
.sidebar .kakaku_b select,
.sidebar .hofun select,
.sidebar .chikunen select,
.sidebar .memseki select {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .widget_fudo_b_k {
        padding: 1rem;
    }

    .madori_cb span,
    .setsubi_cb span {
        display: block;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    .jsearch_caution1,
    .jsearch_caution2 {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

/* ==================================================
   検索フォームの拡張スタイル
   ================================================== */

.search-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.search-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.search-section.basic-search {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* チェックボックスグループ */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* ==================================================
   新着物件ウィジェットの拡張スタイル
   ================================================== */

.property-madori,
.property-station,
.property-size {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.madori-icon,
.station-icon,
.size-icon {
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

.property-details-row {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.age-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.property-size {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* 物件詳細ページのレスポンシブ対応 */
@media (max-width: 768px) {
    .property-details-grid,
    .additional-details-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .property-details-section .detail-item,
    .additional-details-grid .detail-item {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.25rem;
    }

    .property-details-section .detail-label,
    .additional-details-grid .detail-label {
        font-size: 0.8rem;
        min-width: 80px;
        margin-right: 0.75rem;
    }

    .property-details-section .detail-value,
    .additional-details-grid .detail-value {
        font-size: 0.85rem;
    }
}

/* レスポンシブ対応 - 検索フォーム */
@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .search-section.basic-search {
        padding: 0.75rem;
    }

    .property-details-row {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ==================================================
   売買物件専用検索ウィジェット
   ================================================== */

.fudou-sale-search-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.fudou-sale-search-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #059669;
}

.fudou-sale-search-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 条件・設備のチェックボックスグリッド */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.checkbox-section {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    background: #f8fafc;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #d1d5db;
}

.checkbox-section .checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.checkbox-section .checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(0.9);
}

/* サイドバー内での売買検索調整 */
.sidebar .fudou-sale-search-widget {
    padding: 1rem;
}

.sidebar .checkbox-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.sidebar .checkbox-section {
    padding: 0.75rem;
}

.sidebar .section-title {
    font-size: 0.8rem;
}

.sidebar .checkbox-section .checkbox-label {
    font-size: 0.75rem;
}

/* 売買検索のモバイル対応 */
@media (max-width: 768px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .fudou-sale-search-widget {
        padding: 1rem;
    }

    .checkbox-section {
        padding: 0.75rem;
    }
}

/* ==================================================
   物件詳細ページ用スタイル
   ================================================== */

.fudou-single-property {
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* 物件名セクション */
.property-name-section {
    display: flex;
    align-items: center;
    background: #ffffff;
}

.property-name-label {
    background: #f97316;
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.label-text {
    white-space: nowrap;
}

.property-name-area {
    flex: 1;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-left: 2px solid #f97316;
}

.property-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.3;
}

/* 詳細情報セクション */
.property-details-section {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* 物件詳細ページ用の横並びレイアウト */
.property-details-section .detail-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.property-details-section .detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    margin-right: 1rem;
    flex-shrink: 0;
    min-width: 100px;
}

.property-details-section .detail-value {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    flex: 1;
}

.property-details-section .detail-value.price {
    color: #dc2626;
    font-weight: 600;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-row .detail-cell.full-width {
    grid-column: 1 / -1;
}

.detail-cell {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f8fafc;
    min-height: 80px;
}

.detail-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.detail-value {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    display: flex;
    align-items: center;
}

.detail-value.price {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.2rem;
}

.property-additional-details-section {
    padding: 2rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.additional-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.additional-details-grid .detail-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.additional-details-grid .detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    margin-right: 1rem;
    flex-shrink: 0;
    min-width: 100px;
}

.additional-details-grid .detail-value {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    flex: 1;
}

/* 一言コメントセクション */
.property-comment-section {
    display: flex;
    align-items: flex-start;
    background: #1976D2;
    color: white;
}

.comment-label {
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 80px;
}

.comment-content {
    flex: 1;
    padding: 1rem 1.5rem;
    background: #3b82f6;
    color: white;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.comment-content p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

/* 物件画像セクション */
.property-image-section {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
}

.property-main-image-container {
    margin-bottom: 1rem;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.property-main-image {
    margin: 0;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

/* 画像スライダー */
.property-image-slider {
    margin-top: 1rem;
}

.slider-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0 1rem;
}

.slider-track {
    display: flex;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    padding: 0 2rem;
    align-items: center;
    height: 80px;
    flex: 1;
}

.slider-item {
    flex: 0 0 120px;
    height: 80px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.slider-item.active {
    border-color: #dc2626;
    transform: scale(1.05);
}

.slider-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.slider-item:hover .slider-thumbnail {
    opacity: 0.8;
}

/* ナビゲーションボタン */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
    pointer-events: auto;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 0.5rem;
    position: absolute;
}

.slider-next {
    right: 0.5rem;
    position: absolute;
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .property-name-section {
        flex-direction: column;
    }

    .property-name-label {
        width: 100%;
        justify-content: center;
        border-left: none;
        border-bottom: 2px solid #f97316;
    }

    .property-name-area {
        border-left: none;
        border-bottom: 2px solid #f97316;
    }

    .property-name {
        font-size: 1.3rem;
        text-align: center;
    }

    .property-details-section {
        padding: 1rem;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .detail-cell {
        min-height: 60px;
        padding: 0.75rem;
    }

    .detail-label {
        font-size: 0.85rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }

    .detail-value.price {
        font-size: 1.1rem;
    }

    .property-comment-section {
        flex-direction: column;
    }

    .comment-label {
        width: 100%;
        justify-content: center;
        border-left: none;
        border-bottom: 2px solid #1d4ed8;
        min-height: 60px;
    }

    .comment-content {
        border-left: none;
        border-bottom: 2px solid #1d4ed8;
        min-height: 60px;
    }

    .comment-content p {
        font-size: 0.9rem;
    }

    /* メイン画像のモバイル対応 */
    .property-main-image-container {
        height: 250px;
    }

    /* 画像スライダーのモバイル対応 */
    .slider-container {
        height: 80px;
        padding: 0 0.5rem;
    }

    .slider-item {
        flex: 0 0 80px;
        height: 60px;
    }

    .slider-track {
        padding: 0 1.5rem;
        gap: 0.25rem;
        height: 60px;
    }

    .slider-nav {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .slider-prev {
        left: 0.25rem;
        position: absolute;
    }

    .slider-next {
        right: 0.25rem;
        position: absolute;
    }
}

/* ==================================================
   追加詳細情報セクション用スタイル
   ================================================== */

.property-additional-details-section {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 2rem;
}

.additional-details-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.additional-details-grid .detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.additional-details-grid .detail-row .detail-cell.full-width {
    grid-column: 1 / -1;
}

.additional-details-grid .detail-cell {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f8fafc;
    min-height: 80px;
}

.additional-details-grid .detail-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.additional-details-grid .detail-value {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    display: flex;
    align-items: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .property-additional-details-section {
        padding: 1rem;
    }

    .additional-details-grid .detail-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .additional-details-grid .detail-cell {
        min-height: 60px;
        padding: 0.75rem;
    }

    .additional-details-grid .detail-label {
        font-size: 0.85rem;
    }

    .additional-details-grid .detail-value {
        font-size: 0.9rem;
    }
}

/* ==================================================
   物件アーカイブページ用スタイル
   ================================================== */

.fudou-archive-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.fudou-property-card {
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* カード全体のホバー効果を削除 */

.fudou-property-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fudou-property-link:hover {
    text-decoration: none;
    color: inherit;
}

.property-card-inner-top {
    display: grid;
    gap: 0;
    position: relative;
    justify-content: start;
}

.property-card-inner-bottom {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    min-height: 250px;
    position: relative;
}

/* 物件名ラベル（左上） */
.property-name-label {
    grid-column: 1;
    grid-row: 1;
    width: 130px;
    background: #f97316;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    z-index: 2;
}

.label-text {
    white-space: nowrap;
}

/* 物件名（物件名ラベルの右） */
.property-name-area {
    grid-column: 2;
    grid-row: 1;
    padding: 0.5rem 1rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    z-index: 2;
}

.property-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
    margin: 0;
}

/* 左下：物件画像エリア */
.property-image-area {
    padding: 1rem 0;
    grid-column: 1;
    grid-row: 2;
    width: 300px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.property-image-area .wp-block-image {
    margin: 0;
    height: 100%;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 画像のホバー効果を削除 */

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 500;
}

/* 右下：詳細情報エリア（テーブル形式） */
.property-details-area {
    grid-column: 2;
    grid-row: 2;
    padding: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* 詳細情報エリアのホバー効果 */
.property-details-area:hover {
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* テーブル形式のスタイル */
.c-propertyInfo_dataTable_wrap {
    width: 100%;
}

.c-propertyInfo_dataTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.c-propertyInfo_dataTable th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    text-align: left;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
    line-height: 1.3;
    white-space: nowrap;
    width: 20%;
}

.c-propertyInfo_dataTable td {
    background: #ffffff;
    color: #374151;
    padding: 0.75rem 0.5rem;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.4;
    vertical-align: top;
}

.c-propertyInfo_dataTable_price {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.1rem;
}

.c-propertyInfo_dataTable_price_small {
    font-size: 0.8rem;
    font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .property-card-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        min-height: 0;
    }

    .property-name-label {
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
    }

    .property-name-area {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
    }

    .property-image-area {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        height: 200px;
    }

    .property-details-area {
        grid-column: 1;
        grid-row: 4;
    }

    /* スマホレイアウト：archive-fudo-loop.phpのテーブル専用 */
    .fudou-property-card .c-propertyInfo_dataTable {
        font-size: 0.8rem;
        border-collapse: separate;
        border-spacing: 0;
        border-top: 1px solid #e5e7eb;
    }

    .fudou-property-card .c-propertyInfo_dataTable tbody {
        display: block;
    }

    .fudou-property-card .c-propertyInfo_dataTable tr {
        display: flex;
        flex-wrap: wrap;
        border: none;
        padding: 0;
    }

    .fudou-property-card .c-propertyInfo_dataTable th,
    .fudou-property-card .c-propertyInfo_dataTable td {
        display: flex;
        align-items: center;
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
        border: none;
        border-bottom: 1px solid #e5e7eb;
        border-right: 1px solid #e5e7eb;
        min-height: 2rem;
    }

    .fudou-property-card .c-propertyInfo_dataTable th {
        flex: 0 0 30%;
        font-weight: 600;
        background: #f3f4f6;
        justify-content: flex-start;
        white-space: normal;
        word-wrap: break-word;
    }

    .fudou-property-card .c-propertyInfo_dataTable td {
        flex: 0 0 70%;
        background: transparent;
        border-right: none;
    }

    /* colspanの場合は幅70%に */
    .fudou-property-card .c-propertyInfo_dataTable td[colspan="3"] {
        flex: 0 0 70%;
    }

    .fudou-property-card .c-propertyInfo_dataTable_price {
        font-size: 0.9rem;
    }

    .fudou-property-card .c-propertyInfo_dataTable_price_small {
        font-size: 0.7rem;
    }

    /* 設備/条件の横並び表示（single-fudo.phpと同じスタイル） */
    .fudou-property-card .c-propertyInfo_dataTable .setsubi-content {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .fudou-property-card .c-propertyInfo_dataTable .setsubi-item {
        display: inline-block;
        background: #f3f4f6;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .fudou-archive-list {
        gap: 1rem;
    }

    .property-details-area {
        padding: 0;
    }

    .property-detail-item {
        font-size: 0.85rem;
    }
}

/* ==================================================
   お問い合わせフォーム用スタイル
   ================================================== */

   .property-inquiry-section {
    margin-top: 40px;
    padding: 20px 0;
}

.property-inquiry-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    background: #dc3545;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.envelope-icon {
    font-size: 24px;
}

.form-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.form-field {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field:last-of-type {
    border-bottom: none;
}

.form-field label {
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.required {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.email-note {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.email-note p {
    margin: 4px 0;
}

.wpcf7-submit {
    background: #dc3545;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 20px;
    transition: background 0.3s;
    width: calc(100% - 40px);
    max-width: 200px;
}

.wpcf7-submit:hover {
    background: #c82333;
}

.wpcf7-submit:active {
    transform: translateY(1px);
}

/* Contact Form 7のエラーメッセージスタイル */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.wpcf7-response-output {
    margin: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: bold;
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpcf7-mail-sent-ng {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wpcf7-spam-blocked {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .property-inquiry-section {
        margin-top: 20px;
        padding: 10px 0;
    }

    .form-field {
        padding: 15px;
    }

    .form-header {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .form-header h3 {
        font-size: 16px;
    }

    .envelope-icon {
        font-size: 20px;
    }

    .wpcf7-submit {
        margin: 15px;
        width: calc(100% - 30px);
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .form-field {
        padding: 12px;
    }

    .form-header {
        padding: 12px;
    }

    .form-field input[type="text"],
    .form-field input[type="email"],
    .form-field input[type="tel"],
    .form-field textarea {
        padding: 10px;
        font-size: 13px;
    }

    .wpcf7-submit {
        margin: 12px;
        width: calc(100% - 24px);
        padding: 10px 15px;
    }
}

/* ==================================================
   ページネーション
   ================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination .page-numbers:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination .page-numbers.current {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.pagination .page-numbers.current:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: none;
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: default;
    box-shadow: none;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    border: none;
    color: #9ca3af;
    transform: none;
    box-shadow: none;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pagination {
        margin: 2rem 0;
        gap: 0.25rem;
    }

    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* ページネーションが1ページのみの場合の非表示 */
.pagination:has(.page-numbers:only-child) {
    display: none;
}

/* 画像コンテナ */
.property-image-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* 虫眼鏡アイコン */
.image-zoom-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

/* 虫眼鏡アイコンのホバー効果 */
.property-image-container:hover .image-zoom-icon {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.zoom-icon {
    font-size: 16px;
    line-height: 1;
    display: block;
    color: white;
}

/* フォントが対応していない場合の代替 */
.image-zoom-icon::before {
    content: "🔍";
    font-size: 16px;
    line-height: 1;
    display: block;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 内側のspanを非表示にして疑似要素を使用 */
.zoom-icon {
    display: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .image-zoom-icon {
        width: 28px;
        height: 28px;
        bottom: 6px;
        right: 6px;
    }

    .image-zoom-icon::before {
        font-size: 14px;
    }
}

/* ==================================================
   画像拡大表示モーダル用スタイル
   ================================================== */

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: block;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        top: 50%;
        transform: translateY(-50%);
    }

    .modal-content img {
        max-height: 70vh;
    }

    .modal-close {
        top: -35px;
        right: -5px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
    }

    .modal-content img {
        max-height: 60vh;
    }

    .modal-close {
        top: -30px;
        right: -10px;
        font-size: 25px;
        width: 35px;
        height: 35px;
    }
}

/* 検索条件表示スタイル */
.search-conditions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.search-conditions h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.search-conditions ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-conditions li {
    background: #007cba;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.search-conditions li:before {
    content: "✓ ";
    margin-right: 4px;
}

@media (max-width: 768px) {
    .search-conditions {
        padding: 15px;
        margin: 15px 0;
    }

    .search-conditions ul {
        flex-direction: column;
        gap: 8px;
    }

    .search-conditions li {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* 不動産検索結果ページのレイアウト調整 */
.archive-fudo .l-container {
    width: 100%;
}
@media (max-width: 768px) {
    .archive-fudo .l-container {
        padding: 0 0.5rem;
    }
}

.archive-fudo .l-mainContent {
    flex: 1;
}

.archive-fudo .l-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* サイドバー内の検索フォームのスタイル調整 */
.archive-fudo .l-sidebar .widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.archive-fudo .l-sidebar .widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .archive-fudo .l-content {
        flex-direction: column;
    }

    .archive-fudo .l-sidebar {
        width: 100%;
        order: -1;
    }
}

.kakaku_c,
.kakaku_b,
.memseki {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.jsearch_kakaku,
.jsearch_kakaku,
.jsearch_memseki {
    margin-bottom: 0.5rem;
    display: block;
}

/* 下限セレクトボックス */
.kakaku_c select:first-of-type,
.kakaku_b select:first-of-type,
.memseki select:first-of-type {
    flex: 0 1 calc(50% - 1rem);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    margin-right: 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
}

/* 上限セレクトボックス */
.kakaku_c select:last-of-type,
.kakaku_b select:last-of-type,
.memseki select:last-of-type {
    flex: 0 1 calc(50% - 1rem);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    margin-left: 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .kakaku_c select,
    .kakaku_b select,
    .memseki select {
        width: 48%;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}
