/* Variable Definitions */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --secondary-color: #ff9900;
    --text-color: #333333;
    --light-text: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --container-width: 1140px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 42px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 8px 22px;
    /* Adjust for border */
}

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

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    /* Header height + space */
    padding-bottom: 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 80px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text-color);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 550px;
    /* Realistic Photographic Device Mockup Composite */
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    position: absolute;
    /* Maintain intensity, Halve range/spread */
    box-shadow:
        0 30px 60px -8px rgba(0, 0, 0, 0.6),
        0 18px 36px -12px rgba(0, 0, 0, 0.7),
        inset 0 0 2px 2px rgba(255, 255, 255, 0.9);
    overflow: hidden;
    /* High-Gloss Chrome Plated Finish */
    background: linear-gradient(135deg,
            #ffffff 0%,
            #e0e0e0 20%,
            #ffffff 40%,
            #d1d1d1 45%,
            #ffffff 50%,
            #99a1a1 55%,
            #ffffff 70%,
            #b0b0b0 100%);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.device-mockup.pc {
    width: 640px;
    aspect-ratio: 16 / 10;
    top: 30px;
    left: 40px;
    /* Chrome Bezel */
    border: 3px solid #f8f8f8;
    border-radius: 10px 10px 2px 2px;
    z-index: 1;
}

.device-mockup.pc::after {
    /* Chrome Plated Stand */
    content: '';
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 48px;
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 30%, #a1a1a1 100%);
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
    z-index: -1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.device-mockup.mobile {
    width: 210px;
    aspect-ratio: 9 / 18;
    bottom: 10px;
    right: 40px;
    left: auto;
    z-index: 3;
    /* Polished Chrome Frame */
    border: 5px solid #ffffff;
    border-radius: 40px;
    box-shadow:
        25px 40px 80px -10px rgba(0, 0, 0, 0.8),
        inset 0 0 5px rgba(255, 255, 255, 1);
}

.hero:hover .device-mockup.pc {
    transform: perspective(1000px) rotateY(-3deg) translateY(-10px) scale(1.02);
}

.hero:hover .device-mockup.mobile {
    transform: perspective(1000px) rotateY(10deg) translateY(-20px) scale(1.05);
}

.device-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Ensure the header of the app is visible */
    display: block;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* Section Common */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin: 15px 0;
}

.badge {
    background: #f0f0f0;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
}

.badge.blue {
    background: #e8f5e9;
    /* Pastel Green */
    color: #2e7d32;
}

.badge.gray {
    background: #f3e5f5;
    /* Pastel Purple */
    color: #7b1fa2;
}

.section-marker {
    background: #fff3e0;
    /* Default Pastel Orange for Problem */
    color: #ef6c00;
    font-size: 1.2rem;
    padding: 8px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: floatMarker 3s ease-in-out infinite;
    display: inline-block;
    margin-bottom: 20px;
}

@keyframes floatMarker {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Problem Section */
.problem {
    background: var(--white);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.problem-item {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}

.problem-item:hover {
    background: #fffdf5;
    /* subtle highlight */
    transform: translateY(-5px);
}

.problem-item p {
    text-align: left;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: #fff3e0;
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* Features Section */
.features {
    background: var(--bg-light);
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-text h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.feature-image {
    flex: 1;
}

.shadow-img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px solid #eee;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

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

.feature-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.btn-white:hover {
    background: #f1f1f1;
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    padding: 12px 30px;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.site-footer {
    background: #222;
    color: #bbb;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-info p {
    font-size: 0.9rem;
    color: #888;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom-flex {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

.powered-by-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #888;
    font-size: 0.85rem;
    transition: opacity 0.3s;
}

.powered-by-link:hover {
    opacity: 0.8;
    color: var(--white);
}

.powered-by-link img {
    height: 24px;
    width: auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block !important;
    }

    .site-header .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 1px solid #eee;
        z-index: 1000;
    }

    .site-header .main-nav.active {
        display: block;
    }

    .site-header .main-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .header-cta {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        padding-top: 20px;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        height: 400px;
    }

    .device-mockup.pc {
        width: 90%;
        left: 5%;
        top: 20px;
    }

    .device-mockup.mobile {
        width: 120px;
        left: 0;
        bottom: 0;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .problem-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
/* Help Center Modal */
.help-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.help-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.help-modal {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.help-modal-overlay.active .help-modal {
    transform: translateY(0);
}

.help-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.help-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.help-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.help-modal-close:hover {
    color: #333;
}

.help-modal-body {
    padding: 30px;
    overflow-y: auto;
    line-height: 1.8;
    color: #444;
}

.help-modal-body h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.help-modal-body h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
}

.help-modal-body ol, .help-modal-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.help-modal-body li {
    margin-bottom: 10px;
}

.help-modal-body .alert {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #e65100;
}

.help-modal-body .info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #0d47a1;
}

.help-modal-footer {
    padding: 15px 30px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #fff;
}

