/* Custom CSS for BEST買取 */

:root {
    --primary-color: #0072bd;
    --secondary-color: #575554;
    --warning-color: #fbea07;
    --success-color: #06b92af0;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #edf0f3;
}

/* Global Styles */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.btn {
    font-weight: 600;
    border-radius: 0.5rem;
}

.phone-section {
    animation: pulse 2s infinite;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.feature-number {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Price Tags */
.price-tag {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* TITLE Section */
.title-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%);
    position: relative;
}

.title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.1)" points="0,0 1000,100 1000,0"/></svg>') no-repeat center top;
    background-size: 100% 50px;
}

/* Contact Section */
.contact-phone {
    position: relative;
    overflow: hidden;
}

.contact-phone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accordion */
.accordion-button {
    font-weight: 600;
    background-color: var(--light-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* Satisfaction Badge */
.satisfaction-badge {
    max-width: 400px;
    margin: 0 auto;
}

/* Modal Styles */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: none;
    border-radius: 1rem 1rem 0 0;
}

.modal-footer {
    border-top: none;
    border-radius: 0 0 1rem 1rem;
}

.phone-display {
    animation: phoneRing 4s infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.business-hours {
    background-color: var(--light-color) !important;
    border-left: 4px solid var(--primary-color);
}

/* Phone button hover effects */
.btn[data-bs-toggle="modal"] {
    transition: all 0.3s ease;
}

.btn[data-bs-toggle="modal"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Main Visual Section - Responsive Image Display */
.main-visual img {
    max-width: fit-content;
}

/* Desktop */
@media (min-width: 769px) {
    .pc {
        display: block;
    }

    .mobile {
        display: none;
    }
}

/* Mobile display - show mobile image, hide PC image */
@media (max-width: 768px) {
    .pc {
        display: none;
    }

    .mobile {
        display: block;
    }

}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .phone-number .fs-2 {
        font-size: 1.5rem !important;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        text-align: center;
    }
    
    .phone-section {
        margin-bottom: 2rem;
    }
    
    .feature-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #000;
}
