/* ============================
   八田組 採用LP スタイルシート
   ============================ */

/* CSS変数 */
:root {
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #ffedd5;
  --navy-900: #0f172a;
  --navy-800: #1e3a5f;
  --navy-700: #1e3a5f;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --header-h: 64px;
}

/* リセット */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================
   ヘッダー
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy-800);
  letter-spacing: 0.04em;
}
.site-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.site-logo span { color: var(--orange-500); }

.global-nav ul {
  display: flex;
  gap: 28px;
}
.global-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: color .2s;
}
.global-nav a:hover { color: var(--orange-500); }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================
   共通
   ============================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section-sm { padding: 40px 0; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.section-title p {
  font-size: 0.9rem;
  color: #64748b;
}

.accent-text { color: var(--orange-500); font-weight: 700; }

/* プレースホルダーボックス */
.placeholder-box {
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
}
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-4-3  { aspect-ratio: 4/3; }

/* ============================
   ヒーロー
   ============================ */
.hero { padding: 0; }
.hero .container { max-width: none; padding: 0; }
.hero-visual {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: unset;
  display: flex;
  align-items: center;
}
.hero-copy {
  padding: 60px 40px;
  max-width: 680px;
  color: var(--white);
  text-align: center;
  margin: 0 auto;
}
.hero-label {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--orange-400);
  margin-bottom: 12px;
}
.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(1.87rem, 2.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.03em;
}
.h1-break { display: none; }
.hero-copy p {
  margin-bottom: 0;
  font-size: clamp(0.94rem, 1.54vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
}

/* FVボタン */
.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: center;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 31px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: opacity .2s, transform .15s;
}
.cta-button:hover { opacity: .88; transform: translateY(-1px); }
.cta-button.is-primary {
  background: var(--orange-500);
  color: var(--white);
}
.cta-button.is-secondary {
  background: var(--white);
  color: var(--navy-800);
  border: 2px solid var(--white);
}

/* ============================
   スライダー
   ============================ */
.slider-placeholder {
  overflow: hidden;
  background: var(--gray-100);
}
.slider-track {
  display: flex;
  gap: 16px;
  padding: 16px 0;
}
.slider-track.is-animated {
  animation: slide-loop var(--loop-duration, 40s) linear infinite;
}
.slide-item {
  flex-shrink: 0;
  width: 300px;
  border-radius: 10px;
  overflow: hidden;
}
@keyframes slide-loop {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--loop-distance, 50%))); }
}

/* ============================
   会社概要
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.body-text p {
  margin-bottom: 0;
  font-size: 0.93rem;
  line-height: 1.75;
}
.body-text p + p { margin-top: 1em; }

/* ============================
   仕事内容（ジグザグ）
   ============================ */
.zigzag-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.zigzag-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.zigzag-item.reverse-desktop .zigzag-media { order: 2; }
.zigzag-item.reverse-desktop .zigzag-content { order: 1; }

.zigzag-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 900;
  color: var(--navy-800);
  margin-bottom: 14px;
  line-height: 1.4;
}
.zigzag-content p {
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 0;
  color: var(--gray-700);
}
.zigzag-content p + p { margin-top: 0.75em; }

.note-box {
  margin-top: 48px;
  background: var(--orange-100);
  border-left: 4px solid var(--orange-500);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 0.88rem;
  line-height: 1.7;
}
.note-box p + p { margin-top: 0.5em; }

/* ============================
   CTAボックス
   ============================ */
.cta-box {
  text-align: center;
  padding: 40px 20px;
}
.cta-box h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy-800);
  margin-bottom: 20px;
}
.cta-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  transition: opacity .2s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary {
  background: var(--orange-500);
  color: var(--white);
}
.btn-secondary {
  background: var(--navy-800);
  color: var(--white);
}

/* ============================
   カードグリッド（入社後の流れ・魅力）
   ============================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.info-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.card-media {
  border-radius: 0;
}
.card-body {
  padding: 20px;
}
.card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-500);
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.card-body h3 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy-800);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-body p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--gray-700);
}

/* ============================
   こんな方歓迎
   ============================ */
.welcome-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}
.welcome-list li {
  background: var(--white);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
  border-left: 4px solid var(--orange-500);
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.welcome-list li::before {
  content: '✅ ';
}

/* ============================
   1日の流れ
   ============================ */
.timeline-list {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 68px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--orange-200, #fed7aa);
}
.timeline-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 12px 0 12px 0;
  position: relative;
}
.timeline-list li .time {
  flex-shrink: 0;
  width: 56px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-500);
  text-align: right;
  padding-top: 2px;
}
.timeline-list li .dot {
  flex-shrink: 0;
  width: 12px; height: 12px;
  background: var(--orange-500);
  border-radius: 50%;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.timeline-list li .desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-800);
}

/* ============================
   おわりに
   ============================ */
.outro-section .media {
  max-width: 640px;
  margin: 0 auto 32px;
}
.outro-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.outro-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.outro-text .highlight {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--orange-500);
}

/* ============================
   募集要項
   ============================ */
.requirements-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.requirements-table th,
.requirements-table td {
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}
.requirements-table th {
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
  width: 160px;
  white-space: nowrap;
}
.requirements-table tr:nth-child(even) td {
  background: var(--gray-50);
}

/* ============================
   応募フォーム
   ============================ */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy-800);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color .2s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange-500);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  text-align: center;
  margin-top: 8px;
}
.btn-submit {
  background: var(--orange-500);
  color: var(--white);
  padding: 16px 48px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-submit:hover { opacity: .88; }

/* ============================
   フッター
   ============================ */
.site-footer {
  background: var(--navy-900);
  color: #94a3b8;
  text-align: center;
  padding: 32px 20px;
  font-size: 0.82rem;
}
.site-footer a { color: #94a3b8; }

/* ============================
   レスポンシブ
   ============================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .zigzag-item,
  .zigzag-item.reverse-desktop { grid-template-columns: 1fr; }
  .zigzag-item.reverse-desktop .zigzag-media { order: 0; }
  .zigzag-item.reverse-desktop .zigzag-content { order: 0; }
  .card-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    padding: 24px;
    transform: translateY(-200%);
    transition: transform .35s ease;
  }
  .global-nav.is-open { transform: translateY(0); }
  .global-nav ul { flex-direction: column; gap: 20px; }
  .hamburger { display: flex; }
  body.menu-open { overflow: hidden; }

  .hero-copy { padding: 40px 20px; }
  .section { padding: 60px 0; }
  .card-grid { grid-template-columns: 1fr; }

  .hero-visual { aspect-ratio: unset; min-height: 560px; }
  .hero-copy p { font-size: 0.82rem; }

  .requirements-table th { width: 90px; white-space: normal; font-size: 0.78rem; padding: 10px 8px; }
  .requirements-table td { padding: 10px 10px; font-size: 0.85rem; }
  .h1-break { display: inline; }
}
