@charset "UTF-8";

/* --- CSS Variables (配色の定義) --- */
:root {
    --primary-color: #0f172a;    /* 深いネイビー */
    --accent-color: #3b82f6;     /* 明るいブルー */
    --text-color: #334155;       /* ダークグレー */
    --bg-light: #f8fafc;         /* 非常に薄いグレー */
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 80px;
    /* 背景を少し濃いめの白グラデーションにして高級感を出す */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between; /* ロゴと右側エリアを離す */
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo img {
    height: 36px; /* ロゴサイズ調整 */
    width: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
	height: 40px;          /* 好きなサイズに調整 */
	/*margin-right: 30px;*/    /* ロゴとメニューの間のスペース */
    color: var(--primary-color);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 簡易的なロゴアイコン */
.logo span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 600; /* 少し太く */
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase; /* すべて大文字に */
}

/* ホバー時の下線アニメーション */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.header-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.header-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- Hero Section --- */
/* --- Hero Section (スライダー版に書き換え) --- */
.hero {
    height: 70vh;      /* 高さはお好みで調整してください */
    min-height: 500px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-color: var(--primary-color); /* 画像読み込み前の予備色 */
    overflow: hidden; /* スライダーのはみ出しを防ぐ */
}

/* スライダー自体を背景として配置 */
.hero-swiper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

/* 各スライドの画像設定 */
.swiper-slide {
    background-size: cover;
    background-position: center;
}

/* 文字を読みやすくする黒いフィルター */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* J-WAVEのように少しグラデーションをかける */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

/* コピー（文字）を一番手前に持ってくる */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}


.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: var(--transition);
}

.hero-btn:hover {
    background-color: var(--white);
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* --- Services Section --- */
.services {
    padding: 100px 5%;
    background-color: var(--bg-light);
}

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

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.service-grid {
    display: grid;
    /* 3カラムレスポンシブレイアウト */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1800px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); /* グラデーション背景 */
    color: var(--accent-color);
    border-radius: 50%; /* 完全な丸に */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* アイコンサイズ */
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15); /* アイコン自体にも影 */
}

.icon-box-mini {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); /* グラデーション背景 */
    color: var(--accent-color);
    border-radius: 50%; /* 完全な丸に */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0rem; /* アイコンサイズ */
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15); /* アイコン自体にも影 */
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 40px;
}

.footer-links h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #94a3b8;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }
    
    nav {
        display: none; /* スマホでは簡易的に非表示 */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

/* =========================================
   Jobs Page Styles (Add to ai_studio_code.css)
   ========================================= */

/* --- Page Hero (下層ページ用ヘッダー画像) --- */
.page-hero {
    height: 300px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-image: url('../images/bg.jpg'); /* トップと同じ画像を使用 */
    background-size: cover;
    background-position: center;
    margin-top: 80px; /* Headerの高さ分下げる */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* トップページより少し濃いオーバーレイにして文字を見やすく */
    background: rgba(15, 23, 42, 0.7);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1rem;
    opacity: 0.9;
}

/* --- Layout Container (2カラムレイアウト) --- */
.job-container {
    display: flex;
    max-width: 1800px;
    margin: 60px auto;
    padding: 0 5%;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar (検索ボックス) */
.sidebar {
    flex: 0 0 300px; /* 固定幅 */
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px; /* スクロール追従 */
}

.sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.checkbox-group label {
    display: block;
    font-weight: 400;
    margin-bottom: 5px;
    cursor: pointer;
}

.search-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--accent-color);
}

/* ---------------------------------
   2つ目の枠（背景白のボックス）のデザイン
--------------------------------- */
.social-box {
    background-color: #ffffff; /* 検索ボックスと同じ背景色 */
    padding: 20px;
    border-radius: 8px; /* 角丸 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* 軽い影 */
    margin-top: 20px; /* 上の検索ボックスとの隙間 */
}

/* タイトルのデザイン（検索ボックスのタイトルと似た見た目に） */
.social-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* ---------------------------------
   ボタン（リンク）のデザイン
--------------------------------- */
.sidebar-banners {
    display: flex;
    flex-direction: column;
    gap: 12px; /* ボタン同士の間隔 */
}

.banner-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa; /* ボタンの背景を少しグレーに */
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.banner-link:hover {
    background-color: #ffffff;
    border-color: #999;
    transform: translateY(-2px); /* 少し浮く */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.banner-link i {
    font-size: 1.4rem;
}



/* Main Content (求人リスト) */
.job-list {
    flex: 1;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.list-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.list-header p {
    font-size: 0.9rem;
    color: #64748b;
}

/* Job Card Style */
.job-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: var(--transition);
    position: relative;
}

.job-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.job-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--white);
}

