@charset "UTF-8";

/* ==========================================================================
   Modern Top Page Styles
   ========================================================================== */

/* 260807 ここにあった :root を common.css の :root へ統合した。
   page.top.css は import.php の最後 + 各テンプレートの <link> でも読まれるため、
   ここで :root を宣言すると common.css を必ず後勝ちで潰す。**書き戻さないこと。**
   --primary-color / --accent-color / --text-main / --text-sub / --bg-white /
   --border-color / --shadow-sm..lg / --radius-sm / --radius-md / --font-family-base /
   --font-size-base / --width-container は全て common.css:300 付近にある。 */

body.modern-theme {
  font-family: var(--font-family-base);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: var(--font-size-base); /* Applied */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Reset tweaks for modern theme if needed */
.modern-theme a {
  text-decoration: none;
  transition: all 0.3s ease;
  color: inherit;
}
.modern-theme a:hover {
  opacity: 0.8;
}
.modern-theme img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Container */
.container {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 30px 30px; /* Added bottom padding for footer spacing */
  box-sizing: border-box; /* Ensure padding is included */
}
@media (max-width: 767px) {
    .container {
      padding: 20px 15px 20px;
    }

}

/* Search Status - Same as search page */
.search-status {
  margin-bottom: 30px; /* 下線の下に余白を追加 */
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  padding-top: 0;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.search-status p {
  margin: 0;
  font-size: 16px;
  color: var(--text-main);
}
.search-status em {
  font-weight: 700;
  font-size: 150%;
  color: var(--primary-color);
  margin: 0 0.5em;
  font-style: normal;
}

/* Section Common */
.section-container {
  padding: 80px 0;
}
.section-container.bg-light {
  background-color: var(--bg-light);
}
.section-header {
  margin-bottom: 50px;
  text-align: center;
}
.section-en-title {
  display: block;
  font-size: 16px; /* Increased */
  color: var(--primary-color);
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.section-jp-title {
  font-size: 36px; /* Increased */
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}
@media (max-width: 767px) {
  .section-container { padding: 30px 0; }
    
  .section-header {
      margin-bottom: 20px;
  }
  .section-en-title {
    margin-bottom: 0;
  }
  .section-jp-title { font-size: 24px; }
}

/* ==========================================================================
   Header Styles (Override & Modernize)
   ========================================================================== */
.site-header {
  /* passthrough wrapper — visual / position is handled by inner .header */
}

/* Ensure inner container behaves flex-like or clears floats */
/* Increase specificity to override common.css */
body.modern-theme #header .inner,
#header .inner {
  max-width: var(--width-container) !important; /* Aligned with variable */
  margin: 0 auto !important;
  padding: 10px 15px !important; /* Aligned padding */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box !important; /* Match container */
  width: 100% !important; /* Ensure it takes full width up to max-width */
}

/* Logo Fix */
#header .siteid {
  float: none; /* Disable legacy float */
  margin: 0;
  padding: 5px 0 5px 0; /* Reduced padding */
  width: auto;
}
#header .siteid h1 {
  margin: 0;
  padding: 0;
  line-height: 1;
}
#header .siteid img {
  max-width: 220px; /* Constrain logo size */
  height: auto;
  display: block;
  margin-top: -5px; /* Slight lift up */
}
@media (max-width: 767px) {
  #header .siteid img {
    max-width: 150px;
    max-height: inherit;
    margin-top: 0;
    padding-top: 0;
  }
}

/* Header Navigation */
#header_nav {
  float: none; /* Disable legacy float */
  display: flex;
  align-items: center;
}
@media (max-width: 767px) {
  #header_nav {
    display: block !important;
  }
}

#gnav, #pnav {
  float: none; /* Disable legacy float */
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center; /* Vertical center alignment */
  gap: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}
/* Separate left menu from right buttons */
#gnav {
  flex-shrink: 0;
}
#pnav {
  margin-left: 40px;
  flex-shrink: 0;
}

#gnav li, #pnav li {
  margin-left: 20px;
  float: none; /* Disable legacy float */
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 767px) {
    #gnav li, #pnav li {
      padding: 0 0;
      margin-left: 0; 
    }
}
/* Group login/mypage and register buttons together */
#pnav li:first-child {
  margin-right: 0 !important;
  margin-left: auto;
}
#pnav li.drop_down {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Add small gap between buttons using the button's margin */
.btn-header-login,
.btn-header-mypage {
  margin-right: 8px;
}

/* Ensure buttons are displayed inline */
#pnav li.pnav-buttons {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

#pnav li.pnav-buttons a {
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
@media (max-width: 767px) {
  #pnav li:first-child {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #pnav li.pnav-buttons {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
#gnav li a, #pnav li a {
  font-weight: 700;
  font-size: 16px; /* Increased */
  color: var(--text-main);
  display: block;
  padding: 15px 15px;
  line-height: 1.4;
  transition: all 0.3s;
}
#gnav li a:hover, #pnav li a:hover {
  color: var(--primary-color);
}

/* Login/MyPage Button Styles */
.btn-header-login,
.btn-header-mypage {
  background: var(--primary-color);
  color: #fff !important;
  border-radius: 25px;
  padding: 10px 20px !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}
.btn-header-login:hover,
.btn-header-mypage:hover {
  background: var(--primary-dark);
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
  transform: translateY(-1px);
}
.btn-header-login i,
.btn-header-mypage i {
  font-size: 16px;
  flex-shrink: 0;
}

/* Register Button Styles */
.btn-header-register {
  background: var(--primary);
  color: #fff !important;
  border-radius: 25px;
  padding: 10px 20px !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(153, 47, 59, 0.2);
}
.btn-header-register:hover {
  background: var(--primary-dark);
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(153, 47, 59, 0.3);
  transform: translateY(-1px);
}
.btn-header-register i {
  font-size: 16px;
  flex-shrink: 0;
}

/* Register Page Notice */
.register-page-notice {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-main);
}

/* Company Link Box on Register Page */
/* 260807 橙（#fff5e6 の地 + 2px #ff9800 の枠）をブランドのペール系へ寄せた。
   /register.html でこの箱の中に入っている「企業会員登録はこちら」は
   var(--primary) #992F3B の枠線ボタンで、橙の外枠と色がぶつかっていた。 */
.company-link-box {
  background: linear-gradient(135deg, var(--primary-pale) 0%, #FFFCFC 100%);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(153, 47, 59, 0.08);
}
.company-link-title {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.5;
}
.company-link-text {
  font-size: 0.95em;
  color: var(--text-sub);
  margin-bottom: 24px;
  line-height: 1.7;
}
.company-link-button-wrap {
  margin-top: 8px;
}
@media (max-width: 767px) {
    .company-link-box {
        border-radius: 12px;
        padding: 20px 10px;
        margin-top: 30px;
    }
}



/* Company Register Button on Register Page */
.btn-company-register {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(153, 47, 59, 0.25);
  font-size: 15px;
  line-height: 1.5;
}
.btn-company-register:hover {
  background: var(--primary-dark);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(153, 47, 59, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-company-register i {
  margin-right: 8px;
  font-size: 16px;
}

/* Login Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  display: none;
}
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}
.modal-close:hover {
  color: var(--text-main);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
}
.modal-message {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 25px;
  line-height: 1.6;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.btn-modal-login {
  display: block;
  height: 53px;
  padding: 12px;
  background: var(--primary-color);
  color: #fff!important;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-modal-login:hover {
  background: var(--primary-dark);
  color: #fff;
}
.btn-modal-register {
  display: block;
  padding: 12px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-modal-register:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 767px) {
    .btn-modal-login,
    .btn-modal-register {
        height: 50px;
        border-width: 2px;
        font-size: clamp(13px, 3.0vw, 15px);
        line-height: 1.8em;
    }
    
}

/* ========== Registration Button Highlight ========== */
/* Target the "New Registration" list item specifically */
#pnav li.drop_down {
  margin-left: 30px;
}

#pnav li.drop_down > span {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px; /* Increased padding */
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px; /* Increased */
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(153, 47, 59, 0.2);
}
#pnav li.drop_down > span:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(153, 47, 59, 0.3);
}
#pnav li.drop_down > span i {
  display: none; /* Hide legacy icon if not needed */
}

