/* Service Page Styles - MDS Fund Structure */

/* CSS Variables - Same as Top Page */
:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #06b6d4;
    --accent-secondary: #0891b2;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-dark: #0f172a;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Hero Section - Uses same styles as top page */

/* Main Services Section - MDS Fund Style */
.main-services {
    padding: 100px 0;
    background-color: #fff;
}

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

.main-service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
    padding: 40px 0;
}

.main-service-item:nth-child(even) {
    direction: rtl;
}

.main-service-item:nth-child(even) .main-service-item__content {
    direction: ltr;
}

.main-service-item__image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-service-item:hover .service-main-img {
    transform: scale(1.05);
}

.main-service-item__content {
    padding: 40px;
}

.main-service-item__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.main-service-item__subtitle {
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 25px;
    font-weight: 600;
}

.main-service-item__description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 35px;
}

.main-service-item__btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.main-service-item__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Other Services Section - MDS Fund Style */
.other-services {
    padding: 100px 0;
    background-color: #f8f9fa;
}

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

.other-services__title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    letter-spacing: 1px;
}

.other-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.other-service-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.other-service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.other-service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.other-service-item__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.other-service-item__icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.service-icon {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.other-service-item__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.other-service-item__description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.other-service-item__link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.other-service-item__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.other-service-item__link:hover::after {
    width: 100%;
}

/* Contact Section - MDS Fund Style */
.service-contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
}

.service-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.service-contact__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.service-contact__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.service-contact__info {
    margin-bottom: 40px;
}

.service-contact__phone,
.service-contact__email {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
    opacity: 1;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.service-contact__btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 2px solid #fff;
    padding: 18px 45px;
    border-radius: 35px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-contact__btn::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;
}

.service-contact__btn:hover::before {
    left: 100%;
}

.service-contact__btn:hover {
    background: #fff;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Form Modal */
.form__modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form__modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.form__modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 100000;
}

.form__modal.active .form__modal-content {
    transform: scale(1);
}

.form__modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.form__modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.form__modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.form__modal-close:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

.contact__form {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* Contact Form 7 Styles */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-form-control {
    width: 100%;
    padding: 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wpcf7-textarea {
    min-height: 140px;
    resize: vertical;
}

.wpcf7-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-service-item {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .main-service-item:nth-child(even) {
        direction: ltr;
    }
    
}

@media (max-width: 768px) {
    
    .main-service-item__title {
        font-size: 2rem;
    }
    
    .main-service-item__subtitle {
        font-size: 1.1rem;
    }
    
    .other-services__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .service-contact__title {
        font-size: 2rem;
    }
    
    .form__modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    
    .main-service-item__content {
        padding: 20px;
    }
    
    .main-service-item__title {
        font-size: 1.8rem;
    }
    
    .other-services__title {
        font-size: 2rem;
    }
    
    .service-contact__title {
        font-size: 1.8rem;
    }
    
    .other-service-item {
        padding: 30px 20px;
    }
}

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

.main-service-item,
.other-service-item {
    animation: fadeInUp 0.8s ease-out;
}

.main-service-item:nth-child(1) { animation-delay: 0.1s; }
.main-service-item:nth-child(2) { animation-delay: 0.2s; }
.main-service-item:nth-child(3) { animation-delay: 0.3s; }
.main-service-item:nth-child(4) { animation-delay: 0.4s; }
.main-service-item:nth-child(5) { animation-delay: 0.5s; }
.main-service-item:nth-child(6) { animation-delay: 0.6s; }
.main-service-item:nth-child(7) { animation-delay: 0.7s; }
.main-service-item:nth-child(8) { animation-delay: 0.8s; }