/*
Theme Name: Real Estate Modern Demo
Theme URI: https://example.com/
Author: STORE LABO
Description: 洗練された不動産デモサイトテーマ（レスポンシブ調整・完全版）
Version: 3.4.0
*/

/* ==========================================================================
   1. Variables & Reset
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #008D62;       /* 信頼の緑 */
    --primary-dark: #006b4a;
    --secondary: #E67E22;     /* 活気のオレンジ */
    --text-body: #333333;
    --text-light: #888888;
    --bg-gray: #F5F7FA;
    --white: #ffffff;
    --border: #E1E4E8;
    
    /* Typography */
    --font-base: "Noto Sans JP", "Helvetica Neue", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    
    /* Layout */
    --container: 1140px;
    --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px; /* Base size */
}

body {
    font-family: var(--font-base);
    color: var(--text-body);
    line-height: 1.8;
    margin: 0;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word; /* 長い単語の折り返し */
}

/* メニューオープン時はスクロール禁止 */
body.menu-open { overflow: hidden; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. Header
   ========================================================================== */
.site-header {
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1005;
    display: flex;
    align-items: center;
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: -1;
    transition: inherit;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1002;
    white-space: nowrap; /* ロゴの折り返し防止 */
}

/* ==========================================================================
   3. Navigation (PC & Mobile)
   ========================================================================== */

/* --- PC Styling --- */
@media (min-width: 769px) {
    .menu-toggle { display: none; }
    .menu-overlay { display: none; }

    .global-nav ul { display: flex; gap: 1.5rem; align-items: center; }
    .global-nav a {
        font-size: 0.9rem;
        font-weight: 500;
        position: relative;
        padding: 5px 0;
        color: #444;
    }
    .global-nav a::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; width: 0; height: 2px;
        background: var(--primary);
        transition: width 0.3s;
    }
    .global-nav a:hover::after { width: 100%; }

    /* Contact Button (PC) */
    .global-nav .btn-nav-contact {
        background: linear-gradient(135deg, var(--primary) 0%, #27ae60 100%);
        color: #fff !important;
        padding: 10px 28px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.9rem;
        letter-spacing: 0.05em;
        box-shadow: 0 5px 15px rgba(0, 141, 98, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: inline-block;
        margin-left: 10px;
    }
    .global-nav .btn-nav-contact:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 141, 98, 0.45);
        opacity: 1;
    }
    .global-nav .btn-nav-contact::after { display: none; }
}

/* --- Mobile Styling --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1100;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        position: absolute;
        left: 0;
        transition: 0.3s;
    }
    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 9px; }
    .menu-toggle span:nth-child(3) { bottom: 0; }

    .menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); top: 9px; }
    .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%; /* 少し幅を広げる */
        max-width: 320px;
        height: 100vh;
        background: #fff;
        padding-top: 100px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1010;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
        overflow-y: auto; /* 縦スクロール可 */
    }
    .menu-open .global-nav { right: 0; }

    .global-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .global-nav li { width: 100%; border-bottom: 1px solid #f5f5f5; }
    .global-nav a {
        display: block;
        padding: 18px 24px;
        font-size: 1rem;
        color: #333;
    }
    .btn-nav-contact {
        margin: 30px 20px;
        text-align: center;
        background: var(--primary);
        color: #fff !important;
        border-radius: 4px;
        padding: 12px;
        width: calc(100% - 40px);
        display: inline-block;
    }

    .menu-overlay {
        display: block;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }
    .menu-open .menu-overlay { opacity: 1; visibility: visible; }
}

/* ==========================================================================
   4. Hero & Floating Search
   ========================================================================== */
.hero-wrapper {
    position: relative;
    padding-top: var(--header-height);
}

.hero-visual {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-visual::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.3);
}

.hero-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 100%; /* スマホでは幅を確保 */
    max-width: 800px;
    padding: 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}
.hero-text p { font-size: 1.2rem; font-weight: 500; }

