/**
 * Button Component Styles
 * ボタン関連のスタイル
 * 
 * @package YoungBush
 */

/* CSS変数の定義（念のため） */
:root {
    --primary-color: #275d46;
    --secondary-color: #022b22;
    --accent-color: #569578;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
}

/* ========================================
   Button Base
======================================== */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    line-height: 1.5;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 93, 70, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   Button Variants
======================================== */

/* Primary Button */
.btn-primary {
    background: #275d46;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(39, 93, 70, 0.2);
}

.btn-primary:hover {
    background: #022b22;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 93, 70, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(39, 93, 70, 0.2);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: #275d46 !important;
    border: 2px solid #275d46;
}

.btn-secondary:hover {
    background: #275d46;
    color: #ffffff !important;
    border-color: #275d46;
}

/* White Button */
.btn-white {
    background: #ffffff;
    color: #275d46 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: #f8f9fa;
    color: #275d46 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Button Sizes
======================================== */

/* Small */
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Large */
.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
}

/* Extra Large */
.btn-xl {
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 600;
}

/* ========================================
   Button States
======================================== */

/* Full Width */
.btn-block {
    display: block;
    width: 100%;
}

/* With Icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   Special Buttons
======================================== */

/* Gradient Button */
.btn-gradient {
    background: linear-gradient(135deg, #275d46 0%, #569578 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(39, 93, 70, 0.3);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #022b22 0%, #275d46 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(39, 93, 70, 0.4);
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.hero-cta .btn {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hero-cta .btn-primary {
    background: #ffffff;
    border: none;
    color: #275d46 !important;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 93, 70, 0.2);
}
.hero-cta .btn-secondary {
    background: #275d46;
    border: 2px solid #275d46;
    color: #ffffff !important;
}
.hero-cta .btn-secondary:hover {
    background: #569578;
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 14px 35px;
    background: #ffffff;
    color: #275d46 !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #569578;
    color: #ffffff !important;
    transform: scale(1.05);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Download Button */
.download-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: #275d46;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #022b22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 93, 70, 0.3);
    color: #ffffff !important;
}

/* ========================================
   Header CTA Buttons
======================================== */
.header-cta {
    display: flex;
    gap: 15px;
}

.header-cta .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 15px;
    }
    
    .btn-xl {
        padding: 16px 40px;
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header-cta {
        gap: 10px;
    }
    
    .header-cta .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}
/* CTA Section Buttons */
.cta-buttons .btn-secondary {
    color: #ffffff !important;
    background: #275d46;
    border: 2px solid #275d46;
}
.cta-buttons .btn-secondary:hover {
    color: #ffffff !important;
    background: #569578;
    border-color: #569578;
    transform: translateY(-3px);
}
