/*
Theme Name: jobmatch-theme
Theme URI: https://job.appmatch.jp
Author: Manus AI
Author URI: https://manus.im
Description: 転職エージェント比較サイト専用のWordPressテーマ。Reactデザインを忠実に再現。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agent-comparison-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
/*
 * Agent Comparison Theme - Custom Styles
 * 転職エージェント比較サイト用カスタムスタイル
 */

/* ========================================
   グローバルフォント設定
   ======================================== */
body,
h1, h2, h3, h4, h5, h6,
p, span, a, div, button, input, textarea, select,
.text-foreground,
.text-muted-foreground,
.font-bold,
.font-semibold,
.font-medium {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif !important;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Font Awesomeアイコンのフォント設定を保護 */
i[class*="fa-"],
.fa,
.fas,
.far,
.fal,
.fad,
.fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}


/* ========================================
   リセットスタイル（body/htmlの余白を削除）
   ======================================== */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* 画像/埋め込みの横はみ出し防止（スマホでの“右に溢れる”原因の定番） */
img,
svg,
video,
canvas,
iframe {
  max-width: 100% !important;
}

/* 長い英数字やURLで横に伸びるのを抑止 */
p,
a,
span,
div {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

body {
  min-height: 100vh !important;
}

/* ========================================
   ヘッダー追従（PC/SP共通）
   ======================================== */
body {
  padding-top: 4rem !important; /* header.php の高さ（height: 4rem）に合わせる */
}
/* header は .sticky（position: sticky !important）を持つので、より強いセレクタで fixed を強制 */
body > header,
body > header.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
}

/* WordPressの管理バーがある場合の調整（固定ヘッダーが被らないように） */
body.admin-bar {
  padding-top: calc(4rem + 32px) !important;
}
body.admin-bar > header {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar {
    padding-top: calc(4rem + 46px) !important;
  }
  body.admin-bar > header {
    top: 46px !important;
  }
}

/* ヘッダーとフッターの余白を削除 */
header,
footer.site-footer {
  margin: 0 !important;
  padding: 0 !important;
}

/* メインコンテンツの余白を削除 */
main {
  margin: 0 !important;
  padding: 0 !important;
}


/* ========================================
   CSS変数の定義
   ======================================== */
:root {
  --background: 0 0% 100%;
  --foreground: 220 20% 20%;
  --card: 0 0% 100%;
  --card-foreground: 220 20% 20%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 20% 20%;
  --primary: 168 55% 38%;
  --primary-foreground: 0 0% 100%;
  --secondary: 168 30% 96%;
  --secondary-foreground: 168 55% 30%;
  --muted: 210 20% 96%;
  --muted-foreground: 215 15% 50%;
  --accent: 30 95% 55%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 210 20% 90%;
  --input: 210 20% 90%;
  --ring: 168 55% 38%;
  --radius: 0.5rem;
  --highlight: 45 100% 51%;
  --highlight-foreground: 220 20% 20%;
  --success: 142 70% 45%;
  --success-foreground: 0 0% 100%;
  --info: 200 80% 50%;
  --info-foreground: 0 0% 100%;
  --section-bg: 168 20% 97%;
  --card-hover: 168 30% 98%;
}

/* ========================================
  パンくず（Breadcrumb）
  ======================================== */
.jobmatch-breadcrumb {
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.3);
  margin-bottom: 2rem; /* パンくず→本文開始の間隔を統一 */
}

.jobmatch-breadcrumb__inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* パンくず直下は main 側の上paddingを無効化（py-12 / py-8 等の付与位置の差によるブレを防止） */
.jobmatch-breadcrumb + main {
  padding-top: 0 !important;
}

/* ========================================
   ヘッダー：検索（×ボタンと虫眼鏡の重なり対策）
   ======================================== */
/* WebKit のネイティブ×を消して、カスタム×（.jobmatch-search-clear）を使う */
.jobmatch-header-search input[type="search"]::-webkit-search-cancel-button,
.jobmatch-header-search input[type="search"]::-webkit-search-decoration,
.jobmatch-hero-search input[type="search"]::-webkit-search-cancel-button,
.jobmatch-hero-search input[type="search"]::-webkit-search-decoration,
.jobmatch-mobile-menu__search input[type="search"]::-webkit-search-cancel-button,
.jobmatch-mobile-menu__search input[type="search"]::-webkit-search-decoration{
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}

/* ========================================
   モバイルメニュー
   ======================================== */
.jobmatch-mobile-menu{
  position: fixed !important;
  inset: 0 !important;
  z-index: 60 !important;
  pointer-events: none !important;
}

.jobmatch-mobile-menu__overlay{
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.45) !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}

.jobmatch-mobile-menu__panel{
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: min(22rem, 92vw) !important;
  height: 100% !important;
  background: hsl(var(--background)) !important;
  border-left: 1px solid hsl(var(--border)) !important;
  transform: translateX(100%) !important;
  transition: transform 0.22s ease !important;
  display: flex !important;
  flex-direction: column !important;
}

