/* Main Stylesheet for Landing Page */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Yu Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic Pro', Meiryo, 'MS PGothic', sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo img {
    height: 40px;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
}

.nav a:hover {
    color: #ffffff;
}

/* User Menu */
.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hide mobile payment button on desktop */
.mobile-payment-btn {
    display: none;
}

.user-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    border-radius: 50%;
    transition: all 0.3s;
    border: 2px solid #90caf9;
    background: #e3f2fd;
    flex-shrink: 0;
}

.user-icon:hover {
    background: #bbdefb;
    border-color: #64b5f6;
}

.user-icon svg {
    width: 24px;
    height: 24px;
}

.user-icon svg path {
    stroke: #1976d2;
    fill: rgba(255, 255, 255, 0);
}

.user-icon svg {
    width: 24px;
    height: 24px;
}

.user-info-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    min-width: 0;
}

.user-info-text .user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.user-info-text .user-period {
    font-size: 13px;
    color: #666;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 125px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
    margin-top: 5px;
    width: 210px;
}

.user-dropdown a {
    text-decoration: none;
    color: #333;
}

.user-dropdown a:hover {
    background: #f0f7ff;
    color: #0066cc;
}

/* Show dropdown only when hovering over user-icon or the dropdown itself (PC) */
.user-icon:hover ~ .user-dropdown,
.user-dropdown:hover,
.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

.dropdown-item:first-child {
    border-top: none;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f0f7ff;
    color: #0066cc;
    padding-left: 1.5rem;
}

.dropdown-item span {
    display: block;
    letter-spacing: 0.5px;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}

.dropdown-section-header {
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-subscription-info {
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.subscription-status,
.subscription-next-billing {
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-trialing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-past_due {
    background: #fff3cd;
    color: #856404;
}

.status-incomplete {
    background: #f8d7da;
    color: #721c24;
}

.dropdown-button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
    color: inherit;
}

.dropdown-button:hover {
    background-color: #f0f7ff;
    color: #0066cc;
    padding-left: 1.5rem;
}

/* Hide mobile-only dropdown items on PC (screens wider than 968px) */
.user-dropdown .mobile-only-dropdown {
    display: none;
}

/* Ensure user menu appears in same position as btn-secondary */
.user-menu {
    margin: 0;
    vertical-align: middle;
}

/* Buttons */
.btn-primary {
    background: #0066cc;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    cursor: pointer;
}

.btn-primary:hover {
    background: #72acf8;
}

.btn-secondary {
    background: #fff;
    color: #0066cc;
    padding: 0.55rem 1rem;
    border: 1px solid #0066cc;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #0066cc;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #000000;
    padding: 0.55rem 1rem;
    border: 1px solid #0066cc;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #004d99;
    color: #fff;
}

.btn-large {
    padding: 0.7rem 1.5rem;
    font-size: 1.1rem;;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero-content-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.hero-content-inner-left {
    width: 50%;
    text-align: left;
}   

.hero-content-inner-right {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content-inner-right img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.hero-content-inner-left h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content-inner-left p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Hero Preview - Swiper */
.hero-preview {
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.card-swiper {
    width: 100%;
    padding-bottom: 60px;
}

.card-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.card-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    object-fit: contain;
}

.card-swiper .swiper-button-next,
.card-swiper .swiper-button-prev {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.card-swiper .swiper-button-next:hover,
.card-swiper .swiper-button-prev:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.card-swiper .swiper-button-next::after,
.card-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.card-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
}

.card-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: #f5f5f5;
}

.features h2,
.howto h2,
.pricing h2,
.tools-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Philosophy Section */
.philosophy-section {
    padding: 4rem 0;
    background: #fff;
}

/* DX Integration Section */
.dx-integration-section {
    padding: 5rem 0 3.2rem 0;
    background: #ebebeb;
    position: relative;
    overflow: hidden;
    border-radius: 3rem 3rem 0 0;
}

.dx-integration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08), transparent);
}

