header, footer, main { max-width: 1200px; margin: auto; }
header { display: flex; justify-content: space-between; padding: 1rem; border-bottom: 1px solid #e5e5e5; }
footer { border-top: 1px solid #e5e5e5; padding: 2rem 0; text-align: center; font-size: 0.9rem; }
.sidebar { border: 1px solid #e5e5e5; padding: 1rem; border-radius: 8px; }

.footer-links{ margin-botton: 10px;}
/* --- mainレイアウト --- */
main {
  display: grid;
  grid-template-columns: 1fr 300px; /* 左：本文、右：サイドバー */
  gap: 2rem;
  padding: 2rem 1rem;
  align-items: start;
}

/* スマホでは1カラムに戻す */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
}
header {
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
}

/* ロゴ */
.logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* ナビ（PC） */
.global-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav a {
  text-decoration: none;
  color: #686967;
  font-weight: 500;
  transition: color 0.2s;
}
.global-nav a:hover {
  color: #0073e6;
}

/* ハンバーガーボタン（非表示） */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #686967;
  border-radius: 2px;
}

/* スマホ表示 */
@media (max-width: 900px) {
  .global-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem;
  }
  .global-nav.open {
    display: block;
  }
  .global-nav ul {
    flex-direction: column;
    gap: 0.8rem;
  }
  .menu-toggle {
    display: flex;
  }
}
