/* Why Choose Sugiura Section */
.why-choose-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.why-choose-blocks {
    max-width: 1200px;
    margin: 60px auto 0;
}

.why-choose-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
}

.why-choose-item:last-child {
    margin-bottom: 0;
}

/* 左画像 */
.why-choose-item .why-img-col {
    width: 70%;
    position: relative;
    z-index: 1;
}

.why-choose-item .why-img-col .no-image-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 青いテキストBOX（右寄り） */
.why-text-box {
    position: absolute;
    z-index: 2;
    background: linear-gradient(135deg, #FF8800 0%, #E65100 100%);
    color: #ffffff;
    padding: 40px 45px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-width: 500px;
}

.why-text-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.why-text-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.why-text-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.why-text-box p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* 右画像（reverse） */
.why-choose-item.reverse {
    flex-direction: row-reverse;
}

.why-choose-item.reverse .why-img-col {
    margin-left: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .why-choose-section {
        padding: 60px 0;
    }

    .why-choose-blocks {
        margin: 40px auto 0;
    }

    .why-choose-item {
        flex-direction: column !important;
        margin-bottom: 60px;
        position: relative;
    }

    .why-choose-item .why-img-col {
        width: 100%;
        margin-bottom: 0;
    }

    .why-choose-item .why-img-col .no-image-wrapper {
        height: 300px;
    }

    .why-text-box {
        position: static !important;
        transform: none !important;
        max-width: 100%;
        margin: -60px 20px 0;
        z-index: 3;
    }

    .why-text-box h3 {
        font-size: 1.3rem;
    }

    .why-text-box p {
        font-size: 0.95rem;
    }
}

/* Working Environment Section Custom Styles */

.environment-section {
    padding: 80px 0;
    background-color: var(--white);
}

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

.env-flex {
    display: flex;
    align-items: stretch;
    /* Match height of both columns */
    overflow: hidden;
    border-radius: 4px;
}

.env-img-col {
    flex: 0 0 45%;
    width: 45%;
    height: 400px;
    /* Balanced height for PC */
}

.env-img-col img,
.env-img-col .no-image-wrapper {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.env-text-col {
    flex: 0 0 55%;
    width: 55%;
    background-color: #f7f7f7;
    /* Very light gray */
    display: flex;
    align-items: center;
}

.env-text-inner {
    padding: 40px 45px;
}

.env-heading {
    font-size: 32px;
    /* Reduced from 40px */
    font-weight: 700;
    color: #333;
    /* Dark gray */
    margin-bottom: 24px;
}

.env-body p {
    font-size: 16px;
    /* Reduced from 18px */
    line-height: 1.8;
    /* ゆったりとした行間 */
    margin-bottom: 8px;
    /* Reduced from 20px for better flow */
    color: var(--text-color);
}

.env-body p:last-child {
    margin-bottom: 0;
}

/* Tablet & Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .env-flex {
        flex-direction: column;
    }

    .env-img-col,
    .env-text-col {
        width: 100%;
        flex: 0 0 100%;
    }

    .env-img-col {
        height: 400px;
    }

    .env-text-inner {
        padding: 40px 24px;
    }

    .env-heading {
        font-size: 24px;
        /* Reduced from 30px for better fit */
        margin-bottom: 16px;
    }

    .env-body p {
        font-size: 15px;
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .env-img-col {
        height: 300px;
    }
}

/* Positions Table Styling */
/* Job Description Block */
.job-description-block {
    margin-bottom: 40px;
    text-align: center;
}

.job-description-block .job-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.job-description-block .job-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Job Requirements Table */
.job-requirements-table-wrapper {
    max-width: 900px;
    margin: 0 auto 60px;
}

.job-requirements-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    overflow: hidden;
}

.job-requirements-table th,
.job-requirements-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.job-requirements-table th {
    background-color: #f5f7fa;
    font-weight: 700;
    color: var(--primary-color);
    width: 180px;
    vertical-align: top;
}

.job-requirements-table td {
    color: var(--text-color);
    line-height: 1.8;
}

.job-requirements-table tr:last-child th,
.job-requirements-table tr:last-child td {
    border-bottom: none;
}

/* Legacy Positions Table (keeping for compatibility) */
.positions-table {
    width: 100%;
    max-width: 1200px;
    /* Increased from 1000px */
    margin: 40px auto 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.pos-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    align-items: stretch;
}

.pos-row:last-child {
    border-bottom: none;
}

.job-title {
    flex: 0 0 30%;
    /* Adjusted from 28% */
    width: 30%;
    padding: 30px 25px;
    background-color: #fafafa;
    border-right: 1px solid #e0e0e0;
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
    white-space: nowrap;
    /* Prevent wrapping on PC */
}

.job-description {
    flex: 0 0 70%;
    /* Adjusted from 72% */
    width: 70%;
    padding: 30px 35px;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1rem;
}

/* Tablet & Mobile (max-width: 1024px) */
@media (max-width: 1024px) {

    /* Job Description Block - Mobile */
    .job-description-block .job-heading {
        font-size: 1.5rem;
    }

    .job-description-block .job-intro {
        font-size: 0.95rem;
        padding: 0 16px;
    }

    /* Job Requirements Table - Mobile */
    .job-requirements-table-wrapper {
        margin-bottom: 40px;
    }

    .job-requirements-table th,
    .job-requirements-table td {
        display: block;
        width: 100%;
        padding: 16px;
    }

    .job-requirements-table th {
        background-color: var(--primary-color);
        color: var(--white);
        font-size: 0.95rem;
        padding-bottom: 8px;
        border-bottom: none;
    }

    .job-requirements-table td {
        padding-top: 8px;
        padding-bottom: 20px;
        font-size: 0.9rem;
    }

    .job-requirements-table tr {
        display: block;
        margin-bottom: 16px;
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }

    /* Legacy Positions Table - Mobile */
    .positions-table {
        max-width: 100%;
    }

    .job-title {
        white-space: normal;
        /* Allow wrapping on small screens/tablets if needed */
    }
}

@media (max-width: 768px) {
    .pos-row {
        flex-direction: column;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 10px;
        /* Slight gap between "cards" on mobile */
    }

    .job-title {
        width: 100%;
        flex: 0 0 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 16px 20px;
        background-color: #f9f9f9;
        font-size: 1rem;
        white-space: normal;
        /* Exceptions for Mobile */
    }

    .job-description {
        width: 100%;
        flex: 0 0 100%;
        padding: 20px;
        font-size: 0.95rem;
    }
}