@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ======================================
   物件カードレイアウト
====================================== */

.listing-wrap{
    max-width:1100px;
    margin:auto;
}

.listing-card{
    display:flex;
    align-items:center;
    gap:40px;
    padding:40px 0;
    border-bottom:1px solid #4d73ff;
}

.listing-card:nth-child(even){
    flex-direction:row-reverse;
}

.listing-image{
    width:38%;
}

.listing-image img{
    width:100%;
    height:auto;
    display:block;
}

.listing-content{
    width:62%;
}

.listing-title{
    font-size:28px;
    font-weight:700;
    margin-bottom:25px;
    padding-bottom:10px;
    border-bottom:1px solid #ddd;
    line-height:1.4;
}

/* ======================================
   スマホ調整
====================================== */

@media screen and (max-width:767px){

    .listing-card{
        flex-direction:column;
        gap:20px;
    }

    .listing-image,
    .listing-content{
        width:100%;
    }

    .listing-title{
        font-size:22px;
        margin-bottom:20px;
    }

}

/* ======================================
   情報ボックス
====================================== */

.listing-info{
    display:flex;
    border:1px solid #ddd;
}

.listing-box{
    flex:1;
    padding:20px;
    border-right:1px solid #ddd;
}

.listing-box:last-child{
    border-right:none;
}

.label{
    display:block;
    font-weight:700;
    margin-bottom:10px;
}

/* スマホ */

@media screen and (max-width:767px){

    .listing-info{
        flex-direction:column;
    }

    .listing-box{
        border-right:none;
        border-bottom:1px solid #ddd;
    }

}

/* ======================================
    物件カード型（3列）レイアウト
====================================== */

/* カードを包む枠（3列グリッド） */
.listing-card-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none !important;
    padding: 0 !important;
    margin: 2em auto;
    max-width: 1200px; /* サイト幅に合わせて調整してください */
}

/* 個別のカード本体 */
.listing-card-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.listing-card-item:hover {
    transform: translateY(-5px);
}

/* リンクの設定 */
.listing-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

/* カード画像 */
.listing-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* 画像の比率を保ったまま枠に収める */
    display: block;
}

/* カード内のテキストエリア */
.listing-card-body {
    padding: 15px;
}

/* 物件タイトル */
.listing-card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
    line-height: 1.4;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* 物件詳細データ（住所・アクセス等） */
.listing-card-details dl {
    display: flex;
    margin-bottom: 6px;
    font-size: 13px;
}

.listing-card-details dt {
    width: 5.5em;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
}

.listing-card-details dd {
    margin: 0;
    color: #333;
}

/* ======================================
    レスポンシブ（スマホ・タブレット）
====================================== */

/* タブレット：2列 */
@media screen and (max-width: 959px) {
    .listing-card-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ：1列 */
@media screen and (max-width: 599px) {
    .listing-card-wrap {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 詳細ページの物件情報テーブル */
.p-listingDetailInfo__table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #333;
    margin-top: 10px;
}

.p-listingDetailInfo__table th,
.p-listingDetailInfo__table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.p-listingDetailInfo__table th {
    width: 30%;
    background-color: #f9f9f9;
    font-weight: bold;
}

/* 詳細ページの画像ギャラリー */
.property-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列に並べる */
    gap: 15px;
    margin-top: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 比率を保って切り抜き */
    border-radius: 4px;
    border: 1px solid #eee;
}

/* スマホでは2列にする */
@media screen and (max-width: 599px) {
    .property-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ======================================
   画像モーダル 完成版
====================================== */

.image-modal{
    display:none;
    position:fixed;
    z-index:99999;
    inset:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.92);
    justify-content:center;
    align-items:center;
    opacity:0;
    transition:opacity .3s ease;
    overflow:hidden;
}

.image-modal.active{
    display:flex;
    opacity:1;
}

.image-modal img{
    max-width:95%;
    max-height:90%;
    object-fit:contain;
    border-radius:8px;
    transform:scale(.96);
    transition:transform .3s ease;
    user-select:none;
    -webkit-user-drag:none;
}

.image-modal.active img{
    transform:scale(1);
}

/* 閉じるボタン */

.image-modal-close{
    position:absolute;
    top:15px;
    right:20px;
    color:#fff;
    font-size:42px;
    cursor:pointer;
    z-index:100001;
    line-height:1;
}

/* 左右矢印 */

.image-modal-prev,
.image-modal-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:#fff;
    font-size:50px;
    cursor:pointer;
    z-index:100001;
    padding:10px;
    user-select:none;
}

.image-modal-prev{
    left:15px;
}

.image-modal-next{
    right:15px;
}

/* iPhone長押し対策 */

.prevent-save{
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    user-select:none;
    -webkit-user-drag:none;
    pointer-events:auto;
}

/* モーダル表示中スクロール停止 */

body.modal-open{
    overflow:hidden;
}

/* スマホ調整 */

@media screen and (max-width:767px){

    .image-modal-prev,
    .image-modal-next{
        font-size:38px;
    }

    .image-modal-close{
        font-size:36px;
    }

}