/* ===================================
   カスタムヘッダー・フッター用スタイル
   株式会社マーケティング企画
   
   SWELL子テーマ用カスタムCSS
   すべてのクラスに "mk-" プレフィックスを使用してSWELLとの競合を回避
   =================================== */

:root {
    /* カラーパレット */
    --mk-primary-color: #1a365d;
    --mk-primary-dark: #0f2642;
    --mk-primary-light: #2c5282;
    --mk-accent-color: #ff6b35;
    --mk-accent-hover: #e55a2b;
    --mk-secondary-color: #38a169;
    --mk-text-dark: #1a202c;
    --mk-text-medium: #4a5568;
    --mk-text-light: #718096;
    --mk-bg-white: #ffffff;
    --mk-bg-gray: #f7fafc;
    --mk-bg-light-gray: #edf2f7;
    --mk-border-color: #e2e8f0;
    
    /* タイポグラフィ */
    --mk-font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --mk-font-accent: 'Inter', sans-serif;
    
    /* スペーシング */
    --mk-container-width: 1200px;
    
    /* シャドウ */
    --mk-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --mk-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --mk-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --mk-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* トランジション */
    --mk-transition: all 0.3s ease;
}

/* SWELL\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30d8\u30c3\u30c0\u30fc\u30fb\u30d5\u30c3\u30bf\u30fc\u3092\u975e\u8868\u793a */
.l-header,
.swell-header,
#header:not(.mk-header) {
    display: none !important;
}

.l-footer:not(.mk-footer),
.swell-footer,
#footer:not(.mk-footer) {
    display: none !important;
}

/* ===================================
   \u5171\u901a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8
   =================================== */
.mk-container {
    max-width: var(--mk-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* \u30dc\u30bf\u30f3 */
.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--mk-transition);
    text-decoration: none;
    white-space: nowrap;
}

.mk-btn-primary {
    background: var(--mk-accent-color);
    color: white;
    box-shadow: var(--mk-shadow-md);
}

.mk-btn-primary:hover {
    background: var(--mk-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--mk-shadow-lg);
}

.mk-btn-secondary {
    background: white;
    color: var(--mk-primary-color);
    border: 2px solid var(--mk-primary-color);
}

.mk-btn-secondary:hover {
    background: var(--mk-primary-color);
    color: white;
}

.mk-btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.mk-btn-block {
    width: 100%;
}

/* ===================================
   \u30d8\u30c3\u30c0\u30fc
   =================================== */
.mk-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--mk-shadow-sm);
    z-index: 1000;
    transition: var(--mk-transition);
}

.mk-header.scrolled {
    box-shadow: var(--mk-shadow-md);
}

.mk-header-container {
    max-width: var(--mk-container-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mk-header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--mk-primary-color);
    font-weight: 900;
    font-size: 1.2rem;
}

.mk-header-logo i {
    font-size: 1.5rem;
    color: var(--mk-accent-color);
}

.mk-header-logo img {
    max-height: 50px;
    width: auto;
}

.mk-header-nav ul,
.mk-header-nav .mk-nav-menu,
.mk-nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.mk-header-nav a {
    text-decoration: none;
    color: var(--mk-text-dark);
    font-weight: 600;
    transition: var(--mk-transition);
    position: relative;
}

.mk-header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mk-accent-color);
    transition: var(--mk-transition);
}

.mk-header-nav a:hover::after {
    width: 100%;
}

.mk-header-cta {
    padding: 12px 28px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mk-accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--mk-transition);
    box-shadow: var(--mk-shadow-md);
}

.mk-header-cta:hover {
    background: var(--mk-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--mk-shadow-lg);
}

.mk-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mk-hamburger span {
    width: 25px;
    height: 3px;
    background: var(--mk-primary-color);
    border-radius: 2px;
    transition: var(--mk-transition);
}

/* ===================================
   \u30d5\u30c3\u30bf\u30fc
   =================================== */
.mk-footer {
    background: var(--mk-primary-dark);
    color: white;
    padding: 80px 0 30px;
}

.mk-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.mk-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.mk-footer-logo i {
    font-size: 1.5rem;
    color: var(--mk-accent-color);
}

.mk-footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

.mk-footer-social {
    display: flex;
    gap: 12px;
}

.mk-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: var(--mk-transition);
}

.mk-footer-social a:hover {
    background: var(--mk-accent-color);
    transform: translateY(-2px);
}

.mk-footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.mk-footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mk-footer-column li {
    margin-bottom: 12px;
}

.mk-footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--mk-transition);
}

.mk-footer-column a:hover {
    color: white;
    padding-left: 4px;
}

.mk-footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mk-footer-contact i {
    color: var(--mk-accent-color);
    width: 20px;
}

.mk-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mk-footer-links {
    display: flex;
    gap: 24px;
}

.mk-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--mk-transition);
}

.mk-footer-links a:hover {
    color: white;
}

.mk-footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===================================
   \u30d5\u30ed\u30fc\u30c6\u30a3\u30f3\u30b0CTA\u30dc\u30bf\u30f3
   =================================== */
.mk-floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--mk-transition);
}

.mk-floating-cta.show {
    opacity: 1;
    transform: translateY(0);
}

.mk-floating-cta .mk-btn {
    box-shadow: var(--mk-shadow-xl);
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* ===================================
   \u30e2\u30fc\u30c0\u30eb
   =================================== */
.mk-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mk-modal.show {
    display: flex;
}

.mk-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.mk-modal-content {
    position: relative;
    background: white;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--mk-shadow-xl);
}

.mk-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mk-bg-gray);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--mk-transition);
}

.mk-modal-close:hover {
    background: var(--mk-accent-color);
    color: white;
}

.mk-modal-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--mk-primary-color);
    margin-bottom: 12px;
}

.mk-modal-description {
    color: var(--mk-text-medium);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ===================================
   \u30d5\u30a9\u30fc\u30e0
   =================================== */
.mk-contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mk-form-group {
    display: flex;
    flex-direction: column;
}

.mk-form-group label {
    font-weight: 700;
    color: var(--mk-text-dark);
    margin-bottom: 8px;
}

.mk-required {
    color: var(--mk-accent-color);
}

.mk-form-group input,
.mk-form-group select,
.mk-form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--mk-border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--mk-font-main);
    transition: var(--mk-transition);
}

.mk-form-group input:focus,
.mk-form-group select:focus,
.mk-form-group textarea:focus {
    outline: none;
    border-color: var(--mk-accent-color);
}

.mk-form-privacy label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 400;
}

.mk-form-privacy a {
    color: var(--mk-accent-color);
    text-decoration: none;
}

/* ===================================
   \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc
   =================================== */
@media (max-width: 1024px) {
    .mk-footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mk-header-nav,
    .mk-header-cta {
        display: none;
    }
    
    .mk-hamburger {
        display: flex;
    }
    
    .mk-header-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--mk-shadow-md);
        padding: 20px;
    }
    
    .mk-header-nav.active ul,
    .mk-header-nav.active .mk-nav-menu {
        flex-direction: column;
        gap: 16px;
    }
    
    .mk-footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mk-footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .mk-footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .mk-floating-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .mk-floating-cta .mk-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .mk-modal-content {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .mk-header-logo a {
        font-size: 1rem;
    }
    
    .mk-btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ===================================
   \u30b3\u30f3\u30c6\u30f3\u30c4\u30e9\u30c3\u30d1\u30fc
   =================================== */
#mk-content-wrapper {
    padding-top: 80px; /* \u30d8\u30c3\u30c0\u30fc\u306e\u9ad8\u3055\u5206 */
    min-height: calc(100vh - 400px);
}