/* Dropdown Menu Override */
.drop_down_list {
  top: 120%; /* Space below button */
  right: 0; /* Align to right edge of parent */
  left: auto; /* Override any left positioning */
  margin-top: 5px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  background: #fff;
  min-width: 220px; /* Increased for Japanese text */
  padding: 10px 0;
  display: none; /* Controlled by hover usually, or JS */
  position: absolute;
  z-index: 100;
  overflow: hidden; /* Fix for hover overflow */
  box-sizing: border-box;
}
/* Show dropdown on hover */
li.drop_down:hover .drop_down_list {
  display: block;
}

/* Specific fix for #pnav dropdown to prevent text overflow */
#pnav .drop_down_list {
  right: 0 !important; /* Force right alignment */
  left: auto !important; /* Override any left positioning */
  min-width: 220px !important; /* Ensure sufficient width for Japanese text */
}

.drop_down_list li {
  margin: 0;
  width: 100%;
}
.drop_down_list li a {
  padding: 12px 20px; /* Increased padding */
  color: var(--text-main);
  font-weight: normal;
  display: block;
  transition: background 0.2s;
  font-size: 15px; /* Increased */
  box-sizing: border-box; /* Fix for width issue */
  white-space: nowrap; /* Prevent text wrapping */
  overflow: visible; /* Ensure text is visible */
  text-overflow: clip; /* Don't clip text */
  text-align: center; /* Center align text */
}
.drop_down_list li a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

/* SP Menu Button (Hidden on PC usually, but ensure visibility on SP) */
#header_search_btn {
  display: none;
}

#header_nav_btn {
  display: none;
}

@media (max-width: 991px) {
  #header .inner {
    padding: 10px 15px !important;
  }
  #header_nav {
    display: none; /* Typically handled by JS toggle, or show hamburger */
  }
  #header_search_btn {
    display: flex;
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 8px;
    cursor: pointer;
    z-index: 999;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
  }
  #header_search_btn i {
    font-size: 20px;
    line-height: 1;
  }
  #header_search_btn:hover {
    color: var(--primary-color);
  }
  #header_nav_btn {
    display: block;
    background: none;
    border: none;
    font-size: 28px; /* Increased */
    cursor: pointer;
    padding: 5px;
  }
}
@media (max-width: 767px) {
  /* 検索アイコンを表示 */
  #header_search_btn {
    display: flex !important;
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
  }
  /* スマホ表示で#pnavのマージンをリセット */
  #pnav {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #pnav li:first-child {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #pnav li {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #pnav li.pnav-buttons {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ==========================================================================
   Hero Section (Revamped)
   ========================================================================== */
.hero-section {
  position: relative;
  height: 650px; /* Slightly taller */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  margin-top: -1px; /* Adjust for header border if needed */
}

/* 260714: Design A の .hero-bg（1722付近）とクラス名が衝突し、Design A 側が宣言していない
   background-image / animation が残って「ヒーロー画像が勝手にズームする」「背景がモックとズレる」原因になっていた。
   旧テーマの hero は .hero-section 配下前提だが .hero-section はどのテンプレでも未使用のため、
   ここへ退避＝発火しない死にCSSにして無害化する（Phase A のフッター退避と同じ手法） */
.hero-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/main_img.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  /* Add subtle scale animation */
  animation: heroZoom 20s infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* 260714: Design A の .hero-overlay（display:none）と衝突するため .hero-section 配下へ退避（上記と同じ理由） */
.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* More sophisticated gradient */
  background: linear-gradient(135deg, rgba(0,86,179,0.7) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--width-container); /* Match container width */
  margin: 0 auto;
  padding: 0 30px; /* Match container padding */
  box-sizing: border-box;
}

/* 260714: Design A の .hero-content（1725付近）とクラス名が衝突し、Design A 側が宣言していない
   text-align: center が残って見出しが中央寄せになっていた（モックは左寄せ）。.hero-section 配下へ退避 */
.hero-section .hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 56px; /* Larger title */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
  white-space: nowrap;
  letter-spacing: 1px;
}
.hero-title .text-highlight {
  color: #fff;
  /* text-decoration: underline; text-decoration-color: var(--primary); */
  border-bottom: 5px solid var(--primary);
  display: inline-block;
  line-height: 1;
}

.hero-lead {
  font-size: 22px; /* Larger lead */
  margin-bottom: 50px;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  opacity: 0.9;
}

/* Hero Search Box (Glassmorphism) */
.hero-search-box {
  background: rgba(255, 255, 255, 0.2); /* More transparent */
  padding: 10px;
  border-radius: 50px; /* Pill shape */
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  max-width: 800px;
  margin: 0 auto;
}

.search-form-flex {
  display: flex;
  gap: 0; /* Remove gap, button connected */
}

.search-input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-group i {
  position: absolute;
  left: 25px;
  color: var(--text-sub);
  font-size: 22px;
  z-index: 10;
}

.hero-input {
  width: 100%;
  height: 54px; /* Reduced height */
  padding: 0 20px 0 50px; /* Adjusted padding */
  border: none;
  border-radius: 50px 0 0 50px; /* Left pill */
  font-size: 16px; /* Reduced font size */
  background: #fff;
  color: var(--text-main);
  box-sizing: border-box;
}
.hero-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--primary-color);
}

.hero-submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 50px 50px 0; /* Right pill */
  padding: 0 30px; /* Reduced padding */
  font-size: 18px; /* Reduced font size */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  height: 54px; /* Match input height */
  box-shadow: -5px 0 10px rgba(0,0,0,0.1);
}
.hero-submit-btn:hover {
  background: var(--primary-dark);
  padding-right: 30px; /* Slight animation */
}

.hero-tags {
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}
.hero-tags span { margin-right: 10px; font-weight: bold;}
.hero-tags a {
  color: #fff;
  margin-right: 10px;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  transition: background 0.2s;
}
.hero-tags a:hover {
  background: rgba(255,255,255,0.4);
}

