/* フォントの設定 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* タイトル画像と先頭セクションの間の隙間を削除 */
.md-page-header {
    margin-bottom: 0 !important;
}

/* 採用ページのタイトルレイアウトを標準に合わせる（特に上書きなし） */

.md-archive-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ナビゲーションメニューのフォント設定 */
.md-g-nav nav ul li.menu a span {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    letter-spacing: 0.05em !important;
}

/* お問い合わせボタンのフォント設定 */
.h-inquiry a span {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.05em !important;
}

/* 採用情報の想いセクションのスタイル */
.recruitment-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    margin: 0 0 0 0;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
}

.recruitment-message-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.recruitment-message-text {
    padding: 20px;
}

.recruitment-message-title {
    font-size: 28px;
    font-weight: 700;
    color: #005A8D;
    margin-bottom: 20px;
    line-height: 1.4;
    font-family: 'Noto Sans JP', sans-serif;
}

.recruitment-message-description {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
}

.recruitment-message-image {
    text-align: center;
}

.team-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-image:hover {
    transform: scale(1.02);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .recruitment-message-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .recruitment-message-title {
        font-size: 24px;
    }
    
    .recruitment-message-description {
        font-size: 15px;
    }
}

/* 採用ページ誘導セクションのスタイル */
.recruitment-navigation {
    background: linear-gradient(135deg, #005A8D 0%, #003350 100%);
    padding: 60px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
}

.recruitment-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.recruitment-navigation > * {
    position: relative;
    z-index: 2;
}

.recruitment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.recruitment-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
}

.recruitment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #005A8D, #003350);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.recruitment-card:hover::before {
    transform: scaleX(1);
}

.recruitment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* カードヘッダー（国旗とタイトル） */
.recruitment-card .card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.recruitment-card .flag-icon {
    width: 60px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recruitment-card h3 {
    color: #005A8D;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

/* card-headerがある場合はh3のmargin-bottomを0に */
.recruitment-card .card-header h3 {
    margin-bottom: 0;
}

.recruitment-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #F5F5F5;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 90, 141, 0.3);
}

.recruitment-card p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
}

.recruitment-btn {
    display: block;
    background: linear-gradient(135deg, #005A8D, #003350);
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0 auto;
    max-width: 280px;
}

.recruitment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #003350, #005A8D);
    transition: left 0.3s ease;
    z-index: 1;
}

.recruitment-btn:hover::before {
    left: 0;
}

.recruitment-btn:hover {
    transform: scale(1.08);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 90, 141, 0.4);
}

.recruitment-btn span {
    position: relative;
    z-index: 2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .recruitment-navigation {
        padding: 40px 15px;
        margin: 0;
    }
    
    .recruitment-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recruitment-card {
        padding: 25px;
    }
    
    .recruitment-card .flag-icon {
        width: 50px;
    }
    
    .recruitment-card h3 {
        font-size: 25px;
        text-align: center;
    }
    
    .recruitment-card p {
        font-size: 19px;
        text-align: left;
        line-height: 1.9;
    }
    
    .recruitment-btn {
        padding: 14px 32px;
        font-size: 19px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .recruitment-navigation {
        padding: 30px 12px;
    }
    
    .recruitment-card {
        padding: 20px;
    }
    
    .recruitment-card .flag-icon {
        width: 45px;
    }
    
    .recruitment-card h3 {
        font-size: 23px;
        text-align: center;
    }
    
    .recruitment-card p {
        font-size: 18px;
        text-align: left;
        line-height: 1.8;
    }
    
    .recruitment-btn {
        padding: 12px 28px;
        font-size: 18px;
        max-width: 100%;
    }
}

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

.recruitment-card {
    animation: fadeInUp 0.6s ease-out;
}

.recruitment-card:nth-child(1) {
    animation-delay: 0.1s;
}

.recruitment-card:nth-child(2) {
    animation-delay: 0.2s;
}

.recruitment-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ホバー効果の強化 */
.recruitment-card:hover h3 {
    color: #003350;
    transition: color 0.3s ease;
}

.recruitment-card:hover p {
    color: #222;
    transition: color 0.3s ease;
}

/* フォーカス状態の改善 */
.recruitment-btn:focus {
    outline: 2px solid #005A8D;
    outline-offset: 2px;
}

/* アクセシビリティの向上 */
.recruitment-card:focus-within {
    outline: 2px solid #005A8D;
    outline-offset: 2px;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .recruitment-card {
        background: #2d2d2d;
        color: #fff;
    }
    
    .recruitment-card h3 {
        color: #fff;
    }
    
    .recruitment-card p {
        color: #ccc;
    }
}

/* 言語切り替えボタン */
.language-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #fff;
    border-bottom: 2px solid #e9ecef;
}

.lang-btn {
    padding: 10px 24px;
    border: 2px solid #0094C8;
    background: #fff;
    color: #0094C8;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.lang-btn:hover {
    background: #f0f8fb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 148, 200, 0.2);
}

.lang-btn.active {
    background: #0094C8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 148, 200, 0.3);
}

/* セクション共通スタイル */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #0D2C54;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.4;
}

/* S-TEKTの価値観セクション */
.recruitment-values {
    background: linear-gradient(135deg, #FAFAF5 0%, #f0f4f8 100%);
    padding: 80px 20px;
    margin: 0;
}

.recruitment-values-content {
    max-width: 1200px;
    margin: 0 auto;
}

.values-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.value-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0094C8;
    margin-bottom: 15px;
    font-family: 'Noto Sans JP', sans-serif;
}

.value-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 仲間についての想いセクション */
.recruitment-companions {
    background: #fff;
    padding: 80px 20px;
    margin: 0;
}

.recruitment-companions-content {
    max-width: 1200px;
    margin: 0 auto;
}

.companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.companion-card {
    background: linear-gradient(135deg, #0094C8 0%, #0D2C54 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 148, 200, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.companion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 148, 200, 0.3);
}

.companion-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.companion-card p {
    font-size: 16px;
    line-height: 1.8;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 援け合う仲間とのストーリーセクション */
.recruitment-stories {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 20px;
    margin: 0;
}

.recruitment-stories-content {
    max-width: 1200px;
    margin: 0 auto;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.story-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.story-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

/* 縦長画像の場合は特にcontainで表示 */
.story-card:nth-child(3) .story-img {
    object-fit: contain;
    background-color: #f0f0f0;
}

.story-card:hover .story-img {
    transform: scale(1.05);
}

.story-content {
    padding: 30px;
}

.story-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0D2C54;
    margin-bottom: 15px;
    font-family: 'Noto Sans JP', sans-serif;
}

.story-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 求職者に有益な情報セクション */
.recruitment-benefits {
    background: #fff;
    padding: 80px 20px;
    margin: 0;
}

.recruitment-benefits-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.benefit-card {
    background: white;
    border: 2px solid #e9ecef;
    padding: 40px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0094C8, #0D2C54);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    border-color: #0094C8;
    box-shadow: 0 10px 30px rgba(0, 148, 200, 0.15);
    transform: translateY(-5px);
}

.benefit-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0094C8;
    margin-bottom: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.benefit-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    font-family: 'Noto Sans JP', sans-serif;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .language-switcher {
        padding: 15px;
    }
    
    .lang-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .recruitment-values,
    .recruitment-companions,
    .recruitment-stories,
    .recruitment-benefits {
        padding: 40px 15px;
    }
    
    .values-content,
    .companions-grid,
    .stories-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .story-image {
        height: 200px;
    }
}
