/* ===========================================
   まるはち 住まいの整理便 — 共通スタイル
   全ページで使用（ヘッダー/フッター/フローティングCTA/モーダル/ベース）
   =========================================== */

:root {
    --primary-color: #006432;
    --accent-color: #E6B422;
    --text-dark: #333;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --line-color: #06c755;
}

/* ---- Base ---- */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
}

/* ---- Utility ---- */
.sumai-container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.btn {
    display: inline-block;
    padding: 18px 40px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn:hover { transform: translateY(-3px); background-color: #d4a31d; }

/* ---- Header ---- */
.sumai-header {
    background: var(--white);
    border-bottom: 4px solid var(--primary-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-group { display: flex; flex-direction: column; }
.logo { font-weight: 700; font-size: 1.6rem; color: var(--primary-color); line-height: 1.2; text-decoration: none; }
.logo-sub { font-size: 0.75rem; color: #666; font-weight: normal; }
.corporate-link { font-size: 0.75rem; color: #006432; text-decoration: underline; margin-top: 5px; display: inline-block; }
.header-contact { text-align: right; }
.header-tel { font-size: 1.4rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.header-time { font-size: 0.8rem; color: #666; }

/* Navigation */
.header-nav { display: flex; gap: 4px; align-items: center; }
.header-nav a { color: #444; text-decoration: none; font-size: 0.88rem; font-weight: 500; padding: 7px 12px; border-radius: 4px; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.header-nav a:hover { background: var(--primary-color); color: var(--white); }
.header-nav .nav-cta { background: var(--accent-color); color: var(--white); font-weight: bold; border-radius: 20px; }
.header-nav .nav-cta:hover { opacity: 0.85; background: var(--accent-color); }

/* ---- Floating CTA ---- */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}
.float-btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.2);
    width: fit-content;
}
.float-btn:hover {
    transform: scale(1.05) translateY(-5px);
    background-color: #d4a31d;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    color: var(--white);
}
.float-btn.line-btn { background-color: var(--line-color); }
.float-btn.line-btn:hover { background-color: #05b34c; color: var(--white); }
.float-btn i { font-size: 1.4rem; }

/* ---- Mobile Bottom Fixed CTA Bar ---- */
.mobile-bottom-cta { display: none; }

/* ---- Footer ---- */
.sumai-footer {
    background: #1a1a1a;
    color: #bbb;
    padding: 80px 0 30px;
    font-size: 0.9rem;
    text-align: left;
}
.sumai-footer a { color: #bbb; text-decoration: none; }
.sumai-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-title { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; border-bottom: 1px solid #444; padding-bottom: 10px; display: inline-block; }
.footer-bottom { border-top: 1px solid #333; padding-top: 30px; text-align: center; }

/* ---- Image Modal (Lightbox) ---- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.modal-content { position: relative; max-width: 90%; max-height: 90%; cursor: default; }
.modal-img {
    max-width: 100%; max-height: 90vh;
    border: 4px solid #fff; border-radius: 4px;
    -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
    pointer-events: auto;
}
.modal-guard { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }
.modal-close { position: absolute; top: -40px; right: 0; color: #fff; font-size: 30px; cursor: pointer; }

/* ---- CF7 Form (共通) ---- */
.form-box {
    max-width: 680px;
    margin: 40px auto 0;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    text-align: left;
    color: var(--text-dark);
}
.form-title {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: bold;
    background: #f0f7f4;
    padding: 15px;
    border-radius: 6px;
}
span.required {
    background: #dc3545;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: bold;
    display: inline-block;
    line-height: 1.2;
    letter-spacing: 0.05em;
}
.wpcf7-form p { margin-bottom: 20px; }
.wpcf7-text, .wpcf7-textarea, .wpcf7-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}
.wpcf7-submit {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.2rem;
    padding: 15px 50px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,100,50,0.2);
    transition: all 0.3s;
    width: 100%;
    display: block;
    margin: 0 auto;
}
.wpcf7-submit:hover { background-color: #004d26; transform: translateY(-2px); }
.cf7-privacy { font-size: 0.95rem; text-align: center; margin: 30px 0; }
.wpcf7-list-item { margin: 0; display: inline-block; }
.wpcf7-list-item-label {
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
input[type="checkbox"] { transform: scale(1.3); margin: 0; cursor: pointer; }

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .header-flex { flex-direction: column; text-align: center; gap: 10px; }
    .header-contact { text-align: center; }
    .header-nav { display: none; }
    .floating-cta { display: none !important; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-box { padding: 25px; }
    body { padding-bottom: 64px; }

    .mobile-bottom-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
        background: var(--white);
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
        padding: 0;
        margin: 0;
    }
    .mb-cta-btn {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        padding: 9px 4px 8px;
        font-size: 0.78rem;
        font-weight: bold;
        color: var(--white);
        gap: 3px;
        min-height: 64px;
        line-height: 1.2;
    }
    .mb-cta-btn i { font-size: 1.35rem; line-height: 1; }
    .mb-cta-btn span { white-space: nowrap; }
    .mb-cta-tel { background-color: var(--primary-color); }
    .mb-cta-line { background-color: var(--line-color); }
    .mb-cta-form { background-color: var(--accent-color); }
    .mb-cta-btn:active { opacity: 0.75; transform: scale(0.98); }
}