@media (max-width: 991px) {
  .hero-title { font-size: 44px; white-space: normal; }
  .hero-search-box { border-radius: var(--radius); padding: 20px; background: rgba(255,255,255,0.9); }
  .search-form-flex { flex-direction: column; gap: 10px; }
  .hero-input { border-radius: var(--radius-md); height: 60px; }
  .hero-submit-btn { border-radius: var(--radius-md); height: 60px; width: 100%; box-shadow: none; }
  .hero-submit-btn:hover { padding-right: 0; }
  .hero-tags a { color: var(--text-main); background: #fff; } /* If background becomes light on mobile due to form change */
  .hero-tags { color: #fff; }
  .hero-tags a { color: #fff; background: rgba(255,255,255,0.2); }
}
@media (max-width: 767px) {
  .hero-section { height: auto; padding: 120px 0 80px; }
  .hero-container { padding: 0 15px; }
  .hero-title { font-size: 32px; line-height: 1.4; }
  .hero-lead { font-size: 16px; margin-bottom: 30px; }
  .hero-search-box { padding: 15px; }
  .hero-input { font-size: 16px; padding-left: 50px; }
  .search-input-group i { left: 20px; font-size: 18px; }
}

/* ==========================================================================
   Category Grid
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.category-icon {
  width: 45px; /* Increased */
  height: 45px; /* Increased */
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 20px; /* Increased */
  flex-shrink: 0;
}
.category-name {
  flex: 1;
  font-weight: 700;
  font-size: 16px; /* Increased */
}
.category-arrow {
  font-size: 16px;
  color: #ccc;
}

@media (max-width: 767px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card { padding: 15px 10px; flex-direction: column; text-align: center; }
  .category-icon { margin: 0 0 10px 0; }
  .category-arrow { display: none; }
  .category-name { font-size: 14px; }
}

/* ==========================================================================
   Job Cards (Pickup & Grid)
   ========================================================================== */
.job-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.job-grid-cards .job-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  height: 100%;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}
.job-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* 260714: Design A の .job-card-link（全面リンクのオーバーレイ / 1805付近）とクラス名が衝突し、
   Design A 側が宣言していない display:flex / flex-direction:column / height:100% が漏れていた。
   Phase A で .job-card / .job-card-body を退避したのと同じ .job-grid-cards（未使用の死にラッパー）配下へ退避 */
.job-grid-cards .job-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.job-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #eee;
  overflow: hidden;
  margin: 0;
}
.job-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.job-card:hover .job-card-image img {
  transform: scale(1.05);
}

/* 260819: 旧デザインの「画像の左上に重ねる PICKUP バッジ」。Design A の .badge-pickup
   （1815付近 / 薄黄のインラインバッジ）とクラス名が衝突し、position:absolute と top/left:10px
   だけが全ページの PICKUP バッジへ漏れていた（背景色・文字色は後勝ちで Design A 側が適用）。
   実測の症状：求人一覧・企業詳細では .recruit-card-badges から抜けてカード画像の左上へ飛び、
   同じ位置にある .card-ribbon（赤の PICKUP ラベル）に 10px ずれて重なる。
   求人詳細では祖先に position:relative が無いためページ左上の隅（ヘッダー上）へ貼り付く。
   使用先の .job-card-image 系マークアップは現行テンプレートに存在しない（死にクラス）。
   260714 に .job-card-link を退避したのと同じ .job-grid-cards 配下へ退避する。 */
.job-grid-cards .badge-pickup {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px; /* Increased padding */
  font-size: 13px; /* Increased */
  font-weight: bold;
  border-radius: 4px;
  z-index: 2;
}

.job-grid-cards .job-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.job-card-company {
  font-size: 15px; /* Increased */
  color: var(--text-sub);
  margin-bottom: 10px;
  font-weight: normal;
}

