/* 基本レイアウト */
html, body {
margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  /* 丸みを意識したフォント構成 */
  font-family: "Helvetica Rounded", "Yu Gothic Rounded", "Hiragino Sans Round", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  -moz-osx-font-smoothing: grayscale;
}

.site-container {
  display: flex;
  max-width: 1200px; /* 全体の横幅 */
  margin: 0 auto;
  gap: 20px;         /* 左右の隙間を狭くして密度を上げる */
  padding: 20px;
}

.main-area {
  flex: 3;           /* 3分割してメインに割り当て */
  min-width: 0; /* これが重要です：Flexbox内で横幅の制限を無視させない */
}




/* ========================
   汎用スクロールアニメーション
========================= */

/* 最初は非表示 */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

/* アニメーション実行 */
[data-animate].animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 親要素の子要素に対する遅延（最大4列まで） */
[data-animate].animate-in:nth-child(1) { animation-delay: 0s; }
[data-animate].animate-in:nth-child(2) { animation-delay: 0.1s; }
[data-animate].animate-in:nth-child(3) { animation-delay: 0.2s; }
[data-animate].animate-in:nth-child(4) { animation-delay: 0.3s; }

/* 5列以上の場合はループ */
[data-animate].animate-in:nth-child(4n+1) { animation-delay: 0s; }
[data-animate].animate-in:nth-child(4n+2) { animation-delay: 0.1s; }
[data-animate].animate-in:nth-child(4n+3) { animation-delay: 0.2s; }
[data-animate].animate-in:nth-child(4n+4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================
   バリエーション（必要に応じて）
========================= */

/* フェードインのみ */
[data-animate="fade"].animate-in {
  animation: fadeIn 0.6s ease-out forwards;
}

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

/* 左からスライド */
[data-animate="slide-left"].animate-in {
  animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 右からスライド */
[data-animate="slide-right"].animate-in {
  animation: slideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* スケールアップ */
[data-animate="scale"].animate-in {
  animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}



/* =========================
  *TOP検索バー*
========================= */

.hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 800px; /* 画像の高さを指定 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* アニメーションの設定 */
  animation: bg-slider 15s infinite;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* アニメーションの定義 */
@keyframes bg-slider {
  0% { background-image: url('https://sub.tansaku-job.net/wp-content/uploads/2026/05/1.jpg'); opacity: 1; }
  33% { background-image: url('https://sub.tansaku-job.net/wp-content/uploads/2026/05/2.jpg'); opacity: 1; }
  66% { background-image: url('https://sub.tansaku-job.net/wp-content/uploads/2026/05/3.jpg'); opacity: 1; }
  100% { background-image: url('https://sub.tansaku-job.net/wp-content/uploads/2026/05/4.jpg'); opacity: 1; }
}

.job-search-panel {
  position: relative;
  z-index: 2;
  width: 70%;           /* 60%から50%へ小さく */
  max-width: 600px;     /* 最大幅も少し小さく */
  margin-left: 5%;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;        /* 40pxから30pxへ */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}


.panel-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left; /* 中身を左寄せ */
}


.panel-desc {
  text-align: center;
  margin-bottom: 40px;
  color: #718096;
}

.panel-heading {
  text-align: left; /* 左寄せ */
  text-align: center;
  margin-top: 0;
  font-size: 1.8rem;
  color: #5D4037;
  margin-bottom: 10px;
}

.sub-text {
  color: #D97757;
}

/* 1. フォーム全体の引き締め */
#job-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* きっちり2列 */
    gap: 15px; 
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* 2. 地域・職種などのグループを縦並びに */
.top-detailedsearch-box {
    display: flex;
    flex-direction: column;
}

/* 3. ラベル（地域・職種など）の見た目 */
.top-detailedsearch-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5D4037;
    margin-bottom: 6px;
}

/* 4. 入力エリアの統一デザイン */
select, input {
    width: 100%;
    height: 42px; /* 高さを揃える */
    padding: 0 12px;
    border: 1px solid #5D4037;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    box-sizing: border-box; /* paddingで幅が崩れるのを防ぐ */
}

/* 5. キーワードとボタンをフルワイドに */
.search-keyword-full, 
.submit-container {
    grid-column: 1 / -1;
}

.js-search-trigger {
    background: #f37321; /* 通常時の色 */
    color: white;
    font-weight: bold;
    height: 48px;
    border-radius: 8px;
    border: none;
    width: 100%;
    margin-top: 6px;
    cursor: pointer;
    transition: 0.5s; /* 変化の時間を少し長めにすると「ぎゅーん」感が出ます */
    
    /* ワイプ用のグラデーション設定 */
    background: linear-gradient(to right, #235BC8 50%, #f37321 50%);
    background-size: 200% 100%;
    background-position: 100% 0; /* 最初は右側（オレンジ）が見えている */
}

.js-search-trigger:hover {
    background-position: 0 0; /* ホバーで左側（青）へスライドさせる */
    transform: translateY(-2px);
}



/* =========================
 /* 人気キーワード
 ========================= */
.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.keyword-tags a {
position: relative; /* 擬似要素（区切り線）の基準 */
  color: #333;
  padding: 4px 12px;  /* 左右の余白は12pxで均等 */
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;

  /* ▼ 変更：重複していたmarginをこれ1行にまとめます（上下に5px、左右は0） */
  margin: 5px 0;
	
}

/* ▼ 変更：アニメーションの基準を文字（span）に移す */
.keyword-tags a span {
  display: inline-block;
  /* transition: transform 0.4s ease; */ /* ★ここから削除（離したときは一瞬で戻る） */
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ホバー時の動き */
.keyword-tags a:hover {
  color: #235BC8;
}
.keyword-tags a:hover span {
  /* ▼ 追加：マウスが乗ったときだけ、0.4秒かけて回転させる */
  transition: transform 0.4s ease; 
  transform: rotateX(360deg);
}

/* 境界線をリンクの外側の擬似要素として追加 */
.keyword-tags a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 12px; /* 線の長さ */
  width: 1px;
  background-color: #ccc;
}

/* =========================
  地域検索*
========================= */


.job-search-by-region {
  padding: 50px 20px;
  color: #333;
}

.section-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 40px;
}

.region-row {
  display: flex;
  align-items: flex-start;
  padding: 20px 0; /* 余白を調整 */
  border-bottom: 1px solid #eee; /* シンプルな区切り線 */
  max-width: 1000px;
  margin: 0 auto;
}

.region-name {
  width: 150px;
  font-weight: bold;
  padding-top: 8px;
  color: #888; /* 少し薄い色にして主役を県名にする */
}

.prefectures {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.prefectures a {
  position: relative; /* 擬似要素の基準 */
  color: #333;
  padding: 8px 12px;
  margin: 5px 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  transform-origin: center;
}

/* ▼ 追加：アニメーションの基準を文字（span）に移す（離したときは一瞬で戻る） */
.prefectures a span {
  display: inline-block;
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 境界線をリンクの外側の擬似要素として追加 */
.prefectures a:not(:last-child)::after {
  content: "";
  position: absolute;
  /* ▼ 変更：marginを作った分、仕切り線の位置を右端の外側へ調整 */
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 12px; /* 線の長さ */
  width: 1px;
  background-color: #ccc;
  /* ▼ 追加：線のマウス判定を無効化 */
  pointer-events: none; 
}

/* ▼ 変更：ホバー時に a 本体の transform は削除し、中の span だけを回す */
.prefectures a:hover {
  color: #235BC8;
}

.prefectures a:hover span {
  /* マウスが乗ったときだけ、0.4秒かけて回転させる */
  transition: transform 0.4s ease; 
  transform: rotateX(360deg);
}


/* ==============================================
   ★ どのブラウザでも100%動く！簡易マスクアニメーション
================================================= */
/* 最初は非表示の状態 */
.feature-item img,
.feature-item .feature-overlay {
  opacity: 0;
  transform: translateY(60px) scale(1.1);
}

/* .animate-in クラスが付いたら、アニメーション実行 */
.feature-item.animate-in img,
.feature-item.animate-in .feature-overlay {
  animation: cssMaskFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 遅延は nth-child で制御（親要素 .feature-grid の子として） */
.feature-item:nth-child(4n+1).animate-in img,
.feature-item:nth-child(4n+1).animate-in .feature-overlay {
  animation-delay: 0s;
}

.feature-item:nth-child(4n+2).animate-in img,
.feature-item:nth-child(4n+2).animate-in .feature-overlay {
  animation-delay: 0.1s;
}

.feature-item:nth-child(4n+3).animate-in img,
.feature-item:nth-child(4n+3).animate-in .feature-overlay {
  animation-delay: 0.2s;
}

.feature-item:nth-child(4n+4).animate-in img,
.feature-item:nth-child(4n+4).animate-in .feature-overlay {
  animation-delay: 0.3s;
}

/* @keyframes は変わらず */
@keyframes cssMaskFadeUp {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =========================
  *こだわり特集*
========================= */
.catg-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: 0.5px;
}

.kodawari-wrapper {
  padding: 60px 20px;
}

.kodawari-wrapper .section-header {
  max-width: 1200px;
  margin: 0 auto 5px; /* ここを変更 */
  border-bottom: 3px solid #f37321;
  padding-bottom: 25px;
}

.kodawari-section {
  max-width: 1200px;
  margin: 0 auto 45px; /* 変更: 45px → 20px */
}

/* 小見出し + もっと見る をFlexで横並び */
.kodawari-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee; /* 下に線を引くと見出しの区切りが明確になります */
  margin-top: 30px;
}

.kodawari-section-label {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid #f37321;
  letter-spacing: 0.3px;
}

.kodawari-more-link {
  /* ボタンっぽくデザイン */
  padding: 8px 20px;
  background: #f37321; /* ブランドカラーのオレンジ */
  color: #fff;
  border-radius: 20px; /* 丸くして親しみやすく */
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  
  /* 塗りつぶしアニメーション */
  background: linear-gradient(to right, #0056b3 50%, #f37321 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
}

.kodawari-more-link:hover {
  background-position: 0 0;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* ホバーで少し浮かす */
}


.kodawari-cards-grid {
display: grid;
    /* ★ minmax(250px, 1fr) から、数値を小さく変更します */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; /* ★カードが小さくなるのに合わせて、隙間（gap）も20pxから16pxに少し狭めるとバランスが良いです */
    margin-bottom: 15px;
}

.kodawari-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid #f0f0f0;
  height: 100%;
}

.kodawari-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #f37321; /* ホバー時に枠線色をオレンジに */
}


.kodawari-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.kodawari-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}

.kodawari-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.kodawari-card:hover .kodawari-card-image img {
  transform: scale(1.08);
}

/* カード全体の余白調整 */
.kodawari-card-body {
    padding: 20px;
    flex-grow: 1;
}

.kodawari-card-body h4 {
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* メタ情報のコンテナ */
.kodawari-meta {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

/* 個別の項目 */
.meta-item {
    display: flex;
    align-items: flex-start; 
    gap: 8px;
    color: #555;
    /* 2行制限 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* アイコン */
.meta-item i {
    flex-shrink: 0;
    margin-top: 2px;
    color: #f37321;
    width: 16px; /* アイコンの幅を固定 */
}

/* アイコンの隣のテキスト（span）の挙動を修正 */
.meta-item span {
    display: inline; /* flexを解除して自然な改行を許容 */
}



/* =========================
 * 人気求人ランキング（サイドバー用）
 ========================= */

/* 外枠 */
.job-ranking-container {
    background: #f37321;
    color: #fff;
    margin-top: 15px;
    border-radius: 8px;
    padding: 20px; /* 少し広げてゆとりを出す */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
	
}

.side-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fff;
    text-align: center;
}

/* カードリンク全体 */
.job-card-link {
text-decoration: none;
    color: inherit;
    display: block;
    /* transitionにbox-shadowを追加 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px; /* カードが動くので角丸もつけておく */
}

.job-card-link:hover {
    background: rgba(255, 255, 255, 0.1); /* オレンジの上に白い透過色で「明るく」なる */
    transform: translateY(-3px); /* 少し上に浮く */
    box-shadow: 0 5px 10px rgba(0,0,0,0.15); /* 影を出す */
}

/* カード本体 */
.job-card {
    display: flex;
    align-items: flex-start; /* 上寄せにするとテキストが読みやすい */
    padding: 18px 0; /* 上下の余白を広げて「ゆったりした密度」に */
border-bottom: 1px solid #fff !important;
}

.job-card:last-child { border-bottom: none; }

/* 画像 */
.job-card-image {
    width: 70px;
    height: 70px;
    margin-right: 14px;
}
.job-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* テキスト */
.job-card-body { flex: 1; }
.job-card-body h3 {
    font-size: 14px; 
    line-height: 1.5; /* 行間を広げて「読み物」としての質を上げる */
    font-weight: 700;
    color: #fff; /* 少しグレー寄りの濃い色で高級感を出す */
    margin-bottom: 6px;
}

/* メタ情報 */
.job-meta span {
    font-size: 12px; /* 11pxだと小さすぎるので12pxに */
    color: #fff;
    margin-bottom: 2px;
}

/* もっと見るリンク */
.more-link-wrapper {
    text-align: right;
    margin-top: 15px;
}
.more-link-wrapper a {
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
}


/* =========================
  *サイドバーお知らせ
========================= */

.news-board {
  border: 1px solid #f37321; /* 紫色の枠線 */
  border-radius: 12px;
  padding: 20px;
  max-width: 400px;
  background: #fff;
}

.news-title {
  font-size: 1.2rem;
  color: #f37321;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  padding: 15px 0;
  border-bottom: 1px solid #E1BEE7; /* 薄い紫の境界線 */
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list time {
  display: block;
  font-size: 0.85rem;
  color: #f37321;
  margin-bottom: 5px;
}

.news-list a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
}

.news-list a:hover {
  text-decoration: underline;
}

.news-more {
  text-align: center;
  margin-top: 20px;
}

.news-more a {
  display: inline-block;
  padding: 10px 40px;
  border: 1px solid #9C27B0;
  color: #f37321;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.news-more a:hover {
  background: #9C27B0;
  color: #fff;
}





/* =========================
  コラム
========================= */

/* セクション全体の余白 */
.interview-section {
    max-width: 1600px;
    width: 100%;
}

/* グリッドレイアウト */
.interview-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* カードの基本設定 */
.columncard {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    
    /* これを追加：影を完全に消す */
    box-shadow: none !important; 
    
    /* 念のため、borderがあればそれも調整できます */
    border: 1px solid #eee; /* もし影の代わりに枠線を入れたい場合 */
}

.columncard:hover {
    transform: translateY(-5px); /* 軽い浮遊感 */
}

/* 画像エリアとアバターの重なり */
.card-image-wrap {
  position: relative;
  height: 120px;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #D97757;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
}


/* テキスト部分 */
.card-body {
  padding: 30px 20px 20px;
}

.card-body h3 {
    margin: 0;
    font-size: 16px;
    color: #5D4037; /* ブラウン系に変更 */
}



/*コピー制御*/
body {
  user-select: none;
  -webkit-touch-callout: none;
}

img {
  pointer-events: none;
}
