body {
  overflow-x: hidden;
  max-width: 100vw;
}

.recruit-page,
.App {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* 横スクロール防止 */
  max-width: 100vw; /* ビューポート幅を超えない */
  box-sizing: border-box;
}

.recruit-page *,
.recruit-page *::before,
.recruit-page *::after,
.App *,
.App *::before,
.App *::after {
  box-sizing: border-box;
}

/* ヒーローセクション */
.recruit-hero {
  width: 100%;
  background-size: 100% auto; /* 横幅100%、高さは自動 */
  background-position: top center;
  background-repeat: no-repeat;
  position: relative;
}

.recruit-hero::before {
  content: '';
  display: block;
  padding-bottom: 27%; /* 画像の縦横比に合わせて調整 */
}

.recruit-hero-title {
  position: absolute;
  top: 30%;
  left: 42%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: 600;
  color: #FFF;
  letter-spacing: 0.1em;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
               0 0 20px rgba(0, 0, 0, 0.4),
               0 0 20px rgba(255, 255, 255, 0.6),
               0 0 30px rgba(255, 255, 255, 0.4);
}

/* イントロセクション */
.recruit-intro {
  background-color: #fff;
  padding: 4rem;
  text-align: center;
}

.recruit-intro-container {
  max-width: 900px;
  margin: 0 auto;
}

.recruit-intro-title {
  font-size: 2rem;
  font-weight: normal;
  color: #111;
  margin-bottom: 1.5rem;
}

.recruit-intro-text {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.recruit-intro-description {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
}

/* タブフィルター */
.recruit-filter {
  background-color: #f9f9f9;
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.filter-tab {
  flex: 1;
  padding: 0.6rem 0.6rem;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
}

.filter-tab:hover {
  border-color: #999;
  background-color: #f9f9f9;
}

.filter-tab.active {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

/* 募集一覧セクション */
.recruit-list-section {
  flex: 1;
  background-color: #fff;
  padding: 1rem 0;
}

/* hero以下全体のコンテナ */
.recruit-content-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 2カラムコンテナ（heroの下から開始） */
.recruit-container-2col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
}

/* メインコンテンツエリア */
.recruit-main-content {
  min-width: 0; /* グリッドのオーバーフロー対策 */
}

/* セクションタイトル */
.recruit-section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: normal;
  color: #333;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

/* 募集カード */
.recruit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* 募集カードリンク */
.recruit-card-link {
  text-decoration: none;
  display: block;
}

.recruit-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 0.4rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.recruit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background-color: #f9f9f9;
}

.recruit-card-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.card-cta-button-icon {
  font-size: 1.5rem;
  color: #666;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s;
}

.recruit-card:hover .card-cta-button-icon {
  transform: translateX(5px);
}

/* スティッキーサイドバー */
.recruit-sidebar {
  width: 300px;
}

.sidebar-sticky {
  position: sticky;
  top: 60px; /* ヘッダーの高さ分空ける */
  border-radius: 8px;
  padding: 2rem;
  height: fit-content;
}

.sidebar-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ddd;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li:last-child {
  margin-bottom: 0;
}

.sidebar-nav a {
  display: block;
  padding: 0.4rem 1rem;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.sidebar-nav a:hover {
  background-color: #fff;
  color: #000;
  padding-left: 1.5rem;
}

/* ローディング・エラー・結果なし */
.loading,
.error-message,
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.2rem;
  color: #666;
}

.error-message {
  color: #d32f2f;
}

/* セクション共通スタイル */
.section-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
}

/* 応募・選考の流れ */
.flow-steps {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  position: relative;
}

.flow-step {
  display: grid;
  grid-template-columns: 120px 150px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
}

/* 矢印行 */
.flow-cta-button-icon {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 0;
  height: 40px;
}

.cta-button-icon-icon {
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 40px solid #fff;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 120px;
  background-color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}