.badge-new {
    background-color: #ef4444; /* 赤 */
}

.badge-closed {
    background-color: #64748b; /* グレー：募集終了 */
}

.badge-cat {
    background-color: var(--accent-color);
}

.job-id {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: auto; /* 右寄せ */
}

.job-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.job-title a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.job-meta li {
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-meta li i {
    color: #94a3b8;
}

.job-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.job-tags span {
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
}

.job-card-footer {
    text-align: right;
}

.detail-btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.detail-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.detail-btn.disabled {
    background-color: #ccc;
    color: var(--white);
    border-color: #ccc;
    border-radius: 50px;
    cursor: default;
    pointer-events: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    color: var(--text-color);
    font-weight: 700;
    transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Responsive for Jobs Page */
@media (max-width: 900px) {
    .job-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static; /* モバイルではスクロール追従解除 */
    }

    .job-meta {
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================================
   Sub Page Styles (Add to ai_studio_code.css)
   ========================================= */

/* --- Common Content Section --- */
.content-section {
    padding: 80px 5%;
    max-width: 1500px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.content-section h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* --- Philosophy Section (トップページに移設した「Ysystem'sの想い」) --- */
/* 企業理念ページから移設したことが分かるよう、見出しと冒頭のメッセージを目立たせる */
.philosophy-section {
    background-color: var(--bg-light);
}

.philosophy-section h2 {
    font-size: 2.4rem;
    font-weight: 700;
}

.philosophy-section .philosophy-lead {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Company Profile Table (会社概要) --- */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.company-table th,
.company-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.company-table th {
    width: 30%;
    background-color: #f8fafc;
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Flow List (採用・アウトソーシングの流れ) --- */
.flow-list {
    counter-reset: flow-num;
    margin-top: 30px;
}

.flow-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.flow-item::before {
    counter-increment: flow-num;
    content: counter(flow-num);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
}

.flow-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* --- Access Map (地図) --- */
.map-container {
    width: 100%;
    height: 400px;
    background-color: #e2e8f0;
    margin-bottom: 30px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Contact Form (お問い合わせ) --- */
.contact-form {
    max-width: 1050px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 200px;
    resize: vertical;
}

.contact-btn {
    text-align: center;
    margin-top: 40px;
}

.contact-btn button {
    padding: 15px 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.contact-btn button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* =========================================
   Mobile Hamburger Menu Styles
   ========================================= */

/* デスクトップではハンバーガーアイコンを隠す */
.hamburger {
    display: none;
}

/* --- スマホ表示時の設定 (768px以下) --- */
@media (max-width: 768px) {
    
    /* ヘッダーのレイアウト調整 */
    header {
        padding: 0 20px;
        justify-content: space-between;
    }

    /* 「お問い合わせボタン」をスマホでは少し小さくするか、非表示にする場合 */
    /* 今回はロゴの横に並ぶように少し調整します */
    .header-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-right: 50px; /* ハンバーガーボタンのスペースを確保 */
    }

    /* ハンバーガーアイコンの見た目 */
    .hamburger {
        display: block;
        position: fixed;
        right: 20px;
        top: 25px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 2000; /* メニューより手前に表示 */
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        margin-bottom: 6px;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* ハンバーガーが開いた時のアニメーション（×印になる） */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--white); /* 背景が濃くなるので白にする */
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--white);
    }

    /* ナビゲーションメニュー（スマホ時は全画面で隠しておく） */
    nav {
        display: block; /* 前回の display:none を解除 */
        position: fixed;
        top: 0;
        right: -100%; /* 画面の右外に隠す */
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.98); /* 濃いネイビー */
        z-index: 1500;
        transition: all 0.4s ease;
        padding-top: 100px; /* 上部に余白 */
    }

    /* メニューが開いた時のクラス */
    nav.active {
        right: 0; /* 画面内に出てくる */
    }

    /* メニューリストの並びを縦にする */
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    nav a {
        font-size: 1.2rem;
        color: var(--white); /* 文字を白にする */
        display: block;
    }
    
    /* メニュー内のリンクホバー時の色 */
    nav a:hover {
        color: var(--accent-color);
    }
}
/* =========================================
   Language Switcher Styles
   ========================================= */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 700;
    border-right: 1px solid #cbd5e1; /* 区切り線 */
    padding-right: 20px;
}

.lang-switch a {
    color: #94a3b8;
    text-decoration: none;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: var(--accent-color); /* アクティブ時は青色 */
}

.lang-switch .divider {
    color: #cbd5e1;
    font-size: 1rem;
}

.header-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px; /* 丸みを少し減らしてシャープに */
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.3);
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
    header {
        padding: 0 15px;
    }
    
    nav {
        /* 前回のハンバーガーメニュー用の設定を維持 */
        position: fixed;
        top: 0; 
        right: -100%;
        width: 100%; 
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        padding-top: 100px;
        transition: 0.4s;
    }
    
    .header-right {
        gap: 15px; /* スマホでは間隔を狭く */
    }

    .lang-switch {
        font-size: 0.75.rem;/* 文字サイズを少し小さく */
        border: none; /* スマホでは区切り線消す */
        padding-right: 0;
    }

    .header-btn {
        display: none; /* スマホではヘッダーのボタンは消してスッキリさせる */
    }
    
    .hamburger {
        display: block;
        /* position: fixed; を解除して、自然な並びにする */
        position: relative; 
        top: auto;
        right: auto;
        margin-left: 0;
        width: 30px;
        height: 24px; /* 高さを微調整 */
    }
}

/* =========================================
   Menu Hover Animation (にゅぃーんエフェクト)
   ========================================= */

/* 線の基準位置を決める */
nav a {
    position: relative; 
    display: inline-block; /* 文字の幅に合わせる */
}

/* 線の設定（最初は見えない状態） */
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;       /* 文字の下に少し隙間を空ける */
    left: 50%;          /* 真ん中からスタート */
    transform: translateX(-50%); /* 正確に中央に配置 */
    width: 0;           /* 最初は幅0（見えない） */
    height: 5px;        /* 線の太さ */
    background-color: var(--accent-color); /* 青色 */
    transition: width 0.3s ease-out; /* "にゅぃーん"の速度 */
}

/* マウスが乗った時の動き */
nav a:hover::after {
    width: 100%;        /* 幅を100%に広げる */
}

/* 現在地（active）の時は常に線を出しっぱなしにする場合 */
nav a.active::after {
    width: 100%;
}

/* =========================================
   Scroll Fade Animation (ふわっと表示)
   ========================================= */

/* アニメーションさせたい要素の初期状態 */
.fade-up {
    opacity: 0;                 /* 透明にする */
    /*transform: translateY(30px);*/ /* 少し下にずらしておく */
    transform: translateY(80px);
    /*transition: all 0.8s ease;*/  /* 0.8秒かけてゆっくり動く */
    transition: all 1.0s cubic-bezier(0.16, 1, 0.3, 1); /* 時間を1秒にし、ブレーキのかかり方をリッチに */
}

/* 画面に入ってきた時の状態 */
.fade-up.show {
    opacity: 1;                 /* 不透明にする */
    transform: translateY(0);   /* 元の位置に戻る */
}

/* =========================================
   Outsourcing Page Styles
   ========================================= */

/* 背景色を薄いグレーにするクラス（白カードを目立たせるため） */
.bg-gray {
    background-color: var(--bg-light);
}

/* カードを2列で並べるグリッド（1カードあたりの横幅を1.5倍に拡大） */
.os-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1800px;
    margin: 0 auto 80px;
}

