/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jul 01 2026 | 02:45:49 */
.m-contents > .inner { max-width: 1100px !important; }
#my-simulator-wrap .search-container { display: block; width: 100%; box-sizing: border-box; }
#my-simulator-wrap .floor-notice { color: #64748b; font-size: 1.2em; font-weight: bold; background: #f8fafc; display: inline-block; padding: 12px 25px; border-radius: 4px; border: 1px dashed #cbd5e1; margin: 0; }

/* 追加料金の注意書き */
#my-simulator-wrap .outofoption { color: #d18f8f; font-size: 0.95rem; text-align: center; margin-bottom: 20px; font-weight: bold; }

#my-simulator-wrap .flex-1 { flex: 1; }
#my-simulator-wrap .border-bottom { border-bottom: 3px solid #f1f5f9; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes mobileBarSlideUp {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ステップウィザード周り */
#my-simulator-wrap .wizard-step { display: none; text-align: center; animation: fadeIn 0.4s ease; padding-bottom: 40px; border-bottom: 1px solid #f1f5f9; margin-bottom: 40px; }
#my-simulator-wrap .wizard-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
#my-simulator-wrap .wizard-step.active { display: block; }
#my-simulator-wrap .step-count { color: #978779; font-weight: 600; font-size: 0.85rem; margin-bottom: 10px; letter-spacing: 2px; }
#my-simulator-wrap .step-question { font-size: 1.6rem; color: #0f172a; margin-bottom: 35px; font-weight: 600; }

#my-simulator-wrap .step-grid { display: grid; gap: 20px; max-width: 950px; margin: 0 auto; }
#my-simulator-wrap .step-grid.images { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
#my-simulator-wrap .step-grid.images.step-2-grid { display: flex !important; flex-wrap: nowrap; justify-content: center; gap: 20px; }
#my-simulator-wrap .step-grid.images.step-2-grid .step-option-card { flex: 0 1 200px; }
#my-simulator-wrap .step-grid.buttons { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

#my-simulator-wrap .step-option-card { background: #fff; border: 3px solid #e2e8f0; border-radius: 4px; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); overflow: hidden; -webkit-tap-highlight-color: transparent; }
#my-simulator-wrap .step-option-card:hover { border-color: #c9bfb5; transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
#my-simulator-wrap .step-option-card.selected { border: 3px solid #906969; background-color: #f7f6f5; transform: translateY(-4px); box-shadow: 0 10px 25px rgba(151,135,121,0.15); }
#my-simulator-wrap .step-option-card.selected span { color: #978779; }

#my-simulator-wrap .img-placeholder { background: #f8fafc; height: 130px; display: flex; align-items: center; justify-content: center; font-weight: 500; color: #94a3b8; pointer-events: none; letter-spacing: 1px; }
#my-simulator-wrap .step-option-card img { width: 100%; height: 130px; object-fit: cover; display: block; pointer-events: none; }
#my-simulator-wrap .step-option-card span { display: block; padding: 15px; font-weight: 600; color: #334155; pointer-events: none; transition: color 0.2s; font-size: 0.8rem; }

#my-simulator-wrap .step-option-btn { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; padding: 25px 20px; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); display: flex; align-items: center; justify-content: center; min-height: 90px; -webkit-tap-highlight-color: transparent; color: #334155; font-size: 1.1rem; }
#my-simulator-wrap .step-option-btn:hover { border-color: #c9bfb5; transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
#my-simulator-wrap .step-option-btn.selected { background: #978779; border-color: #978779; color: #fff; transform: translateY(-4px); box-shadow: 0 10px 25px rgba(151,135,121,0.2); }

#my-simulator-wrap #btn-re-search:hover { background: #f1f5f9; color: #0f172a; border-color: #94a3b8; }
#my-simulator-wrap #global-options-area h3 { color: #978779 !important; }

