/* =============================================
   NEXT 採用LP — css/style.css
   配色: Primary #1A5FA8（土木ブルー）/ Accent #E8680A（活力オレンジ）
   フォント: Noto Sans JP 400/500/700/900
============================================= */

/* === CSS変数 === */
:root {
  --primary: #1A5FA8;
  --primary-dark: #12294A;
  --accent: #E8680A;
  --accent-light: #FFF3EC;
  --bg-light: #EBF3FC;
  --text: #1a1a1a;
  --text-sub: #555;
  --border: #d0dce8;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 20px rgba(0,0,0,.10);
  --shadow-card: 0 6px 24px rgba(0,0,0,.09);
  --header-h: 68px;
  --transition: .25s ease;
}

/* === Reset / Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === Honeypot === */
.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

/* =========================================
   HEADER
========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--primary-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  transition: background var(--transition);
}
.site-header.scrolled { background: rgba(18,41,74,.97); }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}
.header-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: .08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-nav { flex: 0 0 auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.nav-list a {
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-list a:hover { color: var(--white); background: rgba(255,255,255,.12); }
.nav-list a.nav-cta {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
}
.nav-list a.nav-cta:hover { background: #c95607; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px; height: 42px;
  gap: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
}
.nav-overlay.is-active { display: block; }

/* =========================================
   FV
========================================= */
.fv-section {
  position: relative;
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fv-bg {
  position: absolute;
  inset: 0;
}
.fv-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.fv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,41,74,.72) 0%, rgba(26,95,168,.45) 100%);
}
.fv-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 60px 24px;
  max-width: 900px;
  width: 100%;
}
.fv-catch {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  letter-spacing: .04em;
}
.fv-sub {
  font-size: clamp(.9rem, 2vw, 1.1rem);
  font-weight: 500;
  line-height: 1.9;
  margin-bottom: 40px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.fv-sub strong { color: #ffd87a; font-weight: 700; }
.fv-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   SLIDER
========================================= */
.slider-section {
  overflow: hidden;
  background: var(--primary-dark);
  padding: 20px 0;
}
.slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: slideLoop 50s linear infinite;
}
.slider-track:hover { animation-play-state: paused; }
.slide-item {
  flex-shrink: 0;
  width: 240px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.slide-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.slide-item:hover img { transform: scale(1.05); }
@keyframes slideLoop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   共通セクション
========================================= */
.section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* セクションタイトル */
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 4px;
  background: var(--accent);
  border-radius: 99px;
}
.section-title--light { color: var(--white); }
.section-title--light::after { background: rgba(255,255,255,.7); }

/* =========================================
   ボタン
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: .04em;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: #c95607; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); }
.btn-submit {
  background: var(--accent);
  color: var(--white);
  font-size: 1.05rem;
  padding: 16px 64px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.btn-submit:hover { background: #c95607; transform: translateY(-2px); box-shadow: var(--shadow); }

/* =========================================
   NEXTについて
========================================= */
.section-about-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-about-img {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.section-about-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.section-about-text p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}
.section-about-text p:last-child { margin-bottom: 0; }
.section-about-text strong { color: var(--accent); font-weight: 700; }

/* =========================================
   こんな人歓迎
========================================= */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.welcome-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.welcome-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.13); }
.welcome-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  line-height: 1;
}
.welcome-card p {
  font-size: .97rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
}

/* =========================================
   仕事内容（ジグザグ）
========================================= */
.business-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.business-block:last-child { margin-bottom: 0; }
.business-block--reverse .business-img { order: 2; }
.business-block--reverse .business-text { order: 1; }
.business-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.business-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s;
}
.business-img:hover img { transform: scale(1.04); }
.business-label {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--bg-light);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -.02em;
  -webkit-text-stroke: 2px var(--primary);
}
.business-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}
.business-text p {
  font-size: .97rem;
  color: var(--text-sub);
  line-height: 1.85;
}
.business-text p strong { color: var(--accent); font-weight: 700; }

/* =========================================
   中間CTA
========================================= */
.section-cta {
  background: var(--primary-dark);
  padding: 56px 0;
  text-align: center;
}
.section-cta--final { background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a6e 100%); }
.cta-text {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   入社後の流れ
========================================= */
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.onboarding-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.onboarding-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.13); }
.onboarding-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.onboarding-body { padding: 24px; }
.step-label {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
  letter-spacing: .06em;
}
.onboarding-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}
.onboarding-body p {
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.8;
}
.onboarding-body p strong { color: var(--accent); font-weight: 700; }

/* =========================================
   会社の魅力
========================================= */
.appeal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.appeal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.appeal-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.13); }
.appeal-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.appeal-body { padding: 24px; }
.appeal-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}
.appeal-body p {
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.8;
}
.appeal-body p strong { color: var(--accent); font-weight: 700; }

