/* リセットや基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* 白と黒を基調としたモダンデザイン */
body {
  background-color: #FAFAFA;
  color: #222;
  line-height: 1.6;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #FAFAFA;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  z-index: 999;
}

.header-contents {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  text-decoration: none;
  color: #222;
  font-weight: bold;
  font-size: 1.2rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: #222;
  display: block;
}

/* ナビゲーション */
.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* メインコンテンツ全体 */
main {
  margin-top: 70px; /* ヘッダー分のスペースを確保 */
  padding: 1rem;
}

.slider-container {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;    /* 横にあふれた分を隠す */
  margin: 0 auto;      /* 中央寄せ */
  position: relative;
  opacity: 0;
  animation: fadeInFromAbove 1s ease-in-out forwards; /* ページ読み込み後に発火 */
}

.slider-wrap {
  display: flex;              /* 横に並べる */
  transition: transform 0.5s ease-in-out; /* アニメーション */
}

.slide {
  min-width: 100%;
  height: auto;
  max-width: 1200px; /* 必要に応じて数値を変更 */
  max-height: 400px;
  margin: 0 auto;    /* 中央寄せ */
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 10px;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* 「前へ」「次へ」ボタン共通デザイン */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #FAFAFA;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10; /* スライドより前面に出す */
  transition: background 0.3s;
  border-radius: 3px;
}
.slide-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* 左右位置の違いだけ指定 */
.slide-btn--prev {
  left: 10px;
}
.slide-btn--next {
  right: 10px;
}

.caption {
  position: absolute;
  bottom: 20px;
  left: 30px;
  background-color: rgba(255,255,255,0.8);
  padding: 10px;
  border: 1px solid #222;
  border-radius: 5px;
}

.caption h2 {
  margin-bottom: 0.5rem;
}

.caption a {
  color: #222;
  text-decoration: underline;
  font-weight: bold;
}

/* スライダーナビゲーション */
.slider-nav {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.slider-nav .dot {
  width: 10px;
  height: 10px;
  border: 1px solid #222;
  border-radius: 50%;
  cursor: pointer;
  background-color: #FAFAFA;
}

.slider-nav .active-dot {
  background-color: #222;
}

section {
  max-width: 1200px; /* デザインに合わせて調整 */
  margin: 0 auto;    /* 中央寄せ */
  padding: 0.5rem 1rem;   /* 画面幅が狭い時の左右余白 */
}

section .section-contents {
  opacity: 0;               /* 最初は非表示（透明） */
  animation: fadeIn 1s ease-out forwards 1.4s;
}

section .section-title {
  position: relative;
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0;               /* 最初は非表示（透明） */
  animation: fadeIn 1s ease-in-out forwards 0.5s;
}

section .section-title::after {
  content: "";
  display: block;
  width: 100%;          /* 線の長さ。好みで調整 */
  height: 1px;          /* 線の太さ */
  background-color: #222;
  margin: 0.25rem auto 1em; 
  /* 上: 025rem離す、左右: auto => 中央寄せ、下: 0 */
  transform-origin: center; /* スケールの原点を中央に */
  opacity: 0;
  animation: expandLine 0.7s ease-in-out forwards 0.7s;
}

article {
  margin: 2rem auto;    /* 中央寄せ */
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);  /* 少し下から */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInFromAbove {
  0% {
    opacity: 0;
    transform: translateY(-10px);  /* 少し下から */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 下線が中心から一気に広がる */
@keyframes expandLine {
  0% {
    opacity: 1;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}
/* Newsセクション */
.news-section {
  margin-bottom: 2rem;
}

.news-section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.news-list {
  list-style: none;
  margin-bottom: 1rem;
}

.news-list li {
  margin-bottom: 0.5rem;
}

.news-list a {
  text-decoration: none;
  color: #222;
  transition: color 0.2s;
}

.news-list a:hover {
  text-decoration: underline;
  color: #666;
}

.news-more a {
  text-decoration: underline;
}

/* About us リンク */
.intro-section, .service-section {
  margin-bottom: 2rem;
}

.intro-section h2, .service-section h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.intro-section p, .service-section p {
  margin-bottom: 1rem;
}

/* ボタン共通 */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid #222;
  text-decoration: none;
  color: #222;
  background-color: #FAFAFA;
  transition: all 0.2s;
  border-radius: 3px;
}

.btn:hover {
  background-color: #222;
  color: #FAFAFA;
}

/* フッター */
.footer {
  border-top: 1px solid #222;
  padding: 1rem;
  text-align: center;
  margin-top: 2rem;
}

.sitemap {
  margin-bottom: 1rem;
}

.sitemap h3 {
  margin-bottom: 0.5rem;
}

.sitemap ul {
  list-style: none;
  display: inline-flex;
  gap: 1rem;
}

.sitemap a {
  text-decoration: none;
  color: #222;
}


/* 各ページのタイトル */
.page-title {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInFromAbove 0.8s ease-in-out forwards;
}

.title-en {
  font-size: 2rem; /* 英語タイトルのサイズ */
  font-weight: bold;
  color: #222;
}

.title-jp {
  font-size: 1rem; /* 日本語タイトルのサイズ */
  color: #444;
}
/* Aboutページ用のセクション */
.slogan-section {
  text-align: center;
  margin-bottom: 2rem;
}

.slogan-section h1 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.about-details ul {
  list-style: none;
  margin: 1rem 0;
  padding-left: 1rem;
}
.company-table {
  width: 100%;
  border-collapse: collapse;  /* テーブルのセルの隙間をなくす */
}

.company-table th,
.company-table td {
  background-color: #FAFAFA;
  border: 1px solid #222;     /* 罫線を黒で表示 */
  padding: 0.75rem 1rem;
  vertical-align: top;        /* セルの縦方向を上揃え */
}

.company-table th {
  background-color: #ddd;  /* ヘッダセルに薄い背景色 */
  width: 30%;                 /* 列幅の目安 */
  font-weight: bold;
  text-align: left;           /* 項目名は左寄せ推奨 */
}
/* Recruitページ用 */
.recruit-section {
  margin-bottom: 2rem;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-item {
  width: 80%;
  margin: 0 auto; 
  border: 1px solid #222;
  padding: 1rem;
  border-radius: 5px;
}

.job-item ul {
  padding: 0% 10%;
  list-style: none;
}


.job-item p {
  padding: 0% 10%;
  list-style: none;
}

.job-item li {
  list-style: none;
}

.job-item h2 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.job-item h2::after {
  content: "";
  display: block;
  width: 80%;          /* 線の長さ。好みで調整 */
  height: 1px;          /* 線の太さ */
  background-color: #222;
  margin: 0.25rem auto 1em; 
  /* 上: 0.5rem離す、左右: auto => 中央寄せ、下: 0 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #FAFAFA;
    position: absolute;
    top: 60px;
    right: 10px;
    border: 1px solid #222;
    padding: 1rem;
  }
  .nav-links a {
    margin: 0.5rem 0;
  }
  .nav-links.show {
    display: flex;
  }
}
