/* ============================================================
   川辺工業株式会社 採用LP - style.css (STEP3 完成版)
   カラーパレット:
     --primary  : #E8620A  (オレンジ / CTA・アクセント)
     --navy     : #1B2A4A  (ネイビー / ヘッダー・見出し)
     --bg-light : #F7F8FA  (薄グレー / 背景)
     --text     : #2D2D2D  (本文テキスト)
     --gray     : #9AA0AC  (サブテキスト)
     --border   : #E2E4E8  (区切り線)
============================================================ */

/* ---- リセット / ベース ---- */
*, *::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: #2D2D2D;
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ---- CSS変数 ---- */
:root {
  --primary     : #E8620A;
  --primary-dk  : #C9520A;
  --navy        : #1B2A4A;
  --navy-lt     : #243762;
  --bg-light    : #F7F8FA;
  --bg-section  : #FFFFFF;
  --text        : #2D2D2D;
  --gray        : #9AA0AC;
  --border      : #E2E4E8;
  --radius      : 12px;
  --radius-sm   : 8px;
  --shadow      : 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.14);
  --color-placeholder: #C8C8C8;
  --header-h    : 68px;
  --section-gap : 96px;
  --container-w : 1100px;
}

/* ---- コンテナ ---- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- スクロールリビール ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}
.header-logo a {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  white-space: nowrap;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-nav ul li a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: .78rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.header-nav ul li a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.header-nav ul li a.nav-cta {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.header-nav ul li a.nav-cta:hover { background: var(--primary-dk); }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background .2s;
}
.hamburger:hover { background: rgba(255,255,255,0.1); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* スマホ用ドロワー */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.nav-overlay.is-active { display: block; }

/* ============================================================
   FV
============================================================ */
.fv {
  padding-top: var(--header-h);
}
.fv-bg {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.fv-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.62);
  pointer-events: none;
  z-index: 0;
}
.fv-content {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.fv-eyebrow {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.fv-heading {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.fv-heading strong {
  color: var(--primary);
  font-weight: 900;
}
.fv-sub {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.8;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
  min-width: 200px;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); }
.btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.6); backdrop-filter: blur(4px); }
.btn-secondary:hover { background: rgba(255,255,255,0.28); border-color: #fff; }
.btn-lg { padding: 16px 48px; font-size: 1.05rem; }

/* ============================================================
   SLIDER
============================================================ */
.slider-section {
  background: var(--navy);
  padding: 24px 0;
  overflow: hidden;
}
.slider-wrapper { overflow: hidden; width: 100%; }
.slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.slide-item { flex: 0 0 280px; }
.slide-item img { width: 280px; height: 210px; object-fit: cover; border-radius: var(--radius-sm); }
.slide-placeholder {
  width: 280px;
  aspect-ratio: 4 / 3;
  background: var(--color-placeholder);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.slide-placeholder::after {
  content: '現場写真';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 500;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-10 * (280px + 16px))); }
}

/* ============================================================
   汎用セクション
============================================================ */
.section {
  padding: var(--section-gap) 0;
}
.section:nth-child(even) { background: var(--bg-light); }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.35;
}
.section-desc {
  margin-top: 12px;
  color: var(--gray);
  font-size: .95rem;
}

