@media{
	font-family: 'Segoe UI', sans-serif;
	background: #ffffff;
	}

body {
  max-width: 1300px;      /* 中身の最大幅 */
  margin: 0 auto;         /* ← 横方向の中央揃え */
  padding: 0 20px;        /* 任意：左右の余白 */
  background: #f5f5f5;    /* 任意：背景色 */
  box-sizing: border-box;
  background: #ffffff;
  padding-top: calc(var(--navbar-top-margin) + 120px + var(--navbar-bottom-margin));
}

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

.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding-top: var(--navbar-top-margin);
}

.navbar-spacer {
  height: 5px;  /* 5pxの透明な余白 */
  background: transparent;
}

:root {
  --navbar-top-margin: 5px; /* ここを変更するだけで全体が動く */
  --content-top-margin: 20px; /* ナビバーとコンテンツの間の余白 */
}

.navbar {
  transform: scale(0.9);
  transform-origin: top center;
  z-index: 999;
  background-color: #fff;
  max-width: 1200px;                 /* 横幅制限 */
  margin: 0 auto;                    /* ←これはなくてもOK */
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  height: auto;
  justify-content: center;
  margin-bottom: var(--navbar-bottom-margin);
}


.navbar-inner {
  width: 100%;
  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;
  width: 450px;
  box-sizing: border-box;
  margin-right: 10px;
  height: auto;
  z-index: 1;
  padding-bottom: 23px;
  margin-right: 35px;
}

.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: 430px;
  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: 130px;
  margin-right: 10px;
  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: 1200px;
  margin: 80px auto 0 auto; /* フッターから離す */
}

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

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


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