/* ベーススタイル */
body {
  font-family: 'Poppins','Noto Sans JP', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

/* ヘッダー */
header {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
nav {
  position: relative;
}
nav ul {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 0;
  background: white;
  width: 180px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  z-index: 1200;
}
nav ul.show { display: flex; }
nav ul li { margin: 0; padding: 8px 20px; }
nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: block;
}

/* ロゴ */
.logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* ハンバーガー */
.hamburger {
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger-logo {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* ヒーロー */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: row;
}
.hero-left {
  flex: 2;
  background: url('../images/background_top.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  text-align: center;
}
.hero-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.2);
}
.hero-text {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
  max-width: 600px;
}
.hero-text h1 {
  font-size: 3em;
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 1.2em;
  margin: 20px 0;
}
.btn-link {
  display: inline-block;
  background: #2AB6A9;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn-link:hover {
  background: #229c92;
}

/* ヒーロー右ナビ */
.hero-right {
  flex: 1;
  display: grid;
  /*grid-template-rows: repeat(4, 1fr);*/
  grid-auto-rows: 1fr; /* 行数を自動で均等割り当て */
  background: white;
  border-left: 1px solid #ddd;
}
.nav-block {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #ddd;
}
.nav-block:last-child { border-bottom: none; }
.nav-block a {
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.nav-block a:hover {
  background: #2AB6A9;
  color: white;
}

/* セクション共通 */
.content-section, .info-section, .career-section {
  padding: 80px 50px;
  background: #f9f9f9;
}
.content-section:nth-child(even) { background: white; }
.content-section h1 { margin-bottom: 20px; text-align: center; }
p, table { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* パララックス */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.parallax .overlay {
  background: rgba(255, 255, 255, 0.8);
  padding: 50px;
  border-radius: 10px;
}

/* 会社情報 */
.info-section table { width: 100%; border-collapse: collapse; }
.info-section th, .info-section td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

/* 採用情報 */
.career-section h1 {
  text-align: center;
  margin-bottom: 40px;
}

.career-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.career-left {
  flex: 1 1 300px;
  text-align: center;
}

.career-left p {
  margin-bottom: 15px;
  font-size: 16px;
}

.career-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #2AB6A9;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: all 0.3s;
}

.career-btn:hover {
  background: #229c92;
}

.career-right {
  flex: 1 1 300px;
  text-align: center;
}

.career-right img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* お問い合わせ */
#contact .logo { margin-bottom: 20px; }
#contact .logo img {
  max-width: 200px;
  height: auto;
  display: block;      /* 画像をブロック要素化 */
  margin: 0 auto;      /* 左右マージン自動 → 中央寄せ */
}

/* お問い合わせセクション専用の中央寄せ */
#contact {
  text-align: center;
}

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

/* スマホ対応 */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
  }
  .hero-left {
    width: 100%;
    height: 50vh;
  }
  .hero-text h1 { font-size: 2em; }
  .hero-text p { font-size: 1em; }
  .hero-right {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto; /* 高さは自動調整 */
    /*grid-template-rows: auto auto;*/
    border-left: none;
    border-top: 1px solid #ddd;
  }
  .nav-block { border-right: 1px solid #ddd; padding: 1rem 0; }
  .nav-block:nth-child(2n) { border-right: none; }
  .content-section, .info-section, .career-section {
    padding: 40px 20px;
  }

  /* 会社情報テーブルの調整 */
  .info-section table {
    font-size: 12px; /* 本文より少し小さめでスッキリ */
    width: 100%;     /* 画面幅にフィット */
    border-collapse: collapse;
  }
  .info-section th,
  .info-section td {
    padding: 6px 8px; /* パディングも少し狭めてバランスを取る */
    text-align: left;
  }
  .info-section th {
    /*white-space: nowrap;  タイトル列を折り返さない */
    width: 28%;          /* タイトル列を狭める */
  }
  .info-section td {
    width: 72%;          /* 内容列を広めにする */
  }
  .nowrap {
    white-space: nowrap;
  }
  /* 採用情報レスポンシブ */
  .career-container {
    flex-direction: column;
  }
  .career-left, .career-right {
    flex: 1 1 100%;
  }
}