@charset "UTF-8";

/* ==========================================================================
   1. レイアウトの基本構造
   ========================================================================== */
.smpForm {
    background-color: #ffffff; /* 背景が白の場合 */
    padding: 16px 30px;
    border-radius: 4px;
    max-width: 600px;
    margin: 0 auto;
    position: relative !important;
}

.ss_contents {
    display: flex !important;
    flex-direction: column !important;
}

.ss_visitor_form {
    display: contents !important; 
}

.ss_field {
    margin-bottom: 20px !important;
    border: none !important;
    padding: 0 !important;
}

/* ==========================================================================
   2. 項目名（ラベル）のデザイン
   ========================================================================== */
.ss_form_title {
    display: block !important;
    font-size: 16px !important;
    text-align: left !important;
    font-weight: bold !important;
    color: #a08e7e !important;
    margin-bottom: 5px !important;
}

.ss_user_notnull {
    display: inline !important;
    color: #e31a1a !important;
    font-size: 16px;
    margin-left: 2px;
}

.ss_leftComment {
    font-size: 14px !important;
    text-align: left !important;
    color: #a08e7e;
    margin-bottom: 3px !important;
    display: block;
}

/* ==========================================================================
   3. 入力欄のデザイン（背景色を#f7f7f7に変更）
   ========================================================================== */
#ss_name .ss_grid {
    display: flex !important;
    gap: 15px !important;
}

.ss_input {
    flex: 1;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

.ss_input > .ss_leftComment,
.ss_input > input,
.ss_input > textarea {
    flex: 0 0 100% !important;
    width: 100% !important;
}

/* 【修正】入力欄の背景色を#f7f7f7に設定 */
input[type="text"], input[type="email"], input[type="tel"], textarea {
    height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background-color: #f0f0f0 !important; /* 可視性向上のためグレーに変更 */
    box-sizing: border-box !important;
    font-size: 16px !important;
}

/* ==========================================================================
   4. 警告表示（エラー時）の調整
   ========================================================================== */
/* 【修正】エラーがある入力欄の枠線と背景色を薄い赤色に変更  */
input.ss_error_border,
textarea.ss_error_border,
select.ss_error_border {
    border: 1px solid #f04040 !important;
    background-color: #fff9f9 !important; /* 枠内を薄い赤色に指定 */
}

.ss_warning_label {
    order: 9 !important;
    background-color: #f04040 !important;
    width: 36px !important;
    height: 24px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 8px 8px 0 0 !important;
    border-radius: 3px !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
}

.ss_error_msg, .errorMsg, .ss_error {
    order: 10 !important;
    flex: 0 1 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    color: #f04040 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    margin-top: 8px !important;
    text-align: left !important;
}

/* ==========================================================================
   5. プライバシーポリシーと同意項目
   ========================================================================== */
.ss_upComment { display: none !important; }

#ss_consent_personal_info .ss_upComment {
    display: block !important;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    font-weight: normal !important;
    margin-bottom: 12px !important;
    text-align: left !important;
}

#ss_consent_personal_info .ss_input {
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row !important;
}

#ss_consent_personal_info input[type="checkbox"] {
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 8px 0 0 !important;
    cursor: pointer !important;
}

/* ==========================================================================
   6. 送信ボタン
   ========================================================================== */
.ss_btnArea input[type="button"] {
    background-color: #e31a1a !important;
    color: #fff !important;
    width: 100% !important;
    max-width: 400px !important;
    height: 55px !important;
    font-size: 24px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    transition: opacity 0.3s !important;
}

.ss_btnArea input[type="button"]:hover {
    opacity: 0.7 !important;
}

/* ==========================================================================
   7. 送信時の読み込み中演出（スピナー） - 最終解決版
   ========================================================================== */

#ss_submit_loader.ss_submit_loader {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    z-index: 1000 !important;
    display: none;
    border-radius: 4px !important;
}

#ss_submit_loader .spinner {
    position: absolute !important;
    /* 【修正】transformを使わずに計算式で中央配置（50%から自身のサイズの半分25pxを引く） */
    top: calc(50% - 25px) !important;
    left: calc(50% - 25px) !important;
    
    width: 50px !important;
    height: 50px !important;
    border: 5px solid rgba(0, 0, 0, 0.1) !important;
    border-top: 5px solid #007bbb !important;
    border-radius: 50% !important;
    /* 【修正】アニメーション名を変更して競合を回避 */
    animation: ss_spin_final 1s linear infinite !important;
    box-sizing: border-box !important;
}

/* 【修正】回転だけに専念させるシンプルなアニメーション */
@keyframes ss_spin_final {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   プレースホルダー（入力欄内の例示文字）の極細設定
   ========================================================================== */

/* 文字色を#aaa（グレー）から#ccc（薄いグレー）へ変更し、透明度も下げます */
input::placeholder,
textarea::placeholder {
    font-weight: normal !important;
    color: #333 !important; /* さらに薄く */
    opacity: 0.5 !important; /* 透明度を下げて細さを強調 */
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    font-weight: normal !important;
    color: #333 !important;
    opacity: 0.5 !important;
}