@charset "utf-8";

/* ===========================================================
   エックスサーバー CGIメールフォーム 自作スキン CSS
   【売却のご相談 - realestate】
   Navy/Gold テーマ ・ レスポンシブ対応 ・ 完成版
   -----------------------------------------------------------
   注意: CGI制約によりセレクター内のクォートは除去
         data URL / シングルクォート / script 不使用
   =========================================================== */

/* --- リセット --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    background: #f0ede8;
    color: #333;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: #1a2744; }
a:hover { text-decoration: none; }

/* ===========================================================
   レイアウト
   =========================================================== */

#wrapper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 16px rgba(26, 39, 68, 0.08);
    overflow: hidden;
}

/* --- ヘッダー --- */
#form-header {
    background: linear-gradient(135deg, #1a2744 0%, #2a3d5e 100%);
    padding: 28px 20px;
    text-align: center;
    border-bottom: 3px solid #c5a55a;
}
#form-header h1 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    margin: 0;
}
#form-header p {
    color: #d4bb7a;
    font-size: 13px;
    margin-top: 8px;
    letter-spacing: 0.04em;
}

/* --- メイン --- */
#main {
    padding: 28px 20px 32px;
}

/* --- セクション --- */
.section { margin-bottom: 0; }
.section__ttl { display: none; }
.section__body { padding: 0; }

/* ===========================================================
   案内文
   =========================================================== */

#form-note {
    background: #faf9f7;
    border-left: 4px solid #c5a55a;
    padding: 16px 18px;
    margin-bottom: 28px;
    font-size: 14px;
    color: #555;
    border-radius: 0 8px 8px 0;
    line-height: 1.9;
    position: relative;
}
.form-note-icon {
    display: inline-block;
    margin-right: 4px;
    font-size: 16px;
}
.note-required {
    color: #c44b4b;
    font-weight: 700;
}
.confirm-note {
    border-left-color: #1a2744;
    background: #f5f7fa;
}

/* --- エラー表示 --- */
.red_txt {
    color: #c44b4b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

/* ===========================================================
   テーブル（入力画面 - モバイル縦並び）
   =========================================================== */

.table {
    width: 100%;
    margin-bottom: 8px;
    border: none;
    border-collapse: collapse;
}

.table,
.table tbody,
.table tr,
.table th,
.table td {
    display: block;
    width: 100%;
    border: none;
    text-align: left;
}

.table tr {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eee;
}
.table tr:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.table th {
    background: transparent;
    color: #1a2744;
    padding: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
    border: none;
    letter-spacing: 0.02em;
}

.table td {
    background: transparent;
    padding: 0;
    font-size: 16px;
    border: none;
    color: #333;
}

/* --- 確認画面テーブル --- */
.confirm-table tr {
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.confirm-table td {
    padding: 4px 0 0 0;
    font-size: 16px;
    color: #222;
    line-height: 1.6;
}

/* ===========================================================
   フォーム入力要素
   =========================================================== */

input[type=text],
input[type=password],
input[type=email],
input[type=tel],
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=tel]:focus,
textarea:focus {
    border-color: #1a2744;
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.08);
}

textarea {
    width: 100%;
    min-height: 140px;
    resize: vertical;
    overflow: auto;
    vertical-align: top;
}

select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: normal;
}

select:focus {
    border-color: #1a2744;
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.08);
}

/* ===========================================================
   ボタン
   =========================================================== */

.button_box {
    clear: both;
    padding: 32px 0 8px;
    text-align: center;
}

/* --- メインボタン（確認 / 送信） --- */
input[type=submit] {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: #1a2744;
    border: 2px solid #1a2744;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 2px 8px rgba(26, 39, 68, 0.15);
}
input[type=submit]:hover {
    background: #2a3d5e;
    border-color: #2a3d5e;
    box-shadow: 0 4px 12px rgba(26, 39, 68, 0.2);
}
input[type=submit]:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(26, 39, 68, 0.15);
}

/* --- 「戻る」ボタン（確認画面で2番目のsubmit） --- */
input[type=submit] + input[type=submit] {
    margin-top: 16px;
    background: #fff;
    color: #1a2744;
    border: 2px solid #d0cdc6;
    font-weight: 500;
    letter-spacing: 0.04em;
    box-shadow: none;
}
input[type=submit] + input[type=submit]:hover {
    background: #f5f3ef;
    border-color: #1a2744;
    color: #1a2744;
    box-shadow: none;
}

/* --- サイトへ戻るリンク --- */
.link-back {
    text-align: center;
    padding: 16px 8px 0;
}
.link-back a {
    color: #888;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.link-back a:hover {
    color: #1a2744;
}

/* --- 完了画面「サイトへ戻る」ボタン --- */
.btn-back-site {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: #1a2744;
    border: 2px solid #1a2744;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(26, 39, 68, 0.15);
}
.btn-back-site:hover {
    background: #2a3d5e;
    border-color: #2a3d5e;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(26, 39, 68, 0.2);
}

/* ===========================================================
   完了画面
   =========================================================== */

#complete-message {
    text-align: center;
    padding: 48px 20px;
}

#complete-message .complete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #1a2744;
    color: #c5a55a;
    font-size: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(26, 39, 68, 0.2);
}

#complete-message h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a2744;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

#complete-message p {
    font-size: 14px;
    color: #666;
    line-height: 2.0;
    margin: 0;
}

/* ===========================================================
   フッター注記
   =========================================================== */

#form-footer-note {
    text-align: center;
    padding: 20px 20px 40px;
    font-size: 13px;
    color: #aaa;
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
}

/* --- 説明文（デフォルト残置） --- */
#txt_explain {
    color: #555;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.9;
}

/* ===========================================================
   レスポンシブ
   =========================================================== */

/* --- タブレット 600px〜 --- */
@media (min-width: 600px) {
    #main {
        padding: 36px 32px 40px;
    }
    #form-header {
        padding: 32px 28px;
    }
    #form-header h1 {
        font-size: 22px;
    }
    #form-header p {
        font-size: 14px;
    }

    /* ボタン横並び */
    .button_box {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    input[type=submit] {
        width: auto;
        min-width: 200px;
    }
    input[type=submit] + input[type=submit] {
        margin-top: 0;
    }

    #complete-message { padding: 64px 32px; }
    #complete-message h2 { font-size: 24px; }
}

/* --- デスクトップ 900px〜 --- */
@media (min-width: 900px) {
    #wrapper {
        margin-top: 40px;
        margin-bottom: 40px;
        border-radius: 12px;
    }
    #form-header {
        border-radius: 12px 12px 0 0;
    }
    #main {
        padding: 44px 48px 48px;
    }

    /* th/td 横並び */
    .table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        margin-bottom: 0;
        padding: 18px 0;
    }
    .table th {
        flex: 0 0 160px;
        padding: 10px 20px 0 0;
    }
    .table td {
        flex: 1;
        min-width: 0;
    }
}

/* --- ワイド 1200px〜 --- */
@media (min-width: 1200px) {
    #wrapper {
        max-width: 800px;
    }
}