.step-label {
  font-size: 0.9rem;
  font-weight: normal;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.step-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.step-note {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.6;
  margin-top: 1rem;
}

/* Step Flow（制作の流れ） - StepFlowコンポーネント用 */
.step-flow-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-flow-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-flow-header {
  flex-shrink: 0;
}

.step-number-image {
  width: 60px;
  height: auto;
}

.step-flow-content {
  flex: 1;
}

.step-flow-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.step-flow-divider {
  height: 2px;
  background-color: #e0e0e0;
  margin: 0.5rem 0 1rem 0;
}

.step-flow-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* ーーーーーーーーーーーーーーーーーー私達の仕事ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
.our-work-list {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

.our-work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.our-work-item.reverse {
  direction: rtl;
}

.our-work-item.reverse > * {
  direction: ltr;
}

.our-work-image {
  width: 100%;
  border-radius: 8px;
}

.our-work-image img {
  width: 100%;
  height: auto;
  display: block;
}

.our-work-content {
  padding: 0rem;
}

.our-work-title {
  position: relative;  /* 追加：疑似要素の基準点 */
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-text-primary);
  margin: 0 0 2rem 0;
  padding-left: 20px;  /* ボーダー分の余白 */
  padding-bottom: 10px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
.our-work-title::before {
  content: '';  /* 追加：必須 */
  position: absolute;  /* 追加：配置方法 */
  left: 0;  /* 追加：左端に配置 */
  top: 0.2rem;  /* 追加：上端 */
  width: 8px;  /* 追加：ボーダーの幅 */
  height: 60%;  /* 追加：高さ（テキストと同じ） */
  background-color: #bfbfbf;  /* border-leftの代わり */
}

.our-work-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.our-work-details {
  font-size: 0.95rem;
  color: #666;
  padding-left: 1rem;
  line-height: 1.5;
}

/* 社内の雰囲気スライダー */
.atmosphere-slider {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 40px;
}

.slider-container {
  overflow: hidden;
  border-radius: 8px;
}

.slider-track {
  display: flex;
  gap: 2rem;
  /* transitionはインラインスタイルで動的に制御 */
}

.slider-item {
  min-width: calc(33.333% - 1.333rem);
  flex-shrink: 0;
  aspect-ratio: 16 / 9; /* 画像のアスペクト比を統一（横長ワイド） */
  overflow: hidden;
  border-radius: 8px;
  flex: 0 0 calc(100% / 3);
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像を枠に合わせてトリミング */
  display: block;
  border-radius: 8px;
}

.slider-cta-button-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 3rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.3s;
}

.slider-cta-button-icon:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.slider-cta-button-icon:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: rgba(0, 0, 0, 0.3);
}

.slider-cta-button-icon:disabled:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.slider-cta-button-icon-left {
  left: 20px;
}

.slider-cta-button-icon-right {
  right: 20px;
}

/* ーーーーーーーーーーーーーーーーーー社員インタビューーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
.interview-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  background-color: #EEE;
  border-radius: 8px;
  overflow: hidden; /* はみ出し防止 */
}

.interview-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* 通常配置（写真左、ボックス右） */
.interview-item:not(.reverse) {
  flex-direction: row;
}

.interview-item:not(.reverse) .interview-image-wrapper {
  position: relative;
  flex: 0 0 auto; /* 写真は内容に応じたサイズ */
  max-width: 60%; /* 最大50%まで */
  z-index: 1;
}

.interview-item:not(.reverse) .interview-job-title {
  text-align: left;
  position: absolute;
  top: 20.5rem;
  text-align: left;
  left: 55%; /* パーセントで位置を指定 */
  z-index: 3;
}

.interview-item:not(.reverse) .interview-content {
  flex: 1;
  margin-left: -35%; /* パーセントで重なりを指定 */
  margin-top: 24rem;
  z-index: 2;
}

/* リバース配置（写真右、ボックス左） */
.interview-item.reverse {
  flex-direction: row-reverse;
}

.interview-item.reverse .interview-image-wrapper {
  position: relative;
  flex: 0 0 auto; /* 写真は内容に応じたサイズ */
  max-width: 60%; /* 最大50%まで */
  z-index: 1;
}

.interview-item.reverse .interview-job-title {
  position: absolute;
  top: 20rem;
  right: 55%; /* パーセントで位置を指定 */
  left: auto;
  z-index: 3;
}

.interview-item.reverse .interview-content {
  flex: 1;
  margin-right: -35%; /* パーセントで重なりを指定 */
  margin-top: 24rem;
  z-index: 2;
}

.interview-image {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  margin-right: 4rem;
}