.search-container {
    max-width: 900px;
    margin: -60px auto 0;
    position: relative;
    z-index: 10;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 40px;
    display: flex;
    gap: 40px;
}
.search-col {
    flex: 1;
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}
.search-col:hover { border-color: var(--primary); background: #fcfcfc; }
.search-col h2 { font-size: 1.4rem; margin: 0 0 10px; color: var(--text-body); }
.search-col p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }

.btn-search {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--white);
}
.btn-rent { background: var(--primary); }
.btn-sale { background: var(--secondary); }

/* --- Mobile Hero/Search Adjustment --- */
@media (max-width: 768px) {
    .hero-visual { height: 400px; }
    
    /* タイトルサイズを縮小して折り返し防止 */
    .hero-text h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
    .hero-text p { font-size: 0.95rem; }

    .search-container {
        flex-direction: column;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #eee;
        padding: 30px 20px;
        gap: 20px;
    }
    .search-col { padding: 15px; }
    .search-col h2 { font-size: 1.2rem; }
}

/* ==========================================================================
   5. Section Styles
   ========================================================================== */
.section { padding: 100px 0; }
.bg-light { background: var(--bg-gray); }

.sec-header { text-align: center; margin-bottom: 60px; }
.sec-en {
    display: block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.sec-jp {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    display: inline-block;
    line-height: 1.4;
}

/* --- Mobile Section Adjustment --- */
@media (max-width: 768px) {
    /* 余白を詰める */
    .section { padding: 60px 0; }
    .sec-header { margin-bottom: 40px; }
    /* 見出しサイズを小さく */
    .sec-jp { font-size: 1.6rem; }
    .page-title { font-size: 1.6rem !important; }
}

/* ==========================================================================
   6. News List
   ========================================================================== */
.news-list { max-width: 800px; margin: 0 auto; }
.news-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.news-date { width: 120px; color: var(--text-light); font-size: 0.9rem; flex-shrink: 0; }
.news-cat {
    background: var(--text-body);
    color: var(--white);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 2px;
    margin-right: 20px;
    flex-shrink: 0;
}
.news-link {
    flex: 1;
    font-weight: 500;
    line-height: 1.5;
}
.news-link:hover { color: var(--primary); text-decoration: underline; }

@media (max-width: 768px) {
    .news-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 0;
    }
    .news-date { font-size: 0.8rem; width: auto; }
    .news-link { font-size: 0.95rem; }
}

/* ==========================================================================
   7. Property Grid
   ========================================================================== */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.prop-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.prop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

.prop-thumb {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.prop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.prop-card:hover .prop-thumb img { transform: scale(1.08); }

.badge {
    position: absolute;
    top: 15px; left: 15px;
    padding: 6px 14px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}
.bg-rent { background: var(--primary); }
.bg-sale { background: var(--secondary); }

.prop-body { padding: 25px; }

.prop-title {
    font-size: 1.15rem;
    margin: 0 0 15px;
    line-height: 1.5;
    height: 3.0em; /* 行数を制限 */
    overflow: hidden;
}

.prop-price {
    color: #E74C3C;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.prop-price span { font-size: 0.9rem; color: var(--text-body); margin-left: 5px; font-weight: normal; }

.prop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.meta-icon { display: flex; align-items: center; gap: 6px; }

@media (max-width: 768px) {
    .prop-grid { grid-template-columns: 1fr; gap: 30px; }
    .prop-body { padding: 20px; }
    .prop-title { font-size: 1.05rem; }
    .prop-price { font-size: 1.3rem; }
}

/* ==========================================================================
   8. CTA Area
   ========================================================================== */
.cta-area {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
    background: #222;
}
.cta-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}
.cta-content { position: relative; z-index: 2; }
.cta-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.4; }
.btn-cta {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 30px;
}
.btn-cta:hover { background: var(--primary); color: var(--white); }

