/* FQS_03 employee education page (従業員教育・研修・セミナー).
   Extends page-food-inspection.css (layout/sidebar/FAQ) + page-quality-solution.css. */

:root {
  --fqs3-teal:      #008F8D;
  --fqs3-teal-hover:#006B68;
  --fqs3-green:     #00C48A;
  --fqs3-red:       #E7380D;
  --fqs3-red-tag:   #EE5A4E;
  --fqs3-ink:       #061C3D;
  --fqs3-ink-mid:   #243752;
  --fqs3-mint:      #EDF5F5;
  --fqs3-shadow-teal: 2px 3px 0 0 #008F8D;
}

.fqs3-hero-section {
  display: flex; flex-direction: column; gap: 24px;
  width: 100%; margin: 8px 0 24px;
}
.fqs3-hero-titleband {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  width: 100%;
}
.fqs3-hero-line {
  flex: 1; height: 1px; background: var(--fqs3-teal);
}
.fqs3-hero-titlegroup {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.fqs3-hero-lead {
  margin: 0; font-size: 26px; font-weight: 700; line-height: 1.35;
  color: var(--fqs3-ink); text-align: center;
}
.fqs3-hero-main {
  margin: 0; font-size: 36px; font-weight: 700; line-height: 1.2;
  color: var(--fqs3-teal); text-align: center; letter-spacing: -0.02em;
}
.fqs3-hero-image-wrap {
  position: relative; width: 100%;
  line-height: 0; /* kill inline-baseline gap under img */
}
.fqs3-hero-image {
  display: block; width: 100%; height: auto;
  aspect-ratio: 890/377; object-fit: cover;
  border-radius: 8px;
}
.fqs3-hero-overlay {
  position: absolute; left: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 16px; gap: 10px;
  width: 389px;
  background: #FFFFFF;
  box-shadow: 3px 4px 4px rgba(0, 0, 0, 0.33);
  backdrop-filter: blur(4.5px);
}
.fqs3-hero-overlay-line {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; font-size: 26px; line-height: 31px;
  letter-spacing: -0.02em;
  color: #E7380D;
  text-align: left;
}

.fqs3-features-section {
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; margin: 24px 0;
}
.fqs3-features-title {
  margin: 0; font-size: 36px; font-weight: 700; line-height: 1.2;
  color: var(--fqs3-ink); text-align: center; letter-spacing: -0.02em;
}
.fqs3-features-count {
  display: inline-block;
  font-size: 56px; line-height: 1;
  color: var(--fqs3-teal); font-weight: 700;
  vertical-align: -4px;
  margin: 0 4px;
}
.fqs3-features-grid {
  display: flex; flex-direction: row; justify-content: space-between;
  align-items: stretch; gap: 20px;
  width: 100%;
  margin-top: 25px; /* room for the badge that protrudes above cards */
}
.fqs3-features-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #008F8D;
  border-radius: 8px;
  box-shadow: 2px 3px 0 #008F8D;
  padding: 39px 20px 20px;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
  min-height: 207px;
}
.fqs3-features-card-badge {
  position: absolute; top: -25px; left: 8px;
  width: 38px; height: 38px; border-radius: 50%;
  background: #00C48A;
  color: #FFFFFF;
  font-family: 'Work Sans', 'Noto Sans JP', sans-serif;
  font-weight: 700; font-size: 24px; line-height: 1;
  display: grid; place-items: center;
  text-align: center;
  /* Outer white ring 55×56 + teal 1px border — design node Ellipse 1558. */
  box-shadow: 0 0 0 8.5px #FFFFFF, 0 0 0 9.5px #008F8D;
}
.fqs3-features-card-title {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; font-size: 24px; line-height: 32px;
  letter-spacing: -0.02em;
  color: #061C3D;
  text-align: center;
}
.fqs3-features-card-body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400; font-size: 14px; line-height: 24px;
  color: #061C3D;
  text-align: center;
}

