/* =============================================================
   STEP3 完成版 CSS
   配色：信頼感のあるネイビー × 活気の建設オレンジ × 安全イエロー
   タイポ：Noto Sans JP（400 / 500 / 700 / 900）
   ============================================================= */

:root {
  /* カラー（オリジナル配色） */
  --color-navy:        #0F2A47;   /* 信頼・安定のネイビー（メイン基調） */
  --color-navy-deep:   #0A1F36;   /* ヘッダー・フッターの濃い面 */
  --color-navy-soft:   #1E3A5F;   /* サブのネイビー */
  --color-orange:      #F2871F;   /* 建設現場の活力・アクセント */
  --color-orange-dark: #D8700F;   /* アクセントの濃い目 */
  --color-yellow:      #FFC72C;   /* 安全・注意喚起のイエロー */
  --color-bg:          #F7F8FA;   /* ページ背景（オフホワイト） */
  --color-surface:     #FFFFFF;   /* カード等の白面 */
  --color-text:        #1A2330;   /* 本文の濃グレー */
  --color-text-soft:   #4A5568;   /* 補助テキスト */
  --color-border:      #E2E6EC;   /* 仕切りの薄いボーダー */
  --color-line:        #E5E7EB;   /* 募集要項の区切り線（薄いグレー1px） */

  /* タイポ */
  --font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* 強調：文字色もアクセントカラーへ */
strong {
  font-weight: 700;
  color: var(--color-orange-dark);
  background: linear-gradient(transparent 60%, rgba(255, 199, 44, 0.45) 60%);
  padding: 0 2px;
}

/* ===== 共通セクション ===== */
.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section h2 {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.02em;
  margin: 0 0 36px 0;
  color: var(--color-navy);
  text-align: center;
  position: relative;
  padding-bottom: 14px;
}
.section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: var(--color-orange);
  border-radius: 2px;
}
.section h3 {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-navy);
  margin: 16px 0 12px 0;
}

/* ===========================================
   ヘッダー
   =========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(15,42,71,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  gap: 16px;
}
.logo {
  font-size: 17px;
  font-weight: 900;
  color: var(--color-navy);
  margin: 0;
  letter-spacing: 0.02em;
}
.logo a { display: inline-block; padding: 4px 0; }
.logo-img { display: block; height: 46px; width: auto; }
@media (max-width: 768px) {
  .logo-img { height: 36px; }
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  padding: 4px 2px;
  position: relative;
  transition: color .2s ease;
}
.nav li a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav li a:hover { color: var(--color-orange-dark); }
.nav li a:hover::after { transform: scaleX(1); }

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background .2s ease;
}
.hamburger:hover { background: var(--color-bg); }
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  margin: 4px 0;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===========================================
   FV（16:9 灰色ブロック＋中央コピー＋直下CTA）
   =========================================== */
.fv {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(15,42,71,0.06), rgba(15,42,71,0.02)),
    #d9d9d9;
}
.fv-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%),
    linear-gradient(135deg, #cfd2d6 0%, #b9bcc1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fv-bg::before {
  content: "IMAGE PLACEHOLDER / 16:9";
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(15,42,71,0.4);
  letter-spacing: 0.08em;
}
/* ===========================================
   実写真差し込み用（プレースホルダー解除）
   =========================================== */
.has-image::before,
.has-image::after { content: none !important; }
.fv-bg.has-image,
.block-image.has-image,
.zigzag-image.has-image,
.card-image.has-image,
.slide.has-image { overflow: hidden; position: relative; }
.fv-bg.has-image img,
.block-image.has-image img,
.zigzag-image.has-image img,
.card-image.has-image img,
.slide.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fv-copy-wrap {
  position: relative;
  text-align: center;
  padding: 24px;
  max-width: 820px;
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15,42,71,0.18);
  border: 1px solid rgba(255,255,255,0.6);
}
.fv-main {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.45;
  margin: 0 0 14px 0;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}
.fv-main strong {
  color: var(--color-orange-dark);
  background: linear-gradient(transparent 60%, rgba(255, 199, 44, 0.55) 60%);
}
.fv-sub {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
  margin: 0;
  color: var(--color-text);
}
.fv-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px 32px;
  flex-wrap: wrap;
  background: var(--color-bg);
}