.job-card-text {
  font-size: 18px; /* Increased */
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-text {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 16px; /* Increased */
  display: flex;
  align-items: center;
}
.btn-text i { margin-left: 5px; transition: transform 0.3s; }
.job-card:hover .btn-text i { transform: translateX(5px); }

@media (max-width: 991px) {
  .job-grid-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .job-grid-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Job List (New Arrival)
   ========================================================================== */
.job-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-list-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s;
  overflow: hidden;
}
.job-list-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.job-list-link {
  display: flex;
  padding: 20px;
  gap: 20px;
  align-items: flex-start;
  color: inherit;
}

.job-list-image {
  width: 180px; /* Increased width */
  flex-shrink: 0;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.job-list-image img {
  width: 100%;
  height: auto;
  display: block;
}

.badge-area {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px; /* Increased */
  text-align: center;
  padding: 2px 0;
}

.job-list-content {
  flex: 1;
  min-width: 0; /* flex overflow fix */
}

.job-list-meta {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}
.job-company {
  font-size: 14px; /* Increased */
  color: var(--text-sub);
}
.job-date {
  font-size: 12px; /* Increased */
  color: #fff;
  background: #dc3545;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.job-title {
  font-size: 20px; /* Increased */
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.job-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.job-detail-row {
  font-size: 14px; /* Increased */
  color: var(--text-sub);
  display: flex;
  align-items: center;
}
.job-detail-row i { margin-right: 5px; color: var(--primary-color); }

.job-list-action {
  align-self: center;
  padding-left: 20px;
}
.btn-detail {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-main);
  padding: 12px 24px; /* Increased padding */
  border-radius: 30px;
  font-size: 14px; /* Increased */
  font-weight: 700;
  transition: all 0.3s;
  white-space: nowrap;
}
.job-list-item:hover .btn-detail {
  background: var(--primary-color);
  color: #fff;
}

@media (max-width: 767px) {
  .job-list-link { flex-direction: column; padding: 15px; }
  .job-list-image { width: 100%; height: 180px; margin-bottom: 10px; }
  .job-list-image img { width: 100%; height: 100%; object-fit: cover; }
  .job-list-action { width: 100%; text-align: center; padding: 0; margin-top: 15px; }
  .btn-detail { width: 100%; text-align: center; }
  .job-title { font-size: 18px; }
}

.btn-view-all {
  display: inline-block;
  padding: 15px 50px;
  background: #fff;
  border: 2px solid var(--text-main);
  color: var(--text-main);
  font-weight: 700;
  border-radius: 30px;
  transition: all 0.3s;
  font-size: 16px; /* Increased */
}
.btn-view-all:hover {
  background: var(--text-main);
  color: #fff;
}


.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
@media (max-width: 767px) {
    .sp-mt-10 { margin-top: 10px; }
    .sp-mt-20 { margin-top: 20px; }
    .sp-mt-30 { margin-top: 30px; }
    .sp-mt-40 { margin-top: 40px; }
    .sp-mt-50 { margin-top: 50px; }
}


.text-center { text-align: center; }



/* ==========================================================================
   Search Conditions (Area, Koyou, etc.)
   ========================================================================== */
.search-conditions-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.search-condition-col {
  flex: 1;
  min-width: 280px;
  background: #fff;
  padding: 25px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.condition-title {
  font-size: 20px; /* Increased */
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-light);
  display: flex;
  align-items: center;
}
.condition-title i { margin-right: 10px; color: var(--primary-color); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.tag-list li a {
  display: inline-block;
  padding: 10px 18px; /* Increased padding */
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 14px; /* Increased */
  color: var(--text-main);
  transition: all 0.2s;
}
.tag-list li a:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ==========================================================================
   Recent Jobs (Small Cards)
   ========================================================================== */
.sm-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.simple-card { border: none; box-shadow: none; background: transparent; }
.simple-card:hover { transform: translateY(-3px); }
.simple-card:hover .sm-image img { transform: scale(1.05); }

.sm-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  padding-top: 60%;
}
.sm-body { padding: 5px; background: transparent; }
.job-card-title-sm {
  font-size: 16px; /* Increased */
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.4;
}
.job-card-company-sm {
  font-size: 13px; /* Increased */
  color: var(--text-sub);
}

/* ==========================================================================
   News Section
   ========================================================================== */
/* ==========================================================================
   Blog/Column Section
   ========================================================================== */
.blog-section { 
  padding: 80px 0; 
  background: #fff; 
  border-top: 1px solid var(--border-color); 
}
.blog-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.blog-column-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-column-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.blog-column-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-column-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
}
.blog-column-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-column-card:hover .blog-column-image img {
  transform: scale(1.05);
}
.blog-column-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-column-date {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 10px;
  font-weight: 500;
}
.blog-column-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.blog-column-card:hover .blog-column-title {
  color: var(--primary);
}
.blog-column-excerpt {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 992px) {
  .blog-column-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 767px) {
  .blog-section {
    padding: 30px 0;
  }
  .blog-column-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
    
  .blog-column-body {
    padding: 15px;
  }  
  .blog-column-date {
    margin-bottom: 5px;
  }
  .blog-column-title {
    margin-bottom: 0;
    font-size: clamp(14px, 3.75vw, 16px);
  }
  .blog-column-excerpt {
    margin-top: 8px;
    font-size: clamp(13px, 3.0vw, 14px);
  }
}
    
    

.news-section { 
  padding: 80px 0; 
  background: #fff; 
  border-top: 1px solid var(--border-color); 
}
.news-wrapper { 
  max-width: 800px; 
  margin: 0 auto; 
  margin-top: 40px;
}
.news-list { 
  list-style: none; 
  padding: 0; 
  margin: 0;
}
.news-list li {
  padding: 18px 0;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: baseline;
  gap: 20px;
  transition: background-color 0.2s ease;
}
.news-list li:hover {
  /*background-color: #f8f9fa;
  margin-left: -10px;
  margin-right: -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 4px;*/
}
.news-list li:last-child { 
  border-bottom: none; 
}
.news-date {
  width: 110px;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
}
.news-content { 
  font-size: 15px; 
  line-height: 1.7; 
  flex-grow: 1;
  color: var(--text-main);
}
.news-content a { 
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}
.news-content a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 992px) {
}
@media (max-width: 767px) {
  .news-section {
    padding: 30px 0;
  }
  .news-wrapper {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 0px;
  }
  .news-list li { 
    padding: 10px 0;
    flex-direction: row;
    gap: 1em;
  }
  .news-date { 
    margin-bottom: 0;
    width: auto;
    font-size: clamp(13px, 3.0vw, 14px);
  }
  .news-content {
    font-size: clamp(13px, 3.0vw, 14px);
  }
  .news-list li:hover {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ==========================================================================
   Footer & Other Overrides
   ========================================================================== */
.modern-pagetop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  opacity: 0.8;
}
.modern-pagetop a {
  display: block;
  width: 50px;
  height: 50px;
  background: var(--text-main);
  color: #fff;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  font-size: 24px; /* Increased */
}
.modern-pagetop a:hover { opacity: 1; transform: translateY(-3px); }

/* Clearfix helpers if still needed for legacy floats in header/footer */
.cf:after { content: ""; display: table; clear: both; }

/* Slick Slider Customization */
.slick-prev, .slick-next { z-index: 10; width: 40px; height: 40px; }
.slick-prev:before, .slick-next:before { font-size: 40px; color: var(--primary-color); }
.slick-prev { left: -10px; }
.slick-next { right: -10px; }

/* ==========================================================================
   Footer Styles (Modern Footer)
   ========================================================================== */
.modern-footer {
  background-color: #f8f9fa;
  color: #333;
  padding: 60px 0 20px;
  border-top: 1px solid #e9ecef;
  font-size: 14px;
}
.footer-container {
  max-width: var(--width-container);
  /*max-width: 1200px;*/
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}
.modern-footer .footer-brand {
  flex: 0 0 320px;
  margin-bottom: 30px;
}
.footer-logo img {
  /*max-width: 200px;
  height: auto;*/
  margin-bottom: 15px;
}
.footer-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}
.modern-footer .footer-sns {
  display: flex;
  gap: 15px;
}
.sns-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  text-decoration: none;
  transition: all 0.3s;
}
.sns-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.footer-nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  flex: 1;
  justify-content: flex-end;
}
.footer-col {
  min-width: 160px;
}
.modern-footer .footer-heading {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}
.modern-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.modern-footer .footer-links li {
  margin-bottom: 12px;
}
.modern-footer .footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 14px;
}
.modern-footer .footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.modern-footer .footer-bottom {
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
  text-align: center;
}
.modern-footer .copyright {
  color: #888;
  font-size: 12px;
}

/* レスポンス対応（フッター） */
@media (max-width: 991px) {
  .footer-container {
    padding: 0 15px;
  }
}
@media (max-width: 768px) {
  .modern-footer {
    padding: 15px 0 12px !important;
  }
  .footer-container {
    padding: 0 15px !important;
  }
  .footer-top {
    flex-direction: column;
    margin-bottom: 12px !important;
  }
  .modern-footer .footer-brand {
    display: none !important; /* ロゴと説明文を非表示 */
  }
  .footer-nav-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }
  .footer-col {
    width: 100% !important;
    min-width: auto !important;
    margin-bottom: 10px !important;
    text-align: left !important;
  }
  .modern-footer .footer-heading {
    font-size: 13px !important;
    font-weight: bold !important;
    margin-bottom: 6px !important;
    color: #333 !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid #ddd !important;
  }
  .modern-footer .footer-links {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important; /* 縦間隔 横間隔 */
    align-items: center !important;
  }
  .modern-footer .footer-links li {
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    display: inline-block !important;
  }
  .modern-footer .footer-links a {
    font-size: 12px !important;
    color: #666 !important;
    padding: 0 !important;
    display: inline-block !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  .modern-footer .footer-links a:hover {
    color: var(--primary) !important;
    text-decoration: underline !important;
  }
  .modern-footer .footer-bottom {
    padding-top: 12px !important;
    border-top: 1px solid #e9ecef !important;
  }
  .modern-footer .copyright {
    font-size: 10px !important;
    color: #888 !important;
  }
}
@media (max-width: 480px) {
  .modern-footer {
    padding: 30px 0 10px !important;
  }
  .footer-nav-group {
    gap: 8px !important;
  }
  .modern-footer .footer-heading {
    font-size: clamp(16px, 3.75vw, 18px)!important;
    margin-bottom: 5px !important;
    padding-bottom: 3px !important;
  }
  .modern-footer .footer-links {
    gap: 6px 10px !important; /* より小さな間隔 */
  }
  .modern-footer .footer-links a {
    font-size: clamp(13px, 3.0vw, 15px)!important;
  }
  .modern-footer .footer-bottom {
    padding-top: 10px !important;
  }
  .modern-footer .copyright {
    font-size: 9px !important;
  }
}


