/*
Theme Name: bizlista - Top Page
Description: TOPページ（index.html）専用スタイル（FV、特集、地図、BentoGrid）
*/

/* ========================================================================= */
/* 1. FV (Main Visual) */
/* ========================================================================= */
.fv {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #f4f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", "Noto Sans JP", sans-serif;
}

.fv-container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
  padding: 40px 0;
}

/* 背景装飾 */
.fv-bg-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bg-shape {
  position: absolute;
  background: linear-gradient(
    135deg,
    rgba(245, 91, 20, 0.08),
    rgba(19, 46, 75, 0.03)
  );
  border-radius: 30px;
}

.s-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -50px;
  transform: rotate(20deg);
}

.s-2 {
  width: 200px;
  height: 200px;
  bottom: 50px;
  left: 10%;
  transform: rotate(-15deg);
}

.s-3 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 40%;
  background: rgba(19, 46, 75, 0.05);
}

/* FV コンテンツ（左側） */
.fv-content {
  width: 40%;
  z-index: 10;
}

.fv-logo-wrap {
  margin-bottom: 30px;
  display: block;
}

.fv-logo-img {
  width: 240px;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(20px);
}

.fv-title {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #333;
  margin-bottom: 35px;
  letter-spacing: -0.02em;
}

.title-line {
  overflow: hidden;
  display: block;
}

.text-inner {
  display: block;
  transform: translateY(110%);
}

.fv-sub {
  font-size: 1.1rem;
  font-weight: bold;
  color: #666;
  opacity: 0;
  transform: translateY(20px);
}

.fv-btn {
  display: inline-block;
  padding: 18px 50px;
  background: #f55b14;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(245, 91, 20, 0.2);
  transition: 0.3s;
}

.fv-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(245, 91, 20, 0.3);
}

/* FV グリッドビジュアル（右側） */
.fv-grid-visual {
  width: 55%;
  height: 550px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
  position: relative;
}

.grid-cell {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: #f0f0f0;
}

.cell-large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.cell-square-top {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.cell-square-bottom {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.reveal-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff, #f55b14);
  z-index: 10;
  transform: scaleY(1);
  transform-origin: bottom;
}

.slide-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.img-slide {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.img-slide.active {
  left: 0;
  z-index: 2;
}

/* ========================================================================= */
/* 2. 特集セクション (Feature) */
/* ========================================================================= */
.feature-section {
  padding: 80px 0;
}

.feature-contents {
  margin-top: 50px;
}

.feature-lists {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.feature-list-item.main-card {
  grid-row: span 2;
  height: 525px;
}

.feature-link-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-link-card:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-img {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  transition: transform 0.8s ease;
}

.feature-link-card:hover .feature-img {
  transform: scale(1.03);
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-navy);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 8;
}

.feature-link-card:hover .feature-overlay {
  opacity: 0.2;
}

.feature-titlebox {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 25px 80px;
  z-index: 10;
  color: white;
  background: linear-gradient(
    to top,
    rgba(19, 46, 75, 0.9) 0%,
    rgba(19, 46, 75, 0) 50%
  );
}

.feature-subtitle {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--color-orange);
  margin-bottom: 8px;
  letter-spacing: 0.15em;
  opacity: 1;
}

.feature-titlebox h3 {
  font-size: 1.5rem;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.view-btn {
  position: absolute;
  bottom: 30px;
  left: 25px;
  padding: 8px 15px;
  border: 2px solid white;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.8;
  transition: opacity 0.3s, background-color 0.3s;
  color: white;
}

.feature-link-card:hover .view-btn {
  opacity: 1;
  background-color: var(--color-orange);
  border-color: var(--color-orange);
}

.feature-list-item.sub-card-item {
  height: 160px;
}

.feature-list-item.sub-card-item .sub-card {
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
}

.feature-list-item.sub-card-item .sub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sub-card-subtitle {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color-orange);
  margin-bottom: 5px;
  letter-spacing: 0.15em;
}

.sub-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.sub-card-arrow {
  font-size: 2rem;
  color: var(--color-orange);
  transition: transform 0.3s;
}

.sub-card:hover .sub-card-arrow {
  transform: translateX(5px);
}

/* ========================================================================= */
/* 3. Japan Map & Area Search */
/* ========================================================================= */
.region-search-wrap {
  padding: 4rem 0;
  overflow: hidden;
}

.japan-map-interactive-container {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 30px;
  margin: 50px 0;
  background-color: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(19, 46, 75, 0.05);
}

/* Map Area */
.map-visual-area {
  flex: 0 0 55%;
  position: relative;
  border-radius: 16px;
  background-color: #eef5ff;
  overflow: hidden;
  padding: 20px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-bg-decoration {
  position: absolute;
  inset: 0;
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

.map-visual-area svg {
  width: 100%;
  height: auto;
  display: block;
}

.real-japan-svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(3px 5px 2px rgba(0, 0, 0, 0.1));
}

.map-view-pc {
  display: block;
}

.map-view-sp {
  display: none;
}

.prefecture {
  fill: #ffffff;
  stroke: #aabbd0;
  stroke-width: 1px;
  cursor: pointer;
  transition: fill 0.2s ease, transform 0.2s ease;
  vector-effect: non-scaling-stroke;
}

.prefecture.region-hover {
  fill: #ffebd9;
  stroke: var(--color-orange);
  stroke-width: 1.5px;
  position: relative;
  z-index: 10;
}

.prefecture.active {
  fill: var(--color-orange);
  stroke: #ffffff;
  stroke-width: 1px;
  z-index: 5;
}

.boundary-line {
  stroke: #aabbd0 !important;
  stroke-width: 2px !important;
  stroke-dasharray: 4;
  opacity: 0.6;
}

.map-instruction {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 0.8rem;
  color: #889bb0;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 5;
}

/* Selection Panel */
.pref-selection-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 10px 10px 20px;
  border-left: 2px dashed #eee;
  position: relative;
  overflow: hidden;
}

.pref-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 100%;
}

