@charset "UTF-8";

/* ========================================================
   Watec Contact Form Styles
   従来のフォームの見た目を再現しつつ、モダン＆スマホ対応
======================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: #333333;
    background-color: #ffffff;
    margin: 20px;
    padding: 0;
    line-height: 1.6;
}

.form-container {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    padding: 10px;
}

h3.form-title {
    font-size: 1.35rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #222222;
}

hr.form-divider {
    border: none;
    border-top: 1px solid #cccccc;
    margin: 15px 0 20px 0;
}

.intro-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.required-badge {
    color: #e61919;
    font-size: 0.85rem;
    font-weight: bold;
}

/* エラーメッセージ */
.error-box {
    background-color: #fff0f0;
    border: 1px solid #ff9999;
    color: #cc0000;
    padding: 12px 18px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}
.error-box ul {
    margin: 5px 0 0 20px;
    padding: 0;
}

/* フォームテーブル */
.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #7f9db9;
}

.form-table th,
.form-table td {
    border: 1px solid #cccccc;
    padding: 8px 12px;
    font-size: 0.92rem;
    vertical-align: middle;
}

.form-table th {
    background-color: #f7f7f7;
    text-align: left;
    font-weight: normal;
    width: 36%;
}

.form-table td {
    background-color: #ffffff;
    width: 64%;
}

/* 英語版フォームの列比率最適化（ラベル長に合わせた自然な配置） */
.en-form .form-table th {
    width: 30%;
}

.en-form .form-table td {
    width: 70%;
}

/* フォームコントロール */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    max-width: 500px;
    padding: 7px 10px;
    border: 1px solid #a0a0a0;
    border-radius: 2px;
    font-family: inherit;
    font-size: 0.92rem;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 3px rgba(25, 118, 210, 0.4);
}

textarea {
    resize: vertical;
}

/* 確認画面での値表示 */
.confirm-value {
    white-space: pre-wrap;
    word-break: break-all;
    font-weight: 500;
    color: #111111;
}

/* 注記エリア */
.notice-box {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    padding: 15px;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 20px 0;
    color: #444444;
}

/* ボタングループ */
.btn-group {
    margin: 25px 0;
    text-align: left;
}

.btn-group .btn {
    padding: 8px 24px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #707070;
    margin-right: 12px;
    transition: background-color 0.15s ease;
}

.btn-primary {
    background: #f0f0f0;
    color: #000000;
}
.btn-primary:hover {
    background: #e2e2e2;
}

.btn-secondary {
    background: #fafafa;
    color: #333333;
}
.btn-secondary:hover {
    background: #eaeaea;
}

.btn-submit {
    background: #d32f2f;
    color: #ffffff;
    border-color: #b71c1c;
    font-weight: bold;
}
.btn-submit:hover {
    background: #b71c1c;
}

/* 完了画面 */
.complete-box {
    text-align: center;
    padding: 40px 20px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

.complete-id {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #d32f2f;
    background: #ffffff;
    border: 2px dashed #d32f2f;
    padding: 10px 25px;
    margin: 15px 0;
    border-radius: 4px;
}

/* スパムボット対策ハニーポット（非表示項目） */
.hp-field {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* スマホ対応 */
@media screen and (max-width: 680px) {
    body {
        margin: 10px;
    }
    .form-container {
        padding: 5px;
    }
    .form-table,
    .form-table tbody,
    .form-table tr,
    .form-table th,
    .form-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .form-table th {
        border-bottom: none;
        background: #f0f4f8;
        padding-top: 10px;
        padding-bottom: 5px;
    }
    .form-table td {
        border-top: none;
        padding-top: 5px;
        padding-bottom: 12px;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
    }
    .btn-group .btn {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
        padding: 12px 0;
    }
}
