@charset "UTF-8";

/* --- 基本設定 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #fff;
    padding-top: 80px; /* ヘッダーの高さ分 */
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

/* --- 共通レイアウト --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}
.hero + .container { padding-top: 60px; }

.page-title {
    text-align: center;
    margin-bottom: 60px;
}
.page-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #004098;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.page-title span {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
}

/* --- ヘッダー --- */
header {
    position: fixed;
    top: 0; width: 100%; height: 80px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #004098;
    letter-spacing: 1px;
    z-index: 2000; /* ハンバーガーメニューより上に表示 */
}

/* --- ナビゲーション (PC用) --- */
.global-nav ul { display: flex; list-style: none; }
.global-nav ul li { margin-left: 25px; }
.global-nav ul li a { 
    font-size: 0.85rem; font-weight: 500; 
    display: flex; align-items: center; 
    color: #333;
}
.global-nav ul li a i { 
    margin-right: 8px; color: #004098; font-size: 1rem; 
    width: 18px; text-align: center; 
}
.global-nav ul li a:hover { color: #004098; }

/* --- ハンバーガーボタン (PCでは非表示) --- */
.hamburger { display: none; }

/* --- メインバナー (index.html用) --- */
.hero {
    position: relative;
    width: 100%; height: 70vh;
    margin-top: -80px; /* bodyのpadding-topを打ち消して画面上部へ */
    display: flex; align-items: center; justify-content: center;
    background-color: #000; color: #fff; overflow: hidden;
}
.slide-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease-in-out; z-index: 1;
}
.slide-item.active { opacity: 1; }
.hero-text { position: relative; z-index: 10; text-align: center; padding: 0 20px; }
.hero-text h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 25px; font-weight: 700; line-height: 1.3; }
.hero-btn { 
    display: inline-block; padding: 15px 40px; border: 1px solid #fff; 
    color: #fff; font-size: 0.9rem; letter-spacing: 2px;
}
.hero-btn:hover { background: #fff; color: #000; }

/* --- ヒーロー画像 (各ページ用) --- */
.hero-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    animation: kenburns 20s infinite alternate;
}
@keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }

.hero-bg-company { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80'); }
.hero-bg-about { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80'); }

/* --- コンポーネント --- */
/* テーブル */
.company-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.company-table th { width: 250px; text-align: left; background: #f9f9f9; padding: 15px; border: 1px solid #eee; color: #004098; font-weight: bold; }
.company-table td { padding: 15px; border: 1px solid #eee; }
.map-container iframe { width: 100%; height: 400px; border: 0; margin-top: 20px; }

/* 事業紹介 */
.biz-section { display: flex; gap: 40px; margin-bottom: 60px; align-items: center; }
.biz-section:nth-child(even) { flex-direction: row-reverse; }
.biz-img { flex: 1; }
.biz-text { flex: 1; }
.biz-text h3 { color: #004098; margin-bottom: 15px; font-size: 1.4rem; border-bottom: 2px solid #eee; padding-bottom: 10px; }

/* 施工事例 */
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.work-card { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.work-img { width: 100%; height: 240px; object-fit: cover; }
.work-info { padding: 25px; }
.work-cat { font-size: 0.8rem; color: #004098; font-weight: bold; margin-bottom: 5px; display: block; }
.work-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; }

/* 採用情報 */
.recruit-section { margin-bottom: 60px; }
.recruit-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.recruit-table th { width: 200px; text-align: left; background: #f4f7fa; padding: 18px; border: 1px solid #ddd; color: #004098; font-weight: 700; vertical-align: top; }
.recruit-table td { padding: 18px; border: 1px solid #ddd; }
.salary-model { background: #f9f9f9; padding: 15px; border-radius: 4px; margin-top: 10px; font-size: 0.9rem; }

/* フォーム */
.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.submit-btn { background: #004098; color: #fff; padding: 15px 60px; border: none; font-weight: 700; cursor: pointer; display: block; margin: 0 auto; border-radius: 4px; }
.submit-btn:hover { background: #002a63; }

/* --- フッター --- */
footer {
    background: rgba(255, 255, 255, 0.95); /* ヘッダーと同じ配色 */
    padding: 60px 0 20px;
    border-top: 3px solid #004098;
    margin-top: 80px;
    color: #333;
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; max-width: 1100px; margin: 0 auto 40px; padding: 0 4%;
}
.footer-info { flex: 1.5; min-width: 300px; margin-bottom: 30px; }
.footer-logo { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; color: #004098; font-weight: 700; margin-bottom: 15px; }

.footer-menu { flex: 1.2; min-width: 320px; }
.footer-nav-columns {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 15px 30px; list-style: none;
}
.footer-nav-columns a { font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; color: #333; }
.footer-nav-columns a i { margin-right: 12px; color: #004098; width: 18px; text-align: center; }
.footer-nav-columns a:hover { color: #004098; text-decoration: underline; }

.copyright { text-align: center; font-size: 0.75rem; color: #999; border-top: 1px solid #eee; padding-top: 20px; }

/* ====================================
   スマホ対応 (レスポンシブ)
   ==================================== */
@media (max-width: 768px) {
    body { padding-top: 60px; } /* ヘッダー高さ調整 */
    header { height: 60px; padding: 0 20px; }
    .logo { font-size: 1.3rem; }

    /* --- ハンバーガーメニュー --- */
    .hamburger {
        display: block;
        position: fixed;
        top: 18px;
        right: 20px;
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 2000;
    }
    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #004098;
        transition: all 0.4s;
    }
    .hamburger span:nth-of-type(1) { top: 0; }
    .hamburger span:nth-of-type(2) { top: 11px; }
    .hamburger span:nth-of-type(3) { bottom: 0; }

    /* メニューオープン時のハンバーガー変形 */
    .hamburger.active span:nth-of-type(1) {
        transform: translateY(11px) rotate(-45deg);
    }
    .hamburger.active span:nth-of-type(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-of-type(3) {
        transform: translateY(-11px) rotate(45deg);
    }

    /* --- スマホ用ナビゲーション --- */
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%; /* 画面外に配置 */
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        transition: all 0.4s ease-in-out;
        z-index: 1500;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .global-nav.active {
        right: 0; /* 画面内にスライド */
    }
    .global-nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    .global-nav ul li {
        margin: 20px 0;
    }
    .global-nav ul li a {
        font-size: 1.2rem;
        justify-content: center;
        padding: 10px;
        display: flex; /* クリック領域を広げる */
    }

    /* --- コンテンツ調整 --- */
    .hero { height: 50vh; margin-top: -60px; }
    .hero-text h1 { font-size: 1.8rem; }
    
    .container { padding: 60px 20px; }
    .page-title { margin-bottom: 40px; }
    .page-title h2 { font-size: 1.8rem; }

    /* テーブルのスマホ対応（縦積み） */
    .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td,
    .recruit-table, .recruit-table tbody, .recruit-table tr, .recruit-table th, .recruit-table td {
        display: block;
        width: 100%;
    }
    .company-table tr, .recruit-table tr { margin-bottom: 20px; border: 1px solid #eee; }
    .company-table th, .recruit-table th { width: 100%; background: #f4f7fa; border: none; border-bottom: 1px solid #ddd; }
    .company-table td, .recruit-table td { width: 100%; border: none; padding: 15px; }

    /* レイアウト調整 */
    .biz-section { flex-direction: column; gap: 20px; }
    .biz-section:nth-child(even) { flex-direction: column; }
    
    .footer-inner { flex-direction: column; }
    .footer-menu { margin-top: 30px; width: 100%; }
    .footer-nav-columns { grid-template-columns: 1fr; gap: 10px; }
}