
/* ========================================
    Main Content Styles - Front Page Only
======================================== */
.front-page.main-content {
    margin: 0 auto;
    margin-top: 150px;
    max-width: 1320px;
}

/* Hero Section */
.front-page .hero-section {
    padding: 60px 0 100px;
    border-bottom: 1px solid #171717;
}

.front-page .hero-title {
    font-family: var(--font-family-Cormorant-Infant);
    font-size: 175px;
    font-weight: 600;
    line-height: 1;
}

.front-page .hero-title em {
    font-style: italic;
    font-weight: 600;
    padding-right: 0.05em;
}

.front-page .hero-subtitle {
    font-size: 16px;
    text-align: left;
    margin: 0 auto;
}

.front-page .hero-subtitle em {
    font-style: italic;
    color: #999;
}

/* Section Styles */
.front-page .section-title {
    font-family: var(--font-family-Cormorant-Infant);
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 60px;
    position: relative;
    padding-left: 0.6em;
}

.front-page .section-title::before {
    content: "• ";
    color: #171717;
    position: absolute;
    left: 0;
}

/* Company Section */
.front-page .company-section {
    padding: 100px 0 110px;
    border-bottom: 1px solid #171717;
}

.front-page .company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    padding-bottom: 5px;
    gap:2rem;
}

.front-page .company-heading {
    font-size: 35px;
    font-weight: 500;
    margin-bottom: 5px;
}

.front-page .company-heading .line-break{
    display: none;
}

.front-page .company-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
}

.front-page .company-text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.front-page .read-more {
    color: #171717;
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 1px solid #000;
}

.front-page .read-more:hover {
    color: #666;
}

/* Service Section */
.front-page .service-section {
    padding: 100px 0;
    border-bottom: 1px solid #171717;
}

.front-page .service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-bottom: 5px;
}

.front-page .service-number {
    font-size: 35px;
    font-weight: 500;
    margin-bottom: 5px;
}

.front-page .service-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.front-page .service-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
}

.front-page .service-description {
    font-size: 14px;
    line-height: 1.8;
    color: #171717;
    margin-bottom: 20px;
}

/* Employment Section */
.front-page .employment-section {
    padding: 100px 0;
    border-bottom: 1px solid #171717;
}

.front-page .employment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    padding-bottom: 5px;
    gap:2rem;
}

.front-page .employment-heading {
    font-size: 35px;
    font-weight: 500;
    margin-bottom: 5px;
}

.front-page .employment-heading .line-break{
    display: none;
}

.front-page .employment-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
}

.front-page .employment-text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Columns Section */
.front-page .columns-section {
    padding: 100px 0 110px;
}

.front-page .columns-section .section-title {
    margin-bottom: 0px;
}

.front-page .columns-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

/* Columns Grid - スライダーコンテナ */
.front-page .columns-grid {
    /* コンテナとして機能 */
}

/* Slider Track - デスクトップではグリッド表示 */
.front-page .columns-grid .slider-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.front-page .column-image {
    width: 100%;
    /* height: 200px; */
    height: auto;
    background-color: #ddd;
    margin-bottom: 10px;
    aspect-ratio: 122 / 81;
}
.front-page .column-image img {
    vertical-align: top;
}

.front-page .column-text {
    font-size: 13px;
    margin-bottom: 15px;
}

.front-page .column-text a {
    text-decoration: none;
    color: #171717;
    line-height: 1.6;
    display: -webkit-box; /* 必須 */
    -webkit-box-orient: vertical; /* 必須 */
    -webkit-line-clamp: 2; /* 行数を制限 */
    overflow: hidden; /* はみ出た部分を非表示 */
}

.front-page .column-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.front-page .column-item:hover {
    transform: translateY(-5px);
    opacity: 0.7;
}

.front-page .column-link {
    color: #171717;
    font-size: 12px;
    text-decoration: none;
}