.fqs3-scope-section {
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; margin: 24px 0;
}
.fqs3-scope-title {
  margin: 0; font-size: 36px; font-weight: 700; line-height: 1.2;
  color: var(--fqs3-ink); text-align: center; letter-spacing: -0.02em;
}
.fqs3-scope-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  width: 100%;
}
.fqs3-scope-card {
  position: relative;
  background: #EDF5F5;
  border: 1px solid #008F8D;
  border-radius: 8px;
  box-shadow: 2px 3px 0 #008F8D;
  min-height: 207px;
  display: flex; flex-direction: column;
}
.fqs3-scope-card-head {
  background: #008F8D;
  border-radius: 7px 7px 0 0;
  padding: 7px 12px;
  display: flex; flex-direction: row; align-items: center; gap: 2px;
  min-height: 46px;
}
.fqs3-scope-card-heading {
  margin: 0; color: #FFFFFF;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; font-size: 24px; line-height: 32px;
  letter-spacing: -0.02em;
}
.fqs3-scope-card-tag {
  color: #FFFFFF;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400; font-size: 18px; line-height: 30px;
}
.fqs3-scope-card-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 29px;
  padding: 24px 12px 30px;
}
.fqs3-scope-col {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.fqs3-scope-item {
  display: flex; align-items: center; gap: 6px;
  min-height: 30px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400; font-size: 16px; line-height: 30px;
  color: #061C3D;
}
.fqs3-scope-item::before {
  content: "";
  flex-shrink: 0;
  width: 9px; height: 16px;
  background: url('../../images/svg/chevron-right.svg') center / contain no-repeat;
}
.fqs3-scope-closing {
  margin: 8px 0 0;
  align-self: flex-start;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; font-size: 20px; line-height: 32px;
  letter-spacing: -0.02em;
  color: #061C3D;
  text-align: left;
}
.fqs3-hl {
  color: #008F8D; font-weight: 700;
}

.fqs3-flow-section {
  display: flex; flex-direction: column; align-items: center;
  gap: 32px; margin: 24px 0;
}
.fqs3-flow-title {
  margin: 0; font-size: 36px; font-weight: 700; line-height: 1.2;
  color: var(--fqs3-ink); text-align: center; letter-spacing: -0.02em;
}
.fqs3-flow {
  width: 100%;
  display: flex; flex-direction: column; gap: 40px;
}
.fqs3-flow-step {
  position: relative;
  display: grid; grid-template-columns: 80px 200px 1fr; gap: 32px;
  align-items: center;
  padding: 22px 32px;
  background: #fff;
  border: 2px solid var(--fqs3-teal);
  border-radius: 10px;
}
.fqs3-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;
  opacity: 0.9;
}
.fqs3-flow-num {
  font-family: 'Work Sans', 'Noto Sans JP', sans-serif;
  font-size: 64px; font-weight: 700; line-height: 1;
  color: var(--fqs3-teal);
  text-align: center;
  letter-spacing: 0.014em;
}
.fqs3-flow-step-title {
  margin: 0; font-size: 26px; font-weight: 700; line-height: 1.3;
  color: var(--fqs3-teal);
}
.fqs3-flow-step-desc {
  margin: 0; font-size: 16px; font-weight: 400; line-height: 1.6;
  color: var(--fqs3-ink);
}
.fqs3-flow-closing {
  margin: 8px 0 0;
  align-self: flex-start;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; font-size: 20px; line-height: 32px;
  letter-spacing: -0.02em;
  color: #061C3D;
  text-align: left;
}

/* FAQ section reuses .sn-faq-* from page-food-inspection.css / page-quality-solution.css. */
.fqs3-faq-section {
  margin-top: 8px;
}

/* Overflow safety — long JP text + fixed-width overlay must not push page. */
.fqs3-hero-section,
.fqs3-hero-image-wrap,
.fqs3-features-section,
.fqs3-scope-section,
.fqs3-flow-section { max-width: 100%; min-width: 0; box-sizing: border-box; }
.fqs3-hero-overlay-line,
.fqs3-features-card-title,
.fqs3-features-card-body,
.fqs3-scope-card-heading,
.fqs3-scope-card-tag,
.fqs3-scope-item,
.fqs3-scope-closing,
.fqs3-flow-step-title,
.fqs3-flow-step-desc,
.fqs3-flow-closing { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }

@media (max-width: 900px) {
  .fqs3-hero-lead { font-size: 22px; }
  .fqs3-hero-main { font-size: 30px; }
  .fqs3-hero-overlay { width: 60%; max-width: 340px; padding: 14px; }
  .fqs3-hero-overlay-line { font-size: 20px; line-height: 26px; }
  .fqs3-features-title,
  .fqs3-scope-title,
  .fqs3-flow-title { font-size: 28px; }
  .fqs3-features-count { font-size: 44px; }
  /* Wrap 3 feature cards to 2/row here; the <600 block below collapses to 1/row. */
  .fqs3-features-grid { flex-wrap: wrap; }
  .fqs3-features-card { flex: 1 1 calc(50% - 10px); min-width: 240px; }
  .fqs3-scope-grid { grid-template-columns: 1fr; }
  .fqs3-scope-card-heading { font-size: 20px; }
  .fqs3-scope-card-tag { font-size: 15px; line-height: 22px; }
  .fqs3-flow-step {
    grid-template-columns: 60px 1fr;
    grid-template-areas: "num title" "num desc";
    padding: 16px 20px; gap: 8px 20px;
  }
  .fqs3-flow-num { grid-area: num; font-size: 48px; }
  .fqs3-flow-step-title { grid-area: title; font-size: 20px; }
  .fqs3-flow-step-desc { grid-area: desc; font-size: 14px; }
  .fqs3-flow-step:not(:first-child)::before { top: -26px; width: 24px; height: 16px; opacity: 0.85; }
}

