/* ========================================
   マイページ モダンデザインシステム
   センセーショナルで美しいUI
   ======================================== */

:root {
  /* モダンカラーパレット */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --accent-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f5576c;
  --success-color: #4facfe;
  
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --text-light: #a0aec0;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-accent: #edf2f7;
  
  /* グラスモーフィズム */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  
  /* シャドウ */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  
  /* ボーダー半径 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* トランジション */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================================
   グローバルスタイル
   ======================================== */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ========================================
   ヘッダー モダンデザイン（!importantで優先度を確保）
   ======================================== */

.header {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-md) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  transition: var(--transition-base) !important;
}

/* デスクトップ・モバイル共通の表示制御 */
.desktop_user_name {
  display: inline;
}

.mobile_user_name {
  display: none;
}

.desktop_logout_text {
  display: inline;
}

.mobile_logout_text {
  display: none;
}

/* デスクトップ・モバイル共通の表示制御 */
.desktop_user_name {
  display: inline;
}

.mobile_user_name {
  display: none;
}

.desktop_logout_text {
  display: inline;
}

.mobile_logout_text {
  display: none;
}

/* デスクトップではモバイルメニューボタンを非表示 */
@media (min-width: 769px) {
  .mobile_menu_btn {
    display: none !important;
  }
  
  .desktop_user_name {
    display: inline !important;
  }
  
  .mobile_user_name {
    display: none !important;
  }
  
  .desktop_logout_text {
    display: inline !important;
  }
  
  .mobile_logout_text {
    display: none !important;
  }
}

.mypage_job_search_option_div{
  width: 100% !important;
}

/* モバイルではモバイルメニューボタンを表示 */
@media (max-width: 768px) {
  /* より具体的なセレクタでモバイルメニューボタンを強制表示 */
  .header .mobile_menu_btn,
  .mypage_header_section .mobile_menu_btn,
  .header_left .mobile_menu_btn,
  #mobileMenuBtn,
  button.mobile_menu_btn,
  button#mobileMenuBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1003 !important;
    width: 40px !important;
    height: 40px !important;
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    color: white !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: var(--transition-base) !important;
    box-shadow: var(--shadow-sm) !important;
    margin-right: 0.5rem !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .desktop_user_name {
    display: none !important;
  }
  
  .mobile_user_name {
    display: inline !important;
  }
  
  .desktop_logout_text {
    display: none !important;
  }
  
  .mobile_logout_text {
    display: inline !important;
  }


  .mypage_job_search_option_div{
    width: 100%;
  }

  .header_search_line_icon{
    display: none;
  }
}

.header:hover {
  box-shadow: var(--shadow-lg);
}

.list_headline_sticky {
  padding: 1rem 2rem !important;
  transition: var(--transition-base) !important;
}

.main_logo {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  transition: var(--transition-fast) !important;
}

.main_logo:hover {
  transform: translateY(-2px) !important;
}

.main_logo img {
  height: 40px !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)) !important;
  transition: var(--transition-fast) !important;
}

.main_logo:hover img {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)) !important;
}

.main_logo h1 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  background: var(--primary-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin: 0 !important;
}

/* ログアウトボタン */
.header_icon_item button {
  background: var(--primary-gradient) !important;
  color: white !important;
  border: none !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--radius-lg) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--transition-base) !important;
  box-shadow: var(--shadow-sm) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.header_icon_item button:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}

.header_icon_item button i {
  font-size: 1.1rem !important;
}

/* ========================================
   サイドバー モダンデザイン
   ======================================== */

.mypage_sidebar {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: 1px solid var(--glass-border) !important;
  min-height: calc(100vh - 80px) !important;
  width: 280px !important;
  padding: 2rem 0 !important;
  transition: var(--transition-base) !important;
  box-shadow: var(--shadow-md) !important;
}

.mypage_sidebar_inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.sidebar_menu_group {
  margin-bottom: 0.25rem;
}

.mypage_sidebar_item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.mypage_sidebar_item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--primary-gradient);
  transition: var(--transition-base);
  z-index: -1;
}

