@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/
    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/
/* ヘッダーメニュー ホバーハイライト（案A：下線スライド） */
.c-gnav .menu-item a {
  border-bottom: 2px solid transparent !important;
  transition: color 0.15s, border-color 0.15s !important;
  padding-bottom: 2px !important;
  text-decoration: none !important;
}
.c-gnav .menu-item a:hover {
  color: #2da05a !important;
  border-bottom-color: #2da05a !important;
}
.c-gnav .menu-item a:hover .ttl {
  color: #2da05a !important;
}

/* DX学校ページ ページタイトル下線をグレーに直接描画 */
body.page-id-92 h1.c-pageTitle {
  border-bottom: none !important;
  outline-bottom: none !important;
  box-shadow: 0 1px 0 0 #e0e0e0 !important;
}

/* DX学校ページ ページタイトルを非表示 */
html body.page-id-92 h1.c-pageTitle {
  display: none !important;
}

/* ナビゲーション ホバー・アクティブ時の緑線を非表示 */
.c-gnav .menu-item a::after,
.c-gnav .menu-item a::before,
#gnav .menu-item a::after,
#gnav .menu-item a::before,
.c-gnavWrap .menu-item a::after,
.c-gnavWrap .menu-item a::before {
  display: none !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  height: 0 !important;
  content: none !important;
}

// 通常ヘッダーのseriesクラスを削除して1段にする
add_action('wp_footer', function() {
?>
<script>
(function() {
  function fixNormalHeader() {
    var header = document.getElementById('header');
    if (!header) return;
    header.classList.remove('-series');
    header.classList.remove('-series-right');
  }
  window.addEventListener('load', fixNormalHeader);
})();
</script>
<?php
});
