/* カー92 - 自社ローン専門店 カスタムCSS */

/* Google Fonts for Gothic Style */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&display=swap');

:root {
    --primary-pink: #ec4899;
    --primary-rose: #f43f5e;
    --primary-fuchsia: #d946ef;
    --light-pink: #fce7f3;
    --white: #ffffff;
    --gothic-font: 'Cinzel', serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    position: relative;
    background-color: #fefefe;
}

/* Enhanced Paisley Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Paisley-like curved shapes - More visible */
        radial-gradient(ellipse 60px 120px at 10% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50px 100px at 90% 80%, rgba(217, 70, 239, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70px 140px at 30% 60%, rgba(244, 63, 94, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 55px 110px at 70% 40%, rgba(236, 72, 153, 0.11) 0%, transparent 50%),
        radial-gradient(ellipse 65px 130px at 50% 90%, rgba(217, 70, 239, 0.10) 0%, transparent 50%),
        /* Additional smaller details */
        radial-gradient(ellipse 30px 60px at 15% 35%, rgba(244, 63, 94, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 35px 70px at 85% 65%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    background-size: 
        300px 600px, 280px 560px, 320px 640px, 290px 580px, 310px 620px,
        150px 300px, 160px 320px;
    background-position: 
        0 0, 150px 300px, 300px 100px, 450px 400px, 600px 200px,
        75px 150px, 375px 450px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
    animation: paisley-float 60s ease-in-out infinite;
}

@keyframes paisley-float {
    0%, 100% {
        background-position: 0 0, 150px 300px, 300px 100px, 450px 400px, 600px 200px;
    }
    50% {
        background-position: 50px 50px, 200px 350px, 350px 150px, 500px 450px, 650px 250px;
    }
}

/* Decorative Paisley Elements using CSS */
.paisley-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.paisley-decoration.top-left {
    top: 80px;
    left: 20px;
    width: 200px;
    height: 400px;
    opacity: 1;
}

.paisley-decoration.top-left::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 300px;
    background: radial-gradient(ellipse at 50% 30%, rgba(236, 72, 153, 0.25), transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(-30deg);
    box-shadow: 
        inset 0 0 30px rgba(236, 72, 153, 0.3),
        0 0 40px rgba(236, 72, 153, 0.2);
}

.paisley-decoration.top-left::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 30px;
    width: 100px;
    height: 200px;
    background: radial-gradient(ellipse at 50% 40%, rgba(217, 70, 239, 0.20), transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(-20deg);
    box-shadow: 
        inset 0 0 25px rgba(217, 70, 239, 0.25),
        0 0 35px rgba(217, 70, 239, 0.15);
}

.paisley-decoration.bottom-right {
    bottom: 80px;
    right: 20px;
    width: 180px;
    height: 360px;
    opacity: 1;
}

.paisley-decoration.bottom-right::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 280px;
    background: radial-gradient(ellipse at 50% 30%, rgba(244, 63, 94, 0.25), transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(30deg);
    box-shadow: 
        inset 0 0 30px rgba(244, 63, 94, 0.3),
        0 0 40px rgba(244, 63, 94, 0.2);
}

.paisley-decoration.bottom-right::after {
    content: '';
    position: absolute;
    top: 50px;
    right: 30px;
    width: 90px;
    height: 180px;
    background: radial-gradient(ellipse at 50% 40%, rgba(236, 72, 153, 0.20), transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(20deg);
    box-shadow: 
        inset 0 0 25px rgba(236, 72, 153, 0.25),
        0 0 35px rgba(236, 72, 153, 0.15);
}

/* Gothic Decorative Elements */
.gothic-border {
    border: 2px solid var(--primary-pink);
    border-image: repeating-linear-gradient(
        45deg,
        var(--primary-pink),
        var(--primary-pink) 10px,
        var(--primary-rose) 10px,
        var(--primary-rose) 20px
    ) 1;
    position: relative;
}

.gothic-border::before,
.gothic-border::after {
    content: '◆';
    position: absolute;
    color: var(--primary-pink);
    font-size: 20px;
}

.gothic-border::before {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.gothic-border::after {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Ornamental Divider */
.ornamental-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.ornamental-divider::before,
.ornamental-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-pink), transparent);
}

.ornamental-divider::before {
    left: 0;
}

.ornamental-divider::after {
    right: 0;
}

.ornamental-divider span {
    display: inline-block;
    padding: 0 1rem;
    background: white;
    color: var(--primary-pink);
    font-family: var(--gothic-font);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Gothic Section Headers */
.gothic-header {
    font-family: var(--gothic-font);
    position: relative;
    display: inline-block;
    padding: 0.5rem 2rem;
}

.gothic-header::before,
.gothic-header::after {
    content: '❖';
    position: absolute;
    color: var(--primary-pink);
    font-size: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.gothic-header::before {
    left: 0;
}

.gothic-header::after {
    right: 0;
}

/* Fixed Phone Button */
.fixed-phone-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #ec4899, #d946ef);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-phone 2s infinite;
}

.fixed-phone-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.6);
}

@keyframes pulse-phone {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(236, 72, 153, 0.7);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

/* Logo Styles */
img[alt*="オートサロン92"],
img[alt*="ロゴ"] {
    filter: drop-shadow(0 4px 8px rgba(236, 72, 153, 0.3));
    transition: all 0.3s ease;
}

img[alt*="オートサロン92"]:hover,
img[alt*="ロゴ"]:hover {
    filter: drop-shadow(0 8px 16px rgba(236, 72, 153, 0.5));
    transform: scale(1.05);
}

nav img[alt*="ロゴ"] {
    transition: transform 0.3s ease;
}

nav img[alt*="ロゴ"]:hover {
    transform: rotate(-5deg) scale(1.1);
}

.animate-float {
    animation: float-logo 4s ease-in-out infinite;
}

@keyframes float-logo {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Feature Cards with Paisley Overlay */
.feature-card {
    transform: translateY(0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: 
        radial-gradient(ellipse 40px 80px at 20% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 35px 70px at 80% 70%, rgba(255, 255, 255, 0.55) 0%, transparent 50%),
        radial-gradient(ellipse 45px 90px at 50% 50%, rgba(255, 255, 255, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 30px 60px at 65% 35%, rgba(255, 255, 255, 0.45) 0%, transparent 50%);
    background-size: 120px 240px, 100px 200px, 130px 260px, 80px 160px;
    background-position: 0 0, 60px 120px, 120px 60px, 180px 180px;
    background-repeat: repeat;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover::before {
    animation: paisley-card-float 3s ease-in-out infinite;
}

@keyframes paisley-card-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(5px, 5px) rotate(2deg);
    }
}

/* Gothic Corner Decorations */
.gothic-corner {
    position: relative;
}

.gothic-corner::before,
.gothic-corner::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-pink);
}

.gothic-corner::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.gothic-corner::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

/* Vehicle Cards */
.vehicle-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-8px);
}

/* Flow Steps */
.flow-step {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.flow-step:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(10px);
}

.step-number {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

/* Testimonial Cards */
.testimonial-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Scroll Top Button */
#scroll-top {
    transition: opacity 0.3s, transform 0.3s;
}

#scroll-top.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .fixed-phone-btn span {
        display: none;
    }
    
    .fixed-phone-btn {
        width: 60px;
        height: 60px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

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

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-pink);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-pink), var(--primary-rose));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-rose), var(--primary-fuchsia));
}