.jobmatch-mobile-menu__header{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 1rem !important;
  border-bottom: 1px solid hsl(var(--border)) !important;
}

.jobmatch-mobile-menu__close{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 0.75rem !important;
  border: 1px solid hsl(var(--border)) !important;
  background: hsl(var(--muted) / 0.35) !important;
}

.jobmatch-mobile-menu__body{
  padding: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  overflow: auto !important;
}

.jobmatch-mobile-menu__search{
  position: relative !important;
}

.jobmatch-mobile-menu__search-icon{
  position: absolute !important;
  right: 0.9rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: hsl(var(--muted-foreground)) !important;
}

.jobmatch-mobile-menu__search-input{
  width: 100% !important;
  height: 2.75rem !important;
  padding-left: 1rem !important;
  padding-right: 4.75rem !important; /* 右：×＋虫眼鏡の分 */
  background-color: hsl(var(--muted) / 0.5) !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius) !important;
}

.jobmatch-mobile-menu__nav{
  display: flex !important;
  flex-direction: column !important;
}

.jobmatch-mobile-menu__link{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.9rem 0.75rem !important;
  border-radius: 0.75rem !important;
  color: hsl(var(--foreground)) !important;
  text-decoration: none !important;
}

.jobmatch-mobile-menu__link:hover{
  background: hsl(var(--muted) / 0.35) !important;
}

body.jobmatch-mobile-menu--open .jobmatch-mobile-menu{
  pointer-events: auto !important;
}
body.jobmatch-mobile-menu--open .jobmatch-mobile-menu__overlay{
  opacity: 1 !important;
}
body.jobmatch-mobile-menu--open .jobmatch-mobile-menu__panel{
  transform: translateX(0) !important;
}

.jobmatch-breadcrumb__nav {
  font-size: 0.875rem;
  line-height: 1.4;
}

.jobmatch-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.jobmatch-breadcrumb__sep {
  display: flex;
  align-items: center;
  color: hsl(var(--muted-foreground));
}

.jobmatch-breadcrumb__link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s ease;
}

.jobmatch-breadcrumb__link:hover {
  color: hsl(var(--primary));
}

.jobmatch-breadcrumb__current {
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* ========================================
   デバッグ用スタイルの完全削除
   ======================================== */
.grid > *,
.flex > *,
a[class*="card"],
div[class*="card"],
section a,
section div {
  outline: none !important;
}

/* 緑の点線枠を強制的に削除 */
* {
  outline: none !important;
}

/* 100%幅 + padding でのはみ出し防止 */
*,
*::before,
*::after {
  box-sizing: border-box !important;
}

a, div, section, article {
  border: none !important;
}

/* カード要素のみ境界線を適用 */
.card,
.card-hover {
  border: 1px solid hsl(var(--border)) !important;
  background-color: hsl(var(--card)) !important;
  border-radius: var(--radius) !important;
}

/* ========================================
   レイアウト
   ======================================== */
.section-container {
  max-width: 80rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

@media (min-width: 640px) {
  .section-container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* ========================================
   グリッドレイアウト（強制適用）
   ======================================== */
.grid {
  display: grid !important;
  gap: 1rem !important;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* sm: 640px */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  
  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* md: 768px */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  
  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* ========================================
   Flexboxユーティリティ
   ======================================== */
.flex {
  display: flex !important;
}

.flex-col {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.items-start {
  align-items: flex-start !important;
}

.items-center {
  align-items: center !important;
}

.items-end {
  align-items: flex-end !important;
}

.justify-between {
  justify-content: space-between !important;
}

.justify-center {
  justify-content: center !important;
}

.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }

/* ========================================
   スペーシング
   ======================================== */
.p-4 { padding: 1rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }
.p-12 { padding: 3rem !important; }

.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-24 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

.m-0 { margin: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-8 { margin-top: 2rem !important; }

/* ========================================
   タイポグラフィ
   ======================================== */
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
.text-5xl { font-size: 3rem !important; line-height: 1 !important; }

.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }

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

.text-foreground { color: hsl(var(--foreground)) !important; }
.text-muted-foreground { color: hsl(var(--muted-foreground)) !important; }
.text-primary { color: hsl(var(--primary)) !important; }
.text-primary-foreground { color: hsl(var(--primary-foreground)) !important; }
.text-accent { color: hsl(var(--accent)) !important; }
.text-accent-foreground { color: hsl(var(--accent-foreground)) !important; }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)) !important; }
.text-success { color: hsl(var(--success)) !important; }

.truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.line-clamp-2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.line-clamp-3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* ========================================
   ボーダー・角丸
   ======================================== */
.border { border: 1px solid hsl(var(--border)) !important; }
.border-b { border-bottom: 1px solid hsl(var(--border)) !important; }
.border-t { border-top: 1px solid hsl(var(--border)) !important; }

.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-full { border-radius: 9999px !important; }

/* ========================================
   背景色
   ======================================== */
.bg-background { background-color: hsl(var(--background)) !important; }
.bg-card { background-color: hsl(var(--card)) !important; }
.bg-secondary { background-color: hsl(var(--secondary)) !important; }
.bg-muted { background-color: hsl(var(--muted)) !important; }
.bg-primary { background-color: hsl(var(--primary)) !important; }
.bg-foreground { background-color: hsl(var(--foreground)) !important; }

.bg-highlight { background-color: hsl(var(--highlight)) !important; }

.section-alt {
  background-color: hsl(var(--section-bg)) !important;
}

/* ========================================
   グラデーション
   ======================================== */
.gradient-primary {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(168 55% 45%) 100%) !important;
}

