@charset "UTF-8";

/* ============================================================
   印刷用ページ（土地 / 建売）スタイル
   - page-print-land.php / page-print-house.php 用
   - A4縦1枚に収まる構成
   ============================================================ */

/* --- A4印刷設定 ----------------------------------------------- */
@page {
    size: A4 portrait;
    margin: 10mm;
}

/* --- リセット & ベース ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.print-page {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    font-size: 10pt;
    color: #222;
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.print-page img { max-width: 100%; height: auto; vertical-align: middle; }

/* --- シート（A4 1枚） ----------------------------------------- */
.print-sheet {
    width: 190mm; /* A4幅 210mm - margin 10mm × 2 */
    margin: 0 auto;
    padding: 0;
}

/* --- ヘッダーバー --------------------------------------------- */
.print-head {
    width: 100%;
    border-bottom: 2px solid #9d822d;
    padding-bottom: 3mm;
    margin-bottom: 4mm;
}
.print-head__store {
    width: 100%;
    font-size: 11pt;
    margin: 0 0 1mm;
    text-align: right;
}
.print-head__title {
    width: 100%;
    font-size: 16pt;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

/* --- 販売金額ブロック ----------------------------------------- */
.print-price {
    margin-bottom: 4mm;
    padding: 2.5mm 3mm;
    background: #f7f3e1;
    border-left: 4px solid #9d822d;
}
.print-price__label {
    display: inline-block;
    font-size: 10pt;
    font-weight: bold;
    margin-right: 3mm;
    color: #555;
}
.print-price__value {
    font-size: 16pt;
    font-weight: bold;
    color: #9d822d;
}
.print-price__value small {
    font-size: 10pt;
    color: #555;
    font-weight: normal;
}

/* --- 価格に含まれるもの（建売のみ）---------------------------- */
.print-include {
    margin-top: 2mm;
    padding-top: 2mm;
    border-top: 1px dotted #c2ae6b;
    display: flex;
    gap: 3mm;
    font-size: 9pt;
}
.print-include__label {
    flex: 0 0 auto;
    font-weight: bold;
    color: #555;
}
.print-include__value {
    flex: 1 1 auto;
    line-height: 1.5;
}

/* --- 物件概要ミニブロック（建売のみ）-------------------------- */
.print-overview {
    margin-bottom: 4mm;
}
.print-overview__title {
    font-size: 11pt;
    border-left: 4px solid #9d822d;
    padding-left: 2mm;
    margin: 0 0 2mm;
}
.print-overview__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
}
.print-overview__table th,
.print-overview__table td {
    border: 1px solid #bbb;
    padding: 1mm 2mm;
    text-align: left;
    vertical-align: top;
}
.print-overview__table th {
    background: #f3f3f3;
    font-weight: normal;
    width: 18%;
}

/* --- 画像（アイキャッチ / 区画図 / 平面図） -------------------- */
.print-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3mm;
    margin-bottom: 4mm;
}
.print-photos__item {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid #333;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.print-photos__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- 地図 ----------------------------------------------------- */
.print-map {
    margin-bottom: 4mm;
}
.print-map__embed {
    width: 100%;
    height: 55mm;
    border: 1px solid #333;
    overflow: hidden;
}
.print-map__embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* --- 詳細 2カラム --------------------------------------------- */
.print-detail {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4mm;
    margin-bottom: 4mm;
}
.print-detail__col {
    min-width: 0;
}
.print-detail__title {
    font-size: 11pt;
    border-left: 4px solid #9d822d;
    padding-left: 2mm;
    margin: 0 0 2mm;
}
.print-detail__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
}
.print-detail__table th,
.print-detail__table td {
    border: 1px solid #bbb;
    padding: 1mm 2mm;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}
.print-detail__table th {
    background: #f3f3f3;
    font-weight: normal;
    width: 32%;
    white-space: nowrap;
}

/* --- 周辺施設リスト ------------------------------------------- */
.print-around {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 9pt;
}
.print-around li {
    display: flex;
    justify-content: space-between;
    gap: 2mm;
    border-bottom: 1px dotted #ccc;
    padding: 1mm 0;
}
.print-around__name {
    flex: 1 1 auto;
    min-width: 0;
}
.print-around__dist {
    flex: 0 0 auto;
    color: #555;
    white-space: nowrap;
}

/* --- 取り扱い店舗 --------------------------------------------- */
.print-foot {
    border-top: 1px solid #bbb;
    padding-top: 3mm;
    font-size: 9pt;
}
.print-foot__title {
    font-size: 11pt;
    border-left: 4px solid #9d822d;
    padding-left: 2mm;
    margin: 0 0 2mm;
}
.print-foot__name {
    font-size: 11pt;
    font-weight: bold;
    margin: 0 0 1mm;
}
.print-foot p { margin: 0.5mm 0; }
.print-foot__label {
    display: inline-block;
    min-width: 22mm;
    color: #555;
    font-weight: bold;
}

/* --- エラー画面 ----------------------------------------------- */
.print-error {
    padding: 20mm;
    text-align: center;
}
.print-error-msg {
    font-size: 12pt;
    line-height: 2;
    color: #333;
}
.print-error-msg code {
    background: #f3f3f3;
    padding: 0 4px;
    border-radius: 2px;
    font-family: "SFMono-Regular", "Menlo", monospace;
}

/* --- 印刷時の挙動 --------------------------------------------- */
@media print {
    body.print-page {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .print-sheet {
        width: auto;
    }
}

/* --- 画面表示時のフレーム（プレビュー用）---------------------- */
@media screen {
    body.print-page {
        background: #ddd;
        padding: 10mm 0;
    }
    body.print-page.print-error { background: #fff; padding: 0; }
    .print-sheet {
        background: #fff;
        padding: 10mm;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
        margin-bottom: 10mm;
    }
}