/* スライダードット */
.front-page .slider-dots {
    display: none; /* デスクトップでは非表示 */
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.front-page .slider-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.front-page .slider-dots .dot.active {
    background-color: #171717;
    transform: scale(1.2);
}

.front-page .slider-dots .dot:hover {
    background-color: #888;
}

/* ========================================
   Responsive Design - Front Page Only
======================================== */

/* Large desktops and MacBook Pro (1920px and above) */
@media (min-width: 1920px) {
    .front-page .hero-subtitle {
        font-size: 18px;
    }
    
    .front-page .company-section,
    .front-page .service-section,
    .front-page .employment-section {
        padding: 120px 0;
    }
    
    .front-page .columns-section {
        padding: 120px 0;
    }
}

/* MacBook Pro 16-inch and similar (1680px) */
@media (min-width: 1680px) {
    .front-page .hero-title {
        font-size: 150px;
    }
    
    .front-page .hero-subtitle {
        font-size: 17px;
    }
    
    .front-page .company-section,
    .front-page .service-section,
    .front-page .employment-section {
        padding: 110px 0 120px;
    }
    
    .front-page .columns-section {
        padding: 110px 0 120px;
    }
    
}

/* MacBook Pro 14-inch and similar (1440px to 1679px) */
@media (min-width: 1440px) and (max-width: 1679px) {
    .front-page .hero-subtitle {
        font-size: 16px;
    }
    
    .front-page .section-title {
        font-size: 33px;
        margin-bottom: 65px;
    }
    
    .front-page .company-section,
    .front-page .service-section,
    .front-page .employment-section {
        padding: 100px 0 110px;
    }
    
    .front-page .columns-section {
        padding: 100px 0 110px;
    }
    
    .front-page .company-heading,
    .front-page .employment-heading {
        font-size: 36px;
    }
    
    .front-page .service-number {
        font-size: 36px;
    }
    

}


@media (min-width: 1280px) and (max-width: 1679px) {
    .front-page .hero-title {
        font-size: 130px;
    }

}
/* Standard MacBook Pro and laptops (1280px to 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .front-page.main-content {
        max-width: 1200px;
        margin-top: 145px;
    }
}
/* Small laptops and large tablets (1279px and below) */
@media (max-width: 1279px) {
    .front-page.main-content {
        max-width: 90%;
        padding: 0;
        margin-top: 150px;
    }
    
    .front-page .hero-title {
        font-size: 120px;
    }

}

@media (max-width: 1439px) and (min-width: 961px) {
    .front-page .employment-heading .line-break{
        display: block;
    }
}

@media (max-width: 1124px) and (min-width: 961px) {
    .front-page .company-heading .line-break{
        display: block;
    }
}

/* Large tablets and small desktops (1024px and below) */
@media (max-width: 1024px) {
    .front-page.main-content {
        max-width: 100%;
        margin-top: 140px;
    }
    
    .front-page .hero-title {
        font-size: 120px;
        line-height: 0.9;
    }
    
    .front-page .company-content,
    .front-page .employment-content {
        gap: 60px;
    }
    
    .front-page .service-grid {
        gap: 60px;
    }

    .front-page .columns-grid .slider-track {
        gap: 20px;
    }
}

/* Tablets (960px and below) */
@media (max-width: 960px) {
    .front-page.main-content {
        margin-top: 100px;
        padding: 0;
    }

    .front-page .hero-section {
        padding: 40px 0 60px;
    }
    
    .front-page .hero-title {
        font-size: 80px;
        line-height: 1.1;
    }

    .front-page .hero-subtitle {
        font-size: 13px;
    }
    
    .front-page .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .front-page .company-section,
    .front-page .service-section,
    .front-page .employment-section {
        padding: 60px 0;
    }
    
    .front-page .columns-section {
        padding: 60px 0;
    }
    
    .front-page .company-content,
    .front-page .employment-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 15px;
    }

    .front-page .service-section .container{
        padding-bottom: 15px;
    }
    
    .front-page .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .front-page .columns-grid .slider-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding-bottom: 15px;
    }
    
    .front-page .company-heading,
    .front-page .employment-heading {
        font-size: 28px;
    }
    
    .front-page .service-number {
        font-size: 28px;
    }
    
    .front-page .service-title {
        font-size: 18px;
    }
}

