/**
 * フロントページ（top デザイン）セクション用スタイル
 * ヘッダー・フッターは既存テーマのものを使用
 *
 * @package Jobcon
 */

/* フロントページセクション表示時：メインをフル幅・上下余白なし（ヒーロー上・CTA下に隙間を出さない） */
.front-page-sections .site-content-wrap {
  padding-top: 0;
  padding-bottom: 0;
}

.front-page-sections .site-main {
  max-width: none;
  padding: 0;
}

/* CTAとフッターの間の隙間・ラインをなくす */
.front-page-sections .site-footer {
  border-top: none;
  margin-top: 0;
}

/* トップページ：ヘッダー背景を透明に（カスタマイザー「ヘッダー背景色を透明にする」ON時） */
/* ヒーローをヘッダー下に回り込ませて余白なしに（ヘッダー高さ分だけ上にずらす） */
body.fp-header-transparent .fp-sections {
  margin-top: -5.5rem;
}
body.fp-header-transparent .fp-hero {
  margin-top: 0;
}

body.fp-header-transparent .site-header {
  background-color: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  z-index: 100;
}
body.fp-header-transparent .site-header .site-header-sp-nav-btn {
  color: #fff;
}
body.fp-header-transparent .site-header .site-header-sp-nav-btn:hover,
body.fp-header-transparent .site-header .site-header-sp-nav-btn:focus {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.2);
}
body.fp-header-transparent .site-header .site-header-sp-nav-btn i {
  color: inherit;
}

body.fp-header-transparent .site-header .site-branding .site-title-link,
body.fp-header-transparent .site-header .site-branding a,
body.fp-header-transparent .site-header .main-navigation a {
  color: #fff;
}

body.fp-header-transparent .site-header .site-branding a:hover,
body.fp-header-transparent .site-header .main-navigation a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* お問い合わせボタン：透明ヘッダー時は白文字・白枠で見えるように */
body.fp-header-transparent .site-header .site-header-contact-btn {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

body.fp-header-transparent .site-header .site-header-contact-btn:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  color: #fff !important;
}

body.fp-header-transparent .site-header .site-header-contact-btn .jlp-icon,
body.fp-header-transparent .site-header .site-header-contact-btn [class*="ri-"] {
  color: #fff !important;
}

