/* ==============================================
   株式会社オカチュウ 採用LP
   css/style.css — STEP3 デザイン完成版
   ============================================== */

/* ---------- カラーパレット（CSS変数） ---------- */
:root {
  --color-primary:   #1a4fa0;   /* 信頼の濃紺ブルー */
  --color-secondary: #f47c20;   /* 活気のオレンジ（アクセント） */
  --color-accent:    #e05e00;   /* オレンジ・ダーク（ホバー） */
  --color-dark:      #1c2b3a;   /* ほぼ黒（本文・見出し） */
  --color-text:      #3a3a3a;   /* 本文グレー */
  --color-muted:     #6b7280;   /* サブテキスト */
  --color-bg:        #f8f9fb;   /* ページ背景 */
  --color-white:     #ffffff;
  --color-border:    #e0e5ed;
  --color-section-alt: #eef2f8; /* 奇数セクション背景 */
  --radius-card:     10px;
  --radius-btn:      8px;
  --shadow-card:     0 4px 20px rgba(26,79,160,.10);
  --transition:      .25s ease;
  --font:            'Noto Sans JP', "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.text-orange { color: var(--color-secondary) !important; }

/* ---------- リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.85;
  color: var(--color-text);
  background: var(--color-bg);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

/* ---------- コンテナ ---------- */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 共通見出し装飾 ---------- */
.section-title {
  font-size: clamp(1.375rem, 2.8vw, 2rem);
  font-weight: 900;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 20px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

.section-lead {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  max-width: 760px;
  margin: -24px auto 40px;
  line-height: 1.85;
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 96px 0;
}
.section:nth-of-type(even) {
  background: var(--color-white);
}
.section:nth-of-type(odd) {
  background: var(--color-section-alt);
}

/* ---------- 強調テキスト ---------- */
strong {
  font-weight: 700;
  color: var(--color-secondary);
}

/* ---------- 比率プレースホルダー ---------- */
.placeholder-16-9 {
  background: #b0b8c6;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-4-3 {
  background: #c2c9d6;
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: .875rem;
}
figcaption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  color: #888;
  white-space: nowrap;
  background: rgba(255,255,255,.6);
  padding: 2px 8px;
  border-radius: 3px;
}
.placeholder-4-3 > span,
.slide-item > span {
  font-size: .875rem;
  color: #6b7280;
  pointer-events: none;
}


/* ==============================================
   HEADER
   ============================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(26,79,160,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
}
.site-logo {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  letter-spacing: .03em;
}
.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-list a {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-dark);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-list a:hover {
  color: var(--color-primary);
  background: #eef2f8;
}
.nav-list .nav-cta {
  background: var(--color-secondary);
  color: var(--color-white) !important;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  font-weight: 700;
}
.nav-list .nav-cta:hover {
  background: var(--color-accent);
}

/* ハンバーガーボタン */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 210;
}
.hamburger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
/* 開閉状態 */
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==============================================
   FV（ファーストビュー）
   ============================================== */
#fv { width: 100%; overflow: hidden; }

.fv-bg {
  position: relative;
  background: #1c2b3a;
  overflow: hidden;
}
.fv-photo { display: block; width: 100%; object-fit: cover; filter: blur(2px); }
.fv-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 88%;
  max-width: 780px;
  padding: 40px 48px;
  z-index: 2;
}
.fv-badge {
  display: inline-block;
  border: 1px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-size: .875rem;
  font-weight: 500;
  padding: 4px 20px;
  margin-bottom: 16px;
}
.fv-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.fv-btn-tel {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px 24px;
  text-decoration: none;
  text-align: left;
  min-width: 200px;
}
.fv-btn-tel-label {
  display: block;
  font-size: .75rem;
  color: #e05e00;
  font-weight: 500;
}
.fv-btn-tel-num {
  display: block;
  font-size: 1.125rem;
  font-weight: 900;
  color: #1c2b3a;
}
.fv-btn-form {
  background: #f47c20;
  border-radius: 8px;
  padding: 12px 32px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}
.fv-copy h1 {
  font-size: clamp(1.375rem, 3.2vw, 2.25rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 16px;
}
.fv-sub {
  font-size: clamp(.8125rem, 1.4vw, 1rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.85;
}


/* ==============================================
   FV下スライダー（CSSアニメーション無限ループ）
   ============================================== */
#fv-slider {
  padding: 32px 0;
  background: var(--color-white);
  overflow: hidden;
}

.slider-viewport {
  overflow: hidden;
  position: relative;
}

/* 本体トラック（元＋複製を横並びに） */
.slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: slide-loop 40s linear infinite;
  will-change: transform;
}

