/* ========================================
   OMI採用LP - STEP3 デザイン完成版
   配色：濃紺(#1A3A5C) × オレンジ(#E8670A)
   フォント：Noto Sans JP
======================================== */

/* ── リセット & 基本 ── */
*, *::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: #333;
  background: #fff;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── カラー変数 ── */
:root {
  --primary:   #1A3A5C;
  --accent:    #E8670A;
  --accent-lt: #FFF3EA;
  --bg-light:  #F5F6F8;
  --border:    #E0E0E0;
  --text-main: #333;
  --text-sub:  #666;
  --white:     #fff;
  --radius:    8px;
  --shadow:    0 4px 20px rgba(0,0,0,.08);
}

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

/* ── セクション共通 ── */
.section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }

/* ── セクションラベル・タイトル（中央揃え統一） ── */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 40px;
  line-height: 1.3;
}

/* ▼ 中央揃え：全セクション見出しエリアに適用 ── */
.section > .container > .section-label,
.section > .container > .section-title {
  display: block;
  text-align: center;
}

/* ── ボタン ── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
  min-width: 180px;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: #c55608; border-color: #c55608; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(232,103,10,.35); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1rem; min-width: 220px; }
.btn-contact {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
}
.btn-contact:hover { background: #c55608; }

/* ── 画像比率ユーティリティ ── */
.img-43 {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.placeholder-43 {
  width: 100%;
  aspect-ratio: 4/3;
  background: #d8d8d8;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: .85rem;
}

/* ── フェードイン ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   HEADER
======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,58,92,.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo a {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: .05em;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav ul li a {
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.header-nav ul li a:hover { color: var(--white); background: rgba(255,255,255,.1); }

/* ── ハンバーガー ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ========================================
   HERO (FV)
======================================== */
.hero {
  position: relative;
  padding-top: 64px;
  overflow: hidden;
}
.hero-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,.75) 0%, rgba(26,58,92,.5) 60%, rgba(232,103,10,.25) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.hero-title {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.9);
  line-height: 1.8;
  margin-bottom: 28px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,.8); }
.hero .btn-outline:hover { background: rgba(255,255,255,.2); color: var(--white); }

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

/* ========================================
   ABOUT
======================================== */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text p { margin-bottom: 1em; line-height: 1.9; }
.about-text strong { color: var(--accent); font-weight: 700; }

/* ========================================
   WELCOME
======================================== */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.welcome-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.welcome-item:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.welcome-icon { font-size: 2.4rem; margin-bottom: 16px; }
.welcome-item h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.welcome-item p { font-size: .88rem; color: var(--text-sub); }

/* ========================================
   BUSINESS（ジグザグ）
======================================== */
.business-list { display: flex; flex-direction: column; gap: 60px; }
.business-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.business-block.reverse { direction: rtl; }
.business-block.reverse > * { direction: ltr; }
.business-step {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.business-text h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.business-text p { margin-bottom: 1em; line-height: 1.9; }
.business-text strong { color: var(--accent); font-weight: 700; }

/* ========================================
   CTA
======================================== */
.cta-section { background: var(--primary); padding: 60px 0; }
.cta-section .container { text-align: center; }
.cta-lead { color: rgba(255,255,255,.9); margin-bottom: 28px; font-size: .95rem; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-outline { color: var(--white); border-color: rgba(255,255,255,.7); }
.cta-section .btn-outline:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* ========================================
   FLOW（入社後の流れ）
======================================== */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.flow-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.flow-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.flow-year {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.flow-card-body { padding: 24px; }
.flow-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.flow-card-body p { font-size: .88rem; margin-bottom: .8em; line-height: 1.8; }
.flow-card-body strong { color: var(--accent); font-weight: 700; }

/* ========================================
   MERIT（会社の魅力）
======================================== */
.merit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.merit-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.merit-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.merit-card-body { padding: 24px; }
.merit-icon { font-size: 1.8rem; margin-bottom: 10px; }
.merit-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.merit-card-body p { font-size: .88rem; margin-bottom: .8em; line-height: 1.8; }
.merit-card-body strong { color: var(--accent); font-weight: 700; }

/* ========================================
   MEMBER（メンバー紹介）
======================================== */
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.member-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.member-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.member-card-body { padding: 24px; }
.member-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.member-card-body p { font-size: .88rem; line-height: 1.8; color: var(--text-sub); }

/* ========================================
   DAILY SCHEDULE（1日の流れ）
======================================== */
.daily-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 48px;
}
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 96px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 16px 0;
  position: relative;
}
.timeline-time {
  width: 80px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  padding-top: 2px;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  position: relative;
  z-index: 1;
  margin-right: 20px;
}
.timeline-content { flex: 1; }
.timeline-content strong { font-size: .95rem; font-weight: 700; color: var(--text-main); display: block; margin-bottom: 4px; }
.timeline-content p { font-size: .88rem; color: var(--text-sub); }

/* ========================================
   CLOSING（おわりに…）
======================================== */
.closing-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.closing-text p { margin-bottom: 1em; line-height: 1.9; }
.closing-text strong { color: var(--accent); font-weight: 700; }

/* ========================================
   REQUIREMENTS（募集要項）
======================================== */
.req-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.req-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--border);
}
.req-row:last-child { border-bottom: none; }
.req-label {
  background: var(--bg-light);
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
}
.req-value {
  padding: 20px 24px;
}
.req-value p {
  font-size: .88rem;
  line-height: 1.8;
  margin-bottom: .5em;
}
.req-value p:last-child { margin-bottom: 0; }

