/* salescontact-custom.css の中身（統合・修正版） */
@charset "UTF-8";

/* モーダルの背景ぼかしと枠 */
#contactModal.modal {
    backdrop-filter: blur(8px);
}

#contactModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    padding: 40px;
}

/* ヘッダーの設定 */
#contactModal .modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative; /* X印の配置基準 */
    padding-right: 80px; /* タイトルとX印の重なり防止 */
}

#contactModal .modal-title {
    font-weight: 700;
    color: #333;
    font-size: 1.8rem;
	line-height: 1.3;
}

/* --- X印（閉じるボタン）のPC向けデフォルト位置 --- */

#contactModal .modal-header .close, 
#contactModal .btn-close {
    position: absolute;
    /* PC表示での位置（モーダル外側） */
    top: -40px; 
    right: -30px; 

    width: 90px;
    height: 90px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0.2;  
    transition: opacity 0.2s ease; 
    outline: none;
    box-shadow: none;
    z-index: 9999;
}

/* 既存のデフォルトアイコンを非表示にし、CSSで描画 */
#contactModal .modal-header .close span,
#contactModal .btn-close::before,
#contactModal .btn-close::after {
    display: none !important;
    content: none !important;
}

/* 1pxの極細線でXを描く（共通設定） */
#contactModal .modal-header .close::before,
#contactModal .btn-close::after {
    content: "";
    position: absolute;
    top: 10%; right: 35%;
    width: 1px; height: 70%;
    background: #000;
    transform: rotate(45deg);
    transform-origin: center;
    display: block !important;
}

#contactModal .modal-header .close::after,
#contactModal .btn-close::before {
    content: "";
    position: absolute;
    top: 10%; right: 35%;
    width: 1px; height: 70%;
    background: #000;
    transform: rotate(-45deg);
    transform-origin: center;
    display: block !important;
}

#contactModal .modal-header .close:hover,
#contactModal .btn-close:hover {
    opacity: 1;
    transform: none; 
}


/* --- レスポンシブデザイン：スマホ表示時の調整 --- */
@media (max-width: 576px) {
    #contactModal .modal-content {
        padding: 30px 20px; 
    }
    #contactModal .modal-title {
        font-size: 1.5rem; 
    }
    .contact-info-value {
        font-size: 1.1rem; 
    }
    .contact-detail-row i {
        width: 35px; 
        height: 35px;
        margin-right: 12px;
    }
    
    /* スマホでは位置を内側に戻す */
    #contactModal .modal-header .close, 
    #contactModal .btn-close {
        top: -20px;    /* 内側へ */
        right: -10px;  /* 内側へ */
        width: 70px;
        height: 70px;
    }
}


/* --- その他のアイコン・情報レイアウト（元のコード） --- */
.contact-detail-row { display: flex; margin-bottom: 25px; align-items: flex-start; }
.contact-detail-row i { width: 45px; height: 45px; background: #f8f9fa; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #00a32c; margin-right: 20px; flex-shrink: 0; font-size: 1.2rem; }
.contact-info-label { font-size: 0.85rem; color: #888; text-transform: uppercase; display: block; letter-spacing: 1.5px; margin-bottom: 4px; }
.contact-info-value { font-size: 1.25rem; color: #222; margin: 0; font-weight: 500; word-break: break-all; }
@media (min-width: 576px) { #contactModal .modal-dialog { max-width: 550px; } }
/* CSS Document */