/* =========================================
   メンバー紹介
========================================= */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.member-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.member-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.13); }
.member-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}
.member-body { padding: 24px; }
.member-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.4;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.member-body p {
  font-size: .87rem;
  color: var(--text-sub);
  line-height: 1.75;
}

/* =========================================
   1日の流れ
========================================= */
.schedule-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 48px;
  box-shadow: var(--shadow-card);
  max-width: 760px;
  margin: 0 auto;
}
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-time {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  white-space: nowrap;
}
.timeline-content {
  font-size: .97rem;
  color: var(--text);
  line-height: 1.7;
}
.timeline-content strong { color: var(--accent); font-weight: 700; }

/* =========================================
   募集要項
========================================= */
.requirements-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.requirements-table { display: flex; flex-direction: column; }
.req-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--border);
}
.req-row:last-child { border-bottom: none; }
.req-row dt {
  background: var(--bg-light);
  padding: 20px 24px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--primary-dark);
  display: flex;
  align-items: flex-start;
}
.req-row dd {
  padding: 20px 24px;
  font-size: .93rem;
  color: var(--text);
  line-height: 1.8;
}

/* =========================================
   おわりに
========================================= */
.section-ending-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-ending-img {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.section-ending-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.section-ending-text p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}
.section-ending-text p:last-child { margin-bottom: 0; }
.section-ending-text strong { color: var(--accent); font-weight: 700; }

/* =========================================
   フォーム
========================================= */
.section-contact {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1A3A6E 100%);
  padding: 80px 0;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-weight: 700;
  font-size: .95rem;
  color: var(--primary-dark);
}
.required {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.optional {
  display: inline-block;
  background: #aaa;
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: #fafcff;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.form-group input.is-error,
.form-group textarea.is-error { border-color: #e03333; }
.form-help {
  font-size: .8rem;
  color: var(--text-sub);
}
.form-error {
  font-size: .82rem;
  color: #e03333;
  font-weight: 500;
  min-height: 1.2em;
}
.form-submit { text-align: center; margin-top: 8px; }

/* =========================================
   フッター
========================================= */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.7);
  padding: 40px 0;
  text-align: center;
}
.footer-company {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-address, .footer-tel { font-size: .9rem; margin-bottom: 4px; }
.footer-tel a { color: rgba(255,255,255,.85); }
.footer-tel a:hover { color: var(--white); }
.footer-copy { font-size: .8rem; margin-top: 16px; }

/* =========================================
   スクロールフェード
========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* =========================================
   レスポンシブ（768px以下）
========================================= */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* ハンバーガー表示 */
  .hamburger { display: flex; }
  .header-nav {
    position: fixed;
    top: 0; right: 0;
    width: 80vw; max-width: 320px;
    height: 100vh;
    background: var(--primary-dark);
    z-index: 999;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    padding: calc(var(--header-h) + 16px) 0 40px;
  }
  .header-nav.is-open { transform: translateX(0); }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
  }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    border-radius: 0;
  }
  .nav-list a.nav-cta {
    margin-top: 16px;
    display: block;
    text-align: center;
    padding: 12px 0;
    border-radius: var(--radius-sm);
    border-bottom: none;
  }

  /* FV */
  .fv-section { min-height: 90vh; }
  .fv-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; }

  /* スライダー */
  .slide-item { width: 180px; }

  /* NEXTについて */
  .section-about-img { max-width: 100%; }

  /* こんな人歓迎 */
  .welcome-grid { grid-template-columns: 1fr; gap: 16px; }

  /* 仕事内容 */
  .business-block {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }
  .business-block--reverse .business-img { order: -1; }
  .business-block--reverse .business-text { order: 1; }

  /* 入社後の流れ */
  .onboarding-grid { grid-template-columns: 1fr; gap: 20px; }

  /* 会社の魅力 */
  .appeal-grid { grid-template-columns: 1fr; gap: 20px; }

  /* メンバー紹介 */
  .members-grid { grid-template-columns: 1fr; gap: 20px; }

  /* 1日の流れ */
  .schedule-card { padding: 24px 20px; }
  .timeline-item { grid-template-columns: 64px 1fr; gap: 16px; }

  /* 募集要項 */
  .req-row { grid-template-columns: 1fr; }
  .req-row dt { padding: 14px 20px 8px; }
  .req-row dd { padding: 8px 20px 14px; }

  /* おわりに */
  .section-ending-img { max-width: 100%; }

  /* フォーム */
  .contact-card { padding: 28px 20px; }

  /* CTA */
  .cta-btns { flex-direction: column; align-items: center; }
}
