/* ページ全体をスムーススクロール */
html {
  scroll-behavior: smooth;
}

/* ヘッダーのお問い合わせボタン */
.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-28.c-navbar__item {
  background-color: #005AB4;
  transition: opacity ease 0.3s;
}

.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-28.c-navbar__item:hover {
  opacity: 0.8;
}

.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-28.c-navbar__item a {
  color: #FFF;
}

/* ボタン｜ゴースト|青から白へ色反転 */
.is-style-ghost.is-reverse-color a {
  filter: none;
}

.is-style-ghost.is-reverse-color {
  transition: all ease 0.3s;
}

.is-style-ghost.is-reverse-color:hover {
  background-color: #fff;
}

.is-style-ghost.is-reverse-color span {
  transition: all ease 0.3s;
}

.is-style-ghost.is-reverse-color:hover span {
  color: #005AB4 !important;
}

/* ボタン|デフォルト|青から白へ反転 */
.is-style-default.is-reverse-white a {
  filter: none;
}

.is-style-default.is-reverse-white {
  transition: all ease 0.3s;
}

.is-style-default.is-reverse-white:hover a {
  background-color: #0894E3;
}

/* ボタン｜ゴースト|左から右へ色反転 */
.is-flow-reverse.is-style-ghost:hover a {
  filter: none;
  /* これでホバー時、暗くならない */
}

.is-flow-reverse.is-style-ghost {
  position: relative;
  overflow: hidden;
  color: #fff;
  cursor: pointer;
  /* ポインターの範囲確保 */
  transition: color 0.3s ease;
}

.is-flow-reverse.is-style-ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #005AB4;
  z-index: 1;
  transition: left 0.5s ease;
  pointer-events: none;
}

.is-flow-reverse.is-style-ghost:hover::before {
  left: 0;
}

.is-flow-reverse.is-style-ghost span {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.is-flow-reverse.is-style-ghost:hover span {
  color: #fff;
}

/* companyセクションの背景画像 */
.p-background-image {
  position: absolute;
  top: -20%;
  right: 0;
  margin-top: 0;
  opacity: 0.8 !important;
}

.p-section-company {
  position: relative !important;
}

/* companyセクション（スマホ）の背景画像 */
.p-background-image--sp {
  position: absolute;
  top: 0%;
  right: -20%;
  margin-top: 0;
  opacity: 1 !important;
}

@media screen and (max-width: 480px) {
  .p-background-image--sp {
    top: 0%;
    right: -40%;
    opacity: 0.5 !important;
  }
}

/* セクションタイトル下線（白） */
.c-section-bar__white .smb-section__title::after {
  background-color: #fff !important;
}

/* これでバナーの暗いフィルター外す */
.is-filter-off .smb-items__banner__figure {
  filter: grayscale(1) brightness(0.5);
  transition: all ease 0.3s;
}

.is-filter-off:hover .smb-items__banner__figure {
  filter: grayscale(0) brightness(0.8);
  scale: 1.2;
}

/* 事業内容の背景 */
.p-bg--service {
  position: absolute;
  top: -5%;
  bottom: 0%;
  right: 0;
  margin-top: 0;
  opacity: 1 !important;
}

/* 採用エントリーフォームの確認ボタン */
.smf-action .smf-button-control__control {
  font-size: 1.0em;
  font-weight: 700;
  background-color: #005AB4;
  background-image: none;
  color: #fff;
  border: none;
  transition: all ease 0.3s;
  display: inline-block;
  letter-spacing: 0.2em;
  line-height: 1.5;
  margin: 0;
  min-width: 35%;
  padding: 1em 1.5em;
  position: relative;
  text-decoration: none;
  width: auto;
}

.smf-action .smf-button-control__control:hover {
  opacity: 0.7;
}

/* フッターの背景色 */
.c-copyright.c-copyright--inverse {
  background-color: #005AB4 !important;
}

/* お問い合わせボタンのホバー */
.is-style-ghost.is-hover-contact {
  transition: all ease .3s;
}

.is-style-ghost.is-hover-contact span {
  transition: all ease .3s;
}

.is-style-ghost.is-hover-contact:hover {
  background-color: #fff !important;
  filter: none;
}

.is-style-ghost.is-hover-contact:hover span {
  color: #005AB4 !important;
}

/* 採用情報のマージントップ */
.p-recruit-container .smb-section__subtitle {
  margin-top: 64px;
}

/* 白線消し */
.c-section.p-section-front-page-content {
  padding-bottom: 0;
  margin-bottom: -1px;
}

/* 上部の余白消し */
.c-section.p-section-front-page-content {
  padding-top: 0;
}

/* ページタイトルの日本語左寄せ */
.c-page-title__left .smb-section__subtitle {
  text-align: left !important;
  margin-left: 12px;
}

.smb-section__body.is-layout-constrained.wp-block-section-is-layout-constrained {
  margin-top: 5px;
}

.c-entry-summary__meta .c-meta__item--author {
  display: none;
}

/* Search & Filter */
/* 検索フォーム全体 */
.custom-search-form {
  display: flex;
  gap: 12px;
  max-width: 800px;
  margin: 2rem auto;
  padding: 3rem 1.5rem;
  background: #f9f9f9;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  justify-content: center;
  align-items: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
}

/* テキスト入力欄 */
.custom-search-form input[type="text"] {
  flex: 1;
  padding: 7.4px 16px;
  border-radius: 0;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #333;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.custom-search-form input[type="text"]:focus {
  border-color: #3498db;
  outline: none;
}

/* セレクトボックス */
.custom-search-form select {
  flex: 0 0 160px;
  padding: 9px 14px;
  border-radius: 0;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.custom-search-form select:hover,
.custom-search-form select:focus {
  border-color: #3498db;
  outline: none;
}

/* 検索ボタン(input[type=submit]) */
.custom-search-form input[type="submit"] {
  flex: 0 0 100px;
  padding: 0.35rem 1.2rem;
  background: #007bff;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 16px;
}

.custom-search-form input[type="submit"]:hover {
  background: #0056b3;
}

/* レスポンシブ：幅800px以下で縦並び */
@media (max-width: 800px) {
  .custom-search-form {
    flex-direction: column;
    padding: 2.5rem 1rem;
  }

  .custom-search-form input[type="text"],
  .custom-search-form select,
  .custom-search-form input[type="submit"] {
    width: 100%;
    margin: 0 0 18px 0;
    flex: none;
  }

  .custom-search-form input[type="submit"] {
    margin-left: 0;
    margin-bottom: 0;
  }
}

/* ヘッダーのエックスアイコンのサイズ調整 */
.sm-icon-x {
  width: 4rem !important;
}

.drawer-icon-x {
  width: 1.5rem !important;
}

/* ヘッダーとドロワーのyoutubeアイコンのサイズ調整 */
.pc-icon-youtube {
  width: 8rem!important;
}

.sm-icon-youtube {
  width: 4rem!important;
}

.footer__google-map {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* フッターのGoogleマップへのリンク */
.footer__google-map:hover {
  opacity: 0.7;
}

/* 背景文字を見切れるようにする */
.smb-section__background-text__text {
  white-space: nowrap;
}

/* セクションタイトル（縦の青線） */
.u-bar-heading {
  border-left: 5px solid #005AB4;
  padding-left: 1rem;
}

/* 施工実績のテーブルヘッダーの色 */
#tablepress-33 thead th,
#tablepress-34 thead th,
#tablepress-36 thead th,
#tablepress-37 thead th,
#tablepress-40 thead th,
#tablepress-43 thead th {
  background-color: #005AB4; /* お好みの色 */
  color: #fff;              /* 文字色（白など） */
}