/* 必要最低限（段階的に足す） */

:root {
  --bs-primary: #2a4c9f;
  --bs-primary-rgb: 42, 76, 159;
  --bs-link-color: var(--bs-primary);
}

/* active下線（確認用） */

.navbar .nav-link.active {
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.15rem;
}

/* フッターのベース */

footer, .footer {
  background: #f8f9fa;
  padding: 2rem 0;
  color: rgba(0, 0, 0, 0.65);
}

.mega-panel {
  background: #fff;
  border-top: 1px solid var(--bs-border-color);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  z-index: 1020;
}

/* お知らせ一覧 */

.news-section .badge {
  letter-spacing: 0.02em;
}

#newsFilters .btn.active {
  color: #fff;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.object-cover {
  object-fit: cover;
}

.hover-lift {
  transform: none !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.hover-lift:hover {
  transform: none !important;
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.1);
}

#newsFilters .btn.active {
  color: #fff;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.accordion-button {
  font-weight: 600;
}

.list-group-item .badge {
  letter-spacing: 0.02em;
}

.list-group-item a {
  text-decoration: none;
}

.list-group-item a:hover {
  text-decoration: underline;
}

/* お知らせ一覧左に日付ワイド、右に本文のレイアウト */

.topic-list .date {
  min-width: 7.5rem;
  color: rgba(0, 0, 0, 0.65);
}

.topic-list .list-group-item {
  padding: 0.75rem 1rem;
}

/* カードの“浮き”を無効化したい場合（前のhover-lift対策） */

.hover-lift, .hover-lift:hover {
  transform: none !important;
}

/* パンくずリスト区切り記号を › に、サイズ少し小さめ */

.breadcrumb {
  --bs-breadcrumb-divider: "›";
  font-size: 0.875rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #6c757d;
}

:root {
  --nav-h: 56px;
}

/* メガメニュー帯（ナビの真下に固定したい時に効く） */

