@charset "UTF-8";
/*
Theme Name: Emanon Business Custom
Template: emanon-pro
Version: 2.1.1
Description: Emanon Business 2.1.1をベースにしたカスタムテーマ
*/

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@700;900&display=swap");
.u-row { display: flex !important; flex-wrap: wrap; }
.u-row-item-center { align-items: center; }
.u-row-cont-end { justify-content: flex-end; }

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  font-size: 16px;
}

body.custom-background {
  background-color: #f6f6f6;
  background-image: url(https://dept.tus.ac.jp/upfiles/sites/29/2023/09/bg-scaled.jpg);
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll;
}

#wrapper {
  width: 100%;
  z-index: 11111;
  opacity: .9;
  font-size: 13px;
}

#wrapper .l-header .l-header-row {
  background: #f6f6f6;
  border-top: 13px solid #bae0d8;
}

.header-menu-row .header-menu>.menu-item>a {
  font-size: 13px;
  font-weight: bold;
}

main .article .article-body h2.wp-block-heading {
  margin-top: 0;
  font-size: 24px;
}

main article .article-body .lab-nav-wrap {
  margin-bottom: 100px;
}

main article .article-body>h3.wp-block-heading {
  margin-top: 0;
  font-size: 24px;
  border-bottom: 1px solid #003838;
}

.article-body .btn a {
  background-color: #fff;
}

.article-body .wp-block-group.lab-block-wrap {
  padding-top: 0 !important;
}

.tile-wrap h4 {
  width: 90%;
  margin: 30px auto 20px !important;
  background: #003838;
  color: #fff;
  border-radius: 50px;
  padding: 4px;
  font-weight: bold;
  line-height: 1.5;
}

.article-body .wp-block-group .detail {
  font-size: 16px;
  line-height: 2;
}

.home .p-entry__body .contents-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  word-break: keep-all;
  border-bottom: 1.3px solid #003838;
  padding-top: 50px;
  padding-bottom: 50px;
  margin: 60px 90px 40px;
  width: 900px;
  position: relative;
}

.home .p-entry__body .is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.contents-caption,
.has-text-align-right {
  font-size: 14px !important;
}

.home .p-entry__body .wp-block-group,
.home .p-entry__body .wp-block-column {
  margin-bottom: 40px;
}

.home .p-entry__body .news-wrap {
  margin-bottom: 80px;
}

.news-wrap .wp-block-post-template.is-layout-flow > * {
  margin-block-start: 0 !important;
}

#gnav {
  margin: 0;
}

#gnav .global-nav li ul {
  top: 60px;
}

#gnav .global-nav li a {
  font-size: 13px;
}

#gnav .global-nav .sub-menu a {
  color: #003838;
  font-size: 13px;
  font-weight: 700;
}

#gnav .global-nav .sub-menu li:hover {
  opacity: .7;
}

.menu-item::before {
  content: none;
}

#gnav .global-nav .current-menu-item>a {
  font-weight: 700;
  color: #333;
}

.content {
  padding-top: 180px;
}

.article {
  border: none;
  background: transparent;
}

.article-header {
  /*display: none;*/
  padding: 0 !important;
}

.article-header .entry-title {
  font-size: 17px;
  border-bottom: 1px solid #003838;
  margin-top: 1em;
}

.sidebar-footer {
  padding-top: 80px;
}

.sidebar-footer-col4 {
  width: 100%;
}

.sidebar-footer-col4 .wp-block-group__inner-container {
  margin: 0;
}

.sidebar-footer-col4 .wp-block-columns {
  justify-content: space-between;
}

@media (min-width: 768px) {
  .sidebar-footer-col4 .wp-block-columns {
    flex-direction: row;
  }

  .sidebar-footer .wp-block-columns.is-layout-flex {
    flex-wrap: nowrap;
    align-items: stretch;
  }
}

.footer-logopamph {
  flex-basis: 25%;
  text-align: center;
}

.footer-logopamph figure {
  margin: 0 0 1em;
}