/* スマホでは1列に切り替え */
@media (max-width: 700px) {
    .os-grid {
        grid-template-columns: 1fr;
    }
}

/* 各カードのデザイン */
.os-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--accent-color); /* 上に青いアクセント線 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.os-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

/* アイコンエリア */
.os-icon-area {
    text-align: center;
    margin-bottom: 20px;
}

.os-icon-area i {
    font-size: 3rem;
    color: var(--primary-color);
    background: #eff6ff; /* 薄い青背景 */
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

/* 見出し */
.os-card h3 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

/* 説明文 */
.os-card p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* アピールポイント（チェックリスト） */
.os-points {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
}

.os-points h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-points ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #334155;
    list-style: none; /* デフォルトの点を消す */
}

/* チェックマークの装飾 (FontAwesomeを使用) */
.os-points ul li::before {
    content: '\f00c'; /* チェックマークのコード */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* 導入フローの部分 */
.flow-section {
    background: var(--white);
    padding: 60px 40px;
    max-width: 1500px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .flow-section {
        padding: 40px 20px;
    }
}

/* =========================================
   会社案内ページのダウンロードカード (Companyページ)
========================================= */
.download-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.download-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px 20px;
    flex: 1 1 calc(50% - 30px); /* 横並び（2列）にする設定 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時にカードを少し浮き上がらせる */
.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ダウンロードアイコン */
.card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: #1a569d; /* サイトのメインカラーに合わせて調整してください */
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

/* テキストコンテンツ部分 */
.card-content {
    flex-grow: 1; /* 高さの違うテキストでも、ボタンを一番下に揃えるため */
    margin-bottom: 25px;
}

.card-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    color: #333;
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* ダウンロードボタン */
.download-btn {
    display: inline-block;
    background-color: #1a569d; /* サイトのメインカラーに合わせて調整してください */
    color: #ffffff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #123d70;
    color: #ffffff;
}

/* スマホ表示対応 (768px以下の場合は縦並びにする) */
@media (max-width: 768px) {
    .download-card {
        flex: 1 1 100%; 
    }
}
/* =========================================
   拠点一覧 (Companyページ)
========================================= */
.bases-container {
    margin-top: 20px;
    margin-bottom: 60px;
}

.base-area {
    margin-bottom: 40px;
}

/* エリアの見出し（関東エリアなど） */
.area-title {
    font-size: 1.25rem;
    color: #1a569d; /* メインカラー */
    border-bottom: 2px solid #1a569d;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* 拠点リストのグリッドレイアウト */
.base-list {
    display: grid;
    /* PCでは幅に合わせて自動で2〜3列になります。スマホでは1列になります */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 拠点ごとのカードデザイン */
.base-item {
    background: #f9fbfc; /* 薄いグレーブルーの背景 */
    border-radius: 6px;
    padding: 20px;
    box-sizing: border-box;
    border-left: 4px solid #1a569d; /* 左側にアクセントライン */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: background-color 0.2s ease;
}

.base-item:hover {
    background: #f0f5fa; /* ホバー時に少し色を濃くする */
}

.base-name {
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    color: #333;
    font-weight: 700;
}

.base-info {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   求人詳細ページ (Lancers風デザイン)
   ========================================================= */
.job-detail-wrapper {
    max-width: 1500px;
    margin: 10px auto;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* 左側（メインコンテンツ） */
.job-detail-main {
    flex: 1;
    min-width: 0;
}

/* 右側（サイドバー：スクロール追従） */
.job-detail-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 20px; /* スクロールしても画面上部についてくる */
}

/* 白いカードの共通スタイル */
.job-detail-header-card,
.job-detail-body-card,
.action-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 35px;
    margin-bottom: 20px;
}

/* --- メインコンテンツ：ヘッダー部分 --- */
.job-detail-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.badge-cat {
    background: #0056b3;
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 2px;
}
.job-detail-badges .job-id {
    color: #888;
    font-size: 13px;
}
.job-detail-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
    margin-top: 0;
}
.job-tags-list {
    margin-bottom: 30px;
}
.job-tags-list span {
    display: inline-block;
    border: 1px solid #ddd;
    color: #555;
    background: #fafafa;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 15px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* --- メインコンテンツ：概要テーブル --- */
.job-summary-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #eee;
}
.job-summary-table th,
.job-summary-table td {
    padding: 18px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}
.job-summary-table th {
    width: 150px;
    color: #666;
    background: #fafafa;
    font-weight: normal;
}
.job-summary-table th i {
    width: 20px;
    text-align: center;
    color: #0056b3;
    margin-right: 8px;
}
.job-summary-table td {
    color: #333;
    font-weight: 500;
}
.price-text {
    color: #e60012;
    font-size: 20px;
    font-weight: bold;
}

/* --- メインコンテンツ：詳細内容 --- */
.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding: 12px 15px;
    background: #f7f7f7;
    border-left: 4px solid #0056b3;
    margin-top: 0;
    margin-bottom: 20px;
}
.section-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}
.section-content:last-child {
    margin-bottom: 0;
}