body.fp-header-transparent.fp-header-scrolled .site-header {
  background-color: var(--fp-header-solid-bg, #fff) !important;
  border-bottom-color: #e0e0e0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

body.fp-header-transparent.fp-header-scrolled .site-header .site-branding .site-title-link,
body.fp-header-transparent.fp-header-scrolled .site-header .site-branding a,
body.fp-header-transparent.fp-header-scrolled .site-header .main-navigation a {
  color: unset;
}

body.fp-header-transparent.fp-header-scrolled .site-header .site-branding a:hover,
body.fp-header-transparent.fp-header-scrolled .site-header .main-navigation a:hover {
  color: unset;
}

body.fp-header-transparent.fp-header-scrolled .site-header .site-header-contact-btn,
body.fp-header-transparent.fp-header-scrolled .site-header .site-header-contact-btn:hover {
  color: unset !important;
  background-color: #fbfbfb !important;
  border-color: #e0e0e0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

body.fp-header-transparent.fp-header-scrolled .site-header .site-header-contact-btn .jlp-icon,
body.fp-header-transparent.fp-header-scrolled .site-header .site-header-contact-btn [class*="ri-"] {
  color: inherit !important;
}
body.fp-header-transparent.fp-header-scrolled .site-header .site-header-sp-nav-btn {
  color: #333;
}
body.fp-header-transparent.fp-header-scrolled .site-header .site-header-sp-nav-btn:hover,
body.fp-header-transparent.fp-header-scrolled .site-header .site-header-sp-nav-btn:focus {
  color: var(--jobcon-primary, #0073aa);
  background: #f0f0f0;
}

/* ========== 共通：セクション・見出し・ライン ========== */
.fp-sections {
  padding: 0;
}

.fp-sections > *:first-child {
  margin-top: 0;
  padding-top: 0;
}

.fp-sections > *:last-child {
  margin-bottom: 0;
}

/* CTAは最後の子でも下パディングを維持（ボタンがフッターに付かないように） */
.fp-sections > .fp-cta:last-child {
  padding-bottom: 6rem;
}

.fp-section {
  padding: 4rem 1rem;
}

@media (min-width: 1024px) {
  .fp-section {
    padding: 6rem 1rem;
  }
}

/* このクラスを付けたセクション：横幅いっぱい＋パンくずと同じ背景色 */
.fp-section.fp-section--full-bg {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background: #f5f5f5;
}

.fp-section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.fp-section-head {
  text-align: center;
}

.fp-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jobcon-primary, #0073aa);
}

.fp-section-title {
  margin: 0.75rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #333;
}

@media (min-width: 640px) {
  .fp-section-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .fp-section-title {
    font-size: 2.25rem;
  }
}

.fp-line {
  width: 3rem;
  height: 4px;
  margin: 0.5rem auto 0;
  border-radius: 9999px;
  background-color: var(--jobcon-primary, #0073aa);
}

.fp-line-grow {
  transform: scaleX(0);
  transform-origin: left;
  animation: fp-line-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes fp-line-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* カードホバー */
.fp-card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fp-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
}

/* Stagger アニメーション用（JS で .is-visible を付与すると表示アニメ。未使用でも表示される） */
.fp-stagger .fp-stagger-item {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fp-stagger .fp-stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ここで働く魅力・社員の声：表示時アニメーション用の初期状態 */
.fp-benefits-grid .fp-stagger-item,
.fp-testimonials-grid .fp-stagger-item {
  opacity: 0;
  transform: translateY(1.5rem);
}
.fp-benefits-grid .fp-stagger-item.is-visible,
.fp-testimonials-grid .fp-stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* スタッガー遅延（n番目で順に表示） */
.fp-benefits-grid .fp-stagger-item { transition-delay: calc(0.05s * var(--stagger-i, 0)); }
.fp-testimonials-grid .fp-stagger-item { transition-delay: calc(0.08s * var(--stagger-i, 0)); }

/* ここで働く魅力・社員の声：クリッカブルにしない（ホバー効果なし） */
.fp-benefits-card.fp-card-hover,
.fp-testimonials-card.fp-card-hover {
  cursor: default;
}
.fp-benefits-card.fp-card-hover:hover,
.fp-testimonials-card.fp-card-hover:hover {
  transform: none;
  /* ホバー時もデフォルトと同じ見た目を維持（枠線のぼかしを消さない） */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ========== Hero（横幅貫通・ヘッダー下にメインビジュアルが入り込む想定） ========== */
.fp-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  background-color: #333;
  background-image: var(--fp-hero-bg, none);
  background-size: cover;
  background-position: center;
  margin-top: 0;
  padding-top: 0;
  /* モニタ幅いっぱいに表示 */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  /* ヘッダー上にメインビジュアルが回り込む（後からヘッダー透過対応可能） */
  margin-top: -5rem;
}

@media (min-width: 1024px) {
  .fp-hero {
    min-height: 720px;
  }
}

/* メインビジュアル（img または CSS変数 --fp-hero-bg の背景の下層） */
.fp-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fp-hero-visual img,
.fp-hero-visual .fp-hero-img,
.fp-hero-visual .fp-hero-fallback-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fp-hero-visual .fp-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fp-hero-visual .fp-hero-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #333;
}

/* スライダー時：複数スライドを重ねて表示・切り替え */
.fp-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fp-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.fp-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.fp-hero-slide .fp-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fp-hero-slide .fp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(var(--fp-hero-overlay-rgb, 0, 0, 0), var(--fp-hero-overlay-opacity, 0.6));
}

.fp-hero-slide .fp-hero-inner {
  position: relative;
  z-index: 2;
}

.fp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(var(--fp-hero-overlay-rgb, 0, 0, 0), var(--fp-hero-overlay-opacity, 0.6));
}

.fp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 56rem;
  margin: 0 auto;
  padding: 6rem 1rem;
  text-align: center;
}

.fp-hero-label {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.fp-hero-title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

@media (min-width: 640px) {
  .fp-hero-title { font-size: 2.25rem; }
}

@media (min-width: 768px) {
  .fp-hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .fp-hero-title { font-size: 3.75rem; }
}

.fp-hero-lead {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
  .fp-hero-lead { font-size: 1.125rem; }
}

.fp-hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.fp-hero-buttons--single {
  justify-content: center;
}

.fp-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.fp-hero-btn-primary {
  background-color: var(--jobcon-primary, #0073aa);
  color: #fff;
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, filter 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.fp-hero-btn-primary:hover {
  opacity: 1;
  filter: brightness(1.08);
}

.fp-hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.fp-hero-btn-outline:hover {
  opacity: 1;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.fp-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.fp-hero-scroll-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.fp-hero-scroll-line {
  position: relative;
  width: 2px;
  height: 2rem;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
}

.fp-hero-scroll-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  animation: fp-bounce 2s ease-in-out infinite;
}

@keyframes fp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.5rem); }
}

/* ========== Vision（ボディ背景色に合わせる） ========== */
.fp-vision {
  background: #fbfbfb;
}

.fp-vision-inner {
  max-width: 56rem;
  text-align: center;
}

.fp-vision-text {
  margin: 2rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

@media (min-width: 640px) {
  .fp-vision-text { font-size: 1.125rem; }
}

.fp-vision-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .fp-vision-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fp-vision-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fp-vision-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--jobcon-primary, #0073aa);
}

@media (min-width: 1024px) {
  .fp-vision-number { font-size: 2.25rem; }
}

.fp-vision-item-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #333;
}

