@charset "Shift_JIS";

/* --- 全体デザイン --- */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: #333; /* 文字色を少し濃くしてクッキリ */
    background-color: #fdfcfb;
    text-align: left;
}

#wrapper {
    overflow: hidden; /* 綴り修正 */
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* --- 上部システムバー（はみ出し防止） --- */
.sys-info-container, #header03, #breadcrumb {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
    background: #f0f7f7;
    padding: 10px 15px;
    font-size: 12px;
    color: #6b7a7a;
    border-bottom: 1px solid #e0eaea;
    line-height: 1.6;
}
#breadcrumb a { color: #8eb7b8; text-decoration: none; }

/* --- ヘッダー --- */
header { padding: 15px; border-bottom: 2px solid #f0f4f4; background: #fff; display: flex; justify-content: space-between; align-items: center; }
.tel-val { font-size: 24px; font-weight: bold; color: #8eb7b8; text-decoration: none; }

/* --- 物件見出し・価格 --- */
.info-header { background: #f9fbfb; padding: 20px; margin: 15px; border-radius: 12px; text-align: center; }
.price-val { font-size: 34px; color: #e8a0a0; font-weight: bold; }

/* --- 【画像ギャラリー】メイン大きく＆横スライド --- */
.gallery-container { padding: 10px 0; text-align: center; }
.main-photo-stage { 
    width: 100%; height: auto; aspect-ratio: 4 / 3; 
    display: flex; align-items: center; justify-content: center;
    background: #f9f9f9; overflow: hidden; margin-bottom: 10px;
}
.main-photo-stage img { width: 100%; height: 100%; object-fit: contain; }

.thumb-tray { 
    display: flex !important; flex-wrap: nowrap !important; 
    overflow-x: auto !important; 
    -webkit-overflow-scrolling: touch;
    gap: 8px; padding: 5px 10px 15px;
}
.thumb-tray::-webkit-scrollbar { height: 4px; }
.thumb-tray::-webkit-scrollbar-thumb { background: #e0d6d0; border-radius: 10px; }

.thumb-cell { flex: 0 0 100px; height: 75px; cursor: pointer; border: 2px solid transparent; border-radius: 6px; overflow: hidden; }
.thumb-cell img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.thumb-cell.active { border-color: #b5838d; }
.thumb-cell.active img { opacity: 1; }

#system-raw-images { display: none !important; }

/* --- 担当者コメント --- */
.staff-comment { margin: 20px 15px; padding: 20px; background: #f7f9f9; border-radius: 12px; border-left: 5px solid #d1e8e4; line-height: 1.8; }

/* --- お問合せボタン（システム連携：メールボタン風デザイン） --- */
.together_inquiry { text-align: center; margin: 25px 15px !important; }
.together_inquiry .contact a,
.together_inquiry a { 
    display: flex !important; align-items: center !important; justify-content: center !important; 
    padding: 18px !important; border-radius: 50px !important; text-decoration: none !important; 
    font-weight: bold !important; font-size: 20px !important; width: 100% !important; box-sizing: border-box !important;
    background: #d4edda !important; color: #155724 !important; border: 1px solid #c3e6cb !important;
    transition: 0.3s !important; box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}
.together_inquiry a:hover { background: #c3e6cb !important; opacity: 0.9; }
.together_inquiry img { display: none !important; }

/* --- サブボタン（LINE・電話） --- */
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 15px; }
.btn-common { display: flex; align-items: center; justify-content: center; padding: 16px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 15px; background: #f8f9fa; color: #383d41; border: 1px solid #e2e3e5; }

/* --- スペック表 --- */
.spec-table { width: calc(100% - 30px); margin: 20px 15px; border-collapse: collapse; border: 1px solid #eee; background: #fff; table-layout: fixed; }
.spec-table th { background: #fcfaf8; width: 22%; padding: 12px 10px; border: 1px solid #eee; text-align: left; color: #8eb7b8; font-size: 13px; font-weight: bold; }
.spec-table td { padding: 12px 10px; border: 1px solid #eee; font-size: 14px; color: #555; line-height: 1.5; word-wrap: break-word; }

/* --- 【スマホレスポンシブ：一覧ページのような力強さ】 --- */
@media screen and (max-width: 768px) {
    /* 1. ベース文字：太めでクッキリ */
    body {
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #222 !important;
    }

    header { flex-direction: column; gap: 10px; }
    
    /* 2. 画像：スマホ幅いっぱい */
    .main-photo-stage { aspect-ratio: 4 / 3; }
    .thumb-cell { flex: 0 0 80px; height: 60px; }

    /* 3. コメント：一覧ページのキャッチのように太く目立たせる */
    .staff-comment, .staff-comment font, .staff-comment span, .detail_comment {
        font-size: 16px !important;
        font-weight: bold !important;
        line-height: 1.7 !important;
        color: #333 !important;
    }

    /* 4. お問い合わせ：最大級に大きく */
    .together_inquiry a {
        font-size: 16px !important;
        padding: 20px 0 !important;
    }

    .btn-grid { grid-template-columns: 1fr; }

    /* 5. スペック表：一覧ページに負けないサイズと太さ */
    .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .spec-table th {
        border-bottom: none;
        background: #f0f7f7 !important;
        font-size: 16px !important;
        font-weight: bold !important;
        padding: 10px !important;
    }
    .spec-table td {
        font-size: 19px !important;
        font-weight: bold !important;
        padding: 12px 10px !important;
        color: #000 !important;
    }

    .price-val { font-size: 34px !important; }
}