/* Interactive Company Map Section */
.company-map-section {
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #ffffff 0%, #edf7ff 100%);
  text-align: center;
}
.map-container {
  position: relative;
  max-width: 1040px;
  margin: 24px auto 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 60, 120, 0.14);
  border: 4px solid #ffffff;
}
.map-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Map Hotspot Pins Layer */
.map-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-pin {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(7, 93, 204, 0.92);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(7, 93, 204, 0.35);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 2px solid #ffffff;
}
.map-pin:hover {
  transform: scale(1.08) translateY(-3px);
  background: #0962d2;
  box-shadow: 0 12px 28px rgba(7, 93, 204, 0.5);
  z-index: 10;
}
.map-pin-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #075dcc;
  font-size: 12px;
  font-weight: 900;
}

/* Pin Positions (Percentage-based for responsiveness) */
.pin-sales    { top: 12%; left: 8%; }
.pin-dev      { top: 12%; left: 40%; }
.pin-factory  { top: 12%; right: 8%; }
.pin-pm       { bottom: 35%; left: 8%; }
.pin-qa       { bottom: 35%; left: 40%; }
.pin-office   { bottom: 35%; right: 8%; }

/* Map Button Grid Navigation for Mobile & Easy Access */
.map-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.map-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  background: #ffffff;
  border: 2px solid #dce8f4;
  border-radius: 14px;
  color: #0a367d;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(31, 83, 150, 0.06);
  transition: all 0.2s ease;
}
.map-nav-btn:hover {
  transform: translateY(-3px);
  border-color: #075dcc;
  color: #075dcc;
  box-shadow: 0 10px 22px rgba(7, 93, 204, 0.16);
}
.map-nav-btn span.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #075dcc;
}

/* Job Interview Target Scroll Card Styles */
.job-detail-target {
  scroll-margin-top: 100px;
}
.job-detail-card {
  background: #ffffff;
  border: 1px solid #dce8f4;
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(31, 83, 150, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.job-detail-card:target,
.job-detail-card.highlight,
.dept-voice-group:target,
.dept-voice-group.highlight {
  border-color: #075dcc;
  box-shadow: 0 0 0 4px rgba(7, 93, 204, 0.2), 0 16px 36px rgba(31, 83, 150, 0.15);
  animation: pulseHighlight 1.5s ease;
}
.voice-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.voice-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(7, 93, 204, 0.18);
  flex-shrink: 0;
}
/* Interview Format & Profile Grid Styles */
.interview-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  background: #f6fafe;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0 20px;
  border: 1px solid #e1edf9;
  font-size: 13.5px;
}
.profile-item {
  display: flex;
  gap: 8px;
  color: #405371;
}
.profile-item dt {
  font-weight: 800;
  color: #0a367d;
  min-width: 110px;
}
.profile-item dd {
  margin: 0;
  font-weight: 600;
}

.interview-qa-box {
  display: grid;
  gap: 16px;
}
.qa-item {
  background: #ffffff;
  border-left: 4px solid #075dcc;
  padding: 12px 18px;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 12px rgba(31, 83, 150, 0.04);
}
.qa-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0a367d;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.qa-title::before {
  content: "Q.";
  color: #23b2c1;
  font-weight: 900;
}
.qa-text {
  font-size: 14px;
  color: #405371;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 768px) {
  .interview-profile-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 820px) {
  .map-pin {
    padding: 5px 10px;
    font-size: 11px;
  }
  .map-pin-num {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .map-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 500px) {
  .map-hotspots {
    display: none; /* Hide overlay pins on very small screens, use button grid below */
  }
  .map-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Number Grid Section */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.number-card {
  background: #ffffff;
  border: 1px solid #dce8f4;
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(31, 83, 150, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.number-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(31, 83, 150, 0.14);
}
.number-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #075dcc;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}
.number-value {
  font-size: 42px;
  font-weight: 900;
  color: #0a367d;
  line-height: 1.1;
  margin-bottom: 6px;
}
.number-value span {
  font-size: 20px;
  font-weight: 700;
  margin-left: 4px;
}
.number-label {
  font-size: 14px;
  color: #5b6d86;
  font-weight: 600;
  margin: 0;
}

/* Executive Message Section */
.message-card {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f4faff 100%);
  border: 1px solid #dce8f5;
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
}
.message-body h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  color: #0a367d;
  line-height: 1.45;
  margin: 0 0 18px;
}
.message-body p {
  color: #405371;
  line-height: 1.85;
  margin: 0 0 16px;
}
.message-sign {
  margin-top: 24px;
  font-weight: 800;
  color: #17365f;
  font-size: 16px;
  border-top: 1px dashed #c8dbf0;
  padding-top: 16px;
}
.message-art {
  width: 220px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(23, 77, 143, 0.12);
  border: 3px solid #ffffff;
}
.message-art img {
  width: 100%;
  height: auto;
  display: block;
}

/* Voice & Employee Stories Section */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.voice-card {
  background: #ffffff;
  border: 1px solid #dce8f4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31, 83, 150, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(31, 83, 150, 0.15);
}
.voice-header {
  padding: 24px 22px 14px;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid #edf4fc;
}
.voice-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}
.voice-card h3 {
  font-size: 19px;
  color: #0a367d;
  margin: 0 0 6px;
  line-height: 1.4;
}
.voice-info {
  font-size: 13px;
  color: #5b6d86;
  font-weight: 700;
}
.voice-content {
  padding: 20px 22px;
  flex: 1;
}
.voice-content p {
  font-size: 14px;
  color: #405371;
  line-height: 1.75;
  margin: 0 0 16px;
}