.pref-panel.active {
  display: block !important;
  opacity: 1;
  animation: slideInRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel-region-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 25px;
  line-height: 1.1;
  position: relative;
}

.panel-region-name .jp {
  display: block;
  font-size: 1.1rem;
  color: var(--color-orange);
  font-weight: 700;
  margin-top: 5px;
  letter-spacing: 0.05em;
}

.pref-list-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
}

.pref-list-buttons a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: white;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 0 #f0f0f0;
  text-decoration: none;
}

.pref-list-buttons a i {
  font-size: 0.8rem;
  color: #ccc;
  transition: transform 0.2s, color 0.2s;
}

.pref-list-buttons a:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(245, 91, 20, 0.15);
}

.pref-list-buttons a:hover i {
  color: var(--color-orange);
  transform: translateX(3px);
}

.city-list-container {
  display: block;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 10px;
  padding-top: 10px;
  grid-template-columns: 1fr;
}

.city-list-container li {
  border-bottom: none;
  margin-bottom: 8px;
}

.city-list-container a {
  padding: 12px 15px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.btn-back {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--color-orange);
  text-decoration: none;
}

#selected-pref-name {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-navy);
}

#city-search-input {
  width: 100%;
  padding: 10px 15px;
  margin: 10px 0 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

#city-search-input:focus {
  border-color: var(--color-orange);
}

.city-group-label {
  width: 100%;
  font-size: 0.85rem;
  color: #888;
  background: #f4f4f4;
  padding: 5px 10px;
  margin: 15px 0 5px;
  border-radius: 4px;
  font-weight: bold;
  pointer-events: none;
}

.city-group-label:first-child {
  margin-top: 0;
}

.whole-pref-link {
  background-color: #fffaf5;
  font-weight: bold;
  border-bottom: 2px solid #f0f0f0 !important;
}

.whole-pref-link a {
  color: var(--color-orange) !important;
}

/* ========================================================================= */
/* 4. Line Search Section (路線検索) */
/* ========================================================================= */
.line-search-section {
  padding: 80px 0;
  background-color: #f5f7fa;
}

