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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #2d3748;
    background-color: #f7fafc;
    line-height: 1.7;
    padding-bottom: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    color: #2d3748;
}

/* Hero Section */
.hero {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-image {
    width: 280px;
    height: 280px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 8px solid rgba(255, 255, 255, 0.3);
}

.hero-text {
    width: 100%;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-text .highlight {
    color: #f6e05e;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #f6e05e;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #2d3748;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background-color: white;
}

.features-image-center {
    max-width: 500px;
    margin: 0 auto 60px;
}

.features-image-center img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.features-image-center img:hover {
    transform: scale(1.03);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 45px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.feature-icon i {
    font-size: 2.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: 600;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #718096;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    transition: all 0.3s ease;
    border-top: 5px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-top-color: #667eea;
}

.testimonial-content {
    width: 100%;
}

.stars {
    color: #f6ad55;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #4a5568;
    font-style: italic;
}

.testimonial-author {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
}

/* How to Join Section */
.how-to-join {
    padding: 100px 20px;
    background-color: white;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    padding: 45px 30px;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    position: relative;
}

.step-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.step-card:hover::before {
    width: 100%;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.step-icon {
    width: 100px;
    height: 100px;
    background: #f7fafc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 2px solid #e2e8f0;
}

.step-icon i {
    font-size: 2.2rem;
    color: #667eea;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 600;
}

.step-card p {
    font-size: 1rem;
    color: #718096;
    line-height: 1.7;
}

.step-arrow {
    font-size: 2.5rem;
    color: #667eea;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Legal Popup */
.legal-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.popup-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    position: relative;
    z-index: 2001;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.popup-header h3 {
    margin: 0;
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    color: #2d3748;
}

.popup-content-item h4 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.popup-content-item h5 {
    color: #4a5568;
    font-size: 1.1rem;
    margin: 25px 0 15px;
    font-weight: 600;
}

.popup-content-item p {
    color: #718096;
    line-height: 1.8;
    margin-bottom: 15px;
}

.popup-content-item ul {
    color: #718096;
    margin-left: 25px;
    margin-bottom: 15px;
}

.popup-content-item li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Fixed Bottom Button */
.fixed-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
    padding: 22px 70px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5);
}

.cta-button:active {
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 60px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1;
    min-width: 280px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 25px;
    font-weight: 600;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.company-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.company-info i {
    color: #667eea;
    font-size: 1rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.company-name {
    font-weight: 600;
    color: white !important;
    font-size: 1rem !important;
}

.company-address,
.company-tel,
.company-hours {
    padding-left: 0;
}

.company-address {
    line-height: 1.7 !important;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex: 2;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 200px;
}

.footer-column h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
}

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

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 0 auto 40px;
    max-width: 1200px;
}

.footer-bottom {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: #667eea;
    text-decoration: underline;
}

.legal-links span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-image {
        width: 220px;
        height: 220px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }

    .cta-button {
        font-size: 1.1rem;
        padding: 18px 50px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 40px;
    }

    .footer-column {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 70px 15px;
    }

    .hero-image {
        width: 180px;
        height: 180px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 40px;
    }

    .features {
        padding: 70px 15px;
    }

    .features-image-center {
        margin-bottom: 40px;
    }

    .feature-card {
        padding: 35px 20px;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .feature-icon i {
        font-size: 2rem;
    }

    .testimonials {
        padding: 70px 15px;
    }

    .testimonial-card {
        padding: 35px 25px;
    }

    .how-to-join {
        padding: 70px 15px;
    }

    .step-card {
        padding: 35px 20px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 16px 40px;
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        text-align: center;
    }

    .footer-brand {
        min-width: 100%;
        text-align: center;
    }

    .company-info {
        align-items: center;
    }

    .company-info p {
        font-size: 0.9rem;
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .footer-column {
        width: 100%;
        min-width: 100%;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}