/* ホバーで一時停止 */
.slider-viewport:hover .slider-track {
  animation-play-state: paused;
}

.slide-item {
  flex: 0 0 280px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

/* スライダーアニメーション定義
   20枚（原本10 + 複製10）のうち、前半10枚分だけスライドしてリセット */
@keyframes slide-loop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50%)); }
}


/* ==============================================
   会社について
   ============================================== */
#about .section-img {
  max-width: 680px;
  margin: 0 auto 40px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
#about .section-body {
  max-width: 720px;
  margin: 0 auto;
}
#about .section-body p {
  margin-bottom: 18px;
  font-size: 1rem;
}
#about .section-body p:last-child { margin-bottom: 0; }


/* ==============================================
   こんな方歓迎
   ============================================== */
.welcome-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}
.welcome-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border-left: 5px solid var(--color-secondary);
  transition: transform var(--transition), box-shadow var(--transition);
}
.welcome-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,79,160,.16);
}
.welcome-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.welcome-item p {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-dark);
}


/* ==============================================
   仕事内容（ジグザグ）
   ============================================== */
.work-block {
  display: flex;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}
.work-block:last-of-type { margin-bottom: 0; }
.work-block--normal  { flex-direction: row; }
.work-block--reverse { flex-direction: row-reverse; }

.work-img {
  flex: 0 0 46%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.work-text { flex: 1; }
.work-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}
.work-text p {
  font-size: .9375rem;
  margin-bottom: 12px;
  color: var(--color-text);
}
.work-text p:last-child { margin-bottom: 0; }

.work-note {
  margin-top: 64px;
  padding: 28px 36px;
  background: #fff8f0;
  border: 1px solid #fcd9b0;
  border-radius: var(--radius-card);
  border-left: 5px solid var(--color-secondary);
}
.work-note h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
.work-note p {
  font-size: .9375rem;
  margin-bottom: 8px;
}
.work-note p:last-child { margin-bottom: 0; }


/* ==============================================
   CTA セクション
   ============================================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a6bbf 100%);
}
.cta-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-lead {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 32px;
  letter-spacing: .04em;
}
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ボタン共通 */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  text-align: center;
  border: none;
  cursor: pointer;
  line-height: 1.45;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  min-width: 220px;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.btn:active { transform: translateY(-1px); }

.btn-tel {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn-tel:hover { background: #f0f4ff; }
.btn-tel-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.btn-form {
  background: var(--color-secondary);
  color: var(--color-white);
}
.btn-form:hover { background: var(--color-accent); }

.btn-submit {
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 1.125rem;
  padding: 18px 56px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-submit:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,124,32,.35);
}


/* ==============================================
   3カード共通（入社後の流れ / 魅力 / メンバー）
   ============================================== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26,79,160,.18);
}
.card-img {
  width: 100%;
  flex-shrink: 0;
}
.card-body {
  padding: 24px;
  flex: 1;
}
.card-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}
.card-body p {
  font-size: .9375rem;
  margin-bottom: 10px;
  color: var(--color-text);
}
.card-body p:last-child { margin-bottom: 0; }

/* 入社後の流れ：ステップ番号装飾 */
.flow-card .card-body h3 {
  color: var(--color-secondary);
}


/* ==============================================
   1日のスケジュール（1枚カード＋タイムライン）
   ============================================== */
.timeline-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px 48px;
  max-width: 760px;
  margin: 0 auto;
}
.timeline-list {
  display: flex;
  flex-direction: column;
  position: relative;
}
/* 縦ライン */
.timeline-list::before {
  content: '';
  position: absolute;
  left: 68px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
  border-radius: 1px;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }

/* 時刻 */
.timeline-time {
  flex: 0 0 56px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding-top: 2px;
  position: relative;
  z-index: 1;
}
/* 丸ポイント */
.timeline-time::after {
  content: '';
  position: absolute;
  right: -17px;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--color-secondary);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-secondary);
}
.timeline-text {
  margin: 0;
  font-size: .9375rem;
  color: var(--color-text);
  padding-left: 4px;
  padding-top: 2px;
}


/* ==============================================
   おわりに
   ============================================== */
#closing .section-img {
  max-width: 680px;
  margin: 0 auto 40px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
#closing .section-body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
#closing .section-body p {
  font-size: 1.0625rem;
  margin-bottom: 18px;
}
#closing .section-body p:last-child { margin-bottom: 0; }


/* ==============================================
   応募フォーム
   ============================================== */
