/* ========================================
   フォーム共通スタイル
   /css/form.css
   対象：見積フォーム・お問い合わせフォーム
======================================== */


/* ========================================
   共通：SP用フォーム
======================================== */

/* フォームグループ */
.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
}

/* ラベルエリア */
.label-area {
    font-weight: bold;
    margin-bottom: 0.4em;
    font-size: 0.95em;
    display: block;
}

/* 必須マーク */
.hissu {
    color: #e74c3c;
    font-size: 0.85em;
    margin-left: 4px;
    font-weight: normal;
}

/* 入力フィールド共通（SP） */
.input-area input[type="text"],
.input-area input[type="number"],
.input-area textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    background: #fff;
}

.input-area input[type="number"] {
    width: 100%;
    max-width: 140px;
}

.input-area textarea {
    width: 100%;
    max-width: 100%;
    height: 120px;
    resize: vertical;
}

/* 入力例テキスト */
.example {
    font-size: 0.82em;
    color: #777;
    margin: 4px 0 0;
}

/* 電話番号3分割（SP） */
.tel-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.tel-group input[type="text"] {
    width: 80px !important;
    text-align: center;
}

.tel-sep {
    font-weight: bold;
}

/* 静的表示項目（印刷内容など） */
.static-item {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9em;
    color: #555;
}

/* 必須注記 */
.note-required {
    padding: 10px 0;
    margin-bottom: 1.2em;
    font-size: 0.9em;
}

/* 注意書き小文字（SP） */
.note-small {
    font-size: 0.8em;
    color: #666;
    line-height: 1.5;
    margin-top: 4px;
}

/* 見積個数エラーメッセージ（SP用） */
.kosuu-error {
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: 6px;
}

/* 確認ボタン（SP共通） */
.check-button {
    text-align: center;
    margin: 1.5em auto 2rem;
    width: 100%;
    border: none;
    background: none;
}

.check-button input[type="submit"] {
    background-color: #888;
    color: #fff !important;
    border: none !important;
    border-radius: 5px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 12px 40px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

.check-button input[type="submit"]:hover {
    background-color: #aaa;
}

/* お問い合わせフォーム（SP）最大幅 */
.responsive-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 6px;
}


/* ========================================
   共通：PC用フォームテーブル
======================================== */

/* 必須ラベル文字サイズ（PC） */
.pc-only .red.hissu {
    font-size: 10px;
}

/* 注意書き小文字（PC） */
.pc-only .note-small-pc {
    font-size: 12px;
    line-height: 1.5;
}

/* フォームボックス幅 */
.form_box {
    width: 88%;
    margin: 0 auto 1rem;
}

/* 確認ボタン（PC共通） */
.text_c input[type="submit"] {
    background: #999 !important;
    color: #fff !important;
    width: 120px;
    margin: 0 auto;
    padding: 0.3rem;
    border-radius: 0.2rem;
}

.text_c input[type="submit"]:hover {
    background: #ccc !important;
}

/* 例示テキスト（PC） */
.ex {
    font-size: 0.8rem;
    color: #043B8F;
}


/* ========================================
   見積フォーム専用：PC用テーブル（form-table）
======================================== */

.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.9rem;
}

.form-table th,
.form-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    vertical-align: middle;
    text-align: left;
    font-weight: normal;
}

.form-table th {
    background-color: #f0f0f0;
    width: 212px;       /* ★ラベル列幅：必要に応じて変更 */
    font-size: 13px;
    white-space: nowrap;
}

.form-table td {
    width: 376px;       /* ★入力列幅：必要に応じて変更 */
}

.form-table input[type="text"],
.form-table input[type="number"] {
    box-sizing: border-box;
    border: 1px solid #aaa;
    padding: 4px 6px;
    font-size: 13px;
    border-radius: 3px;
    background: #fff;
}

.form-table textarea {
    box-sizing: border-box;
    border: 1px solid #aaa;
    padding: 4px 6px;
    font-size: 13px;
    border-radius: 3px;
    resize: vertical;
    width: 100%;
}

/* 入力フィールド幅クラス（PC） */
.pc-only .w-280 { width: 100%; max-width: 280px; }  /* 町名・番地・建物名 */
.pc-only .w-200 { width: 100%; max-width: 200px; }  /* 会社名・お名前・部署名・フリガナ */
.pc-only .w-150 { width: 100%; max-width: 150px; }  /* メールアドレス */
.pc-only .w-120 { width: 100%; max-width: 120px; }  /* 都道府県・市区町村・希望納期・予定納品先 */
.pc-only .w-100 { width: 100%; max-width: 100px; }  /* 郵便番号・見積個数 */
.pc-only .w-60  { width: 60px; text-align: center; } /* 電話番号3分割 */


/* ========================================
   お問い合わせフォーム専用：PC用テーブル（list2）
======================================== */

table.list2 {
    width: 86%;
    border-collapse: collapse;
    border: solid 1px #ccc;
    text-align: left;
    font-size: 0.9rem;
    line-height: 160%;
    margin: 2rem auto;
}

table.list2 th,
table.list2 td {
    border: solid 1px #ccc;
    padding: 0.5rem;
    font-weight: normal;
}

table.list2 th {
    background: #f0f0f0;
    text-align: left;
    white-space: nowrap;
    color: #333;
    width: 28%;
}

table.list2 td {
    line-height: 160%;
    color: #333;
}

table.list2 td input,
table.list2 td textarea {
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 3px 5px;
}

/* お問い合わせPC確認ボタン */
.pc-only .check-button {
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 0 auto 2rem;
    width: 14%;
    text-align: center;
    padding: 0.2rem;
    border: 1px solid #ccc;
    background: #eee;
    display: block;
    color: #333;
}

/* ========================================
   フォームタイトル（見積フォーム）
======================================== */
#form_title {
    margin: 0 auto 10px;
    width: 94%;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    color: #043B8F;
}