/* レジュメノー スタイルシート */
:root {
  --brand-color: #fcc64d;
  --brand-color-light: #fde4a5;
  --brand-color-dark: #e5a520;
  --text-color: #333333;
  --bg-color: #ffffff;
  --grey-light: #f5f5f5;
  --grey: #e0e0e0;
  --grey-dark: #757575;
  --blue: #4a90e2;
  --green: #66bb6a;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-color);
}

/* ヘッダー */
header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 32px;
  margin-right: 10px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
}

.progress-bar {
  width: 50%;
  background-color: var(--grey);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--brand-color);
  transition: var(--transition);
}

/* カード要素 */
.card {
  background-color: var(--bg-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 30px;
}

/* フォーム要素 */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--grey);
  border-radius: 6px;
  font-size: 16px;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--brand-color);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-color-light);
}

.form-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--grey);
  border-radius: 6px;
  font-size: 16px;
  background-color: var(--bg-color);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.form-select:focus {
  border-color: var(--brand-color);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-color-light);
}

.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--grey);
  border-radius: 6px;
  font-size: 16px;
  resize: vertical;
  min-height: 120px;
  transition: var(--transition);
}

.form-textarea:focus {
  border-color: var(--brand-color);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-color-light);
}

/* ボタン要素 */
.btn {
  display: inline-block;
  background-color: var(--grey);
  color: var(--text-color);
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background-color: var(--brand-color);
  color: var(--text-color);
}

.btn-secondary {
  background-color: var(--blue);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--grey-dark);
  color: var(--grey-dark);
}

.btn-outline:hover {
  background-color: var(--grey-light);
}

.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-color);
  border: 1px dashed var(--grey-dark);
  color: var(--grey-dark);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add:hover {
  background-color: var(--grey-light);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* 企業オファーカルーセル */
.carousel-container {
  overflow: hidden;
  padding: 20px 0;
  background-color: var(--grey-light);
  margin-bottom: 30px;
  border-radius: 10px;
}

.carousel {
  display: flex;
  animation: scroll 30s linear infinite;
  width: max-content;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.offer-card {
  min-width: 300px;
  margin-right: 20px;
  background-color: var(--bg-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.offer-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.offer-logo {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  margin-right: 12px;
  object-fit: contain;
  background-color: var(--grey-light);
}

.offer-company {
  font-weight: 600;
  font-size: 14px;
  color: var(--grey-dark);
}

.offer-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.offer-desc {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--grey-dark);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.offer-footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  font-size: 13px;
  color: var(--grey-dark);
}

/* 経歴エントリー */
.entry-card {
  background-color: var(--grey-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  position: relative;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.entry-title {
  font-weight: 600;
  font-size: 16px;
}

.entry-actions {
  display: flex;
  gap: 10px;
}

.entry-action {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--grey-dark);
}

.entry-action:hover {
  color: var(--text-color);
}

.entry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.entry-form .form-group:last-child {
  grid-column: span 2;
}

/* インポートモーダル */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--grey-dark);
}

/* タブ切り替え */
.tab-container {
  margin-bottom: 20px;
}

.tab-buttons {
  display: flex;
  margin-bottom: 15px;
  background-color: var(--grey-light);
  border-radius: 8px;
  padding: 5px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  flex: 1;
  text-align: center;
  color: var(--grey-dark);
}

.tab-btn.active {
  background-color: var(--bg-color);
  color: var(--text-color);
  box-shadow: var(--shadow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* アバター選択 */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.avatar-option {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
  border: 2px solid transparent;
  transition: var(--transition);
}

.avatar-option:hover {
  transform: translateY(-5px);
}

.avatar-option.selected {
  border-color: var(--brand-color);
}

.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-option.selected::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background-color: var(--brand-color);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ナビゲーションボタン */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

/* スピナー */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .card {
    padding: 20px;
  }
  
  .progress-bar {
    width: 40%;
  }
  
  .entry-form {
    grid-template-columns: 1fr;
  }
  
  .entry-form .form-group:last-child {
    grid-column: 1;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .avatar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
