@charset "UTF-8";

/* ==========================================================================
   事業紹介専用スタイル (njm_business.css)
   ========================================================================== */


/* ==========================================
   1. ページ内ナビゲーション & 補正
   ========================================== */
/* アンカーリンク位置補正 */
.section-anchor {
  scroll-margin-top: 30px;
}

/* ==========================================
   2. 事業紹介ページ用：技能士有資格者数ボックス 
   ========================================== */
/* --- 事業紹介ページ用：技能士有資格者数ボックス全体枠 --- */
.business-qualification-box {
  /* 上のメッセージ枠に合わせた薄緑色の背景と枠線 */
  background-color: #f2fdf5; 
  border: 1px solid #c3e6cb;  
  border-radius: 12px;        /* 角丸 */
  
  /* 内側の余白 */
  padding: 28px 30px 20px;
  
  /* ボックス自体の幅と位置設定 */
  max-width: 900px;
  margin: 35px auto 70px;     /* ★一番後ろの「70px」で下のメニューとの隙間を大きく確保 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02); /* ほんのり立体感 */
}

/* タイトルの位置調整 */
.qualification-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #005a2b;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #c3e6cb; /* ボックス内の区切り線 */
}

/* タイトルアイコン */
.qualification-icon {
  display: flex;
  align-items: center;
  color: #005a2b;
}

/* 4つの級（白いカード）の配置 */
.qualification-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

/* 各級の白カード */
.qual-item {
  display: flex;
  align-items: baseline;
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #bce2c7;
  min-width: 130px;
  justify-content: center;
}

.qual-label {
  font-size: 0.95rem;
  font-weight: bold;
  color: #333;
  margin-right: 10px;
}

.qual-num {
  font-size: 1.6rem;
  font-weight: bold;
  color: #005a2b;
  line-height: 1;
}

.qual-unit {
  font-size: 0.85rem;
  color: #555;
  margin-left: 3px;
}

/* 右下の注記 */
.qualification-note {
  text-align: right;
  font-size: 0.75rem;
  color: #666;
  margin-top: 10px;
  margin-bottom: 0;
}

/* スマホ用の設定（2列×2行） */
@media (max-width: 600px) {
  .business-qualification-box {
    margin: 20px 15px 50px;
    padding: 20px 15px 15px;
  }
  .qualification-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .qual-item {
    min-width: auto;
    padding: 8px 10px;
  }
}

/* ==========================================
   3. ナビゲーションボタン (Flow)
   ========================================== */
/* フロー画像ラッピング */
.flow-image-wrap {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ナビゲーションボタンリスト */
.flow-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* フローボタン基本設定 */
.btn-flow {
  display: inline-block;
  padding: 10px 24px;
  background-color: #004d00;
  color: #ffffff;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-flow:hover {
  background-color: #006600;
  transform: translateY(-2px);
}


/* ==========================================
   4. スタッフパーツ要素 (Staff Elements)
   ========================================== */
/* 写真 */
.staff-photo img {
  width: 120px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

/* 情報コンテンツ */
.staff-info {
  flex: 1;
}

/* 肩書・役職 */
.staff-title {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 4px;
}

/* 氏名 */
.staff-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: #004d00;
  margin-bottom: 10px;
}

/* コメント文 */
.staff-comment {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #334155;
}


/* ==========================================
   5. 工程紹介メディアリスト (Business Media)
   ========================================== */
/* メディアリスト全体枠 */
.business-media-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 30px auto 0;
}

/* メディアカード */
.media-item {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  align-items: flex-start;
}

/* サムネイル画像 */
.media-thumb {
  width: 200px;
  flex-shrink: 0;
}

.media-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
}

/* テキストコンテンツ */
.media-content {
  flex: 1;
}

.media-content h4 {
  font-size: 1.15rem;
  font-weight: bold;
  color: #004d00;
  margin-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
}

.media-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #334155;
  margin: 0;
}


/* ==========================================
   6. レスポンシブ設定 (Responsive)
   ========================================== */
/* タブレット・スマホ全般 (768px以下) */
@media screen and (max-width: 768px) {
  .staff-photo img {
    width: 100px;
    height: 120px;
  }

  .media-item {
    flex-direction: column;
  }

  .media-thumb {
    width: 100%;
  }

  .business-lead-box {
    padding: 20px 15px;
    font-size: 1rem;
    text-align: left;
  }

  .btn-flow {
    padding: 8px 16px;
    font-size: 0.88rem;
  }
}