/* ===========================================
   FV下スライダー領域（10枚・無限ループ）
   =========================================== */
.slider-area {
  width: 100%;
  background: linear-gradient(180deg, var(--color-bg) 0%, #FFFFFF 100%);
  padding: 24px 0 32px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: loop-scroll 40s linear infinite;
}
.slide {
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #cfd2d6 0%, #b3b6bb 100%);
  border-radius: 6px;
  position: relative;
}
.slide::after {
  content: "4:3";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(15,42,71,0.45);
  letter-spacing: 0.1em;
}
@keyframes loop-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .slider-track { animation: none; }
}

/* ===========================================
   私たちについて
   =========================================== */
.about { background: var(--color-surface); border-radius: 16px; margin-top: 56px; }
.about-text { padding: 16px 0; }
.block-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #cfd2d6 0%, #b3b6bb 100%);
  border-radius: 8px;
  margin-bottom: 24px;
  position: relative;
}
.block-image::after {
  content: "IMAGE 4:3";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15,42,71,0.45);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 14px;
}
.block-text p { margin: 0 0 14px 0; }
.block-text p:last-child { margin-bottom: 0; }

/* ===========================================
   こんな人歓迎
   =========================================== */
.welcome { padding-top: 56px; }
.welcome-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.welcome-list li {
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-orange);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-navy);
  box-shadow: 0 2px 0 rgba(15,42,71,0.03);
  transition: transform .2s ease, box-shadow .2s ease;
}
.welcome-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15,42,71,0.08);
}

/* ===========================================
   仕事内容ジグザグ
   =========================================== */
.section-lead { margin-bottom: 24px; }
.section-lead p { margin: 0 0 8px 0; }
.zigzag-block {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}
.zigzag-block:first-of-type { border-top: none; }
.zigzag-block.reverse { flex-direction: row-reverse; }
.zigzag-image {
  flex: 0 0 46%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #cfd2d6 0%, #b3b6bb 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease;
}
.zigzag-image:hover { transform: translateY(-3px); }
.zigzag-image::after {
  content: "IMAGE 4:3";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15,42,71,0.45);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.zigzag-text { flex: 1 1 54%; }
.zigzag-text h3 {
  position: relative;
  padding-left: 14px;
}
.zigzag-text h3::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 5px;
  height: calc(100% - 12px);
  background: var(--color-orange);
  border-radius: 3px;
}

/* ===========================================
   3カラムカード共通
   =========================================== */
.cards-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 0 rgba(15,42,71,0.03);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,42,71,0.10);
}
.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #cfd2d6 0%, #b3b6bb 100%);
  border-radius: 10px;
  margin-bottom: 16px;
  position: relative;
}
.card-image::after {
  content: "IMAGE 4:3";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15,42,71,0.45);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 13px;
}
.card h3 { margin: 4px 0 12px; }
.card-sub {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-soft);
  margin-top: 6px;
}
.card p { margin: 0; }

/* ===========================================
   1日のスケジュール
   =========================================== */
.schedule { background: var(--color-surface); border-radius: 16px; }
.schedule-box {
  background:
    linear-gradient(180deg, #FAFBFD 0%, #FFFFFF 100%);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 28px 32px;
  position: relative;
}
.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.schedule-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-border);
}
.schedule-list li:last-child { border-bottom: none; }
.schedule-list time {
  flex: 0 0 84px;
  font-feature-settings: "tnum" 1;
  font-weight: 700;
  color: var(--color-orange-dark);
  background: rgba(255, 199, 44, 0.18);
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}

/* ===========================================
   CTA バンド
   =========================================== */
.cta-band {
  max-width: 980px;
  margin: 40px auto;
  padding: 40px 24px;
  background:
    linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  border-radius: 18px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 12px 32px rgba(15,42,71,0.18);
}
.cta-heading {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 22px 0;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}
.cta-heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-yellow);
  border-radius: 2px;
  margin: 12px auto 0;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--color-orange);
  color: #FFFFFF;
  border-color: var(--color-orange);
  box-shadow: 0 6px 0 rgba(216, 112, 15, 0.4);
}
.btn-primary:hover {
  background: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 0 rgba(216, 112, 15, 0.4);
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(216, 112, 15, 0.4); }

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-navy);
  border-color: var(--color-navy);
  box-shadow: 0 6px 0 rgba(15, 42, 71, 0.25);
}
.btn-secondary:hover {
  background: var(--color-navy);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 8px 0 rgba(15, 42, 71, 0.25);
}
.btn-secondary:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(15, 42, 71, 0.25); }

