@charset "UTF-8";

/* --- 基本設定 --- */
:root {
    --main-color: #2E7D32; /* 濃い緑 */
    --accent-color: #4CAF50; /* 明るい緑 */
    --bg-light: #F1F8E9; /* 薄い緑の背景 */
    --text-color: #333;
    --white: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--main-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 40px;
}

.section-desc {
    text-align: center;
    margin-bottom: 40px;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.bg-green { background-color: var(--main-color); }
.text-white { color: var(--white) !important; }

/* --- ヘッダー --- */
.header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center; /* 垂直方向の中央揃え */
    gap: 10px;           /* 画像と文字の間隔 */
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--main-color);
    text-decoration: none;
}

/* ロゴ画像のサイズ調整 */
.logo img {
    height: 40px; /* ヘッダーの高さに合わせて調整してください */
    width: auto;  /* 比率を保持 */
}

.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item a {
    font-weight: bold;
    font-size: 0.95rem;
}

.nav-item a:hover {
    color: var(--accent-color);
}

.nav-btn {
    background-color: var(--main-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
}

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

/* ハンバーガーメニュー（PCでは非表示） */
.toggle-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.toggle-menu .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    position: absolute;
    transition: 0.3s;
}

.toggle-menu .bar:nth-child(1) { top: 0; }
.toggle-menu .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.toggle-menu .bar:nth-child(3) { bottom: 0; }

/* --- メインビジュアル (Hero) --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 50px 20px;
    min-height: 600px; /* 高さ確保 */
}

.hero-content {
    flex: 1;
    padding-right: 40px;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--main-color);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
    object-fit: cover; /* 写真の比率を崩さない */
}

/* --- 事業概要 --- */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.business-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--main-color);
}

.business-item h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--main-color);
}

/* --- 施工実績 --- */
.works-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.work-item {
    background: var(--bg-light);
    padding-bottom: 15px;
    text-align: center;
}

.work-img-placeholder {
    background-color: #ccc;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 10px;
}

/* --- 採用情報 --- */
.recruit-box {
    border: 1px solid #ddd;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
}

.recruit-box dl {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.recruit-box dt {
    width: 30%;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding: 15px;
    background: var(--bg-light);
}

.recruit-box dd {
    width: 70%;
    border-bottom: 1px solid #eee;
    padding: 15px;
}

.btn-wrapper { text-align: center; }
.btn-green {
    display: inline-block;
    background: var(--main-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
}

.btn-green:hover { opacity: 0.9; }

/* --- お問い合わせ --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc; /* 白背景時は枠線あり */
    border-radius: 5px;
    font-family: inherit;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--white);
    color: var(--main-color);
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #eee;
}

/* --- フッター --- */
.footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
}

.footer-logo {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 10px;
}

/* --- レスポンシブ対応 (スマホ向け) --- */
@media (max-width: 768px) {
	.logo a {
        font-size: 1.2rem; /* スマホでは文字を少し小さく */
    }
    .logo img {
        height: 30px; /* スマホではロゴも少し小さく */
    }
	
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .hero-title { font-size: 2rem; }

    .header-inner {
        position: relative;
    }

    /* ハンバーガー表示 */
    .toggle-menu { display: block; }

    /* ナビゲーションを隠す設定 */
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        height: 100vh;
        display: none; /* 最初は非表示 */
        padding-top: 40px;
    }
    
    /* クラスが付与されたら表示 */
    .nav.active { display: block; }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .recruit-box dt, .recruit-box dd {
        width: 100%;
        display: block;
        border-bottom: none;
    }
    .recruit-box dt { border-top: 1px solid #eee; }
}