@charset "UTF-8";

/* =========================================================
   article-search.css
   検索UI（/search ページ・ヘッダー検索モーダル・ハンバーガー内）
   既存テーマと衝突しないよう .article-search 名前空間で完結
   ========================================================= */
.article-search {
  --as-navy: #14284b;
  --as-blue: #2d57d7;
  --as-blue-soft: #e8f1fa;
  --as-link: #2563eb;
  --as-accent: #e8503a;
  --as-line: #d9e0e8;
  --as-text: #2b3a4e;
  --as-weak: #6b7a8c;
  --as-bg-sub: #f5f7fa;
  color: var(--as-text);
  font-family: inherit;
}

/* ---- 入力行 ---- */
.article-search__form {
  margin: 0
}

.article-search__kw-row {
  display: flex;
  gap: 8px
}

.article-search__input {
  flex: 1;
  height: 48px;
  border: 1px solid var(--as-line);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  background: #fff;
  color: var(--as-text);
}

.article-search__input:focus, .article-search__input:focus-visible {
  outline: 2px solid #2d57d7;
  outline-offset: -1px;
  background: #fff !important
}

.article-search__submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  background: #2d57d7;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

input.article-search__input[type=email], input.article-search__input[type=number], input.article-search__inputt[type=password], input.article-search__input[type=search], input.article-search__input[type=tel], input.article-search__input[type=text], input.article-search__input[type=date], input.article-search__input[type=url] {
  background: #fff !important;
  outline: 2px solid #eee;
}

button.article-search__submit {
  background: #2d57d7;
}

.article-search__submit:hover {
  background: #0b4f8c
}

/* ---- タブ ---- */
.article-search__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  border-bottom: 1px solid var(--as-line);
  padding-bottom: 10px;
}

.article-search__tab {
  position: relative;
  border: none;
  background: none;
  padding: 9px 14px 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--as-weak);
  border-radius: 8px 8px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  cursor: pointer;
  transition: .15s;
}

.article-search__tab:hover {
  color: var(--as-navy);
  background: #eef2f7
}

.article-search__tab.is-active {
  color: #2d57d7;
}

.article-search__tab.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -3px;
  height: 3px;
  background: #2d57d7;
  border-radius: 3px;
}

/* ---- パネル・チップ ---- */
.article-search__panel {
  margin-top: 16px
}

.article-search__panel-count {
  font-size: 11px;
  color: var(--as-weak);
  margin-bottom: 8px
}

.article-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.article-search__chip {
  border: 1px solid var(--as-line);
  background: #fff;
  color: var(--as-text);
  border-radius: 999px;
  padding: 6px 14px 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-search__chip .as-n {
  font-size: 10px;
  color: var(--as-weak);
  background: var(--as-bg-sub);
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 24px;
  text-align: center;
}

.article-search__chip:hover {
  border-color: #2d57d7;
  color: #2d57d7;
}

.article-search__chip.is-on {
  background: #2d57d7;
  border-color: #2d57d7;
  color: #fff;
  font-weight: 700
}

.article-search__chip.is-on .as-n {
  background: rgba(255, 255, 255, .25);
  color: #fff
}

/* ---- フッター（クリア） ---- */
.article-search__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--as-line);
  gap: 12px;
  flex-wrap: wrap;
}

.article-search__selected {
  font-size: 12px;
  color: var(--as-weak)
}

.article-search__clear {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--as-weak);
  text-decoration: underline;
  cursor: pointer;
}

.article-search__clear:hover {
  color: var(--as-accent)
}

/* ---- ページ版パネル背景 ---- */
.article-search--page {
  background: var(--as-bg-sub);
  border: 1px solid var(--as-line);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #c6ccdd;
}

@media(min-width:720px) {
  .article-search--page {
    padding: 24px;
  }
}

