/* 社員紹介ページ専用スタイル */

/* ページヒーロー */
.staff-hero {
    position: relative;
    height: 400px; /* 適切な高さを指定 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.page-title {
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}



.section-header {
    margin-top: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--trust-navy);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(12px, 1.7vw, 15px);
    color: var(--text-gray);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.section-header > p {
    font-size: clamp(12px, 1.7vw, 15px);
    color: var(--text-gray);
    line-height: 1.6;
}

/* =====================================
   社員プロフィール
===================================== */
.staff-profiles {
    padding: 4rem 0 8rem;
    background: linear-gradient(to bottom, #ffffff calc(100% - 8rem), #eaf7fb calc(100% - 8rem), #eaf7fb 100%);
}

.staff-profiles .section-title { margin-bottom: 0.75rem; }
.staff-profiles .section-header { margin-bottom: 16px; }
.staff-profiles .staff-grid { margin-top: 24px; }

/* 769px以上では下端とディバイダーの距離を詰める */
@media (min-width: 769px) {
    .staff-profiles { padding-bottom: 6rem; }
    .staff-profiles > .container { padding-bottom: 50px !important; }
}

.staff-profiles > .container {
    padding-bottom: 150px;
}

.department-section {
    margin-bottom: 96px;
}

.department-section:last-child {
    margin-bottom: 0;
}

.department-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--trust-navy);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    letter-spacing: -0.025em;
}

.department-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 48px;
    margin-top: 48px;
}

.staff-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--medium-gray);
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-blue);
}

.staff-image {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.staff-card:hover .staff-image img {
    transform: none !important;
}

.staff-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    right: auto;
    background: var(--accent-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.staff-info {
    padding: 24px;
}

.staff-name {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.staff-position {
    font-size: clamp(13px, 1.8vw, 16px);
    color: var(--ocean-blue);
    font-weight: 500;
    margin-bottom: 4px;
}

.staff-experience {
    font-size: clamp(12px, 1.6vw, 14px);
    color: var(--text-gray);
    margin-bottom: 24px;
}

.staff-profile,
.staff-message {
    margin-bottom: 16px;
}

.staff-profile h5,
.staff-message h5 {
    font-size: clamp(13px, 1.6vw, 15px);
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 4px;
}

.staff-profile ul {
    list-style: none;
    padding: 0;
}

.staff-profile li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-gray);
    line-height: 1.5;
}

.staff-profile li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-size: 0.8rem;
}

.staff-profile p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 6px;
    font-size: clamp(12px, 1.6vw, 14px);
}

.staff-message blockquote {
    background: #f8fbff;
    border-left: 4px solid var(--accent-blue);
    margin: 0;
    padding: 20px;
    border-radius: 8px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    position: relative;
}

.staff-message blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: var(--accent-blue);
    opacity: 0.3;
}

/* =====================================
   職場環境
===================================== */
.workplace-environment {
    padding: 1rem 0 2rem;
    background: #eaf7fb;
}

.workplace-environment .section-title { margin-bottom: 0.75rem; }
.workplace-environment .section-header { margin-top: 8px; margin-bottom: 16px; }

.workplace-environment > .container {
    margin-bottom: 50px;
}

.environment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 24px;
}

.environment-card {
    background: #ffffff;
    padding: 28px 22px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f4f8;
}

/* カード内の本文は左揃えに */
.environment-card p { text-align: left; }

.environment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.environment-icon {
    width: auto;
    height: auto;
    margin: 0 auto 16px;
    background: none;
    border-radius: 0;
    display: block;
    text-align: center;
}

.environment-icon img {
    width: auto;
    height: 64px;
    object-fit: contain;
    filter: none;
}

.environment-title {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: block;
    text-align: left;
}

.environment-grid .environment-card:nth-child(3) .environment-title {
    font-size: 1.1rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    /* モバイルではさらに小さくして1行化を維持 */
    .environment-grid .environment-card:nth-child(3) .environment-title {
        font-size: 1rem;
        /* 画面幅によっては1行に収まらず横にはみ出すため、折り返しを許可 */
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

.environment-description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: clamp(12px, 1.7vw, 15px);
}



.schedule-benefits {
    margin-top: 80px;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid #f0f4f8;
}

.schedule-benefits h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: left;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f4f8;
}

.benefit-item h4 {
    font-size: clamp(14px, 1.9vw, 18px);
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.benefit-item p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: clamp(12px, 1.6vw, 14px);
}