.footer-logo img {
  width: 80%;
  height: auto;
}

.footer-pamph img {
  width: 126px;
  max-width: 126px;
  height: auto;
}

.footer-pamph {
  width: 80%;
  margin: 0 auto;
}

.wp-block-image.footer-pamph {
  margin: 40px auto;
}

.sidebar-footer .wp-block-image.footer-pamph {
  margin: 40px auto !important;
}

.footer-pamph:hover,
.footer-download a:hover,
.footer-banner img:hover {
  opacity: .7;
}

.footer-nav {
  width: 70%;
  padding: 0 0 0 100px;
  border-left: 1px solid #fff;
  text-align: left;
}

.footer-nav li {
  border: none;
}

.footer-nav p,
.footer-nav a {
  font-size: 16px;
  font-weight: 500;
  margin-right: 20px;
}

.footer-nav-parent {
  margin-bottom: 16px;
}

.footer-widget-box {
  margin-bottom: 32px;
}

.footer-widget-box ul.footer-nav-child {
  padding-left: 2.5em;
  line-height: 1.2;
  margin-top: 0;
}

.footer-nav-child li {
  line-height: 1;
}

.footer-nav-child a {
  font-size: 13px;
}

.footer-nav a {
  color: #fff;
}

.footer-nav a:hover {
  opacity: .7;
}

.footer-banner {
  margin: 50px auto 0;
}

.footer-banner img {
  object-fit: contain;
}

footer {
  background: transparent linear-gradient(180deg, #364848 0%, #466767 20%, #466767 38%, #003838 100%);
}

.l-footer {
  clear: both;
}

.error404 .article-body {
  display: none;
}

.drawer-menu {
  transform: translateX(-90vw) !important;
}

.drawer-menu:not(.is-active) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media screen and (min-width: 600px) {
  .drawer-menu {
    transform: translateX(-368px) !important;
  }
}

.drawer-menu.is-active {
  transform: translateX(0) !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.drawer-overlay {
  display: none;
}

.drawer-overlay.is-active {
  display: block;
}

.modal-menu {
  position: absolute;
  top: 50%;
  right: 15px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 999;
}

.modal-menu .modal-gloval-icon {
  float: left;
  margin-bottom: 6px;
}

.modal-menu .modal-gloval-icon-bar {
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 4px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  background-color: #003838;
}

.modal-menu .modal-gloval-icon-bar + .modal-gloval-icon-bar {
  margin-top: 6px;
}

.pagetopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 15px;
  z-index: 1111;
  opacity: .9;
  cursor: pointer;
}

.pagetopBtn:hover {
  opacity: .7;
}

.article-body>*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.next-page-link) {
  margin: 0;
}

.article-body h3 {
  font-size: 24px;
  color: #003838;
  border-bottom: 1px solid #003838;
  margin: -20px 0 40px;
}

.wp-block-image {
  margin: 0 0 1em 0;
}

