﻿/* ===========================
   全体
=========================== */
* {
    box-sizing: border-box;
}

.search_joken_wrap {
    max-width: 800px;
    margin: 0 auto;
}

.new_search_area {
    padding: 0 10px;
}

/* タイトル */
.search-header {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

/* ===========================
   グループ（開閉対応）
=========================== */
.search-group {
    margin-bottom: 20px;
    border-radius: 12px;
}

/* 見出し */
.group-title {
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    border-left: 4px solid #0f9d58;
    color: #333;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-right {
    display: flex;
    align-items: center;
    gap: 6px; /* ←これ大事（余白） */
    flex-shrink: 0; /* ← これ追加 */
}
}

.group-count {
    font-size: 12px;
    color: #666;
}

.arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

/* 本体（閉じる） */
.search-body {
    display: none;
}

/* 開いてる時 */
.search-group.open .search-body {
    display: block;
}

/* 閉じてる時（横向き） */
.search-group:not(.open) .arrow {
    transform: rotate(-90deg);
}


/* ===========================
   グリッド（9列固定）
=========================== */
.search-row {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    padding: 0 5px;
}

/* アイテム */
.search-item {
    aspect-ratio: 1 / 1;
    min-width: 0;
}

/* ===========================
   ボタン
=========================== */
.sel_image {
    width: 100%;
    height: 100%;
    display: block;
    padding: 5px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e0f2ff; /* 薄い青（OFF） */
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    /* OFF状態 */
    filter: grayscale(20%) brightness(0.95);
}

/* ホバー */
.search-item:hover .sel_image {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* 押した瞬間 */
.search-item:active .sel_image {
    transform: scale(0.96);
}

/* ON状態 */
.sel_image.active {
    background: #32ADFF;
    border: 1px solid #32ADFF;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    filter: none;
    transform: translateY(-3px);
}

    /* ON時の画像白化 */
    .sel_image.active img {
        filter: brightness(0) invert(1);
    }

/* ===========================
   ドロップダウン
=========================== */



.search-dropdown {
    margin: 15px 0;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
    .search-dropdown ul {
        list-style: none;
    }

    .search-dropdown li {
        margin-bottom:5px;
    }

.my-dropdown {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ===========================
   クリアボタン
=========================== */
.search-clear {
    width:380px;
    text-align: center;
    margin: 10px auto 0 auto; 
}

.search-clear img {
    width:100%;
    height:auto;
}


/*---------- 検索結果 ----------*/
.search_result {
    width: 100%;
    margin: 30px 0 0 0;
    text-decoration: none;
}

.result_title {
    padding: 0 0 5px 0;
    margin-bottom: 5px;
    text-align: left;
    line-height: 20px;
    font-size: 138.5%;
    color: #e9528e;
}

/* --- ページャー用 --- */
.result_pager_base {
    width: 100%;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result_pager {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.my-link {
    margin: 0 5px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px; /* ← これ重要（flex親対策） */
    border-radius: 50%;
    padding: 0 !important;
    box-sizing: border-box;
    font-size: 115%;
}

.my-link_org {
    margin: 0 5px;
}

/* --- 検索結果表示 --- */

.compact {
    width: 90%;         /* indexの新着用 w90% */
    margin: 0 auto;     /* 中央寄せ */
    font-size: 90%;
}

.result_box {
    width: 95%;
    max-width: 520px;
    margin: 14px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.item {
    margin: 10px;
    display: inline-block;
    text-align: center;
}

.w80, .w75, .w50, .w45, .w25, .w20, .w20s, .w15, .w15down, .w10 {
    display: flex;
    align-items: center;
}

.w100title {
    width: 100%;
    min-height: 32px;
    padding: 8px 0px;
    /*
    display: block;
    text-align: center;
    */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 128%;
    font-weight: bold;
    color: white;
    letter-spacing: 0.05em;
    overflow: hidden;
}

/*
    .w100title span {
        display: inline-block;
        white-space: nowrap;
    }
*/

.w100r {
    width: calc(100% - 20px);
    padding-right: 20px;
    text-align: right;
}

.w80f {
    width: calc(100% - 5px);
    padding-left: 5px;
    display: flex;
    flex-direction: column;
}

.w50, .w45 {
    justify-content: flex-end;
    font-size: 175%;
    color: red;
}

.w20s {
    width: 20%;
    justify-content: center;
}

    .w20s img {
        width: 95%;
        border-radius: 5px;
    }

.w15 img {
    border-radius: 5px;
}

.w15down {
    width: 15%;
}
    .w15down img {
        width: auto;
        height: 30px;
    }

.w5 {
    padding-top: 15px;
    text-align: center;
}

.w5c {
    padding-top: 8px;
    text-align: center;
}

/*
.photo {
    width: calc(100% - 6px);
    padding: 3px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 20;
}
*/
.photo {
    width: 100%;
    padding: 3px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 20;
    aspect-ratio: 4 / 3;
}


    .photo img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 5px;
        transition: transform .35s ease;
    }

.photo:hover img {
/*    transform: scale(1.05); */
}

.photo_bcode {
    min-width: 60px;
    padding: 1px 3px;
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #000;
    font-size: 12px;
}

.photo_kanri {
    width: 120px;
    position: absolute;
    top: 36px;
    right: 5px;
    text-align: center;
    border-radius: 5px;
    overflow: hidden;
}

    .photo_kanri img {
        width: 100%;
        height: auto;
        display: block;
    }

.bukken_name {
    font-weight: 600;
    font-size: 15px;
    margin: 6px 0 4px;
}

.result_box .w100 {
    line-height: 1.5;
    padding: 1px 0;
}

    .result_box .w100:not(.bukken_name) {
        color: #555;
        font-size: 13px;
        min-height:20px;
        line-height: 20px;
    }







/* コントロール用のcss */

.sel_image {
    transition: filter 0.3s ease;
    width: 80px;
    height: 80px;
    margin: 2px 5px 2px 5px;
    border-radius: 8px;
}

.my-imageicon {
    width: 100%;
    height: auto;
}

.my-imageicon2 {
    width: 96%;
    height: auto;
}

.my-imageicon4 {
    width: 60px;
    height: auto;
}

.my-checkbox {
    width: 20px;
    height: 20px;
}

.my-dropdown {
    font-size: 20px;
    max-width:50%;
}

.my-dropdown2 {
    font-size: 20px;
    width: 25%;
    text-align:center;
}

.my-romno {
    margin-left:5px;
    font-size:16px;
}





html.fonts-loaded .my_kakaku {
    font-family: 'M PLUS 1', sans-serif;
}


/* レスポンシブ */

/* ==========================
   売買・賃貸 新着一覧
========================== */

.result_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* PC時 3列 */
@media (min-width: 1000px) {

    .result_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
        align-items: start;
    }

    .result_box {
        width: 100%;
        max-width: none;
        margin: 0;
    }


    .result_grid.map_result {
        grid-template-columns: minmax(0, 400px);
        justify-content: center;
    }




}




/* あと〇部屋表示 */


.room_hidden {
    display: none;
}

.room_more {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: #32ADFF;
    font-size: 13px;
    border-top: 1px solid #eee;
    background: #fafafa;
    transition: 0.2s;
}

    .room_more:hover {
        background: #f3f9ff;
    }

    .room_more.open {
        background: #eef7ff;
        font-weight: bold;
    }


.result1 w100 {
    min-height:20px;
}
