@charset "UTF-8";

/* ================================================
 部門ページ用レイアウト（日本語）
================================================ */

.top-lead__main {
  text-align: center;
}

.top-topics { 
  margin-top: 0; /* （2カラムのままにするなら1em） */
}

.top-slide__content h1 { /* 部門TOPのみ */
  font-size: 2.3rem;
  letter-spacing: 0.035rem;
}

.top-slide__text { /* 部門TOPのみ */
  margin-top: 1.6em;
}

h1:not([class])::before { /* デフォルトのリストマーク非表示 */
  display: none;
}

h1:not([class]) {
  --font-size: 30;
}

.widget-wrapper h2 { /* 部門TOPのみ */
  font-weight: normal;
  --under-line-display: none;
}

.top-department { /* 部門TOPのみ */
  padding: 2em 0;
}

/* メンバーページ */
.detail-page-layout__inner h2:not([class]) {
  --under-line-display: none;
  font-size: 200%;
}

.detail-page-layout__inner .membres_li li {
  font-size: 145%;
  margin: 2rem 0;
  padding-left: 1.25rem;
}


@media (max-width: 576px) {
  .top-lead__main {
    text-align: left;
    line-height: 1.35;
    margin-top: -2em;
  }
  
  .top-topics { 
    margin-top: -1em;
  }
  
  .top-slide__content h1 {
    font-size: 1.75rem;
    letter-spacing: 0.02rem;
  }

  .top-slide__text {
    margin-top: 1.5em;
  }
  
  h1:not([class]) {
    --font-size: 25;
  }
  .sp_none {
    display: none;
  }
}



/* タイトル付近の調整（スマホのみ） */
@media (max-width: 576px) {
  /* 各ページのタイトル */
  .layout hgroup h2,　/* TOPページ */
  .page-layout hgroup h1, /* 他のページ */
  .detail-page-layout hgroup h1 { /* メンバーページ */
    --space: 100 !important;
    --decoration-size: 180 !important;
    font-size: 1rem!important;
  }
  
  /* 各ページのサブタイトル（日本語のみ） */
  .layout hgroup p, /* TOPページ */
  .page-layout hgroup p, /* 他のページ */
  .detail-page-layout hgroup p { /* メンバーページ */
    --space: 100 !important;
    --decoration-size: 180 !important;
    font-size: 2.5rem!important;
  }
  
  .layout hgroup::before{ /* 部門TOPのみ */
    width: 20%;
  }
}



/* グロナビの改修 */
.expander-bottom-menu__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 部門内組織タブの列数(4, 1fr) */
  gap: calc(40 * var(--font-ratio) * 1px) calc(60 * var(--font-ratio) * 1px);
  padding-bottom: calc(24 * var(--font-ratio) * 1px);
  margin-top: calc(var(--list-gutter) * var(--font-ratio) * 1px);
}
.expander-bottom-menu__link {
  display: block;
  align-items: center;
  font-size: calc(var(--link-font-size) / var(--root-font-size) * var(--font-ratio) * 1rem);
  font-weight: var(--fw-normal);
  transition: color 0.2s;
	text-indent: -1em; /* グロナビのリンクのインデント */
	padding-left: 1em;
}



/* フッターの改修 */
.footer__navigation {
	display: flex; /* grid 3カラム時の中央寄せ */
  grid-template-columns: repeat(auto-fill, minmax(var(--list-min-size), 1fr));
  gap: calc(var(--list-gutter) * var(--font-ratio) * 1px);
	column-gap: 10%; /* 3％ 間隔も変更 */
  justify-content: center;
  margin-top: calc(var(--navigation-gutter) * var(--font-ratio) * 1px);
  font-weight: var(--fw-bold);
}
@media (max-width: 981px) {
  .footer__navigation {
	  display: flex;
    grid-template-columns: repeat(auto-fill, minmax(var(--list-min-size), 1fr));
    gap: calc(var(--list-gutter) * var(--font-ratio) * 1px);
    column-gap: 3%;
    justify-content: left;
    margin-top: calc(var(--navigation-gutter) * var(--font-ratio) * 1px);
    font-weight: var(--fw-bold);
    flex-wrap: wrap; 
  }
  .footer__list {
    width: calc(50% - 10px); /* 2列にする場合の幅計算（gapの半分子を引く） */
    box-sizing: border-box;
  }
}