@media (max-width: 991px) {
  header#header-wrapper {
    border-top: 5px solid #bae0d8;
  }

  .modal-menu {
    -webkit-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
  }

  .js-modal-menu,
  .js-modal-menu > a,
  .js-modal-menu .modal-gloval-icon {
    -webkit-transform: none !important;
    transform: none !important;
  }

  .header-area-height-line {
    height: 40px;
  }

  .header-area-height-line .header-brand {
    line-height: 40px;
    text-align: center;
  }

  .js-modal-menu.active {
    right: 15px;
  }


  .js-modal-menu.active .modal-gloval-icon {
    position: relative;
    width: 32px;
    height: 21px;
    float: left;
    display: block;
    box-sizing: border-box;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  /* active時：バーを全て非表示 */
  .js-modal-menu.active .modal-gloval-icon-bar {
    display: none;
  }

  /* active時：疑似要素でXマークを描画 */
  .js-modal-menu.active .modal-gloval-icon::before,
  .js-modal-menu.active .modal-gloval-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background-color: #003838;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform-origin: 50% 50%;
    box-sizing: border-box;
    background-image: none;
    border: 0;
    box-shadow: none;
  }

  .js-modal-menu.active .modal-gloval-icon::before {
    -webkit-transform: translate(-50%, -50%) rotate(45deg) !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }

  .js-modal-menu.active .modal-gloval-icon::after {
    -webkit-transform: translate(-50%, -50%) rotate(-45deg) !important;
    transform: translate(-50%, -50%) rotate(-45deg) !important;
  }

  html.navActive {
    height: 100%;
    overflow: hidden;
  }

  #gnav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998;
  }

  #gnav.active {
    display: block !important;
    background: transparent linear-gradient(180deg, #BADED6 0%, #D1EEE7 20%, #BADED6 100%);
    padding: 70px 10px 50px;
    margin: 0;
    box-sizing: border-box;
    overflow-y: auto;
  }

  #gnav.active .header-menu-inner {
    display: block !important;
    height: auto;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #gnav.active #menu {
    height: auto;
    width: 100%;
  }

  #menu::before {
    content: 'MENU';
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #003838;
  }

  #gnav.active .global-nav-line,
  #gnav.active .header-menu {
    display: block !important;
    margin-top: 30px;
    margin-bottom: 0;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 0 30px 0 !important;
    height: auto;
    width: 90% !important;
    /* flexbox override */
    flex-wrap: nowrap !important;
    flex-direction: column !important;
  }

  #gnav.active .global-nav-line li,
  #gnav.active .header-menu li {
    display: block !important;
    background-color: transparent;
    font-weight: 700;
    border-top: 1px dotted #003838;
    padding: 20px 0;
    position: relative;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left;
  }

  #gnav.active .global-nav-line li:last-child,
  #gnav.active .header-menu li:last-child {
    border-bottom: 1px dotted #003838;
  }

  #gnav.active .global-nav-line li a,
  #gnav.active .header-menu li a {
    font-size: 16px;
    color: #003838;
  }

  #gnav.active .global-nav-line li .sub-menu li,
  #gnav.active .header-menu li .sub-menu li {
    border: none;
    padding: 10px 15px;
  }

  #gnav.active .sub-menu a {
    font-weight: 400;
    font-size: 14px;
  }

  #gnav.active .navlink-inside-child::after {
    content: '\f105';
    font-family: FontAwesome;
    font-size: 30px;
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    color: #003838;
  }

  #gnav.active .navlink-inside-parent::after {
    content: '\f105';
    font-family: FontAwesome;
    font-size: 30px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    color: #003838;
    background: transparent;
  }

  #gnav.active .navlink-external::after {
    content: '';
    background-image: url('/upfiles/sites/29/2023/09/icon_menu_link.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 17px;
    height: 17px;
    position: absolute;
    top: 50%;
    right: -24px;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
  }

  .sidebar-footer {
    padding-top: 40px;
  }

  .wp-block-image.footer-pamph {
    margin: 40px auto;
  }

  .footer-nav {
    padding-left: 40px;
  }

  .footer-banner .wp-block-image {
    margin-bottom: 10px;
  }

  .pagetopBtn img {
    width: 50px;
    height: auto;
  }

  .content {
    padding-top: 90px;
  }

  .article-body h2 {
    margin-bottom: 20px;
  }

  .article-body h3 {
    font-size: 20px;
    margin: 0 0 30px;
    padding-top: 60px;
  }

  .home .p-entry__body .contents-title {
    margin: 20px auto 30px;
    width: auto !important;
    max-width: 100% !important;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .home .p-entry__body .contents-title-jp {
    font-size: 4.5vw !important;
  }

  .home .p-entry__body .contents-title-en {
    font-size: 5vw !important;
  }

  /* ご指摘の最新記事ブロックの文字サイズ修正 */
  .wp-block-latest-posts a {
    width: 100%;
    font-size: 13px !important;
    padding-right: 20px;
  }

}

@media (max-width: 767px) {
  .archive-list .archive-header-title,
  .archive-list .archive-header-title a {
    font-size: 13px !important;
  }
}