.gradient-accent {
  background: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(25 95% 50%) 100%) !important;
  color: hsl(var(--accent-foreground)) !important;
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(168 55% 45%) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ========================================
   カードスタイル
   ======================================== */
.card-hover {
  transition: all 0.2s ease-in-out !important;
}

.card-hover:hover {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 16px -4px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px) !important;
}

.shadow-card {
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 4px 16px -4px rgba(0, 0, 0, 0.04) !important;
}

/* ========================================
   その他ユーティリティ
   ======================================== */
.hover\:underline:hover {
  text-decoration: underline !important;
}

.hover\:text-primary:hover {
  color: hsl(var(--primary)) !important;
}

.hover\:text-primary-foreground:hover {
  color: hsl(var(--primary-foreground)) !important;
}

.hover\:bg-muted:hover {
  background-color: hsl(var(--muted)) !important;
}

.hover\:bg-primary:hover {
  background-color: hsl(var(--primary)) !important;
}

.hover\:opacity-90:hover {
  opacity: 0.9 !important;
}

.transition-colors {
  transition-property: color, background-color, border-color !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-duration: 150ms !important;
}

.transition-opacity {
  transition-property: opacity !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-duration: 150ms !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.block {
  display: block !important;
}

.inline-flex {
  display: inline-flex !important;
}

.inline-block {
  display: inline-block !important;
}

.relative {
  position: relative !important;
}

.absolute {
  position: absolute !important;
}

.sticky {
  position: sticky !important;
}

.top-0 {
  top: 0 !important;
}

.z-50 {
  z-index: 50 !important;
}

.hidden {
  display: none !important;
}

.w-10 { width: 2.5rem !important; }
.w-12 { width: 3rem !important; }
.w-16 { width: 4rem !important; }
.w-full { width: 100% !important; }

.h-10 { height: 2.5rem !important; }
.h-12 { height: 3rem !important; }
.h-16 { height: 4rem !important; }
.h-full { height: 100% !important; }
.h-auto { height: auto !important; }

.max-w-2xl {
  max-width: 42rem !important;
}

.max-w-xl {
  max-width: 36rem !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
	margin-top: 20px;
}

.flex-1 {
  flex: 1 1 0% !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.min-w-0 {
  min-width: 0 !important;
}

.aspect-video {
  aspect-ratio: 16 / 9 !important;
}

/* ========================================
   画像のobject-fitユーティリティ
   ======================================== */
.object-contain { object-fit: contain !important; }
.object-cover { object-fit: cover !important; }

/* ========================================
   リンクスタイルの修正
   ======================================== */
a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
}

/* hover:underlineクラスが指定されている場合のみアンダーラインを表示 */
a.hover\:underline:hover {
  text-decoration: underline !important;
}


/* ========================================
   タグ・バッジスタイル
   ======================================== */
.tag-primary {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  background-color: hsl(var(--primary) / 0.1) !important;
  color: hsl(var(--primary)) !important;
}

.tag-accent {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  background-color: hsl(var(--accent) / 0.1) !important;
  color: hsl(var(--accent)) !important;
}

.tag-muted {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  background-color: hsl(var(--muted)) !important;
  color: hsl(var(--muted-foreground)) !important;
}

.badge-secondary {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.25rem 0.625rem !important;
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  background-color: hsl(var(--secondary)) !important;
  color: hsl(var(--secondary-foreground)) !important;
  border: 1px solid hsl(var(--border)) !important;
}

/* ========================================
   ボタンスタイル
   ======================================== */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
  border: none !important;
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(168 55% 45%) 100%) !important;
  color: hsl(var(--primary-foreground)) !important;
}

.btn-primary:hover {
  opacity: 0.9 !important;
}

/* ========================================
   入力フィールドスタイル
   ======================================== */
input[type="search"],
input[type="text"],
input[type="email"],
select,
textarea {
  border: 1px solid hsl(var(--border)) !important;
  background-color: hsl(var(--background)) !important;
  color: hsl(var(--foreground)) !important;
  border-radius: var(--radius) !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  transition: all 0.2s ease-in-out !important;
}

/* 口コミ投稿フォーム：コメント欄は横に広げられないように（縦のみリサイズ可） */
.comment-respond textarea#comment{
  width: 100% !important;
  max-width: 100% !important;
  resize: vertical !important;
  overflow: auto !important;
}

/* ========================================
   口コミフォーム：星評価UI
   ======================================== */
.jobmatch-star-rating {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: flex-end !important; /* row-reverse のため flex-end が「左揃え」 */
  gap: 0.1rem !important; /* 口コミカードの星間隔に寄せる */
  user-select: none !important;
}

