/* ==============================================
   株式会社unnsui 採用LP - style.css
   水色 × 深ブルー配色 + ホワイトヘッダー
   ============================================== */

/* ---- リセット & ベース ---- */
*, *::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;
  color: #1a2a3a;
  background: #ffffff;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- CSS変数 ---- */
:root {
  --main:       #0ea5e9;   /* スカイブルー */
  --main-dark:  #0284c7;   /* ディープブルー */
  --navy:       #0c2a4a;   /* ダークネイビー */
  --navy-mid:   #164e63;   /* ミッドネイビー */
  --accent:     #06b6d4;   /* シアン */
  --light-bg:   #f0f9ff;   /* 淡水色背景 */
  --dark-bg:    #0c2a4a;   /* ダークセクション背景 */
  --text-dark:  #1a2a3a;
  --text-light: #ffffff;
  --text-mid:   #4a6080;
  --border:     #e0edf5;
  --white:      #ffffff;
  --gray:       #f5f5f5;
  --header-h:   68px;
}

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

/* ---- セクション共通 ---- */
.section-light { background: var(--white); }
.section-light:nth-child(even) { background: var(--light-bg); }
.section-dark { background: var(--dark-bg); color: var(--text-light); }

section:not(.cta-section):not(.slider-section):not(.fv-section) {
  padding: 80px 0;
}

/* ---- セクションラベル ---- */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--main);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-dark .section-label { color: var(--accent); }

/* ---- セクションタイトル ---- */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 48px;
}
.section-dark .section-title { color: var(--text-light); }

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

/* ---- アクセントテキスト ---- */
.accent { color: var(--main); font-weight: 700; }
.section-dark .accent { color: var(--accent); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  background: #f4f4f4;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; object-fit: contain; }
.logo-img-sm { height: 36px; width: auto; object-fit: contain; }

.pc-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pc-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.pc-nav a:hover { color: var(--main); background: var(--light-bg); }
.nav-cta-btn {
  background: var(--main) !important;
  color: var(--white) !important;
  border-radius: 20px !important;
  padding: 6px 16px !important;
  font-weight: 700 !important;
}
.nav-cta-btn:hover { background: var(--main-dark) !important; }

/* ---- ハンバーガーボタン ---- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
  z-index: 1100;
}
.hamburger-btn:focus-visible { outline: 2px solid var(--main); }
.hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
/* 開いた状態 */
.hamburger-btn.is-open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.is-open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- スマホナビ ---- */
.sp-nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sp-nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.sp-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--navy);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 80px 0 40px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.sp-nav.is-open { right: 0; }
.sp-nav ul { display: flex; flex-direction: column; height: 100%; justify-content: space-evenly; }
.sp-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.sp-nav-link {
  display: block;
  padding: 14px 24px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
}
.sp-nav-link:hover { background: rgba(255,255,255,0.08); }
.sp-nav-cta {
  background: var(--main) !important;
  color: var(--white) !important;
  text-align: center;
  border-radius: 0;
}

/* ============================================================
   FV
   ============================================================ */
.fv-section {
  margin-top: var(--header-h);
}
.fv-bg {
  position: relative;
  aspect-ratio: 16 / 9;
  background-image: url('./images/fv-main.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.fv-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.fv-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12,42,74,0.82) 0%, rgba(6,182,212,0.40) 100%);
  z-index: 1;
}
.fv-content {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 5%, 80px);
  gap: 16px;
  text-align: center;
  z-index: 2;
}
.fv-eyebrow {
  font-size: clamp(11px, 1.5vw, 14px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  background: rgba(0,0,0,0.35);
  padding: 4px 12px;
  border-radius: 20px;
}
.fv-title {
  font-size: clamp(1.4rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  text-align: center;
}
.fv-sub {
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  text-align: center;
}

/* ============================================================
   CTA ボタン共通
   ============================================================ */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
  min-width: 200px;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.btn-tel { background: var(--white); color: var(--navy); border: 2px solid var(--white); }
.btn-tel:hover { background: var(--light-bg); }
.btn-contact { background: var(--main); color: var(--white); border: 2px solid var(--main); }
.btn-contact:hover { background: var(--main-dark); border-color: var(--main-dark); }
.btn-submit {
  background: var(--main);
  color: var(--white);
  border: none;
  padding: 16px 48px;
  font-size: 1.1rem;
  width: 100%;
  max-width: 360px;
}
.btn-submit:hover { background: var(--main-dark); }

/* ---- CTAバンド ---- */
.cta-section {
  padding: 56px 0;
}
.cta-mid { background: var(--navy-mid); }
.cta-mid2 { background: var(--navy); }
.cta-final { background: var(--main); }
.cta-section .cta-lead {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 24px;
  text-align: center;
}
.cta-section .cta-buttons { justify-content: center; }
.cta-mid .btn-contact,
.cta-mid2 .btn-contact { background: var(--accent); border-color: var(--accent); }
.cta-final .btn-tel { color: var(--navy); }
.cta-final .btn-contact { background: var(--navy); border-color: var(--navy); }

/* ============================================================
   SLIDER
   ============================================================ */
.slider-section {
  overflow: hidden;
  background: var(--navy);
  padding: 24px 0;
}
.slider-outer { overflow: hidden; }
.slider-track {
  display: flex;
  gap: 16px;
  animation: slide-loop 30s linear infinite;
  will-change: transform;
}
.slider-track:hover { animation-play-state: paused; }
.slide-item {
  flex: 0 0 280px;
  height: 210px;
  border-radius: 8px;
  overflow: hidden;
}
.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes slide-loop {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--slider-offset, -2960px)); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.about-text p { margin-bottom: 16px; }

/* ============================================================
   WELCOME
   ============================================================ */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.welcome-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}