.btn-submit {
  background: var(--color-orange);
  color: #FFFFFF;
  border: none;
  padding: 14px 40px;
  border-radius: 999px;
  font-weight: 700;
  min-width: 200px;
  box-shadow: 0 6px 0 rgba(216, 112, 15, 0.4);
}
.btn-submit:hover {
  background: var(--color-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 0 rgba(216, 112, 15, 0.4);
}

/* ===========================================
   募集要項（2カラム・薄いグレー1px区切り）
   =========================================== */
.requirements-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 8px 32px;
  box-shadow: 0 2px 0 rgba(15,42,71,0.03);
}
.req-list { margin: 0; padding: 0; }
.req-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line);
}
.req-item:last-child { border-bottom: none; }
.req-item dt {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 15px;
  letter-spacing: 0.02em;
}
.req-item dd { margin: 0; }
.req-sub {
  margin-top: 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-orange-dark);
  letter-spacing: 0.02em;
}
.req-bullet {
  margin: 0;
  padding-left: 1.2em;
}
.req-bullet li { margin: 4px 0; }

/* ===========================================
   応募フォーム
   =========================================== */
.contact { background: var(--color-navy); color: #FFFFFF; border-radius: 0; max-width: none; padding: 80px 24px; }
.contact h2 {
  color: #FFFFFF;
}
.contact h2::after { background: var(--color-yellow); }
.form-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  background: var(--color-surface);
  color: var(--color-text);
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-navy);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-family);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--color-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(242, 135, 31, 0.2);
}
.required {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--color-orange);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.optional {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: #B8BFC8;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}
.form-actions { text-align: center; margin-top: 20px; }

/* 送信エラー表示 */
.form-error {
  background: #FFF4E8;
  border: 1px solid #F2B57A;
  border-left: 4px solid var(--color-orange-dark);
  color: #6B3500;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin: 14px 0 4px;
  white-space: pre-line;
}
.form-error[hidden] { display: none; }

/* honeypot */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ===========================================
   フッター
   =========================================== */
.site-footer {
  background: var(--color-navy-deep);
  color: #E6ECF3;
  padding: 28px 20px;
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.footer-company { font-weight: 900; margin: 0 0 6px 0; font-size: 16px; }
.footer-address { margin: 0; font-size: 13px; color: #B8C2D0; }

/* ===========================================
   レスポンシブ（768px以下）
   =========================================== */
@media (max-width: 768px) {
  .section { padding: 48px 16px; }
  .section h2 { font-size: 24px; }
  .fv-main { font-size: 22px; line-height: 1.4; }
  .fv-sub { font-size: 14px; }
  .fv-copy-wrap { padding: 18px; }

  /* ナビを隠してハンバーガー化 */
  .nav { display: none; }
  .nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 18px rgba(15,42,71,0.10);
  }
  .nav.is-open ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .nav.is-open li a {
    display: block;
    padding: 12px 24px;
    border-top: 1px solid var(--color-border);
    font-size: 15px;
  }
  .nav.is-open li:first-child a { border-top: none; }
  .nav.is-open li a::after { display: none; }
  .hamburger { display: block; }

  /* 仕事内容ジグザグ：写真→文章 順を厳守 */
  .zigzag-block,
  .zigzag-block.reverse {
    flex-direction: column;
  }
  .zigzag-image {
    flex: none;
    width: 100%;
    margin-bottom: 12px;
  }

  /* 3カラム→1カラム（縦積み＝写真→文章順） */
  .cards-3col { grid-template-columns: 1fr; }

  .req-item { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .schedule-box { padding: 18px; }
  .schedule-list time { flex: 0 0 64px; font-size: 12px; padding: 4px 6px; }

  .cta-band { padding: 32px 18px; margin: 24px auto; }
  .cta-heading { font-size: 20px; }
  .cta-buttons { flex-direction: column; gap: 12px; }
  .btn { width: 100%; }

  .requirements-card { padding: 8px 18px; }
  .form-card { padding: 22px; }
}