/* ========================================
   星表示（表示用）：0.1単位の小数に対応
   ======================================== */
.star5_rating{
  position: relative !important;
  z-index: 0 !important;
  display: inline-block !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  letter-spacing: 0.05em !important;
  color: #CCCCCC !important; /* グレー */
}

.star5_rating:before,
.star5_rating:after{
  content: '★★★★★' !important;
}

.star5_rating:after{
  position: absolute !important;
  z-index: 1 !important;
  top: 0 !important;
  left: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  color: #ffcf32 !important; /* イエロー */
  width: var(--star-percent, 0%) !important; /* 0.1単位もOK */
}

.star5_rating--sm{ font-size: 0.95rem !important; }
.star5_rating--md{ font-size: 1.05rem !important; }
.star5_rating--lg{ font-size: 1.35rem !important; }
.star5_rating--xl{ font-size: 1.75rem !important; } /* 総合評価用（大きめ） */
.star5_rating--xxl{
  font-size: 3rem !important; /* 口コミカード内の総合評価用（約2倍） */
  letter-spacing: 0.02em !important;
}

.jobmatch-star-rating input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.jobmatch-star-rating label {
  cursor: pointer !important;
  color: #CCCCCC !important; /* 口コミカードのグレーと揃える */
  line-height: 1 !important;
  padding: 0.05rem !important; /* 星間隔を詰めてカード表示と揃える */
}

.jobmatch-star-rating--lg label {
  font-size: 2.5rem !important;
}

.jobmatch-star-rating--md label {
  font-size: 1.5rem !important;
}

.jobmatch-star-rating input[type="radio"]:checked ~ label,
.jobmatch-star-rating label:hover,
.jobmatch-star-rating label:hover ~ label {
  color: hsl(var(--highlight)) !important;
}

.jobmatch-star-rating input[type="radio"]:focus-visible + label {
  outline: 2px solid hsl(var(--primary)) !important;
  outline-offset: 2px !important;
  border-radius: 0.25rem !important;
}

.jobmatch-rating-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

.jobmatch-rating-overall .jobmatch-rating-item {
  justify-content: flex-start !important;
  gap: 0.75rem !important;
}

/* ========================================
   口コミ一覧：カードデザイン
   ======================================== */
.jobmatch-review-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

.jobmatch-review-card:hover {
  transform: translateY(-1px) !important;
  border-color: hsl(var(--primary) / 0.35) !important;
  box-shadow: 0 12px 28px hsl(220 20% 20% / 0.08) !important;
}

.jobmatch-review-card__overall {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important; /* 総合評価（星）を左揃え */
  gap: 0.25rem !important;
  white-space: nowrap !important;
}

.jobmatch-review-card__overall-label {
  font-size: 0.75rem !important;
}

.jobmatch-review-card__overall-stars {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  font-size: 1.35rem !important; /* 星を大きめに */
  letter-spacing: 0.02em !important;
}

.jobmatch-review-card__overall-score {
  font-size: 0.875rem !important;
}

.jobmatch-review-card__industry.badge-secondary {
  background-color: hsl(var(--primary) / 0.08) !important;
  color: hsl(var(--primary)) !important;
  border: 0 !important;
}

.jobmatch-review-card__rating-row {
  display: flex !important;
  flex-direction: column !important; /* ラベルをショルダーにしてコンパクト化 */
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.25rem !important;
  padding: 0.6rem 0.75rem !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: calc(var(--radius) - 2px) !important;
  background: hsl(var(--muted) / 0.25) !important;
}

