@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;
}
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: 140px 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 6%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1300;
    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: 2px;
}
.logo-z {
    display: inline-block;
    font-size: 1.18em;
}
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 25px; }
nav ul li a { font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; }
nav ul li a i { margin-right: 8px; color: #004098; font-size: 1rem; width: 18px; text-align: center; }
nav ul li a:hover { color: #004098; }

/* --- ハンバーガーメニュー --- */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
}
.hamburger:focus-visible { outline: 2px solid rgba(0,64,152,0.6); outline-offset: 2px; }
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 6px auto;
    background: #004098;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
body.nav-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay { display: none; }

/* --- メインバナー (index.html用) --- */
.hero {
    position: relative;
    width: 100%; height: 70vh;
    margin-top: 80px;
    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; }
.hero-text h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 25px; font-weight: 700; line-height: 1.3; }
.hero-btn { 
    display: inline-block; padding: 18px 50px; 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; }
.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; }

.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: 30px; }

/* 採用情報テーブルスタイル */
.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; 
}

.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; }
.submit-btn { background: #004098; color: #fff; padding: 15px 60px; border: none; font-weight: 700; cursor: pointer; display: block; margin: 0 auto; }

/* --- フッター (2列化) --- */
footer {
    background: #fff; padding: 60px 0 20px;
    border-top: 3px solid #004098; margin-top: 80px;
}
.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; }
.footer-nav-columns a i { margin-right: 12px; color: #004098; font-size: 1rem; width: 18px; text-align: center; }

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

@media (max-width: 768px) {
    /* ヘッダー：ハンバーガー表示／ナビはドロワー化 */
    .hamburger { display: inline-flex; align-items: center; justify-content: center; }
    nav.site-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(80vw, 340px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        padding: 90px 24px 24px;
        z-index: 1250;
        border-left: 1px solid rgba(0,0,0,0.06);
    }
    body.nav-open nav.site-nav { transform: translateX(0); }
    nav.site-nav ul { display: flex; flex-direction: column; list-style: none; }
    nav.site-nav ul li { margin-left: 0; }
    nav.site-nav ul li a {
        padding: 14px 10px;
        font-size: 1rem;
        border-radius: 10px;
    }
    nav.site-nav ul li a:hover { background: rgba(0, 64, 152, 0.08); }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 1100;
    }
    body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
    body.nav-open { overflow: hidden; }

    .hero { height: 50vh; }
    .footer-nav-columns { grid-template-columns: 1fr; }

    /* テーブルを縦積み（スマホ対応） */
    .recruit-table th, .recruit-table td { display: block; width: 100%; border-bottom: none; }
    .recruit-table th { border-bottom: 1px solid #eee; }
    .recruit-table tr { border-bottom: 2px solid #ddd; }

    .company-table th, .company-table td { display: block; width: 100%; border-bottom: none; }
    .company-table th { width: 100%; }
    .company-table tr { border-bottom: 2px solid #eee; }
    .map-container iframe { height: 280px; }

    .biz-section { flex-direction: column; }
}

@media (max-width: 480px) {
    header { height: 72px; }
    .hero { margin-top: 72px; }
    .logo { font-size: 1.4rem; }
    .container { padding-top: 120px; }
}