@media (max-width: 767px) {
  .news-wrap .wp-block-post-title,
  .news-wrap .wp-block-post-title a {
    font-size: 13px !important;
  }
}

@media (max-width: 767px) {
  .footer-widget-box .wp-block-columns {
    flex-direction: column;
  }

  .wp-block-column:not(:first-child) {
    margin: 0;
  }

  .footer-logopamph {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto 30px !important;
    text-align: center !important;
  }

  .footer-download {
    text-align: center !important;
    margin-top: 1em;
  }

  /* WordPress標準の不要な上余白を打ち消す */
  .sidebar-footer :where(.is-layout-flow)>* {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
  }

  /* ナビエリア：2列配置 */
  .footer-nav {
    width: 90% !important;
    padding: 0 !important;
    margin: 0 auto 60px auto !important;
    border: none !important;
    text-align: left !important;
  }

  .footer-nav p,
  .footer-nav a {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .footer-nav .wp-block-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 5px !important;
  }

  .footer-nav .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }

  /* 左列（1つ目のカラム：「学科の紹介」「研究室」「就職・進学」） */
  .footer-nav .wp-block-column:nth-child(1) {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 3 !important;
  }

  /* 右列・上（2つ目のカラム：「キャンパスライフ」「受験生の方へ」「交通アクセス」） */
  .footer-nav .wp-block-column:nth-child(2) {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
  }

  /* 右列・下（3つ目のカラム：「サイトマップ」「リンク」「English」） */
  .footer-nav .wp-block-column:nth-child(3) {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
  }

  .footer-nav-parent {
    margin-bottom: 10px !important;
  }

  .footer-nav-parent:empty,
  .footer-nav-parent p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-nav ul.footer-nav-child {
    padding-left: 2.5em !important;
  }

  /* バナーエリア */
  .footer-banner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .footer-banner .wp-block-column {
    flex: 0 0 auto !important;
    max-width: 60% !important;
    margin: 0 auto !important;
  }

  .footer-banner img {
    width: 100%;
    height: auto;
  }

  .article-body h3 {
    font-size: 16px;
    margin-top: -40px;
    padding-top: 60px;
  }
}


.campus-btn-wrap a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
}

.campus-btn-wrap a:after {
  content: '\f107';
  font-family: FontAwesome;
  font-size: 20px;
  margin-left: 10px;
}

.graduate-block,
.year-wrap,
.qa-wrap,
.photo-wrap {
  padding: 60px 40px;
  box-shadow: 0px 3px 6px #00000029;
}

.graduate-wrap .lead {
  font-size: 24px;
  margin: 40px 0;
}

.graduate-block {
  margin-bottom: 50px;
  position: relative;
}

.graduate-block h4 {
  margin: 0;
  font-size: 24px;
}

.graduate-block .data {
  font-size: 16px;
  line-height: 1.7;
  margin: 1em 0;
}

.graduate-block .caption {
  font-size: 14px;
  margin-bottom: 1em;
}

.year-btn-wrap,
.qa-btn-wrap {
  justify-content: center;
  padding: 0 20px;
}

.wp-block-column.year-btn,
.wp-block-column.qa-btn {
  background: #f1f1f1;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 0;
  margin: 0 20px;
}

.year-btn.is-btn-active,
.qa-btn.is-btn-active {
  background: #bae1d8;
}

.year-table,
.qa-table {
  display: none;
}

.year-table.is-table-active,
.qa-table.is-table-active {
  display: block;
}


.year-table-thtd {
  margin: 6px 0;
}

.year-table-th,
.year-table-td {
  padding: 18px 36px;
}

.year-table-th p {
  font-weight: 700;
}

.wp-block-column.year-table-td {
  border: 1px solid #BAE1D8;
  margin-left: 6px;
}


.qa-block h5,
.qa-block p {
  display: flex;
  align-items: baseline;
}

.qa-block h5::before {
  content: 'Q.';
  color: #018989;
  font-size: 40px;
  margin-right: 20px;
}

