/* ========================================
   採用情報　設定
======================================== */

.stylish-hero-bg {
  position: relative;
  overflow: hidden;
}

.circle-bg-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.circle-bg-images .circle-img {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.7;
  border: 1px solid #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  animation: float 20s ease-in-out infinite;
}

/* 各丸のサイズと位置をランダムに */

.img1 {
  width: 400px;
  height: 400px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.img2 {
  width: 500px;
  height: 500px;
  top: 30%;
  left: 60%;
  animation-delay: 3s;
}

.img3 {
  width: 350px;
  height: 350px;
  top: 60%;
  left: 30%;
  animation-delay: 6s;
}

@media (max-width: 1200px) {
  .img1 {
    width: 300px;
    height: 300px;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
  }

  .img2 {
    width: 350px;
    height: 350px;
    top: 30%;
    left: 60%;
    animation-delay: 3s;
  }

  .img3 {
    width: 250px;
    height: 250px;
    top: 60%;
    left: 30%;
    animation-delay: 6s;
  }
}

/* ゆらゆら動くアニメーション */
@keyframes float {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

@media (max-width: 768px) {
  .img1 {
    width: 150px;
    height: 150px;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
  }

  .img2 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 60%;
    animation-delay: 3s;
  }

  .img3 {
    width: 140px;
    height: 140px;
    top: 45%;
    left: 5%;
    animation-delay: 6s;
  }
}

.recruit-hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.recruit-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  filter: brightness(0.4);
}

.recruit-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: -1;
}

.recruit-hero-content {
  max-width: 900px;
  z-index: 1;
  padding: 80px 20px 0;
}

.recruit-hero-title {
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
  text-shadow:
    -1px -1px 0 #ff0000,
    1px -1px 0 #ffb9b9,
    -1px 1px 0 #333,
    1px 1px 0 #333;
}

.recruit-hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #383838;

}

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

@media (max-width: 768px) {

  .recruit-hero-title {
    font-size: 3.0rem;
    font-weight: 550;

  }

  .recruit-hero-subtitle {
    font-size: 1.0rem;
  }

}

.primary-button,
.secondary-button {
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-button {
  background-color: var(--primary-color);
  color: white;
}

.primary-button:hover {
  background-color: #ffffff;
}

.secondary-button {
  background-color: transparent;
  border: 1px solid #c41c1c;
  color: #c41c1c;
}

.secondary-button:hover {
  background-color: #c41c1c;
  color: var(--primary-color);
}

.recruit-message-section {
  padding: 100px 0;
}

.recruit-message-section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.message-block {
  margin-bottom: 60px;
}

.message-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  position: relative;
}

.message-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

.message-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #555;
}

.consultant-intro-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.consultant-intro-text p {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.consultant-intro-text p {
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: 1.4rem;
  line-height: 2;
  color: #333;
  margin: 0 0 1em;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease;
  text-decoration: none;
}

.consultant-intro-text p.animate {
  opacity: 1;
  transform: translateY(0);
}


.consultant-intro-text p:nth-child(1) {
  transition-delay: 1s;
}

.consultant-intro-text p:nth-child(2) {
  transition-delay: 1.2s;
}

@media (max-width: 768px) {

  .consultant-intro-text p {
    font-size: 1.2rem;
  }

}

/* 社員紹介セクション */
.member-card-block {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  text-align: left;
}

.member-card-block.reverse {
  flex-direction: row-reverse;
}

.member-image {
  flex: 0 0 45%;
  max-width: 400px;
}

.member-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.member-info {
  flex: 0 0 45%;
  max-width: 500px;
  padding: 0 10px;
}

.member-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.member-position {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.member-quote {
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
}

.team-link {
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: underline;
}


.section-header-special {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-tagline {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
}

.section-tagline::before,
.section-tagline::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background-color: var(--primary-color);
}

.section-tagline::before {
  right: -40px;
}

.section-tagline::after {
  left: -40px;
}

.section-title-large {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(to right, #333, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  display: inline-block;
}

.section-description {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}



.team-slide {
  min-width: 100%;
  display: flex;
  transition: transform 0.5s ease;
}

.team-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
  flex: 1;
  margin: 0 15px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.team-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: rgba(224, 32, 32, 0.1);
  z-index: -1;
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background-color: rgba(224, 32, 32, 0.1);
  z-index: -1;
}

.team-card-inner {
  display: flex;
  height: 100%;
}

.team-image {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-content {
  flex: 1;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.team-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 1rem;
  position: relative;
  padding-bottom: 15px;
}

.team-position::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.team-quote {
  color: #666;
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--primary-color);
  line-height: 1.8;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--primary-color);
  padding: 8px 0;
  position: relative;
  overflow: hidden;
}

.team-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.team-link:hover::after {
  transform: translateX(0);
}

/* 働く環境セクション */
.work-environment {
  padding: 0;
}

.environment-header {
  text-align: center;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.environment-header::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(224, 32, 32, 0.05) 0%, rgba(224, 32, 32, 0.1) 100%);
  z-index: 0;
}