/* --- サイドバー：アクションエリア --- */
.action-card {
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* 少し浮かせて目立たせる */
}
.action-price {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}
.action-price .label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}
.action-price .amount {
    display: block;
    font-size: 26px;
    color: #e60012;
    font-weight: bold;
}
.btn-apply {
    display: block;
    background: #e60012;
    color: #fff;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: 0.2s;
}
.btn-apply:hover {
    background: #cc0010;
}
.btn-apply i {
    float: right;
    margin-top: 4px;
}
.btn-favorite {
    display: block;
    width: 100%;
    background: #fff;
    color: #555;
    border: 1px solid #ccc;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-favorite:hover {
    background: #f5f5f5;
}
.btn-favorite i {
    color: #ffb300;
    margin-right: 5px;
}
.action-note {
    font-size: 11px;
    color: #888;
    margin-top: 15px;
    text-align: left;
    line-height: 1.5;
}

/* レスポンシブ対応（スマホ表示） */
@media (max-width: 850px) {
    .job-detail-wrapper {
        flex-direction: column;
        padding: 0 15px;
    }
    .job-detail-sidebar {
        width: 100%;
        position: static;
    }
    .job-summary-table th, .job-summary-table td {
        display: block;
        width: 100%;
    }
    .job-summary-table th {
        background: transparent;
        border-bottom: none;
        padding-bottom: 5px;
    }
    .job-summary-table td {
        padding-top: 0;
        padding-bottom: 15px;
    }
}
/* =========================================
   新しいヒーローセクション (スライダー)
   ========================================= */
