/* Custom CSS for Rakuten Mobile Landing Page */

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

body {
    font-family: "Zen Maru Gothic", sans-serif;
    background-color: #fdfdfd;
    color: #1a1a1a;
    line-height: 1.6;
}

.ccm-page,
.main-content {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Navigation Styles */
.navigation {
    background-color: #cc3600;
    width: 100%;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    width: 100%;
    gap: 32px;
}

.nav-desktop {
    display: none;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    max-width: 1000px;
    width: 100%;
}

.nav-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    color: #fdfdfd;
    font-weight: 900;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}

.nav-item:hover {
    background-color: #fdfdfd;
    color: #cc3600;
}

.nav-item.active {
    border-bottom: 1px solid #fdfdfd;
}

.nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.mobile-menu-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-button img {
    width: 24px;
    height: 24px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: #cc3600;
    z-index: 50;
    display: none;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
}

.mobile-menu-header .nav-item {
    display: none;
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-close img {
    width: 24px;
    height: 24px;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 24px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    color: white;
    font-weight: 900;
    font-size: 18px;
}

/* Tab Styles */
.tab-button {
    border: 2px solid;
    border-bottom: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active-tab {
    color: white !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

/* Custom Font Weights */
.font-black {
    font-weight: 900;
}

.font-bold {
    font-weight: 700;
}

/* Custom Utilities */
.bg-size-custom {
    background-size: 100% 100%;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Button Hover Effects */
.page-top button:hover,
a:hover {
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (min-width: 768px) {
/*    .mobile-menu-header .nav-item {
        display: inline-block;
    }*/
}

/* Responsive Image Backgrounds */
@media (max-width: 768px) {
    .hero-bg-mobile {
        background-size: cover;
        background-position: center;
    }
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
button:focus,
a:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Custom SVG Icon Hover */
.icon-hover:hover svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 0.875rem;
    }

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

    .gap-responsive {
        gap: 1rem;
    }
}

/* Tab specific background colors */
.tab-business {
    background-color: #f0f7ff;
}

.tab-family {
    background-color: #ecf7f2;
}

.tab-senior {
    background-color: #fdf4f1;
}

/* Price highlight animation */
.price-highlight {
    position: relative;
}

.price-highlight::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffcc00, #ff9900);
    border-radius: 2px;
}

.txt-read {
}
/* Card hover effects */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tab-button {
        border-width: 3px;
    }

    button,
    a {
        font-weight: 700;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}
