/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
  font-size: 16px;
}

/* === HEADER === */
header {
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
#logo {
  font-weight: bold;
  font-size: 1.125rem;
  text-decoration: none;
  color: #222;
}

/* === USER CONTROLS === */
#user-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
#user-controls span {
  font-weight: bold;
}
#user-controls a {
  padding: 0.25rem 0.5rem;
  border: 1px solid #0366d6;
  border-radius: 4px;
  text-decoration: none;
  color: #0366d6;
}
#user-controls a:hover {
  background: #0366d6;
  color: #fff;
}

/* === MAIN CONTENT === */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* === MENU LINKS (HOME PAGE) === */
#menu {
  list-style: none;
}
#menu li + li {
  margin-top: 0.5rem;
}
#menu a {
  display: inline-block;
  background: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #222;
}
#menu a:hover {
  background: #ced4da;
}

/* === FOOTER === */
footer {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  text-align: center;
  color: #666;
  border-top: 1px solid #eee;
}

/* === RESPONSIVE (MOBILE < 480px) === */
@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  #user-controls {
    width: 100%;
    justify-content: flex-start;
  }

  #user-controls a {
    font-size: 0.875rem;
  }

  main {
    padding: 1rem;
  }

  h1 {
    font-size: 1.25rem;
  }
}



/* base.css に追加 */
#user-controls a {
  margin-left: 0.5rem;
  color: #0366d6;
  font-size: 1.2rem;       /* アイコンリンクなら少し大きめ */
  text-decoration: none;
}
#user-controls a:hover {
  color: #024e9b;
}


