/* ============================================================
   食品の品質課題解決 — 製造現場の支援 (page-quality-solution.php)
   Bổ sung cho page-food-inspection.css (layout/sidebar/FAQ/hero dùng chung).
   ============================================================ */

:root {
  --qs-teal:       #008F8D;
  --qs-teal-dark:  #00736f;
  --qs-teal-soft:  #E6F4F3;
  --qs-ink:        #061C3D;
}

/* ---- Layout padding (giống 検査の依頼方法 / sn-req-body-layout) ---- */
.qs-page-layout {
  padding: 40px 40px 54px;
}

/* ---- Header band (giống 検査の依頼方法 / sn-req-title, không có ảnh hero) ---- */
.qs-hero-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px 0;
}
.qs-hero { display: flex; }
.qs-hero-title {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 64px;
  padding: 10px 24px;
  margin: 0;
  background: rgba(0, 143, 141, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.qs-breadcrumb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 40px 0;
}

/* ---- Sidebar (header teal + link box, kiểu req-sidebar) ---- */
.qs-sidebar {
  width: 100%;
  position: sticky;
  top: 24px;
}
.qs-sidebar-menu {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
}
.qs-sidebar-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60px;
  padding: 12px 16px;
  background: var(--qs-teal);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  border-bottom: 1px solid #fff;
}
.qs-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60px;
  padding: 12px 16px;
  background: #E9ECEE;
  color: var(--qs-teal);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid #fff;
  transition: background .15s ease, color .15s ease;
}
.qs-sidebar-link:last-child { border-bottom: none; }
.qs-sidebar-link.is-active,
.qs-sidebar-link:hover {
  background: var(--qs-teal);
  color: #fff;
}

/* ---- Section title (căn giữa, line hai bên — mockup ⑥⑧) ---- */
.qs-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 31px;
  text-align: center;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: var(--qs-teal);
  margin: 0 0 28px;
}
.qs-section-title::before,
.qs-section-title::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1px solid var(--qs-teal);
}

/* ---- Intro (Figma: Frame 1000007079) ---- */
.qs-intro-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 31px;
  margin-bottom: 24px;
}
.qs-intro-head::before,
.qs-intro-head::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1px solid var(--qs-teal);
}
.qs-intro-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  text-align: center;
}
.qs-intro-lead {
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: var(--qs-ink);
}
.qs-intro-main {
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: var(--qs-teal);
}
.qs-intro {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 320px;
  padding: 0;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.qs-intro-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 446px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 3px 4px 4px rgba(0, 0, 0, 0.33);
  backdrop-filter: blur(4.5px);
  border-radius: 2px;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
}
.qs-intro-sub-lead { color: #061C3D; }
.qs-intro-sub-main { color: #E7380D; }

/* ---- Box checklist (おすすめ / 実施例) — Figma Group 1000007240 ---- */
.qs-checkbox-section {
  position: relative;
  overflow: hidden;            /* cắt nửa trên của ellipse */
  background: #DDEBEB;
  border-radius: 10px;
  padding: 0 0 36px;
}
/* Ellipse tiêu đề: rộng hơn box, kéo lên ~nửa chiều cao nên chỉ hiện nửa dưới (vòm cong) */
.qs-band-title {
  width: 112%;
  margin-left: -6%;
  margin-top: -68px;
  margin-bottom: 28px;
  height: 155px;
  border-radius: 50%;
  background: #00C48A;
  color: #fff;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 26px;
}
.qs-check-card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 48px 36px 75px;
  margin: 0 30px;
}
.qs-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.qs-check-list li {
  display: flex;
  align-items: center;
  gap: 32px;
}
.qs-check-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: block;
}
.qs-check-text {
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: #061C3D;
}

/* ---- Flow (製造現場の支援の流れ) — Figma Group 1000007295 ---- */
.qs-flow {
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: #fff;
  box-shadow: 0 4px 50px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  padding: 50px 53px;
}
.qs-flow-step {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 108px;
  padding: 12px 32px;
  border: 2px solid var(--qs-teal);
  border-radius: 10px;
}
/* Mũi tên teal hướng xuống giữa các step (arrow_down.svg) */
.qs-flow-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 27px;
  background: url('../../images/svg/arrow_down.svg') center / contain no-repeat;
}
.qs-flow-num {
  flex: 0 0 60px;
  font-family: 'Work Sans', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.9px;
  color: var(--qs-teal);
}
.qs-flow-step-title {
  flex: 0 0 213px;
  margin: 0;
  font-family: 'Zen Kaku Gothic Antique', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 25.6px;
  line-height: 28px;
  letter-spacing: 0.9px;
  color: var(--qs-teal);
}
.qs-flow-step-desc {
  flex: 1;
  margin: 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 29px;
  letter-spacing: 0.9px;
  color: #061C3D;
}

/* ---- 分析×課題解決 (chỉ 1 ảnh image_159.png) ---- */
.qs-analysis img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ---- FAQ / 一例: bỏ margin-bottom (dùng gap của .sn-page-main-content) ---- */
.sn-faq-section { margin-bottom: 0; }

/* ---- クロージング (サナテックなら、) — 24/41, highlight teal ---- */
.qs-closing-text {
  margin: 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 41px;
  color: #061C3D;
}
.qs-closing-lead {            /* サナテックなら、 */
  font-weight: 700;
  color: #061C3D;
}
.qs-closing-text .qs-hl {     /* cụm nhấn mạnh — teal, không bold */
  font-weight: 400;
  color: #008F8D;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .qs-intro-main { font-size: 22px; }
  .qs-intro { min-height: 220px; padding: 0; }
  .qs-intro-sub { max-width: 100%; font-size: 18px; line-height: 26px; padding: 16px 18px; }
  .qs-sidebar { position: static; }
  .qs-section-title { font-size: 20px; gap: 12px; }
  .qs-checkbox-section { padding: 0 0 24px; }
  .qs-band-title { height: 110px; margin-top: -46px; margin-bottom: 20px; font-size: 19px; line-height: 26px; padding-bottom: 18px; }
  .qs-check-card { padding: 20px 18px; margin: 0 16px; }
  .qs-check-list { gap: 16px; }
  .qs-check-list li { gap: 14px; }
  .qs-check-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .qs-check-text { font-size: 16px; line-height: 24px; }
  .qs-flow { padding: 28px 18px; gap: 34px; }
  .qs-flow-step { flex-wrap: wrap; padding: 16px 18px; min-height: 0; }
  .qs-flow-num { flex-basis: 44px; font-size: 44px; }
  .qs-flow-step-title { flex: 1 1 auto; font-size: 20px; line-height: 26px; }
  .qs-flow-step-desc { flex: 1 1 100%; margin-top: 8px; font-size: 15px; line-height: 25px; }
  .qs-closing-text { font-size: 17px; line-height: 30px; }
  .qs-hero-wrap, .qs-breadcrumb-wrap { padding-left: 16px; padding-right: 16px; }
  .qs-hero-title { font-size: 22px; min-height: 52px; padding: 8px 16px; }
  .qs-page-layout { padding: 24px 16px 40px; }
}