@media(max-width:768px) {
  .article-search--page {
    border-left: none;
    border-right: none;
    width: 100%;
    max-width: 100% !important;
    padding-right: 0;
    padding-left: 0;
  }
  .article-search__panels {
    padding: 0 20px 0 20px;
  }
  .article-search__foot {
    padding: 20px 20px 0 20px;
  }
}

/* ---- モーダル / メニュー版: 人気キーワード ---- */
.article-search__cap {
  font-size: 11px;
  color: var(--as-weak);
  margin: 12px 0 6px
}

.article-search__popular {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  padding: 5px 0 5px 0;
}

.article-search__pop {
  font-size: 12px;
  color: #2d57d7;
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}

.article-search__pop .as-n {
  font-size: 10px;
  color: var(--as-weak);
  margin-left: 4px
}

.article-search__pop:hover {
  border-color: #2d57d7;
}

.article-search__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #2d57d7;
}

.article-search__more::after {
  content: " →"
}

/* ハンバーガー内: タグボタンの末尾にテキストリンクとして並べる
   （.article-search__popular の最後の flex アイテム） */
.article-search__popular .article-search__more {
  align-self: center;
  margin: 0 0 0 2px;
  padding: 5px 2px;
  font-size: 14px;
  font-weight: 700;
  color: #2d57d7;
  text-decoration: none;
  white-space: nowrap;
}

.article-search__popular .article-search__more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   ヘッダー検索モーダル（ヘッダーの検索ボタン押下で表示）
   ========================================================= */
.article-search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 24px;
}

.article-search-modal[hidden] {
  display: none
}

.article-search-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 75, .5)
}

.article-search-modal__dialog {
  position: relative;
  width: min(600px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  padding: 20px;
  animation: asModalIn .22s ease;
}

@keyframes asModalIn {
  from {
    opacity: 0;
    transform: translateY(-12px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media(prefers-reduced-motion:reduce) {
  .article-search-modal__dialog {
    animation: none
  }
}

.article-search-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  font-size: 18px;
  color: #333;
  z-index: 1;
  cursor: pointer;
  line-height: 1;
}

.article-search-modal__close:hover {
  color: var(--as-link, #2563eb)
}

.article-search-modal .article-search {
  --as-navy: #14284b
}

.article-search-modal .article-search__title {
  font-size: 14px;
  font-weight: 700;
  color: #14284b;
  margin: 0 0 10px;
}

body.article-search-modal-open {
  overflow: hidden
}

/* ハンバーガー内に差し込む検索ブロックの上下余白 */
.article-search--menu {
  margin-top: 20px;
}

.article-search--menu .article-search__title {
  font-size: 14px;
  font-weight: 700;
  color: #14284b;
  margin: 0 0 0;
}

/* =========================================================
   検索ページの記事カード（モックアップ準拠）
   ========================================================= */
.search-page .as-card {
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: .15s;
}

.search-page .as-card:hover {
  box-shadow: 0 4px 14px rgba(20, 40, 75, .10);
  transform: translateY(-2px)
}

.search-page .as-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit
}

.search-page .as-card__thumb {
  aspect-ratio: 1.91/1;
  background: linear-gradient(135deg, #dce8f5, #eef3f8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: solid 1px #eceef2;
}

.search-page .as-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.search-page .as-card__thumb-ph {
  color: #9db3cc;
  font-size: 12px;
  letter-spacing: .1em
}

.search-page .as-card__body {
  padding: 14px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  font-size: 14px;
}

.search-page .as-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  flex-wrap: wrap
}

.search-page .as-card__cat {
  background: #14284b;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 700
}

.search-page .as-card__cat--event {
  background: #2d57d7
}

.search-page .as-card__cat--interview {
  background: #0f8a6d
}

.search-page .as-card__cat--grant {
  background: #b06a0f
}

.search-page .as-card__cat--info {
  background: #5a6b80
}

.search-page .as-card__date {
  color: #6b7a8c
}

.search-page .as-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #14284b;
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.search-page .as-card:hover .as-card__title {
  color: #2d57d7
}

/* 検索カードの抜粋（全角46文字＋末尾…、文字数は PHP 側で制御） */
.search-page .as-card__excerpt {
  font-size: 12px;
  color: #6b7a8c;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

/* 検索ページのパンくずを非表示（上部はPHPで停止済み、フッター側はここで） */
/* 上部パンくずは search.php で呼び出し停止済み。フッター直前パンくずは表示（復帰）。 */
/* =========================================================
   検索結果グリッド（event-seminar 準拠：PC3 / タブレット2 / モバイル1）
   ブレークポイントは Elementor 標準に合わせる
     - タブレット: 〜1024px で 2カラム
     - モバイル:   〜767px  で 1カラム
   ========================================================= */
.search-page.as-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  /* event-seminar と同じ 2em */
  align-items: stretch;
  position: relative;
  /* footer等に潜り込まないよう明示 */
  z-index: 1;
}

.search-page.as-grid>.as-grid__item {
  min-width: 0
}

/* Ohio masonry/lazy 由来の絶対配置を無効化してグリッドを素直に効かせる */
.search-page.as-grid,
.search-page.as-grid>.as-grid__item {
  position: static !important;
  top: auto !important;
  left: auto !important;
}

.search-page.as-grid {
  position: relative !important;
}

.search-page.as-grid>.as-grid__item {
  width: auto !important;
  height: auto !important;
  transform: none !important;
}

@media (max-width:1024px) {
  .search-page.as-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:767px) {
  .search-page.as-grid {
    grid-template-columns: 1fr;
  }
}

/* Ohio の vc_row 由来の負マージン等をリセット（グリッドを素直に効かせる） */
.search-page.as-grid {
  margin-left: 0;
  margin-right: 0;
}

.search-page.as-grid>.as-grid__item {
  padding-left: 0;
  padding-right: 0;
}

/* =========================================================
   検索ページのページネーション（Elementor 形式・event-seminar 準拠）
   ========================================================= */
.search-page-wrap .elementor-pagination,
.site-main>.elementor-pagination,
.elementor-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0 0;
}

.elementor-pagination .elementor-screen-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   ヘッダーの検索ボタン（SNSアイコンとハンバーガーの間に挿入）
   ========================================================= */
#masthead .right-part .article-search-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  margin: 0 4px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: .15s;
  line-height: 1;
  text-decoration: none;
  border: solid 1px #ddd;
  margin-left: 20px;
}

@media screen and (max-width: 768px) {
  #masthead .right-part .article-search-cta {
    display: none;
  }
}