.environment-tagline {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  position: relative;
  padding: 0 20px;
}

.environment-tagline::before,
.environment-tagline::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background-color: var(--primary-color);
}

.environment-tagline::before {
  left: -30px;
}

.environment-tagline::after {
  right: -30px;
}

.environment-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  background: linear-gradient(to right, #333, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  line-height: 1.2;
}

.environment-description {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* ギャラリースライダー */
.custom-gallery {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.custom-gallery-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.custom-gallery-slide {
  display: none;
  width: 100%;
  animation: fadeIn 0.6s ease;
  position: relative;
  height: 400px;
  overflow: hidden;
}

.custom-gallery-slide.active {
  display: block;
}

.custom-gallery-slide img {
  width: 100%;
  max-width: 800px;
  height: 100%;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.custom-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.custom-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.custom-gallery-nav:hover {
  background: rgba(255, 255, 255, 0.9);
}

.custom-gallery-nav.prev {
  left: 15px;
}

.custom-gallery-nav.next {
  right: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .custom-caption {
    font-size: 0.9rem;
    padding: 15px;
  }

  .custom-gallery-nav {
    font-size: 1.5rem;
    padding: 8px 12px;
  }
}

/* 働く環境のブロック */
.environment-block {
  display: flex;
  align-items: center;
  min-height: 600px;
}


.environment-block-inner {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 50px;
}

.environment-block:nth-child(even) .environment-block-inner {
  flex-direction: row-reverse;
}

.environment-block-content {
  flex: 1;
  padding: 0 50px;
}

.environment-block-image {
  flex: 1;
  position: relative;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.environment-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.environment-block:hover .environment-block-image img {
  transform: scale(1.05);
}

.environment-block-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background-color: rgba(224, 32, 32, 0.1);
  z-index: -1;
}

.environment-block-image::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  border-radius: 20px;
  background-color: rgba(224, 32, 32, 0.1);
  z-index: -1;
}

.environment-block-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.environment-block-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.environment-block-text {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.environment-block-features {
  margin-top: 30px;
}

.environment-block-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.environment-block-feature-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(224, 32, 32, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.environment-block-feature-text {
  flex: 1;
}

.environment-block-feature-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.environment-block-feature-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {

  .environment-title {
    font-size: 1.8rem;
  }

  .environment-description {
    font-size: 1.0rem;
  }

  .environment-block-title {
    font-size: 1.8rem;
  }

  .environment-block-text {
    font-size: 1.0rem;
  }

}


/* 募集職種セクション */
.job-positions-section {
  padding: 100px 0;
}

.job-positions-header {
  text-align: center;
  margin-bottom: 60px;
}

.job-positions-tagline {
  display: inline-block;
  color: #e02020;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding: 0 15px;
  margin-bottom: 15px;
}

.job-positions-tagline:before,
.job-positions-tagline:after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background-color: #e02020;
}

.job-positions-tagline:before {
  left: -35px;
}

.job-positions-tagline:after {
  right: -35px;
}

.job-positions-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 15px 0;
  color: #333;
}

.job-positions-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.job-positions-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.job-card {
  flex: 1;
  max-width: 500px;
  background-color: var(--light-color);
  border-radius: 15px;
  border : 1px solid var(--box-gray-color);;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.job-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.job-card-title {
  color: #e02020;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(224, 32, 32, 0.1);
}

.job-card-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  font-weight: 500;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.job-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #333;
}

.job-item:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #e02020;
  font-weight: bold;
}

.job-detail-button {
  display: inline-block;
  background-color: #e02020;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.job-detail-button:hover {
  background-color: #c41c1c;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(224, 32, 32, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .job-positions-container {
    flex-direction: column;
    align-items: center;
  }

  .job-positions-description {
    font-size: 1.0rem;
  }

  .job-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .job-positions-title {
    font-size: 1.8rem;
    font-weight: 550;
  }

  .job-card-subtitle {
    font-size: 1.0rem;
  }

}

/* 応募プロセスセクション */
.apply-process {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.apply-process::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(224, 32, 32, 0.05);
  z-index: 0;
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process-tagline {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  position: relative;
  padding: 0 20px;
}

.process-tagline::before,
.process-tagline::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background-color: var(--primary-color);
}

.process-tagline::before {
  left: -30px;
}

.process-tagline::after {
  right: -30px;
}

