@charset "UTF-8";

/* 印刷画面用のシンプルなCSS（A4縦を想定） */
body {
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    line-height: 1.4;
    background: #fef4f4;    /* 桜色 */
    margin: 0;
    padding: 20px;
}

.print-paper {
    /* position: relative; */
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px 30px;
    box-sizing: border-box;
    border: solid 1px #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.print-header {
    /* position: relative; */
    /* border-bottom: 2px solid #3EB370; */
    margin-bottom: 4px;
    padding-bottom: 6px;
    /* background-color: #fef4f4; */
}
#print-header--info {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-bottom: 6px;
    margin-bottom: 4px;
    /* background-color: #fff; */
    /* border-bottom: 2px solid #3EB370; */
}
.print-logo {
    /* position: absolute; */
    top: 0px;
    right: 0px;
    height: 42px;
}
.h-contact-box {
    display: flex;
    align-items: center;
    /* アイコンを上下中央に配置 */
    gap: 10px;
    /* アイコンとテキストの間の余白 */
}

/* アイコンのサイズと色 */
.h-contact-icon {
    font-size: 1.5rem;
    /* アイコンの大きさ */
    color: #3EB370;
    /* 物件サイトのテーマカラー（緑） */
}

/* テキストを上下に並べる */
.h-contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    /* 行間を詰めて一体感を出す */
    white-space: nowrap;
    /* 改行させない */
}

/* 電話番号の装飾 */
.h-contact-num {
    font-size: 1.4rem;
    /* 番号を大きく強調 */
    font-weight: bold;
    color: #3EB370 !important;
    text-decoration: none;
    letter-spacing: 0.02em;
}

/* 受付時間の装飾 */
.h-contact-sub {
    font-size: 0.7rem;
    /* 時間は小さめに */
    color: #666;
    margin-top: 2px;
}

.print-title {
    color: #3EB370;
    font-size: 24px;
    margin: 0;
    font-weight: bold;
    padding: 0.4rem 1rem;
    border-bottom: 2px solid #3EB370;
    border-radius: 0.6em 0.6em 0 0;
    background-color: #fef4f4;
}

/* 写真2枚を横並び */
.print-photos {
    display: flex;
    justify-content: center;    /* ★これを追加（横方向の中央寄せ） */
    flex-wrap: wrap;            /* ★ついでに追加推奨（3枚以上になった時に折り返す） */
    gap: calc(4% - 4px);
    margin: 10px auto 8px auto;
}

.print-photos figure {
    width: 48%;
    margin: 0;
    /* padding: 2px; */
}

.print-photos img {
    width: 100%;
    height: 250px;
    padding: 1px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid #ccc;
}

.print-photos figcaption {
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
    color: #666;
}

/* 概要テーブル */
.print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 8px;
}

.print-table th,
.print-table td {
    border: 1px solid #ccc;
    padding: 4px 6px;
}
.print-table th {
    width: fit-content;  /*25%;*/
    background: #e9dfe5;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}
.print-table td {
    font-weight: 400;
}

/* 画面上にある印刷実行ボタン */
.btn-do-print {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
    padding: 0.5rem 1rem;
    text-align: center;
    background: #3EB370;
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.btn-do-print:hover {
    opacity: 0.8;
}

/* 実際に印刷する時はボタンや背景色を消す */
@media print {
    body {
        background: #fff;
        padding: 0;
    }

    .print-paper {
        padding: 1px;
        border: none;;
        box-shadow: none;
    }

    .btn-do-print {
        display: none;
    }
}
        
