/* モーダル背景 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px 20px;
}

/* モーダル本体 */
.modal-content {
  background: #fff;
  max-width: 800px;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 28px;
  cursor: pointer;
}

/* セクション */
.modal-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

/* タイトル */
.modal-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #223377;
}

/* 本文 */
.modal-section p {
  line-height: 1.7;
  font-size: 15px;
  color: #333;
}

/* 署名 */
.modal-sign {
  text-align: right;
  margin-top: 30px;
  font-weight: bold;
  line-height: 1.6;
}

/* TOP */
/* Youtubeカルーセル */
.carousel {
  padding: 40px 20px;
  background-color: #223377;
  color: #fff;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;

  /* Firefox用スクロールバー色 */
  scrollbar-width: thin;
  scrollbar-color: #4c6cff #1a2a66;
}

/* Chrome / Edge / Safari 用スクロールバー色 */
.carousel-track::-webkit-scrollbar {
  height: 8px; /* 横スクロールバーの高さ */
}

.carousel-track::-webkit-scrollbar-track {
  background: #1a2a66; /* 背景の青に馴染む濃い青 */
  border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: #4c6cff; /* 明るめの青で視認性UP */
  border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
  background: #6f88ff; /* ホバー時の色 */
}

.carousel-item {
  flex: 0 0 calc(25% - 20px); /* PCは4枚表示 */
  padding: 12px;
  scroll-snap-align: start;
}

.carousel-item p {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* SPは1枚表示 */
@media (max-width: 768px) {
  .carousel-track {
    overflow-x: auto;
    gap: 0; /* ← SPではgapを消す */
  }

  .carousel-item {
    flex: 0 0 100%; /* ← gapがないので100%でOK */
    max-width: 100%;
  }

  .youtube-wrap iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* ← SPで高さが安定する */
  }
}

/* 画像カルーセル */
.img-carousel {
  padding: 40px 20px;
}

.img-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.img-item {
  flex: 0 0 calc(25% - 20px);
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  background-color: #000; /* ← 余白を黒にする */
  border-radius: 12px; /* ← 角丸も枠に適用 */
}

.img-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px; /* ← 画像にも角丸を維持 */
}

/* SPは1枚表示 */
@media (max-width: 768px) {
  .img-item {
    flex: 0 0 100%; /* 1枚表示 */
  }
  .img-item img {
    height: 100%;
  }
}

/* Google Maps */
.top__shop__map {
  width: 100%;
  height: 400px; /* ← 好きな高さに変更 */
}

.top__shop__map iframe {
  width: 100%;
  height: 100%;
}

/* Abouit */
/* 全体ラッパー */
.ytc-wrapper {
  width: 100%;
  margin-top: 60px;
}

/* 2列横並び（必ず2列になる） */
.ytc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

/* 各カラム */
.ytc-col iframe {
  width: 100%;
  height: 300px;
  border-radius: 10px;
}

.ytc-col p {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.8;
}

/* タイトル */
.ytc-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #223377; /* heading-sub に合わせた色味 */
}

@media (max-width: 768px) {
  .ytc-row {
    grid-template-columns: 1fr;
  }
}

/* Recruit */
/* テーブル全体 */
.recruit_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 見出し */
.recruit_table thead th {
  background: #223377;
  color: #fff;
  padding: 16px;
  font-size: 16px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.recruit_table thead th:last-child {
  border-right: none;
}

/* 左側のタイトル列 */
.recruit_table_title {
  background: #f5f7fa;
  width: 180px;
  font-weight: bold;
  text-align: left;
  padding: 16px;
  border-right: 1px solid #e3e6eb;
}

/* 本文セル */
.recruit_table td {
  padding: 16px;
  vertical-align: top;
  line-height: 1.6;
  border-bottom: 1px solid #e3e6eb;
}

/* 最終行の線消し */
.recruit_table tr:last-child td {
  border-bottom: none;
}

/* 箇条書き */
.list-bullet {
  padding-left: 20px;
  margin: 0;
}

.list-bullet li {
  list-style: disc;
  margin-bottom: 6px;
}

@media (min-width: 1025px) {
  .jobList,
  .bg-tama {
    margin-left: 25px;
  }
}

/* --- SP版（1列表示） --- */
@media (max-width: 768px) {
  .recruit_table thead {
    display: none; /* 見出しを非表示 */
  }

  .recruit_table tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #e3e6eb;
    border-radius: 10px;
    overflow: hidden;
  }

  .recruit_table_title {
    width: 100%;
    display: block;
    padding: 12px;
    border-right: none;
    background: #223377;
    color: #fff;
  }

  .recruit_table td {
    display: block;
    padding: 12px;
    border-bottom: none;
  }

  .recruit_table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
    color: #223377;
  }
}

/* 背景（必要なら削除OK） */
.bg-tama {
  padding: 40px 20px;
  background: #f7f9fc;
}

/* 見出し */
.bg-tama .heading {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: bold;
  color: #223377;
}

/* フロー全体 */
.flow_step .step {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

/* 各ステップカード */
.flow_step .step li {
  flex: 1 1 calc(25% - 20px); /* PCは4つ横並び */
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* ステップ番号（丸アイコン） */
.step_icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: #223377;
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  line-height: 48px;
  text-align: center;
  margin-bottom: 12px;
}

/* テキスト部分 */
.flow_step .step dd {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* ステップ間の矢印（PCのみ） */
.flow_step .step li::after {
  content: "→";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #223377;
}

.flow_step .step li:last-child::after {
  content: "";
}

/* --- SP版（縦並び） --- */
@media (max-width: 768px) {
  .flow_step .step {
    flex-direction: column;
  }

  .flow_step .step li {
    flex: 1 1 100%;
  }

  .flow_step .step li::after {
    content: "";
  }

  .step_icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
  }
}

/* 会社概要 */
.about__company {
  margin-top: 60px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

.company-table th {
  width: 180px;
  background: #f5f5f5;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.company-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 767px) {
  .company-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px; /* カード間の余白 */
    font-size: 14px;
  }

  .company-table tr {
    display: block;
    background: #ffffff;
    border: 1px solid #e3e9f5; /* 薄い青系の枠 */
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(0, 40, 120, 0.05); /* ほんのり影 */
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    border-bottom: none;
    padding: 6px 0;
  }

  .company-table th {
    background: #f0f6ff; /* 薄い青 */
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #2a4a7b; /* 少し濃い青で読みやすく */
    margin-bottom: 6px;
  }

  .company-table td {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    padding-left: 4px;
  }
}
