/*
Theme Name: 金子工業LPテーマ
Description: 金子工業様の1ページ完結用オリジナルテーマ
Author: 金子工業
Version: 1.0
*/

/* 共通設定 */
:root {
    --primary-color: #374151;
    --bg-color: #fcfcfc;
    --section-bg: #f3f4f6;
    --text-color: #333333;
    --btn-client: #059669;
    --btn-recruit: #ea580c;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

h1, h2, h3, p { margin: 0; }

section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.bg-gray {
    background-color: var(--section-bg);
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* ヘッダー（ロゴ部分） */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    box-sizing: border-box;
    z-index: 100;
}

.site-header .logo {
    color: white;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-shadow: 
        2px 2px 0 #000,
       -2px -2px 0 #000,
        2px -2px 0 #000,
       -2px  2px 0 #000,
        0px  2px 0 #000,
        0px -2px 0 #000,
        2px  0px 0 #000,
       -2px  0px 0 #000,
        4px  4px 10px rgba(0,0,0, 0.8);
}

/* ファーストビュー */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #374151;
    /* ★画像フォルダを参照するようにパスを変更しています★ */
    background-image: 
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
        url('images/bg-image.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(24px, 5vw, 42px);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero p {
    font-size: clamp(16px, 3vw, 22px);
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn:hover { 
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.btn-client { background-color: var(--btn-client); }
.btn-recruit { background-color: var(--btn-recruit); }

/* コンセプト */
.concept-text { text-align: center; max-width: 800px; margin: 0 auto; font-size: 16px; }

/* 事業内容 */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; }
.service-card h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 20px; }

/* 施工事例 */
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.work-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }
.work-item p { margin-top: 10px; font-size: 14px; text-align: center; }

/* 会社概要＆採用情報 */
table { width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse; }
th, td { padding: 15px; border-bottom: 1px solid #e5e7eb; text-align: left; }
th { width: 30%; background-color: #f9fafb; color: var(--primary-color); }

/* お問い合わせフォーム */
.contact-form { max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.form-group textarea { height: 150px; resize: vertical; }
.submit-btn { width: 100%; padding: 15px; background-color: var(--primary-color); color: white; border: none; border-radius: 4px; font-size: 16px; font-weight: bold; cursor: pointer; transition: opacity 0.3s; }
.submit-btn:hover { opacity: 0.9; }

/* フッター */
footer { background-color: var(--primary-color); color: white; text-align: center; padding: 20px; font-size: 14px; }

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .site-header { padding: 15px 20px; }
    .site-header .logo { font-size: 28px; }
    .hero { height: 70vh; }
    .btn { width: 100%; box-sizing: border-box; }
}