/* ======================================================= */
/* 最終調整版 ヘッダー */
/* ======================================================= */

.new-contact-header {
    background-color: #f0f8fe;
    height: 150px;
    margin-bottom: 0;
    padding-top: 50px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.new-header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 20px;
    text-align: left;
}


.contact-sub-title-block {
    display: flex;
    align-items: center;
    margin-bottom: -15px;
}

.contact-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../img/tytle_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
}

.new-header-container .contact-sub-title {
    font-size: 1.6rem;
    color: #3148cc;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
}

.contact-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2a2f4e;
    margin-top: 15px;
    margin-bottom: 0;
    text-align: left;
}

@media (max-width: 770px) {
    .new-contact-header {
        height: 170px;
        padding-top: 75px;
    }
}


/* ======================================================= */
/* フォーム周りの調整 */
/* ======================================================= */
.contact-form {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.list-group-item .form-group label {
    font-size: 1.3rem; 
}

.contact-form-list {
    max-width: 1000px;
    margin: 0 auto;
}

.form-lead-text {
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: left !important;
    max-width: 800px;
    margin-top: 30px;
}

.required-notice-text {
    font-size: 1.1rem;
    color: #2a2f4e;
    margin-bottom: 20px;
}

.required-symbol {
    color: #d9534f;
    font-weight: bold;
    margin-right: 5px;
}

.list-group-item label span.required-field {
    font-size: 1.1rem;
    color: #d9534f;
    font-weight: bold;
    margin-left: 5px;
}


.confirm-btn-style {
    background-color: #f05a24 !important;
    border-color: #f05a24 !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.6rem;
    letter-spacing: 5px;
    display: block;
    margin: 0 auto;
    width: 300px;
    margin-bottom: 30px;
}

.confirm-btn-style:hover {
    background-color: #e57d47 !important;
    border-color: #e57d47 !important;
}


/* ==========================================================================
   フローティング「トップに戻る」ボタン
   ========================================================================== */

.toppage-btn-vertical {
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 999;
    writing-mode: vertical-rl;
    background: rgba(49, 72, 204, 0.7);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 16px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 2px;
    text-align: center;
    transition: background 0.3s ease;
}

.toppage-btn-vertical:hover {
    background: rgba(49, 72, 204, 0.9);
    text-decoration: none;
    color: #fff;
}

/* ==========================================================================
   フッター (お問い合わせページ専用)
   ========================================================================== */
   .main-footer {
    background-color: #2a2f4e;
    color: #ffffff;
    padding: 60px 0; 
}

.footer-content-wrapper {
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
    max-width: 800px;
    width: 100%;
}

.footer-contact-info {
    margin-bottom: 20px;
}

.company-name-jp {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
    font-family: 'Murecho', sans-serif;
}

.company-name-en {
    font-size: 1.1rem;
    font-weight: normal;
    margin-left: 10px;
    opacity: 0.8;
}

.tel-info {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 30px;
}

.tel-info a {
    color: #fff;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s;
}

.footer-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-btn {
    text-decoration: none;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s, opacity 0.3s;
    color: #ffffff;
    background-color: #f05a24;
    border: 2px solid #f05a24;
    font-size: 1.4rem;
}

.footer-btn:hover {
    opacity: 0.9;
    color: #ffffff;
    background-color: #f05a24;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
}

.footer-privacy-mark {
    margin: 30px 100px; 
    flex-shrink: 0; 
}

.footer-privacy-mark img {
    max-height: 70px; 
    width: auto;
    display: block;
}

/* レスポンシブ対応 (モバイル対応は main-theme.css に依存しないようにこちらに統合) */
@media (max-width: 768px) {
    .footer-privacy-mark {
        margin: 0 auto 30px;
        text-align: center;
        width: 100%;
    }

    .footer-privacy-mark img {
        display: block;
        margin: 0 auto;
    }
    
    .main-footer {
        padding: 40px 0;
    }

    .footer-content-wrapper {
        text-align: center;
        /* 中央揃えを確実にするため、幅を設定 */
        width: 100%; 
    }

    .company-name-en {
        display: block; 
        margin-left: 0;
    }

    .footer-buttons {
        flex-direction: column; 
        align-items: center;
        gap: 10px;
    }

    .footer-btn {
        width: 80%; 
        max-width: 300px;
    }

    .tel-info {
        font-size: 1.4rem;
    }
    
    .footer-copyright {
        text-align: center;
    }
}