@media (max-width: 600px) {
  .fqs3-hero-section { gap: 18px; margin: 6px 0 20px; }
  .fqs3-hero-titleband { flex-direction: column; gap: 8px; }
  .fqs3-hero-line { display: none; }
  .fqs3-hero-lead { font-size: 18px; }
  .fqs3-hero-main { font-size: 24px; }
  /* Overlay stays absolute bottom-left; only width + font shrink so it stays under 70% of image. */
  .fqs3-hero-overlay { width: 75%; max-width: 300px; padding: 12px 14px; gap: 6px; }
  .fqs3-hero-overlay-line { font-size: 16px; line-height: 22px; }
  .fqs3-features-section,
  .fqs3-scope-section,
  .fqs3-flow-section { gap: 18px; margin: 18px 0; }
  .fqs3-features-title,
  .fqs3-scope-title,
  .fqs3-flow-title { font-size: 22px; }
  .fqs3-features-count { font-size: 34px; }
  .fqs3-features-grid { gap: 28px; }
  .fqs3-features-card { flex: 1 1 100%; min-width: 0; padding: 32px 16px 20px; min-height: 0; gap: 18px; }
  .fqs3-features-card-badge {
    top: -22px; left: 12px; width: 34px; height: 34px; font-size: 20px;
    box-shadow: 0 0 0 6px #FFFFFF, 0 0 0 7px #008F8D;
  }
  .fqs3-features-card-title { font-size: 18px; line-height: 26px; }
  .fqs3-features-card-body { font-size: 13.5px; line-height: 22px; }
  .fqs3-scope-card-head { padding: 8px 12px; gap: 6px; min-height: 42px; flex-wrap: wrap; }
  .fqs3-scope-card-heading { font-size: 17px; line-height: 24px; }
  .fqs3-scope-card-tag { font-size: 13px; line-height: 20px; }
  .fqs3-scope-card-body { grid-template-columns: 1fr; gap: 12px; padding: 18px 14px 22px; }
  .fqs3-scope-item { font-size: 14px; line-height: 22px; min-height: 26px; }
  .fqs3-scope-closing,
  .fqs3-flow-closing { font-size: 16px; line-height: 26px; }
  .fqs3-flow { gap: 32px; }
  .fqs3-flow-step { padding: 14px 16px; gap: 6px 16px; }
  .fqs3-flow-num { font-size: 38px; }
  .fqs3-flow-step-title { font-size: 17px; }
  .fqs3-flow-step-desc { font-size: 13px; line-height: 1.65; }
}

@media (max-width: 420px) {
  .fqs3-hero-lead { font-size: 16px; }
  .fqs3-hero-main { font-size: 20px; }
  .fqs3-hero-overlay { width: 82%; max-width: 260px; padding: 10px 12px; gap: 4px; }
  .fqs3-hero-overlay-line { font-size: 14px; line-height: 20px; }
  .fqs3-features-title,
  .fqs3-scope-title,
  .fqs3-flow-title { font-size: 19px; }
  .fqs3-features-count { font-size: 28px; vertical-align: -2px; }
  .fqs3-features-card { padding: 28px 14px 18px; }
  .fqs3-features-card-title { font-size: 16px; line-height: 24px; }
  .fqs3-features-card-body { font-size: 13px; line-height: 20px; }
  .fqs3-scope-card-heading { font-size: 16px; }
  .fqs3-scope-item { font-size: 13px; line-height: 20px; }
  .fqs3-flow-step { grid-template-columns: 48px 1fr; padding: 12px 14px; }
  .fqs3-flow-num { font-size: 32px; }
  .fqs3-flow-step-title { font-size: 15px; }
  .fqs3-flow-step-desc { font-size: 12.5px; }
  .fqs3-flow-closing,
  .fqs3-scope-closing { font-size: 14px; line-height: 22px; }
}

/* iPhone SE 1st-gen and similar. */
@media (max-width: 359px) {
  .fqs3-hero-main { font-size: 18px; }
  .fqs3-hero-overlay { width: 88%; max-width: 240px; padding: 8px 10px; }
  .fqs3-hero-overlay-line { font-size: 13px; line-height: 18px; }
  .fqs3-features-title,
  .fqs3-scope-title,
  .fqs3-flow-title { font-size: 17px; }
  .fqs3-features-count { font-size: 24px; }
  .fqs3-features-card-title { font-size: 15px; line-height: 22px; }
  .fqs3-features-card-body { font-size: 12px; line-height: 18px; }
  .fqs3-scope-card-heading { font-size: 14px; line-height: 20px; }
  .fqs3-scope-item { font-size: 12px; }
  .fqs3-flow-step { grid-template-columns: 40px 1fr; padding: 10px 12px; }
  .fqs3-flow-num { font-size: 28px; }
  .fqs3-flow-step-title { font-size: 14px; }
  .fqs3-flow-step-desc { font-size: 12px; line-height: 1.6; }
}
