/* ============================================================
   株式会社T.Sクレスト 採用LP - style.css（STEP3デザイン完成版）
   ============================================================ */

/* ---- カラーパレット ---- */
:root {
  --primary:       #1a6ab2;   /* 信頼の深青 */
  --primary-dark:  #115490;
  --primary-light: #e8f1fb;
  --accent:        #f08200;   /* 活気のあるオレンジ */
  --accent-dark:   #d47000;
  --job-a:         #1a6ab2;   /* 職種A：青 */
  --job-b:         #2e8b57;   /* 職種B：緑 */
  --job-b-light:   #e8f5ee;
  --text:          #333333;
  --text-light:    #666666;
  --bg-light:      #f8f9fa;
  --bg-white:      #ffffff;
  --border:        #e0e0e0;
  --shadow:        0 4px 16px rgba(0,0,0,0.08);
  --shadow-hover:  0 8px 32px rgba(0,0,0,0.14);
  --radius:        12px;
  --radius-sm:     8px;
  --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;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 画像比率 */
.ratio-4-3 {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

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

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

/* ---- セクション共通 ---- */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  color: var(--primary);
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 0;
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav ul li a {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  color: var(--text);
}

.header-nav ul li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-nav ul li a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
}
.header-nav ul li a.nav-cta:hover {
  background: var(--accent-dark);
}

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

/* ============================================================
   FV（ファーストビュー）
   ============================================================ */
.fv-section {
  position: relative;
  margin-top: var(--header-h);
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  min-height: 400px;
}

.fv-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.fv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,106,178,0.72) 0%, rgba(0,0,0,0.45) 100%);
}

.fv-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  color: #fff;
  gap: 20px;
}

.fv-catch {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.fv-sub {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  max-width: 640px;
  opacity: 0.95;
  line-height: 1.9;
}

.fv-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ============================================================
   スライダー（FV直下）
   ============================================================ */
.slider-section {
  overflow: hidden;
  background: var(--bg-light);
  padding: 24px 0;
}

.slider-track {
  display: flex;
  width: max-content;
  animation: slideLoop 32s linear infinite;
}

.slider-item {
  flex-shrink: 0;
  width: 280px;
  margin: 0 8px;
}

.slider-item img {
  width: 280px;
  height: 210px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

@keyframes slideLoop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-tel {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid #ffffff;
}
.btn-tel:hover { background: #e8f1fb; border-color: #e8f1fb; }

.btn-submit {
  background: var(--accent);
  color: #fff;
  min-width: 200px;
  font-size: 1.05rem;
}
.btn-submit:hover { background: var(--accent-dark); }
.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   会社について
   ============================================================ */
.about-section { background: var(--bg-white); }

.about-inner {
  display: flex;
  gap: 48px;
  align-items: center;
}

.about-img { flex: 0 0 45%; }
.about-text { flex: 1; }
.about-text p { margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }

/* ============================================================
   歓迎
   ============================================================ */
.welcome-section { background: var(--primary-light); }

.welcome-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.welcome-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.welcome-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.welcome-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 12px;
}

.welcome-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.welcome-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================================
   職種ナビ
   ============================================================ */
.job-nav-section {
  background: var(--primary);
  padding: 56px 0;
}

.job-nav-section .section-title {
  color: #fff;
}
.job-nav-section .section-title::after {
  background: var(--accent);
}

.job-nav-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.job-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s;
}
.job-nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.job-a-btn {
  background: #fff;
  color: var(--job-a);
  border: 3px solid var(--job-a);
}
.job-a-btn:hover { background: var(--primary-light); }

.job-b-btn {
  background: #fff;
  color: var(--job-b);
  border: 3px solid var(--job-b);
}
.job-b-btn:hover { background: var(--job-b-light); }

/* ============================================================
   職種セクション共通
   ============================================================ */
.job-section { padding: 80px 0; }
.job-a-section { background: var(--bg-white); }
.job-b-section { background: var(--bg-light); }

.job-type-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 24px;
}

