/* =========================================
   物件詳細ページ (view_property) 専用CSS
========================================= */

p { margin-top: 0.5em; margin-bottom: 0em; color:#3A4856; }
.listIcon { color:#3BC08E !important; }
#slidesPhotos:hover { cursor: pointer !important; }
#label { background-color:#0097A7; color:white; padding-left:20px; }

.ui.definition.table td:first-child {
    background-color: #FAFCFC !important;
    color: #33658A !important;
}

.ui.top.attached.header {
    background-color: #F6F9FC;
    box-shadow: 0 1px 2px 0 rgba(34,36,38,.15) !important;
    border: 1px solid #F4F9F9 !important;
}

.ui.segment.attached {
    border: none !important;
    box-shadow: 0 1px 2px 0 rgba(34,36,38,.15) !important;
}

/* =========================================
   ▼ スマホ画面用の設定 (760px以下) ▼
========================================= */
@media screen and (max-width: 760px) {

        
    
   /* ▼ スマホの時だけ、カラムの「壁」を透明にして順番を自在に操る魔法 ▼ */
    #carouselGrid {
        display: flex !important;
        flex-direction: column !important;
    }
    #detailColumn, .nine.wide.column {
        display: contents !important;
    }
    
    /* ▼ スマホ表示時の「上からの順番」をここで指定 ▼ */
    #details-top { order: 1; width: 100%; }
    
    #gallery-wrapper { 
        order: 2; /* 写真が2番目！ */
        width: 100%; 
        margin-top: 20px; 
        margin-bottom: 20px; 
    }
    
    #map-wrapper { order: 3; width: 100%; } /* 地図が3番目 */

    #details-bottom { order: 4; width: 100%; } /* 表・フォームが4番目 */

    /* ★追加：他の部屋リストを一番下（5番目）に指定！ */
    #other-units-wrapper { order: 5; width: 100%; margin-top: 30px; }
    
    /* ...既存のスマホ用CSS... */

    td {
        text-align: left !important;
        font-size: 1em;
        padding-top: 0px !important;
        padding-bottom: 0px !important;
        border: none !important;
    }
    #jssor_1 { margin-bottom: -30px; }
    .contact-form { display: none; }
    .prop-details { margin-top: 7%; width: 90%; margin-left: 5%; }
    #propTitle { font-size: 10px; margin-top: -10px !important; }
    #locTitle { font-size: 18px; }
    #detailColumn { padding: 0px !important; }
    .placesGrid { width: 95% !important; }
    
    .ui.grid>.stackable.stackable.row>.column, 
    .ui.stackable.grid>.column.grid>.column, 
    .ui.stackable.grid>.column.row>.column, 
    .ui.stackable.grid>.column:not(.row), 
    .ui.stackable.grid>.row>.column, 
    .ui.stackable.grid>.row>.wide.column, 
    .ui.stackable.grid>.wide.column {
        padding: 5px !important;
        padding-left: 15px !important;
    }       
    .infoItem { padding: 5px !important; padding-left: 0px !important; }
    .typeLabel, .categoryLabel { font-size: 1em !important; }       
    #propName { font-size: 2.1em !important; }
    .unitDetailsCel { display: block; }
    .unitDetailsPC { display: none; }
    .unitPic { width: 45% !important; }
    .unitInfo { width: 55% !important; padding: 0px !important; padding-left: 5px !important; }     
    .contbtn { padding: 5px !important; font-size: 15px !important; padding-left: 10px !important; padding-right: 10px !important; }
    .bullet { font-size: .8em !important; margin-right: 5px; }
}

/* =========================================
   ▼ PC・タブレット画面用の設定 (760px以上) ▼
========================================= */
@media screen and (min-width: 760px) {
    .contbtn { padding-top: 5px !important; padding-bottom: 5px !important; font-size: 15px !important; }
    .infoItem { padding: 5px !important; }
    .prop-details { margin-top: 3%; }
    #propTitle { font-size: 12px; margin-top: 10px; margin-bottom: 20px; }
    #locTitle { font-size: 22px; }
    #appmain { width: 87%; }
    .unstackable.definition.table { width: 90% !important; }
    .placesGrid { width: 60% !important; }
    .unitDetailsCel { display: none; }
    .unitDetailsPC { display: block; }  
    .unitPic { width: 30% !important; }
    .unitInfo { width: 70% !important; }
    .bullet { font-size: 1.5em !important; }
}

@media (max-width: 1150px) and (min-width: 765px) {
    #brkl { display: inline !important; }
}
@media (max-width: 333px) {
    #brkl { display: inline !important; }
}

/* =========================================
   共通の細かいパーツ設定
========================================= */
.placeIcon { color: #393939; }
.ui.definition.compact.table td:first-child { background-color: #FBFCFC !important; color: #494848 !important; }
.ui.definition.table td:nth-child(2), 
.ui.definition.table tfoot:not(.full-width) th:nth-child(2), 
.ui.definition.table thead:not(.full-width) th:nth-child(2) { border-left: none !important; }
.ui.definition.table tr td:first-child { font-weight: normal !important; }  
.infoHeader { color: #33658A !important; text-align: center; }
.infoType { color: #176985 !important; text-align: center !important; margin-bottom: -5px !important; font-size: 17px !important; }
.infoIcon { font-size: 19px !important; margin-top: -8px !important; margin-right: 2px !important; color: rgba(24, 109, 139, .8) !important; }
.bullet { color: #3BC08E; }
.otherUnitCol { padding: 0px !important; }
.unitLabel { font-size: .9em; color: #33658A; font-weight: normal; }
td { padding-top: 0px !important; padding-bottom: 0px !important; color: #3A4856 !important; width: 20% !important; font-size: 1.1em; }
.unitColCel { font-size: .8em !important; width: 11% !important; background-color: transparent !important; font-weight: normal !important; }
.descLabel { font-weight: bold; }

#upBtn {
    display: none; 
    position: fixed;
    bottom: 20px;
    right: 25px;
    z-index: 99;
    box-shadow: 0 2px 2px rgba(34,36,38,.4);
}

.anchor2 { position: relative; display: block; top: -63px; visibility: hidden; }

/* モーダルを最前面に表示するための修正 */
.modal-backdrop { z-index: 1040 !important; }
.modal { z-index: 1050 !important; }
/* 閉じるボタンが見えなくならないように */
.btn-close { opacity: 1 !important; }