@charset "UTF-8";

/* =========================================
   お問い合わせフォーム（インダストリアルデザイン）
========================================= */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 10px;
    font-size: 16px;
}

.form-label .required {
    background-color: var(--color-accent);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    margin-left: 15px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* 入力欄（角丸排除・フォーカス時にネイビーの枠線） */
.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 16px;
    border-radius: 0;
    outline: none;
    transition: all 0.3s ease;
    background-color: var(--color-bg-gray);
}

.form-control:focus {
    border-color: var(--color-main);
    background-color: #fff;
    box-shadow: inset 0 0 0 1px var(--color-main);
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-main) 50%), linear-gradient(135deg, var(--color-main) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* 確認画面用テーブル */
.table-confirm {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.table-confirm th,
.table-confirm td {
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.table-confirm th {
    background-color: var(--color-bg-gray);
    color: var(--color-main);
    width: 30%;
    font-weight: 700;
    text-align: left;
}

.table-confirm td {
    background-color: #fff;
}

/* 完了画面メッセージ */
.complete-msg {
    text-align: center;
    padding: 40px 20px;
}

.complete-msg h3 {
    color: var(--color-main);
    font-size: 24px;
    margin-bottom: 20px;
}

.complete-msg p {
    margin-bottom: 20px;
    font-size: 16px;
}

.complete-msg .tel-box {
    display: inline-block;
    border: 2px solid var(--color-main);
    padding: 20px 40px;
    margin-top: 20px;
}

.complete-msg .tel-box span {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.complete-msg .tel-box .tel-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-main);
    margin: 0;
}





/* =========================================
   プライバシーポリシー同意チェックボックス
========================================= */
.privacy-consent {
    text-align: center;
    margin: 40px 0 30px;
    background-color: var(--color-bg-gray);
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.privacy-consent label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ★PC版（デフォルト）は横並び（inline-flex） */
.privacy-text {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-main);
}

.privacy-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-main);
    background-color: #fff;
    margin-right: 12px;
    position: relative;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
    flex-shrink: 0; /* ★スマホでチェックボックスが潰れないようにする */
}

.privacy-consent input[type="checkbox"]:checked {
    background-color: var(--color-main);
}

.privacy-consent input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 8px;
    width: 6px;
    height: 12px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
}

.privacy-consent a {
    color: var(--color-accent);
    text-decoration: underline;
    margin-right: 5px;
    transition: opacity 0.3s ease;
}

.privacy-consent a:hover {
    opacity: 0.7;
}

/* =========================================
   レスポンシブ（スマホ用）
========================================= */
@media (max-width: 768px) {
    /* フォーム外枠の余白を狭くして画面を広く使う */
    .contact-section {
        padding: 25px 20px;
    }
    
    /* ★スマホ時のみ、テキストを縦並び（2行）にする */
    .privacy-text {
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.5;
    }
    
    .privacy-text a {
        margin-right: 0;
        margin-bottom: 4px; /* 上下の行間を少し開ける */
    }
}