/*
Theme Name: JSTAFF
Theme URI: https://jstaff.co.jp
Author: ForceWith
Author URI: https://forcewith.me
Description: ジェイスタッフ株式会社コーポレートサイト
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jstaff
*/

/* ========================================
   JSTAFF Corporate Styles
   ======================================== */

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

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.8;
  font-weight: 400;
  overflow-wrap: break-word;
  word-break: auto-phrase;
}

/* --- English subtitle font --- */
.section-subtitle,
.service-steps li::before {
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: 0.1em;
}

a { color: #1E1B4B; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.header {
  --header-height: 73px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid transparent;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.header.scrolled {
  --header-height: 61px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
  border-bottom-color: transparent;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-logo {
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 32px;
  width: auto;
}
.header-nav { display: flex; gap: 28px; align-items: center; }
.header-nav a {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.header-nav a:hover { color: #1E1B4B; }
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-tel {
  font-size: 12px;
  color: #555;
  text-align: right;
  line-height: 1.4;
}
.header-tel a {
  font-family: "Josefin Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1E1B4B;
  letter-spacing: 0.02em;
}
.header-tel a:hover { text-decoration: none; }
.header-tel .tel-hours {
  font-size: 11px;
  color: #718096;
}
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #6366F1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.header-cta-btn:hover {
  background: #818CF8;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #333;
}

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0 20px 16px;
  position: fixed;
  top: var(--header-height, 73px);
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.mobile-nav.open { display: block; }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 98;
}
.mobile-overlay.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #edf2f7;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: #1E1B4B; text-decoration: none; }

/* --- Footer --- */
.footer {
  background: #1E1B4B;
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 80px;
}
.cta + .floating-cta + .footer,
.cta + .footer {
  margin-top: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-logo {
  margin-bottom: 8px;
}
.footer-logo img {
  height: 28px;
  width: auto;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: #e2e8f0; font-size: 13px; }
.footer-license {
  text-align: center;
  font-size: 11px;
  color: #a0aec0;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #a0aec0;
  margin-top: 8px;
}

/* --- Hero / FV Slider --- */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}
.hero-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-size: cover;
  background-position: center 20%;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}
.hero-content h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-cursor {
  animation: blink 0.6s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero-cursor.done { display: none; }
.hero-fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-fade.show {
  opacity: 1;
  transform: translateY(0);
}
.hero-content p {
  font-size: 16px;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 75, 0.55);
  z-index: 1;
}
.hero-swiper {
  position: absolute;
  inset: 0;
}
.hero-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}
.hero-pagination .swiper-pagination-bullet {
  width: 12px; height: 12px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
}
.hero-pagination .swiper-pagination-bullet-active { background: #fff; }

/* --- Hero CTA Group --- */
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline-white {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-outline-white:hover {
  background: #fff;
  color: #1E1B4B;
}

/* --- Floating CTA (mobile) --- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  padding: 10px 16px;
}
.floating-cta-inner {
  display: flex;
  gap: 8px;
}
.floating-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
}
.floating-cta a:hover {
  text-decoration: none;
}
.floating-cta .floating-tel {
  background: #1E1B4B;
  color: #fff;
}
.floating-cta .floating-contact {
  background: #6366F1;
  color: #fff;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.btn:hover { text-decoration: none; }
.btn .btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary {
  background: #6366F1;
  color: #fff;
}
.btn-primary:hover {
  background: #818CF8;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.btn-outline {
  border: 2px solid #1E1B4B;
  color: #1E1B4B;
  background: transparent;
}
.btn-outline:hover {
  background: #1E1B4B;
  color: #fff;
}
.btn-lg {
  padding: 18px 48px;
  font-size: 16px;
}
.btn-sm {
  padding: 10px 24px;
  font-size: 13px;
}
button.btn {
  border: none;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #1E1B4B;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 56px;
  text-transform: uppercase;
}
.section-bg { background: #f7fafc; }
.section-bg-blue { background: #edf2f7; }

/* --- Section Divider (wave) --- */
.section-wave {
  position: relative;
}
.section-wave::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: inherit;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.section-wave + .section-wave::before {
  display: none;
}

/* --- Cards (2 column) --- */
.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.card-img { height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.card-img-bright img { filter: brightness(1.15) saturate(1.05); }
.card-body { padding: 24px; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; color: #1E1B4B; }
.card-body p { font-size: 14px; color: #555; margin-bottom: 16px; text-align: left; }
.card-body .btn { display: flex; justify-content: center; }

/* --- Cards (3 column) --- */
.cards-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
}
.strength-card {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.strength-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
}
.strength-icon svg { width: 100%; height: 100%; }
.strength-card h3 { font-size: 16px; margin-bottom: 8px; color: #1E1B4B; }
.strength-card p { font-size: 13px; color: #666; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px 24px;
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1E1B4B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-meta {
  font-size: 13px;
  color: #718096;
}
.testimonial-meta .testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.testimonial-body {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* --- Numbers / Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item {
  padding: 24px 16px;
}
.stat-number {
  font-family: "Josefin Sans", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #1E1B4B;
  line-height: 1.2;
}
.stat-number .stat-unit {
  font-size: 18px;
  font-weight: 500;
  margin-left: 2px;
}
.stat-label {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
}

/* --- News List --- */
.news-list { list-style: none; }
.news-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
  align-items: baseline;
}
.news-date { font-size: 13px; color: #718096; min-width: 100px; }
.news-title { font-size: 15px; }
.news-more {
  text-align: center;
  margin-top: 32px;
}

/* --- CTA Banner --- */
.cta {
  background: #1E1B4B;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta h2 { font-size: 24px; margin-bottom: 12px; }
.cta p { font-size: 14px; margin-bottom: 24px; color: #e2e8f0; }

/* --- Page Header --- */
.page-header {
  background: #1E1B4B;
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-header h1 { font-size: 28px; font-weight: bold; }

/* --- Service Section (2-axis) --- */
.service-block {
  padding: 48px 0;
  border-bottom: 1px solid #e2e8f0;
}
.service-block:last-child { border-bottom: none; }
.service-block h2 {
  font-size: 22px;
  color: #1E1B4B;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid #6366F1;
}
.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.service-text h3 { font-size: 16px; margin-bottom: 8px; color: #333; }
.service-text p { font-size: 14px; color: #555; margin-bottom: 12px; }
.service-img { border-radius: 8px; overflow: hidden; }
.service-img img { width: 100%; height: 280px; object-fit: cover; display: block; }
.service-img-jobseeker { object-position: center 73%; }
.service-steps {
  counter-reset: step;
  list-style: none;
}
.service-steps li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid #edf2f7;
}
.service-steps li::before {
  content: "STEP " counter(step);
  flex-shrink: 0;
  font-size: 11px;
  font-weight: bold;
  color: #6366F1;
}

/* --- Step Flow --- */
.step-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step-flow-item {
  flex: 1;
  text-align: center;
  max-width: 160px;
}
.step-flow-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
}
.step-flow-icon {
  width: 56px;
  height: 56px;
  background: #f7fafc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E1B4B;
}
.step-flow-icon svg {
  width: 32px;
  height: 32px;
}
.step-flow-num {
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #6366F1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -4px;
  bottom: -4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.step-flow-label {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  font-weight: 500;
}
.step-flow-arrow {
  flex-shrink: 0;
  width: 24px;
  color: #cbd5e0;
  margin-top: 16px;
}
.step-flow-arrow svg {
  width: 100%;
  height: auto;
}

/* --- Company Table --- */
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  text-align: left;
}
.company-table th {
  width: 160px;
  background: #f7fafc;
  color: #1E1B4B;
  font-weight: 600;
}

/* --- Map --- */
.map-area { margin-top: 48px; border-radius: 8px; overflow: hidden; }
.map-area iframe { display: block; }

/* --- Contact Form --- */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.form-group .required {
  font-size: 11px;
  color: #fff;
  background: #e53e3e;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
}
.form-group .optional {
  font-size: 11px;
  color: #718096;
  background: #edf2f7;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}
.form-group textarea { height: 160px; resize: vertical; }
.form-radio label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  font-weight: normal;
  cursor: pointer;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.form-layout {
  max-width: 640px;
  margin: 0 auto;
}

/* --- CF7 compatibility --- */
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}
.wpcf7 textarea { height: 160px; resize: vertical; }
.wpcf7-acceptance label { font-weight: normal; }
.wpcf7-response-output {
  margin-top: 16px;
  padding: 12px;
  font-size: 14px;
}
.wpcf7 .wpcf7-radio .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
}

/* --- Privacy Policy --- */
.privacy-content h2 {
  font-size: 18px;
  color: #1E1B4B;
  margin: 32px 0 12px;
}
.privacy-content p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #444;
}

/* --- News Detail --- */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.article-date { font-size: 13px; color: #718096; margin-bottom: 8px; }
.article-title { font-size: 24px; color: #1E1B4B; }
.article-body p { font-size: 15px; margin-bottom: 16px; }
.article-back { margin-top: 48px; text-align: center; }

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 12px;
  color: #718096;
  padding: 12px 0;
}
.breadcrumb a { color: #718096; }
.breadcrumb span { margin: 0 8px; }

/* --- WordPress Pagination --- */
.pagination {
  text-align: center;
  margin-top: 32px;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
}
.pagination .page-numbers.current {
  background: #6366F1;
  color: #fff;
  border-color: #6366F1;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-tel { display: none; }
  .header-cta-btn { display: none; }
  .hamburger { display: flex; }
  .hero { height: 420px; }
  .hero-content { width: 90%; padding: 0 16px; }
  .hero-content h1 { font-size: 22px; }
  .hero-content p { font-size: 13px; margin-bottom: 16px; }
  .hero-cta-group .btn-lg { padding: 12px 28px; font-size: 14px; white-space: nowrap; width: 80%; justify-content: center; }
  .step-flow { flex-wrap: wrap; justify-content: center; gap: 16px 0; }
  .step-flow-item { flex: 0 0 30%; max-width: none; }
  .step-flow-arrow { width: 16px; margin-top: 20px; }
  .cards-2, .cards-3, .service-content {
    grid-template-columns: 1fr;
  }
  .company-table th { width: 120px; }
  .footer-inner { flex-direction: column; }
  .section { padding: 64px 0; }
  .page-header { padding: 32px 0; }
  .page-header h1 { font-size: 22px; }
  .news-item { flex-direction: column; gap: 4px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 36px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .floating-cta { display: block; }
  .footer { padding-bottom: 80px; }
  .footer-copyright { font-size: 11px; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .hero-slide-2 { background-position: 45% 20% !important; }
  .hero-slide-3 { background-position: 25% 20% !important; }
  .service-img-jobseeker { object-position: center 80% !important; }
  .breadcrumb { overflow-x: auto; white-space: nowrap; }
  .form-radio label { display: flex; margin-right: 0; margin-bottom: 8px; }
  .cta h2 { font-size: 20px; }
  .cta .btn-lg { padding: 14px 32px; font-size: 14px; white-space: nowrap; }
  .wpcf7 .wpcf7-radio .wpcf7-list-item { display: flex; margin-right: 0; margin-bottom: 8px; }
}