/* =====================================
   CTA セクション
===================================== */
.staff-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--ocean-blue) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-description {
    font-size: clamp(13px, 1.8vw, 16px);
    line-height: 1.7;
    margin-bottom: 28px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================
   レスポンシブデザイン
===================================== */
@media (max-width: 968px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .environment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-content {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .schedule-timeline::before {
        display: none;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* 1025px以上は4列×1行にする */
@media (min-width: 1025px) {
    .environment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
        background-attachment: scroll;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .staff-profiles,
    .workplace-environment,
    .daily-schedule {
        padding: 10px 0;
    }

    /* 768px以下：わずかな横はみ出し（CLS/描画誤差含む）を抑止 */
    .workplace-environment,
    .staff-cta {
        overflow-x: hidden;
    }
    
    .staff-info {
        padding: 24px;
    }
    
    .staff-image {
        height: 200px;
    }
    
    .environment-card {
        padding: 30px 20px;
    }
    
    .environment-icon {
        width: 60px;
        height: 60px;
    }
    
    .environment-icon img {
        width: 60px;
        height: 60px;
    }
    
    .schedule-benefits {
        padding: 40px 20px;
    }
    
    .staff-cta {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .environment-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-time {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 20px 24px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .department-title {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
}

/* =====================================
   アニメーション
===================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staff-card,
.environment-card,
.timeline-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.staff-card:nth-child(1) { animation-delay: 0.1s; }
.staff-card:nth-child(2) { animation-delay: 0.2s; }
.staff-card:nth-child(3) { animation-delay: 0.3s; }
.staff-card:nth-child(4) { animation-delay: 0.4s; }

.environment-card:nth-child(1) { animation-delay: 0.1s; }
.environment-card:nth-child(2) { animation-delay: 0.2s; }
.environment-card:nth-child(3) { animation-delay: 0.3s; }
.environment-card:nth-child(4) { animation-delay: 0.4s; }



/* =====================================
   Shape Dividers
===================================== */
.shapedividers_com-567{
    overflow:hidden;
    position:relative;
}
.shapedividers_com-567::before{
    content:'';
    font-family:'shape divider from ShapeDividers.com';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    z-index: 3;
    pointer-events: none;
    background-repeat: no-repeat; 
    background-size: 100% 70px;
    background-position: 50% 0%;    
}

@media (min-width:768px){
    .shapedividers_com-567::before{
        background-size: 100% 90px;
        background-position: 50% 0%;   
    }  
}
 
@media (min-width:1025px){
    .shapedividers_com-567::before{ 
        background-size: 100% 96px;
        background-position: 50% 0%;  
        background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 381 59.27" preserveAspectRatio="none"><g fill="%23ffffff"><path d="M381 8.47L0 42.33V0h381z"/><path d="M381 33.87L0 59.27V0h381z" opacity=".66"/></g></svg>'); 
    }
}
@media (min-width:2100px){
    .shapedividers_com-567::before{
        background-size: 100% calc(2vw + 96px);
    }
}

/* 働く環境セクション専用：左右反転 + 淡い青(#eaf7fb)で上揃え重ね */
.workplace-environment.shapedividers_com-567::before{
    transform: scaleX(-1);
    background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 381 59.27" preserveAspectRatio="none"><g fill="%23eaf7fb"><path d="M381 8.47L0 42.33V0h381z"/><path d="M381 33.87L0 59.27V0h381z" opacity=".66"/></g></svg>');
}

@media (min-width:1025px){
    .workplace-environment.shapedividers_com-567::before{ 
        background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 381 59.27" preserveAspectRatio="none"><g fill="%23eaf7fb"><path d="M381 8.47L0 42.33V0h381z"/><path d="M381 33.87L0 59.27V0h381z" opacity=".66"/></g></svg>'); 
    }
}

/* 1024px以下でも同じディバイダーを適用 */
@media (max-width: 1024px) {
    .shapedividers_com-567::before {
        background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 381 59.27" preserveAspectRatio="none"><g fill="%23ffffff"><path d="M381 8.47L0 42.33V0h381z"/><path d="M381 33.87L0 59.27V0h381z" opacity=".66"/></g></svg>');
        background-size: 100% 70px;
        background-position: 50% 0%;
    }
    .workplace-environment.shapedividers_com-567::before {
        background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 381 59.27" preserveAspectRatio="none"><g fill="%23eaf7fb"><path d="M381 8.47L0 42.33V0h381z"/><path d="M381 33.87L0 59.27V0h381z" opacity=".66"/></g></svg>');
        background-size: 100% 70px;
        background-position: 50% 0%;
    }
}

.shapedividers_com-7376{ overflow:hidden; position:relative; }

.shapedividers_com-3442{ overflow:hidden; position:relative; }
.shapedividers_com-3442::before{
    content:''; font-family:'shape divider from ShapeDividers.com'; position: absolute;
    left: 0; right: 0; bottom: 0; height: 8rem; z-index: 3; pointer-events: none;
    background-repeat: no-repeat; background-size: 100% 70px; background-position: 50% 0%;
    background-image: url('data:image/svg+xml;charset=utf8, <svg preserveAspectRatio="xMidYMax slice" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000.4 84"><g fill="%23ffffff"><path d="M1937 49V11l1-1 18-10h29l15 9v41l-30 18-33-19z" opacity=".5"/><path d="M1867 30V0h59v30l-29 17-30-17z"/></g></svg>');
}
@media (min-width:768px){ .shapedividers_com-3442::before{ height: 8rem; background-size: 100% 90px; background-position: 50% 0%; } }
@media (min-width:1025px){ .shapedividers_com-3442::before{ height: 8rem; background-size: 105% 95px; background-position: 50% 0%; } }
@media (min-width:2100px){ .shapedividers_com-3442::before{ height: 8rem; background-size: 105% calc(2vw + 95px); } }

/* =====================================
   印刷スタイル
===================================== */
@media print {
    .page-hero,
    .staff-cta,
    .fixed-recruit-btn {
        display: none;
    }
    
    .staff-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .timeline-item {
        break-inside: avoid;
    }
} 

img[src="officeworker2.jpg"] {
    object-fit: cover;
    object-position: center 0%;
} 