/* Selection Color */
::selection {
    background: var(--primary-pink);
    color: white;
}

::-moz-selection {
    background: var(--primary-pink);
    color: white;
}

/* Button Hover Effects */
a[href^="tel"],
button {
    cursor: pointer;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Print Styles */
@media print {
    .fixed-phone-btn,
    #scroll-top,
    nav {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    .bg-gradient-to-r,
    .bg-gradient-to-br {
        background: #ec4899 !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed in the future */
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 50px;
    }
}

/* Tablet Specific */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Large Desktop */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
}

/* Interaction Feedback */
button:active,
a:active {
    transform: scale(0.98);
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid var(--primary-pink);
    outline-offset: 2px;
}

/* Image Loading */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Card Shadows on Hover */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-fuchsia));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge Pulse */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: badge-pulse 2s ease-in-out infinite;
}

/* Vehicle Cards with Paisley */
.vehicle-card {
    transform: translateY(0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vehicle-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse 30px 60px at 15% 25%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 35px 70px at 85% 75%, rgba(217, 70, 239, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 25px 50px at 50% 50%, rgba(244, 63, 94, 0.10) 0%, transparent 50%);
    background-size: 100px 200px, 110px 220px, 80px 160px;
    background-position: 0 0, 50px 100px, 100px 50px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 1;
}

.vehicle-card > * {
    position: relative;
    z-index: 2;
}

.vehicle-card:hover {
    transform: translateY(-8px);
}

/* Testimonial Cards with Paisley */
.testimonial-card {
    transform: translateY(0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 120%;
    height: 120%;
    background-image: 
        radial-gradient(ellipse 25px 50px at 80% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 30px 60px at 20% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
    background-size: 80px 160px, 90px 180px;
    background-position: 0 0, 40px 80px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Section Backgrounds with Paisley */
section {
    position: relative;
}

section.bg-gray-50::before,
section.bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse 50px 100px at 25% 25%, rgba(236, 72, 153, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse 45px 90px at 75% 75%, rgba(217, 70, 239, 0.02) 0%, transparent 50%);
    background-size: 250px 500px, 230px 460px;
    background-position: 0 0, 125px 250px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

section > * {
    position: relative;
    z-index: 1;
}