/* 物件リスト・カード */
#my-simulator-wrap #property-list { display: grid; gap: 30px; padding: 50px 0; width: 100%; min-width: 0; }
@media(min-width: 769px) { #my-simulator-wrap #property-list { grid-template-columns: repeat(2, 1fr); } }

#my-simulator-wrap .property-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); cursor: default !important; }
#my-simulator-wrap .property-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); border-color: #c9bfb5; }
#my-simulator-wrap .property-card.selected-prop { border-color: #906969 !important; background-color: #f7f6f5 !important; }

#my-simulator-wrap .prop-select-btn { background: #68a087; color: #fff; padding: 8px 16px; border-radius: 4px; font-weight: bold; font-size: 0.95rem; display: inline-block; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; }
#my-simulator-wrap .prop-select-btn:hover { background: #549d7c; box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2); transform: translateY(-2px); }
#my-simulator-wrap .property-card.selected-prop .prop-select-btn { background: #906969; box-shadow: none; transform: translateY(0); }
#my-simulator-wrap .property-card.selected-prop .prop-select-btn:hover { background: #855b5b; }
#my-simulator-wrap .property-card.selected-prop .prop-select-btn::after { content: '中 ✔'; }

/* サイドバー・トータルバー・スペック表 */
#my-simulator-wrap .total-amount { font-size: 1.6rem; font-weight: bold; color: #d32f2f; }
#my-simulator-wrap #total-val-pc { font-size: 1.2em !important; }
#my-simulator-wrap #total-val-sp { font-size: 1.8rem !important; }

#my-simulator-wrap #pc-total-sidebar { width: 300px; position: fixed; top: 50%; transform: translateY(-50%); right: 60px; background: #fff; padding: 15px; border: 1px solid #e2e8f0; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); display: none; z-index: 9999; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease; }
#my-simulator-wrap #pc-total-sidebar.minimized { transform: translate(120%, -50%) !important; opacity: 0; pointer-events: none; }
#my-simulator-wrap #pc-sidebar-tab:hover { background: #857568; }

#my-simulator-wrap #mobile-total-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); box-shadow: 0 -5px 25px rgba(0,0,0,0.12); padding: 15px 20px 25px; z-index: 9999; display: none; box-sizing: border-box; border-top: 1px solid #e2e8f0; }
#my-simulator-wrap #mobile-total-bar[style*="display: block"] { display: block !important; animation: mobileBarSlideUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

#my-simulator-wrap .custom-sidebar { width: 360px; position: fixed; top: 50%; transform: translateY(-50%); right: 40px; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: none; z-index: 9999; max-height: 90vh; overflow-y: auto; scrollbar-width: none; }
#my-simulator-wrap .custom-sidebar::-webkit-scrollbar { display: none; }

#my-simulator-wrap .sidebar-header { background: #bac2c6; padding: 15px 20px 20px; position: relative; }
#my-simulator-wrap .sidebar-close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 1.2rem; cursor: pointer; transition: opacity 0.2s; }
#my-simulator-wrap .sidebar-close-btn:hover { opacity: 0.7; }
#my-simulator-wrap .sidebar-top-text { text-align: center; color: #fff; font-size: 0.7rem; letter-spacing: 2px; margin-bottom: 15px; }
#my-simulator-wrap .sidebar-title-row { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 10px; }
#my-simulator-wrap .sidebar-title-row h3 { margin: 0; font-size: 1.5em; font-weight: 300; color: #334155; letter-spacing: 1px; }
#my-simulator-wrap .sidebar-title-row span { font-size: 1rem; color: #334155; letter-spacing: 2px; }
#my-simulator-wrap .sidebar-price-row { display: flex; justify-content: space-between; align-items: flex-end; }
#my-simulator-wrap #sb-prop-floor { border: 1px solid #334155; padding: 3px 10px; font-size: 0.75rem; color: #334155; font-weight: bold; }
#my-simulator-wrap .sidebar-price { color: #000000; font-weight: bold; line-height: 1; }
#my-simulator-wrap .sidebar-price .price-unit { font-size: 1.2rem; margin-left: 4px; }
#my-simulator-wrap .sidebar-img-wrap { margin-top: 15px; width: 100%; aspect-ratio: 16/9; background: #fff; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
#my-simulator-wrap .sidebar-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
#my-simulator-wrap .sidebar-body { background: #fff; }
#my-simulator-wrap .sidebar-footer { padding: 15px 20px; background: #fff; border-top: 1px dashed #cbd5e1; }
#my-simulator-wrap .sidebar-submit-btn { width: 100%; background: #0284c7; color: #fff; border: none; padding: 12px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 1.05rem; transition: background 0.2s; }
#my-simulator-wrap .sidebar-submit-btn:hover { background: #0369a1; }

#my-simulator-wrap .spec-wrapper { display: flex; }
#my-simulator-wrap .spec-col { flex: 1; display: flex; flex-direction: column; }
#my-simulator-wrap .spec-row { display: flex; }
#my-simulator-wrap .spec-main-label { width: 30px; background: #9ca3af; color: #fff; writing-mode: vertical-rl; text-orientation: upright; text-align: center; padding: 15px 0; font-size: 0.75rem; letter-spacing: 3px; display: flex; align-items: center; justify-content: center; }
#my-simulator-wrap .spec-label { width: 30px; color: #fff; writing-mode: vertical-rl; text-orientation: upright; text-align: center; padding: 5px 0; font-weight: bold; font-size: 0.8rem; letter-spacing: 2px; display: flex; align-items: center; justify-content: center; }
#my-simulator-wrap .spec-content { padding: 15px 20px; font-size: 0.7em; color: #475569; line-height: 1.8; flex: 1; font-weight: bold; letter-spacing: 0.5px; display: flex; align-items: center; }
#my-simulator-wrap .spec-content.sm-text { font-size: 0.7em; }

#my-simulator-wrap .bg-mythree { background: #8ba892; }
#my-simulator-wrap .bg-aqua    { background: #7e8c9c; }
#my-simulator-wrap .bg-select  { background: #d5bd8a; }

/* マイスリー選択不可（グレーアウト）時のスタイル */
.mythree-card.disabled-item {
    opacity: 0.4;             /* 半透明にして薄くする */
    filter: grayscale(100%);  /* 白黒にする（お好みで外してもOK） */
    pointer-events: none;     /* クリックを完全に無効化する */
}
/* モーダル */
#my-simulator-wrap #property-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); z-index: 9999; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; opacity: 0; transition: opacity 0.3s ease; }
#my-simulator-wrap #property-modal.show { opacity: 1; }
#my-simulator-wrap #property-modal.show .modal-content-wrapper { transform: translateY(0); }

#my-simulator-wrap .modal-content-wrapper { position: relative; background: #b7a490; padding: 30px; border-radius: 4px; max-width: 950px; width: 100%; display: flex; flex-direction: column; align-items: center; box-shadow: 0 20px 50px rgba(0,0,0,0.15); transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); }

#my-simulator-wrap .slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); color: #334155; border: 1px solid rgba(0,0,0,0.05); cursor: pointer; width: 34px; height: 34px; border-radius: 4px; display: flex; align-items: center; justify-content: center; z-index: 2; font-weight: bold; font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.2s; backdrop-filter: blur(4px); }
#my-simulator-wrap .slider-btn:hover { background: #fff; color: #978779; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
#my-simulator-wrap .slider-prev { left: 12px; }
#my-simulator-wrap .slider-next { right: 12px; }
#my-simulator-wrap .slider-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(255,255,255,0.85); color: #334155; padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; z-index: 2; font-weight: 600; letter-spacing: 1px; backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* 標準仕様・マイツリー関連 */
#my-simulator-wrap .standard-equip-box { padding: 35px 20px; margin: 0 auto 40px; }
#my-simulator-wrap .std-title { font-size: 1.5em; color: #334155; margin-top: 0; margin-bottom: 25px; line-height: 1.6; }
#my-simulator-wrap .std-title span { color: #d32f2f; font-weight: bold; border-bottom: 2px solid #d32f2f; }

#my-simulator-wrap .std-items-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
#my-simulator-wrap .std-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px; text-align: center; position: relative; display: flex; flex-direction: column; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
#my-simulator-wrap .std-badge { position: absolute; top: -8px; left: -8px; background: #978779; color: #fff; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.8rem; font-weight: bold; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
#my-simulator-wrap .std-img-wrap { width: 100%; aspect-ratio: 4/3; background: #f8fafc; border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
#my-simulator-wrap .std-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
#my-simulator-wrap .std-name { font-size: 0.85rem; font-weight: bold; color: #475569; line-height: 1.3; margin-top: auto; }

#my-simulator-wrap .mythree-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; max-width: 950px; margin: 0 auto; }
#my-simulator-wrap .mythree-card { padding: 10px !important; display: flex; flex-direction: column; align-items: center; background: #fff; transition: all 0.3s ease; animation: fadeIn 0.3s ease; }
#my-simulator-wrap .mythree-img-wrap { width: 100%; aspect-ratio: 4/3; background: #f8fafc; border-radius: 4px; margin-bottom: 8px; overflow: hidden; transition: opacity 0.3s; }
#my-simulator-wrap .mythree-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
#my-simulator-wrap .mythree-card span { padding: 0 !important; font-size: 0.7rem !important; line-height: 1.3; font-weight: bold; color: #334155; text-align: center; transition: color 0.3s; }

#my-simulator-wrap .grid-aqua { grid-template-columns: repeat(4, 1fr) !important; }

#my-simulator-wrap .accordion-toggle-btn { width: 100%; background: #f8fafc; border: 2px solid #cbd5e1; color: #475569; padding: 18px 20px; font-size: 1rem; font-weight: bold; text-align: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.03); letter-spacing: 1px; }
#my-simulator-wrap .accordion-toggle-btn:hover { background: #e2e8f0; color: #0f172a; border-color: #94a3b8; }
#my-simulator-wrap .accordion-toggle-btn.is-open { background: #9ca3af; color: #ffffff; border-color: #9ca3af; }

#my-simulator-wrap #btn-inquiry-pc, #my-simulator-wrap #btn-inquiry-sp { background: #978779 !important; }
#my-simulator-wrap #btn-inquiry-pc:hover { background: #857568 !important; }

/* レスポンシブ (SP用 / 768px以下) */
@media(min-width: 769px) {
    #my-simulator-wrap #mobile-total-bar { display: none !important; }
    #my-simulator-wrap .bottom-sheet { display: none !important; }
}

@media(max-width: 768px) {
    #my-simulator-wrap #property-list { grid-template-columns: 1fr; }
    #my-simulator-wrap #pc-total-sidebar, #my-simulator-wrap #pc-sidebar-tab { display: none !important; }
    
    #my-simulator-wrap #step-wizard-container { padding: 30px 15px !important; }
    #my-simulator-wrap .step-question { font-size: 1.1rem; }
    #my-simulator-wrap .step-grid.images { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    #my-simulator-wrap .step-grid.images.step-1-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 320px !important; margin: 0 auto !important; }
    #my-simulator-wrap .img-placeholder { height: 70px !important; font-size: 0.75rem !important; }
    #my-simulator-wrap .step-option-card img { height: 70px !important; font-size: 0.75rem !important; }
    #my-simulator-wrap .step-option-card span { padding: 8px 2px !important; font-size: 0.6rem !important; line-height: 1.2; }
    
    #my-simulator-wrap .floor-notice { font-size: 0.7em; }
    #my-simulator-wrap .outofoption { font-size: 0.85em; margin-bottom: 15px; }
    
    #my-simulator-wrap .prop-select-btn { font-size: 0.85rem; padding: 8px 12px; }
    #my-simulator-wrap .pc-only-text { display: none; }
    #my-simulator-wrap .opt-items-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    #my-simulator-wrap .opt-item-card { padding: 8px !important; }
    #my-simulator-wrap .opt-item-card span, #my-simulator-wrap .opt-item-card div { font-size: 0.75rem !important; }
    #my-simulator-wrap .grid-aqua { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    
    #my-simulator-wrap .std-title { font-size: 1.1em; }
    #my-simulator-wrap .std-items-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    #my-simulator-wrap .std-item { padding: 6px; border-radius: 4px; }
    #my-simulator-wrap .std-badge { width: 22px; height: 22px; font-size: 0.7rem; top: -5px; left: -5px; }
    #my-simulator-wrap .std-img-wrap { margin-bottom: 5px; }
    #my-simulator-wrap .std-name { font-size: 0.7rem; }
    
    /* ▼ マイスリーのレイアウトを2カラム＆画像歪み防止に修正 ▼ */
    #my-simulator-wrap .mythree-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px !important; 
        padding: 0 5px !important; /* スマホ画面端との余白調整 */
    }
    #my-simulator-wrap .mythree-card { 
        padding: 0 !important; 
        border-radius: 8px; 
        overflow: hidden; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    }
    #my-simulator-wrap .mythree-card .std-img-wrap { 
        margin-bottom: 0px !important; 
        width: 100% !important;
        height: auto !important; /* STEP1等でかかっている70px固定を解除 */
        aspect-ratio: 16/9 !important; /* きれいな比率に固定 */
        overflow: hidden !important;
        background: #f1f5f9;
    }
    #my-simulator-wrap .mythree-card img { 
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* 画像の歪みを防ぐ */
        border-radius: 0 !important; 
    }
    #my-simulator-wrap .mythree-card .std-name { 
        padding: 12px 8px !important;
        font-size: 0.8rem !important; 
        line-height: 1.4 !important;
        color: #1e293b !important;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 50px; /* 文字数によって高さがバラつくのを防ぐ */
    }
    
    #my-simulator-wrap .custom-sidebar { width: 90%; right: 5%; }
    
    /* ▼ ご自身の修正版ベース：シートの最大高さを決め、はみ出たら指でスクロールできるようにする ▼ */
    #my-simulator-wrap .bottom-sheet { 
        position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -5px 25px rgba(0,0,0,0.15); z-index: 10000; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); transform: translateY(100%); 
        display: flex !important; /* block から flex に変更 */
        flex-direction: column; /* 縦並びにする */
        max-height: 85vh; 
        max-height: 85dvh; 
    }
    #my-simulator-wrap .bottom-sheet.show-sheet { transform: translateY(calc(100% - 95px)); }
    #my-simulator-wrap .bottom-sheet.sheet-open { 
        transform: translateY(0); 
        overflow-y: auto; /* はみ出た部分は指でスクロールさせる */
        overscroll-behavior-y: contain; /* スクロールした時に後ろの画面が一緒に動くのを防ぐ */
    }
    
    /* ▼ シート内のスクロールバーをスマホアプリ風に細く綺麗にする ▼ */
    #my-simulator-wrap .bottom-sheet::-webkit-scrollbar { width: 4px; }
    #my-simulator-wrap .bottom-sheet::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
    
    /* ▼ スクロールしても金額とボタンは常に一番上に張り付かせる ▼ */
    #my-simulator-wrap .sheet-header { 
        padding: 12px 20px 15px; background: #fff; border-radius: 24px 24px 0 0; cursor: pointer; border-bottom: 1px solid #f1f5f9; 
        flex-shrink: 0; 
    }
    #my-simulator-wrap .sheet-handle { width: 40px; height: 5px; background: #cbd5e1; border-radius: 5px; margin: 0 auto 12px; }
    
    #my-simulator-wrap .sheet-body { 
        background: #fff; padding-bottom: env(safe-area-inset-bottom, 20px); 
        flex: 1; /* 余った高さをすべて使う */
        overflow-y: auto; /* ここでスクロールさせる */
        overscroll-behavior-y: contain; /* 裏画面のスクロール連動を防ぐ */
    }
    #my-simulator-wrap .sheet-body::-webkit-scrollbar { width: 4px; }
    #my-simulator-wrap .sheet-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
    
    #my-simulator-wrap .spec-row { display: flex !important; flex-direction: row !important; align-items: stretch !important; }
    #my-simulator-wrap .spec-label { width: 30px !important; writing-mode: vertical-rl !important; text-orientation: upright !important; padding: 8px 5px !important; margin-right: 5px !important; border-right: 1px solid #e2e8f0; flex-shrink: 0; }
    #my-simulator-wrap .spec-content { padding: 10px !important; font-size: 0.75rem !important; flex: 1; }
    
    /* ▼ 修正：画像の幅と高さをガッチリ固定し、潰れないようにする */
    #my-simulator-wrap .sidebar-img-wrap { 
        width: 180px !important; 
        min-height: 101.25px !important; 
        margin: 15px auto !important; 
        flex-shrink: 0 !important; 
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #my-simulator-wrap .sidebar-img-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    #my-simulator-wrap #sp-sb-floor { border: 1px solid gray; padding: 5px; border-radius: 5px; }
}


