/* ===== ベース ===== */
body {
  margin:0;
  font-family:"Noto Sans JP", sans-serif;
  color:#333;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
}

/* ヘッダー上メッセージ */
.top-message {
  width:100%;
  text-align:left;        /* ← 中央をやめて左基準に */
  padding:12px 0 12px 440px; /* ← 左に60px余白を作る（位置調整） */
  font-size:13px;
  letter-spacing:0.12em;
  color:#555;
  background:#fafafa;
  border-bottom:1px solid #e5e5e5;
  margin:0;                /* 左寄り防止 */
}

/* ヘッダー内 */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:10px 20px;
  flex-wrap: nowrap;
}

/* ロゴ＋会社名リンク */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img { height:48px; }

.company-text {
  display:flex;
  flex-direction:column;
  white-space: nowrap;
  overflow: hidden; /* 1行に収める */
}

.company-name { font-size:20px; }
.company-line { height:1px; background:#333; margin:4px 0; }
.company-en { font-size:11px; color:#666; }

/* ナビ */
.nav {
  display: flex;
  gap:28px;
}

.nav a {
  text-decoration:none;
  color:#333;
  position: relative;
  padding:6px 0;
  font-size:12px;
}

.nav a::after {
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  background:#1F3A5F;
  transition:.3s;
}

.nav a:hover::after,
.nav a.active::after { width:100%; }

/* メイン画像 */
.main-visual {
  height:500px;
  background:url("main.jpg") center/cover no-repeat;
  position:relative;
  margin-top: 96px; /* ヘッダー固定分の余白 */
}

.main-text {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  color:#fff;
  background: rgba(0,0,0,.4);
  padding:30px 40px;
  text-align:center;
}

.main-text h1 { font-size:32px; }

/* ハンバーガー */
.menu-toggle {
  display: none;
  font-size:20px;
  cursor:pointer;
  padding:10px 15px;
  user-select:none;
}

/* ===== スマホ対応 ===== */
@media(max-width:768px) {
  .nav {
    display: none;
    position: fixed;       /* ←ここがポイント */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 90%;
    max-width: 320px;
    min-width: 200px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1001;         /* ヘッダーより大きく */
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
  }

  .nav a:last-child { border-bottom: none; }

.nav.active { display: flex; }

  .main-visual {
    margin-top: 70px;  /* ヘッダー分のスペース */
    position: relative;
    z-index: 1;         /* navの下にする */
  }
}