@media (max-width: 768px) {
    .cta-area { padding: 80px 0; }
    .cta-title { font-size: 1.6rem; }
    .btn-cta { padding: 1rem 2.5rem; font-size: 1rem; }
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer {
    background: #2D3436;
    color: #DFE6E9;
    padding: 80px 0 20px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}
.f-widget h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
}
.f-widget ul li { margin-bottom: 12px; }
.f-widget a { color: #b2bec3; }
.f-widget a:hover { color: var(--white); }
.copyright {
    text-align: center;
    border-top: 1px solid #636e72;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #636e72;
}

@media (max-width: 768px) {
    .site-footer { padding: 50px 0 20px; }
    .footer-widgets { grid-template-columns: 1fr; gap: 30px; }
}

/* ==========================================================================
   Pagination & Forms (Base)
   ========================================================================== */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--text-body);
    font-weight: bold;
    transition: all 0.3s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination .prev, .pagination .next { width: auto; padding: 0 15px; }

/* Contact Form */
.contact-form-wrapper { max-width: 700px; margin: 0 auto; }
.form-row { margin-bottom: 25px; }
.form-row label { display: block; margin-bottom: 8px; font-weight: bold; color: #333; }
.form-row .required {
    background: #E74C3C;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #f9f9f9;
    transition: 0.3s;
}
.form-control:focus {
    background: #fff;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 141, 98, 0.1);
}
.form-submit { text-align: center; margin-top: 40px; }
.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* アーカイブ用スタイル */
.news-archive__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.news-archive__link { display: flex; gap: 12px; padding: 14px 14px; border: 1px solid #eee; border-radius: 10px; text-decoration: none; align-items: center; }
.news-archive__text { font-weight: 600; flex: 1; }

@media (max-width: 768px) {
    .news-archive__link { flex-direction: column; align-items: flex-start; gap: 5px; }
    .news-archive__date { font-size: 0.8rem; opacity: 0.8; }
}

/* =========================================
   アーカイブページ刷新用スタイル
   ========================================= */

/* ヘッダー周り */
.page-header {
    background: #f4f6f8;
    padding: 60px 0;
    text-align: center;
    /*margin-bottom: 50px;*/
}
.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.page-subtitle {
    color: #666;
    margin: 0;
}
.archive-search-area {
    margin-bottom: 60px;
}

/* グリッドレイアウト */
.prop-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* カードデザイン */
.prop-card-modern {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.prop-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.prop-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 画像エリア */
.prop-card-image {
    position: relative;
    height: 200px;
    background: #eee;
}
.prop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prop-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
}
.label-rent { background-color: var(--primary, #333); } /* 賃貸色 */
.label-sale { background-color: var(--secondary, #e74c3c); } /* 売買色 */

/* カード本文 */
.prop-card-body {
    padding: 20px;
}
.prop-card-title {
    font-size: 1.1rem;
    margin: 0 0 10px;
    line-height: 1.5;
    font-weight: bold;
    color: #333;
}
.prop-card-access {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* スペック表 (テーブル風レイアウト) */
.prop-specs {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列配置 */
    gap: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}
.prop-specs dl {
    margin: 0;
}
.prop-specs dt {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 2px;
}
.prop-specs dd {
    margin: 0;
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
}
.spec-price {
    color: #e74c3c !important; /* 価格を目立たせる */
    font-size: 1.1rem !important;
}
.spec-price span {
    font-size: 0.8rem;
    color: #333;
    margin-left: 2px;
}

/* ページネーション */
.pagination-modern {
    margin-top: 60px;
    text-align: center;
}
.pagination-modern .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}
.pagination-modern .current,
.pagination-modern .page-numbers:hover {
    background: var(--primary, #333);
    color: #fff;
    border-color: var(--primary, #333);
}

/* 0件ヒット時 */
.no-results-box {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}
.no-results-msg {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.btn-reset {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background: #999;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn-reset:hover {
    background: #666;
}

/* =========================================
   レスポンシブ調整 (style.cssの末尾に追加)
   ========================================= */

@media screen and (max-width: 768px) {
    
    /* 1. コンテナの左右に余白を設ける */
    /* ※既存の .container に余白がない場合 */
    .container {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    /* 2. グリッドの調整 */
    /* 余白を作った分、カードの最小幅(320px)を確保できなくなるのを防ぐため、
       スマホ時は強制的に1カラム(1fr)にして幅いっぱいに広げる */
    .prop-grid-modern {
        grid-template-columns: 1fr; 
        gap: 24px; /* カード間の隙間も少し狭める */
    }

    /* 3. 検索ボックスの余白調整 */
    .property-search-box {
        padding: 20px !important; /* 内側の余白を少し詰める */
    }
    
    /* フォーム内のグリッドを1列にする */
    .property-search-box > div {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   検索モーダル & メニューボタン用スタイル
   ========================================= */

/* 1. ヘッダー内の検索ボタン */
.btn-search-trigger {
    background: none;
    border: 2px solid var(--primary, #333); /* テーマ色に合わせる */
    color: var(--primary, #333);
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}
.btn-search-trigger:hover {
    background: var(--primary, #333);
    color: #fff;
}
.btn-search-trigger .dashicons {
    font-size: 1.2rem;
    width: auto;
    height: auto;
}

/* 2. モーダル全体（初期状態は非表示） */
.search-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 開いた時の状態 */
.search-modal-wrapper.is-open {
    visibility: visible;
    opacity: 1;
}

/* 3. 背景の黒半透明レイヤー */
.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/* 4. コンテンツボックス（白背景） */
.search-modal-container {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 800px; /* PCでの最大幅 */
    max-height: 90vh;
    overflow-y: auto; /* 縦長になってもスクロール可能に */
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 40px 20px 20px;
    z-index: 10000;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.search-modal-wrapper.is-open .search-modal-container {
    transform: translateY(0);
}

/* 5. 閉じるボタン (×) */
.search-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    transition: 0.3s;
}
.search-modal-close:hover {
    color: #d00;
}

/* 6. モーダル内のフォーム調整 */
/* 既存のフォームの余白や影をリセットして馴染ませる */
.search-modal-content .property-search-box {
    box-shadow: none !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

/* スマホ用調整 */
@media screen and (max-width: 768px) {
    .btn-search-trigger {
        border: none; /* スマホメニュー内では枠線を消すなど */
        padding: 10px 0;
        width: 100%;
        justify-content: flex-start;
    }
    li.nav-item-search {
        padding: 20px;
        box-sizing: border-box;
    }
}

/* =========================================
   ヘッダー被り防止 & 余白調整
   ========================================= */

.page-header {
    background: #f4f6f8;
    padding: 60px 0 40px; /* 下のパディングを少し減らす */
    text-align: center;
    
    /* ▼▼▼ ここを修正（重要） ▼▼▼ */
    margin-bottom: 0; /* 下の余白をゼロにする（下のセクションの余白に任せる） */
    
    /* ヘッダー被り防止用 */
    margin-top: 100px;
}

/* スマホ用の調整 */
@media screen and (max-width: 768px) {
    .page-header {
        margin-top: 80px;
        padding: 40px 0 30px;
    }
}

/* ▼▼▼ 追加: 検索エリアの上の余白を微調整 ▼▼▼ */
/* ページヘッダーの直後に検索エリアが来る場合の余白をここで制御します */
.archive-search-area {
    margin-top: 0px; /* ちょうど良い隙間に調整（30px〜50pxで変更可） */
    margin-bottom: 60px;
}

/* =========================================
   価格スライダーのデザイン調整
   ========================================= */

/* つまみ（ハンドル）のデザイン */
.noUi-handle {
    background: #fff;
    border: 2px solid var(--primary, #333);
    border-radius: 50%;
    box-shadow: none;
    cursor: grab;
}
.noUi-handle:before, .noUi-handle:after {
    display: none; /* デフォルトの縞模様を消す */
}

/* つながっている部分（バー）の色 */
.noUi-connect {
    background: var(--primary, #333);
}

/* スライダー全体の高さや余白 */
.noUi-horizontal {
    height: 10px;
}
.noUi-horizontal .noUi-handle {
    width: 24px;
    height: 24px;
    right: -12px; /* 中心合わせ */
    top: -8px;
}