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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* Header */
.main-header {
    background-color: #fff;
}

.logo-banner {
    background-color: #ea580b;
    padding: 10px 16px;
    color: #fff;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 14px;
    color: #000;
    margin-top: 4px;
}

/* Main Content */
.main-content {
    padding: 8px;
    max-width: 600px;
    margin: 0 auto;
}

/* Carousel Section */
.carousel-section {
    margin-bottom: 24px;
}

/* Company Carousel */
.company-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
}

.company-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: fit-content;
}

.company-carousel-slide {
    display: flex;
    width: 100vw;
    gap: 12px;
    flex-shrink: 0;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

.company-carousel-slide .carousel-profile-card {
    flex: 0 0 calc(33.333vw - 6px);
    min-width: 0;
}

.carousel-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 12px;
    text-align: left;
    width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
    padding-left: calc((100vw - (66.666vw + 12px)) / 2);
    box-sizing: border-box;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: fit-content;
}

.carousel-slide {
    display: flex;
    width: 100vw;
    gap: 12px;
    flex-shrink: 0;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

.carousel-item {
    flex: 0 0 calc(33.333vw - 6px);
    min-width: 0;
}

.company-grid-item {
    width: 100%;
}

/* Company Profile Card in Carousel */
.carousel-profile-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.carousel-profile-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.carousel-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-profile-info {
    padding: 16px;
}

.carousel-profile-name {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.3;
}

.carousel-profile-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Notice Card in Carousel */
.carousel-notice-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.carousel-notice-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.carousel-notice-title {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.3;
}

.carousel-notice-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Banner Section */
.banner-section {
    margin-top: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
}

.consultation-banner {
    background-color: #ea580b;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    width: calc(66.666vw + 12px);
    max-width: calc(66.666vw + 12px);
}

.consultation-banner:hover {
    background-color: #c94a09;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.consultation-banner:active {
    transform: translateY(0);
}

.banner-text {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    line-height: 1.5;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    cursor: pointer;
    position: relative;
    flex: 1;
}

.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    opacity: 0.5;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-label {
    font-size: 10px;
    color: #999;
    text-align: center;
}

.nav-item.active .nav-label {
    color: #ea580b;
}

/* Responsive Design */
@media (min-width: 768px) {
    .main-content {
        max-width: 700px;
    }

    .carousel-profile-image {
        height: 240px;
    }
    
    .carousel-title {
        font-size: 20px;
    }
    
    .carousel-profile-name {
        font-size: 20px;
    }
    
    .carousel-profile-text {
        font-size: 15px;
    }
    
    .carousel-notice-title {
        font-size: 18px;
    }
    
    .carousel-notice-text {
        font-size: 15px;
    }
}

@media (max-width: 375px) {
    .logo-text {
        font-size: 18px;
    }
    
    .carousel-title {
        font-size: 16px;
    }
    
    .carousel-profile-name {
        font-size: 16px;
    }
    
    .carousel-profile-text {
        font-size: 13px;
    }
    
    .carousel-notice-title {
        font-size: 15px;
    }
    
    .carousel-notice-text {
        font-size: 13px;
    }
    
    .nav-label {
        font-size: 9px;
    }
    
    .banner-text {
        font-size: 14px;
    }
}

html {
    scroll-behavior: smooth;
}