.jobmatch-review-card__rating-label{
  font-size: 0.7rem !important; /* ショルダー */
  color: hsl(var(--muted-foreground)) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.jobmatch-review-card__rating-stars{
  line-height: 1 !important;
}

.jobmatch-review-card__rating-stars .star5_rating{
  letter-spacing: 0.02em !important;
}

.jobmatch-review-card__rating-stars .star5_rating{
  color: #CCCCCC !important;
}

.jobmatch-review-card__comment {
  line-height: 1.85 !important;
  white-space: pre-wrap !important;
}

/* トップ：ピックアップ口コミ（カード下部の対象エージェント表示） */
.jobmatch-review-card__author{
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
}
.jobmatch-review-card__author p{
  margin: 0 !important;
}
.jobmatch-review-card__date{
  line-height: 1.2 !important;
}
.jobmatch-review-card__name{
  line-height: 1.3 !important;
}

.jobmatch-review-card--pickup{
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}
.jobmatch-review-card--pickup .jobmatch-review-card__header{
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.5rem !important; /* ハンドルネーム ↔ 総合評価 を少し詰める */
  margin-bottom: 0.75rem !important;
}
.jobmatch-review-card--pickup .jobmatch-review-card__overall{
  align-items: flex-start !important;
}
.jobmatch-review-card--pickup .jobmatch-review-card__overall-stars{
  font-size: 1.2rem !important; /* グリッド内で収まるサイズに */
}
.jobmatch-review-card--pickup .jobmatch-review-card__pickup-body{
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}
.jobmatch-review-card--pickup .jobmatch-review-card__comment{
  margin: 0 !important;
  white-space: normal !important; /* line-clamp を効かせる */
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 5 !important;
  overflow: hidden !important;
}
.jobmatch-review-card--pickup .jobmatch-review-card__agent{
  margin-top: 1rem !important;     /* 罫線の上（本文側）と均一に */
  padding-top: 1rem !important;    /* 罫線の下（ロゴ側）も同じ */
}

.jobmatch-review-card__agent-link{
  text-decoration: none !important;
  width: 100% !important;
  justify-content: space-between !important;
}
.jobmatch-review-card__agent-arrow{
  margin-left: auto !important;
  color: hsl(var(--muted-foreground)) !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}
.jobmatch-review-card__agent-arrow svg{
  display: block !important;
}

/* ========================================
   エージェントカード：ランキング順位バッジ
   ======================================== */
.jobmatch-agent-card{
  position: relative !important;
  overflow: visible !important; /* ランキングバッジをカード外に“はみ出し”表示 */
}
.jobmatch-agent-card__rank{
  position: absolute !important;
  top: -0.75rem !important;
  left: -0.75rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  border-radius: 9999px !important;
  background: hsl(var(--primary)) !important;
  border: 1px solid hsl(var(--primary) / 0.45) !important;
  color: hsl(var(--primary-foreground)) !important;
  line-height: 1 !important;
  box-shadow: 0 6px 16px hsl(220 20% 20% / 0.10) !important;
}
.jobmatch-agent-card__rank[data-rank="1"]{
  /* 金グラデーション */
  background: linear-gradient(135deg, #FFF3B0 0%, #FFD76A 35%, #FFB800 70%, #D99000 100%) !important;
  border-color: rgba(185, 118, 0, 0.55) !important;
  color: white !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  top: -0.9rem !important;
  left: -0.9rem !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.14), 0 2px 0 rgba(255,255,255,0.35) inset !important;
}
.jobmatch-agent-card__rank-num{
  display: inline-block !important;
  font-weight: 900 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.01em !important;
}
.jobmatch-agent-card__rank[data-rank="1"] .jobmatch-agent-card__rank-num{
  font-size: 1.5rem !important;
}

/* エージェント詳細 上部：平均評価（星）の黄色い背景は不要＋星を少し大きく */
.agent-detail-header__rating-badge{
  background: transparent !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.25rem !important;
}
.agent-detail-header__rating-badge--empty{
  background: transparent !important;
}
.agent-detail-header__rating-shoulder{
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}
.agent-detail-header__rating-main{
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}
.agent-detail-header__rating-score{
  font-weight: 700 !important;
  line-height: 1 !important;
}
.agent-detail-header__rating-badge .star5_rating--xl{
  font-size: 1.65rem !important;
}
@media (max-width: 640px){
  .agent-detail-header__rating-badge .star5_rating--xl{
    font-size: 1.5rem !important; /* SPでも少し大きく（横溢れしない範囲） */
  }
}
.jobmatch-review-card__agent-logo{
  display: inline-flex !important;
  width: 4rem !important;
  height: 2.75rem !important;
  border-radius: 0.5rem !important;
  overflow: hidden !important;
  color: hsl(var(--primary)) !important;
}
.jobmatch-review-card__agent-logo-img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 0.25rem !important;
}

/* ========================================
   口コミ投稿フォーム：カードデザイン（口コミカードとトンマナ統一）
   ======================================== */