.interview-image img {
  width: 100%;
  max-width: 500px; /* 最大サイズを制限 */
  aspect-ratio: 4 / 3; /* 縦横比を3:4に固定（縦長） */
  object-fit: cover; /* 画像を枠に合わせてトリミング */
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.interview-content {
  margin-right: 2rem;
  margin-left: 2rem;
  margin-bottom: 2rem;
  background-color: #fff;
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 職種タイトル（写真上） */
.interview-job-title {
  font-size: 2rem;
  font-weight: 300;
  color: #999;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* 業務内容（ボックス内の一番上） */
.interview-job-content {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.interview-header {
  margin-bottom: 2rem;
}

.interview-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.interview-text {
    font-size: 0.95rem;
  color: #555;
  line-height: 1.9;
}

/* ーーーーーーーーーーーーーーーーーー採用お問合せ窓口ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
.contact-window {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
}

.contact-intro {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.contact-note {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #F5DEB3; /* ベージュ色 */
  color: #333;
  text-decoration: none;
  padding: 1rem 3rem;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: normal;
  transition: all 0.3s;
  margin-bottom: 3rem;
}

.contact-button:hover {
  background-color: #E5CE9F;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button-cta-button-icon {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.contact-button:hover .button-cta-button-icon {
  transform: translateX(5px);
}

.contact-info {
  margin-top: 3rem;
  text-align: center;
}

.contact-info-title {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
  font-weight: normal;
}

.company-info {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.company-name {
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.company-tel {
  margin-bottom: 0.5rem;
}

.company-tel a {
  color: #333;
  text-decoration: none;
  font-weight: normal;
}

.company-tel a:hover {
  text-decoration: underline;
}

.tel-hours {
  font-size: 0.9rem;
  color: #666;
  margin-left: 0.5rem;
}

.company-note {
  font-size: 0.85rem;
  color: #666;
  margin: 1rem 0;
  line-height: 1.6;
}

.company-person {
  margin-top: 1rem;
}

.person-name {
  font-weight: normal;
  color: #333;
}

/* レスポンシブ */
@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .recruit-page,
  .App {
    padding-top: 60px; /* スマホ用ヘッダー高さ */
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* 全セクション共通：はみ出し防止 */
  .recruit-section,
  .recruit-main-content,
  .recruit-main-content-wrapper,
  .interview-list,
  .our-work-list,
  .flow-steps,
  .step-flow-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* スマホ用hero画像に切り替え */
  .recruit-hero {
    background-image: url('../media/recruit/mainvisual_sp.jpg') !important;
  }

  .recruit-hero::before {
    content: '';
    display: block;
    padding-bottom: 50%; /* 画像の縦横比に合わせて調整 */
  }

  .recruit-hero-title {
    font-size: 1.8rem;
  }

  .recruit-hero-title h1{
    font-size: 1.8rem;
  }

  .recruit-intro {
    padding: 2rem 1rem;
  }

  .recruit-intro-title {
    font-size: 1.5rem;
  }

  .recruit-intro-text {
    font-size: 1rem;
  }

  .filter-tabs {
    flex-direction: column;
  }

  .recruit-list-section {
    padding: 2rem 1rem;
  }

  .recruit-cards {
    grid-template-columns: 1fr;
  }

  .recruit-container-2col {
    grid-template-columns: 1fr;
  }

  .recruit-content-wrapper {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }

  .section-title {
    font-size: 1.3rem;
    word-break: break-word;
  }

  .recruit-sidebar {
    display: none;
  }

  .our-work-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .our-work-item.reverse {
    direction: ltr;
  }

  .atmosphere-slider {
    padding: 0 50px;
    margin: 2rem 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .slider-item {
    min-width: 100%;
  }

  .slider-cta-button-icon {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .slider-cta-button-icon-left {
    left: 10px;
  }

  .slider-cta-button-icon-right {
    right: 10px;
  }

  .interview-list {
    gap: 3rem;
  }

  .interview-item {
    flex-direction: column !important; /* スマホは縦並び */
    align-items: stretch;
    overflow: hidden; /* はみ出し防止 */
  }

  .interview-item:not(.reverse) .interview-image-wrapper,
  .interview-item.reverse .interview-image-wrapper {
    max-width: 100%;
  }

  .interview-item:not(.reverse) .interview-image,
  .interview-item.reverse .interview-image {
    max-width: 100%;
    margin-right: 0; /* スマホでは右マージンをリセット */
  }

  .interview-item:not(.reverse) .interview-content,
  .interview-item.reverse .interview-content {
    margin-left: 0;
    margin-right: 0;
    margin-top: -2rem; /* 上に少しずらして重ねる */
  }

  /* スマホ用：職種タイトルを写真の上に小さく表示 */
  .interview-item:not(.reverse) .interview-job-title,
  .interview-item.reverse .interview-job-title {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
  }

  .interview-content {
    padding: 1.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .step-flow-item {
    flex-direction: column;
    gap: 1rem;
  }

  .step-number-image {
    width: 50px;
  }

  /* 応募・選考の流れ スマホ対応 */
  .flow-step {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .flow-cta-button-icon {
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 100%;
    padding: 0.5rem;
  }

  .cta-button-icon-icon {
    margin: 0 auto;
  }

  .contact-window {
    padding: 0 1rem;
  }

  .contact-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .contact-intro,
  .contact-note {
    font-size: 0.9rem;
  }

  .company-info {
    font-size: 0.9rem;
  }

  .tel-hours {
    display: block;
    margin-left: 0;
    margin-top: 0.3rem;
  }
}