.mypage_sidebar_item:hover {
  color: white;
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.mypage_sidebar_item:hover::before {
  width: 100%;
}

.mypage_sidebar_item i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.5rem !important;
  min-width: 1.5rem !important;
  font-size: 1.05rem !important;
  flex-shrink: 0;
  color: #64748b;
}

.sidebar_count_badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 1rem;
  height: 1rem;
  margin-left: 0.2rem !important;
  padding: 0 6px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  background: var(--icon-color-good, #43b291) !important;
  color: #fff !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
}

/* サイドバー開閉ボタン */
.siderbar_open_close {
  background: var(--bg-accent);
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.siderbar_open_close:hover {
  background: var(--primary-gradient);
  border-color: transparent;
}

/* ========================================
   メインコンテンツエリア
   ======================================== */

.mypage_sidebar_applied_body {
  flex: 1;
  padding: 2rem;
  background: transparent;
}

.mypage_main_content {
  max-width: 1400px;
  margin: 0 auto;
}

/* ========================================
   カードデザイン（セクション）
   ======================================== */

.mypage_section {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  animation: fadeInUp 0.6s ease;
  width: 95%;
}

.mypage_section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

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

.mypage_section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
}

.mypage_section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* ========================================
   ボタンスタイル
   ======================================== */

.edit_btn,
button[type="submit"],
.login_btn,
.attach_btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.875rem 1rem !important;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-width: 150px !important;
}

.edit_btn::before,
button[type="submit"]::before,
.login_btn::before,
.attach_btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-gradient);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-base);
}

.edit_btn:hover,
button[type="submit"]:hover,
.login_btn:hover,
.attach_btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.edit_btn:hover::before,
button[type="submit"]:hover::before,
.login_btn:hover::before,
.attach_btn:hover::before {
  opacity: 1;
}

