/* 全体背景設定 */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #0b0c10;
  color: #c5c6c7;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* パーティクル背景 */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -2;
}

/* ヘッダー */
header {
  text-align: center;
  padding: 40px 20px;
}

header h1 {
  color: #ff4c4c;
  font-size: 3rem;
  text-shadow: 0 0 10px #ff4c4c88;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

nav a {
  color: #45a29e;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

nav a:hover {
  color: #66fcf1;
}

/* メイン */
main {
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
}

main h2 {
  color: #ff4c4c;
  margin-bottom: 30px;
  font-size: 2rem;
}

/* --- サービスカードのレイアウト修正（2列表示用） --- */
.service-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* カード同士の間隔 */
}

.service-card {
  position: relative;
  /* 2列にするため、幅を45%〜48%程度に設定 */
  flex: 1 1 45%; 
  min-width: 300px; /* スマホで見るときは1列に落とすための最小幅 */
  max-width: 450px;
  height: 250px;
  background-color: #1f2833;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 20px #45a29e22;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 背景画像の基本設定（HTML側でURLを上書きする） */
.service-bg {
  background-size: cover;
  background-position: center;
  filter: brightness(0.4); /* 文字を見やすくするため少し暗くする */
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  transition: filter 0.3s;
}

.service-card:hover .service-bg {
  filter: brightness(0.6); /* ホバー時に少し明るくする演出 */
}

/* カード内のテキスト配置 */
/* サービス内の文字エリア（土台を完全に消す） */
.service-content {
  width: 100%;       /* 幅をいっぱいにする */
  background: none !important;      /* 背景を強制的に消す */
  box-shadow: none !important;      /* 外側の影を消す */
  border: none !important;          /* 枠線を消す */
  padding: 0;                       /* 余白による変な広がりを消す */
  margin: 0;                        /* 中央寄せの余計なマージンを消す */
  
  position: relative;
  z-index: 1; 
  text-align: center;
  pointer-events: none;             /* クリックイベントを親のカードに任せる */
}

/* 文字に影をつけて、画像の上でも読みやすくする（おすすめ） */
.service-content h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* 文字の影 */
}

.service-content p {
  font-size: 1rem;
  color: #e0e0e0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* 文字の影 */
}

/* フッター */
footer {
  padding: 20px;
  font-size: 0.9rem;
  color: #888;
  text-align: center;
}

/* サービス紹介共通レイアウト */
.service-content {
  width: 90%;
  max-width: 900px;
  background-color: #1f2833;
  border-radius: 12px;
  padding: 30px;
  margin: 40px auto;
  box-shadow: 0 0 15px #45a29e33;
  text-align: center; /* ← 追加：全体中央揃え */
}

.service-content p,
.service-content li {
  text-align: center; /* ← 各段落・リストも中央揃え */
}


.sample-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.sample-box {
  flex: 1 1 45%;
  background-color: #0b0c10;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px #222;
}

.sample-box img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 0 5px #333;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #ff4c4c;
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(255, 76, 76, 0.3);
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #e04343;
}

/* スライダーのアニメーション */
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* 縦横比は任意で調整 */
  overflow: hidden;
  margin: 0 auto;
}

.slider img.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider img.slide.active {
  opacity: 1;
  z-index: 1;
}

