/**
 * Thanks Page Styles
 * お問い合わせ完了ページのスタイル
 */

/* ==========================================================================
   Thanks Hero Section
   ========================================================================== */
.thanks-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

/* Background Animation */
.thanks-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.thanks-bg-animation .bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 134, 123, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

/* Confetti Animation */
.confetti-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    animation: confetti-fall 3s ease-out forwards;
    opacity: 0;
}

.confetti:nth-child(1) { left: 10%; background: #00867b; animation-delay: 0s; }
.confetti:nth-child(2) { left: 20%; background: #10b981; animation-delay: 0.2s; }
.confetti:nth-child(3) { left: 30%; background: #ffd700; animation-delay: 0.4s; }
.confetti:nth-child(4) { left: 40%; background: #ff69b4; animation-delay: 0.6s; }
.confetti:nth-child(5) { left: 50%; background: #00bfff; animation-delay: 0.8s; }
.confetti:nth-child(6) { left: 60%; background: #ff6347; animation-delay: 1s; }
.confetti:nth-child(7) { left: 70%; background: #9370db; animation-delay: 1.2s; }
.confetti:nth-child(8) { left: 80%; background: #32cd32; animation-delay: 1.4s; }
.confetti:nth-child(9) { left: 90%; background: #ff1493; animation-delay: 1.6s; }
.confetti:nth-child(10) { left: 95%; background: #ffa500; animation-delay: 1.8s; }

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Success Ripple Effect */
.success-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ripple {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: ripple-effect 3s ease-out infinite;
}

.ripple:nth-child(2) { animation-delay: 1s; }
.ripple:nth-child(3) { animation-delay: 2s; }

@keyframes ripple-effect {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Hero Content */
.thanks-hero .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

/* Success Icon */
.success-icon-wrapper {
    margin-bottom: 2rem;
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 134, 123, 0.3);
    animation: scaleIn 0.5s ease-out;
}

.checkmark {
    width: 80px;
    height: 80px;
    stroke-width: 3;
}

.checkmark-circle {
    stroke: var(--primary-color);
    animation: stroke 0.6s ease-out;
}

.checkmark-check {
    stroke: var(--primary-color);
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

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

/* Title and Message */
.thanks-title {
    margin-bottom: 1.5rem;
}

.thanks-title .title-main {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.thanks-title .title-sub {
    display: block;
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 400;
}

.thanks-message {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.thanks-message strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Email Notice */
.email-notice {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 134, 123, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 134, 123, 0.2);
}

.email-notice i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.email-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* ==========================================================================
   Next Steps Section
   ========================================================================== */
.next-steps {
    padding: 5rem 0;
    background: white;
}

.next-steps .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.5s; }
.timeline-item:nth-child(2) { animation-delay: 0.7s; }
.timeline-item:nth-child(3) { animation-delay: 0.9s; }
.timeline-item:nth-child(4) { animation-delay: 1.1s; }

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-marker {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 5px rgba(0, 134, 123, 0.2);
}

.timeline-marker i {
    font-size: 1.2rem;
    color: #6b7280;
}

.timeline-item.active .timeline-marker i {
    color: white;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.timeline-time {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(0, 134, 123, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* ==========================================================================
   Other Actions Section
   ========================================================================== */
.other-actions {
    padding: 3rem 0;
    background: #f8f9fa;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.action-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 134, 123, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.action-card.urgent .card-icon {
    background: rgba(239, 68, 68, 0.1);
}

.action-card.urgent .card-icon i {
    color: #ef4444;
}

.action-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.action-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--primary-dark);
}

.phone-hours {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Booking Button */
.btn-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 134, 123, 0.3);
}

.btn-booking:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 134, 123, 0.4);
}

.btn-booking i {
    font-size: 1.125rem;
}

.booking-note {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Update urgent card icon for booking */
.action-card.urgent .card-icon {
    background: rgba(0, 134, 123, 0.1);
}

.action-card.urgent .card-icon i {
    color: var(--primary-color);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* ==========================================================================
   Recommended Content Section
   ========================================================================== */
.recommended-content {
    padding: 5rem 0;
    background: white;
}

.recommended-content .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-thumbnail {
    height: 200px;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-meta .category {
    background: rgba(0, 134, 123, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* ==========================================================================
   Back to Home Button
   ========================================================================== */
.back-to-home {
    padding: 3rem 0;
    text-align: center;
    background: white;
}

.btn-primary.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 134, 123, 0.3);
}

.btn-primary.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 134, 123, 0.4);
    background: var(--primary-dark);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .thanks-title .title-main {
        font-size: 2rem;
    }
    
    .thanks-title .title-sub {
        font-size: 1rem;
    }
    
    .success-icon {
        width: 100px;
        height: 100px;
    }
    
    .checkmark {
        width: 60px;
        height: 60px;
    }
    
    /* Timeline Mobile */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item .timeline-content {
        margin-left: 80px !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-marker {
        left: 30px !important;
        width: 40px;
        height: 40px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .email-notice {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}