﻿/* ============================================
   セフテック採用サイト 共通スタイル
   ============================================ */

:root {
  --navy: #0C447C;
  --navy-dark: #062A50;
  --navy-light: #185FA5;
  --accent: #E63946;
  --accent-dark: #B72B36;
  --bg: #FFFFFF;
  --bg-alt: #F4F5F7;
  --bg-dark: #0A1828;
  --text: #0F141C;
  --text-mute: #5C6373;
  --border: #E2E5EB;
  --border-dark: rgba(255, 255, 255, 0.15);
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
  --font-en: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
  --max: 1200px;
  --gap: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 18px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  background: rgba(6, 20, 34, 0.0);
  transition: background 0.3s ease, padding 0.3s ease;
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header.scrolled {
  background: rgba(6, 20, 34, 0.95);
  padding: 12px 32px;
  backdrop-filter: blur(8px);
}
/* heroビジュアル表示中はfixedを外し、コンテンツと一緒にスクロールさせる */
.site-header.is-floating {
  position: absolute;
}
/* heroを過ぎて再びfixedになる際にスッと降りてくる */
.site-header.scrolled {
  animation: headerSlideDown 0.35s ease;
}
@keyframes headerSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
.site-header.solid {
  background: var(--navy-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  display: none;
}
.brand-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.brand-text small {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-main a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  padding: 8px 0;
  transition: opacity 0.2s;
}
.nav-main a small {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 2px;
}
.nav-main a:hover { opacity: 0.7; }
.nav-main a.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
}

.btn-entry {
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.btn-entry:hover { background: var(--accent-dark); }
.btn-entry::after {
  content: "→";
  font-family: var(--font-en);
  font-weight: 500;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  z-index: 1;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.is-nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.is-nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
body.is-nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* SPドロワー（header外・backdrop-filterの外に配置） */
.nav-drawer {
  display: none;
}
.nav-drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 20, 34, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-drawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 95;
  width: min(100%, 360px);
  height: 100%;
  background: var(--navy-dark);
  color: #fff;
  padding: 88px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-drawer__nav a {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-dark);
  transition: opacity 0.2s;
}
.nav-drawer__nav a small {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 4px;
}
.nav-drawer__nav a.is-active {
  color: var(--accent);
}
.nav-drawer__entry {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}
body.is-nav-open {
  overflow: hidden;
}
body.is-nav-open .nav-drawer__overlay {
  opacity: 1;
  visibility: visible;
}
body.is-nav-open .nav-drawer__panel {
  transform: translateX(0);
}

/* ============ SECTION COMMON ============ */
.section {
  padding: 120px 32px;
  position: relative;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.section-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--accent);
}
.section-label .num {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 48px;
  color: var(--navy-dark);
}
.section-title .em { color: var(--accent); }
.section-sub {
  font-size: 18px;
  color: var(--text-mute);
  margin-top: -32px;
  margin-bottom: 48px;
  max-width: 640px;
}

.section--dark {
  background: var(--navy-dark);
  color: #fff;
}
.section--dark .section-title { color: #fff; }
.section--dark .section-sub { color: rgba(255,255,255,0.7); }
.section--dark .section-label { color: #fff; }
.section--dark .section-label .num { color: var(--accent); }

.section--alt { background: var(--bg-alt); }

/* ============ PAGE HEADER (下層共通) ============ */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 0 32px 80px;
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,20,34,0.85) 0%, rgba(6,20,34,0.45) 100%);
  z-index: -1;
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.page-hero-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.08);
  position: absolute;
  bottom: 60px;
  right: 32px;
  z-index: 0;
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.page-hero .hero-en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.page-hero .hero-en::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--accent);
}

/* ============ BREADCRUMB ============ */
.crumb {
  background: var(--bg-alt);
  padding: 16px 32px;
  font-size: 14px;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
}
.crumb-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.crumb a:hover { color: var(--navy); }
.crumb .sep { margin: 0 8px; color: var(--border); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 32px 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand .brand-mark { width: 48px; height: 48px; font-size: 30px; }
.footer-brand .brand-text { font-size: 20px; color: #fff; }
.footer-brand .brand-text small { font-size: 13px; }
.footer-brand p {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.9;
}
.footer-col h4 {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-cta {
  margin-top: 24px;
}
.footer-cta .btn-entry { width: 100%; justify-content: space-between; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-en);
  letter-spacing: 0.1em;
}

/* ============ CTA BAND ============ */
.cta-band {
  position: relative;
  padding: 100px 32px;
  background: var(--navy-dark);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "ENTRY";
  position: absolute;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 36vw;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.cta-band .section-label {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  color: #fff;
}
.cta-band .section-label .num {
  color: #fff;
}
.cta-band h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.cta-band h2 .em { color: var(--accent); }
.cta-band p {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 40px;
}
.cta-band-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-large {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 40px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  min-width: 280px;
  justify-content: space-between;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-large::after {
  content: "→";
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 20px;
}

/* SP：意図しない折り返し防止（fitText用） */
.js-fittext .js-fit-line {
  display: block;
  white-space: nowrap;
  max-width: 100%;
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .nav-main { display: none; }
  .site-header__actions { display: none; }
  .nav-toggle { display: block; }
  .nav-drawer { display: block; }
  .section { padding: 80px 24px; }
  .site-header {
    padding: 14px 20px;
    background: rgba(6, 20, 34, 0.95);
    backdrop-filter: blur(8px);
  }
  .site-header.scrolled { padding: 14px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .page-hero { padding: 0 24px 60px; }
  .page-hero-en { font-size: 80px; right: 16px; bottom: 30px; }
  .cta-band { padding: 80px 24px; }
  .btn-large { min-width: 240px; padding: 18px 28px; }

  .hero h1.js-fittext,
  .page-hero h1.js-fittext {
    font-size: clamp(22px, 7.2vw, 48px);
  }
  .section-title.js-fittext {
    font-size: clamp(24px, 6.5vw, 40px);
  }
}
