/* ==========================================
   1. 基本設定 & 共通パーツ（全ページ共通）
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; 
    line-height: 1.8; color: #333; overflow-x: hidden; background-color: #fff;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section-padding { padding: 90px 0; }
.bg-light { background-color: #f8f9fa; }

/* ヘッダー固定設定 */
header { 
    background: #fff; height: 80px; display: flex; align-items: center; 
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 24px; font-weight: bold; color: #003366; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { font-weight: bold; font-size: 15px; color: #444; }
.nav-links a:hover, .nav-links a.active { color: #0066cc; }

/* 下層共通ヘッダー */
.page-header { background: #003366; color: #fff; padding: 70px 0; text-align: center; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 60px; position: relative; padding-bottom: 15px; color: #003366; }
.section-title::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 4px; background: #0066cc; }

/* 共通ボタン */
.btn { padding: 15px 40px; border-radius: 50px; font-weight: bold; display: inline-block; transition: 0.3s; text-align: center; cursor: pointer; border: none; }
.btn-main { background: #00ccff; color: #003366; }
.btn-main:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-sub { border: 2px solid #fff; color: #fff; }

/* ==========================================
   2. トップページ専用 (index.html)
   ========================================== */
.hero { 
    height: 75vh; text-align: center; color: #fff; display: flex; align-items: center;
    background: linear-gradient(135deg, rgba(0,51,102,0.8) 0%, rgba(0,102,204,0.6) 100%), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1200') center/cover;
}
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
.hero-btns { display: flex; gap: 20px; justify-content: center; margin-top: 30px; }

.news-bar { background: #fff; padding: 20px 30px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; align-items: center; margin: -40px auto 60px; position: relative; z-index: 10; }
.news-label { background: #003366; color: #fff; padding: 2px 12px; font-size: 12px; border-radius: 3px; margin-right: 20px; }

.top-grid { display: flex; gap: 25px; }
.top-card { flex: 1; padding: 40px; background: #fff; border: 1px solid #eee; border-radius: 12px; transition: 0.4s; }
.top-card i { font-size: 2.5rem; color: #0066cc; margin-bottom: 20px; display: block; }
.more-link { display: inline-block; margin-top: 15px; color: #0066cc; font-weight: bold; font-size: 14px; }

.recruit-banner { background: linear-gradient(rgba(0,51,102,0.9), rgba(0,51,102,0.9)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1200') center/cover; color: #fff; text-align: center; padding: 90px 0; }

/* ==========================================
   3. 事業紹介（一覧・詳細共通）
   ========================================== */
.svc-row { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.svc-row.reverse { flex-direction: row-reverse; }
.svc-text { flex: 1.2; }
.svc-img { flex: 0.8; }
.svc-img img { border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; height: 350px; object-fit: cover; }
.svc-num { font-size: 3rem; font-weight: bold; color: #e9ecef; line-height: 1; }
.svc-title-sub { font-size: 2rem; color: #003366; margin-bottom: 10px; }

/* 事例ボックス（詳細ページ用） */
.case-study-item { background: #fff; border: 1px solid #eee; border-radius: 15px; overflow: hidden; margin-bottom: 60px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.case-study-header { background: #003366; color: #fff; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; }
.case-study-body { padding: 40px; display: flex; gap: 40px; }
.case-info { flex: 1.5; }
.case-visual { flex: 1; }
.case-visual img { border-radius: 10px; height: 300px; object-fit: cover; width: 100%; }

.case-box-detail { padding: 20px; border-radius: 8px; margin-bottom: 15px; border-left: 5px solid #ccc; }
.case-box-detail.before { background: #fff5f5; border-color: #e03131; }
.case-box-detail.after { background: #f4fce3; border-color: #5c940d; }
.case-box-detail h5 { font-size: 0.85rem; margin-bottom: 5px; opacity: 0.8; }
.point-list { list-style: none; padding-left: 0; margin-top: 15px; }
.point-list li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.point-list li::before { content: "✔"; position: absolute; left: 0; color: #0066cc; font-weight: bold; }

/* ==========================================
   4. 会社概要・採用情報（テーブル系）
   ========================================== */
.info-table, .job-table { width: 100%; border-collapse: collapse; border-top: 2px solid #003366; margin-top: 30px; background: #fff; }
.info-table th, .job-table th { width: 25%; background: #f4f7fa; padding: 20px; text-align: left; border-bottom: 1px solid #dee2e6; vertical-align: top; }
.info-table td, .job-table td { padding: 20px; border-bottom: 1px solid #dee2e6; }

.history-item { display: flex; margin-bottom: 30px; border-left: 2px solid #0066cc; padding-left: 30px; position: relative; }
.history-item::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; background: #0066cc; border-radius: 50%; }
.history-year { font-weight: bold; color: #003366; width: 100px; flex-shrink: 0; }
.signature-name { font-family: 'Klee One', cursive; font-size: 32px; text-align: right; display: block; margin-top: 20px; }

/* 採用ベネフィット */
.benefit-grid { display: flex; gap: 20px; margin: 40px 0 80px; }
.benefit-card { flex: 1; background: #f8f9fa; padding: 40px 30px; border-radius: 12px; text-align: center; transition: 0.3s; }
.benefit-card i { font-size: 2.5rem; color: #0066cc; margin-bottom: 20px; display: block; }

/* ==========================================
   5. レスポンシブ
   ========================================== */
@media (max-width: 992px) {
    .top-grid, .svc-row, .svc-row.reverse, .case-study-body, .benefit-grid { flex-direction: column; }
    .svc-img, .case-visual { order: -1; width: 100%; margin-bottom: 20px; }
    .info-table th, .job-table th, .info-table td, .job-table td { display: block; width: 100%; }
    .hero h1 { font-size: 2.2rem; }
}
footer { background: #1a1a1a; color: #fff; padding: 60px 0 20px; text-align: center; }