/* セカンダリボタン */
.archive,
.delete,
.job_pick {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--bg-accent);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.archive:hover {
  background: var(--success-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.delete:hover {
  background: var(--secondary-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.job_pick:hover {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   フォームスタイル
   ======================================== */

.form_input,
.info_table,
.detail_content_inner {
  margin-bottom: 1.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="month"],
textarea,
select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--bg-accent);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: white;
  color: var(--text-primary);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ========================================
   テーブルスタイル
   ======================================== */

.info_table_row {
  display: flex;
  padding: 1rem 0;
  border-bottom: 1px solid var(--bg-accent);
  transition: var(--transition-fast);
}

.info_table_row:hover {
  background: var(--bg-secondary);
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: var(--radius-md);
}

.info_table_name {
  width: 30%;
  font-weight: 600;
  color: var(--text-secondary);
}

.info_table_column {
  width: 70%;
  color: var(--text-primary);
}

/* ========================================
   求人検索・リスト
   ======================================== */

.list_content_item {
  background: white;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.list_content_item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
  transform: scaleY(0);
  transition: var(--transition-base);
}

.list_content_item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

.list_content_item:hover::before {
  transform: scaleY(1);
}

.detail_content_plan_title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.detail_content_salaly {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.detail_content_column {
  min-width: 100px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail_content_item {
  flex: 1;
  color: var(--text-primary);
}

/* ========================================
   ファイルアップロード
   ======================================== */

.file_upload_container {
  background: white;
  border: 2px dashed var(--bg-accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.file_upload_container:hover {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
}

.file_preview {
  max-width: 120px;
  max-height: 120px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.attach_box {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

input[type="file"] {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--bg-accent);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
}

/* ========================================
   進行中の選考（トップページ）
   ======================================== */

.summary_content {
  overflow-x: auto;
}

.summary_inner {
  display: flex;
  gap: 0.5rem;
  min-width: max-content;
}

.summary_column,
.summary_job {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.column_item {
  padding: 0.75rem 1rem !important;
  background: white;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--bg-accent);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.column_item:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
  transform: scale(1.02);
}

.status_title {
  font-weight: 700;
  background: var(--primary-gradient);
  color: white;
  cursor: pointer;
}

.flow_item {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  font-weight: 600;
}

/* ========================================
   レスポンシブ対応（完全対応）
   ======================================== */

/* タブレット対応 */
@media (max-width: 1024px) {
  .mypage_sidebar {
    width: 240px;
  }
  
  .mypage_sidebar_applied_body {
    width: calc(100vw - 240px);
  }
  
  .mypage_content {
    width: calc(100vw - 240px);
  }
  
  .mypage_section {
    padding: 1.5rem;
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  /* ヘッダー */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    display: block !important;
  }

  .mypage_data_edit_title{
    width: 100% !important;
  }
  
  .list_headline_sticky {
    padding: 0.75rem 1rem !important;
  }

  .list_headline_sticky .main_logo img{
    width: 20%;
    padding: 0;
    object-fit: contain;
  }
  
  .main_logo {
    gap: 0.5rem !important;
    height: unset !important;
    width: 50% !important;
    margin-left: unset !important;
    justify-content: unset !important;
  }
  
  .main_logo img {
    height: 32px !important;
  }
  
  .main_logo h1 {
    font-size: 1.2rem !important;
  }
  
  .main_logo h1 span:last-child {
    display: none !important; /* ユーザー名を非表示 */
  }
  
  .header_icon_item button {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    min-width: auto !important;
  }
  
  .header_icon_item button span {
    display: none !important; /* テキストを非表示 */
  }
  
  .header_icon_item button i {
    margin: 0 !important;
    font-size: 1.2rem !important;
  }
  
  /* モバイルメニューボタン */
  .mobile_menu_btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    margin-right: 0.5rem;
    z-index: 1003;
  }
  
  .mobile_menu_btn:active {
    transform: scale(0.95);
  }
  
  .mobile_menu_btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  
  /* サイドバー */
  .mypage_sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
  }
  
  .mypage_sidebar.active {
    left: 0;
  }
  
  /* サイドバーオーバーレイ */
  .sidebar_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  
  .sidebar_overlay.active {
    display: block;
  }
  
  /* メインコンテンツ */
  .mypage_sidebar_applied_body {
    width: 100vw !important;
    padding: 1rem !important;
    /* margin-top: 60px !important; */
  }

  .chat_body{
    height: calc(100vh - 4rem - 200px);
  }

  .paginate_inner{
    overflow: auto;
  }
  
  .mypage_content {
    width: 100vw !important;
  }
  
  .mypage_main_content {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* セクション */
  .mypage_section {
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    border-radius: var(--radius-lg) !important;
  }
  
  .mypage_section h2 {
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* ボタン */
  .edit_btn,
  button[type="submit"],
  .login_btn,
  .attach_btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    /* min-width: 120px !important; */
    width: 100% !important;
  }
  
  .archive,
  .delete,
  .job_pick {
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
    width: 100% !important;
  }
  
  /* フォーム */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="number"],
  input[type="month"],
  textarea,
  select {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  label {
    font-size: 0.9rem;
  }
  
  /* テーブル */
  .info_table_row {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    margin-bottom: 0.75rem;
  }
  
  .info_table_row:hover {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .info_table_name {
    width: 100% !important;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 0.3rem !important;
  }
  
  .info_table_column {
    width: 100% !important;
    font-size: 0.95rem;
    padding:0.3rem !important;
  }
  
  .chat_input {
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    height: 200px;
  }
  /* 求人リスト */
  .list_content {
    gap: 1rem !important;
  }
  
  .list_content_item {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .list_content_item:hover {
    transform: translateX(0);
  }
  
  .detail_content_plan_title {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  
  .detail_content_column {
    min-width: 80px;
    font-size: 0.85rem;
  }
  
  .detail_content_item {
    font-size: 0.9rem;
  }
  
  .detail_content_salaly {
    /* flex-direction: column; */
    gap: 0.25rem;
    margin-bottom: 0.75rem;
  }

  .status-tag{
    margin: 1rem;
    justify-content: center;
    display: flex
;
  }

  .plan_top_content{
    position:unset !important;
  }
  
  /* ファイルアップロード */
  .file_upload_container {
    padding: 1rem;
  }
  
  .attach_box {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  input[type="file"] {
    font-size: 0.9rem;
  }
  
  /* 進行中の選考 */
  .summary_content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .selection_summary_cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .summary_card {
    padding: 1rem;
  }
  
  .summary_card_icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .summary_card_content h3 {
    font-size: 1.5rem;
  }
  
  .summary_card_content p {
    font-size: 0.85rem;
  }
  
  /* 求人進捗カード */
  .job_progress_card {
    padding: 1.25rem;
  }
  
  .job_header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .job_info h3.job_title {
    font-size: 1.1rem;
  }
  
  .job_info p.company_name {
    font-size: 0.85rem;
  }
  
  .progress_percentage {
    text-align: left;
  }
  
  .percentage_number {
    font-size: 1.5rem;
  }
  
  .percentage_label {
    font-size: 0.75rem;
  }
  
  /* タイムライン */
  .selection_timeline::before {
    left: 12px;
  }
  
  .timeline_dot {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
  
  .timeline_content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
  }
  
  .stage_name {
    font-size: 0.9rem;
  }
  
  .stage_status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    align-self: flex-end;
  }
  
  /* 検索フォーム */
  .mypage_job_posting .report_download {
    padding: 1rem;
  }
  
  .mypage_job_posting .report_download form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mypage_job_posting .search_option_group {
    width: 100% !important;
    min-width: auto;
  }
  
  .mypage_search_fab {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  
  .mypage_search_form_modal {
    width: 95%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }
  
  .mypage_search_form_header {
    padding: 1rem 1.25rem;
  }
  
  .mypage_search_form_header h3 {
    font-size: 1.25rem;
  }
  
  .mypage_search_form_content {
    padding: 1.25rem;
  }
  
  .mypage_search_form_content .report_download form {
    grid-template-columns: 1fr;
  }
  
  /* 検索結果カウント */
  .mypage_job_search_result_count {
    padding: 1rem 1.25rem;
    margin: 1rem 0;
  }
  
  .mypage_result_count_container {
    gap: 0.75rem;
  }
  
  .mypage_result_count_icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .mypage_result_count_number {
    font-size: 1.5rem;
  }
  
  .mypage_result_count_label {
    font-size: 1rem;
  }
  
  .mypage_result_count_keyword {
    font-size: 0.85rem;
  }
  
  /* 推薦求人 */
  .recommend_reactions {
    padding: 0.85rem;
  }
  
  .recommend_reactions:hover {
    transform: translateY(0);
  }
  
  .job_title_main {
    font-size: 0.95rem;
  }
  
  .company_name_sub {
    font-size: 0.8rem;
  }
  
  .recommend_reactions_from_jobseeker_text {
    font-size: 0.8rem;
  }
  
  /* ページネーション */
  .paginate_inner {
    margin-top: 1.5rem;
  }
  
  /* スクロールバー（モバイル用細い） */
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
}

/* 極小デバイス対応 */
@media (max-width: 480px) {
  .main_logo h1 {
    font-size: 1rem;
  }
  
  .mypage_section h2 {
    font-size: 1.2rem;
  }
  
  .detail_content_plan_title {
    font-size: 1rem;
  }
  
  .summary_card_content h3 {
    font-size: 1.3rem;
  }
  
  .percentage_number {
    font-size: 1.3rem;
  }
}

/* ========================================
   追加のモバイル対応 - フォームとボタングループ
   ======================================== */

@media (max-width: 768px) {
  /* フォームグループ */
  .form_group,
  .form_input {
    margin-bottom: 1.25rem;
  }
  
  /* ボタングループ */
  .button_group,
  .form_button_group,
  .action_buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  
  .button_group button,
  .button_group a,
  .form_button_group button,
  .form_button_group a,
  .action_buttons button,
  .action_buttons a {
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* データテーブル */
  .data_table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .data_table table {
    min-width: 600px;
  }
  
  /* ファイルアップロードエリア */
  .file_item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .file_left,
  .file_right {
    width: 100% !important;
  }
  
  /* 詳細ページヘッダー */
  .detail_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  /* カードグリッド */
  .card_grid {
    grid-template-columns: 1fr !important;
  }
  
  /* モバイル用のヘルパークラス */
  .mobile_hidden {
    display: none !important;
  }
  
  .mobile_visible {
    display: block !important;
  }
  
  .mobile_flex {
    display: flex !important;
  }
  
  /* モバイルテキストサイズ */
  .mobile_text_sm {
    font-size: 0.85rem;
  }
  
  .mobile_text_md {
    font-size: 0.95rem;
  }
  
  .mobile_text_lg {
    font-size: 1.1rem;
  }
  
  /* モバイルスペーシング */
  .mobile_p_sm {
    padding: 0.5rem !important;
  }
  
  .mobile_p_md {
    padding: 1rem !important;
  }
  
  .mobile_p_lg {
    padding: 1.5rem !important;
  }
  
  .mobile_m_sm {
    margin: 0.5rem !important;
  }
  
  .mobile_m_md {
    margin: 1rem !important;
  }
  
  .mobile_m_lg {
    margin: 1.5rem !important;
  }
  
  /* フレックスレイアウト調整 */
  .flex {
    flex-wrap: wrap;
  }
  
  .flex.mobile_no_wrap {
    flex-wrap: nowrap;
  }
  
  /* グリッドレイアウト調整 */
  .grid_2_col,
  .grid_3_col,
  .grid_4_col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* チャット・メッセージエリア */
  .chat_container {
    height: calc(100vh - 140px);
  }
  
  .message_input_area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  
  /* スケジュール・カレンダー */
  .calendar_container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .calendar_table {
    min-width: 600px;
  }
  
  /* 統計・グラフエリア */
  .stats_container {
    flex-direction: column;
  }
  
  .stat_item {
    width: 100% !important;
  }
  
  /* モーダル調整 */
  .modal_content {
    width: 95vw !important;
    max-width: none !important;
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  /* パンくずリスト */
  .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  
  /* タブメニュー */
  .tab_menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  
  .tab_item {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  
  /* アコーディオン */
  .accordion_header {
    font-size: 1rem;
    padding: 0.85rem 1rem;
  }
  
  .accordion_content {
    padding: 1rem;
  }
  
  /* 通知・アラート */
  .notification,
  .alert {
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
  }
  
  /* ドロップダウンメニュー */
  .dropdown_menu {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* ツールチップ */
  .tooltip {
    font-size: 0.8rem;
    max-width: 90vw;
  }
  
  /* ローディング */
  .loading_spinner {
    transform: scale(0.8);
  }
  
  /* プログレスバー */
  .progress_bar {
    height: 6px;
  }
  
  /* バッジ */
  .badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  
  /* アバター */
  .avatar {
    width: 40px;
    height: 40px;
  }
  
  .avatar_large {
    width: 60px;
    height: 60px;
  }
  
  /* セパレーター */
  .separator {
    margin: 1rem 0;
  }
  
  /* カード内のアクション */
  .card_actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .card_actions button,
  .card_actions a {
    width: 100%;
  }
  
  /* フッター調整 */
  footer {
    padding: 1.5rem 1rem;
  }
  
  footer .footer_content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  /* 検索バー */
  .search_bar {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .search_input {
    width: 100%;
  }
  
  /* フィルター */
  .filter_container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .filter_item {
    width: 100%;
  }
  
  /* ソート */
  .sort_container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  /* ページネーション調整 */
  .pagination {
    font-size: 0.9rem;
  }
  
  .pagination a,
  .pagination span {
    padding: 0.5rem 0.75rem;
    min-width: 36px;
  }
  
  /* タグリスト */
  .tag_list {
    gap: 0.5rem;
  }
  
  .tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  /* ステップインジケーター */
  .steps_container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .step_item {
    font-size: 0.85rem;
  }
  
  /* プライス表示 */
  .price_display {
    font-size: 1.5rem;
  }
  
  /* レーティング */
  .rating {
    font-size: 1rem;
  }
  
  /* プロフィールカード */
  .profile_card {
    flex-direction: column;
    text-align: center;
  }
  
  .profile_avatar {
    margin: 0 auto 1rem;
  }
  
  /* リストビュー vs グリッドビュー */
  .view_toggle {
    display: none; /* モバイルでは常にリストビュー */
  }
  
  /* スライダー・カルーセル */
  .slider_container {
    -webkit-overflow-scrolling: touch;
  }
  
  /* ビデオ・メディア */
  .media_container {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
  
  /* イメージギャラリー */
  .image_gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* マップコンテナ */
  .map_container {
    height: 300px;
    border-radius: var(--radius-md);
  }
  
  /* コードブロック */
  .code_block {
    font-size: 0.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* 引用 */
  blockquote {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    border-left-width: 3px;
  }
  
  /* リストスタイル */
  ul, ol {
    padding-left: 1.5rem;
  }
  
  li {
    margin-bottom: 0.5rem;
  }
  
  /* テキストエリア */
  textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  /* チェックボックス・ラジオボタン */
  .checkbox_group,
  .radio_group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .checkbox_item,
  .radio_item {
    width: 100%;
  }
  
  /* トグルスイッチ */
  .toggle_switch {
    transform: scale(0.9);
  }
  
  /* 範囲スライダー */
  .range_slider {
    width: 100%;
  }
  
  /* ファイルプレビュー */
  .file_preview_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  /* エラーメッセージ */
  .error_message {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
  
  /* サクセスメッセージ */
  .success_message {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
  
  /* ワーニングメッセージ */
  .warning_message {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
  
  /* インフォメッセージ */
  .info_message {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}

/* ========================================
   アニメーション
   ======================================== */

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.animated-item {
  animation: slideInRight 0.4s ease;
}

/* ========================================
   ローディング画面の改善
   ======================================== */

.loader {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.loader::after {
  border: 0.5rem solid transparent;
  border-radius: 50%;
  border-right: 0.5rem solid #ffffff;
  border-bottom: 0.5rem solid rgba(255, 255, 255, 0.7);
  border-top: 0.5rem solid rgba(255, 255, 255, 0.5);
  border-left: 0.5rem solid rgba(255, 255, 255, 0.3);
  animation: loader 1.5s ease-in-out infinite;
}

/* ========================================
   スクロールバーカスタマイズ
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}

/* ========================================
   フラッシュメッセージ
   ======================================== */

.flash_message {
  background: var(--success-gradient);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}


/* ========================================
   追加のユーティリティクラス
   ======================================== */

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.shadow-hover {
  transition: var(--transition-base);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.mypage_job_detail .plan_detail_inner {
  background: white;;
}

.mypage_content{
  width: calc(100vw - 280px);
}

/* すべてのページで一貫した幅を保証 */
.mypage_sidebar_applied_body {
  width: calc(100vw - 280px);
}

.mypage_main_content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* マイページ専用のfillクラスオーバーライド */
.mypage_sidebar_applied_body .fill {
  width: calc(100vw - 280px) !important;
}

/* マイページ検索フォームの幅調整 */
.mypage_job_posting .search_option_group {
  width: calc(96% / 4) !important; /* 6列から4列に変更 */
  min-width: 200px;
}

.mypage_job_posting .max_width.search_option_group {
  width: 100% !important;
  min-width:unset !important;
}

.mypage_job_posting .report_download {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.mypage_job_posting .report_download form {
  /* display: grid; */
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: end;
}

.list_content{
  display:block !important;
}

.mypage_job_posting .search_option_group .search_option_title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.mypage_job_posting .search_option_group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--bg-accent);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.mypage_job_posting .search_option_group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mypage_job_posting .search_option_group button {
  /* width: 100%; */
  min-width:unset !important;
  padding: 0.75rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.mypage_job_posting .search_option_group button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mypage_job_posting .search_option_group .filter_btn {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--bg-accent);
}

.mypage_job_posting .search_option_group .filter_btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
}

/* フローティング検索ボタン */
.mypage_search_fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-base);
  z-index: 1000;
  border: none;
  outline: none;
}

.mypage_search_fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.mypage_search_fab:active {
  transform: scale(0.95);
}

/* 検索オーバーレイ */
.mypage_search_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 求職者情報変更モーダル（選択肢の文字が見切れないように） */
#edit_modal {
  max-height: 85vh;
  overflow-y: auto;
  padding-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
  min-width: 720px;
}
#edit_modal form {
  padding: 1.5rem;
}
#edit_modal .job_seeker_columns {
  padding-bottom: 0;
}
#edit_modal .job_seeker_columns .form_input {
  margin: 0;
  margin-bottom: 0;
  margin-top: 8px;
  width: 48% !important;
}
#edit_modal .job_seeker_columns .form_input label {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
#edit_modal .job_seeker_columns .form_input input,
#edit_modal .job_seeker_columns .form_input select,
#edit_modal .job_seeker_columns .form_input textarea {
  padding: 0.6rem 0.875rem;
  font-size: 0.95rem;
}
#edit_modal .job_seeker_columns .form_input textarea {
  min-height: 2.5rem;
}
/* 求職者情報変更モーダル - 狭い画面では1列 */
@media (max-width: 768px) {
  #edit_modal {
    min-width: unset;
    padding: 1rem;
  }
  #edit_modal .job_seeker_columns .form_input {
    width: 100% !important;
  }
  /* ステップ型選択はスマホでは縦並び */
  #edit_modal .step_select_flex,
  .modaal-content-container .step_select_flex {
    flex-direction: column;
  }
  #edit_modal .step_select_flex select,
  .modaal-content-container .step_select_flex select {
    width: 100% !important;
  }
}
/* modaalでラップされたモーダル内のselect/inputは高さを解除（見切れ防止） */
.modaal-content-container .form_input select,
.modaal-content-container .form_input input {
  height: unset !important;
  min-height: unset !important;
}

/* 検索フォームモーダル */
.mypage_search_form_modal {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mypage_search_form_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--primary-gradient);
  color: white;
  border-bottom: 1px solid var(--glass-border);
}

.mypage_search_form_header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.mypage_search_close_btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mypage_search_close_btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.mypage_search_form_content {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

/* モーダル内の検索フォーム調整 */
.mypage_search_form_content .report_download {
  max-width: none;
  margin: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.mypage_search_form_content .report_download form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
}

.mypage_search_form_content .search_option_group {
  width: 100% !important;
  min-width: auto;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .mypage_search_fab {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  
  .mypage_search_form_modal {
    width: 95%;
    max-height: 90vh;
  }
  
  .mypage_search_form_content .report_download form {
    grid-template-columns: 1fr;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 検索結果件数表示のデザイン */
.mypage_job_search_result_count {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  animation: fadeInUp 0.6s ease;
  max-width: 1000px;
  display: block;
  margin: auto;
}

.mypage_job_search_result_count:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mypage_result_count_container {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mypage_result_count_icon {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.mypage_result_count_icon_empty {
  background: var(--bg-accent);
  color: var(--text-secondary);
}

.mypage_result_count_text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.mypage_result_count_keyword {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.mypage_result_count_number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.mypage_result_count_label {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* モバイル用の調整 */
.mypage_job_search_result_count_mobile {
  margin: 1rem;
  padding: 1rem 1.5rem;
}

.mypage_job_search_result_count_mobile .mypage_result_count_container {
  gap: 0.75rem;
}

.mypage_job_search_result_count_mobile .mypage_result_count_icon {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.mypage_job_search_result_count_mobile .mypage_result_count_number {
  font-size: 1.5rem;
}

.mypage_job_search_result_count_mobile .mypage_result_count_label {
  font-size: 1rem;
}

/* サイドバーが縮小された時のスタイル */
.mypage_sidebar[style*="width: 90px"] .mypage_sidebar_item {
  justify-content: center;
  padding: 1rem 0.5rem;
}

.mypage_sidebar[style*="width: 90px"] .mypage_sidebar_item i {
  font-size: 1.4rem;
  margin: 0;
}

.mypage_sidebar[style*="width: 90px"] .mypage_sidebar_inner {
  padding: 0 0.5rem;
}

.mypage_content .mypage_section{
  background: white;
}

.mypage_section_header_sticky{
  display: block !important;
  max-width: 1000px !important;
  padding: 0 1.2rem;
}

.file_left{
  width: unset !important;
}

/* 選考進捗の新しいビジュアルスタイル
   ======================================== */

/* サマリーカード */
.selection_summary_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary_card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-base);
  border: 1px solid var(--border-light);
}

.summary_card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.summary_card_icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.summary_card_content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.summary_card_content p {
  margin: 0.25rem 0 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* 求人別進捗カード */
.job_progress_container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job_progress_card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-base);
}

.job_progress_card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.job_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.job_info h3.job_title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.job_info p.company_name {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

.progress_percentage {
  text-align: right;
  flex-shrink: 0;
}

.percentage_number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.percentage_label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* プログレスバー */
.progress_bar_container {
  margin-bottom: 1.5rem;
}

.progress_bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress_fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
  position: relative;
}

.progress_fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* タイムライン */
.selection_timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.selection_timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
  z-index: 1;
}

.timeline_item {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.timeline_dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: var(--transition-base);
}

.timeline_item.completed .timeline_dot {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.timeline_item.skipped .timeline_dot {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #8b4513;
  box-shadow: 0 4px 12px rgba(252, 182, 159, 0.3);
}

.timeline_item.current .timeline_dot {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
  animation: pulse 2s infinite;
}

.timeline_item.pending .timeline_dot {
  background: var(--border-light);
  color: var(--text-light);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.timeline_content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.timeline_item.completed .timeline_content {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
  border: 1px solid rgba(79, 172, 254, 0.2);
}

.timeline_item.skipped .timeline_content {
  background: linear-gradient(135deg, rgba(255, 236, 210, 0.3) 0%, rgba(252, 182, 159, 0.3) 100%);
  border: 1px solid rgba(252, 182, 159, 0.4);
}

.timeline_item.current .timeline_content {
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
  border: 1px solid rgba(240, 147, 251, 0.2);
  box-shadow: 0 2px 8px rgba(240, 147, 251, 0.1);
}

.timeline_item.pending .timeline_content {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}

.stage_name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.stage_status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stage_status.completed {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.stage_status.skipped {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #8b4513;
}

.stage_status.current {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  animation: pulse 2s infinite;
}

.stage_status.pending {
  background: var(--border-light);
  color: var(--text-secondary);
}

.mypage_top .summary_content{
  height: calc(100% - 135px);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .list_headline_sticky .flat_page_list{
    width: calc(100% - 40px) !important;
  }

  .header_info_group {
    width:40px !important;
  }

  .list_headline_sticky .header_user_info{
    width: 100% !important;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0 !important;
    margin: 0 !important;
   }

   .working_status{
    width:100%;
    top: unset !important;
    left: unset !important;
   }

  .selection_summary_cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .summary_card {
    padding: 1rem;
  }
  
  .summary_card_icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .summary_card_content h3 {
    font-size: 1.5rem;
  }
  
  .job_header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .progress_percentage {
    text-align: left;
  }
  
  .timeline_content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* サイドバーログアウトボタンのスタイル */
  .sidebar_logout_group {
    margin-top: auto;
  }

  .sidebar_logout_btn {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .sidebar_logout_btn:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #dc3545;
    transform: translateX(4px);
  }

  .sidebar_logout_btn i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
  }
  
  .stage_status {
    align-self: flex-end;
  }
}

/* 推奨求人リアクションスタイル */
.recommend_reactions_job_title {
  margin-bottom: 0.5rem;
}

.job_title_main {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.job_title_link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.job_title_link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.job_title_link::after {
  content: "🔗";
  font-size: 0.75rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.company_name_sub {
  font-size: 0.875rem;
  color: #2563eb;
  font-weight: 600;
  opacity: 1;
  margin-bottom: 0.25rem;
  background: #dbeafe;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid #93c5fd;
}

.job_id_info {
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--bg-accent);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 0.25rem;
  font-family: monospace;
}

.recommend_reactions {
  padding: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.recommend_reactions:hover {
  background: var(--bg-accent);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recommend_reactions:hover .job_title_link {
  color: var(--primary-hover);
  text-decoration: underline;
}

.recommend_reactions:hover .job_title_link::after {
  opacity: 1;
  transform: scale(1.1);
}

.recommend_reactions_from_jobseeker_text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}