@media (max-width: 500px) {
  .nav-item.intro::after {
    width: 100%; /* または例えば300pxなどに縮小 */
  }
}

body {
  max-width: 1250px;      /* 中身の最大幅 */
  margin: 0 auto;         /* ← 横方向の中央揃え */
  padding: 0;        /* 任意：左右の余白 */
  box-sizing: border-box;
  background: #ffffff;
  overflow-x: hidden;
  padding-top: 120px;
  font-family: 'Segoe UI', sans-serif;
}

.container {
  max-width: 1250px;
  margin: 0 auto;
  box-sizing: border-box;
}

.navbar {
  background-color: #fff;
  width: 100%;      /* 横幅制限 */
  padding-top: 35px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  top: 0;
  left: 0;
  justify-content: center;
  margin-bottom: var(--navbar-bottom-margin);
  position: fixed;
  z-index: 9999;
}


.navbar-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0;
  box-sizing: border-box;
}

/* 左：ロゴ＋Intro */
.nav-left {
  display: flex;
  align-items: flex-end;
  width: auto;
  min-width: 150px;
  flex-shrink: 0;
  flex-grow: 0;
  justify-content: flex-start;
}

.intro-link {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  padding: 0; /* ← すべてのpaddingを0に */
  margin: 0;
}

.logo-text {
  font-weight: 600;
  font-size: 10px;
  color: #aaa !important;
  white-space: nowrap;
  margin: 0 0 12px 0;
  padding: 0;
  margin-top: 30px;
}

.logo-text-container {
	padding-left: 20px;
    display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 0;
  margin-right: -17px;
	position: relative;
	height: 38px;
}

/* Frontリンクのスタイル */
.front-link {
  font-size: 10px !important;
  color: #aaa !important;
  text-decoration: none;
  font-weight: normal;
  position: relative !important;
  right: 0px;
  margin-top: 5px;
  top: 30px;
  padding: 0;
  z-index: 10;
}

.front-link:hover {
  color: #0a175c;
  text-decoration: underline;
}

/* ロゴ＋Introリンク */
.intro-link,
.nav-item.intro a {
  display: flex;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding-right: 0; /* ← padding-leftだけでなく、全てのpaddingを0に */
  margin: 0;
}

/* introエリア全体 */
.nav-item.intro {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  margin-right: 20px;
  height: auto;
  z-index: 1;
  padding-bottom: 23px; /*高さが影響する*/
  width: 40%; /* 例えば画面幅の40% */
  max-width: 450px; /* 450pxが最大 */
}

.intro-inner {
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-start;
}

.logo-img {
  width: auto;
  height: 100px;
  margin-bottom: -20px;
  padding: 0;
  display: block;
}

/* Introの英語テキスト */
.nav-item.intro .en {
  font-family: "BIZ UDPGothic", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Introの下の線 */
.nav-item.intro::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 470px; /* ロゴマーク〜frontの線の長さ */
  background: #0a175c;
  z-index: 2;
}

/* 共通：左・中央・右ブロック */
.nav-left,
.nav-center,
.nav-right {
  height: 100%;
  display: flex;
  align-items: flex-end;
}

/* 中央：ナビ項目全体 */
.nav-center {
  display: flex;
  justify-content: cemter;
  align-items: flex-end;
  gap: 10px;
  flex-grow: 0;
  flex-shrink: 0;
  padding-left: 10px;
	margin-left: 10px;
}

/* 各ナビ項目 */
.nav-center .nav-item {
  width: 120px;
  margin-right: 8px;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  height: 100%;
  position: relative;
  flex-shrink: 1;
  flex-grow: 0;
}

/* ナビテキスト（英語） */
.nav-item .en {
  font-weight: 600;
  font-size: 15px;
  color: #333;
  white-space: nowrap;
  margin-top: 6px;
}

/* ナビテキスト（日本語） */
.nav-item .ja {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "貂ｸ譏取悃", "MS PMincho", serif;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  margin-top: 2px;
}

/* 番号 */
.nav-item .num {
  font-size: 10px;
  color: #aaa;
  margin-top: 20px;
  position: relative;
}

/* 番号の下の線 */
.nav-item .num::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 130px;
  background: #0a175c;
  margin: 0;
  z-index: 2;
}

/* 右：メールアイコン */
.nav-right {
  flex: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 150px;
}

.mail-icon-img {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-item a,
.intro-link,
.nav-item.intro a {
  text-decoration: none;  /* ← ★これがリンクの下線を消す命令 */
  color: inherit;
}

/* 横線（フッターの上） */
.footer-line {
  height: 2px; /* 少し太くして視認性UP */
  background-color: #000; /* 黒い線 */
  max-width: 1250px;
  margin: 80px auto 0 auto; /* フッターから離す */
}

/* 線とフッターの間に白背景のスペースを明示的に設置 */
.footer-gap {
  background-color: #fff;
  height: 10px;  /* 線とフッターの間に明確な余白を追加 */
}

/* フッター本体 */
.site-footer {
  background-color: #0a175c;
  color: #fff;
  padding: 5px;
  text-align: center;
  font-size: 0.8rem;
  max-width: 1250px;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 8px;
}


/* 以下からスマホ対応用 */