.hero-modern {
    padding-top: 120px; 
    padding-bottom: 60px;
    padding-left: 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    overflow: hidden; 
    
    /* ▼ 背景画像を復活させます */
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* ▼ 写真の上に暗いフィルターをかけて文字を読みやすくします */
.hero-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); /* 暗いネイビーのフィルター */
    z-index: 1;
}

/* --- 左側の文字エリア --- */
.hero-modern-text {
    flex: 0 0 45%;
    padding-right: 40px;
    z-index: 2; /* フィルターより手前に持ってくる */
}

.hero-modern-text h1 {
    font-size: 3.2rem;
    color: var(--white); /* 文字色を白に戻す */
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-modern-text p {
    font-size: 1.1rem;
    color: var(--white); /* 文字色を白に戻す */
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* --- 右側のスライダーエリア --- */
.hero-modern-slider {
    flex: 0 0 50%;
    min-width: 0; 
    z-index: 2; /* フィルターより手前に持ってくる */
}


.modern-swiper {
    width: 100%;
    overflow: visible; /* ★ここが重要：右側に次のスライドがはみ出して見えるようにする */
}

.modern-swiper .swiper-slide {
    width: 85%; /* 1枚の幅を85%に。残りの15%で次の画像がチラ見えします */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* 中央にない画像は少し小さくする（リッチな演出） */
.modern-swiper .swiper-slide:not(.swiper-slide-active) {
    transform: scale(0.92);
    opacity: 0.6;
}

.modern-swiper .swiper-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* --- スマホ表示時のレイアウト（文字の上にスライダーが来る） --- */
@media (max-width: 900px) {
    .hero-modern {
        flex-direction: column-reverse; /* スマホでは文字が下、スライダーが上 */
        padding-top: 100px;
        padding-left: 0;
        text-align: center;
    }
    .hero-modern-text {
        padding: 0 5%;
        margin-top: 40px;
    }
    .hero-modern-text h1 {
        font-size: 2.2rem;
    }
    .hero-modern-slider {
        width: 100%;
        padding-left: 5%; /* 左側に少し余白を残して、右に抜ける感じに */
    }
    .modern-swiper .swiper-slide {
        width: 80%; /* スマホ時は少し幅を変える */
    }
    .modern-swiper .swiper-slide img {
        height: 250px;
    }
}

/* =========================================
   Scroll Down Indicator (動く矢印)
   ========================================= */

/* 矢印の配置場所（画面の真ん中の一番下） */
.scroll-down {
    position: absolute;
    bottom: 30px; /* 一番下からの距離 */
    left: 50%;    /* 左から50%の位置 */
    transform: translateX(-50%); /* ぴったり中央に合わせる */
    z-index: 10;  /* 画像などより手前に表示 */
}

/* 矢印の見た目 */
.scroll-down a {
    color: var(--white);
    font-size: 2.5rem; /* ソリューションの文字より少し大きめ */
    display: inline-block;
    opacity: 0.8;
    text-decoration: none;
    /* ▼ bounce（バウンス）というアニメーションを2秒間隔で無限に繰り返す */
    animation: bounce 2s infinite; 
    transition: color 0.3s;
}

/* マウスを乗せた時は青色にする */
.scroll-down a:hover {
    color: var(--accent-color);
}

/* -------------------------------
   上下にピョンピョン動くアニメーションの定義
------------------------------- */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0); /* 元の位置 */
    }
    40% {
        transform: translateY(-15px); /* 15px上に跳ねる */
    }
    60% {
        transform: translateY(-7px);  /* 少しだけ上に跳ねる */
    }
}

/* スマホ表示時の調整 */
@media (max-width: 900px) {
    .scroll-down {
        bottom: 15px; /* スマホでは少し下げる */
    }
    .scroll-down a {
        font-size: 2rem; /* 少し小さくする */
    }
}