#masthead .right-part .article-search-cta:hover {
  background: #2d57d7;
  border: solid 1px #2d57d7;
  color: #fff
}

#masthead .right-part .article-search-cta svg {
  flex-shrink: 0
}

@media (max-width:600px) {
  #masthead .right-part .article-search-cta {
    width: 40px;
    padding: 0;
    justify-content: center
  }

  #masthead .right-part .article-search-cta__label {
    display: none
  }
}

/* 検索ページ見出し：検索語（span）を隠して「検索」だけ表示 */
body.search .page-headline .title span {
  display: none
}

/* 検索パネル下部の余白 */
.article-search--page {
  margin-bottom: 30px
}

.search .page-container.top-offset {
  padding-top: 0;
}

/* =========================================================
   event-seminar スタイル踏襲（コンテナ幅1200px・ページネーション色）
   ========================================================= */
/* 検索パネル・結果グリッドの最大幅を event-seminar と揃える */
.article-search--page,
.search-page.as-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ページネーションのメインカラーを event-seminar に合わせる（#2d57d7系） */

/* =========================================================
   検索結果ページ 背景・余白・見出し（専用スコープ body.search）
   ========================================================= */
/* 背景グラデーション（検索ページ全体） */
.search div#content {
  background: linear-gradient(90deg, #f3f8fe 0%, #fbfcef 100%);
}

/* 天地・左右の余白（専用クラスで他ページに影響させない） */
.article-search-page-head {
  padding: 0 30px;
}