/* ============================================================
   ABOUT
============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text p { margin-bottom: 1rem; }
.about-text strong { font-weight: 700; color: var(--primary); }

/* ============================================================
   セクション画像（実写真）
============================================================ */
.section-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}
.section-img.ratio-4-3 {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ============================================================
   プレースホルダー画像
============================================================ */
.placeholder-img {
  background: var(--color-placeholder);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-img span {
  color: rgba(255,255,255,0.7);
  font-size: .85rem;
  font-weight: 500;
  z-index: 1;
}
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

/* ============================================================
   WELCOME
============================================================ */
.welcome-section { background: var(--bg-light); }
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.welcome-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.welcome-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.welcome-icon { font-size: 2.4rem; margin-bottom: 16px; }
.welcome-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.5;
}
.welcome-card p { font-size: .9rem; color: var(--gray); }

/* ============================================================
   CTA セクション
============================================================ */
.cta-section {
  background: var(--navy);
  padding: 56px 0;
}
.cta-box {
  text-align: center;
}
.cta-text {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 28px;
}

/* ============================================================
   WORK (ジグザグ)
============================================================ */
.work-section { background: #fff; }
.work-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}
.work-block:last-child { margin-bottom: 0; }
.work-block--reverse .work-image { order: 2; }
.work-block--reverse .work-text  { order: 1; }
.work-step {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.work-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.work-text p { margin-bottom: 1rem; }
.work-text strong { font-weight: 700; color: var(--primary); }

/* ============================================================
   FLOW (入社後の流れ)
============================================================ */
.flow-section { background: var(--bg-light); }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.flow-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.flow-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.flow-body { padding: 24px 24px 28px; }
.flow-period {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.flow-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.flow-body p { font-size: .9rem; }
.flow-body strong { font-weight: 700; color: var(--primary); }

/* ============================================================
   APPEAL (会社の魅力)
============================================================ */
.appeal-section { background: #fff; }
.appeal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.appeal-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.appeal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.appeal-body { padding: 24px 24px 28px; }
.appeal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.appeal-body p { font-size: .9rem; }
.appeal-body strong { font-weight: 700; color: var(--primary); }

/* ============================================================
   MEMBER (メンバー紹介)
============================================================ */
.member-section { background: var(--bg-light); }
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* 1カードのみの場合：中央に最大幅で表示 */
.member-grid--single {
  display: flex;
  justify-content: center;
}
.member-grid--single .member-card {
  max-width: 520px;
  width: 100%;
}
.member-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.member-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.member-body { padding: 24px 24px 28px; }
.member-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.member-body p { font-size: .9rem; margin-bottom: .8rem; }
.member-body p:last-child { margin-bottom: 0; }

/* ============================================================
   TIMELINE (1日の流れ)
============================================================ */
.timeline-section { background: #fff; }
.timeline-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin-inline: auto;
}
.timeline-list { list-style: none; }
.timeline-item {
  display: grid;
  grid-template-columns: 72px 20px 1fr;
  align-items: start;
  gap: 0 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-time {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 4px;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(232,98,10,0.2);
}
.timeline-desc { font-size: .95rem; padding-top: 2px; }

/* ============================================================
   CLOSING (おわりに)
============================================================ */
.closing-section { background: var(--bg-light); }
.closing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.closing-text h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 20px;
}
.closing-text p { margin-bottom: 1rem; }
.closing-text strong { font-weight: 700; color: var(--primary); }

/* ============================================================
   REQUIREMENTS (募集要項)
============================================================ */
.requirements-section { background: #fff; }
.requirements-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.requirements-table {
  width: 100%;
  border-collapse: collapse;
}
.requirements-table th,
.requirements-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
  vertical-align: top;
}
.requirements-table tr:last-child th,
.requirements-table tr:last-child td {
  border-bottom: none;
}
.requirements-table th {
  width: 160px;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg-light);
  white-space: nowrap;
}
.requirements-table td { line-height: 1.9; }

/* ============================================================
   CONTACT FORM
============================================================ */
.contact-section { background: var(--bg-light); }
.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 56px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin-inline: auto;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.required {
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.optional {
  background: var(--gray);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,98,10,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  color: #D92B2B;
  min-height: 18px;
}
.form-submit { text-align: center; margin-top: 8px; }
.form-submit .btn { min-width: 260px; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 40px 0;
  text-align: center;
}
.footer-company {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-address {
  font-size: .85rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-address a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.footer-copy { font-size: .78rem; }

/* ============================================================
   RESPONSIVE (768px以下)
============================================================ */
@media (max-width: 768px) {

  :root { --section-gap: 64px; --header-h: 60px; }

  /* ヘッダーナビゲーション → ドロワー */
  .hamburger { display: flex; }
  .header-nav {
    position: fixed;
    top: 0; right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    z-index: 999;
    padding: 80px 24px 40px;
    transition: right .3s ease;
    overflow-y: auto;
  }
  .header-nav.is-open { right: 0; }
  .header-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .header-nav ul li a {
    font-size: .95rem;
    padding: 12px 16px;
  }

  /* FV */
  .fv-bg { aspect-ratio: unset; padding: 60px 20px 48px; min-height: 420px; }
  .fv-heading { font-size: 1.5rem; }
  .btn { min-width: 160px; padding: 12px 20px; font-size: .9rem; }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Work ジグザグ → 画像上・テキスト下（全ブロック統一） */
  .work-block {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }
  .work-block .work-image  { order: 1; }
  .work-block .work-text   { order: 2; }
  .work-block--reverse .work-image { order: 1; }
  .work-block--reverse .work-text  { order: 2; }

  /* Flow */
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .flow-card { display: grid; grid-template-columns: 1fr; }
  .flow-card .flow-image { order: 1; }
  .flow-card .flow-body  { order: 2; }

  /* Appeal */
  .appeal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .appeal-card { display: grid; grid-template-columns: 1fr; }
  .appeal-card .appeal-image { order: 1; }
  .appeal-card .appeal-body  { order: 2; }

  /* Welcome */
  .welcome-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Member */
  .member-grid { grid-template-columns: 1fr; }
  .member-grid--single { display: grid; justify-content: unset; }
  .member-grid--single .member-card { max-width: none; }
  .member-card { display: grid; grid-template-columns: 1fr; }
  .member-card .member-image { order: 1; }
  .member-card .member-body  { order: 2; }

  /* Timeline */
  .timeline-card {
    padding: 28px 20px;
  }
  .timeline-item {
    grid-template-columns: 60px 16px 1fr;
    gap: 0 12px;
  }

  /* Closing */
  .closing-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Requirements */
  .requirements-table th,
  .requirements-table td { display: block; width: 100%; }
  .requirements-table th {
    white-space: normal;
    border-bottom: none;
    padding-bottom: 4px;
  }

  /* Form */
  .form-card { padding: 32px 20px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .fv-heading { font-size: 1.3rem; }
  .section-title { font-size: 1.25rem; }
  .timeline-item { grid-template-columns: 52px 14px 1fr; gap: 0 8px; }
}
