body {
  margin: 0;
  padding: 0;
}



/* ===== ヘッダー（確定版） ===== */
.header_nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;

  display: flex;
  justify-content: center;   /* メニューは画面中央 */
  align-items: center;

  background: #fff;
  z-index: 10;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ロゴ側（左固定） */
.header_left {
  position: absolute;
  left: 24px;

  display: flex;
  align-items: center;
}



/* 共通リンク（ロゴ用） */
.header_nav > a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: #000;
}

/* タイトル */
.header_left h1 {
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

/* メニュー */
.header_menu {
  display: flex;
  gap: 64px;
  list-style: none;
  margin: 0;
  padding: 0;
    justify-self: center;
}

/* メニューリンク（分離！） */
.header_menu li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  font-size: 1.2em;
  color: #888;
  text-decoration: none;
}

.header_menu li a:hover {
  color: #000;
}

/* ロゴ画像 */
.logo img {
  width: 4em;
  padding: 0.5em;
}

.footer-tagline{
  text-align: center;
  color: #c3c3c3;
}

    .main {
    padding-top: 0.5em;
  }

body.home .main {
  cursor: default;
}

body.home header,
body.home .header_nav {
  cursor: default;
}

/* フッター対策 */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}







/* ===== スマホ ===== */
@media (max-width: 1024px) {
  .header_nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    height: auto;          /* ← 80px を殺す */
    padding: 8px 12px;     /* ← 余白を明示的に小さく */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;              /* ← 縦の間隔は gap で管理 */
    background: #fff;
    z-index: 10;
  }

  .header_left {
    position: static;      /* ← absolute 解除（前に言った核心） */
        display: flex;
    align-items: center;
    justify-content: center; /* ← 核心 */
    width: 100%;             /* ← 中央計算の土台 */
    text-align: center;
  }

  .header_left h1 {
    font-size: 16px;       /* ← でかすぎ防止 */
    line-height: 1.2;
  }

   .header_menu {
    position: static;
    transform: none;
    width: auto;
    /* margin-top: 1rem;  */
    justify-content: center;
    /* gap: 2rem; */
  padding-left: 0;

  }

  .header_menu li a {
    padding: 12px;
  }

    .main {
    padding-top: 5em;
  }

}