@media screen and (max-width: 768px) {
  .article-search-page-head {
    padding: 0;
  }

  .article-search--page {
    border-radius: 0;
  }
}

body.search main#main {
  padding: 0 30px 40px 30px;
}

/* 見出し「検索」の下に英字 SEARCH を追加（青字 #2d57d7） */
body.search .page-headline .title::after {
  content: "SEARCH";
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 600;
  color: #2d57d7;
}

/* =========================================================
   検索結果バー（件数＋並び替え）
   ========================================================= */
.article-search-resultbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-search-resultbar .result-count {
  font-size: 14px;
  color: #14284b
}

.article-search-resultbar .result-count strong {
  font-size: 22px;
  color: #2d57d7;
  margin: 0 2px
}

.article-search-resultbar .sort-select {
  height: 38px;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  padding: 0 30px 0 12px;
  font-size: 13px;
  background: #fff;
  color: #2b3a4e;
  font-family: inherit;
  float: right;
  max-width: 10em;
  text-align: left;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232b3a4e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

/* =========================================================
   追加調整（ローディング・フェードイン・ページネーション・スマホ）
   ========================================================= */
/* --- ローディング表示（検索・ソート実行時） --- */
/* オーバーレイの基準は検索パネル本体。
   inset:0 で padding + content（＝パネルの内側）だけを覆い、
   パネル外側の余白（margin）には白を掛けない。 */
.article-search--page {
  position: relative;
}

.page-container.bottom-offset {
  position: relative
}

.as-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .6);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.as-loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid #d9e0e8;
  border-top-color: #2d57d7;
  animation: asSpin .8s linear infinite;
}

@keyframes asSpin {
  to {
    transform: rotate(360deg)
  }
}

@media(prefers-reduced-motion:reduce) {
  .as-loading-spinner {
    animation-duration: 2s
  }
}

/* --- カードのフェードイン --- */
.search-page.as-grid>.as-grid__item {
  opacity: 0;
  animation: asFadeIn .5s ease forwards;
}

@keyframes asFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media(prefers-reduced-motion:reduce) {
  .search-page.as-grid>.as-grid__item {
    animation: none;
    opacity: 1
  }
}

/* --- ページネーション prev/next を /interview/ と統一 --- */

.elementor-pagination .page-numbers.prev:hover,
.elementor-pagination .page-numbers.next:hover {
  color: #2d57d7
}

/* --- スマホ: ページネーションは main#main の左右余白を打ち消して全幅で1行に --- */
@media(max-width:767px) {

  /* main の padding が効いても、ページネーションだけは相殺 */
  body.search main#main .elementor-pagination {
    margin-left: -30px;
    margin-right: -30px;
    padding-left: 8px;
    padding-right: 8px;
    gap: 4px;
    flex-wrap: nowrap;
  }



  /* 中間ページの間引きは JS（initPaginationCompact）が display で制御 */
}

/* ハンバーガーメニュー内「キーワード検索」見出しの上部ボーダー（全幅・段落とし） */
.article-search__title--bordered {
  border-top: 1px solid var(--as-line, #d9e0e8);
  width: 100%;
  padding-top: 20px;
  margin-top: 20px;
}

/* 虫眼鏡SVGを線画（くり抜き）で統一。circle が塗りつぶされないよう強制 */
.article-search__submit svg,
.article-search__submit svg circle,
.article-search__submit svg path,
#masthead .right-part .article-search-cta svg,
#masthead .right-part .article-search-cta svg circle,
#masthead .right-part .article-search-cta svg path {
  fill: none !important;
  stroke: currentColor;
}

/* =========================================================
   ハンバーガーメニュー モーダル 微調整
   ========================================================= */
.slide-in-overlay.menu-slide-in-overlay.visible .holder {
  padding: 0;
}

div#article-search-menu-block {
  background: #f5f7fa;
  padding: 0px 30px 30px 30px;
  border-top: unset;
  margin-top: 0;
  border-left: 1px solid #ddd;
}