/* Mobile landscape (640px and below) */
@media (max-width: 640px) {
    .front-page.main-content {
        margin-top: 85px;
        padding: 0;
    }
    
    .front-page .hero-title {
        font-size: 60px;
    }

    .front-page .hero-subtitle {
        font-size: 11px;
    }
    
    .front-page .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .front-page .company-section,
    .front-page .service-section,
    .front-page .employment-section,
    .front-page .columns-section {
        padding: 60px 0;
    }
    
    .front-page .company-heading,
    .front-page .employment-heading {
        font-size: 24px;
    }
    
    .front-page .company-text,
    .front-page .employment-text {
        font-size: 13px;
    }
    
    .front-page .service-description {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Slider Track - モバイルではスライダー表示 */
    .front-page .columns-grid .slider-track {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }

    .front-page .columns-grid .slider-track:hover {
        scroll-behavior: auto;
    }

    .front-page .columns-grid .slider-track .column-item {
        flex: 0 0 calc(100vw - 40px); /* 画面幅からパディング分を引く */
        scroll-snap-align: start;
    }


    .front-page .column-text {
        height: auto;
        font-size: 14px; /* より読みやすいフォントサイズ */
        padding: 15px 0; /* 適切なパディング */
        line-height: 1.6;
    }

    /* スクロールバーを完全に非表示 */
    .front-page .columns-grid .slider-track::-webkit-scrollbar {
        display: none;
    }

    .front-page .columns-grid .slider-track {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    /* モバイルでドットを表示 */
    .front-page .slider-dots {
        display: flex !important;
    }
}

/* Mobile portrait (480px and below) */
@media (max-width: 480px) {
    .front-page.main-content {
        padding: 0;
        margin-top: 65px;
    }

    .front-page .company-section,
    .front-page .service-section,
    .front-page .employment-section,
    .front-page .columns-section{
        padding: 40px 0;
    }
    
    .front-page .hero-section {
        padding: 30px 0 40px;
    }
    
    .front-page .hero-title {
        font-size: 64px;
        line-height: 0.9;
    }
    
    .front-page .hero-subtitle {
        font-size: 10px;
        line-height: 1.5;
    }
    
    .front-page .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .front-page .section-title::before {
        margin-right: 8px;
    }
    
    .company-section,
    .service-section,
    .employment-section,
    .columns-section {
        padding: 30px 0;
    }

    .front-page .company-content,
    .front-page .employment-content{
        gap: 30px;
    }
    
    .front-page .company-heading,
    .front-page .employment-heading {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .front-page .company-subtitle,
    .front-page .employment-subtitle {
        font-size: 12px;
        margin-bottom: 0;
    }
    
    .front-page .company-text,
    .front-page .employment-text {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .front-page .service-number {
        font-size: 20px;
    }

    .front-page .read-more {
        font-size: 14px;
    }
    
    .front-page .service-title {
        font-size: 16px;
    }
    
    .service-subtitle {
        font-size: 13px;
    }
    
    .service-description {
        font-size: 12px;
        line-height: 1.7;
    }
    
    .read-more {
        font-size: 14px;
    }
    
    .front-page .columns-header {
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .front-page .columns-grid .slider-track .column-item {
        flex: 0 0 calc(100vw - 30px); /* 480px以下での画面幅調整 */
    }
    
    
    .front-page .column-text {
        font-size: 13px; /* 読みやすいサイズ */
        line-height: 1.6;
        margin-bottom: 12px;
        padding: 12px 0;
    }
    
    .front-page .column-link {
        font-size: 10px;
    }
}

/* Small mobile (375px and below) */
@media (max-width: 375px) {
    .front-page .hero-title {
        font-size: 64px;
        line-height: 1;
    }
    
    .front-page .company-heading,
    .front-page .employment-heading {
        font-size: 20px;
    }
    
    .front-page .service-title {
        font-size: 15px;
    }
    
    .front-page .columns-grid .slider-track .column-item {
        flex: 0 0 calc(100vw - 30px); /* 375px以下でも画面幅いっぱい */
    }
    
    
    .front-page .column-text {
        font-size: 12px;
        line-height: 1.5;
        padding: 10px 0;
    }
}
