/* 全体の基本 */
body {
  font-family: sans-serif;
  margin: 20px;
}

/* ページコンテナ */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;   /* ラベルの下に余白 */
  margin-top: 0;
}

input[type="text"],
input[type="month"],
select,
textarea {
  width: 100%;
  padding: 6px;
  margin-bottom: 12px;  /* 入力欄の下に余白 */
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

/* タブ */
.tab-button {
  padding: 8px 16px;
  margin-right: 8px;
  cursor: pointer;
}

.tab-button.active {
  font-weight: bold;
  background-color: #eef;
}

.tab-content {
  display: none;
  margin-top: 20px;
}

.tab-content.active {
  display: block;
}

/* ブロック共通 */
.employment,
.career-block,
.skill {
  border: 1px solid #ccc;
  padding: 12px;
  margin-bottom: 16px;
  background-color: #f9f9f9;
}

.delete-btn {
  margin-top: 8px;
  cursor: pointer;
}

/* 資本金・従業員数 */
.capital-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.capital-group {
  flex: 1;
}

/* 勤務期間（横並び＋〜中央揃え＋期間表示横出し） */
.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;  /* 折り返さず横に並べる */
}

/* 役職 */
.position-block {
  border: 1px dashed #ccc;
  padding: 8px;
  margin-top: 8px;
  background-color: #fff;
}

.positionGroup h4 {
  margin-top: 16px;
}

.position-period {
  margin-top: 8px;
}

.position-period .date-label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.position-period .date-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.position-period input[type="month"] {
  width: 160px;
  height: 32px;          /* 高さを統一 */
  font-size: 14px;
  line-height: 32px;
}

.position-period .date-group span {
  font-size: 16px;
  line-height: 1;
  margin: 0 4px;
}

.position-period .date-group .duration {
  margin-left: 12px;
  font-size: 14px;
  color: #333;
  font-weight: bold;
  white-space: nowrap;
}

/* キャリア式 */
.career-field {
  margin-bottom: 16px;
}

.career-years {
  display: flex;
  align-items: center;
  gap: 6px;
}

.career-years input[type="text"] {
  width: 80px;
  padding: 6px;
  box-sizing: border-box;
}

/* スキル */
.skill label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.skill input[type="text"],
.skill select {
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
}

/* 追加ボタンの下に共通余白 */
.positionGroup > button,
.career-block > button[onclick^="addCareerEmployment"],
#employmentTab > button[onclick^="addEmployment"] {
  display: block;
  margin-bottom: 20px;  /* 呼吸スペースを確保 */
}

/*自己PR*/
.self-promo {
  margin-top: 12px;
}

.self-promo textarea {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 120px; /* rows=6 に対応 */
  box-sizing: border-box;
}

.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;
  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;
}