/* ===================================================
   style.css — E-STAFF リニューアルプロトタイプ
   テーマ：さわやか × 信頼感 × 若いカジュアル
   =================================================== */

/* ---------- カラー変数 ---------- */
:root {
  --primary:    #0ea5e9;   /* スカイブルー */
  --primary-dk: #0284c7;
  --primary-lt: #e0f2fe;
  --accent:     #22c55e;   /* グリーン（LINE色に近い） */
  --accent-dk:  #16a34a;
  --corp:       #1e40af;   /* コーポレートブルー */
  --corp-lt:    #dbeafe;
  --text-main:  #1e293b;
  --text-sub:   #64748b;
  --text-light: #94a3b8;
  --bg:         #f8fafc;
  --bg-card:    #ffffff;
  --border:     #e2e8f0;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 40px rgba(0,0,0,0.12);
  --radius:     14px;
  --radius-sm:  8px;
  --radius-xl:  24px;
}

/* ---------- リセット ---------- */
*, *::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;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* スマホ誤タップ防止：テキスト選択・コールアウトを無効化 */
  -webkit-touch-callout: none;
}

/* スマホで意図しない拡大・縮小を防ぐ（ボタン等のダブルタップズーム防止） */
a, button {
  touch-action: manipulation;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- ユーティリティ ---------- */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}
.sp-only { display: none; }
@media (max-width: 640px) { .sp-only { display: inline; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }

.btn-line {
  background: #06C755;
  color: #fff;
}
.btn-line:hover { background: #05b84d; }

.btn-mail {
  background: #fff;
  color: var(--primary-dk);
  border: 2px solid var(--primary);
}
.btn-mail:hover { background: var(--primary-lt); }

.btn-corp-cta {
  background: var(--corp);
  color: #fff;
}
.btn-corp-cta:hover { background: #1e3a8a; }

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
}
.btn-nav:hover { background: var(--primary-dk); color: #fff; }

/* 求人情報ナビリンク */
.nav-link-jobs {
  font-weight: 700;
  color: var(--text-main) !important;
}
.nav-link-jobs:hover {
  color: #ef4444 !important;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}
.cta-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 12px;
}
.cta-note a { color: var(--primary); text-decoration: underline; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 68px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img-footer {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  /* 白背景ロゴのため背景を白く囲んで表示 */
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}
.logo-text {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--text-main);
}
.logo-accent { color: #22c55e; }  /* 緑ロゴ */
.logo-sub {
  font-size: 0.72rem;
  color: var(--text-sub);
  margin-top: 2px;
}
.footer-logo-text { font-size: 1.3rem; }

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav ul li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: color 0.2s;
}
.header-nav ul li a:hover { color: var(--primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--primary); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ヒーロー 画像 */
.hero-image-wrap {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
  transition: transform 0.4s ease;
}

/* ---------- 2択ナビ ---------- */
.two-choice {
  background: #fff;
  padding: 64px 0;
}
.two-choice-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.two-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.choice-card {
  display: block;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  transition: all 0.25s ease;
  text-align: center;
}
.choice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.choice-job {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #bbf7d0;
}
.choice-corp {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid #bfdbfe;
}
.choice-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}
.choice-job .choice-icon { color: var(--accent); }
.choice-corp .choice-icon { color: var(--corp); }
.choice-card h2 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.choice-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.7;
}
.choice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}
.choice-job .choice-btn { color: var(--accent-dk); }
.choice-corp .choice-btn { color: var(--corp); }

/* ---------- セクション共通 ---------- */
.section-label-wrap {
  text-align: center;
  margin-bottom: 14px;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 0.08em;
}
.label-job   { background: #dcfce7; color: var(--accent-dk); }
.label-corp  { background: var(--corp-lt); color: var(--corp); }
.label-about { background: var(--primary-lt); color: var(--primary-dk); }

.section-title {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.4;
}
.section-desc {
  text-align: center;
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- 求職者セクション ---------- */
.jobseeker-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

/* 流れ */
.flow-wrap {
  max-width: 560px;
  margin: 48px auto 0;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.flow-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
}
.flow-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.flow-body p { font-size: 0.88rem; color: var(--text-sub); }
.flow-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 1.2rem;
  padding: 8px 0;
}
/* 就業開始ゴールステップ */
.flow-step-goal {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.flow-num-goal {
  background: var(--primary);
  font-size: 1rem;
}
.flow-step-goal .flow-body h3 {
  color: var(--corp);
}

/* こんな方に */
.recommend-box {
  max-width: 560px;
  margin: 32px auto 0;
  background: #f0fdf4;
  border-radius: var(--radius);
  padding: 28px 32px;
  border: 1px solid #bbf7d0;
}
.recommend-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dk);
  margin-bottom: 14px;
}
.recommend-title i { margin-right: 8px; }
.recommend-list li {
  font-size: 0.92rem;
  color: var(--text-sub);
  padding: 5px 0;
}
.recommend-list li i {
  color: var(--accent);
  margin-right: 8px;
}

/* ---------- 企業様セクション ---------- */
.company-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.corp-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.corp-point {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--corp);
}
.corp-icon {
  font-size: 2rem;
  color: var(--corp);
  margin-bottom: 14px;
  display: block;
}
.corp-point h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.corp-point p { font-size: 0.88rem; color: var(--text-sub); }