@media(max-width:1024px) {
  div#article-search-menu-block {
    border-bottom: unset !important;
    margin-bottom: 0;
    padding: 0 0 20px 0;
  }

  p.article-search__title.article-search__title--bordered {
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-search__kw-row {
    padding-left: 20px;
    padding-right: 20px;
  }

  p.article-search__cap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-search__popular {
    padding-left: 20px;
  }

  .article-search__popular .article-search__more {
    font-size: 13px;
  }
}

.nav-container .menu.mobile-menu>li {
  border-bottom: solid 1px #ddd;
  padding: 4px 20px 5px 20px;
}

ul#mobile-menu {
  margin-top: 80px;
  border-top: solid 1px #ddd;
  margin-left: unset;
  margin-right: unset;
  border-left: 1px solid #ddd;
}

.article-search__title--bordered {
  border: unset;
}

.slide-in-overlay.menu-slide-in-overlay.visible {
  max-width: 100% !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  overflow-x: hidden !important
}

.slide-in-overlay.menu-slide-in-overlay.visible .holder, .slide-in-overlay.menu-slide-in-overlay.visible .nav-container {
  max-width: 100%;
  overflow-x: hidden
}

body.menu-opened, body.slide-in-overlay-opened {
  overflow-x: hidden;
  touch-action: pan-y
}

.slide-in-overlay.menu-slide-in-overlay.visible * {
  max-width: 100%;
  box-sizing: border-box
}

.menu-depth-1 li {
    margin: 0 !important;
    padding: 3px 0 !important;
}
.nav-container .menu.mobile-menu .menu-depth-1 li {
    border-top: solid 1px #ddd !important;
}


/* モーダルヘッダー：既存 top-part 構造を流用 */
.menu-slide-in-overlay .as-modal-header {
  width: 100%;
  background: #fff;
  position: relative;
  z-index: 2
}

.menu-slide-in-overlay .as-modal-header .as-modal-right {
  display: flex;
  align-items: center;
  margin-left: auto
}

/* 閉じるボタンを確実に正円に */
/* FADE-NO-SCALE */
.slide-in-overlay.menu-slide-in-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  transform: none !important;
  -webkit-transform: none !important;
  scale: 1 !important;
  transition: opacity .3s ease, visibility 0s linear .3s !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none
}

.slide-in-overlay.menu-slide-in-overlay.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .3s ease, visibility 0s !important
}

.slide-in-overlay.menu-slide-in-overlay .holder {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  -webkit-transform: none !important;
  margin-top: 0 !important;
  opacity: 1 !important;
  transition: none !important;
  animation: none !important
}

.slide-in-overlay.menu-slide-in-overlay .overlay {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  transform: none !important;
  -webkit-transform: none !important;
  transition: opacity .3s ease !important;
  animation: none !important
}

.menu-slide-in-overlay .as-modal-right .icon-button, .menu-slide-in-overlay .as-modal-right .-overlay-button, .menu-slide-in-overlay .as-modal-right button.icon-button, .menu-slide-in-overlay .top-part .icon-button {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  border-radius: 50% !important;
  aspect-ratio: 1/1 !important;
  flex: 0 0 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important
}

.menu-slide-in-overlay .holder {
  padding: 0 !important
}

/* スティッキーヘッダー時の高さ調整 */
ul#mobile-menu {
  margin-top: 0;
  border-top: unset
}

#masthead.-sticky .header-wrap {
  min-height: 50px;
  height: 50px
}

#masthead.-sticky {
  min-height: 50px !important;
  height: 50px
}

#masthead.-sticky .top-part-bg {
  min-height: 50px;
  height: 50px
}

#masthead.-sticky .top-part {
  min-height: 50px;
  height: 50px
}

#masthead .mobile-hamburger.-right {
  margin-left: 10px;
  margin-right: 10px;
  min-width: 0
}

@media(max-width:768px) {
  #masthead .mobile-hamburger.-right {
      margin-left: 0px;
      margin-right: 0px;
      min-width: 0;
  }
}

