/* Global Styles */
:root {
    --primary-color: #006699;
    --secondary-color: #ff6600;
    --light-color: #f4f9fd;
    --dark-color: #333333;
    --gray-color: #f5f5f5;
    --border-color: #dddddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

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

body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    max-height: 100%;
    width: auto;
    margin: 5px 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 102, 153, 0.8), rgba(0, 68, 102, 0.9)), url('/static/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* URL Form */
.url-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 800px;
    margin: -3rem auto 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    margin-bottom: 1rem;
}

.form-control {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #005580;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #e55c00;
}

.form-group .btn {
    border-radius: 0 4px 4px 0;
}

/* Results Section */
.results {
    display: none;
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.results h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.result-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-item h3 {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.result-item h3 i {
    margin-right: 0.5rem;
    color: var(--warning-color);
}

.result-item p {
    margin-left: 1.8rem;
    color: #666;
}

.success {
    color: var(--success-color);
}

.warning {
    color: var(--warning-color);
}

.danger {
    color: var(--danger-color);
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--gray-color);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.feature-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* About Page */
.about-section {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: var(--gray-color);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 3rem 0;
}

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

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

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

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

/* Error Message */
.error-message {
    display: none;
    background-color: #ffeaea;
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-control {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .form-group .btn {
        border-radius: 4px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-text {
        order: 1;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
}

/* Progress Bar */
.progress-container {
    margin: 1.5rem 0;
    background-color: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 10px;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

/* Score Display */
.score-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.score-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    margin: 0 0.5rem;
}

.score-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #666;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
}

.score-high {
    color: var(--success-color);
}

.score-medium {
    color: var(--warning-color);
}

.score-low {
    color: var(--danger-color);
}

/* Charts and Visualizations */
.chart-container {
    margin: 2rem 0;
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Quick Tips Section */
.quick-tips {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
}

.quick-tips h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quick-tips ul {
    margin-left: 1.5rem;
}

.quick-tips li {
    margin-bottom: 0.5rem;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Free Consultation Button */
.free-consultation-container {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--light-color);
}

.btn-free-consultation {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background-color: var(--secondary-color);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-free-consultation:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-free-consultation:active {
    transform: translateY(1px);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 102, 0, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    }
}

/* Copyright */
.copyright-container {
    text-align: center;
    padding: 1.5rem 0;
    background-color: var(--dark-color);
    color: #ccc;
    font-size: 0.9rem;
}
