/* 全体 */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: #333;
}

/* ヘッダー */
header {
    background-color: #f8f8f8;
    padding: 20px;
    text-align: center;
}

.video-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 960px;
}

video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

/* ナビゲーション */
.navbar {
    padding: 10px;
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    margin: 0 10px;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #007bff;
}

/* メインコンテンツ */
main {
    padding: 20px;
    text-align: center;
}

section {
    margin-bottom: 30px;
}

h2 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 各セクションのスタイル */
#outsourcing {
    background-color: #f8f8f8;
}

#about {
    background-color: #fff;
}

#members {
    background-color: #f8f8f8;
}

#contact {
    background-color: #fff;
}

/* 業務委託セクション */
.service {
    text-align: center;
    margin-bottom: 30px;
}

.service img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.service h3 {
    margin-bottom: 10px;
}

.service p {
    text-align: left;
}



/* 組合員情報セクション */
#members {
    position: relative; /* 背景画像を重ねるための設定 */
    overflow: hidden; /* 背景画像がテーブル領域外に表示されないようにする */
}

.members-background {
    position: absolute; /* 絶対配置で背景画像を重ねる */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* テーブルより背面に配置 */
    background-image: url("images/members-background.jpg"); /* 背景画像 */
    background-size: cover;
    background-position: center;
}

/* テーブル */
.table { /* table-borderedをtableに変更 */
    background-color: transparent; /* テーブルの背景を透明にする */
}

.kumiai-conts {
text-align: left;

}



/* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}


.responsive-image {
  width: 100%; /* デフォルトでは画面幅に合わせて画像を拡大縮小 */
  height: auto;
}

/* 768px以上の画面サイズの場合 */
@media screen and (min-width: 768px) {
  .responsive-image {
    width: 65%; /* PCでは画像の幅を50%に */
  }
}

@media (max-width: 767px) {
  .about-image, .about-content {
    display: block; /* ブロック要素として表示 */
    width: 100%; /* 幅を100%に */
    text-align: center; /* テキストを中央寄せ */
  }

  .about-content {
    margin-top: 20px; /* 画像と文章の間に余白を追加 */
  }
}

