@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* --- 基本設定 --- */
:root {
    --primary-color: #1a673b; /* ロゴの緑 */
    --secondary-color: #384234;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #fff;
    --gray: #6c757d;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    margin: 40px 0 20px;
}

.bg-light {
    background-color: var(--bg-color);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #14522d;
    transform: translateY(-2px);
    opacity: 1;
}

/* --- ヘッダー --- */
.header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-color);
}

.gnav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.gnav li {
    margin-left: 30px;
}

.gnav a {
    color: var(--text-color);
    font-weight: bold;
    padding-bottom: 5px;
    position: relative;
}

.gnav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.gnav a:hover::after,
.gnav a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none; /* PCでは非表示 */
}

/* --- ホーム --- */
.hero {
    background-image: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?q=80&w=1769&auto=format&fit=crop'); /* ダミーのバス画像 */
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 120px 0;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
}

.card-deck {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.card h3 {
    color: var(--primary-color);
    margin-top: 0;
}
.card p {
    margin-bottom: 20px;
}

.news-list {
    list-style: none;
    padding: 0;
}
.news-list li {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}
.news-list li:first-child {
    border-top: 1px solid #ddd;
}
.news-list .date {
    display: inline-block;
    width: 120px;
    color: var(--gray);
}


/* --- 下層ページ --- */
.page-title {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}
.page-title h2 {
    margin: 0;
    font-size: 2rem;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}
.company-table th, .company-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}
.company-table th {
    background-color: var(--bg-color);
    width: 25%;
}
.company-table ul {
    margin: 0;
    padding-left: 20px;
}

.service-features {
    list-style: '✔ ';
    padding-left: 20px;
}

.voice-deck {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.voice-card {
    background-color: var(--bg-color);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    border-radius: 5px;
}
.voice-text {
    margin-bottom: 15px;
}
.voice-text p {
    margin: 0;
}
.voice-profile {
    text-align: right;
    font-weight: bold;
    color: var(--gray);
    transform: translateY(-10px);
}

/* --- お問い合わせフォーム --- */
.contact-form {
    max-width: 700px;
    margin: 40px auto 0;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group .required {
    background-color: #dc3545;
    color: var(--white);
    font-size: 0.8em;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* paddingを含めてwidth 100%にする */
}
.form-submit {
    text-align: center;
}


/* --- フッター --- */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}


/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .hero h2 { font-size: 2.2rem; }

    /* ヘッダーのレスポンシブ */
    .gnav {
        position: fixed;
        top: 81px; /* headerの高さ */
        left: 0;
        width: 100%;
        height: calc(100vh - 81px);
        background-color: rgba(255, 255, 255, 0.95);
        transform: translateX(100%);
        transition: transform 0.3s;
    }
    .gnav.active {
        transform: translateX(0);
    }
    .gnav ul {
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
    }
    .gnav li {
        margin: 0 0 30px 0;
    }
    .gnav a {
        font-size: 1.2rem;
    }

    .hamburger-menu {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
        cursor: pointer;
        background: none;
        border: none;
    }
    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--secondary-color);
        position: absolute;
        transition: transform 0.3s, opacity 0.3s;
    }
    .hamburger-menu span:nth-child(1) { top: 0; }
    .hamburger-menu span:nth-child(2) { top: 9px; }
    .hamburger-menu span:nth-child(3) { bottom: 0; }
    /* ハンバーガーメニューが active なとき */
    .hamburger-menu.active span:nth-child(1) {
        top: 9px;
        transform: rotate(45deg);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:nth-child(3) {
        top: 9px;
        transform: rotate(-45deg);
    }

    /* コンテンツのレスポンシブ */
    .card-deck,
    .voice-deck {
        grid-template-columns: 1fr;
    }
    .company-table th, .company-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .company-table th {
        text-align: center;
        border-bottom: none;
    }
    .company-table td {
        border-top: none;
    }

}

/* --- 採用情報ページ --- */
.recruit-message {
    margin-bottom: 60px;
}

.recruit-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden; /* for border-radius */
}

.recruit-box h4 {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    margin: 0;
    font-size: 1.2rem;
}

.recruit-table {
    width: 100%;
    border-collapse: collapse;
}

.recruit-table th, 
.recruit-table td {
    border-bottom: 1px solid #eee;
    padding: 15px;
    text-align: left;
    vertical-align: top;
}

.recruit-table tr:last-child th,
.recruit-table tr:last-child td {
    border-bottom: none;
}

.recruit-table th {
    background-color: var(--bg-color);
    width: 25%;
    font-weight: bold;
}

.apply-section {
    text-align: center;
    background-color: var(--bg-color);
    padding: 40px;
    margin-top: 50px;
    border-radius: 8px;
}
.apply-section h3 {
    margin-top: 0;
}


/* --- レスポンシブ調整 --- */
@media (max-width: 768px) {
    .recruit-table th {
        width: 100%;
        display: block;
        border-bottom: none;
        padding-bottom: 5px;
    }
    .recruit-table td {
        display: block;
        padding-top: 5px;
    }
}