/* ==========================================================================
   SSW HERO & COUNTRY TAGS (特定技能専用)
   ========================================================================== */
.page-ssw .hero {
  padding-top: 80px; position: relative; background: var(--bg-sub);
  width: 100%; overflow: hidden;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; width: 100%; }
/*
.hero-image {
  width: 100%; height: 300px; position: relative;
  background: url('../img/top_img1.avif') center/cover no-repeat;
}
.hero-image::before { content: ""; position: absolute; inset: 0; background: rgba(0, 104, 183, 0.4); }
.hero-image2 { width: 100%; height: 500px; position: relative; background: url('../img/top_img2.jpg') center/cover no-repeat; }
*/
.hero-image { width: 100%; height: 280px; position: relative; background-color: var(--c-primary, #0068b7); }
.hero-image::before { display: none; }
.hero-image2 { width: 100%; height: 480px; position: relative; background: url('../img/ssw_top_img.jpg') center top / cover no-repeat; }

.hero-content-wrapper {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90%; max-width: 800px; z-index: 10;
}
.page-ssw .hero-content { text-align: center; color: white; opacity: 1; transform: none; }
.page-ssw .hero-content h1 {
  font-size: clamp(32px, 5vw, 60px); font-weight: 900; line-height: 1.4;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3); margin-bottom: 24px;
}
.page-ssw .hero-content p {
  font-size: clamp(16px, 2.5vw, 22px); font-weight: 700;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5); line-height: 1.6;
}

.country-tags {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  transform: translateY(-50%); position: relative; z-index: 10; width: 100%; padding: 0 15px;
}
.country-tag {
  background: white; color: var(--text-main); font-weight: 700; font-size: 16px;
  padding: 10px 24px 10px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px; border: 1px solid #eee;
}
.flag-icon { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 3px rgba(0,0,0,0.15); }

/* ==========================================================================
   SSW ABOUT & 19 FIELDS
   ========================================================================== */
.ssw-header-banner {
  background: var(--c-primary); color: white; text-align: center;
  padding: 60px 20px; position: relative; margin-bottom: 50px;
}
.ssw-header-banner h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 900; color: white; margin: 0; letter-spacing: 0.05em; }
.ssw-header-banner::after {
  content: ""; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  border-width: 20px 20px 0; border-style: solid; border-color: var(--c-primary) transparent transparent transparent; z-index: 10;
}

.ssw-intro-text {
  text-align: center; margin: 0 auto 50px; line-height: 2; font-size: 18px; color: var(--text-main); font-weight: 700; max-width: 800px;
}
.ssw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.ssw-card {
  background: #F4F6F8; border-radius: 16px; padding: 50px 30px 40px; text-align: center; position: relative; margin-top: 20px;
}
.ssw-badge {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: white;
  padding: 14px 48px; border-radius: 999px; font-weight: 700; font-size: 22px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 104, 183, 0.2);
}
.ssw-target { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--text-main); }
.ssw-target span { font-size: 60px; color: var(--c-primary); line-height: 1; margin: 0 4px; }
.ssw-desc { font-size: 16px; color: var(--text-main); line-height: 1.8; font-weight: 700; margin-bottom: 30px; }
.ssw-fields-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; min-height: 100px; align-content: flex-start; }
.ssw-fields-list span {
  background: white; color: var(--text-sub); font-size: 15px; font-weight: 700; padding: 8px 14px; border-radius: 6px; border: 1px solid #EAEAEA;
}
.ssw-box {
  background: white; border: 1px solid var(--c-primary-light); color: var(--c-primary);
  font-weight: 700; font-size: 18px; padding: 18px; border-radius: 8px; width: 100%; display: block;
}
.ssw-footer-text { text-align: center; margin-top: 60px; }
.ssw-footer-text h3 { font-size: 24px; line-height: 1.6; }

/* CTA BUTTON */
.cta-wrap { text-align: center; margin: 50px 0; width: 100%; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--c-accent); color: white; padding: 22px 50px; border-radius: var(--radius-pill);
  font-weight: 900; font-size: 22px; box-shadow: 0 6px 15px rgba(141, 198, 63, 0.4);
  transition: transform 0.3s; cursor: pointer; border: 2px solid #fff; width: fit-content; max-width: 100%;
}
.btn-cta:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(141, 198, 63, 0.5); }
.btn-cta .icon-hand { font-size: 30px; animation: point 1.5s infinite alternate; }
@keyframes point { 0% { transform: translateY(0); } 100% { transform: translateY(-5px); } }

