/* =============================================================
   特定技能ページ専用スタイル（tokutei-ginou.html 専用）
   - 既存 App.css / globals.css は変更しない
   - このファイルは App.css の後に読み込み、必要箇所のみ上書き
   - パレット：ネイビー × ティール（元サイトのオレンジから刷新）
   ============================================================= */

.nx-page {
  --ink: #0B2239;      /* 濃紺（見出し・ダーク面） */
  --ink-2: #12324F;    /* 濃紺の明るめ */
  --slate: #566573;    /* 本文グレー */
  --muted: #8A98A6;    /* 補足グレー */
  --line: #E3E9EF;     /* 罫線 */
  --ghost: #C9D6E0;    /* ゴースト数字 */
  --bg: #F4F7F9;       /* 薄グレー背景 */
  --teal: #0E9F8E;     /* アクセント（青緑） */
  --teal-d: #0B7F72;   /* アクセント濃 */
  --teal-l: #6FD8CA;   /* アクセント淡（ダーク面用） */
}

/* =============================================================
   ナビゲーション：既存構造のままカラーのみ刷新
   ============================================================= */
.nx-page .nav-link { color: #fff; transition: color .25s ease; }
.nx-page .desktop-nav.nav-scrolled .nav-link { color: var(--ink); }

/* ロゴ切替：初期（透明ナビ・ヒーロー上）は白ロゴ、スクロール後（白背景ナビ）は通常ロゴ */
.nx-page .desktop-nav .logo-color { display: none; }
.nx-page .desktop-nav .logo-white { display: block; }
.nx-page .desktop-nav.nav-scrolled .logo-white { display: none; }
.nx-page .desktop-nav.nav-scrolled .logo-color { display: block; }

.nx-page .btn-download { background: var(--teal); }
.nx-page .btn-download:hover { background: var(--teal-d); }

.nx-page .btn-contact { color: var(--teal); border-color: var(--teal); }
.nx-page .desktop-nav.nav-scrolled .btn-contact { background: #fff; }

.nx-page .hamburger-button { background: var(--teal); }

.nx-page .mobile-menu-content { background: rgba(14, 159, 142, 0.12); }
.nx-page .mobile-menu-item { color: var(--ink); }
.nx-page .mobile-btn-download { background: var(--teal); color: #fff; }
.nx-page .mobile-btn-contact { color: var(--teal); border-color: var(--teal); }

/* =============================================================
   ヒーロー（新デザイン：ダーク・デュオトーン）
   ============================================================= */
.nx-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 120px 0 72px;
  background: var(--ink);
}
.nx-hero-bg {
  position: absolute;
  inset: 0;
}
.nx-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0.55;
}
.nx-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg,
      rgba(11, 34, 57, 0.94) 0%,
      rgba(11, 34, 57, 0.80) 42%,
      rgba(14, 159, 142, 0.55) 100%);
}
/* 斜めの下端ライン（元の写真ヒーローとの差別化） */
.nx-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 40px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.nx-hero-inner {
  position: relative;
  z-index: 1;
  width: 88%;
  max-width: 1080px;
  margin: 0 auto;
  color: #fff;
}
.nx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 8px 16px;
  border-radius: 100px;
}
.nx-hero-badge i { color: var(--teal-l); }
.nx-hero-title {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 1px;
  margin-top: 22px;
}
.nx-hero-title em {
  font-style: normal;
  color: var(--teal-l);
}
.nx-hero-desc {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
}
.nx-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
  align-items: flex-start;
}

/* =============================================================
   コンテンツ共通
   ============================================================= */
.nx {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--ink);
}
.nx-sec { padding: 56px 0; }
.nx-sec--alt { background: var(--bg); }
.nx-sec--ink { background: var(--ink); }
.nx-container { width: 88%; max-width: 1080px; margin: 0 auto; }

.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
}
.nx-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--teal);
}
.nx-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: 0.5px;
  margin-top: 16px;
}
.nx-lead {
  color: var(--slate);
  font-size: 15px;
  line-height: 2;
  margin-top: 22px;
  max-width: 760px;
}
.nx-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

/* 1号／2号カード */
.nx-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 34px;
}
.nx-type {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  overflow: hidden;
  box-shadow: 0 10px 30px -22px rgba(11, 34, 57, 0.5);
}
.nx-type::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 4px;
  background: var(--teal);
}
.nx-type-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.nx-type-no {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--teal);
}
.nx-type-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--slate);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 100px;
}
.nx-type h3 {
  font-size: 19px;
  color: var(--ink);
  font-weight: 700;
  margin: 16px 0 4px;
}
.nx-type-sub {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 18px;
}
.nx-check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.nx-check li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #33475b;
}
.nx-check li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--teal);
  position: absolute;
  left: 0; top: 3px;
  font-size: 13px;
}