/* ===== DESIGN A: ページコンテンツ（mockup design-a.html 260703 版から移植） =====
   ヘッダー/モバイルメニュー/フッターは layout.css、トークンは common.css を参照。
   TOP専用のリセット・containerは body.designa-top でスコープしレガシーに影響させない */

/* ---- TOP用ベース（body.designa-top スコープ） ---- */
/* font-size / font-weight は base.css:130-131 の旧テーマ body（0.875rem = 14px / 500）を打ち消して
   モック design-a.html の既定（16px / 400）に合わせる。Design A は font-size を rem（html=16px基準）で
   持つ要素は影響を受けず、サイズ・太さを自分で指定していないテキストだけがモックと同じ見た目になる。
   body.designa-top スコープなのでレガシーページには影響しない */
body.designa-top { color: var(--text); line-height: 1.7; background: var(--white); font-size: 1rem; font-weight: 400; }
/* リセットは :where() で詳細度を 0 に落とす（モック design-a.html の素の a{} / img{} / .container{} と同じ強さに揃える）。
   `body.designa-top a` と書くと詳細度 (0,1,2) になり、Design A のコンポーネント側
   （.hero-auth-register / .job-card-img / a.job-card-company 等＝(0,1,0)〜(0,1,1)）に競り勝ってしまい、
   文字色・画像の高さ・下線を潰す。:where() ならレガシー非影響のスコープは保ったまま詳細度だけ 0 にできる */
:where(body.designa-top) a { color: inherit; text-decoration: none; }
:where(body.designa-top) img { max-width: 100%; height: auto; display: block; }
:where(body.designa-top) .container { max-width: 1180px; margin: 0 auto; padding: 0; }

/* ===== HERO ===== */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: var(--accent); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
/* 260826 PCにも膜を掛ける。以前は display:none で、可読性の対策（膜・影・明度補正）が
   スマホにしか入っていなかった。実測: 黄色の .highlight #FFD700 に対し背景写真は #F3D293 で
   コントラスト比 1.04（大きな文字の目安3:1に対して事実上同色）。
   全面を暗くすると夕景が沈むので、文字が乗る左側だけ暗くして右の街並みは明るいまま残す。
   実測（@1440）: 1.04 → 3.29。白文字側も 1.45 → 4.34。 */
.hero-overlay { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0,7,34,0.60) 0%, rgba(0,7,34,0.45) 40%, rgba(0,7,34,0) 72%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding: 60px 0 50px; }
.hero-catch { font-size: 2.1rem; font-weight: 700; color: var(--white); line-height: 1.6; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,0.55); }
.sp-br { display: none; }
.hero-catch .marker { background: linear-gradient(transparent 55%, rgba(153,47,59,0.6) 55%); padding: 0 4px; }
.hero-catch .highlight { color: #FFD700; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-sub { font-size: .95rem; color: rgba(255,255,255,0.9); margin-bottom: 36px; font-weight: 500; }
.hero-search-area { max-width: 880px; }
.hero-search-area .bottom-search { background: rgba(255,255,255,0.8); }
.hero-search-area .bottom-search-btn { flex: 0 0 100%; margin: 6px auto 0; max-width: 200px; }
.hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.hero-left { flex: 1; min-width: 0; }
.hero-right { flex: 0 0 320px; }
/* Hero Auth */
.hero-auth { display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,0.8); border-radius: var(--radius-lg); padding: 28px 24px; }
.hero-auth-title { font-size: 1.2rem; color: var(--text); text-align: center; margin-bottom: 4px; font-weight: 700; line-height: 1.6; }
.hero-auth-login { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; background: var(--white); border: 1.5px solid var(--border); color: var(--text-light); border-radius: var(--radius); font-size: 1.05rem; font-weight: 500; transition: all .2s; }
a.hero-auth-login:hover { border-color: var(--primary); color: var(--primary); }
.hero-auth-register { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 24px; background: var(--primary); color: var(--white); border-radius: var(--radius); font-size: 1.1rem; font-weight: 700; transition: all .2s; box-shadow: 0 4px 16px rgba(153,47,59,0.25); }
a.hero-auth-register:hover { background: var(--primary-dark); }
.hero-auth .material-icons-outlined { font-size: 20px; }
.hero-auth-note { font-size: .78rem; color: var(--text-light); text-align: center; margin-top: 4px; }

/* ===== NEW検索窓（detail.html と共通） ===== */
.newsearch-band { background: linear-gradient(135deg, var(--accent) 0%, var(--primary-dark) 100%); border-radius: var(--radius-lg); padding: 26px 24px 24px; margin-bottom: 24px; }
.newsearch-band-title { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .5px; }
.newsearch-band-title .material-icons-outlined { font-size: 22px; }
.newsearch { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); }
.newsearch-form { display: flex; flex-direction: column; gap: 12px; }
/* 260807 flex-wrap と flex-basis を入れた。
   .newsearch-field は flex:1（basis 0）で、幅が足りないと 0 まで潰れる指定だった。
   ところが中の <select> は左右パディングだけで 42+38+枠2 = 82px あり、それ以上は縮まない。
   結果、狭い列では select が親 .newsearch-field からはみ出していた。
   実測（TOPヒーロー内の検索窓 @769）: field 50.1px に対し select 82px ＝ 右へ31.9px はみ出し（2件）。
   basis を 150px にして、潰す代わりに折り返させる（select の下限 82px より十分大きい）。
   全フィールドが同じ basis なので、収まる幅では今までどおり等幅のまま。 */