/* 5件目以降の物件カードを一時的に隠すためのクラス */
#my-simulator-wrap .property-card.is-hidden {
    display: none !important;
}

/* ★追加：カードが出現した瞬間に自動でふわっとフェードインさせる */
#my-simulator-wrap .property-card {
    animation: fadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ★大幅修正：減らす時のフェード ＆ 高さ減少同時進行アニメーション */
#my-simulator-wrap .property-card.fade-out {
    /* 以前提案した transform: translateY(15px) は削除 */
    transform: none !important; /* fadeInのtransformの影響をリセット */

    /* opacity と高さ減少を同時進行させる肝 */
    opacity: 0 !important;
    max-height: 0 !important; /* Transitionで滑らかに0へ */

    /* マージン・パディング・ボーダーも0にしないと空間が残る */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;

    /* Transition をここに記述。既存 fadeIn に干渉させない。 */
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease !important;

    /* アニメーション中に中身がはみ出ないようにする（ガタツキ防止） */
    overflow: hidden !important;
}
/* ★追加：物件カードのおすすめバッジ */
#my-simulator-wrap .recommend-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #5968b7;
    color: #fff;
    font-weight: bold;
    padding: 12px 12px;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
    animation: fadeIn 0.4s ease;
}

/*-------------------------------------------*/