@media(min-width:1513px) {
  #masthead .mobile-hamburger.-right {
    margin-left: 20px;
    margin-right: 0px;
    min-width: 0;
  }
}

/* ロゴ：通常もモーダルも同一サイズ・中央固定 */
#masthead .branding .logo img,
.menu-slide-in-overlay .as-modal-header .branding .logo img {
  height: 26px !important;
  width: auto !important;
  max-height: 26px !important;
  min-height: 0 !important;
  display: block !important
}

@media(max-width:768px) {
  #masthead .branding .logo img, .menu-slide-in-overlay .as-modal-header .branding .logo img {
    height: 22px !important;
    max-height: 22px !important
  }
}

.menu-slide-in-overlay .as-modal-header {
  position: relative
}

.menu-slide-in-overlay .as-modal-header .branding {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none;
  z-index: 3
}

.menu-slide-in-overlay .as-modal-header .as-modal-right {
  margin-right: 20px
}

/* モーダルヘッダー: ロゴを親の縦横中央 */
.menu-slide-in-overlay .as-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70px;
  border-bottom: solid 1px #ececec;
}

.menu-slide-in-overlay .as-modal-header .branding {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  -webkit-transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none;
  z-index: 3
}

.menu-slide-in-overlay .as-modal-header .branding .branding-title {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important
}

.menu-slide-in-overlay .as-modal-header .branding .logo {
  pointer-events: auto;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important
}

@media(max-width:768px) {
  .menu-slide-in-overlay .as-modal-header {
    min-height: 60px
  }
}

@media(max-width:768px) {
  body.search .page-headline .holder {
    padding: 0 !important;
    height: 70px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center
  }
}

.menu-slide-in-overlay .as-modal-right .icon-button.-overlay-button, .menu-slide-in-overlay .as-modal-right button.icon-button {
  transform: translateX(20px)
}

@media(max-width:1179px) {
  .menu-slide-in-overlay .as-modal-right .icon-button.-overlay-button, .menu-slide-in-overlay .as-modal-right button.icon-button {
    transform: translateX(30px)
  }
}

.site-footer .menu.mobile-menu>li, footer .menu.mobile-menu>li {
  border-bottom: none !important
}

.nav-container .menu.mobile-menu li .has-submenu-icon {
  padding: 0 10px 0 0 !important;
  top: 0;
  height: var(--as-menu-row-h, 49px);
  display: flex;
  align-items: center;
  transform: none;
  margin-right: 10px;
}

@media(max-width:1180px) {
  .nav-container .menu.mobile-menu li .has-submenu-icon {
    margin-right: 10px;
  }
}

@media(min-width:1518px) {
  .nav-container .menu.mobile-menu li .has-submenu-icon {
    margin-right: 25px;
  }
}

/* ===== モバイル調整 ===== */
@media(max-width:768px) {
  .article-search__tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    white-space: nowrap;
    padding-left: 10px;
  }

  .article-search__tabs::-webkit-scrollbar {
    display: none
  }

  .article-search__tab {
    flex: 0 0 auto;
    white-space: nowrap
  }
}

@media(max-width:768px) {

  body[class*="slug-event-seminar"] .page-headline .holder,
  body[class*="slug-area-field"] .page-headline .holder,
  body.post-type-archive-tribe_events .page-headline .holder,
  body[class*="event-seminar"] .page-headline .holder,
  body[class*="area-field"] .page-headline .holder {
    padding: 0 !important;
    height: 70px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center
  }
}

/* モーダル2カラム */
.menu-slide-in-overlay .as-modal-cols {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 0
}

.menu-slide-in-overlay .as-modal-col {
  box-sizing: border-box
}

/* タブが5つになり50%では横スクロールが出るため、左カラムを70%に広げる */
.menu-slide-in-overlay .as-modal-col--left {
  width: 64%;
  padding: 24px 40px;
}

