/* ==========================================================================
   求人詳細ページ スタイル (求人ボックス風・改)
   ========================================================================== */

/* --- 全体レイアウト --- */
.job-detail-article-new {
  background-color: #f7f8fa;
}
.job-detail-container-new {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 24px 16px;
  padding-bottom: 150px;
}

/* --- ページ上部：サマリー情報 --- */
.job-summary-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 32px;
}
.summary-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.summary-company {
  font-size: 1rem;
  color: #555;
  margin: 0 0 16px 0;
}
.summary-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.summary-info-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
}
.summary-info-label {
  font-weight: bold;
  color: #555;
  margin-right: 0.5em;
  flex-shrink: 0;
}
.summary-info-value {
  color: #333;
}
.summary-features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.feature-tag {
  background-color: #f1f3f5;
  color: #495057;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
}

/* ★★★ 新しく追加したスタイル ★★★ */
.summary-extra-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.extra-tag {
  background-color: #e9ecef;
  color: #495057;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}
/* ★★★ ここまで ★★★ */

/* --- アイコンのスタイル (セクションタイトルでのみ使用) --- */
.summary-info-icon {
  display: none;
}
.section-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  background-color: #555;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  flex-shrink: 0;
}
.icon-location {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-map-pin'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-map-pin'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}
.icon-money {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4l4 8 4-8'/%3E%3Cpath d='M12 12v8'/%3E%3Cpath d='M6 10h12'/%3E%3Cpath d='M6 14h12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4l4 8 4-8'/%3E%3Cpath d='M12 12v8'/%3E%3Cpath d='M6 10h12'/%3E%3Cpath d='M6 14h12'/%3E%3C/svg%3E");
}
.icon-briefcase {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-briefcase'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-briefcase'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E");
}
.icon-document {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-file-text'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-file-text'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.icon-star {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
}
.icon-check {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-check-circle'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-check-circle'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
}
.icon-gift {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-gift'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'%3E%3C/polyline%3E%3Crect x='2' y='7' width='20' height='5'%3E%3C/rect%3E%3Cline x1='12' y1='22' x2='12' y2='7'%3E%3C/line%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'%3E%3C/path%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'%3E%3C/path%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-gift'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'%3E%3C/polyline%3E%3Crect x='2' y='7' width='20' height='5'%3E%3C/rect%3E%3Cline x1='12' y1='22' x2='12' y2='7'%3E%3C/line%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'%3E%3C/path%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'%3E%3C/path%3E%3C/svg%3E");
}
.icon-building {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-home'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-home'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
}

/* --- 各詳細セクション --- */
.job-detail-section {
  margin-bottom: 40px;
}
.section-title {
  font-size: 1.3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 12px;
  margin: 0 0 20px 0;
}
.section-content {
  line-height: 1.8;
  color: #333;
}
.section-content p:first-child {
  margin-top: 0;
}
.section-content p:last-child {
  margin-bottom: 0;
}
.job-catchphrase {
  background-color: #f1f9ff;
  border-left: 4px solid #1a73e8;
  padding: 16px;
  border-radius: 0 4px 4px 0;
}
.section-content h4 {
  position: relative;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 24px 0 12px 0;
  padding-left: 12px;
}
.section-content h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background-color: #1a73e8;
  border-radius: 2px;
}
.section-content ul {
  list-style: none;
  padding-left: 0;
}
.section-content li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 8px;
}
.section-content li::before {
  content: "";
  position: absolute;
  left: 0.5em;
  top: 0.5em;
  width: 0.5em;
  height: 0.5em;
  background-color: #1a73e8;
}

/* ★★★ 新しく追加・変更したスタイル ★★★ */
.detail-table {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}
.detail-table dt,
.detail-table dd {
  padding: 16px;
  margin: 0;
  border-bottom: 1px solid #e8e8e8;
}
.detail-table dt:last-of-type,
.detail-table dd:last-of-type {
  border-bottom: none;
}
.detail-table dt {
  background-color: #f7f8fa;
  font-weight: bold;
}
.detail-table a {
  color: #1a73e8;
  text-decoration: none;
}
.detail-table a:hover {
  text-decoration: underline;
}
.detail-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.detail-list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0;
}
.detail-list li:not(:last-child) {
  margin-bottom: 8px;
}
.detail-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  background-color: transparent; /* 既存のli::beforeスタイルを上書き */
  width: auto;
  height: auto;
}
/* ★★★ ここまで ★★★ */

/* --- 「一覧へ戻る」ボタン --- */
.back-to-list-wrapper {
  margin-top: 40px;
  text-align: center;
}
.btn-back-to-list {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s, color 0.2s;
}
.btn-back-to-list:hover {
  background-color: #f5f5f5;
}

/* --- フローティングCTA --- */
.floating-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 12px 16px;
  box-sizing: border-box;
}
.floating-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
/* コピーセクション */
.copy-id-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border: 1px solid #e0e0e8;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.copy-id-text {
  flex-grow: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #333;
}
.copy-id-text strong {
  font-weight: bold;
  color: #000;
}
.btn-copy-id {
  background-color: #fff;
  border: 1px solid #007bff;
  color: #007bff;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}
.btn-copy-id:hover {
  background-color: #f0f8ff;
}
/* 応募ボタン */
.cta-button {
  display: block;
  width: 100%;
  background-color: #ff9800;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 14px 20px;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.cta-button:hover {
  background-color: #f57c00;
}
.cta-note {
  display: none;
}

/* --- レスポンシブ調整 --- */
@media (min-width: 768px) {
  .detail-table {
    display: grid;
    grid-template-columns: 200px 1fr; /* 左のラベル幅を固定 */
  }
  .detail-table dt {
    border-right: 1px solid #e8e8e8;
  }
  .detail-table dt:nth-of-type(n + 2) {
    border-top: 1px solid #e8e8e8;
  }
  .detail-table dd:nth-of-type(n + 2) {
    border-top: 1px solid #e8e8e8;
  }
  .detail-table dt,
  .detail-table dd {
    border-bottom: none;
  }
}
@media (max-width: 768px) {
  .job-detail-container-new {
    padding: 16px;
    padding-bottom: 150px;
  }
  .summary-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
}
