/* ====== 全体 ====== */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #222222;
  line-height: 1.6;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  margin: 0 auto;
  padding: 0 16px;
}

/* ====== 固定ヘッダー ====== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eeeeee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
}

.logo img {
  height: 80px;
  width: 80px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  font-size: 14px;
}

/* ====== セクション共通 ====== */
section {
  padding: 100px 16px 80px; /* ヘッダー分の余白を確保 */
  border-top: 1px solid #d4d9d6;
}

section h2 {
  font-size: 22px;
  margin-bottom: 24px;
  text-align: center;
}

/* ====== フッター ====== */
footer {
  border-top: 1px solid #d4d9d6;
  padding: 16px 0;
  font-size: 12px;
  color: #777777;
  text-align: center;
}

/* ====== スマホ対応 ====== */
@media (max-width: 768px) {

    /* セクション共通 */
    section {
      padding: 80px 16px;
      /*border-top: 1px solid #f3f3f3;*/
       border-top: 1px solid #d4d9d6;
      margin-top: 0;
    }
    
  
  /* ハンバーガーメニュー */
  /* メニュー全体を右側に固定して隠す */
  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 120px;
    background: #ffffff;
    flex-direction: column;
    padding: 80px 20px;
    gap: 20px;
    border-left: 1px solid #ddd;

    /* 初期状態：画面外に隠す */
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  
  /* 表示状態：右からスライドイン */
  nav ul.active {
    transform: translateX(0);
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001; /* メニューより前に出す */
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
  }
  
  .hamburger-pos {
    margin-left: auto; /* 自動的に右端へ移動 */
  }
  
   /* ヘッダー */
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  nav ul {
    gap: 16px;
    font-size: 13px;
    flex-wrap: wrap;
  }

  .logo img {
    height: 50px;
    width: 50px;
  }
}