.menu-slide-in-overlay .as-modal-col--right {
  width: 36%
}

.as-modal-news__head {
  font-size: 18px;
  font-weight: 700;
  color: #14284b;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid #ddd;
  line-height: 1.3
}

.as-modal-news__list {
  list-style: none;
  margin: 0;
  padding: 0
}

.as-modal-news__item {
  border-bottom: 1px solid #e5e9ef;
  margin: 0 !important;
  padding: 6px 0;
}

.as-modal-news__item:first-child {
  border-top: unset;
}

.as-modal-news__item:last-child {
  border-bottom: unset;
}

.as-modal-news__link {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
}

.as-modal-news__thumb {
  flex: 0 0 140px;
  width: 140px;
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  background: #f0f3f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.as-modal-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: solid 1px #e5e9ef;
}

.as-modal-news__thumb-ph {
  font-size: 11px;
  color: #9aa7b5;
}

.as-modal-news__body {
  flex: 1;
  min-width: 0;
}

.as-modal-news__date {
  display: block;
  font-size: 13px;
  color: #161518;
  margin-bottom: 6px;
  font-weight: 400;
}

.as-modal-news__title {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2b3a;
  text-underline-offset: 2px;
  font-weight: 500;
}

.as-modal-news__title:hover {
    text-decoration: underline;
    color: var(--clb-link-hover-color);
}

.as-modal-news__link:hover .as-modal-news__title {
  color: #2d57d7;
}

@media(max-width:1024px) {
  .menu-slide-in-overlay .as-modal-cols {
    flex-direction: column
  }

  .menu-slide-in-overlay .as-modal-col--left, .menu-slide-in-overlay .as-modal-col--right {
    width: 100%
  }

  .menu-slide-in-overlay .as-modal-col--left {
    order: 2;
    padding: 24px 20px;
    border-right: none;
    border-top: 1px solid #e5e9ef
  }

  .menu-slide-in-overlay .as-modal-col--right {
    order: 1
  }

  .as-modal-news__thumb {
    flex-basis: 120px;
    width: 120px
  }
}

/* メニュー内SNS非表示・ヘッダーSNS表示 */
.menu-slide-in-overlay .as-modal-col--right .social-networks, .menu-slide-in-overlay .nav-container>.social-networks {
  display: none !important
}

.menu-slide-in-overlay .as-modal-right {
  display: flex;
  align-items: center;
  gap: 14px
}

.menu-slide-in-overlay .as-modal-sns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none
}

.menu-slide-in-overlay .as-modal-sns li {
  margin: 0
}

.menu-slide-in-overlay .as-modal-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1062ac;
  color: #fff;
  text-decoration: none;
  font-size: 15px
}

.menu-slide-in-overlay .as-modal-sns a.twitter {
  background: #000
}

.menu-slide-in-overlay .as-modal-sns a:hover {
  opacity: .85
}

@media(max-width:768px) {
  .menu-slide-in-overlay .as-modal-sns a {
    width: 32px;
    height: 32px;
    font-size: 14px
  }
}

.menu-slide-in-overlay .copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto 10px;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  border-top: solid 1px #d9e0e8;
  padding-top: 12px;
}

.menu-slide-in-overlay .copyright p {
  margin: 0
}

.menu-slide-in-overlay .copyright a {
  color: inherit;
  text-decoration: none
}

@media(max-width:768px) {
  .menu-slide-in-overlay .copyright {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 10px 20px;
    gap: 4px
  }
}

@media(max-width:768px) {
  .article-search__popular {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    gap: 8px
  }

  .article-search__popular::-webkit-scrollbar {
    display: none
  }

  .article-search__pop {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
  }

  /* 横スライドする帯の末尾に置く */
  .article-search__popular .article-search__more {
    flex: 0 0 auto;
    margin-left: 4px;
    padding-right: 20px;
  }
}

html{scrollbar-gutter:stable}
body.as-modal-open{overflow:hidden!important}

