@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* --- HalScene Contact Form Design (Final Fix) --- */

/* フォーム全体のコンテナ */
.c-halForm {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: #0B1C3D; /* メインのネイビー */
    border-top: 4px solid #EAB308; /* アクセントのゴールド */
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* 個別アイテム */
.c-halForm__item {
    margin-bottom: 2.5rem;
}

/* ラベルスタイル */
.c-halForm__label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* 必須マーク */
.c-halForm__required {
    color: #ef4444;
    margin-left: 0.25rem;
    font-size: 0.8em;
}

/* 入力フィールド共通 */
.c-halForm__input {
    width: 100%;
    background-color: #050e1f !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 1.2rem 1rem !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-size: 1rem;
}

/* テキストエリアの高さとリサイズ設定 */
textarea.c-halForm__input {
    min-height: 200px;
    resize: none;
}

/* フォーカス時のスタイル */
.c-halForm__input:focus {
    border-color: #EAB308 !important;
    outline: none;
    box-shadow: 0 0 0 1px #EAB308;
    background-color: #0B1C3D !important;
}

/* プレースホルダーの色 */
.c-halForm__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* --- 送信ボタンエリアの修正 (ズレ防止) --- */
.c-halForm__submit {
    position: relative; /* スピナー配置の基準 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    width: 100%;
}

/* 送信ボタン本体 */
.c-halForm input[type="submit"] {
    background-color: #EAB308 !important;
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 1rem 5rem !important;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    
    /* ズレ防止のための重要設定 */
    margin: 0 !important;
    display: block !important;
    width: auto !important;
    min-width: 200px; /* 最小幅確保 */
}

/* 送信ボタンホバー時 */
.c-halForm input[type="submit"]:hover {
    background-color: #ffffff !important;
    color: #EAB308 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(234, 179, 8, 0.3);
}

/* ローディングアイコン（くるくる）の位置調整 */
/* ボタンの横にあるとズレの原因になるため、絶対配置でボタンの下に逃がす */
.c-halForm .wpcf7-spinner {
    position: absolute;
    bottom: -30px; /* ボタンの下に配置 */
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;
}

/* エラーメッセージ・成功メッセージの色調整 */
.wpcf7-not-valid-tip {
    color: #ef4444 !important;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.wpcf7-response-output {
    background-color: #1e293b !important;
    border-color: #EAB308 !important;
    color: #ffffff !important;
    border-radius: 4px;
    margin-top: 2rem;
    padding: 1rem !important;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .c-halForm {
        padding: 2rem 1.5rem;
    }
    
    .c-halForm input[type="submit"] {
        padding: 1rem 3rem !important;
        width: auto !important;
        min-width: 180px; 
    }
}