/* 共通スタイル */
body {
  font-family: 'Noto Serif', serif, Arial, sans-serif;
  font-size: 13px;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 10px 20px;
  z-index: 10;
  display: flex;
  justify-content: space-between; /* サイト名とメニューを分ける */
  align-items: center;
}

/* サイト名のスタイル */
#site-title a {
  font-size: 32px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

/* メニューのスタイル */
header nav ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  justify-content: space-between; /* アイテムを左右に広げる */
  width: 50%; /* 幅を制限 */
}

header nav ul li {
  margin: 0 10px; /* アイテム間のマージンを少し減らす */
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}


/* セクションのスタイル */
section {
  margin-top: 80px; /* ヘッダー下にスペースを追加 */
  padding: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left; /* 左揃え */
}

/* Aboutセクション */
#about {
  padding: 30px;
  max-width: 900px; /* 幅を最大900pxに統一 */
  margin-left: auto;
  margin-right: auto; /* 中央揃え */
}

/* 更新履歴 */
#updates {
  background-color: #fff;
  margin-top: 20px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

#updates ul {
  list-style-type: none;
  padding: 0;
}

#updates li {
  margin-bottom: 10px;
}

#updates a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fff;
  color: #000;
  text-decoration: none;
  border: 2px solid black;
  border-radius: 4px;
  transition: background-color 0.3s;
}

#updates a:hover {
  background-color: #888;
}

/* 小説一覧 */
#novels {
  background-color: #fff;
  margin-top: 20px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

#novels a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

#novels a:hover {
  background-color: #555;
}


/* コンタクト */

#contact {
  background-color: #fff;
  text-align: center;
  padding: 2em 1em;
  border-top: 1px dashed #000;
  margin-top: 2em;
}

#contact h2 {
  font-size: 1em;
  color: #000;
  margin-bottom: 0.5em;
}

#contact p {
  font-size: 1em;
  color: #444;
  margin-bottom: 1.5em;
}

.contact-button {
  display: inline-block;
  background-color: #000;
  color: white;
  text-decoration: none;
  padding: 0.8em 2em;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-button:hover {
  background-color: #fff;
  transform: scale(1.05);
}

/* Memoページ */
#memo {
  margin-top: 80px;
  padding: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.tag-buttons {
  margin-bottom: 20px;
  text-align: left;
}

.tag-buttons .tag {
  display: inline-block;
  background-color: #ddd;
  color: #333;
  border: none;
  border-radius: 16px;
  padding: 6px 16px;
  margin: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.tag-buttons .tag.selected {
  background-color: #000;
  color: #fff;
}

.memo-card {
  background-color: #fff;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.memo-date {
  font-weight: bold;
  margin-bottom: 8px;
  color: #999;
}

.memo-text {
  font-size: 14px;
  color: #333;
}

.memo-tags {
  margin-top: 10px;
  font-size: 11px;
  color: #666;
  font-style: italic;
}



/* 上部スクロール用ボタン */
#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none; /* 初期状態では非表示 */
}

#scrollToTop:hover {
  background-color: #555;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav ul {
    margin-top: 10px;
    flex-direction: row;
  }

  body {
    font-size: 14px; /* 通常より少し小さく */
  }

  h1, h2, h3 {
    font-size: 90%; /* 見出しも少し小さめに */
  }

  #contact {
    font-size: 90%; /* contact部分だけ個別で調整も可能 */
  }
}

