/*
 * Component Styles - Takamatsu PC Theme
 * UIコンポーネント（BEM方式）
 * 緑×ネイビーの調和配色デザイン
 * CSS Layers対応
 */

/* CSS Layers Support Check */
@supports (at-rule(@layer)) {
@layer components {
    /* ========================================
       Buttons - 緑×ネイビーの調和配色
    ======================================== */
.c-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.c-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   Back to Top - ページトップへ戻るボタン
======================================== */
.c-back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    opacity: 0;
    visibility: hidden;
    z-index: var(--z-fixed);
}

.c-back-to-top--visible {
    opacity: 1;
    visibility: visible;
}

.c-back-to-top:hover {
    background-color: var(--primary-dark);
    
    box-shadow: var(--shadow-xl);
}

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
    .c-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-sm);
        min-width: 120px;
    }
    
    .c-btn--large {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--font-base);
        min-width: 160px;
    }
    .c-back-to-top {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .c-btn {
        padding: var(--space-sm) var(--space-md);
        min-width: 100px;
    }
}

} /* @layer components 終了 */
} /* @supports */

/* Fallback styles for browsers that don't support CSS Layers */
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #059669;
    color: white;
}

.c-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Header and Footer styles moved to header-footer.css for proper organization */

/* ========================================
   Contact CTA Component
======================================== */
.l-contact-compact {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-rgb), 0.02) 0%, 
        rgba(var(--secondary-rgb), 0.01) 100%);
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    margin-top: var(--space-3xl);
}

.c-contact-compact {
    max-width: 120rem;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--space-lg);
}

.c-contact-compact__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.c-contact-compact__title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.c-contact-compact__description {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    margin: 0;
    max-width: 80rem;
}

.c-contact-compact__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
}

.c-contact-compact__actions .c-btn span {
    color: white !important;
    font-size: inherit !important;
    font-weight: 600;
}

.c-contact-compact__phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.c-contact-compact__phone-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: color 0.3s ease;
}

.c-contact-compact__phone-link:hover {
    color: var(--primary-dark);
}

.c-contact-compact__phone-number {
    letter-spacing: 0.05em;
}

.c-contact-compact__hours {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .c-contact-compact__actions {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-2xl);
    }
    
    .c-contact-compact__phone {
        text-align: left;
    }
} 
