/* ------------------------------------------
サイト全体
------------------------------------------ */
/* ボディ上下の余白消す */
body.home .p-section-front-page-content.c-section {
  padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body .c-entry-tags,
body .wp-profile-box,
body .c-entry__meta {
  display: none !important;
}

/* すべてのページで l-contents__inner の上下余白を削除 */
.l-contents__inner {
  padding-bottom: 0 !important;
}

/* フッター背景色 */
.l-footer-widget-area {
  background-color: #0B416E;
  color: #fff; 
}

/* 現在ページとホバー時の下線を太く・色変更 */
.p-global-nav--hover-extend-underline .c-navbar__item a::after {
  height: 3px !important; /* ← 下線の太さ */
  bottom: 0;
}

/* アクティブなページ（aria-current="page"）の下線にも適用 */
.p-global-nav--hover-extend-underline .c-navbar__item a[aria-current="page"]::after {
  height: 3px !important;
}


/* .p-footer-sub-nav {
  background-color: #017ec9;
} */


/* ------------------------------------------
投稿ページ+タイトル関係
------------------------------------------ */
/* --- タイトル非表示（投稿・固定） --- */
.single .c-entry__title,
.page .c-entry__title {
  display: none !important;
}

/* --- 関連記事エリア非表示 --- */
.single .c-entry__footer .p-related-posts {
  display: none !important;
}

/* 投稿/固定どちらでも コメントブロックを丸ごと非表示 */
.p-comments { display: none !important; }

/* --- トラックバック非表示（使っていないなら削除でも可） --- */
.single .p-trackbacks,
.single .p-trackbacks__trackback-url,
.single .trackback-url {
  display: none !important;
}

/* --- 前後ナビ非表示 --- */
.c-prev-next-nav {
  display: none !important;
}

/* ページヘッダーの背景画像と余白を完全に消す */
.c-page-header[data-has-image="true"] {
  display: none !important;
}

/* ===========================
   WPAW 最近の投稿 → グリッド表示
=========================== */
.wpaw-recent-posts ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* 3カラム可変 */
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wpaw-recent-posts li {
  border: 1px solid #eee;
  padding: 0.8rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* サムネイルサイズ調整 */
.wpaw-recent-posts img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}


/* ------------------------------------------
レスポンシブ
------------------------------------------ */
/* メディアとテキスト：縦並び時の画像を小さく */
@media (max-width: 767px) {
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media img {
    width: 50% !important;
    max-width: 50% !important;
    height: auto;
    display: block;
    /* margin: 0 auto;  中央*/
  }
}

/* お部屋の画像を1列に */
@media (max-width: 767px) {
  .room-grid {
    grid-template-columns: 1fr !important;
  }
}


/* === Unitoneからページ全体のスムーススクロール設定 === */
html {
  scroll-behavior: smooth;
}

.fixed-cta {
  position: fixed !important;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background-color: rgba(200, 200, 200, 0.6);
  padding: 1em;
  text-align: center;
}

/* 見出しの上の余白を縮める */
.tight-top-space {
  margin-top: -3rem; /* 必要に応じて -0.5rem などに調整可 */
}

/* 職種名の下余白を縮める */
.tight-bottom-space {
  margin-bottom: -3rem;
}

.align-bottom {
  align-self: flex-end;
}

/* フォーム用 */
/* === テーブル全体の幅と配置 === */
.wpcf7 table.inquiry {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.wpcf7 table.inquiry td p .wpcf7-form-control-wrap input[type="file"] {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* === ラベル（th）の装飾 === */
.wpcf7 table.inquiry th {
  width: 240px; /* ← 見切れないように調整 */
  text-align: left;
  vertical-align: middle; /* ← 高さ中央に揃える */
  padding: 0.5em 1em;
  white-space: nowrap;
}

/* === 入力欄側（td）の装飾 === */
.wpcf7 table.inquiry td {
  padding: 0.5em 0;
}

/* === テキスト系の入力欄を横いっぱいに === */
.wpcf7 table.inquiry input[type="text"],
.wpcf7 table.inquiry input[type="email"],
.wpcf7 table.inquiry input[type="tel"],
.wpcf7 table.inquiry textarea,
.wpcf7 table.inquiry select {
  width: 100%;
  box-sizing: border-box;
  max-width: auto;
  margin: 1em 0;
}

/* === 特例：電話番号や生年月日のような横並び項目 === */
.wpcf7 .mwform-tel-field,
.wpcf7 .mwform-date-field {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.wpcf7 .mwform-tel-field input[type="text"] {
  width: auto;
  min-width: 4em;
}

/* === 短い select や input に使えるクラス === */
.wpcf7 .short-field {
  width: auto !important;
  min-width: 6em;
}

/* === 行間（行と行の余白）調整 === */
.wpcf7 table.inquiry tr {
  border-bottom: 1px solid #ddd;
}

/* === 必須・任意マークの見た目 === */
.wpcf7 .haveto {
  color: #fff;
  background: #d9534f;
  font-size: 0.8em;
  padding: 0.1em 0.4em;
  margin-right: 0.5em;
  border-radius: 3px;
}

.wpcf7 .any {
  color: #fff;
  background: #124d96;
  font-size: 0.8em;
  padding: 0.1em 0.4em;
  margin-right: 0.5em;
  border-radius: 3px;
}

/* スパムチェックボックスの余白調整 */
.wpcf7 .spam-info {
  margin: 2em 0;
}

/* 送信ボタン */
.wpcf7 .submit-btn-wrap {
  margin: 2em 0;
  text-align: center;
}

.wpcf7 input[type="submit"].soushinbtn:hover {
  background-color: #0073aa;
  color: #fff;
}

.tag-label {
  background-color: #f08080;
  color: #fff;
  padding: 0.2em 0.8em;
  border-radius: 1em;
  font-size: 0.9em;
  display: inline-block;
}

.recruit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.recruit-tags .tag-label {
  background-color: #0cb59b;
  color: #fff;
  padding: 0.2em 0.4em;
  display: inline;
  border-radius: 0.3em;
  white-space: nowrap;
}

/* === スマホ時はラベルと入力を縦に並べる === */
@media screen and (max-width: 767px) {
  .wpcf7 table.inquiry {
    table-layout: auto;
  }

  .wpcf7 table.inquiry tr {
    display: block;
    margin-bottom: 1em;
  }

  .wpcf7 table.inquiry th,
  .wpcf7 table.inquiry td {
    display: block;
    width: 100%;
  }

  .wpcf7 table.inquiry th {
    margin: 0 !important;
    margin-bottom: 0.3em;
  }
}

form.searchandfilter {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* ===========================
   TOPページ　求人　パネル
=========================== */
/* ボタンの上下余白＆高さをコンパクトに（Snow Monkeyボタン） */
.job-row .smb-btn { 
  margin: 0 !important;
  padding: .7em 1.3em !important;
  line-height: 1.5;
}

/* 求人カード1件ずつ（Snow Monkeyの標準クラス） */
.smb-panels__item--free {
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}


/* ------------------------------------------
カテゴリ一覧ブロック
------------------------------------------ */
/* 各カテゴリカード */
.smb-categories-list__item {
  background-color: #fff; /* 各カードも白背景 */
}

/* 件数バッジ（例：「6 記事」部分） */
.smb-categories-list__item__count {
  background-color: #99D6F9;
  color: #0B416E;
}

.smb-categories-list__item__count::before,
.smb-categories-list__item__count::after {
  display: none !important;
  content: "" !important;
}