.jobmatch-review-form-card__shoulder{
  display: block !important;
  margin-bottom: 0.25rem !important;
  font-size: 0.75rem !important;
  color: hsl(var(--muted-foreground)) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* 口コミ投稿フォーム：利用規約同意 */
.jobmatch-review-form-card__consent a{
  color: hsl(var(--primary)) !important;
  text-decoration: underline !important;
}

/* ========================================
   通常記事（コラム）本文スタイル
   ======================================== */
.single-post .jobmatch-prose :where(p){
  margin: 1rem 0 !important;
}
.single-post .jobmatch-prose :where(h2){
  margin: 2rem 0 0.75rem !important;
  font-size: 1.5rem !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
  color: hsl(var(--foreground)) !important;
}
.single-post .jobmatch-prose :where(h3){
  margin: 1.75rem 0 0.5rem !important;
  font-size: 1.25rem !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
  color: hsl(var(--foreground)) !important;
}
.single-post .jobmatch-prose :where(ul, ol){
  margin: 1rem 0 !important;
  padding-left: 1.25rem !important;
}
.single-post .jobmatch-prose :where(li){
  margin: 0.35rem 0 !important;
}
.single-post .jobmatch-prose :where(a){
  color: hsl(var(--primary)) !important;
  text-decoration: underline !important;
}
.single-post .jobmatch-prose :where(img){
  max-width: 100% !important;
  height: auto !important;
  border-radius: 0.75rem !important;
}

/* アプリカード（appcard） */
.single-post .jobmatch-prose .appcard {
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid #ddd !important;
  padding: 16px !important;
  width: 100% !important;
  margin: 16px auto !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  background-color: #fff !important;
  border-radius: 0.75rem !important;
}

.single-post .jobmatch-prose .appcard__header {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 16px !important;
}

.single-post .jobmatch-prose .appcard__icon {
  flex-shrink: 0 !important;
  margin-right: 16px !important;
}

.single-post .jobmatch-prose .appcard__icon img {
  max-width: 80px !important;
  max-height: 80px !important;
  border-radius: 20% !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.single-post .jobmatch-prose .appcard__info {
  display: flex !important;
  flex-direction: column !important;
}

.single-post .jobmatch-prose .appcard__title {
  font-size: 20px !important;
  font-weight: bold !important;
  margin-bottom: 8px !important;
  color: #111 !important;
}

.single-post .jobmatch-prose .appcard__description {
  font-size: 14px !important;
  color: #777 !important;
  margin-bottom: 16px !important;
}

.single-post .jobmatch-prose .appcard__image {
  display: flex !important;
  justify-content: flex-start !important;
  margin-bottom: 16px !important;
  gap: 8px !important;
}

.single-post .jobmatch-prose .appcard__image img {
  flex: 1 !important;
  max-width: calc(20% - 8px) !important;
  border-radius: 1vw !important;
  transition: transform 0.3s ease !important;
  border: 1px solid #eee !important;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1) !important;
}

.single-post .jobmatch-prose .appcard__image img:hover {
  transform: scale(1.1) !important;
}

.single-post .jobmatch-prose .appcard__link {
  display: flex !important;
  justify-content: center !important;
}

.single-post .jobmatch-prose .appcard__link a {
  text-decoration: none !important;
  color: #fff !important;
  background-color: #007AFF !important;
  padding: 10px 20px !important;
  border-radius: 5px !important;
  font-weight: 500 !important;
  transition: background-color 0.3s ease !important;
}

.single-post .jobmatch-prose .appcard__link a:hover {
  background-color: #005BB5 !important;
}

.single-post .jobmatch-prose .appcard__box {
  margin-bottom: 16px !important;
}

.single-post .jobmatch-prose .appcard__price,
.single-post .jobmatch-prose .appcard__seller,
.single-post .jobmatch-prose .appcard__sellerurl {
  display: flex !important;
  justify-content: left !important;
  margin-bottom: 3px !important;
}

.single-post .jobmatch-prose .appcard__price__text,
.single-post .jobmatch-prose .appcard__seller__text,
.single-post .jobmatch-prose .appcard__sellerurl__text {
  font-size: 12px !important;
  color: #666 !important;
  font-weight: 500 !important;
  margin-right: 8px !important;
}

.single-post .jobmatch-prose .appcard__price__value,
.single-post .jobmatch-prose .appcard__seller__value,
.single-post .jobmatch-prose .appcard__sellerurl__value {
  font-size: 12px !important;
  color: #444 !important;
  font-weight: bold !important;
}

.single-post .jobmatch-prose .appcard__sellerurl__value {
  text-decoration: underline !important;
  cursor: pointer !important;
  color: #007AFF !important;
  transition: color 0.3s ease !important;
}

.single-post .jobmatch-prose .appcard__sellerurl__value:hover {
  color: #005BB5 !important;
}

/* 会話風リスト（chat-list） */
.single-post .jobmatch-prose ul.chat-list {
  list-style-type: none !important;
  padding: 0 !important;
  width: 100% !important;
  margin: 0 auto 20px !important;
}

.single-post .jobmatch-prose ul.chat-list li {
  display: flex !important;
  align-items: flex-start !important;
  margin-bottom: 15px !important;
}

.single-post .jobmatch-prose ul.chat-list li::before {
  content: url('/wp-content/uploads/2025/12/bubble_icon.png') !important;
  display: block !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background-color: #ddd !important;
  margin-right: 20px !important;
  flex: 0 0 auto !important;
}

.single-post .jobmatch-prose ul.chat-list li .chat-bubble {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border-radius: 8px !important;
  padding: 10px 15px !important;
  position: relative !important;
  max-width: calc(90% - 60px) !important;
  word-wrap: break-word !important;
}

.single-post .jobmatch-prose ul.chat-list li .chat-bubble::after {
  content: '' !important;
  position: absolute !important;
  left: -8px !important;
  top: 10px !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 8px solid transparent !important;
  border-right: 8px solid hsl(var(--primary)) !important;
  border-bottom: 8px solid transparent !important;
}

.jobmatch-review-form-card__overall{
  padding: 0.75rem !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: calc(var(--radius) - 2px) !important;
  background: hsl(var(--highlight) / 0.06) !important;
}

.jobmatch-review-form-card__overall-label{
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: hsl(var(--muted-foreground)) !important;
  margin-bottom: 0.25rem !important;
}

.jobmatch-review-form-card__overall-stars .jobmatch-star-rating{
  justify-content: flex-end !important; /* row-reverse のため flex-end が「左揃え」 */
}

.jobmatch-review-form-card__rating-item{
  padding: 0.6rem 0.75rem !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: calc(var(--radius) - 2px) !important;
  background: hsl(var(--muted) / 0.25) !important;
}

.jobmatch-review-form-card__rating-item .jobmatch-star-rating{
  justify-content: flex-end !important; /* row-reverse のため flex-end が「左揃え」 */
}

/* スマホ：星評価（小項目）を1カラムに固定して崩れ防止 */
@media (max-width: 767px) {
  .jobmatch-review-form-card__ratings{
    grid-template-columns: 1fr !important;
  }
}

/* エージェント詳細：PCでは「評価の右に口コミ数」 */
.agent-detail-header__rating-row{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .agent-detail-header__rating-row{
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* エージェント詳細：タイトル周り（SPは1カラム、PCはロゴ左＋テキスト右） */
.agent-detail-header__top{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch; /* SPは子要素を横幅いっぱいに伸ばす */
}
.agent-detail-header__logo{
  width: 100%;
  height: 6rem;
  overflow: hidden;
}
.agent-detail-header__logo-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}
.agent-detail-header__content{
  width: 100%;
}
.agent-detail-header__company{
  font-size: 0.875rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.agent-detail-header__title{
  margin: 0;
  font-size: 1.875rem !important; /* 既定（text-2xl）より大きく */
  line-height: 2.25rem !important;
  overflow-wrap: anywhere;
}

@media (min-width: 1024px) {
  .agent-detail-header__top{
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .agent-detail-header__logo{
    width: 8rem;
    height: 4rem;
    flex: 0 0 auto;
  }
  .agent-detail-header__logo-img{
    padding: 0.5rem;
  }
  .agent-detail-header__content{
    flex: 1 1 auto;
    min-width: 0;
  }
  .agent-detail-header__title{
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
  }
}

/* ========================================
   一覧：エージェントカード（詳細ページのトンマナに寄せる）
   - SP: ロゴ（フル幅）→ 会社 → タイトル
   - 768px〜: ロゴ左＋右に会社/タイトル
   ======================================== */
.jobmatch-agent-card__top{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.jobmatch-agent-card__logo{
  width: 100%;
  height: 6rem;
  border-radius: 0.75rem;
  overflow: hidden;
  color: hsl(var(--primary));
}
.jobmatch-agent-card__logo-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}

/* 白ロゴ対策：背景を少し濃くする（bg-secondary を上書き） */
.jobmatch-logo-bg--strong{
  background-color: rgba(0,0,0,0.4) !important;
}
.jobmatch-agent-card__content{
  width: 100%;
  min-width: 0;
}
.jobmatch-agent-card__company{
  font-size: 0.875rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.jobmatch-agent-card__title{
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}
.jobmatch-agent-card__meta{
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.jobmatch-agent-card__meta-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.jobmatch-agent-card__rating{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.jobmatch-agent-card__excerpt{
  margin: 0;
}

@media (min-width: 768px) {
  .jobmatch-agent-card__top{
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }
  .jobmatch-agent-card__logo{
    width: 6rem;
    height: 4rem;
    flex: 0 0 auto;
    border-radius: 0.5rem;
  }
  .jobmatch-agent-card__logo-img{
    padding: 0.5rem;
  }
}

/* submitボタンをカードの中で自然に */
.jobmatch-review-form-card + .form-submit,
.jobmatch-review-form-card .form-submit{
  margin-top: 1rem !important;
}

/* 口コミ投稿フォーム：送信ボタンのトンマナ統一 */
.comment-respond .form-submit #submit,
.comment-respond .form-submit input[type="submit"]{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 3rem !important;
  padding: 0 2rem !important;
  border-radius: var(--radius) !important;
  border: none !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  transition: opacity 0.2s ease-in-out, transform 0.15s ease-in-out, box-shadow 0.2s ease-in-out !important;
}

/* comment_formの class_submit で付与しているクラスを活かして装飾 */
.comment-respond .form-submit #submit.gradient-accent,
.comment-respond .form-submit input[type="submit"].gradient-accent{
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 4px 16px -4px rgba(0, 0, 0, 0.04) !important;
}

.comment-respond .form-submit #submit:hover,
.comment-respond .form-submit input[type="submit"]:hover{
  opacity: 0.92 !important;
  transform: translateY(-1px) !important;
}

.comment-respond .form-submit #submit:active,
.comment-respond .form-submit input[type="submit"]:active{
  transform: translateY(0) !important;
  opacity: 0.9 !important;
}

.comment-respond .form-submit #submit:focus-visible,
.comment-respond .form-submit input[type="submit"]:focus-visible{
  outline: 2px solid hsl(var(--primary)) !important;
  outline-offset: 3px !important;
}

@media (max-width: 640px) {
  /* エージェント詳細：ヘッダーカードが横並びのままだと溢れやすいので縦積みに */
  .agent-detail-header {
    flex-direction: column !important;
    align-items: stretch !important; /* 子要素を横幅いっぱいに伸ばす */
    gap: 1rem !important;
  }

  .agent-detail-header__top{
    width: 100% !important;
  }

  .agent-detail-header__logo {
    width: 100% !important;
    max-width: none !important;
    height: 6rem !important;
    padding: 0 !important; /* paddingは画像側で持つ（一覧カードと揃える） */
  }

  .agent-detail-header__logo img{
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
  }

  .agent-detail-header__rating-badge {
    flex-wrap: wrap !important;
  }

  /* 詳細上部の総合評価はスマホでは少し控えめにして横溢れ防止 */
  .star5_rating--xl {
    font-size: 1.35rem !important;
  }

  .jobmatch-review-card {
    padding: 1rem !important;
  }
  .jobmatch-review-card__header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .jobmatch-review-card__overall {
    align-items: flex-start !important;
  }
  .jobmatch-review-card__overall-stars {
    font-size: 1.2rem !important;
  }

  /* 口コミカード内の総合評価（星）が大きすぎないように調整 */
  .star5_rating--xxl{
    font-size: 3.2rem !important;
  }

  /* エージェント詳細の口コミカード：SPは総合評価をもう少し小さく */
  .single-agent .jobmatch-review-card__overall-stars .star5_rating--xxl{
    font-size: 2.6rem !important;
  }
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: hsl(var(--primary)) !important;
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1) !important;
}

input::placeholder,
textarea::placeholder {
  color: hsl(var(--muted-foreground) / 0.55) !important;
}

/* ========================================
   アニメーション
   ======================================== */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards !important;
}

/* ========================================
   レスポンシブユーティリティ
   ======================================== */
@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }
  
  .md\:hidden {
    display: none !important;
  }

  .md\:py-24 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
  
  .md\:text-3xl {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
  }
  
  .md\:text-4xl {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
  }
  
  .md\:text-5xl {
    font-size: 3rem !important;
    line-height: 1 !important;
  }
  
  .md\:block {
    display: block !important;
  }
}

@media (min-width: 1024px) {
  .lg\:col-span-2 {
    grid-column: span 2 / span 2 !important;
  }
}


/* ========================================
   エージェントロゴの表示修正（見切れ防止）
   ======================================== */
.agent-logo,
.agent-logo img {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0.5rem !important;
}

/* エージェント詳細（single-agent）のヘッダーロゴは、
   レスポンシブ（SP: フル幅 / PC: 固定幅）は上の .agent-detail-header__logo / .agent-detail-header__logo-img で制御する */

/* ピックアップエージェントのロゴ領域 */
.bg-secondary.flex.items-center.justify-center.flex-shrink-0 img {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0.5rem !important;
}

/* ========================================
   フッタースタイルの修正
   ======================================== */
footer.site-footer {
  background-color: hsl(220 20% 20%) !important;
  color: hsl(210 20% 80%) !important;
}

/* フッターのリンクスタイル */
footer.site-footer a {
  color: hsl(210 20% 80%) !important;
  text-decoration: none !important;
  transition: color 0.2s ease-in-out !important;
}

footer.site-footer a:hover {
  color: hsl(var(--primary-foreground)) !important;
  text-decoration: none !important;
}

/* フッターのリストスタイル */
footer.site-footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer.site-footer li {
  margin-bottom: 0.5rem !important;
  list-style: none !important;
}

footer.site-footer li:last-child {
  margin-bottom: 0 !important;
}

/* フッターの見出しスタイル */
footer.site-footer h3,
footer.site-footer h4 {
  color: hsl(var(--primary-foreground)) !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}

/* フッターの説明文 */
footer.site-footer p {
  color: hsl(210 20% 70%) !important;
  line-height: 1.6 !important;
}

/* フッターのコピーライト */
footer.site-footer .border-t {
  border-color: hsl(220 20% 30%) !important;
}

footer .text-center {
  color: hsl(210 20% 60%) !important;
}

/* ========================================
   ページネーション
   ======================================== */
.pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-top: 2rem !important;
}

.pagination .nav-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.pagination .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 2.5rem !important;
  height: 2.5rem !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: hsl(var(--foreground)) !important;
  background-color: hsl(var(--card)) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: var(--radius) !important;
  transition: all 0.2s ease-in-out !important;
}

.pagination .page-numbers:hover {
  background-color: hsl(var(--secondary)) !important;
  border-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary)) !important;
}

.pagination .page-numbers.current {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border-color: hsl(var(--primary)) !important;
  font-weight: 600 !important;
}

.pagination .page-numbers.dots {
  border: none !important;
  background-color: transparent !important;
  color: hsl(var(--muted-foreground)) !important;
  cursor: default !important;
}

.pagination .page-numbers.dots:hover {
  background-color: transparent !important;
  border: none !important;
  color: hsl(var(--muted-foreground)) !important;
}

.pagination .prev,
.pagination .next {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: hsl(var(--primary)) !important;
  background-color: hsl(var(--card)) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: var(--radius) !important;
  transition: all 0.2s ease-in-out !important;
}

.pagination .prev:hover,
.pagination .next:hover {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border-color: hsl(var(--primary)) !important;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
  .pagination .page-numbers {
    min-width: 2rem !important;
    height: 2rem !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
  }
  
  .pagination .prev,
  .pagination .next {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
  }
}