.fp-number-pop {
  opacity: 0;
  animation: fp-number-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fp-number-pop {
  0% { opacity: 0; transform: scale(0.5) translateY(20px); }
  60% { transform: scale(1.15) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ========== Photo Marquee（同じ並びを4セット → -25% でループ・モニタ幅でも途切れない） ========== */
.fp-marquee {
  padding: 3rem 0;
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

.fp-marquee-track {
  overflow: hidden;
  padding: 2rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.fp-marquee-track-2 {
  display: none;
}

/* 4セット分の幅の 1/4 ずつずらしてループ（常に画像が視野に入る） */
.fp-marquee-inner {
  display: flex;
  width: max-content;
}

.fp-marquee-scroll-left {
  animation: fp-marquee-left 50s linear infinite;
}

.fp-marquee-scroll-right {
  animation: fp-marquee-right 50s linear infinite;
}

@keyframes fp-marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

@keyframes fp-marquee-right {
  0% { transform: translateX(-25%); }
  100% { transform: translateX(0); }
}

.fp-marquee-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-shrink: 0;
  padding: 0 0.5rem;
}

.fp-marquee-item {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  width: 350px;
  height: 350px;
}

/* 奇数・偶数で位置をずらしてちぐはぐに（1枚のみのときはオフ） */
.fp-marquee-group .fp-marquee-item:nth-child(odd) {
  margin-top: 0;
}
.fp-marquee-group .fp-marquee-item:nth-child(even) {
  margin-top: 4rem;
}
.fp-marquee-single .fp-marquee-item {
  margin-top: 0;
}

.fp-marquee-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-marquee-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #e5e7eb;
}

@media (prefers-reduced-motion: reduce) {
  .fp-marquee-scroll-left,
  .fp-marquee-scroll-right {
    animation: none;
  }
}

/* ========== Environment（ボディ背景色） ========== */
.fp-environment {
  background: #fbfbfb;
}

.fp-environment-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 72rem;
}

@media (min-width: 1024px) {
  .fp-environment-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
}

.fp-environment-media {
  width: 100%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
}

@media (min-width: 1024px) {
  .fp-environment-media {
    width: 50%;
  }
}

.fp-environment-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 1rem;
}

.fp-environment-placeholder {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  border-radius: 1rem;
}

.fp-environment-content {
  width: 100%;
}

@media (min-width: 1024px) {
  .fp-environment-content {
    width: 50%;
  }
}

.fp-environment .fp-section-label,
.fp-environment .fp-section-title {
  text-align: left;
}

.fp-environment .fp-line {
  margin-left: 0;
}

.fp-environment-text {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

.fp-environment-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.fp-environment-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #333;
}

.fp-environment-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--jobcon-primary, #0073aa);
  color: #fff;
  font-size: 0.75rem;
}