/* ==========================================================================
   REASONS & PROCESS & CASES
   ========================================================================== */
.reason-row { display: flex; align-items: center; gap: 50px; margin-bottom: 70px; }
.reason-row:nth-child(even) { flex-direction: row-reverse; }
.reason-img { flex: 1; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); width: 100%; }
.reason-img img { width: 100%; height: 320px; object-fit: cover; }
.reason-text { flex: 1; }
.reason-num { color: var(--c-primary); font-size: 22px; font-weight: 900; font-family: var(--font-en); margin-bottom: 8px; display: block; }
.reason-text h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; line-height: 1.5; }
.reason-text p { font-size: 16px; color: var(--text-sub); }

.process-flow { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; flex-wrap: wrap; gap: 15px; }
.process-step {
  flex: 1; min-width: 200px; background: white; border: 1px solid var(--c-primary-light);
  border-radius: var(--radius-md); padding: 0 0 24px 0; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s; overflow: hidden;
}
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.process-img { width: 100%; height: 180px; margin-bottom: 20px; overflow: hidden; }
.process-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.process-step:hover .process-img img { transform: scale(1.05); }
.process-step h4 { font-size: 18px; font-weight: 700; margin: 0; padding: 0 16px; }
.process-arrow { font-size: 30px; color: var(--c-primary); font-weight: bold; display: flex; align-items: center; justify-content: center; }
.process-arrow::after { content: "➔"; }

.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.case-card { background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--c-primary-light); }
.case-img { width: 100%; height: 240px; object-fit: cover; }
.case-body { padding: 30px; }
.case-badge { background: var(--c-primary-light); color: var(--c-primary); padding: 6px 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; margin-bottom: 16px; display: inline-block; }
.case-body h4 { font-size: 20px; margin-bottom: 14px; line-height: 1.4; }
.case-body p { font-size: 16px; color: var(--text-sub); }

/* ===================================================
   FAQ Section Styles
=================================================== */
#ssw-faq {
  padding: 80px 0;
}

.faq-accordion {
  max-width: 860px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

.faq-item.is-active {
  border-color: var(--c-primary, #0056b3);
}

/* 質問エリア */
.faq-question {
  position: relative;
  margin: 0;
  padding: 22px 56px 22px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.faq-item.is-active .faq-question {
  color: var(--c-primary, #0056b3);
}

/* 開閉トグル矢印アイコン */
.faq-question::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #555555;
  border-bottom: 2px solid #555555;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease, border-color 0.2s ease;
}

.faq-item.is-active .faq-question::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--c-primary, #0056b3);
}

/* 回答エリア */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #fafafa;
  border-top: 1px solid transparent;
}

.faq-item.is-active .faq-answer {
  border-top-color: #f0f0f0;
}

.faq-answer p {
  margin: 0;
  padding: 20px 24px 24px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4a4a4a;
}

/* ==========================================================================
   SSW専用 スマホレスポンシブ (900px以下)
   ========================================================================== */
@media (max-width: 900px) {
  .hero-image { height: 200px; }
  .hero-image2 { height: 500px; background-image: url('../img/ssw_top_img_sp.jpg'); background-position: center center; background-size: cover; }
  .page-ssw .hero-content h1 { font-size: 26px; margin-bottom: 16px; }
  .page-ssw .hero-content p { font-size: 15px; }

  .country-tags { gap: 8px; transform: translateY(-30%); }
  .country-tag { padding: 8px 16px 8px 12px; font-size: 13px; gap: 8px; }
  .flag-icon { width: 20px; height: 14px; }

  .ssw-intro-text { font-size: 16px; margin: 0 15px 40px; text-align: left; }
  .ssw-cards, .cases-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 20px; }
  .ssw-card { padding: 50px 20px 30px; }
  .ssw-badge { font-size: 18px; padding: 10px 30px; top: -20px; }
  .ssw-target span { font-size: 48px; }

  .reason-row, .reason-row:nth-child(even) { flex-direction: column; gap: 20px; margin-bottom: 40px; }
  .reason-img img { height: 200px; }
  .process-flow { flex-direction: column; }
  .process-arrow::after { content: "⬇"; }
  .btn-cta { font-size: 18px; padding: 16px 20px; width: 100%; box-sizing: border-box; }

  #ssw-faq { padding: 50px 0; }
  .faq-question { padding: 18px 48px 18px 18px; font-size: 0.95rem; }
  .faq-question::after { right: 18px; width: 8px; height: 8px; }
  .faq-answer p { padding: 16px 18px 20px; font-size: 0.9rem; }
}