.qa-block p::before {
  content: 'A.';
  color: #003838;
  font-size: 40px;
  font-weight: 700;
  margin-right: 20px;
}

@media (max-width: 991px) {
  .campus-btn-wrap {
    flex-direction: column;
  }

  .campus-btn-wrap .wp-block-column {
    margin: 0;
  }

  .campus-btn-wrap a {
    width: 280px;
    margin: 0;
  }

  .graduate-wrap .lead {
    font-size: 16px;
  }
}

/* ==========================================================================
   1. 投稿本文の装飾（白背景＋ドロップシャドウ）
   ========================================================================== */
.article-body {
  background-color: #fff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  padding: 40px !important;
  border-radius: 8px !important;
  margin-bottom: 30px !important;
}

@media screen and (max-width: 767px) {
  .article-body {
    padding: 20px !important;
  }
}

/* ==========================================================================
   2. デスクトップ：メニューバーとドロップダウン
   ========================================================================== */
@media screen and (min-width: 960px) {
  /* メニューバーの背景色（#f6f6f6 = ページ背景と同系色） */
  div#gnav.header-menu-row {
    background-color: #f6f6f6 !important;
  }

  /* メニュー項目を横並び・右寄せ（実際のDOM: ul.global-nav.global-nav-line） */
  div#gnav ul.global-nav,
  div#gnav ul.header-menu {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* メニューリスト項目 */
  div#gnav ul.global-nav > li,
  div#gnav ul.header-menu > li {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* メニューリンクのスタイル */
  div#gnav ul.global-nav > li > a,
  div#gnav ul.header-menu > li > a {
    display: flex !important;
    align-items: center !important;
    padding: 0 16px !important;
    height: 60px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: bold !important;
    color: #000c15 !important;
  }

  /* サブメニューありの項目に下矢印を追加（固定メニューのみ） */
  div#gnav ul.global-nav > li.menu-item-has-children > a::after {
    content: "\e943";
    font-family: "icomoon";
    margin-left: 4px;
    font-size: 10px;
  }

  /* サブメニュー：通常は非表示 */
  div#gnav .sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    -webkit-transform: translateX(-50%) !important;
    transform: translateX(-50%) !important;
    min-width: 220px !important;
    padding: 10px 0 !important;
    background: #bae0d8 !important;
    box-shadow: 0 1px 3px 1px rgba(0,0,0,0.08) !important;
    z-index: 9999 !important;
  }

  div#gnav .sub-menu li {
    display: block !important;
    width: 100% !important;
  }

  div#gnav .sub-menu li a {
    display: block !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    color: #003838 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }

  /* ホバーでサブメニュー表示 */
  div#gnav ul.global-nav > li:hover > .sub-menu,
  div#gnav ul.header-menu > .menu-item:hover > .sub-menu {
    display: block !important;
  }
}

/* ==========================================================================
   3. 固定（追従）メニュー
   ========================================================================== */
#js-header-menu-tracking {
  background-color: #f6f6f6 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  height: 70px !important;
}

#js-header-menu-tracking .l-header__inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 70px !important;
  max-width: 1212px;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

#js-header-menu-tracking .site-logo img {
  max-height: 40px !important;
  width: auto !important;
}

#js-header-menu-tracking .header-menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  margin: 0 !important;
}

/* ==========================================================================
   4. スマホ：レイヤーメニュー内のサブメニュー表示
   ========================================================================== */
@media screen and (max-width: 991px) {
  /* レイヤーメニュー展開時のsub-menuは常に表示 */
  #gnav.active .sub-menu {
    display: block !important;
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   5. サイト全体の極小フォント引き上げ
   ========================================================================== */
small,
.small,
.has-small-font-size,
.caption,
.footer-nav-child a,
.footer-download a {
  font-size: 13px !important;
}

/* ==========================================================================
   6. パンくず（news-list対応）
   ========================================================================== */
.breadcrumb li a[href*="news-list"] {
  display: none;
}

/* liごと消す（これが本命） */
.breadcrumb li:has(a[href*="news-list"]) {
  display: none;
}