/* Modern Enhanced Styles for ftenso */

/* Global Enhancements */
body#ftenso {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    line-height: 1.7;
}

/* Header Styling */
#header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

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

.visual-image-container {
    text-align: center;
    margin: 3rem 0;
    padding: 0 1rem;
    max-width: 100%;
    overflow: hidden;
}

.visual-image {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 400px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.visual-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Title and Logo */
.title-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 1rem;
    flex-wrap: wrap;
}

.title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(0, 0, 0, 0.3);
    -webkit-text-fill-color: #ffffff;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.title-logo {
    max-width: 247px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

/* Content Sections */
.vl_content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.head_lead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    margin-bottom: 3.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.head_lead::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.head_lead > * {
    position: relative;
    z-index: 1;
}

.head_lead h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.head_lead p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.notice-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-left: 4px solid #ffd700;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.notice-box p {
    margin: 0;
}

.notice-box strong {
    font-size: 1.1rem;
}

.notice-box a {
    color: #ffd700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.notice-box a:hover {
    color: #fff;
}

/* Sections */
.pricing-section,
.terms-section,
.usage-section,
.contact-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out both;
}

.pricing-section {
    animation-delay: 0.3s;
}

.terms-section {
    animation-delay: 0.4s;
}

.usage-section {
    animation-delay: 0.5s;
}

.contact-section {
    animation-delay: 0.6s;
}

section h2.ver1 {
    color: #ffffff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.2rem 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

section h3.ver5 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-image-slice: 1;
    font-weight: 700;
    position: relative;
}

section h3.ver5::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Feature Table */
.feature-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
}

.feature-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    padding: 1.5rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    -webkit-text-fill-color: #ffffff;
}

.feature-table td {
    padding: 2rem 1.5rem;
    background: white;
    border-top: 1px solid #e8e8e8;
    line-height: 1.8;
}

.feature-table tr:first-child td {
    border-top: none;
}

.feature-table tr:hover td {
    background: #f8f9ff;
    transition: background 0.3s ease;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    transition: transform 0.2s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Links and Buttons */
.terms-section nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.terms-section a {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.15);
}

.terms-section a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.app-links {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e8e8ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.app-links p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 1.05rem;
}

.app-link {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.app-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.app-link:hover::before {
    left: 100%;
}

.app-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Contact Section */
.contact-section address {
    font-style: normal;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 5px solid #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-section address p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.contact-section a {
    color: #667eea;
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-section a:hover {
    color: #764ba2;
    transform: translateX(3px);
}

/* Footer */
#footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 2.5rem 1rem;
    margin-top: 5rem;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.returnTop a {
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.returnTop a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-logo-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .title {
        font-size: 1.6rem;
        padding: 0.6rem 1.2rem;
    }
    
    .visual-image {
        max-height: 300px;
    }
    
    .head_lead {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .head_lead h2 {
        font-size: 1.6rem;
    }
    
    .head_lead p {
        font-size: 1rem;
    }
    
    .feature-table th,
    .feature-table td {
        padding: 1.2rem;
        font-size: 0.95rem;
    }
    
    .feature-list li {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }
    
    .terms-section nav {
        flex-direction: column;
    }
    
    .terms-section a {
        text-align: center;
        justify-content: center;
    }
    
    .app-links {
        padding: 1.5rem;
    }
    
    .vl_content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .head_lead {
        padding: 1.5rem 1rem;
    }
    
    .head_lead h2 {
        font-size: 1.4rem;
    }
    
    .visual-image {
        max-height: 250px;
    }
    
    .app-link {
        display: block;
        text-align: center;
        padding: 1rem 1.5rem;
    }
    
    .contact-section address {
        padding: 1.5rem;
    }
    
    .feature-table th,
    .feature-table td {
        padding: 1rem 0.8rem;
    }
    
    section h2.ver1,
    section h3.ver5 {
        font-size: 1.3rem;
    }
}

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

/* Selection styling */
::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}
