@charset "UTF-8";
/* CSS Document */

/* --- メインコンテンツ領域 --- */
.body {
  width: 100%;
  padding-bottom: 80px;
}

/* --- トップ画像 --- */
.top-img {
  width: 100%;
  height: clamp(300px, 50vw, 600px);
  background-color: #e9ecef;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  /* 画像を設定する場合はここに記述 */
  /* background-image: url("../img/index-img/top.jpg"); */
  /* background-size: cover; */
  /* background-position: center; */
}

.top-img h1, .top-img h2 {
  color: #333; /* 背景画像に合わせて白(#fff)等に変更してください */
  text-shadow: 0 2px 5px rgba(255,255,255,0.8);
}

/* --- イントロダクション --- */
.top-intro {
  max-width: 1000px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.top-intro ul {
  text-align: left;
  display: inline-block; /* リスト全体を中央寄せにしつつ、文字は左揃えにするため */
  background: #fff;
  padding: 25px 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* --- お知らせ --- */
.news {
  max-width: 1000px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

/* --- 事業所のご案内 --- */
.top-facility {
  background-color: #fff;
  padding: 50px 20px;
  margin-bottom: 50px;
}

/* コンテナ全体 */
.facility-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* セクションごとの余白 */
.facility-section {
  margin-bottom: 50px;
  text-align: left;
}

/* 見出しの基本デザイン */
.facility-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc; /* デフォルトの色 */
  padding-bottom: 8px;
}

/* --- 各セクションのh2ごとの色分け --- */
/* 1つ目：障害者支援施設（青） */
.facility-section:nth-of-type(1) h2 {
  border-bottom-color: #0056b3;
  color: #0056b3;
}
/* 2つ目：障害者就労継続支援B型事業所（緑） */
.facility-section:nth-of-type(2) h2 {
  border-bottom-color: #28a745;
  color: #28a745;
}
/* 3つ目：特別養護老人ホーム（オレンジ） */
.facility-section:nth-of-type(3) h2 {
  border-bottom-color: #fd7e14;
  color: #fd7e14;
}
/* 4つ目：小規模多機能型居宅介護事業所（ピンク） */
.facility-section:nth-of-type(4) h2 {
  border-bottom-color: #e83e8c;
  color: #e83e8c;
}
/* 5つ目：障害者福祉ホーム（紫） */
.facility-section:nth-of-type(5) h2 {
  border-bottom-color: #6f42c1;
  color: #6f42c1;
}
/* ----------------------------------- */

/* カードのリスト（自動で折り返すグリッド） */
.facility-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 画面幅に応じて自動で列数を調整 */
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* カード本体 */
.facility-card {
  display: block;
  text-decoration: none;
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.facility-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ホバー時のアクション（少し浮き上がる） */
.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* 補足テキスト(p) */
.facility-card p {
  font-size: 1.4rem;
  margin: 0;
  padding: 15px;
  color: #333;
  text-align: center;
  font-weight: bold;
}

/* --- リンクバナー群 --- */
.link {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.link ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.link li {
  flex: 0 0 calc(20% - 12px); /* PC時は5列（5枚並び） */
  min-width: 150px; /* 縮みすぎ防止 */
}

.link img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  transition: opacity 0.3s;
}

.link a:hover img {
  opacity: 0.7;
}