
/*
 * 日本電脳 お問い合わせフォーム
 *
 * 既存サイトのCSSおよび季節別テーマとの競合を避けるため、
 * 原則として .noda-contact-* の専用クラスを使用する。
 */


/* ==========================================================
   1. フォーム全体
   ========================================================== */

.noda-contact-form {
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}


/* ==========================================================
   2. 入力項目
   ========================================================== */

.noda-contact-field {
    display: grid;
    gap: 0.35rem;
}

.noda-contact-field label {
    font-weight: 600;
}

.noda-contact-field input,
.noda-contact-field textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.7em 0.8em;
    border: 1px solid #89938c;
    border-radius: 5px;
    color: inherit;
    background: transparent;
    font: inherit;
}

.noda-contact-field input:focus,
.noda-contact-field textarea:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}


/* ==========================================================
   3. 個人情報の取り扱い
   ========================================================== */

.noda-contact-privacy {
    margin-top: 1.5rem;
}

.noda-contact-privacy-title {
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.noda-contact-privacy .noda-contact-note {
    margin: 0 0 0.5rem;
    font-size: 0.85em;
    line-height: 1.8;
}

.noda-contact-caution {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
}


/* ==========================================================
   4. 個人情報の利用目的への同意
   ========================================================== */

/*
 * Chrome・Safariでの表示差異を防ぐため、
 * チェックボックスと説明文をGridで横並びにする。
 */

.inquiry-form label.noda-contact-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    margin: 24px 0;
    cursor: pointer;
}

/* チェックボックス */

.inquiry-form .noda-contact-consent input[type="checkbox"] {
    display: block;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 4px 0 0;
    padding: 0;
}

/* 同意説明文 */

.inquiry-form label.noda-contact-consent > span {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: inherit;
    background: none;
}


/* ==========================================================
   5. 送信ボタン
   ========================================================== */

.noda-contact-form button {
    cursor: pointer;
    justify-self: start;
    padding: 0.7em 2em;
    border: 1px solid currentColor;
    border-radius: 5px;
    color: inherit;
    background: transparent;
    font: inherit;
}

.noda-contact-form button:hover:not(:disabled) {
    background: rgba(128, 128, 128, 0.12);
}

.noda-contact-form button:disabled {
    opacity: 0.55;
    cursor: default;
}


/* ==========================================================
   6. 送信状況・エラーメッセージ
   ========================================================== */

.noda-contact-status {
    min-height: 1.5em;
    margin: 0;
}

.noda-contact-status--error {
    font-weight: 600;
    color: #a32828;
}


/* ==========================================================
   7. 送信完了画面
   ========================================================== */

.noda-contact-complete {
    box-sizing: border-box;
    width: 100%;
    padding: 1.8rem 1.5rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: rgba(128, 128, 128, 0.07);
}

.noda-contact-complete-title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.noda-contact-complete-title:focus {
    outline: none;
}

.noda-contact-complete p {
    margin: 0 0 1.25rem;
    line-height: 1.8;
}

.noda-contact-complete a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}


/* ==========================================================
   8. スパム対策（ハニーポット）
   ========================================================== */

/*
 * 自動送信プログラム対策の入力欄。
 * 通常の訪問者には表示しない。
 */

.noda-contact-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