.mega-panel.collapse.show {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1030;
  background: #fff;
  border-top: 1px solid var(--bs-border-color);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

/* 固定ナビ用の余白（後で fixed-top にした時に効く） */

body.has-fixed-nav {
  padding-top: var(--nav-h);
}

/* 自動隠し（top移動方式）。後でNavbarに classを付けたら効く */

.navbar.fixed-top.smart-hide {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  transition: top 0.2s ease;
}

.navbar.fixed-top.smart-hide.hide {
  top: calc(-1 * var(--nav-h));
}

/* メガメニューを開くリンクの末尾に ▼ を付ける */

.navbar [data-bs-target^="#mega-"]::after {
  content: "▾";
  font-size: 0.75em;
  margin-left: 0.35em;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

/* 開いている時は反転（▲風） */

.navbar [data-bs-target^="#mega-"][aria-expanded=true]::after, .navbar [data-bs-target^="#mega-"].active::after {
  transform: rotate(180deg);
}

/* メガメニュー 見出しの大文字化をやめる（text-uppercase を打ち消す） */

.mega-panel h6 {
  text-transform: none !important;
}

/* メガメニュー内の h6 だけ色変更 */

.mega-panel h6 {
  color: var(--bs-primary);
}

/* MegaMenu 読みやすさチューニング */

.mega-panel h6 {
  font-size: clamp(0.95rem, 0.25vw + 0.9rem, 1.1rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-transform: none;
  /*color: var(--bs-body-color);*/
}

.mega-panel .dropdown-item {
  display: block;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0.3rem 0;
}

.mega-panel ul {
  margin-bottom: 0.25rem;
}

/* スマホはさらに余裕をもたせる */

@media (max-width: 767.98px) {
  .mega-panel .dropdown-item {
    padding: 0.45rem 0;
    line-height: 1.7;
  }
}

@media (max-width: 767.98px) {
  .mega-panel h6 {
    margin-top: 0.125rem;
  }
}

/* カードの見た目を統一（浮かせない・影だけ） */

.news-grid .card {
  border: none;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s ease;
}

.news-grid .card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* 画像は16:9でトリミング */

.news-grid .card-img-top {
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* タイトル・本文の読みやすさ＋段落揃え */

.news-grid .card-body {
  display: flex;
  flex-direction: column;
}

.news-grid .card-title {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

/* 2行でトリミング（長文で段崩れしない） */

.news-grid .card-text {
  font-size: 0.95rem;
  color: var(--bs-secondary-color);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
}

/* 日付/バッジを最下段に固定しやすく */

.news-grid .meta-row {
  margin-top: auto;
}

/* ホームでは最新6件だけ表示（サッと見せたい用） */

.news-home .news-grid > .news-item:nth-of-type(n + 7) {
  display: none !important;
}

/* スマホ1枚送りと相性よく：カード間隔を少し詰める（任意） */

@media (max-width: 767.98px) {
  .news-grid.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
}

/* 見出し飾り */

.heading01 {
  padding: 0.5em;
  border-left: solid 6px #4472C4;
  background: #DEEBF7;
}

.heading02 {
  position: relative;
  font-size: 26px;
  text-align: center;
  border-bottom: 5px solid #dddddd;
}

.heading02::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 5px;
  background-color: #387ccc;
}

.heading03 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  text-align: center;
}

.heading03::before, .heading03::after {
  content: "";
  width: 3px;
  height: 40px;
  background-color: #3fc1c9;
}

.heading03::before {
  margin-right: 30px;
  transform: rotate(-35deg);
}

.heading03::after {
  margin-left: 30px;
  transform: rotate(35deg);
}

.heading04 {
  position: relative;
  font-size: 26px;
}

.heading04::before {
  content: attr(data-number);
  display: block;
  color: #d8be39;
  font-size: 30px;
}

.heading04::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 1px;
  background-color: #d8be39;
}

.heading05 {
  font-size: 26px;
}

.heading05 span {
  display: flex;
  align-items: center;
  color: #498ee0;
  font-size: 18px;
  text-transform: uppercase;
}

.heading05 span::before {
  content: "";
  display: inline-block;
  margin-right: 20px;
  width: 40px;
  height: 1px;
  background-color: #498ee0;
}

.heading06::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background-color: #498ee0;
}

.heading06 {
  position: relative;
  font-size: 26px;
}

.heading06::before {
  content: attr(data-number);
  display: inline-block;
  margin-right: 20px;
  color: #498ee0;
  font-size: 30px;
  border-bottom: 1px solid #498ee0;
}

.heading07::before {
  content: attr(data-number);
  display: inline-block;
  margin-right: 20px;
  color: #498ee0;
  font-size: 30px;
  border-bottom: 1px solid #498ee0;
}

.heading07 {
  padding-bottom: 10px;
  font-size: 26px;
  background-image: repeating-linear-gradient(90deg, #b4a983 0, #b4a983 2px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0) 4px);
  background-size: 4px 4px;
  background-repeat: repeat-x;
  background-position: center bottom;
}

.heading08 {
  padding: 0.5em 0;
  border-top: solid 3px #4472C4;
  border-bottom: solid 3px #4472C4;
}

.stepbar {
  margin: 0 auto;
  width: 80%;
}

.stepbar .stepbarwrap {
  margin: 2em 0;
  position: relative;
}

.stepbar .stepbarwrap .steptitle {
  display: inline-flex;
  align-items: center;
}

.stepbar .stepbarwrap .steptitle .stepcircle {
  display: inline-block;
  width: 3em;
  height: 3em;
  content: "";
  border-radius: 50%;
  background-color: #000;
  color: #fff;
  text-align: center;
}

.stepbar .stepbarwrap .steptitle .stepcircle span {
  display: inline-block;
  line-height: 1.2em;
  font-size: 0.8em;
  font-weight: bold;
  position: relative;
  top: 0.9em;
}

.stepbar .stepbarwrap .steptitle .title {
  margin: 0.5em;
  font-weight: bold;
  font-size: 1.2em;
}

.stepbar .stepbarwrap .steptxt {
  padding-left: 3.5em;
}

.stepbar .stepbarwrap .steptxt .txt {
  font-size: 0.9em;
}

.stepbar .stepbarwrap .stepline {
  width: 1px;
  height: calc(100% + 1em);
  background-color: #000;
  position: absolute;
  top: 1em;
  left: 1.5em;
  z-index: -1;
}

.stepbarwrap:last-of-type .stepline:last-of-type {
  display: none;
}

@media screen and (max-width: 960px) {
  .stepbar {
    width: 90%;
  }
}

/* MXTサイトのカラー */

:root {
  --mxt-blue: #2a4c9f;
}

.brand-blue {
  color: var(--mxt-blue) !important;
}

button[aria-expanded="true"] .fa-plus-square-o::before {
  content: "\f147";
}

.mega-panel.collapsing {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  transition: none;
}