/* 全体のコンテナ（背景色をしっかりと指定） */
.simulator-guide-container {
    margin: 0 auto 50px;
    padding: 40px 20px;
    background-color: #e9e9e9; /* 背景色（薄いグレー） */
    color: #333;
    font-family: sans-serif;
    width: 100%;
    box-sizing: border-box;
}

/* guide-headerとguide-stepsの max-width を削除しました。
  画面幅に合わせて広がります。
*/

/* 見出し部分 */
.guide-header {
    text-align: center;
    margin-bottom: 40px;
}
.guide-chapter {
    font-size: 20px;
    font-weight: bold;
    color: #2b3b5a;
    letter-spacing: 0.05em;
}
.guide-en {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin: 5px 0;
}
.guide-ja {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

/* ステップの共通スタイル */
.step-block {
    text-align: center;
    margin-bottom: 20px;
}
.step-message {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* カードのレイアウト */
.step-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.step-cards.cols-2 .card {
    width: 250px;
    height: 160px;
}
.step-cards.cols-3 .card {
    width: 200px;
    height: 140px;
}

/* カード内のテキストや画像 */
.card img {
    height: auto;
    margin-bottom: 15px;
}
.card p {
    font-size: 13px;
    font-weight: bold;
    margin: 0;
}
.card .card-en {
    font-size: 24px;
    color: #999;
    font-weight: lighter;
    margin-bottom: 10px;
}

/* 矢印 */
.step-arrow {
    width: 1px;
    height: 40px;
    background-color: #333;
    margin: 0 auto 20px;
    position: relative;
}
.step-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 8px;
    height: 8px;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    transform: rotate(45deg);
}

/* 最後のテキストエリア */
.last-text {
    margin-top: 30px;
    margin-bottom: 40px;
}
.normal-text {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.accent-text {
    font-size: 15px;
    font-weight: bold;
    color: #3b82f6; /* 青系 */
    line-height: 1.6;
}

/* 画像付きポイントセクション */
.feature-point-box {
    background: #fff;
    border-radius: 4px;
    padding: 40px;
    margin: 0 auto;
    max-width: 900px; /* ここだけはテキストが広がりすぎないように制限を残しています（必要に応じて外してください） */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.feature-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px; /* 画像とテキストの間の余白 */
}

/* 左側：画像エリア */
.feature-image-area {
    flex: 0 0 35%;
    max-width: 300px;
}
.feature-image-area img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* 右側：テキストエリア */
.feature-text-area {
    flex: 1;
    text-align: left;
}

.feature-title {
    font-size: 18px;
    color: #2b3b5a;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-title span {
    background: #3b82f6;
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}
.feature-desc {
    margin-bottom: 20px;
    line-height: 1.6;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 100px; /* 元の15pxから25pxに広げて、風通しを良くしました */
    line-height: 1.6;
}
.feature-list li:last-child {
    margin-bottom: 0;
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 18px;
}
.feature-list li strong {
    color: #333;
    display: inline-block;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee;
    padding-bottom: 2px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    /* カードを縦並びから横並びに変更 */
    .step-cards {
        flex-direction: row; /* 横並びを維持 */
        gap: 8px; /* 画面に収まるように隙間を狭くする */
    }
    
    /* 2択（2階建て/平屋）のカード幅調整 */
    .step-cards.cols-2 .card {
        width: calc(50% - 4px);
        max-width: none;
        height: 110px; /* スマホ用に少し低く */
        padding: 10px;
    }
    
    /* 3択（サイズ）のカード幅調整 */
    .step-cards.cols-3 .card {
        width: calc(33.333% - 5.33px);
        max-width: none;
        height: 100px; /* スマホ用に少し低く */
        padding: 10px 5px; /* 左右の余白を減らして文字を収める */
    }

    /* スマホ用にカード内の画像と文字を縮小 */
    .card img {
        max-width: 45px;
        margin-bottom: 8px;
    }
    .card .card-en {
        font-size: 14px; /* 英語を小さく */
        margin-bottom: 4px;
    }
    .card p {
        font-size: 10px; /* 日本語を小さく */
    }

    /* 矢印の調整 */
    .step-arrow {
        height: 25px;
        margin-bottom: 15px;
    }
    
    /* ポイントセクション（前回調整分） */
    .feature-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .feature-image-area {
        flex: none;
        width: 80%;
        max-width: 300px;
    }
    .feature-point-box {
        padding: 30px 20px;
    }
    .feature-list li {
        margin-bottom: 30px;
    }
}

/* =========================================
   使い方ガイド モーダル用スタイル
   ========================================= */

/* 開くボタンのデザイン（シミュレーターのテーマカラーに統一） */
.open-modal-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #978779;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.open-modal-btn:hover {
    background-color: #857568;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* モーダルの背景 */
.guide-modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px); /* 既存のモーダルに合わせて背景をぼかす */
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.guide-modal-overlay.is-active {
    display: flex;
    opacity: 1;
}

/* モーダルの中身 */
.guide-modal-content {
    background-color: #e9e9e9; /* 元のコンテナの背景色と合わせる */
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    scrollbar-width: thin;
}

/* 閉じるボタン */
.guide-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.guide-close-btn:hover {
    background: #f8fafc;
    transform: scale(1.05);
}

/* スマホ用の調整 */
@media screen and (max-width: 768px) {
    .open-modal-btn {
        width: 90%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .guide-close-btn {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
}