/* 対応分野（3分野カード） */
.nx-field-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 34px;
}
.nx-field-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 10px 30px -22px rgba(11, 34, 57, 0.5);
  transition: border-color .2s, transform .2s;
}
.nx-field-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}
.nx-field-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(14, 159, 142, 0.10);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.nx-field-card h3 {
  font-size: 19px;
  color: var(--ink);
  font-weight: 700;
}
.nx-field-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 4px;
}
.nx-field-card p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.9;
  margin-top: 14px;
}

/* サポート内容（番号付きリスト） */
.nx-srv-list { list-style: none; margin-top: 34px; }
.nx-srv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.nx-srv:last-child { border-bottom: 1px solid var(--line); }
.nx-srv-no {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--ghost);
}
.nx-srv h3 {
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 8px;
}
.nx-srv p {
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.9;
}

/* インラインCTAバナー（ダーク） */
.nx-banner {
  background: var(--ink);
  border-radius: 18px;
  padding: 40px 26px;
  text-align: center;
}
.nx-banner h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

/* ボタン */
.nx-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  transition: .2s;
  white-space: nowrap;
}
.nx-btn-primary { background: var(--teal); color: #fff; }
.nx-btn-primary:hover { background: var(--teal-d); }
.nx-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.nx-btn-ghost:hover { border-color: #fff; }

/* 導入フロー（ステッパー） */
.nx-flow {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
}
.nx-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding-bottom: 30px;
}
.nx-flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.nx-flow-no {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  position: relative;
  z-index: 1;
}
.nx-flow-step h4 {
  font-size: 16px;
  color: var(--ink);
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 6px;
}
.nx-flow-step p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.8;
}

/* FAQ（ミニマルアコーディオン） */
.nx-faq {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.nx-faq-item { border-bottom: 1px solid var(--line); }
.nx-faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  text-align: left;
  font-family: inherit;
}
.nx-faq-q > span {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}
.nx-faq-mark {
  flex-shrink: 0;
  color: var(--teal);
  font-size: 16px;
  transition: transform .25s ease;
}
.nx-faq-item.open .nx-faq-mark { transform: rotate(45deg); }
.nx-faq-a {
  padding: 0 4px 24px;
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.95;
}
.nx-faq-a[hidden] { display: none; }
.nx-faq-a strong { color: var(--ink); }

/* 会社概要（定義リスト） */
.nx-overview {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.nx-ov-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.nx-ov-row dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.5px;
}
.nx-ov-row dd {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
}

/* コンタクト（ダーク帯） */
.nx-cta-inner { text-align: center; }
.nx-cta-inner .nx-eyebrow { color: var(--teal-l); }
.nx-cta-inner .nx-eyebrow::before { background: var(--teal-l); }
.nx-cta-inner h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 16px;
}

/* =============================================================
   PC表示
   ============================================================= */
@media (min-width: 1024px) {
  /* ヒーロー */
  .nx-hero {
    min-height: 660px;
    padding: 150px 0 110px;
  }
  .nx-hero::after { height: 64px; }
  .nx-hero-title { font-size: 52px; line-height: 1.4; letter-spacing: 2px; }
  .nx-hero-desc { font-size: 18px; max-width: 600px; }
  .nx-hero-cta { flex-direction: row; gap: 18px; margin-top: 38px; }

  /* コンテンツ */
  .nx-sec { padding: 96px 0; }
  .nx-title { font-size: 40px; margin-top: 18px; }
  .nx-lead { font-size: 17px; margin-top: 26px; }

  .nx-types { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nx-type { padding: 40px 34px; }
  .nx-type h3 { font-size: 22px; }

  .nx-field-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .nx-field-card { padding: 40px 28px; }

  .nx-srv { gap: 32px; padding: 34px 0; }
  .nx-srv-no { font-size: 46px; }
  .nx-srv h3 { font-size: 22px; }
  .nx-srv p { font-size: 16px; }

  .nx-banner { padding: 56px; }
  .nx-banner h2 { font-size: 26px; }

  .nx-cta-btns { flex-direction: row; justify-content: center; gap: 20px; }

  /* フローを横並びステッパーに */
  .nx-flow { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .nx-flow-step {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 0;
  }
  .nx-flow-step:not(:last-child)::before {
    top: 23px;
    bottom: auto;
    left: calc(50% + 30px);
    right: calc(-50% + 30px);
    width: auto;
    height: 2px;
  }
  .nx-flow-no { margin: 0 auto; }
  .nx-flow-step h4 { font-size: 17px; margin-top: 16px; }

  .nx-faq-q > span { font-size: 18px; }
  .nx-faq-a { font-size: 16px; }

  .nx-ov-row {
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 24px 4px;
    align-items: baseline;
  }
  .nx-ov-row dt { font-size: 15px; }
  .nx-ov-row dd { font-size: 16px; }

  .nx-cta-inner h2 { font-size: 34px; }
}