.line-search-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.route-map-nav-wrapper {
  position: relative;
  margin-bottom: 50px;
  padding: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.route-map-nav-wrapper::-webkit-scrollbar {
  display: none;
}

.route-track-line {
  position: absolute;
  top: 25px;
  left: 20px;
  min-width: 800px;
  width: 100%;
  height: 6px;
  background-color: #dde2e6;
  border-radius: 4px;
  z-index: 0;
}

.route-map-tabs {
  display: flex;
  justify-content: space-between;
  min-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.route-station-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 80px;
  transition: transform 0.2s;
}

.route-station-tab:hover {
  transform: translateY(-2px);
}

.station-dot {
  width: 16px;
  height: 16px;
  background-color: white;
  border: 4px solid #999;
  border-radius: 50%;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.station-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #888;
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s;
}

.route-station-tab.active .station-dot {
  background-color: var(--color-orange);
  border-color: white;
  box-shadow: 0 0 0 3px var(--color-navy);
  transform: scale(1.4);
}

.route-station-tab.active .station-name {
  color: var(--color-navy);
}

.line-list-panel {
  display: none;
  animation: slideInTrack 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.line-list-panel.active {
  display: block;
}

@keyframes slideInTrack {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.station-sign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 0 10px;
}

.station-sign-card {
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.station-sign-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #ccc;
}

.sign-header {
  height: 12px;
  width: 100%;
  position: relative;
}

.line-initial {
  position: absolute;
  top: -6px;
  left: 20px;
  border: 2px solid #333;
  width: 36px;
  height: 36px;
  background-color: #333;
  color: white;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sign-body {
  padding: 30px 20px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ja-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.en-name {
  font-size: 0.75rem;
  color: #666;
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.sign-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  color: #ccc;
}

.sign-arrows i {
  font-size: 1.2rem;
}

.sign-arrows .line-bar {
  flex-grow: 1;
  height: 4px;
  max-width: 100px;
  border-radius: 2px;
}

.view-more .sign-header {
  background-color: #555;
}

.view-more .ja-name {
  color: var(--color-orange);
}

/* ========================================================================= */
/* 5. Pickup Jobs (Bento Grid) */
/* ========================================================================= */
.top-pickup-section {
  padding: 100px 0 150px;
  background-color: #f8f8f8;
}

.pickup-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.bento-indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  color: var(--color-navy);
}

.bento-progress-bg {
  width: 120px;
  height: 3px;
  background: #ddd;
  border-radius: 2px;
  overflow: hidden;
}

.bento-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--color-orange);
}

.pickup-bento-wrapper {
  position: relative;
  width: 100%;
  min-height: 500px;
  transition: height 0.4s ease-out;
  overflow: hidden;
}

.bento-group {
  display: grid;
  width: 100%;
  height: auto;
  gap: 16px;
  padding: 5px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

/* Layouts */
.bento-group.layout-left {
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "main sub1 sub2" "main sub3 sub4";
}

.bento-group.layout-right {
  grid-template-columns: 1fr 1fr 1.6fr;
  grid-template-rows: auto auto;
  grid-template-areas: "sub1 sub2 main" "sub3 sub4 main";
}

.bento-group.layout-center {
  grid-template-columns: 1fr 1.6fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "sub1 main sub2" "sub3 main sub4";
}

.bento-card.area-main {
  grid-area: main;
}
.bento-card.area-sub1 {
  grid-area: sub1;
}
.bento-card.area-sub2 {
  grid-area: sub2;
}
.bento-card.area-sub3 {
  grid-area: sub3;
}
.bento-card.area-sub4 {
  grid-area: sub4;
}

.bento-card .card-inner {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(19, 46, 75, 0.05);
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s;
}

.bento-card .card-inner:hover {
  transform: translateY(-4px);
}

.bento-card .card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.bento-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.bento-card .card-inner:hover .card-thumb img {
  transform: scale(1.05);
}

.bento-card .card-body {
  padding: 12px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meta-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 5px;
  font-weight: 500;
}

.meta-top .location i {
  color: var(--color-orange);
  margin-right: 3px;
}

.bento-card .title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-card .desc {
  display: none;
}

.tags-area {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: auto;
}

.tags-area .tag {
  font-size: 0.65rem;
  border: 1px solid #ddd;
  color: #666;
  padding: 2px 6px;
  border-radius: 4px;
}

.salary-area {
  margin-top: 8px;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 700;
  border-top: 1px dashed #eee;
  padding-top: 6px;
}

.salary-area .amount {
  font-size: 1.2rem;
  color: var(--color-orange);
  font-family: "Roboto", sans-serif;
  margin-right: 2px;
}

/* Main Card Override */
.bento-card.area-main .card-thumb {
  aspect-ratio: 16 / 9;
}

.bento-card.area-main .card-body {
  padding: 20px;
}

.bento-card.area-main .title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.bento-card.area-main .desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.6;
}

.bento-card.area-main .tags-area .tag {
  font-size: 0.75rem;
  padding: 3px 10px;
}

.bento-card.area-main .salary-area .amount {
  font-size: 1.6rem;
}

.pickup-footer {
  text-align: center;
  margin-top: 40px;
}

.btn-view-all {
  display: inline-block;
  padding: 15px 50px;
  background-color: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-view-all:hover {
  background-color: var(--color-navy);
  color: white;
  transform: translateY(-2px);
}

.btn-view-all i {
  margin-left: 8px;
}

/* ========================================================================= */
/* 6. Career Plus (キャリア情報) */
/* ========================================================================= */
.career-plus {
  background-color: var(--color-blue-bg);
  padding: 80px 0;
}

.career-plus-titlewrap {
  margin-bottom: 40px;
}

.career-main-flex {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.career-sidebar {
  flex-shrink: 0;
  width: 250px;
  background-color: white;
  border-radius: 8px;
  padding: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  padding: 0 20px 15px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--color-orange);
}

.career-category-tabs {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.career-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  border: none;
  background-color: transparent;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
}

.career-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--color-orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  z-index: 1;
}

.career-tab.active::before {
  transform: scaleY(1);
}

.career-tab:hover {
  background-color: var(--color-light-gray);
  color: var(--color-navy);
  opacity: 1;
}

.career-tab.active {
  background-color: var(--color-blue-bg);
  color: var(--color-navy);
  opacity: 1;
}

.career-plus-contents {
  flex-grow: 1;
  min-width: 0;
}

.career-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.career-card-item a {
  display: block;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.career-card-item a:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.career-card-item .card-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.career-card-item .card-text-content {
  padding: 15px;
}

.article-category-tag {
  display: inline-block;
  background-color: var(--color-navy);
  color: white;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
  font-weight: 500;
}

.career-card-item .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 10px;
}

.career-card-item .card-date {
  font-size: 0.8rem;
  color: var(--color-dark-gray);
  text-align: right;
}

/* ========================================================================= */
/* 7. Top Page Media Queries */
/* ========================================================================= */
/* --- max-width: 1200px --- */
@media (max-width: 1200px) {
  .career-card-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* --- max-width: 1024px --- */
@media (max-width: 1024px) {
  /* FV */
  .fv-container {
    flex-direction: column;
    text-align: center;
  }
  .fv-content {
    width: 100%;
    margin-bottom: 40px;
  }
  .fv-logo-wrap {
    text-align: center;
    margin-bottom: 20px;
  }
  .fv-logo-img {
    width: 180px;
    margin: 0 auto;
  }
  .fv-title {
    font-size: 3.5rem;
  }
  .fv-grid-visual {
    width: 100%;
    height: 400px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.5fr 1fr;
  }
  .cell-large {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .cell-square-top {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .cell-square-bottom {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  /* Career Plus */
  .career-main-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .career-sidebar {
    order: -1;
    width: 100%;
    padding: 0 0 20px 0;
    background: transparent;
    border-bottom: 1px solid #eee;
  }
  .sidebar-title {
    display: none;
  }
  .career-category-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .career-tab {
    width: 100%;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    position: relative;
  }
  .career-tab::before {
    content: none;
  }
  .career-tab.active {
    background: #132e4b;
    color: #fff;
    border-color: #132e4b;
  }
  .career-card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
  }

  .career-card-list > *:nth-child(n + 7) {
    display: none;
  }
}

/* --- max-width: 900px --- */
@media (max-width: 900px) {
  /* Map */
  .japan-map-interactive-container {
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }
  .map-visual-area {
    width: 100%;
    min-height: auto;
    border-radius: 12px 12px 0 0;
  }
  .pref-selection-area {
    width: 100%;
    border-left: none;
    border-top: 2px dashed #eee;
    padding: 30px 0 10px;
  }
  .pref-list-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
  .pref-list-buttons a {
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
  }
  .pref-list-buttons a i {
    display: none;
  }
  .city-list-container {
    grid-template-columns: 1fr;
    max-height: 300px;
  }
  .city-list-container a {
    justify-content: space-between;
    text-align: left;
  }
  .city-list-container a i {
    display: inline-block;
  }

  /* Pickup Bento Grid */
  .pickup-header {
    flex-direction: column;
    gap: 15px;
  }
  .bento-indicators {
    position: static;
    margin: 0;
  }
  .pickup-bento-wrapper {
    min-height: auto;
  }
  .bento-group,
  .bento-group.layout-left,
  .bento-group.layout-right,
  .bento-group.layout-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "main main"
      "sub1 sub2"
      "sub3 sub4";
    gap: 10px;
    position: absolute;
  }
  .bento-card.area-main .card-thumb {
    aspect-ratio: 16 / 8;
  }
  .bento-card.area-main .title {
    font-size: 1.1rem;
  }
  .bento-card.area-main .desc {
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
  }
  .bento-card.area-main .card-body {
    padding: 15px;
  }
  .bento-card:not(.area-main) .card-thumb {
    aspect-ratio: 16 / 9;
  }
  .bento-card:not(.area-main) .card-body {
    padding: 10px;
  }
  .bento-card:not(.area-main) .title {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }
  .bento-card:not(.area-main) .tags-area {
    display: none;
  }
  .bento-card:not(.area-main) .salary-area {
    margin-top: 5px;
    padding-top: 5px;
  }
  .bento-card:not(.area-main) .salary-area .amount {
    font-size: 1rem;
  }
}

/* --- max-width: 768px --- */
@media (max-width: 768px) {
  /* Feature Section */
  .feature-lists {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .feature-list-item.main-card {
    grid-row: span 1;
    height: 300px;
  }
  .feature-list-item.sub-card-item {
    height: 100px;
  }
  .feature-titlebox h3 {
    font-size: 1.3rem;
  }
  .sub-card-title {
    font-size: 1rem;
  }
  .sub-card-arrow {
    font-size: 1.5rem;
  }

  /* Map View Switching */
  .map-view-pc {
    display: none;
  }
  .map-view-sp {
    display: block;
  }
  .map-instruction.pc-only {
    display: none;
  }

  /* Line Search */
  .route-map-nav-wrapper {
    margin-bottom: 30px;
  }
  .station-sign-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* --- max-width: 600px --- */
@media (max-width: 600px) {
  .pref-list-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  .meta-top {
    flex-direction: column;
  }
}

/* --- max-width: 480px --- */
@media (max-width: 480px) {
  .fv-title {
    font-size: 3rem;
  }
  .station-sign-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .career-card-list {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------
   路線検索：その他の路線検索ボックス
------------------------------------------- */
.extra-line-search {
  margin-top: 30px;
  text-align: center;
  background-color: #f9f9f9;
  padding: 30px 20px;
  border-radius: 8px;
}

.extra-search-title {
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 1rem;
  color: #333;
}

.extra-search-title i {
  margin-right: 5px;
  color: #333;
}

.extra-search-form {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.extra-search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  background-color: #fff;
  appearance: none; /* iOS等のデフォルトスタイル解除 */
}

.extra-search-input::placeholder {
  color: #bbb;
}

.extra-search-btn {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s, opacity 0.3s;
}

.extra-search-btn:hover {
  background-color: #000;
  opacity: 0.8;
}

.extra-search-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #888;
}

/* スマホ表示用 (画面幅が狭いとき) */
@media screen and (max-width: 768px) {
  .extra-search-form {
    flex-direction: column; /* 縦並びにする */
    max-width: 100%;
  }

  .extra-search-input {
    width: 100%;
  }

  .extra-search-btn {
    width: 100%;
  }
}

.pc-dock-nav,
.sp-dock-nav {
  opacity: 0;
  visibility: hidden;
}