.process-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  background: linear-gradient(to right, #333, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  line-height: 1.2;
}

.process-description {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

.process-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 50px 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: rgba(224, 32, 32, 0.2);
  z-index: 1;
}

.process-step {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step-number {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.8rem;
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(224, 32, 32, 0.3);
}

.process-step-content {
  position: absolute;
  width: 45%;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: #f7f7f7
}

.process-step:nth-child(odd) .process-step-content {
  right: 55%;
}

.process-step:nth-child(even) .process-step-content {
  left: 55%;
}

.process-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.process-step-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
}

.process-step:hover .process-step-content {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {

  .process-title {
    font-size: 1.8rem;
    font-weight: 550;
  }

  .process-description {
    font-size: 1.0rem;
  }

  .process-step-description {
    font-size: 0.8rem;
  }

  .process-step-title {
    font-size: 1.0rem;
  }

  .apply-process {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
  }

  .apply-process::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(224, 32, 32, 0.05);
    z-index: 0;
  }

}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fadeInUp {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .recruit-hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .team-slide {
    flex-direction: column;
  }

  .team-card {
    margin-bottom: 30px;
  }

  .team-card-inner {
    flex-direction: column;
  }

  .environment-block-inner {
    flex-direction: column !important;
    padding: 50px 20px;
  }

  .environment-block-content {
    padding: 0;
    margin-bottom: 40px;
  }

  .environment-block-image {
    width: 100%;
    height: 300px;
  }

  .process-timeline::before {
    left: 40px;
  }

  .process-step {
    justify-content: flex-start;
    margin-left: 40px;
  }

  .process-step-content {
    width: calc(100% - 100px);
    position: relative;
    left: 30px !important;
    right: auto !important;
  }

  .process-step-number {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
    position: absolute;
    left: -30px;
  }
}

/* 応募プロセスセクション */
.apply-process {
  padding: 100px 0;
}

.process-steps {
  max-width: 800px;
  margin: 50px auto 0;
}

.process-step {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 60px;
  left: 30px;
  width: 2px;
  height: calc(100% - 30px);
  opacity: 0.3;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-right: 30px;
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-top: 10px;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-description {
  color: #666;
}

/* メッセージセクション */
.message-section {
  padding: 100px 0;
  background: url('../images/recruit/recruit_message.JPG') center/cover no-repeat;
  position: relative;
  color: white;
}

.message-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(65, 65, 65, 0.8) 0%, rgba(211, 211, 211, 0.5) 100%);
  z-index: 1;
}

.message-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.message-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
}

.message-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.message-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: white;
}

.message-first-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: rgb(61, 61, 61);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .recruit-hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 200px);
  }

  .process-step {
    flex-direction: column;
  }

  .step-number {
    margin-bottom: 20px;
  }

  .process-step:not(:last-child)::after {
    left: 30px;
    top: 60px;
    height: calc(100% - 60px);
  }
}

/* アニメーションの遅延に fill-mode を追加 */
.delay-100,
.delay-200,
.delay-300,
.delay-400,
.delay-500 {
  animation-fill-mode: both;
}

/* ギャラリー画像のレスポンシブ対応 */
@media (max-width: 768px) {

  .gallery-grid img,
  .gallery-slide img {
    width: 100%;
    height: auto;
  }
}

@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 767px) {
  .members-hero {
    padding: 120px 0 60px;
  }

  @media (max-width: 768px) {
    .member-card-block {
      flex-direction: column;
      text-align: center;
    }

    .member-image,
    .member-info {
      flex: 1 1 100%;
      max-width: 100%;
    }

    .member-image {
      margin-bottom: 20px;
    }
  }

  .section-header-special h2.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-align: center;
  }

  .section-header-special h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, rgba(224, 32, 32, 0.3), var(--primary-color), rgba(224, 32, 32, 0.3));
    border-radius: 2px;
  }

  /* 募集職種セクション */
  .positions-section {
    padding: 100px 0;
    background-color: #fafafa;
    text-align: center;
  }

  .section-header {
    margin-bottom: 60px;
  }

  .section-tagline {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 0 15px;
  }

  .section-tagline:before,
  .section-tagline:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--primary-color);
  }

  .section-tagline:before {
    left: -35px;
  }

  .section-tagline:after {
    right: -35px;
  }

  .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0;
    color: #333;
  }

  .section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
  }
}


.recruit-background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  background: linear-gradient(-45deg, #ffe1e1, #fff2f2, #ffeded82, #ffffff7e);
  background-size: 400% 400%;
  animation: bgGradientShift 20s ease infinite;
}

@keyframes bgGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#bubbleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  pointer-events: none;
  background-color: white;
}