.job-a-badge {
  background: var(--primary-light);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.job-b-badge {
  background: var(--job-b-light);
  color: var(--job-b);
  border: 2px solid var(--job-b);
}

/* ---- ジグザグ ---- */
.zigzag-block {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.zigzag-block:last-of-type { margin-bottom: 80px; }

.zigzag-reverse { flex-direction: row-reverse; }

.zigzag-img { flex: 0 0 45%; }
.zigzag-text { flex: 1; }

.zigzag-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.job-b-section .zigzag-text h3 { color: var(--job-b); }

.zigzag-text p { margin-bottom: 12px; }
.zigzag-text p:last-child { margin-bottom: 0; }

/* ---- フローカード ---- */
.flow-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.flow-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.job-b-section .flow-card { background: #fff; }

.flow-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.flow-card-img img {
  border-radius: 0;
}

.flow-card-body {
  padding: 24px;
}

.flow-step {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.job-b-section .flow-step { background: var(--job-b); }

.flow-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.job-b-section .flow-card-body h3 { color: var(--job-b); }

.flow-card-body p { font-size: 0.9rem; margin-bottom: 8px; }
.flow-card-body p:last-child { margin-bottom: 0; }

/* ============================================================
   中間CTA・下部CTA
   ============================================================ */
.cta-mid-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 0;
  text-align: center;
}

.cta-mid-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}

.cta-bottom-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 72px 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.cta-sub {
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   会社の魅力
   ============================================================ */
.appeal-section { background: var(--primary-light); }

.appeal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.appeal-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.appeal-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.appeal-card-img img { border-radius: 0; }

.appeal-card-body {
  padding: 24px;
}

.appeal-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.appeal-card-body p { font-size: 0.9rem; margin-bottom: 8px; }
.appeal-card-body p:last-child { margin-bottom: 0; }

/* ============================================================
   メンバー紹介
   ============================================================ */
.member-section { background: var(--bg-white); }

.member-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.member-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.member-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.member-img img { border-radius: 0; }

.member-body {
  padding: 24px;
}

.member-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.member-role {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px !important;
}

.member-body p { font-size: 0.9rem; }

/* ============================================================
   1日の流れ
   ============================================================ */
.flow-section { background: var(--bg-light); }

.tab-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 12px 28px;
  border-radius: 30px;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  color: #fff;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.timeline-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 40px;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.timeline-item.last { border-bottom: none; }

.timeline-item .time {
  flex: 0 0 56px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.timeline-item .act {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   おわりに
   ============================================================ */
.ending-section { background: var(--bg-white); }

.ending-inner {
  display: flex;
  gap: 48px;
  align-items: center;
}

.ending-img { flex: 0 0 45%; }
.ending-text { flex: 1; }
.ending-text p { margin-bottom: 16px; }
.ending-text p:last-child { margin-bottom: 0; }

/* ============================================================
   募集要項
   ============================================================ */
.requirements-section { background: var(--bg-light); }

.req-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}

.req-job-title {
  background: var(--primary);
  color: #fff;
  padding: 16px 28px;
  font-size: 1.1rem;
  font-weight: 700;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
}

.req-table tr {
  border-bottom: 1px solid var(--border);
}
.req-table tr:last-child { border-bottom: none; }

.req-table th {
  width: 160px;
  padding: 16px 20px;
  background: var(--bg-light);
  font-weight: 700;
  font-size: 0.9rem;
  vertical-align: top;
  color: var(--primary);
  border-right: 1px solid var(--border);
}

.req-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  vertical-align: top;
  line-height: 1.8;
}

/* ============================================================
   応募フォーム
   ============================================================ */
.contact-section { background: var(--primary-light); }

.contact-lead {
  text-align: center;
  margin-bottom: 40px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow);
}

/* honeypot非表示 */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.required {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color 0.2s;
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-group textarea { resize: vertical; }

.form-submit { text-align: center; margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #fff;
}

.footer-company p {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.75);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 400px;
}

.footer-nav ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: #fff; }

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ============================================================
   レスポンシブ（≤768px）
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 56px; }

  /* ヘッダー */
  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    padding: 24px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .header-nav.open { transform: translateY(0); }
  .header-nav ul { flex-direction: column; gap: 4px; }
  .header-nav ul li a { display: block; padding: 10px 12px; font-size: 0.95rem; }
  .hamburger { display: flex; }

  /* FV */
  .fv-section { aspect-ratio: auto; min-height: 80vw; }
  .fv-catch { font-size: clamp(1.4rem, 6vw, 2rem); }
  .fv-content { justify-content: center; padding-top: 0; padding-bottom: 0; }

  /* スライダー */
  .slider-item { width: 200px; }
  .slider-item img { width: 200px; height: 150px; }

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

  /* 会社について */
  .about-inner {
    flex-direction: column;
    gap: 24px;
  }
  .about-img { flex: none; width: 100%; order: -1; }

  /* 歓迎 */
  .welcome-list { grid-template-columns: 1fr; }

  /* 職種ナビ */
  .job-nav-buttons { flex-direction: column; align-items: center; }
  .job-nav-btn { width: 100%; max-width: 320px; text-align: center; justify-content: center; }

  /* ジグザグ */
  .zigzag-block,
  .zigzag-reverse {
    flex-direction: column;
    gap: 24px;
  }
  .zigzag-img,
  .zigzag-reverse .zigzag-img {
    flex: none;
    width: 100%;
    order: -1;
  }

  /* フローカード */
  .flow-cards { grid-template-columns: 1fr; }

  /* 魅力 */
  .appeal-cards { grid-template-columns: 1fr; }

  /* メンバー */
  .member-cards { grid-template-columns: 1fr; }

  /* おわりに */
  .ending-inner {
    flex-direction: column;
    gap: 24px;
  }
  .ending-img { flex: none; width: 100%; order: -1; }

  /* 募集要項 */
  .req-table th { width: 100px; padding: 12px 14px; font-size: 0.82rem; }
  .req-table td { padding: 12px 14px; font-size: 0.85rem; }

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

  /* フッター */
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-nav ul { max-width: 100%; }

  /* CTA */
  .cta-buttons { flex-direction: column; align-items: center; }
  .fv-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .timeline-card { padding: 24px 20px; }
  .req-table { display: block; overflow-x: auto; }
}