.welcome-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.welcome-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.5;
}
.welcome-card p { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* ============================================================
   JOBS ジグザグ
   ============================================================ */
.job-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}
.job-block:last-child { margin-bottom: 0; }
.job-block-reverse { direction: rtl; }
.job-block-reverse > * { direction: ltr; }
.job-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.step-badge {
  display: inline-block;
  background: var(--main);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.job-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}
.job-text p { font-size: 0.95rem; line-height: 1.8; }

/* ============================================================
   CAREER
   ============================================================ */
.career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.career-card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  border-top: 5px solid var(--accent);
}
.career-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.career-body { padding: 24px; }
.career-step {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.career-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.4;
}
.career-body p { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ============================================================
   APPEAL
   ============================================================ */
.appeal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.appeal-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid var(--main);
}
.appeal-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.appeal-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.appeal-body { padding: 24px; }
.appeal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--navy);
}
.appeal-body p { font-size: 0.88rem; line-height: 1.7; color: var(--text-mid); }
.appeal-section { background: var(--light-bg); }

/* ============================================================
   MEMBERS
   ============================================================ */
.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.member-card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  border-top: 5px solid var(--main);
}
.member-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}
.member-body { padding: 24px; }
.member-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.member-body p { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ============================================================
   SCHEDULE タイムライン
   ============================================================ */
.schedule-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  color: var(--white);
}
.timeline { list-style: none; }
.timeline-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: flex-start;
}
.timeline-item:last-child { border-bottom: none; }
.tl-time {
  flex: 0 0 60px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 2px;
}
.tl-highlight .tl-time { color: #fbbf24; font-size: 1rem; }
.tl-highlight .tl-content { font-weight: 700; color: #fbbf24; }
.tl-content { font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.6; }

/* ============================================================
   REQUIREMENTS
   ============================================================ */
.requirements-section { background: var(--white); }
.requirements-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.req-table { display: flex; flex-direction: column; }
.req-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #e8f0f8;
}
.req-row:last-child { border-bottom: none; }
.req-row dt {
  background: #f0f7fc;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  display: flex;
  align-items: flex-start;
  border-right: 1px solid #e8f0f8;
}
.req-row dd {
  padding: 16px 24px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-dark);
}

/* ============================================================
   ENDING
   ============================================================ */
.ending-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.ending-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.ending-text h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--navy);
}
.ending-text p { margin-bottom: 16px; line-height: 1.8; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section { background: var(--light-bg); }
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-error-banner {
  max-width: 640px;
  margin: 0 auto 24px;
  background: #fff0f0;
  border: 1px solid #f87171;
  border-radius: 8px;
  padding: 14px 20px;
  color: #b91c1c;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.required {
  background: var(--main);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.optional {
  background: #adb5bd;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
.is-error { border-color: #ef4444 !important; }
.error-msg {
  display: block;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 18px;
}
.form-submit { text-align: center; margin-top: 32px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.footer-logo { flex: 0 0 auto; }
.footer-info p { font-size: 0.88rem; margin-bottom: 4px; }
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}

/* ============================================================
   RESPONSIVE - 768px以下
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .fv-section { margin-top: var(--header-h); }

  .hamburger-btn { display: flex; }
  .pc-nav { display: none; }

  section:not(.cta-section):not(.slider-section):not(.fv-section) {
    padding: 56px 0;
  }

  /* FV */
  .fv-bg {
    aspect-ratio: auto;
    height: calc(100svh - var(--header-h));
    min-height: 400px;
  }
  .fv-content {
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-bottom: 48px;
  }
  .fv-title { font-size: clamp(1.1rem, 5.5vw, 1.6rem); }
  .fv-sub { font-size: clamp(0.75rem, 3.2vw, 0.95rem); }

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

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-img { order: -1; }
  .about-text { order: 1; }

  /* Jobs ジグザグ */
  .job-block,
  .job-block-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
  }
  .job-img { order: -1; }
  .job-text { order: 1; }

  /* Career */
  .career-grid { grid-template-columns: 1fr; }
  .career-card { display: grid; grid-template-columns: 1fr 1fr; }
  .career-img { order: -1; }
  .career-img img { aspect-ratio: auto; height: 100%; }

  /* Appeal */
  .appeal-grid { grid-template-columns: 1fr; }
  .appeal-card { display: grid; grid-template-columns: 1fr 1fr; }
  .appeal-img { order: -1; }
  .appeal-img img { aspect-ratio: auto; height: 100%; }

  /* Members */
  .members-grid { grid-template-columns: 1fr; }

  /* Requirements */
  .req-row { grid-template-columns: 1fr; }
  .req-row dt { border-right: none; border-bottom: 1px solid #e8f0f8; }

  /* Ending */
  .ending-inner { grid-template-columns: 1fr; gap: 32px; }
  .ending-img { order: -1; }
  .ending-text { order: 1; }

  /* Schedule */
  .schedule-card { padding: 24px 16px; }

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

  /* Footer */
  .footer-inner { flex-direction: column; gap: 16px; }

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

@media (max-width: 480px) {
  .career-card,
  .appeal-card { grid-template-columns: 1fr; }
  .fv-title { font-size: 1.3rem; }
}