#contact { background: var(--color-white); }

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 48px;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 28px; }
.form-label {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.required {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  color: var(--color-white);
  background: #e53e3e;
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.optional {
  display: inline-block;
  font-size: .6875rem;
  color: var(--color-muted);
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-input,
.form-textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font);
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  background: #fbfcfe;
  color: var(--color-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,79,160,.12);
}
.form-textarea { resize: vertical; }
.form-hint {
  display: block;
  font-size: .8125rem;
  color: var(--color-muted);
  margin-top: 5px;
}
.form-honeypot {
  display: none;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}
.form-submit { text-align: center; margin-top: 36px; }
.form-note {
  text-align: center;
  font-size: .8125rem;
  color: var(--color-muted);
  margin-top: 14px;
}

/* エラーバナー（index.php?error=N 時に表示） */
.form-error-banner {
  background: #fff5f5;
  border: 1.5px solid #fc8181;
  border-radius: 6px;
  padding: 14px 20px;
  margin-bottom: 28px;
  color: #c53030;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.6;
}


/* ==============================================
   募集要項
   ============================================== */
#requirements { background: var(--color-section-alt); }

.requirements-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.requirements-table { display: block; }
.req-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
}
.req-row:last-child { border-bottom: none; }
.req-label {
  flex: 0 0 160px;
  padding: 18px 20px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #f0f4fb;
  border-right: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
}
.req-value {
  flex: 1;
  padding: 18px 24px;
  font-size: .9375rem;
}
.req-value p { margin-bottom: 6px; }
.req-value p:last-child { margin-bottom: 0; }


/* ==============================================
   FOOTER
   ============================================== */
#site-footer {
  padding: 48px 0;
  background: var(--color-dark);
  color: #c8d0dc;
}
#site-footer .container { text-align: center; }
.footer-company {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}
.footer-address {
  font-size: .875rem;
  margin-bottom: 6px;
}
.footer-tel {
  font-size: .875rem;
  margin-bottom: 20px;
}
.footer-tel a {
  color: var(--color-secondary);
  font-weight: 700;
}
.footer-copy {
  font-size: .75rem;
  color: #6b7a8d;
}


/* ==============================================
   スクロールアニメーション（Intersection Observer）
   ============================================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


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

  /* ヘッダー */
  #global-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    z-index: 190;
    overflow-y: auto;
    padding: 24px 0;
  }
  #global-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .nav-list li { border-bottom: 1px solid var(--color-border); }
  .nav-list a {
    display: block;
    padding: 18px 32px;
    font-size: 1rem;
  }
  .nav-list .nav-cta {
    margin: 16px 32px;
    text-align: center;
    border-radius: var(--radius-btn);
    display: block;
  }
  .hamburger-btn { display: flex; }

  /* コンテナ */
  .container { padding: 0 20px; }

  /* セクション */
  .section { padding: 64px 0; }
  .section-title { margin-bottom: 32px; }

  /* FVコピー */
  .fv-bg { display: block; aspect-ratio: 5/7; position: relative; }
  .fv-photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
  .fv-copy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    padding: 24px 20px;
    background: transparent;
  }
  .fv-copy h1 { font-size: 1.2rem; }
  .fv-sub { font-size: .8125rem; }

  /* スライダー */
  .slide-item { flex: 0 0 220px; }

  /* 仕事内容：必ず「写真→文章」順 */
  .work-block,
  .work-block--normal,
  .work-block--reverse {
    flex-direction: column !important;
    gap: 24px;
  }
  .work-block--reverse .work-img {
    order: -1;
  }
  .work-img { flex: none; width: 100%; }
  .work-note { padding: 20px 20px; }

  /* 3カード → 1カラム（写真→テキスト順固定） */
  .cards-3 { grid-template-columns: 1fr; gap: 20px; }
  .card { flex-direction: column; }
  .card-img { order: -1; }

  /* タイムライン */
  .timeline-card { padding: 24px 20px; }
  .timeline-list::before { left: 68px; }
  .timeline-time { flex: 0 0 56px; font-size: .875rem; }
  .timeline-time::after { right: -17px; }
  .timeline-item { gap: 32px; }

  /* 募集要項 */
  .req-row { flex-direction: column; }
  .req-label { flex: none; width: 100%; border-right: none; border-bottom: 1px solid var(--color-border); }

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

  /* CTAボタン */
  .cta-buttons { flex-direction: column; align-items: center; gap: 14px; }
  .btn { width: 100%; max-width: 340px; }

  /* CTA セクション */
  .cta-lead { font-size: 1.125rem; }
}

@media (max-width: 480px) {
  .fv-copy h1 { font-size: 1.1rem; }
  .section-title { font-size: 1.25rem; }
}