/* Day Schedule Timeline */
.schedule-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f7fbff;
  border-radius: 12px;
  border: 1px solid #e1edf9;
}
.schedule-title {
  font-weight: 800;
  color: #075dcc;
  font-size: 13px;
  margin-bottom: 8px;
}
.schedule-item {
  display: flex;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 6px;
}
.schedule-item:last-child {
  margin-bottom: 0;
}
.schedule-time {
  font-weight: 800;
  color: #23b2c1;
  min-width: 48px;
}
.schedule-text {
  color: #405371;
}

/* Requirements & Tabs Section */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}
.tab-btn {
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid #78a2df;
  background: #ffffff;
  color: #1550a6;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn.active {
  background: linear-gradient(135deg, #075dcc, #174db9);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(7, 93, 204, 0.28);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #dce8f4;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.spec-table th,
.spec-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #edf4fc;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}
.spec-table th {
  width: 220px;
  background: #f6fafe;
  color: #0a367d;
  font-weight: 800;
  font-size: 15px;
  vertical-align: top;
  text-align: left;
}
.spec-table td {
  color: #405371;
  font-size: 15px;
  line-height: 1.8;
}

/* Selection Process Timeline */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.flow-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #dce8f4;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(31, 83, 150, 0.06);
}
.flow-no {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #075dcc, #23b2c1);
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 12px;
}
.flow-card h3 {
  font-size: 17px;
  color: #0a367d;
  margin: 0 0 8px;
}
.flow-card p {
  font-size: 12px;
  color: #5b6d86;
  margin: 0;
  line-height: 1.6;
}

/* CTA Recruit Banner */
.recruit-cta {
  background: linear-gradient(135deg, #0a367d 0%, #075dcc 60%, #1ab1b9 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(7, 60, 150, 0.25);
  margin-top: 40px;
}
.recruit-cta h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 0 0 14px;
}
.recruit-cta p {
  font-size: 16px;
  opacity: 0.92;
  margin: 0 0 28px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Responsive Overrides */
@media (max-width: 1020px) {
  .numbers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .message-card {
    grid-template-columns: 1fr;
  }
  .voice-grid {
    grid-template-columns: 1fr;
  }
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-table th {
    width: 150px;
  }
}
@media (max-width: 600px) {
  .numbers-grid {
    grid-template-columns: 1fr;
  }
  .flow-steps {
    grid-template-columns: 1fr;
  }
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }
  .spec-table th {
    border-bottom: 0;
    padding-bottom: 6px;
  }
  .spec-table td {
    padding-top: 0;
  }
  .tab-buttons {
    flex-direction: column;
  }
}

/* 増減対応 部署別動的カードグリッドCSS（社員カードに合わせて部署枠が伸縮・中央配置） */
.dept-voice-group {
  opacity: 1 !important;
  transform: none !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto 36px auto !important;
  box-sizing: border-box !important;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 28px;
  border: 1px solid #dce8f4;
  box-shadow: 0 8px 24px rgba(31, 83, 150, 0.05);
}
.dept-voice-header {
  padding: 10px 18px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #f4f8fd;
}
.dept-voice-header h3 {
  margin: 0;
  font-size: 19px;
  color: #0a367d;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.member-count-badge {
  font-size: 12px;
  font-weight: 700;
  background: #e1efff;
  color: #075dcc;
  padding: 3px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

/* 1名〜複数名の人数増減に自動追従する確実な横並びフレックスレイアウト */
.voice-grid-dynamic {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  align-items: stretch !important;
}

.voice-grid-dynamic > .voice-card {
  flex: 1 1 320px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* 人数が1名のみの場合にカード幅が広がりすぎないように最適化 */
.voice-grid-dynamic > .voice-card:only-child {
  max-width: 520px !important;
}

@media (max-width: 600px) {
  .voice-grid-dynamic > .voice-card {
    flex: 1 1 100% !important;
  }
  .dept-voice-group {
    padding: 18px 16px !important;
  }
}

/* インタビューページ ボトムナビゲーション（左：採用トップ、右：前へ・次へ） */
.interview-bottom-nav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: 40px !important;
  padding-top: 24px !important;
  border-top: 1px solid #dce8f4 !important;
}

.interview-bottom-nav .nav-left {
  display: flex !important;
  align-items: center !important;
}

.interview-bottom-nav .nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

@media (max-width: 640px) {
  .interview-bottom-nav {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .interview-bottom-nav .nav-left,
  .interview-bottom-nav .nav-right {
    width: 100% !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .interview-bottom-nav a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}
}