.newsearch-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.newsearch-field { flex: 1 1 150px; position: relative; min-width: 0; }
.newsearch-field > .material-icons-outlined { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 20px; pointer-events: none; z-index: 1; }
.newsearch-field input, .newsearch-field select { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; outline: none; padding: 13px 14px 13px 42px; font-size: .9rem; font-family: inherit; background: var(--white); -webkit-appearance: none; appearance: none; color: var(--text); cursor: pointer; transition: border-color .2s; }
.newsearch-field input:focus, .newsearch-field select:focus { border-color: var(--primary); }
.newsearch-field select { padding-right: 38px; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238A8A9A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.newsearch-field input { cursor: text; }
.newsearch-submit { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: var(--white); border: none; border-radius: 10px; padding: 0 38px; font-size: .95rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .2s; }
.newsearch-submit:hover { background: var(--primary-dark); }
.newsearch-submit .material-icons-outlined { font-size: 20px; }
.newsearch-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.newsearch-tags-label { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: rgba(255,255,255,0.9); font-weight: 600; margin-right: 2px; }
.newsearch-tag { padding: 7px 16px; background: rgba(255,255,255,0.15); color: var(--white); border: 1px solid rgba(255,255,255,0.35); border-radius: 20px; font-size: .82rem; font-weight: 500; transition: all .2s; }
.newsearch-tag:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
/* ヒーロー内のNEW検索窓は半透明白背景 */
.hero-search-area .newsearch-band { background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 8px 30px rgba(0,0,0,0.18); margin-bottom: 0; }
.hero-search-area .newsearch-band-title { color: var(--text); }
.hero-search-area .newsearch-tags-label { color: var(--text); }
.hero-search-area .newsearch-tag { background: rgba(255,255,255,0.55); color: var(--primary); border-color: rgba(153,47,59,0.35); }
.hero-search-area .newsearch-tag:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== SECTIONS COMMON ===== */
.section { padding: 70px 0; }
.section-light { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 44px; }
.section-en { font-size: .75rem; font-weight: 500; color: var(--primary); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 6px; }
.section-title { font-size: 1.6rem; font-weight: 700; color: var(--text); }

/* ===== STRENGTH ===== */
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.strength-grid::-webkit-scrollbar { display: none; }
.strength-card { text-align: center; padding: 36px 24px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.strength-icon { width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.strength-icon img { width: 100%; height: 100%; object-fit: contain; }
.strength-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.strength-desc { font-size: .88rem; color: var(--text-light); line-height: 1.8; }

/* ===== JOB CARDS ===== */
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.job-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all .2s; cursor: pointer; }
.job-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.job-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.job-card-img { width: 100%; height: 180px; object-fit: cover; }
.job-card-body { padding: 18px; }
.job-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge { font-size: .72rem; font-weight: 500; padding: 3px 10px; border-radius: 4px; }
.badge-type { background: var(--primary-pale); color: var(--primary); }
.badge-pickup { background: #FFF3CD; color: #856404; }
.job-card-title { font-size: .95rem; font-weight: 600; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card-company { position: relative; z-index: 2; font-size: .82rem; color: var(--primary); margin-bottom: 8px; display: inline-block; }
/* リンク装飾は a のみに適用。非リンクの企業名（detail.html の関連求人カード等）が「押せないのにリンクに見える」のを防ぐ */
a.job-card-company { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; transition: color .15s; }
a.job-card-company:hover { color: var(--primary-dark); }
.job-card-meta { display: flex; flex-direction: column; gap: 4px; }
.job-card-meta-row { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-light); }
.job-card-meta-row .material-icons-outlined { font-size: 16px; color: var(--text-muted); }
.job-card-conditions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tag-condition { font-size: .74rem; padding: 2px 8px; background: #f0f0f5; color: var(--text-light); border-radius: 4px; border: 1px solid var(--border); }
.btn-more { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--primary); padding: 12px 28px; border: 1.5px solid var(--primary); border-radius: 30px; margin-top: 36px; transition: all .2s; }
a.btn-more:hover { background: var(--primary); color: var(--white); }
/* 260806 .btn-more を中央に置くラッパ。index.html の5箇所が style="text-align:center" を
   直書きしていたのをここへ寄せた。インラインstyleだとCSS側から一括で調整できない */
.section-more { text-align: center; }
.scroll-hint { display: none; }

/* ===== CAROUSEL（求人カルーセル） ===== */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 8px 10px; scroll-padding: 0 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel-track.dragging .job-card { pointer-events: none; }
.carousel-track > .job-card:hover { box-shadow: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .job-card { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; }
.carousel-btn { position: absolute; top: 42%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--primary); border: 1px solid var(--primary); box-shadow: var(--shadow); cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.carousel-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.carousel-btn:hover .material-icons-outlined { color: var(--white); }
.carousel-btn .material-icons-outlined { font-size: 26px; color: var(--white); }
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }
/* 260826 カードが表示幅に収まっていて動かせないときは左右ボタンを出さない。
   求人が2件しか無くても矢印が出ていて、押しても何も起きない状態だった。
   判定は top.designa.js の sync()（企業一覧の company.carousel.js と同じ流儀）。
   端まで来たボタンは disabled にして、押せないことを見た目でも示す。 */
.carousel.is-static .carousel-btn { display: none; }
.carousel-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.carousel-btn:disabled:hover { background: var(--primary); border-color: var(--primary); }

/* ===== COMPANY LOGOS（注目企業） ===== */
/* 260826 掲載企業が少ないときにロゴ1枚のリンク領域が画面幅いっぱいに広がっていた
   （実測: 1社のとき a.company-logo が 1825px）。flex:1 1 0 で余った幅を全部
   吸わせていたため。grow を止めて中身の幅に収め、少数のときは中央に寄せる。
   safe center にしているのは、社数が増えて溢れたときに通常の center だと
   左端のロゴがスクロールしても見切れて届かなくなるため。 */
.company-logos { display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 20px; overflow-x: auto; padding: 16px 40px 18px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; list-style: none; }
.company-logos::-webkit-scrollbar { display: none; }
.company-logos > li { flex: 0 1 auto; min-width: 124px; max-width: 200px; display: flex; scroll-snap-align: start; }
.company-logo { flex: 1; display: flex; align-items: center; justify-content: center; height: 96px; padding: 6px; transition: all .2s; }
a.company-logo:hover { transform: translateY(-2px); opacity: .6; }
.company-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.company-logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: .3px; color: var(--text-light); white-space: nowrap; }

/* ===== PICKUP COMPANIES (管理画面「ピックアップの管理」で登録した有料枠) =====
   260831 表示側を復活させた際に追加。上の .company-logos（ロゴ帯）は登録が
   1件も無いときのフォールバックで、こちらが出るときはロゴ帯は出ない。
   カードの見た目は .job-card（:1820〜）に合わせている。最大5件なので
   auto-fit ではなく明示的に3列とし、余りは左詰めにする。 */
.pickup-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.pickup-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all .2s; cursor: pointer; }
.pickup-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pickup-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pickup-card-figure { position: relative; margin: 0; }
.pickup-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
/* バッジは .badge.badge-pickup（:1826-1828）の配色をそのまま使い、位置だけ上書きする。
   pointer-events: none が無いと、カード全面を覆う .pickup-card-link より前面(z:2)にいる
   バッジがクリックを吸ってしまい、PICKUP の上だけ反応しないカードになる（実測で確認） */
.pickup-card-badge { position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none; }
.pickup-card-body { padding: 18px; }
.pickup-card-company { font-size: .95rem; font-weight: 600; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pickup-card-address { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-light); margin-bottom: 8px; }
.pickup-card-address .material-icons-outlined { font-size: 16px; color: var(--text-muted); }
.pickup-card-text { font-size: .85rem; color: var(--text-light); line-height: 1.7; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pickup-card-more { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 500; color: var(--primary); }
.pickup-card-more .material-icons-outlined { font-size: 16px; transition: transform .2s; }
.pickup-card:hover .pickup-card-more .material-icons-outlined { transform: translateX(4px); }

/* ===== AREA SEARCH ===== */
.area-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px 20px; }
.area-block {}
.area-region { font-size: .88rem; font-weight: 700; border-bottom: 2px solid var(--primary); padding-bottom: 6px; margin-bottom: 10px; color: var(--text); }
.area-list { list-style: none; }
.area-list li { margin-bottom: 4px; }
.area-list a { font-size: .84rem; color: var(--text-light); display: flex; align-items: center; justify-content: space-between; padding: 3px 0; transition: color .2s; }
.area-list a:hover { color: var(--primary); }
.area-list .material-icons-outlined { font-size: 14px; opacity: .4; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all .2s; }
a.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.blog-card-img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 18px; }
.blog-card-cat { font-size: .72rem; color: var(--primary); font-weight: 500; margin-bottom: 6px; }
.blog-card-title { font-size: .92rem; font-weight: 600; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-date { font-size: .78rem; color: var(--text-muted); }

/* ===== BOTTOM SEARCH（日本での仕事を探す） ===== */
.bottom-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.bottom-search-field { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 6px; }
.bottom-search-field label { font-size: .8rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 5px; }
.bottom-search-field label .material-icons-outlined { font-size: 17px; color: var(--primary); }
.bottom-search-field select, .bottom-search-field input { width: 100%; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 10px; font-size: .88rem; font-family: inherit; outline: none; -webkit-appearance: none; background: var(--white); transition: border-color .2s; }
.bottom-search-field select { cursor: pointer; }
.bottom-search-field select:focus, .bottom-search-field input:focus { border-color: var(--primary); }
.bottom-search-field input::placeholder { color: var(--text-muted); }
.bottom-search-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 32px; height: 45px; background: var(--primary); color: var(--white); border: none; border-radius: 10px; font-size: .95rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .2s; }
.bottom-search-btn:hover { background: var(--primary-dark); }
.bottom-search-btn .material-icons-outlined { font-size: 20px; }

