/* Company Page Specific Styles */

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}


.company-main {
    padding-top: 80px;
    min-height: 100vh;
}

/* Section Header Common Styles */
.section-header {
    text-align: center;
    margin-bottom: 68px;
}

.section-title-en {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.111em;
    color: #E70012;
    margin-bottom: 8px;
}

.section-title-ja {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1em;
    letter-spacing: 0.07em;
    color: #0D0D0D;
}

.section-divider {
    width: 72px;
    height: 1px;
    background: #E70012;
    margin: 0 auto;
}

/* 代表挨拶セクション */
.company-greeting-section {
    padding: 80px 0 112px;
    background: var(--background-color);
}

.company-greeting-header-wrapper {
    text-align: center;
    margin-bottom: 0px;
}

.company-greeting-section .section-header {
    display: inline-block;
}

.company-greeting-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 120px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
}

.company-greeting-image-wrapper {
    width: 100%;
    height: auto;
}

.company-greeting-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.company-greeting-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.company-greeting-heading {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: #000;
    margin: 0;
}

.company-greeting-text-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.company-greeting-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.05em;
    color: #0D0D0D;
    margin: 0;
}

/* 会社情報セクション */
.company-info-section {
    padding: 111px 0 112px;
    background: #F8F8F8;
}

.company-info-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 42.5px;
    table-layout: fixed;
    position: relative;
}

/* .company-table tbody tr:first-child th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E70012, transparent);
} */

.company-table tbody tr {
    border-bottom: 1px solid #E0E0E0;
}

.company-table tbody tr:first-child {
    border-top: 1px solid #E0E0E0;
}

.company-table th {
    background: #ECECEC;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.08em;
    color: #000000;
    text-align: left;
    padding: 32px;
    width: 25%;
    min-width: 200px;
    vertical-align: top;
    position: relative;
}

.company-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
}

.company-table td {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.0853em;
    color: #0D0D0D;
    padding: 33.39px 22.5px;
    vertical-align: top;
    width: 75%;
    word-wrap: break-word;
}

/* 関連会社 */
.subsidiary-companies {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 120px;
}

.subsidiary-item {
    flex: 0 0 auto;
}

.subsidiary-item .company-table {
    width: 576px;
    margin-bottom: 0;
}

.subsidiary-item .company-table th {
    width: 173.29px;
}

.subsidiary-item .company-table td {
    width: auto;
}

/* 沿革セクション */
.history-section {
    padding: 111px 0 112px;
    background: var(--background-color);
}

.history-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 44px;
}

.history-section .company-table th {
    width: 237.77px;
}

/* 許認可一覧セクション */
.license-section {
    padding: 111px 0 112px;
    background: var(--background-color);
}

.license-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
}

.license-category {
    margin-bottom: 60px;
}

.license-category:last-child {
    margin-bottom: 0;
}

.license-category-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
    color: var(--background-color);
    background: #2C8843;
    text-align: center;
    padding: 20px;
    margin: 0 0 0 0;
}

.license-section .company-table {
    margin-bottom: 0;
}

.license-section .company-table th {
    width: 280px;
}

.license-section .company-table td:first-of-type {
    width: auto;
}

.license-section .company-table td:last-of-type {
    width: 280px;
}

/* 有資格者数セクション */
.qualifications-section {
    padding: 111px 0 112px;
    background: #F8F8F8;
}

.qualification-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.0267em;
    color: #000000;
    text-align: center;
    margin: 0 0 60px 0;
}

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

.qualifications-table-wrapper {
    width: 100%;
}

.qualifications-table {
    width: 100%;
    border-collapse: collapse;
}

.qualifications-table tbody tr {
    border: 1px solid #E0E0E0;
}

.qualifications-table th {
    background: #ECECEC;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.08em;
    color: #000000;
    text-align: left;
    padding: 15.5px 17px 17.3px;
    width: 468.93px;
    vertical-align: top;
}

.qualifications-table td {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.0853em;
    color: #0D0D0D;
    padding: 17.39px 16px;
    width: 124.06px;
    text-align: left;
    vertical-align: top;
}

.iso-certification {
    max-width: 880px;
    margin: 48px auto 0;
    padding: 0 44px;
}

.iso-certification p {
    background: #ECECEC;
    font-family: 'Inter', sans-serif;
    font-size: 15.8px;
    font-weight: 500;
    line-height: 1.823;
    letter-spacing: 0.081em;
    color: #0D0D0D;
    padding: 48px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    
    .company-greeting-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 60px;
    }
    
    .company-greeting-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .company-greeting-heading {
        font-size: 28px;
    }
    
    .company-greeting-text {
        font-size: 14px;
    }
    
    .qualifications-container {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    
    .section-title-en {
        font-size: 28px;
    }
    
    .section-title-ja {
        font-size: 18px;
    }
    
    .company-greeting-section,
    .company-info-section,
    .history-section,
    .qualifications-section {
        padding: 80px 0;
    }
    
    .company-greeting-container,
    .company-info-container,
    .history-container,
    .qualifications-container,
    .iso-certification {
        padding: 0 20px;
    }
    
    .company-greeting-heading {
        font-size: 28px;
    }
    
    .qualification-subtitle {
        font-size: 32px;
    }
    
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 15px;
    }
    
    .company-table th {
        border-bottom: none;
    }
    
    .subsidiary-companies {
        padding: 0 20px;
        flex-direction: column;
    }
    
    .subsidiary-item .company-table {
        width: 100%;
    }
    
    .qualifications-table th,
    .qualifications-table td {
        display: block;
        width: 100%;
        padding: 15px;
    }
    
    .qualifications-table th {
        border-bottom: none;
    }
    
    .floating-cta {
        bottom: 20px;
        right: 20px;
        left: 20px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .cta-btn {
        flex: 1;
        justify-content: center;
        padding: 14px 16px;
        font-size: 13px;
        gap: 8px;
    }
    
    .cta-icon {
        width: 18px;
        height: 18px;
    }
    
    .cta-text {
        font-size: 13px;
    }
}

/* Floating CTA Buttons */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateX(120px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 50px;
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.cta-contact {
    background: linear-gradient(135deg, #E70012 0%, #B30010 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.cta-contact:hover {
    box-shadow: 0 8px 30px rgba(231, 0, 18, 0.4);
}

.cta-recruit {
    background: #ffffff;
    color: #333;
    border: 2px solid #E70012;
}

.cta-recruit:hover {
    background: #E70012;
    color: #ffffff;
    border-color: #E70012;
}

.cta-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.cta-btn:hover .cta-icon {
    transform: scale(1.1) rotate(-5deg);
}

.cta-text {
    white-space: nowrap;
    position: relative;
    z-index: 2;
}