@media(max-width:767px){.elementor-pagination{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.elementor-pagination::-webkit-scrollbar{display:none}.elementor-pagination .page-numbers{flex:0 0 auto}}

/* =========================================================
   モーダル新着情報：記事カテゴリのタブ（新着情報 / お知らせ /
   各種支援・補助等 / イベント・セミナー）
   - タブ列は左カラムの幅いっぱいに敷くため、左カラムの padding を
     0 にしてパネル側に付け替える。
   - スマホではタブ列を横スライド（横スクロール）させる。
   ========================================================= */
.menu-slide-in-overlay .as-modal-col--left {
  padding: 0
}

.as-modal-news__tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #f2f5f8;
  border-bottom: 1px solid #e5e9ef;
}

.as-modal-news__tabs::-webkit-scrollbar {
  display: none
}

.as-modal-news__tab {
  /* 5タブでも文字が潰れないよう、内容幅を下限にして余白だけ均等に伸ばす。
     収まらない幅では .as-modal-news__tabs が横スクロールする。 */
  flex: 1 0 auto;
  min-width: 0;
  margin: 0;
  padding: 13px 14px 12px 14px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #3a4a5e;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
  border-right: solid 1px #e5e9ef;
}

.as-modal-news__tab:hover {
  color: #2d57d7
}

.as-modal-news__tabs button:hover {
    background: #fff;
}

.as-modal-news__tab.is-active {
  background: #fff;
  color: #2d57d7;
  font-weight: 700;
  border-bottom-color: #2d57d7
}

.as-modal-news__tab:focus-visible {
  outline: 2px solid #2d57d7;
  outline-offset: -2px
}

.as-modal-news__tabs button#as-news-tab-interview {
    border-right: unset;
}

.as-modal-news__panels {
  padding: 2px 25px 0 25px;
}

.as-modal-news__panel {
  display: none
}

.as-modal-news__panel.is-active {
  display: block
}

.as-modal-news__panel[hidden] {
  display: none
}

.as-modal-news__empty {
  margin: 24px 0;
  font-size: 14px;
  color: #6b7a8c
}

/* メタ行（カテゴリバッジ＋日付） */
.as-modal-news__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px
}

.as-modal-news__badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid #c9d2dd;
  border-radius: 2px;
  font-size: 11px;
  line-height: 1.7;
  color: #3a4a5e;
  white-space: nowrap
}

.as-modal-news__badge--event {
  border-color: #e5e9ef;
  color: #161518;
}

.as-modal-news__meta .as-modal-news__date {
  margin: 0
}

/* サムネイル読み込み中のグラデーションアニメーション
   （PHP は data-thumb を出すだけ。JS がタブ表示時に <img> を生成する） */
.as-modal-news__thumb {
  position: relative
}

.as-modal-news__thumb.is-loading::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(100deg, #eef1f6 0%, #e3e8ef 25%, #f7f9fc 45%, #e3e8ef 65%, #eef1f6 100%);
  background-size: 220% 100%;
  animation: as-news-shimmer 1.25s ease-in-out infinite
}

@keyframes as-news-shimmer {
  0% {
    background-position: 160% 0
  }

  100% {
    background-position: -60% 0
  }
}

@media(prefers-reduced-motion:reduce) {
  .as-modal-news__thumb.is-loading::after {
    animation: none;
    background: #eef1f6
  }

  .as-modal-news__tab {
    transition: none
  }
}

@media(max-width:1024px) {
  .menu-slide-in-overlay .as-modal-col--left {
    padding: 0
  }

  .as-modal-news__panels {
    padding: 8px 20px 24px
  }
}

/* スマホ：タブを内容幅にして横スライドさせる */
@media(max-width:768px) {
  .as-modal-news__tab {
    flex: 0 0 auto;
    padding: 14px 18px;
    font-size: 14px
  }

  .as-modal-news__meta {
    gap: 8px
  }

  .as-modal-news__badge {
    font-size: 10px;
    padding: 2px 8px
  }
}