.corp-inquiry-box {
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--corp-lt);
  border-radius: var(--radius);
  padding: 28px 32px;
  border: 1px solid #bfdbfe;
}
.corp-inquiry-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--corp);
  margin-bottom: 14px;
}
.corp-inquiry-box h3 i { margin-right: 8px; }
.corp-inquiry-box ul li {
  font-size: 0.92rem;
  color: var(--text-sub);
  padding: 5px 0;
}
.corp-inquiry-box ul li i {
  color: var(--corp);
  margin-right: 8px;
  font-size: 0.65rem;
}

/* フォーム誘導シンプル版 */
.corp-inquiry-simple {
  text-align: center;
}
.corp-inquiry-lead {
  font-size: 0.97rem;
  color: var(--corp);
  font-weight: 500;
  line-height: 1.9;
}
.corp-inquiry-lead i {
  color: var(--corp);
  margin-right: 8px;
  font-size: 1.1rem;
}

/* ---------- Aboutセクション ---------- */
.about-section {
  padding: 80px 0;
  background: #fff;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.about-value {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.about-value:hover { box-shadow: var(--shadow); }
.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.value-icon i { font-size: 1.5rem; color: var(--primary); }
.about-value h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.about-value p { font-size: 0.88rem; color: var(--text-sub); }

/* ---------- 総合CTA ---------- */
.final-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 60%, #1e40af 100%);
  color: #fff;
}
.final-cta-title {
  font-size: 1.9rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
}
.final-cta-desc {
  text-align: center;
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 40px;
}
.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.final-cta-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
}
.final-cta-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.final-cta-card h3 i { margin-right: 8px; }
.final-cta-card p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 24px; line-height: 1.75; }
.final-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- フッター ---------- */
.site-footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid #334155;
}
.footer-logo {
  line-height: 1.3;
  display: flex;
  align-items: center;
}
.footer-logo .logo-sub { color: #64748b; }
.footer-logo-text .logo-accent { color: #22c55e; }  /* 緑ロゴ */

.footer-info p {
  font-size: 0.88rem;
  padding: 4px 0;
}
.footer-info i { margin-right: 8px; color: var(--primary); }
.footer-info a { color: #94a3b8; transition: color 0.2s; }
.footer-info a:hover { color: #fff; }

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}
.footer-nav a {
  font-size: 0.85rem;
  color: #64748b;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: #475569;
}

/* ---------- 取り扱い職種・募集中バナー ---------- */
.job-pickup-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border-top: 3px solid #f59e0b;
  border-bottom: 1px solid #fde68a;
  padding: 0;
}
.job-pickup-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.job-pickup-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.job-pickup-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}
.job-pickup-label {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 2px;
}
.job-pickup-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
}
.job-pickup-salary {
  font-size: 0.85rem;
  margin-top: 4px;
}

/* 募集中バナー：ボタン */
.job-pickup-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245,158,11,0.35);
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.job-pickup-btn:hover {
  background: #d97706;
  transform: translateY(-2px);
}
.job-pickup-btn:active {
  transform: translateY(0);
}

/* スマホ時：バナーを縦積み・ボタン全幅 */
@media (max-width: 640px) {
  .job-pickup-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .job-pickup-btn {
    justify-content: center;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    border-radius: 12px;
  }
}

/* ---------- LINE トースト ---------- */
.line-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 9999;
  max-width: 420px;
  width: calc(100% - 40px);
  animation: slideUp 0.3s ease;
}
.line-toast .fab.fa-line {
  font-size: 1.6rem;
  color: #06C755;
  margin-top: 2px;
  flex-shrink: 0;
}
.line-toast strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.line-toast span { font-size: 0.82rem; opacity: 0.8; line-height: 1.5; }
.toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1rem;
  margin-left: auto;
  flex-shrink: 0;
  padding: 0 0 0 8px;
}
.toast-close:hover { color: #fff; }
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- フリーダイヤルバナー ---------- */
.freedial-bar {
  background: var(--primary-lt);
  border-top: 1px solid #bae6fd;
  border-bottom: 1px solid #bae6fd;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--primary-dk);
}
.freedial-bar a {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-dk);
  letter-spacing: 0.05em;
}
.freedial-bar a:hover { text-decoration: underline; }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  /* pointer-events は一切触らない → メニュータップ無効の原因になるため */
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   レスポンシブ — タブレット (max 900px)
   =================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-placeholder { max-width: 480px; margin: 0 auto; }
  .corp-points { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-nav { text-align: left; }
  .footer-nav ul { text-align: left; }
}

/* ===================================================
   スマホ専用
   ハンバーガー・ナビは完全廃止。ロゴのみ表示。
   =================================================== */

/* ハンバーガーは常に非表示 */
.hamburger { display: none !important; }

/* トップへ戻るボタン：PC では非表示・スマホのみ表示 */
.sp-back-btn { display: none; }

@media (max-width: 640px) {

  /* ヘッダーナビをスマホでは完全に非表示 */
  .header-nav { display: none !important; }

  /* ---- 「← トップへ戻る」ボタン共通スタイル ---- */
  .sp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    margin: 16px 0 0 0;
    border: 1px solid var(--border);
  }

  /* ---- スマホ レイアウト調整 ---- */
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .two-choice-grid { grid-template-columns: 1fr; }

  .section-title { font-size: 1.5rem; }

  .corp-points { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }

  .final-cta-grid { grid-template-columns: 1fr; }
  .final-cta-title { font-size: 1.5rem; }
  .final-cta-btns { flex-direction: column; }
  .final-cta-btns .btn { justify-content: center; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 360px; justify-content: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav ul { text-align: left; }
}
