/* =========================
   共通スタイル common.css 相当
========================= */

/* ボディ・基本 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #ffffff;
}

/* ナビゲーションバー */
.navbar {
    position: fixed;       /* 固定 */
    top: 0;
    left: 0;
    width: 100%;           /* 幅100% */
    box-sizing: border-box; /* パディング込みで幅を計算 */
    z-index: 1000;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;      /* 折り返さない */
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
}

/* ナビゲーションバーのメイン項目リンク */
.navbar .menu .dropdown > a {
    color: #333; /* 通常時の文字色 */
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

/* ホバー時に文字色だけ変える */
.navbar .menu .dropdown > a:hover {
    color: orange; /* オレンジ色に変更（お好みで） */
}

/* =========================
   アンカーリンク調整
========================= */
/* ナビゲーションバー高さ分の余白を確保 */
    [id] {
        scroll-margin-top: 100px;  /* .navbar の高さが 80px 前後ならこの値 */
    }

/* ロゴを左に固定 */
.navbar .logo {
    flex-shrink: 0;  /* 縮まない */
}

.navbar .logo img {
    height: 50px;
}

.navbar .menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.navbar .menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 12px;
}

.navbar .menu a.entry {
    background-color: red;
    color: #fff;
    border-radius: 5px;
}

/* メニュー全体の右側余白が消えないようにする */
.navbar .menu > .dropdown,
.navbar .menu > a {
    flex-shrink: 0;  /* 縮まない */
}

.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background-color: #fff;
    border: 1px solid #ccc;
    z-index: 100;
}

.navbar .dropdown:hover .dropdown-content {
    display: block;
}

/* ドロップダウンメニュー */
.navbar .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    background-color: #fff;
    border: 1px solid orange;
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
}

/* 各リンク：枠なし、白背景、文字はオレンジ色 */
.navbar .dropdown-content a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: orange;         /* ← 文字色オレンジに変更！*/
    background-color: #fff;
}

/* hover：薄いオレンジ背景、文字色そのままオレンジ */
.navbar .dropdown-content a:hover {
    background-color: #FFE9D3;
    color: orange;
}

/* =========================
   ページトップ画像
========================= */
.page-top-image {
    width: 90%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    margin: 80px auto 30px;
    border-radius: 10px;
    display: block;
}

/* 見出し */
.heading-container {
    text-align: center;
    margin: 40px auto;
}

.heading-container h2 {
    font-size: 32px;
    font-weight: bold;
    color: red;
}

/* セクションヘッダー */
.section-header {
    max-width: 1200px;
    margin: 60px auto 20px;
    padding-left: 20px;
    text-align: left;
}

.section-header h3 {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}

/* =========================
   道東アークスの仕事 横スクロール用
========================= */
.scroll-gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.scroll-gallery {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.scroll-gallery::-webkit-scrollbar {
    height: 8px;
}

.scroll-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.scroll-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* スクロールボタン */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
}

.left-btn {
    left: 0;
}

.right-btn {
    right: 0;
}

.scroll-btn:hover {
    background: rgba(0,0,0,0.6);
}

/* カード */
.job-card {
    flex: 0 0 auto;
    width: 240px;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    cursor: pointer;
}

.job-card img {
    width: 200%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.job-card:hover img {
    transform: scale(1.05);
}

.job-card .text-link {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #003300;
    text-decoration: none;
    margin: 10px 0;
}

.job-card .text-link:hover {
    color: #66bb66;
    text-decoration: underline;
}

/* =========================
   社員の声ギャラリー
========================= */
.voice-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.voice-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 350px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.voice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.voice-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.voice-card:hover .voice-image img {
    transform: scale(1.05);
}

.voice-text {
    padding: 20px;
    text-align: center;
}

.voice-text h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.voice-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* =========================
   テキストのみセクション
========================= */
.text-only-section {
    text-align: center;
    margin: 60px auto 30px;
}

.text-only-section h3 {
    font-size: 32px;
    font-weight: bold;
    color: red;
}

.no-underline {
    text-decoration: none !important; /* !important で優先度アップ */
    color: inherit;
}

/* =========================
   ボタンセクション
========================= */
.button-section {
    text-align: center;
    margin: 40px 0 80px;
}

.action-button {
    display: inline-block;
    padding: 24px 100px;
    margin: 0 10px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.orange-button {
    background-color: orange;
}

.orange-button:hover {
    background-color: darkorange;
}

.red-button {
    background-color: red;
}

.red-button:hover {
    background-color: darkred;
}

/* =========================
   フッター
========================= */
.footer-container {
    background-color: #ffffff;
    padding: 40px 20px;
    font-size: 16px;
    color: #333;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px; /* ←ここでグループ間のスペースを広げます */
}

.footer-column {
    flex: 1 1 200px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #333;
}

.footer-column > ul > li > a {
    font-weight: bold; /* メインメニューのみ太字 */
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-column img {
    max-width: 220px;
}

.copyright {
    text-align: center;
    margin-top: 20px;
}

/* =========================
   レスポンシブデザイン
========================= */
@media (max-width: 768px) {

    .heading-container h2 {
        font-size: 24px;
    }

    .section-header {
        text-align: center;
        padding-left: 0;
    }

    .section-header h3 {
        font-size: 20px;
    }

    .text-only-section h3 {
        font-size: 24px;
    }

    .scroll-gallery {
        gap: 16px;
    }

    .scroll-gallery-wrapper {
        padding: 0 20px;
    }

    .job-card {
        width: 200px;
    }

    .voice-gallery {
        flex-direction: column;
        align-items: center;
    }

    .voice-card {
        width: 90%;
    }
}

/* ▼▼▼ ハンバーガーメニュー（スマホ用） ▼▼▼ */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px 15px;
}

/* メニューはスマホでは最初は非表示 */
@media (max-width: 768px) {

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        padding: 10px 0;
        border-top: 1px solid #ccc;
    }

    .menu.active {
        display: flex;
    }

    /* ドロップダウンの中身も常に開く */
    .dropdown-content {
        position: static;
        display: none;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .hamburger {
        display: block;
    }
}
/* ▲▲▲ ハンバーガーメニューここまで ▲▲▲ */

/* ▼▼▼ フッターのスマホ最適化 ▼▼▼ */
@media (max-width: 768px) {
    .footer-content {
        display: block;
        text-align: left;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-column img {
        width: 150px;
        height: auto;
    }
}
/* ▲▲▲ フッターここまで ▲▲▲ */