/* ========================================
   CONTACT FORM
======================================== */
.contact-lead { text-align: center; margin-bottom: 40px; color: var(--text-sub); }
.form-wrap { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}
.required {
  background: var(--accent);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 8px;
}
.optional {
  background: #999;
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .95rem;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,103,10,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: .78rem; color: var(--text-sub); margin-top: 4px; display: block; }
.form-submit { text-align: center; margin-top: 32px; }
.btn-submit { min-width: 240px; }
.form-error-global { margin-top: 16px; text-align: center; color: #d32f2f; font-size: .9rem; min-height: 24px; }
.form-error-banner {
  background: #fff3f3;
  border: 1.5px solid #e57373;
  color: #c62828;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: .92rem;
  font-weight: 500;
  text-align: center;
}

/* honeypot非表示 */
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  padding: 48px 0;
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; text-align: center; }
.footer-logo { font-size: 1.2rem; font-weight: 900; color: var(--white); margin-bottom: 16px; }
.footer-info { margin-bottom: 20px; }
.footer-info p { font-size: .88rem; margin-bottom: 6px; }
.footer-info a { color: rgba(255,255,255,.8); text-decoration: underline; }
.footer-info a:hover { color: var(--white); }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.5); }

/* ========================================
   RESPONSIVE: 768px以下
======================================== */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-title { margin-bottom: 28px; }

  /* FV：スマホでコンテンツが切れないよう最小高さを確保 */
  .hero-bg {
    aspect-ratio: auto;
    min-height: 100svh;
    min-height: 100vh;
  }
  .hero-content {
    padding: 80px 20px 32px;
    justify-content: center;
    overflow-y: visible;
  }
  .hero-title { font-size: clamp(1.3rem, 5.5vw, 1.9rem); }
  .hero-subtitle { font-size: .82rem; }

  /* ヘッダー */
  .hamburger { display: flex; }
  .header-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--primary);
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    z-index: 999;
  }
  .header-nav.open { display: block; }
  .header-nav ul { flex-direction: column; gap: 0; }
  .header-nav ul li a {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: .95rem;
  }
  .header-nav ul li:last-child a { border-bottom: none; }

  /* FV */
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: .82rem; }
  .hero-cta { flex-direction: column; align-items: center; }

  /* About / Closing */
  .about-wrap,
  .closing-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  /* WELCOME */
  .welcome-grid { grid-template-columns: 1fr; }

  /* BUSINESS ジグザグ */
  .business-block,
  .business-block.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
  }
  /* SP時は常に写真→テキスト順 */
  .business-block .business-img { order: 1; }
  .business-block .business-text { order: 2; }
  .business-block.reverse .business-img { order: 1; }
  .business-block.reverse .business-text { order: 2; }

  /* FLOW */
  .flow-grid { grid-template-columns: 1fr; }
  /* SP時は写真→テキスト */
  .flow-card { display: flex; flex-direction: column; }
  .flow-card .flow-img { order: 1; }
  .flow-card .flow-card-body { order: 2; }

  /* MERIT */
  .merit-grid { grid-template-columns: 1fr; }
  .merit-card { display: flex; flex-direction: column; }
  .merit-card .merit-img { order: 1; }
  .merit-card .merit-card-body { order: 2; }

  /* MEMBER */
  .member-grid { grid-template-columns: 1fr; }
  .member-card { display: flex; flex-direction: column; }
  .member-card .member-img { order: 1; }
  .member-card .member-card-body { order: 2; }

  /* DAILY */
  .daily-card { padding: 24px 16px; }
  .timeline::before { left: 72px; }
  .timeline-time { width: 60px; font-size: .82rem; }

  /* 募集要項 */
  .req-row { grid-template-columns: 1fr; }
  .req-label { padding: 12px 16px; }
  .req-value { padding: 12px 16px; }

  /* CTA */
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-lg { min-width: 280px; }
}

/* ========================================
   RESPONSIVE: 480px以下
======================================== */
@media (max-width: 480px) {
  .hero-title { font-size: 1.3rem; }
  .btn { min-width: 140px; padding: 12px 20px; font-size: .88rem; }
  .btn-lg { min-width: 240px; }
  .slide-item { width: 180px; }
  .slide-item img { width: 180px; }
}
