/* styles.css */

body {
  font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* モダンなフォントに変更 */
  margin: 0;
  padding: 0;
  background: #f0f0f0; /* ソフトな背景色に変更 */
  color: #333; /* よりシャープなテキストカラー */
}

header {
  background-color: #007bff; /* 明るいブルーに変更 */
  padding: 20px 0;
  color: white;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* ソフトな影を追加 */
  font-family: "Helvetica"; /* モダンなフォントに変更 */
}

header h1 {
  margin: 0;
  font-size: 2.5em;
}

header h2 {
  margin: 0;
  font-size: 1.2em;
  font-weight: normal;
  opacity: 0.8;
}


main {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px; /* ボーダーの角を丸める */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* より強調された影を追加 */
}

.profile {
  max-width: 200px;
  margin: 30px 0;
  border-radius: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

footer {
  background-color: #343a40; /* ダークテーマのフッター */
  color: #ddd; /* フッターテキストの色を変更 */
  text-align: center;
  padding: 20px 0;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.social-icons {
  display: flex;
  align-items: center;
}

.social-icon {
  width: 24px; /* アイコンサイズ調整 */
  height: 24px;
  margin-left: 10px;
}
nav.scrolled {
  background-color: #333; /* スクロール時のナビゲーションバーの背景色変更例 */
}
a:hover {
  transform: scale(1.1); /* リンクのホバー効果例 */
}


.codehilite {
  background: #d4d4d4; /* コードブロックの背景色を変更 */
  padding: 10px;
  margin: 20px 0;
  border-radius: 8px; /* コードブロックの角を丸める */
  overflow: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* より強調された影を追加 */
}


nav {
  background-color: #0062cc; /* より深いブルーに変更 */
  overflow: hidden;
  /* Center the links */
  display: flex;
  justify-content: center;
  align-items: center;
}

nav a {
  float: left;
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  background-color: #004a99; /* ホバー時の色変更 */
}

/* Hamburger Menu Icon */
.hamburger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  height: 25px;
  width: 30px;
}

.hamburger-menu div {
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }

  nav a {
    display: none;
    width: 100%;
    text-align: center;
  }

  nav.active a {
    display: block;
  }

  /* Adjust nav alignment */
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
