/* リセットなど基本スタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica', sans-serif;
  line-height: 1.6;
  color: #333;
  position: relative;
  min-height: 100vh;
  background: none; /* 背景は疑似要素で */
  padding-top: 60px; /* ヘッダーの高さ分の余白確保 */
}

/* ページ全体の背景画像を固定 */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('sozai_image_141215.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* ヘッダー背景を白にして固定＆影 */
.site-header {
  background-color: rgba(245, 245, 245, 0.9);
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ヘッダー内のコンテナでロゴとナビを横並びに */
/* ヘッダー内のコンテナでロゴとナビを横並びに */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ナビゲーションを右詰に */
.main-nav {
  margin-left: auto;
}

/* ナビリスト横並び */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* 各リンクの左に区切り線 */
.main-nav li {
  border-left: 1px solid #ccc;
  padding: 0 10px; /* 線との間隔調整 */
}

/* 最初のリンクだけ区切り線を消す */
.main-nav li:first-child {
  border-left: none;
}

/* リンクスタイル */
.main-nav a {
  display: block;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 8px 0; /* 縦方向のみ余白 */
}



.main-nav a:hover,
.main-nav a:focus {
  color: #007BFF;
  background-color: rgba(0, 123, 255, 0.1);
}


/* ヒーローセクション */
.hero {
  background: transparent;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 20px;
}

.hero-text h1 {
  font-size: 3rem;
  animation: fadeIn 2s ease-out;
}

.hero-text p {
  font-size: 1.5rem;
  margin-top: 10px;
  animation: fadeIn 3s ease-out;
}

/* 画像スライダー */
.image-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin: 50px 0;
  z-index: 1;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 25%;
  max-width: 25%;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 企業理念セクション */
.philosophy,
.about,
.News,
.access,
.Form {
  padding: 80px 20px;
  background-color: rgba(245, 245, 245, 0.9); /* ほんのり白背景で見やすく */
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

h2 {
  margin-bottom: 20px;
}

/* フェードインアニメーション例 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ハンバーガーメニューのボタン */
.menu-toggle {
  display: none; /* PCは非表示 */
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
}

/* スマホ対応 */
@media (max-width: 1100px) {

  .main-nav {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: white;
    width: 200px;
    height: calc(100vh - 60px);
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding-top: 20px;
  }


  /* ハンバーガーメニュー内の区切り線を変更 */
  .main-nav li {
    border-left: none;       /* 左側の線を消す */
    border-bottom: 1px solid #ccc; /* 下線を追加 */
    width: 100%;
    padding: 10px 0;
  }


  /* 最後のメニューだけ下線を消す場合 */
  .main-nav li:last-child {
    border-bottom: none;
  }


  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding-left: 20px;
  }


  .main-nav a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }


  .main-nav.active {
    transform: translateX(0);
  }


  .menu-toggle {
    display: flex;
  }

}
/* PC（769px以上）でのメインナビ横並び */
@media (min-width: 1101px) {
  .main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
  }

  .main-nav li {
    margin: 0;
  }

  .main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  .main-nav a:hover,
  .main-nav a:focus {
    color: #007BFF;
    background-color: rgba(0, 123, 255, 0.1);
  }

  /* ハンバーガーメニューはPCでは非表示 */
  .menu-toggle {
    display: none;
  }
}

/* --- スクロールアニメーション用 --- */
.section-animate {
  opacity: 0;
  transform: translateX(50px); /* 右から */
  transition: all 0.8s ease-out;
}

.section-animate.left {
  transform: translateX(-50px); /* 左から */
}

.section-animate.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Recruitページ */

.recruit-page {
  padding: 120px 20px 80px;
}

.recruit-card {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding: 50px;

  background-color: rgba(255,255,255,0.9);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.recruit-card h2 {
  text-align: center;
  margin-bottom: 40px;
}

.recruit-card h3 {
  margin-top: 35px;
  margin-bottom: 10px;
  border-left: 6px solid #007BFF;
  padding-left: 10px;
}

.recruit-card p,
.recruit-card ul,
.recruit-card table {
  margin-bottom: 20px;
}

.recruit-card ul {
  padding-left: 20px;
}

.home-link {
  display: block;
  width: fit-content;
  margin: 30px auto;
}
.sp-br {
  display: none;
}

.map {
  width: 100%;
  height: 450px;
  border: 0;
}

@media (max-width: 768px) {
  .map {
    height: 300px;
  }
}

/* PCでは改行しない */
.sp-br {
  display: none;
}

/* スマホでは改行する */
@media (max-width: 768px) {
  .sp-br {
    display: inline;
  }
}