/* ===== WAGAYA JAPAN 紹介枠 ===== */
.wagaya-promo { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.wagaya-promo-head { position: relative; padding: 26px 30px 0; text-align: center; }
.wagaya-promo-logo { position: absolute; top: 22px; left: 30px; height: 38px; width: auto; }
.wagaya-promo-title { font-size: 1.3rem; font-weight: 700; line-height: 1.5; }
.wagaya-promo-title .accent { color: var(--primary); }
.wagaya-promo-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 30px 0px; }
.wagaya-promo-photo { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--bg-light); display: flex; align-items: center; justify-content: center; }
.wagaya-promo-photo img { width: 100%; height: 100%; object-fit: cover; }
.wagaya-promo-photo .ph-label { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,0.6); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 4px; }
.wagaya-promo-photo .ph-icon { color: var(--text-muted); font-size: 32px; }
.wagaya-promo-desc { padding: 18px 30px 0; font-size: .88rem; color: var(--text-light); line-height: 1.9; }
.wagaya-promo-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0px 30px 6px; }
.wagaya-promo-feature { position: relative; isolation: isolate; overflow: hidden; font-size: .88rem; font-weight: 700; color: #992F3B; line-height: 1.8; padding: 22px 22px; border-bottom: solid 1px #F2E6E7; }
.wagaya-promo-feature .material-icons-outlined { position: absolute; right: -8px; bottom: -16px; z-index: -1; font-size: 96px; color: var(--primary); opacity: .12; pointer-events: none; }
.wagaya-promo-cta { padding: 22px 30px 30px; text-align: center; }
.wagaya-promo-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 40px; background: var(--accent); color: var(--white); border-radius: 30px; font-size: .95rem; font-weight: 600; transition: all .2s; }
.wagaya-promo-btn:hover { background: var(--accent-light); transform: translateY(-2px); }
.wagaya-promo-btn .material-icons-outlined { font-size: 20px; }

