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

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #FFFFFF;
}

a {
    text-decoration: none;
    color: #4A90E2;
    transition: all 0.3s ease;
}

a:hover {
    color: #6BBBDB;
}

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

/* Utility Classes */
.section-heading {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #4A90E2;
}

/* Top Bar */
.top-bar {
    background-color: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-link {
    color: #555;
    font-size: 14px;
    margin-right: 20px;
}

.search-bar {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    border: none;
    padding: 6px 10px;
    outline: none;
}

.search-bar button {
    background-color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
}

.language-selector {
    display: flex;
    align-items: center;
    position: relative;
}

.language-selector span {
    font-size: 14px;
    margin-right: 5px;
}

.language-selector select {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Main Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

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

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4A90E2;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover:after,
.main-nav ul li a.active:after {
    width: 100%;
}

/* Hero Section with Carousel */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    height: 100%;
}

.hero-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-icon {
    width: 15px;
    height: 15px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-content h1 span {
    font-weight: 300;
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.prev-btn, .next-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* Action Buttons */
.action-buttons {
    margin-top: -30px;
    position: relative;
    z-index: 100;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.action-button {
    background-color: #4A90E2;
    color: white;
    text-align: center;
    padding: 20px 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.action-button:hover {
    background-color: #3a7bc8;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.action-button i {
    font-size: 24px;
    margin-bottom: 10px;
}

.action-button span {
    font-size: 14px;
    font-weight: 600;
}

/* Business Services Section with Carousel */
.business-services {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.business-carousel {
    position: relative;
    height: 100%;
}

.business-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.business-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.business-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
}

.business-content {
    color: white;
    max-width: 500px;
}

.business-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.business-content p {
    margin-bottom: 25px;
}

.view-details-btn {
    display: inline-block;
    background-color: #4A90E2;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
}

.business-carousel-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.business-prev-btn, .business-next-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.business-prev-btn:hover, .business-next-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.business-carousel-dots {
    display: flex;
    gap: 8px;
}

.business-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.business-dot.active {
    background-color: white;
}

/* Medical Examination Section */
.medical-examination {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.examination-content {
    margin-top: 30px;
}

.check-results-btn {
    display: inline-block;
    background-color: #4A90E2;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.check-results-btn:hover {
    background-color: #3a7bc8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background-color: #fff;
}

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.feature-icon {
    width: 100px;
    height: 100px;
    background-color: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 40px;
    color: white;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.feature-item p {
    font-size: 14px;
    color: #666;
}

/* News Section */
.news {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.news-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-image {
    height: 200px;
    margin: -30px -30px 20px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.news-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    min-height: 60px;
}

.continue-btn {
    display: inline-block;
    background-color: #4A90E2;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
}

/* Partners Section with Carousel */
.partners {
    padding: 60px 0;
    background-color: #fff;
}

.partners-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 1000px;
    overflow: hidden;
}

.partners-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.partners-slide {
    min-width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
}

.partners-slide img {
    height: 60px;
    object-fit: contain;
    /* グレースケールフィルターを削除 */
    opacity: 1; /* 透明度を1に変更（完全に不透明） */
    transition: all 0.3s ease;
}

.partners-slide img:hover {
    /* ホバー時の効果をスケールのみに変更 */
    transform: scale(1.05);
}

.partners-navigation {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.partners-prev-btn, .partners-next-btn {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.partners-prev-btn:hover, .partners-next-btn:hover {
    background-color: #4A90E2;
    color: white;
}

.partners-dots {
    display: flex;
    gap: 8px;
}

.partners-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.partners-dot.active {
    background-color: #4A90E2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partners-slide {
        gap: 20px;
    }
    
    .partners-slide img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .partners-slide {
        gap: 15px;
    }
    
    .partners-slide img {
        height: 40px;
    }
}

/* Statistics Section */
.statistics {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    color: #4A90E2;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.stat-item a {
    font-size: 14px;
    color: #4A90E2;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: #ccc;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-info p, .footer-info a {
    margin-bottom: 10px;
    color: #ccc;
    display: block;
    font-size: 14px;
}

.working-hours {
    margin-top: 20px;
    margin-bottom: 30px !important;
}

.footer-links {
    margin-top: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #4e4e4e;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #4A90E2;
}

.footer-map h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.map-container {
    height: 300px;
    border-radius: 5px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .action-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav ul {
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .main-nav ul.active {
        display: flex;
    }
    
    .main-nav ul li {
        margin: 10px 0;
    }
    
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .business-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .action-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .statistics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}