.fp-animate-slide-left.is-visible {
  animation: fp-slide-left 0.8s ease forwards;
}

.fp-animate-slide-right.is-visible {
  animation: fp-slide-right 0.8s ease forwards;
}

@keyframes fp-slide-left {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fp-slide-right {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ========== Benefits（ボディ背景色） ========== */
.fp-benefits {
  background: #fbfbfb;
}

.fp-benefits-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .fp-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fp-benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fp-benefits-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fbfbfb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
}

.fp-benefits-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(var(--jobcon-primary-rgb, 0, 115, 170), 0.1);
}

.fp-benefits-icon i {
  font-size: 1.75rem;
  color: var(--jobcon-primary, #0073aa);
}

.fp-benefits-card-title {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}

.fp-benefits-card-desc {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #666;
}

/* ========== Testimonials（ボディ背景色） ========== */
.fp-testimonials {
  background: #fbfbfb;
}

.fp-testimonials-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .fp-testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fp-testimonials-card {
  position: relative;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fbfbfb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fp-testimonials-quote {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  color: rgba(var(--jobcon-primary-rgb, 0, 115, 170), 0.15);
}

.fp-testimonials-comment {
  position: relative;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #666;
}

.fp-testimonials-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 円形クリップ用ラッパー（PHPテンプレートで使用） */
.fp-testimonials-avatar-wrap {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
}

.fp-testimonials-avatar-wrap .fp-testimonials-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* HTMLブロックなどで .fp-testimonials-meta > img の場合はこちらで円形表示 */
.fp-testimonials-meta > img.fp-testimonials-avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fp-testimonials-avatar-placeholder {
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #e5e7eb;
}

.fp-testimonials-name {
  display: block;
  font-weight: 600;
  color: #333;
}

.fp-testimonials-role {
  font-size: 0.8125rem;
  color: #666;
}

/* ========== インタビュー（ショートコード [jobcon_fp_voices]。1〜3件は3列グリッド、4件以上はスライドショー） ========== */
.fp-voices {
  background: #fbfbfb;
}

.fp-voices-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* 1枚：352px で中央寄せ */
.fp-voices-grid--count-1 {
  max-width: 352px;
  margin-left: auto;
  margin-right: auto;
}

/* 2枚：各352px で中央寄せ（スマホでは縦並び） */
.fp-voices-grid--count-2 {
  max-width: 352px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .fp-voices-grid--count-2 {
    grid-template-columns: repeat(2, 352px);
    gap: 1rem;
    max-width: 720px;
  }
  .fp-voices-grid:not(.fp-voices-grid--count-1):not(.fp-voices-grid--count-2) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4件以上：スライドショー（＜ ＞で前後移動・ボタンはコンテンツからはみ出して一部のみ被る） */
.fp-voices-slideshow {
  margin-top: 3.5rem;
  position: relative;
}

.fp-voices-prev,
.fp-voices-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* セクション端からはみ出し、一部だけカードに被る（.fp-section-inner の幅はそのまま） */
.fp-voices-prev {
  left: 0;
  margin-left: -1.25rem;
}

.fp-voices-next {
  right: 0;
  margin-right: -1.25rem;
}

.fp-voices-prev:hover:not(:disabled),
.fp-voices-next:hover:not(:disabled) {
  background: var(--jobcon-primary, #0073aa);
  border-color: var(--jobcon-primary, #0073aa);
  color: #fff;
}

.fp-voices-prev:disabled,
.fp-voices-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fp-voices-prev .ri-arrow-left-s-line,
.fp-voices-next .ri-arrow-right-s-line {
  font-size: 1.25rem;
  display: block;
}

/* 3枚並んだ状態でコンテンツ幅いっぱい */
.fp-voices-slideshow-inner {
  width: 100%;
  overflow: hidden;
}

.fp-voices-slideshow-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
  width: max-content;
}

.fp-voices-slide {
  flex: 0 0 352px;
  min-width: 0;
  box-sizing: border-box;
}

.fp-voices-card {
  position: relative;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.fp-voices-card.fp-card-hover {
  cursor: default;
}
.fp-voices-card.fp-card-hover:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fp-voices-message {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #666;
}

.fp-voices-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fp-voices-avatar-wrap {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
}

.fp-voices-avatar-wrap .fp-voices-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fp-voices-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(var(--jobcon-primary-rgb, 0, 115, 170), 0.12);
  flex-shrink: 0;
}

.fp-voices-avatar-placeholder .jlp-icon,
.fp-voices-avatar-placeholder svg {
  color: var(--jobcon-primary, #0073aa);
  font-size: 1.5rem;
}

.fp-voices-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fp-voices-name {
  font-weight: 600;
  color: #333;
}

.fp-voices-role {
  font-size: 0.8125rem;
  color: #666;
}

/* ========== FAQ（1項目ずつ独立・パンくずと同じ背景色 #f5f5f5） ========== */
.fp-faq {
  background: #fbfbfb;
}

.fp-faq-inner {
  max-width: 72rem;
}

.fp-faq-list {
  margin: 3rem 0 0;
  padding: 0;
}

.fp-faq-item {
  margin: 0 0 0.75rem;
  background: #f5f5f5;
  border-radius: 0.5rem;
  overflow: hidden;
}

.fp-faq-item[open] {
  background: transparent;
}

.fp-faq-item:last-child {
  margin-bottom: 0;
}

/* アコーディオン（details.fp-faq-item / summary / .fp-faq-a） */
.fp-faq-item summary {
  margin: 0;
  padding: 1rem 2.5rem 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333;
  list-style: none;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
  background: #f5f5f5;
}

.fp-faq-item summary:hover {
  color: var(--jobcon-primary, #0073aa);
  background: #eeeeee;
}

.fp-faq-item[open] summary {
  background: #f5f5f5;
  border-radius: 0.5rem;
}

.fp-faq-item summary::-webkit-details-marker {
  display: none;
}

.fp-faq-item summary::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.3s ease;
}

.fp-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

/* 閉じているときは回答を非表示（アコーディオン） */
.fp-faq-item:not([open]) .fp-faq-a {
  display: none;
}

.fp-faq-item .fp-faq-a {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #666;
  background: transparent;
}

.fp-faq-item[open] .fp-faq-a {
  display: block;
}

/* ========== News（ボディ背景色） ========== */
.fp-news {
  background: #fbfbfb;
}

.fp-news-inner {
  max-width: 72rem;
}

.fp-news-list {
  margin-top: 3rem;
  border-radius: 1rem;
  background: #fbfbfb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.fp-news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.3s ease;
}

.fp-news-item:last-child {
  border-bottom: none;
}

.fp-news-item:hover {
  background: rgba(var(--jobcon-primary-rgb, 0, 115, 170), 0.05);
}

.fp-news-date {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.fp-news-cat {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.625rem;
  color: var(--jobcon-primary, #0073aa);
  background: rgba(var(--jobcon-primary-rgb, 0, 115, 170), 0.12);
  border-radius: 9999px;
}

.fp-news-item-title {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.fp-news-item a:hover {
  opacity: 1;
}

.fp-news-item:hover .fp-news-item-title {
  color: var(--jobcon-primary, #0073aa);
}

/* 求人「すべての求人を見る」(.jlp-related-link) と同じ余白 */
.fp-news-more {
  margin: 3rem 0 0;
  padding-bottom: 0.5rem;
  text-align: center;
}

.fp-news-more a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jobcon-primary, #0073aa);
}

/* ショートコード用：見出し下の余白を他セクション(.fp-faq-list 等)に合わせる */
.front-page-sections .news-archive-list-wrap {
  margin-top: 3rem;
}
.front-page-sections .news-archive-list-wrap.news-archive-list-wrap--no-pager .news-archive-list {
  margin-bottom: 0;
}
.front-page-sections .news-archive-list-wrap.news-archive-list-wrap--no-pager {
  padding-bottom: 0;
}

.fp-news-empty {
  margin-top: 3rem;
  text-align: center;
  color: #666;
}

/* ========== Jobs（ボディ背景色） ========== */
.fp-jobs {
  background: #fbfbfb;
}

.fp-jobs-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .fp-jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fp-jobs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fp-jobs-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #fbfbfb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.fp-jobs-card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.fp-jobs-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.fp-jobs-card:hover .fp-jobs-card-img {
  transform: scale(1.05);
}

.fp-jobs-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #e5e7eb;
}

.fp-jobs-card-body {
  padding: 1rem 1.25rem;
}

.fp-jobs-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  transition: color 0.3s ease;
}

.fp-jobs-card a:hover {
  opacity: 1;
}

.fp-jobs-card:hover .fp-jobs-card-title {
  color: var(--jobcon-primary, #0073aa);
}

.fp-jobs-card-meta {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: #666;
}

.fp-jobs-more {
  margin-top: 2rem;
  text-align: center;
}

/* 募集中の求人：見出し下の余白を他セクションに合わせる */
.front-page-sections .jlp-related-grid {
  margin-top: 3rem;
}
/* 「すべての求人を見る」の上余白を 3rem に統一 */
.front-page-sections .jlp-related-link {
  margin: 3rem 0 0;
}
/* 募集中の求人「すべての求人を見る」＝キーカラーで表示（single-job-listing.css より優先） */
.front-page-sections .jlp-related-link a,
.front-page-sections .fp-jobs .fp-jobs-more a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jobcon-primary, #0073aa) !important;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.front-page-sections .jlp-related-link a:hover,
.front-page-sections .fp-jobs .fp-jobs-more a:hover {
  text-decoration: none;
  opacity: 0.65;
}

.fp-jobs-empty {
  margin-top: 3rem;
  text-align: center;
  color: #666;
}

/* ========== CTA（横幅貫通・フル幅） ========== */
.fp-cta {
  position: relative;
  overflow: hidden;
  padding: 6rem 1rem 6rem;
  background: var(--jobcon-primary, #0073aa);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.fp-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.fp-cta-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

@media (min-width: 640px) {
  .fp-cta-title { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  .fp-cta-title { font-size: 2.25rem; }
}

.fp-cta-lead {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.fp-cta-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.fp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.fp-cta-btn-primary {
  background: #fff;
  color: var(--jobcon-primary, #0073aa);
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, filter 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.fp-cta-btn-primary:hover {
  opacity: 1;
  filter: brightness(1.05);
  background: rgba(255, 255, 255, 0.95);
}

.fp-cta-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.fp-cta-btn-outline:hover {
  opacity: 1;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