.dx-integration-content {
    /* max-width: 900px; */
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    padding: 5.1rem 10rem 4.8rem;
    background: #fff;
    border-radius: 2.5rem;
    box-shadow: 0px 4px 3px 3px #0000006e
}

.dx-tagline {
    font-size: 1rem;
    color: #333;
    /* margin-bottom: 0.5rem; */
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.dx-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #e91e63;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(233, 30, 99, 0.1);
}

.dx-subtitle {
    font-size: 1rem;
    color: #333;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 500;
}

.dx-product-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    /* padding: 2.5rem 0; */
    /* border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0; */
}

.dx-logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dx-logo {
    width: 30rem;
    /* height: 80px; */
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.dx-logo:hover {
    transform: scale(1.05);
}

.dx-product-name-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    justify-content: center;
}

.dx-tool-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}

.dx-product-name {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.dx-ai-highlight {
    color: #e53935;
    font-weight: 800;
    position: relative;
}

.dx-ai-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(229, 57, 53, 0.3), transparent);
    border-radius: 2px;
}

/* Automation Process Section */
.automation-card-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4.8rem;
}

.automation-section {
    padding: 5rem 0;
    background: #ebebeb;
    position: relative;
    border-radius: 0 0 3rem 3rem;
    background-image: url('../images/lp/image4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.automation-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.automation-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    /* padding-bottom: 1rem; */
}

.automation-title::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #333;
}

.automation-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 0 0;
    padding: 0;
}

.automation-card {
    padding: 2.5rem 0rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    gap: 2.6rem;
    border-bottom: 1px solid #fff;
    width: 38rem;
}

.automation-card:hover {
    transform: translateY(-5px);
}

.automation-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
}

.automation-icon svg {
    width: 80%;
    height: 80%;
}

.automation-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: left;
}

.automation-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    display: block;
    margin-top: 0.25rem;
}

.automation-description {
    font-size: 1rem;
    color: #fff;
    line-height: 1.8;
    margin: 0;
    width: 26rem;
}

/* Odd-numbered images row - displayed horizontally */
.philosophy-images-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

.philosophy-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.philosophy-image-layer {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Aspect ratio placeholder */
}

.philosophy-image-odd,
.philosophy-image-even {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.philosophy-image-odd {
    z-index: 2;
    opacity: 1;
}

.philosophy-image-even {
    z-index: 1;
    opacity: 0;
}

/* Animation with initial wait, sequential change to even, then simultaneous revert to odd */
/* Cycle: Initial wait (all odd) -> Sequential to even -> Wait (all even) -> Simultaneous to odd -> Wait (all odd) -> Repeat */
.philosophy-image-wrapper:nth-child(1) .philosophy-image-odd {
    animation: fadeOutOdd 20s ease-in-out infinite;
}

.philosophy-image-wrapper:nth-child(1) .philosophy-image-even {
    animation: fadeInEven 20s ease-in-out infinite;
}

.philosophy-image-wrapper:nth-child(2) .philosophy-image-odd {
    animation: fadeOutOdd 20s ease-in-out infinite;
    animation-delay: 4s;
}

.philosophy-image-wrapper:nth-child(2) .philosophy-image-even {
    animation: fadeInEven 20s ease-in-out infinite;
    animation-delay: 4s;
}

.philosophy-image-wrapper:nth-child(3) .philosophy-image-odd {
    animation: fadeOutOdd 20s ease-in-out infinite;
    animation-delay: 8s;
}

.philosophy-image-wrapper:nth-child(3) .philosophy-image-even {
    animation: fadeInEven 20s ease-in-out infinite;
    animation-delay: 8s;
}

@keyframes fadeOutOdd {
    /* Initial wait: all odd visible (0-4s = 0-20%) */
    0%, 20% {
        opacity: 1;
    }
    /* First div fades to even (4-4.6s = 20-23%) */
    23% {
        opacity: 0;
    }
    /* Stay on even until all three have changed (4.6-12.6s = 23-63%) */
    63% {
        opacity: 0;
    }
    /* Wait period with all even (12.6-16s = 63-80%) */
    80% {
        opacity: 0;
    }
    /* All simultaneously revert to odd (16-16.6s = 80-83%) */
    83% {
        opacity: 1;
    }
    /* Wait period with all odd, like initial wait (16.6-20s = 83-100%) */
    100% {
        opacity: 1;
    }
}

@keyframes fadeInEven {
    /* Initial wait: even hidden (0-4s = 0-20%) */
    0%, 20% {
        opacity: 0;
    }
    /* First div fades to even (4-4.6s = 20-23%) */
    23% {
        opacity: 1;
    }
    /* Stay on even until all three have changed (4.6-12.6s = 23-63%) */
    63% {
        opacity: 1;
    }
    /* Wait period with all even (12.6-16s = 63-80%) */
    80% {
        opacity: 1;
    }
    /* All simultaneously revert to odd (16-16.6s = 80-83%) */
    83% {
        opacity: 0;
    }
    /* Stay hidden during wait period (16.6-20s = 83-100%) */
    100% {
        opacity: 0;
    }
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.philosophy-column {
    display: flex;
    flex-direction: column;
}

.philosophy-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.philosophy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.philosophy-header {
    padding: 2rem 1.5rem 1rem;
}

.philosophy-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-align: center;
}

.philosophy-arrow {
    text-align: center;
    font-size: 2rem;
    color: #dc3545;
    font-weight: bold;
    padding: 0.5rem 0;
}

.philosophy-content {
    padding: 0 1.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.philosophy-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.philosophy-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    flex: 1;
}

.philosophy-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.philosophy-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.philosophy-feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 8px;
}

