/* リセットなど基本スタイル */
* {
  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; /* ロゴ左、nav右 */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ナビのリスト横並び＆右寄せ */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0; /* 区切り線で間隔調整するため */
  margin: 0;
  padding: 0;
  align-items: center; /* リンク高さを揃える */
}

/* リンク一つずつ区切り線を入れる */
.main-nav li {
  border-left: 1px solid #ccc;
}

/* 最初のリンクだけ左のボーダー消す */
.main-nav li:first-child {
  border-left: none;
}

/* リンクのスタイル */
.main-nav a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap; /* 長いリンクを折り返さない */
  border-radius: 4px;
}

.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: 768px) {
  /* メニューは非表示に */
  .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.active {
    transform: translateX(0);
  }

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

  /* ハンバーガーボタンを表示 */
  .menu-toggle {
    display: flex;
  }
}

/* PC（769px以上）でのメインナビ横並び */
@media (min-width: 769px) {
  .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;
  }
}