/* ===== wagaya Jobs Agent のご案内（TOP・賃貸枠の上） ===== */
/* 260828 シートNo.10③。枠組みは .wagaya-promo と同じ。色だけ Agent 側（赤 #9F2B3A ／ボタンはLINEグリーン）に寄せている */
.agent-intro { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.agent-intro-head { position: relative; padding: 26px 30px 0; text-align: center; }
.agent-intro-logo { position: absolute; top: 22px; left: 30px; height: 38px; width: auto; }
.agent-intro-title { font-size: 1.3rem; font-weight: 700; line-height: 1.5; }
.agent-intro-title .accent { color: #9F2B3A; }
.agent-intro-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 30px 0px; }
.agent-intro-photo { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--bg-light); }
.agent-intro-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-intro-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0px 30px 6px; }
.agent-intro-feature { position: relative; isolation: isolate; overflow: hidden; font-size: .88rem; font-weight: 700; color: #9F2B3A; line-height: 1.8; padding: 22px 22px; border-bottom: solid 1px #F2E6E7; }
.agent-intro-feature .material-icons-outlined { position: absolute; right: -8px; bottom: -16px; z-index: -1; font-size: 96px; color: #9F2B3A; opacity: .12; pointer-events: none; }
.agent-intro-desc { padding: 18px 30px 0; font-size: .88rem; color: var(--text-light); line-height: 1.9; }
.agent-intro-cta { padding: 22px 30px 30px; text-align: center; }
.agent-intro-btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 40px; background: #06C755; color: var(--white); border-radius: 8px; font-size: .95rem; font-weight: 700; box-shadow: 0 14px 28px -10px rgba(6,199,85,.5); transition: background .2s, transform .2s; }
.agent-intro-btn:hover { background: #05B14C; color: var(--white); transform: translateY(-2px); }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--accent) 0%, var(--primary-dark) 100%); padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-text { color: var(--white); }
.cta-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
/* 260827 SPでCTA見出しの末尾1〜2文字だけが次行へ落ちていた（山田様指摘 No.5）。
   実測（jobdev・24px）: TOP「あなたに合った仕事を見つけよう」は1行に360px必要、
   検索結果「今すぐ無料登録して、求人に応募しよう」は430.1px必要。
   端末で使える幅は 390端末=350px / 375端末=335px / 360端末=328px しかなく、
   1行へ収めるには18px前後まで縮める必要があって見出しの格が保てない。
   ⇒ サイズは変えず、意味の切れ目で折る。テンプレート側の <br class="cta-br-sp"> を
   SPだけ有効にする（PCでは幅が足りているので改行させない）。 */
.cta-br-sp { display: none; }
.cta-desc { font-size: .92rem; opacity: .85; }
.cta-buttons { display: flex; gap: 14px; flex-shrink: 0; }
.btn-cta { padding: 14px 32px; border-radius: 30px; font-size: .95rem; font-weight: 600; border: none; cursor: pointer; transition: all .2s; }
.btn-cta-primary { background: var(--white); color: var(--primary); }
.btn-cta-primary:hover { background: var(--primary-pale); }
.btn-cta-secondary { background: rgba(255,255,255,0.15); color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-cta-secondary:hover { background: rgba(255,255,255,0.25); }

/* ===== RESPONSIVE（ページコンテンツのみ。nav/footerは layout.css 側） ===== */

/* 260807 【769〜1219px でコンテンツが画面の左右端に貼り付いていた】
   1726行目の :where(body.designa-top) .container は padding:0 で、左右の余白を
   max-width:1180px のセンタリングだけに頼っていた。1180px を下回ると余白が消えるのに、
   ガターを入れる指定は下の max-width:768px にしか無く、その間が素通しになっていた。
   実測（TOPの .container 左ガター）: @1200=10px / @1139=0 / @1000=0 / @860=0 / @769=0 / @768=20px
   ブレークポイントが search / detail / blog の 1179px と違うのは、このコンテナだけ
   max-width が 1180px（モック design-a.html 準拠）だから。1180 + 20*2 = 1220。
   ※必ず下の 768 ブロックより前に置くこと（詳細度が同じ (0,1,0) なので後勝ち）。 */
@media (max-width: 1219px) {
  :where(body.designa-top) .container { padding: 0 20px; }
}

@media (max-width: 1024px) {
  .area-grid { grid-template-columns: repeat(4, 1fr); }
  /* 260831 タブレットは2列。3列のままだとカード幅が280px近くまで痩せて画像が潰れる */
  .pickup-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :where(body.designa-top) .container { padding: 0 20px; }
  /* ヒーロー */
  .hero { min-height: auto; padding: 30px 0; }
  .hero-content { padding: 0 16px; }
  .hero-inner { flex-direction: column; align-items: center; gap: 24px; }
  .hero-left { text-align: center; width: 100%; }
  .hero-right { flex: none; width: 100%; }
  .hero-auth { padding: 16px 14px; gap: 6px; }
  .hero-auth-title { font-size: .88rem; }
  .hero-auth-title .pc-br { display: none; }
  .hero-auth-login { padding: 7px 12px; font-size: .78rem; }
  .hero-auth-register { padding: 7px 12px; font-size: .78rem; }
  .hero-auth .material-icons-outlined { font-size: 16px; }
  /* スマホ：背景を明るく補正しつつ、薄いオーバーレイ＋シャドウで白文字の可読性を確保。PC版は無変更 */
  .hero-bg img { filter: brightness(1.15) saturate(1.05); }
  .hero-overlay { display: block; background: linear-gradient(180deg, rgba(0,7,34,0.3) 0%, rgba(0,7,34,0.1) 50%, rgba(0,7,34,0.10) 100%); }
  .hero-catch { font-size: 1.6rem; text-shadow: 0 2px 12px rgba(0,0,0,0.55); }
  .sp-br { display: inline; }
  .hero-sub { font-size: .88rem; margin-bottom: 24px; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
  .hero-search-area .bottom-search { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 16px; }
  .hero-search-area .bottom-search-btn { grid-column: 1 / -1; margin: 4px auto 0; }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.3rem; }
  .strength-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
  .strength-card { flex: 0 0 80%; scroll-snap-align: start; padding: 24px 20px; }
  .job-grid { display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .job-card { min-width: 75%; max-width: 75%; flex-shrink: 0; scroll-snap-align: start; }
  .carousel-btn { display: none; }
  .newsearch-row { flex-direction: column; }
  /* 260825 縦積みにすると flex-basis が主軸＝高さになるため、260807 に入れた flex:1 1 150px が
     「高さ150px」として効いてしまう。入力欄は52.5pxなので下に97.5pxの空白ができ、
     top:50% のアイコンだけが入力欄の外（下）に落ちる。SPでは basis を殺して内容の高さに戻す。
     実測（@393px）: field 150px → 52.5px、アイコン位置 65px → 16.2px（入力欄内の中央）、
     row 312px → 117px。横並びに戻る769px以上は対象外なのでPCの見え方は変わらない。 */
  .newsearch-field { flex: 0 0 auto; }
  .newsearch-submit { width: 100%; padding: 13px; }
  /* よく検索されるワード：ラベルを独立行にしてタグと重ならないよう改行（hero・下部フォーム共通） */
  .newsearch-tags-label { flex-basis: 100%; margin-right: 0; margin-bottom: 2px; }
  .carousel-track { gap: 14px; }
  .carousel-track > .job-card { flex: 0 0 75%; min-width: 75%; max-width: 75%; }
  .scroll-hint { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; font-size: .82rem; color: var(--text-muted); }
  .scroll-hint .material-icons-outlined { font-size: 16px; animation: swipe 1.5s ease-in-out infinite; }
  @keyframes swipe { 0%,100%{transform:translateX(0)} 50%{transform:translateX(6px)} }
  /* エリアアコーディオン */
  .area-grid { grid-template-columns: 1fr; gap: 0; }
  .area-block { border-bottom: 1px solid var(--border); }
  .area-region { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 14px 0; margin-bottom: 0; border-bottom: none; }
  .area-region::after { content: 'expand_more'; font-family: 'Material Icons Outlined'; font-size: 20px; color: var(--text-muted); transition: transform .2s; }
  .area-block.open .area-region::after { transform: rotate(180deg); }
  .area-list { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0; }
  .area-block.open .area-list { max-height: 500px; padding-bottom: 10px; }
  .blog-grid { display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .blog-card { min-width: 75%; max-width: 75%; flex-shrink: 0; scroll-snap-align: start; }
  /* 260831 SPは .blog-grid と同じ横スクロール。1列に積むと5件でTOPが縦に伸びすぎる */
  .pickup-cards { display: flex; grid-template-columns: none; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .pickup-card { min-width: 75%; max-width: 75%; flex-shrink: 0; scroll-snap-align: start; }
  .pickup-card-img { height: 150px; }
  .pickup-card-body { padding: 14px; }
  .company-logos { padding-left: 20px; padding-right: 20px; }
  .company-logos > li { min-width: 116px; }
  .company-logo { height: 72px; padding: 6px; }
  .company-logo-text { font-size: 1.25rem; }
  /* CTAボタン上下中央揃え */
  .cta-inner { flex-direction: column; text-align: center; }
  /* 260828 SPのCTA見出し・説明文を左詰めへ（山田様指摘 No.13・Figma）。
     .cta-inner の中央揃えはボタン（.cta-buttons）の並びに効いているので残し、
     テキスト枠だけ左揃えにする。width:100% を付けないと flex 子要素が
     内容幅に縮み、左詰めにしても中央寄りに見える。 */
  .cta-text { width: 100%; text-align: left; }
  /* 260827 CTA見出しをSPだけ意味の切れ目で折る（上部 .cta-br-sp のコメント参照） */
  .cta-br-sp { display: inline; }
  .cta-buttons { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
  .cta-buttons .btn-cta { width: 80%; text-align: center; }
  /* 下部検索枠 */
  .bottom-search { flex-direction: column; align-items: stretch; padding: 18px; }
  .bottom-search-btn { width: 100%; height: 48px; }
  /* wagaya Japan紹介枠 */
  .wagaya-promo-head { position: static; padding: 20px 18px 0; }
  .wagaya-promo-logo { position: static; height: 32px; display: block; margin-bottom: 12px; }
  .wagaya-promo-title { font-size: 1.1rem; }
  .wagaya-promo-photos { padding: 16px 18px; gap: 8px; }
  .wagaya-promo-desc { padding: 14px 18px 0; }
  .wagaya-promo-features { grid-template-columns: 1fr; gap: 12px; padding: 18px 18px 6px; }
  .wagaya-promo-cta { padding: 18px 18px 24px; }
  .wagaya-promo-btn { width: 100%; justify-content: center; }

  .agent-intro-head { position: static; padding: 20px 18px 0; }
  .agent-intro-logo { position: static; height: 32px; display: block; margin-bottom: 12px; }
  .agent-intro-title { font-size: 1.1rem; }
  .agent-intro-photos { padding: 16px 18px; gap: 8px; }
  .agent-intro-features { grid-template-columns: 1fr; gap: 12px; padding: 18px 18px 6px; }
  .agent-intro-desc { padding: 14px 18px 0; }
  .agent-intro-cta { padding: 18px 18px 24px; }
  .agent-intro-btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-catch { font-size: 1.35rem; }
  .job-card { min-width: 85%; max-width: 85%; }
  .carousel-track > .job-card { flex: 0 0 85%; min-width: 85%; max-width: 85%; }
  .blog-card { min-width: 85%; max-width: 85%; }
  .cta-buttons .btn-cta { width: 100%; }
  .company-logos > li { min-width: 98px; }
}