.philosophy-feature-content {
    flex: 1;
}

.philosophy-feature-content strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.philosophy-feature-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* How to Use Section */
.howto {
    padding: 4rem 0;
    background: #f5f5f5;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.step-number {
    font-size: 0.9rem;
    color: #0066cc;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
    background: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Video Section */
.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Increased height for better visibility (approximately 4:3 aspect ratio) */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
    min-height: 500px; /* Minimum height for larger displays */
}

@media (min-width: 768px) {
    .video-wrapper {
        padding-bottom: 65%; /* Slightly taller on tablets */
        min-height: 300px;
    }
}

@media (min-width: 1024px) {
    .video-wrapper {
        padding-bottom: 70%; /* Even taller on desktop */
        min-height: 450px;
    }
}

.service-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-description {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tools & Communication Section */
.tools-section {
    padding: 4rem 0;
    background: #fff;
}

.tools-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tools-subsection {
    margin-bottom: 4rem;
}

.communication-subsection {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid #e0e0e0;
}

.subsection-title {
    font-size: 1.5rem;
    color: #0066cc;
    margin-bottom: 1rem;
    text-align: center;
}

.subsection-description {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.tool-number {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.tool-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.tool-type {
    display: inline-block;
    background: #e8f4f8;
    color: #0066cc;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.tool-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.tool-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.tool-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

.communication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Crossfade container for smooth transitions */
.crossfade-container {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.communication-category {
    background: #ffe9b4;
    padding: 4.5rem 6rem;
    border-radius: 32px;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    height: 31.5rem;
}

.communication-category.active {
    opacity: 1;
    visibility: visible;
}

.comm-icon-img {
    width: 30px;
    float: left;
}

.category-title {
    font-size: 1.3rem;
    color: #0066cc;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

.category-note {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.communication-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 4rem;
    justify-items: center;
}

.communication-list li {
    background: #fff;
    width: 96px;
    height: 96px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.communication-list li img {
    width: 60%;
    height: auto;
}

.communication-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.category-future {
    color: #000;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed #000;
}

.contact-save-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-block: 2rem;
    border: 1px solid #e0e0e0;
}

.info-title {
    font-size: 1.2rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

.contact-save-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.save-button-demo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.save-btn {
    background: #0066cc;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.save-btn:hover {
    background: #0052a3;
}

.footer-save-btn {
    text-decoration: underline;
    margin-top: 0.5rem;
}

.save-note {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.pricing-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid #0066cc;
}

.badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #0066cc;
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.pricing-amount {
    font-size: 1rem;
    font-weight: bold;
    color: #0066cc;
    margin: 1rem 0;
}

.pricing-amount span {
    font-size: 1rem;
    color: #666;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* CTA Section */
.cta {
    background: #0066cc;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: #f5f5f5;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #666;
    text-decoration: none;
}

.footer-section .footer-save-btn {
    color: #fff;
    text-decoration: underline;
}

.footer-section a:hover {
    color: #0066cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    color: #666;
}

/* Responsive */
/* Tablet styles (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .dx-integration-content {
        padding: 4rem 4rem 3.5rem !important;
    }

    .dx-logo {
        width: 25rem;
    }

    .automation-content {
        flex-direction: column !important;
    }

    .automation-grid {
        margin: 0 auto !important;
    }

    .automation-card {
        width: 100% !important;
        max-width: 600px !important;
    }

    .automation-description {
        width: 100% !important;
    }

    /* Communication Category - Tablet */
    .communication-category {
        padding: 3.5rem 4rem !important;
        height: auto !important;
        min-height: auto !important;
    }

    .communication-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.1rem !important;
        margin-bottom: 3rem !important;
    }

    .communication-list li {
        width: 88px !important;
        height: 88px !important;
    }

    .category-future {
        font-size: 0.85rem !important;
    }

    .hero {
        padding: 3rem 0;
    }
    
    .hero-content-inner {
        gap: 2rem;
    }
    
    .hero-content-inner-left h1 {
        font-size: 2rem;
    }
    
    .hero-content-inner-left p {
        font-size: 1.1rem;
    }
    
    .hero-content-inner-right img {
        max-width: 400px;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .hero-buttons a {
        font-size: 1rem;
        padding: 0.65rem 1.3rem;
    }
}

/* Mobile styles (SP - 768px and below) */
@media (max-width: 768px) {
    .nav {
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .nav > a:not(.btn-primary):not(.btn-secondary) {
        display: none; /* Hide nav links on mobile, keep buttons */
    }
    
    .user-menu {
        order: -1; /* Show user menu before buttons */
    }
    
    .user-dropdown {
        right: 0;
        left: auto;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero-content-inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content-inner-left {
        width: 100%;
        text-align: center;
    }
    
    .hero-content-inner-left h1 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-content-inner-left p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content-inner-left p br {
        display: none;
    }
    
    .hero-content-inner-right {
        width: 100%;
    }
    
    .hero-content-inner-right img {
        max-width: 100%;
        width: 80%;
    }
    
    .tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 50%;
        text-align: center;
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
    
    .hero-preview {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .card-swiper .swiper-slide img {
        max-width: 100%;
    }
    
    .card-swiper .swiper-button-next,
    .card-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .card-swiper .swiper-button-next::after,
    .card-swiper .swiper-button-prev::after {
        font-size: 16px;
    }
    
    .video-container {
        padding: 0 1rem;
    }
    
    .pricing h2 {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .communication-grid {
        grid-template-columns: 1fr;
    }
    
    .communication-category {
        padding: 3rem 2.5rem !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .communication-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
        margin-bottom: 2.5rem !important;
    }

    .communication-list li {
        width: 80px !important;
        height: 80px !important;
    }

    .category-future {
        font-size: 0.8rem !important;
    }
    
    .tools-section h2,
    .subsection-title {
        font-size: 1.5rem;
    }
    
    .save-button-demo {
        flex-direction: column;
        align-items: flex-start;
    }

    .dx-integration-content {
        padding: 3.5rem 2rem 3rem !important;
    }

    .dx-logo {
        width: 20rem;
    }
}

