.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* フォームタイトル */
h1 {
  font-size: 1.8em;       /* 職務経歴フォームと同じサイズに */
  margin-bottom: 1em;
  text-align: left;       /* 左寄せに変更 */
}

/* セクションタイトル */
h2 {
  font-size: 1.2em;       /* 職務経歴フォームと同じサイズに */
  margin-top: 2em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2em;
  text-align: left;       /* 左寄せに統一 */
}

label {
  display: block;
  margin-top: 0.8em;
  font-weight: bold;
}

input[type="text"],
input[type="month"],
input[type="number"],
textarea {
  width: 100%;
  padding: 6px;
  margin-top: 0.3em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

/* すべての button に適用するのではなく、共通ボタン用クラスに限定 */
button.delete-btn,
button.add-btn {
  all: revert;
  font: inherit;
  font-size: 0.9em;
  margin-top: 0.8em;
}

.project-block {
  border: 1px solid #ddd;
  padding: 12px;
  margin-bottom: 1em;
  border-radius: 4px;
  background-color: #fafafa;
}

.add-btn {
  display: block;
  margin: 1em 0;
}

/* 期間入力（職務と揃える） */
.date-row {
  margin-bottom: 12px;
}

.date-label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.date-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-group input[type="month"] {
  flex: 0 0 160px;
  min-width: 140px;
  height: 32px;
  font-size: 14px;
  line-height: 32px;
  padding: 6px;
  box-sizing: border-box;
}

.date-group span {
  font-size: 16px;
  line-height: 1;
  margin: 0 4px;
}

.date-group .duration {
  margin-left: 12px;
  font-size: 14px;
  color: #333;
  font-weight: bold;
  white-space: nowrap;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 2em;
}

/* 更新ボタン：大きめ */
.btn-update {
  padding: 0.8em 2em;
  font-size: 1.1em;
  color: #fff;
  background-color: #0078d4;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-update:hover {
  background-color: #005a9e;
}

/* 更新せずに戻るボタン：少し小さめ */
.btn-cancel {
  display: inline-block;
  padding: 0.6em 1.5em;   /* 縦の余白で高さを調整 */
  font-size: 1em;
  vertical-align: middle; /* 隣の更新ボタンと揃える */
  color: #333;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn-cancel:hover {
  background-color: #e0e0e0;
}

/* スキル（職務経歴フォームと同一） */
.skill {
  border: 1px solid #ccc;
  padding: 12px;
  margin-bottom: 16px;
  background-color: #f9f9f9;
}

.skill label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.skill input[type="text"],
.skill select {
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
}