/* カラー変数定義 */
:root {
  --primary-color: #9c7863;
  --primary-light: #b8a193;
  --primary-dark: #7a5d4c;
  --accent-color: #d4c4b0;
  --text-primary: #2c1810;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border-color: rgba(156, 120, 99, 0.2);
  --bg-light: #f8f6f3;
  --bg-white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  --error: #ef4444;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(156, 120, 99, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
}

/* グラスモーフィズム効果 */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

/* 立体ボタンシステム */
.btn-3d {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 6px;
  border: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 6px 0 #654935,
    0 8px 25px rgba(156, 120, 99, 0.3);
  transform: translateY(0);
}

.btn-3d:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 #654935,
    0 12px 30px rgba(156, 120, 99, 0.4);
}

.btn-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
  z-index: 1;
}

.btn-3d:hover::before {
  left: 100%;
}

.btn-3d.pressing {
  transform: translateY(6px) !important;
  box-shadow:
    0 0 0 #654935,
    0 2px 15px rgba(156, 120, 99, 0.4) !important;
  transition: all 0.15s ease-out !important;
}

.btn-3d.releasing {
  transform: translateY(0) !important;
  box-shadow:
    0 6px 0 #654935,
    0 8px 25px rgba(156, 120, 99, 0.3) !important;
  transition: all 0.2s ease-out !important;
}

/* ヘッダー */
.header {
  text-align: center;
  padding: 40px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 6px rgba(156, 120, 99, 0.1);
}

@media (max-width: 768px) {
  .header__title {
    font-size: 24px;
  }
}

/* フォームセクション */
.form-section {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 8px rgba(156, 120, 99, 0.08);
}

.form-section__title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.form-label--required::after {
  content: " *";
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: var(--bg-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(156, 120, 99, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
}

/* 課題選択ボタン */
.challenge-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.challenge-button {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.challenge-button:hover {
  background: rgba(156, 120, 99, 0.1);
  border-color: var(--primary-light);
}

.challenge-button.selected {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(156, 120, 99, 0.3);
}

.challenge-button.selected:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 100%
  );
}

/* エラーメッセージ */
.error-message {
  background: linear-gradient(
    135deg,
    rgba(156, 120, 99, 0.08) 0%,
    rgba(156, 120, 99, 0.05) 100%
  );
  border-left: 4px solid var(--primary-color);
  color: var(--text-primary);
  padding: 20px 24px;
  border-radius: 12px;
  margin: 24px 0;
  font-size: 14px;
  animation: slideDown 0.3s ease;
  box-shadow: 0 2px 8px rgba(156, 120, 99, 0.15);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-message strong {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--primary-dark);
  font-weight: 600;
}

.error-message ul {
  margin: 8px 0 0 20px;
  list-style: none;
}

.error-message li {
  margin: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
}

.error-message li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

/* 診断ボタン */
.diagnose-button {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  padding: 16px 32px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 6px 0 #654935,
    0 8px 25px rgba(156, 120, 99, 0.3);
  transform: translateY(0);
  margin-bottom: 60px;
}

.diagnose-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 #654935,
    0 12px 30px rgba(156, 120, 99, 0.4);
}

.diagnose-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
  z-index: 1;
}

.diagnose-button:hover::before {
  left: 100%;
}

.diagnose-button.pressing {
  transform: translateY(6px) !important;
  box-shadow:
    0 0 0 #654935,
    0 2px 15px rgba(156, 120, 99, 0.4) !important;
  transition: all 0.15s ease-out !important;
}

.diagnose-button.releasing {
  transform: translateY(0) !important;
  box-shadow:
    0 6px 0 #654935,
    0 8px 25px rgba(156, 120, 99, 0.3) !important;
  transition: all 0.2s ease-out !important;
}

.diagnose-button:active {
  transform: translateY(0);
}

/* 結果セクション */
.results-section {
  display: none;
  animation: fadeIn 0.5s ease;
  scroll-margin-top: 50px;
}

.results-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 入力条件サマリー */
.summary-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(252, 250, 248, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid rgba(156, 120, 99, 0.15);
  box-shadow:
    0 8px 32px rgba(156, 120, 99, 0.15),
    0 2px 8px rgba(156, 120, 99, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-section:hover {
  box-shadow:
    0 12px 40px rgba(156, 120, 99, 0.2),
    0 4px 12px rgba(156, 120, 99, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.summary-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid transparent;
  background: linear-gradient(
      90deg,
      rgba(156, 120, 99, 0.3),
      rgba(212, 196, 176, 0.2),
      rgba(156, 120, 99, 0.3)
    )
    bottom / 100% 2px no-repeat;
}

.summary-section__title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: 0.5px;
}

.edit-button {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(252, 250, 248, 0.9)
  );
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(156, 120, 99, 0.15);
  letter-spacing: 0.3px;
}

.edit-button:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(156, 120, 99, 0.3);
  border-color: var(--primary-dark);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.summary-item {
  padding: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(252, 250, 248, 0.6) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(156, 120, 99, 0.2);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(156, 120, 99, 0.08);
}

.summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(156, 120, 99, 0.15);
  border-color: rgba(156, 120, 99, 0.3);
}

.summary-item__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.summary-item__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  word-break: break-word;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

/* 候補者セクション */
.candidates-section {
  margin-bottom: 70px;
  scroll-margin-top: 50px;
}

.candidates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid transparent;
  background: linear-gradient(
      90deg,
      rgba(156, 120, 99, 0.25),
      rgba(212, 196, 176, 0.15),
      rgba(156, 120, 99, 0.25)
    )
    bottom / 100% 2px no-repeat;
}

.candidates-title {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

/* アコーディオン */
.accordion {
  border-radius: 12px;
  overflow: visible;
}

.accordion__item {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(252, 250, 248, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  margin-bottom: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 20px rgba(156, 120, 99, 0.12),
    0 1px 3px rgba(156, 120, 99, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
}

.accordion__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(156, 120, 99, 0.3),
    rgba(212, 196, 176, 0.2),
    rgba(156, 120, 99, 0.3)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.accordion__item:not(.top-rank):hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(156, 120, 99, 0.2),
    0 4px 12px rgba(156, 120, 99, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.accordion__item:not(.top-rank):hover::before {
  opacity: 1;
}

.accordion__header {
  padding: 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(252, 250, 248, 0.4) 100%
  );
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  gap: 20px;
  user-select: none;
}

.accordion__header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(156, 120, 99, 0.2),
    transparent
  );
}

.accordion__item:hover .accordion__header {
  background: linear-gradient(
    135deg,
    rgba(252, 250, 248, 0.8) 0%,
    rgba(156, 120, 99, 0.08) 100%
  );
  box-shadow: 0 2px 8px rgba(156, 120, 99, 0.15);
  transform: translateY(-1px);
}

/* 1位・2位・3位専用スタイル - ホバー時も枠線を維持 */
.accordion__item.top-rank {
  position: relative;
}

.accordion__item.top-rank--1 {
  border: 3px solid #d4af37 !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
  border-radius: 8px;
  overflow: hidden;
}

.accordion__item.top-rank--1:hover {
  border: 3px solid #d4af37 !important;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4) !important;
  transform: translateY(-2px);
}

.accordion__item.top-rank--1 .accordion__header {
  background: linear-gradient(to bottom, #fffef7 0%, #ffffff 100%) !important;
  border: none !important;
}

.accordion__item.top-rank--1:hover .accordion__header {
  background: linear-gradient(to bottom, #fffef7 0%, #fff9e6 100%) !important;
  border: none !important;
  border-top: none !important;
  transform: translateY(-1px);
}

.accordion__item.top-rank--2 {
  border: 2.5px solid #c0c0c0 !important;
  box-shadow: 0 3px 10px rgba(192, 192, 192, 0.25) !important;
  border-radius: 8px;
  overflow: hidden;
}

.accordion__item.top-rank--2:hover {
  border: 2.5px solid #c0c0c0 !important;
  box-shadow: 0 5px 14px rgba(192, 192, 192, 0.35) !important;
  transform: translateY(-2px);
}

.accordion__item.top-rank--2 .accordion__header {
  background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%) !important;
  border: none !important;
}

.accordion__item.top-rank--2:hover .accordion__header {
  background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%) !important;
  border: none !important;
  border-top: none !important;
  transform: translateY(-1px);
}

.accordion__item.top-rank--3 {
  border: 2px solid #cd7f32 !important;
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.2) !important;
  border-radius: 8px;
  overflow: hidden;
}

.accordion__item.top-rank--3:hover {
  border: 2px solid #cd7f32 !important;
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3) !important;
  transform: translateY(-2px);
}

.accordion__item.top-rank--3 .accordion__header {
  background: linear-gradient(to bottom, #fff9f5 0%, #ffffff 100%) !important;
  border: none !important;
}

.accordion__item.top-rank--3:hover .accordion__header {
  background: linear-gradient(to bottom, #fff9f5 0%, #fff0e6 100%) !important;
  border: none !important;
  border-top: none !important;
  transform: translateY(-1px);
}

.dion__header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.accordion__header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.rank-badge {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  box-shadow:
    0 4px 12px rgba(156, 120, 99, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  flex-shrink: 0;
}

.rank-badge::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 100%
  );
}

.rank-badge--gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  box-shadow:
    0 4px 16px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 215, 0, 0.3);
}

.rank-badge--silver {
  background: linear-gradient(135deg, #e8e8e8 0%, #b0b0b0 100%);
  box-shadow:
    0 4px 16px rgba(192, 192, 192, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 20px rgba(192, 192, 192, 0.2);
}

.rank-badge--bronze {
  background: linear-gradient(135deg, #e5a05d 0%, #a0682a 100%);
  box-shadow:
    0 4px 16px rgba(205, 127, 50, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 20px rgba(205, 127, 50, 0.2);
}

.accordion__header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.candidate-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.candidate-info {
  margin-left: 60px; /* Width of rank-badge (44px) + gap (16px) */
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.candidate-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  line-height: 1.3;
  word-break: break-word;
  flex: 1;
  text-align: left;
}

.candidate-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.candidate-seniority {
  font-size: 12px;
  color: var(--primary-dark);
  background: linear-gradient(
    135deg,
    rgba(156, 120, 99, 0.15),
    rgba(212, 196, 176, 0.15)
  );
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(156, 120, 99, 0.2);
  display: inline-block;
}

.candidate-details {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.candidate-match-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  letter-spacing: 0.4px;
}

.candidate-match-simple.match-tier-ss {
  background: linear-gradient(135deg, #f4fbff, #d6f0ff);
  color: #0f3c55;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow:
    0 0 8px rgba(59, 130, 246, 0.3),
    inset 0 0 8px rgba(255, 255, 255, 0.6);
}

.candidate-match-simple.match-tier-s {
  background: linear-gradient(135deg, #fff4cc, #f5c451);
  color: #7c3a02;
  border-color: rgba(212, 163, 54, 0.45);
}

.candidate-match-simple.match-tier-a {
  background: linear-gradient(135deg, #f4f6fb, #d1d6e0);
  color: #1f2937;
  border-color: rgba(148, 163, 184, 0.45);
}

.candidate-match-simple.match-tier-b {
  background: linear-gradient(135deg, #f7d3b0, #c47a3b);
  color: #6b2b05;
  border-color: rgba(180, 105, 45, 0.45);
}

.candidate-match-simple.match-tier-c {
  background: linear-gradient(135deg, #ede9fe, #c4b5fd);
  color: #5b21b6;
  border-color: rgba(139, 92, 246, 0.35);
}

.working-hours {
  background: linear-gradient(
    135deg,
    rgba(156, 120, 99, 0.12),
    rgba(212, 196, 176, 0.08)
  );
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(156, 120, 99, 0.25);
  box-shadow: 0 2px 6px rgba(156, 120, 99, 0.08);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.monthly-range {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  box-shadow:
    0 4px 12px rgba(156, 120, 99, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.monthly-range::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.accordion__item:hover .monthly-range::before {
  left: 100%;
}

.accordion__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 20px;
  background: linear-gradient(
    135deg,
    rgba(156, 120, 99, 0.1),
    rgba(212, 196, 176, 0.08)
  );
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(156, 120, 99, 0.2);
  box-shadow: 0 2px 6px rgba(156, 120, 99, 0.08);
  letter-spacing: 0.3px;
}

.accordion__toggle:hover {
  background: linear-gradient(
    135deg,
    rgba(156, 120, 99, 0.18),
    rgba(212, 196, 176, 0.12)
  );
  border-color: rgba(156, 120, 99, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(156, 120, 99, 0.15);
}

.accordion__arrow {
  font-size: 18px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: bold;
}

.accordion__item.active .accordion__arrow {
  transform: rotate(180deg);
}

.accordion__item.active .accordion__header {
  background: linear-gradient(
    135deg,
    rgba(156, 120, 99, 0.12) 0%,
    rgba(252, 250, 248, 0.6) 100%
  );
  box-shadow: inset 0 2px 6px rgba(156, 120, 99, 0.1);
}

.accordion__content {
  padding: 0;
  display: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(252, 250, 248, 0.3) 100%
  );
  backdrop-filter: blur(10px);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px 28px 0 28px;
}

.star-candidate-disclaimer {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.12),
    rgba(255, 215, 0, 0.06)
  );
  border-left: 3px solid #ffd700;
  padding: 14px 18px;
  margin: 24px 28px 0 28px;
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
}

/* 保有スキル */
.skill-matrix {
  margin-top: 16px;
}

.skill-matrix__item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.skill-matrix__label {
  width: 140px;
  font-size: 13px;
  color: var(--text-secondary);
}

.skill-matrix__bar {
  flex: 1;
  height: 20px;
  background: rgba(156, 120, 99, 0.1);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
}

.skill-matrix__bar::before {
  content: "";
  position: absolute;
  left: 20%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.skill-matrix__bar::after {
  content: "";
  position: absolute;
  left: 40%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.skill-matrix__separator1 {
  position: absolute;
  left: 60%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.skill-matrix__separator2 {
  position: absolute;
  left: 80%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.skill-matrix__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-light) 0%,
    var(--primary-color) 100%
  );
  border-radius: 10px 0 0 10px;
  transition: width 0.5s ease;
  z-index: 1;
}

.skill-matrix__fill[style*="width: 100%"] {
  border-radius: 10px;
}

.skill-matrix__value {
  margin-left: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  min-width: 30px;
}

/* セクションスタイル */
.content-section {
  margin-bottom: 24px;
}

.content-section__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

.content-section__list {
  list-style: none;
  padding: 0;
}

.content-section__item {
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(156, 120, 99, 0.05);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.content-section__item::before {
  content: "▸";
  color: var(--primary-color);
  margin-right: 8px;
}

.ai-match-circle {
  position: relative;
  width: 192px;
  height: 192px;
  margin: 20px auto;
}

.ai-match-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ai-match-circle__bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 14;
}

.ai-match-circle__progress {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.ai-match-circle__center {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-match-circle__inner {
  text-align: center;
}

.ai-match-circle__number {
  font-size: 48px;
  font-weight: bold;
  color: var(--text-primary);
  line-height: 1;
}

.ai-match-circle__label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  letter-spacing: 2px;
  font-weight: 600;
}

.match-detail {
  margin-top: 16px;
}

.match-detail__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.match-detail__item {
  margin-bottom: 10px;
}

.match-detail__label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-detail__percentage {
  font-weight: 600;
  color: var(--primary-color);
}

.match-detail__bar {
  height: 8px;
  background: rgba(156, 120, 99, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.match-detail__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-light) 0%,
    var(--primary-color) 100%
  );
  border-radius: 4px;
  transition: width 0.5s ease;
}

.testimonial-quote {
  background: rgba(156, 120, 99, 0.05);
  border-left: 3px solid var(--primary-color);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 12px;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 8px;
  font-style: normal;
}

/* CTA / お問い合わせフォーム */
.contact-section {
  text-align: center;
  padding: 48px;
  background: #c7baab;
  border-radius: 20px;
  margin-top: 48px;
  box-shadow:
    0 16px 48px rgba(156, 120, 99, 0.35),
    0 4px 16px rgba(156, 120, 99, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  scroll-margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30%, -30%);
  }
}

.contact-title {
  color: #000000;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 32px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.contact-form-grid .form-group {
  margin-bottom: 0;
}

.contact-form-grid .form-label {
  color: white;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.3px;
}

.contact-form-grid .form-input,
.contact-form-grid .form-select {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.contact-form-grid .form-input:focus,
.contact-form-grid .form-select:focus {
  background: white;
  border-color: white;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.contact-button {
  background: white;
  color: var(--primary-dark);
  border: none;
  padding: 18px 56px;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.contact-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(156, 120, 99, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.contact-button:hover::before {
  left: 100%;
}

.inquiry-button {
  display: block;
  width: calc(100% - 48px);
  max-width: 400px;
  margin: 0 auto;
  padding: 16px 32px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 6px 0 #654935,
    0 8px 25px rgba(156, 120, 99, 0.3);
  transform: translateY(0);
  margin-bottom: 6px;
}

.inquiry-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 #654935,
    0 12px 30px rgba(156, 120, 99, 0.4);
}

.inquiry-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
  z-index: 1;
}

.inquiry-button:hover::before {
  left: 100%;
}

.inquiry-button.pressing {
  transform: translateY(6px) !important;
  box-shadow:
    0 0 0 #654935,
    0 2px 15px rgba(156, 120, 99, 0.4) !important;
  transition: all 0.15s ease-out !important;
}

.inquiry-button.releasing {
  transform: translateY(0) !important;
  box-shadow:
    0 6px 0 #654935,
    0 8px 25px rgba(156, 120, 99, 0.3) !important;
  transition: all 0.2s ease-out !important;
}

.inquiry-button__br {
  display: none;
}

.inquiry-button-container {
  padding: 28px 24px 32px 24px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(248, 246, 243, 0.6) 0%,
    rgba(252, 250, 248, 0.4) 100%
  );
  border-top: 1px solid rgba(156, 120, 99, 0.15);
}

/* 候補者プロフィール */
.candidate-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(252, 250, 248, 0.4) 100%
  );
  border-radius: 12px;
  margin-bottom: 20px;
}

.candidate-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-basic-info {
  flex: 1;
}

.candidate-info-row {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}

.candidate-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--text-secondary);
}

.candidate-info-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

.candidate-info-value {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 16px;
}

@media (max-width: 768px) {
  .candidate-profile {
    flex-direction: column;
    text-align: center;
  }

  .candidate-info-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* 注記 */
.disclaimer {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 24px;
}

/* ローディング */
.loading {
  display: none;
  text-align: center;
  padding: 40px;
}

.loading.active {
  display: block;
}

.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid var(--bg-light);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header__title {
    font-size: 24px;
  }

  .form-grid,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-section {
    padding: 24px;
  }

  .summary-section__title {
    font-size: 18px;
  }

  .contact-section {
    padding: 32px 24px;
  }

  .contact-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .contact-button {
    padding: 16px 40px;
    font-size: 18px;
  }

  .candidates-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .candidates-title {
    font-size: 22px;
  }

  .accordion__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .accordion__header-left {
    width: 100%;
  }

  .accordion__header-right {
    align-items: flex-start;
    width: 100%;
  }

  .candidate-details {
    width: 100%;
  }

  .monthly-range {
    align-self: flex-start;
  }

  .accordion__toggle {
    width: 100%;
    justify-content: center;
  }

  .candidate-title {
    font-size: 16px;
  }

  .monthly-range {
    font-size: 13px;
  }

  .working-hours {
    font-size: 12px;
  }

  .edit-button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .inquiry-button__br {
    display: inline;
  }

  .inquiry-button {
    font-size: 16px;
    padding: 14px 24px;
    line-height: 1.4;
  }

  /* ヘッダー・ナビゲーションのレスポンシブ対応 */
  .site-header-inner {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
    padding-bottom: 10px !important;
  }

  .site-nav {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }

  .site-nav-link {
    flex: 1 1 50% !important; /* 2列表示 */
    padding: 12px 10px !important;
    font-size: 13px !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-sizing: border-box !important;
  }

  /* ページタイトルのレスポンシブ対応 */
  .page-title-area {
    padding: 20px 15px !important;
  }

  .page-title-area h1 {
    font-size: 20px !important;
    margin-bottom: 16px !important;
    line-height: 1.5 !important;
  }

  .page-title-area p {
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  /* 診断フォームのコンパクト化 */
  .form-section {
    padding: 20px 15px !important; /* パディングを縮小 */
    margin-bottom: 20px !important;
  }

  .form-section__title {
    font-size: 18px !important;
    margin-bottom: 16px !important;
  }

  .form-group {
    margin-bottom: 16px !important;
  }

  .form-label {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  .challenge-button {
    padding: 8px 14px !important; /* ボタンサイズ縮小 */
    font-size: 13px !important;
  }

  .challenge-button-group {
    gap: 8px !important;
  }

  .diagnose-button {
    margin-top: 30px !important;
    margin-bottom: 40px !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    max-width: 100% !important;
  }
}

.date-tags {
  display: none;
}

/* まずは常にiframeを親幅いっぱいに */
.full-width-iframe-container,
.full-width-iframe-container iframe {
  width: 100% !important;
  max-width: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* スマホ版で「画面全幅（100vw）」に突き抜けさせる */
@media (max-width: 768px) {
  .full-width-iframe-container {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
  }
}

.full-width-iframe-container iframe {
  height: 12000px !important;
  width: 100% !important;
}

@media (max-width: 480px) {
  .full-width-iframe-container iframe {
    height: 12000px !important;
  }
}
/* 元のコードの末尾 */
/* ステッププログレスバー */
.step-progress-container {
  margin-bottom: 40px;
  padding: 0 20px;
}

.step-progress {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.step-progress-bar {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #f0f0f0;
  border-radius: 4px;
  z-index: 1;
}

.step-progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.step-indicators {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1; /* Changed from 0.6 to make it non-transparent */
  transition: all 0.3s ease;
}

.step-indicator.active {
  opacity: 1;
}

.step-indicator.completed .step-indicator-circle {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.step-indicator.active .step-indicator-circle {
  border-color: var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(156, 120, 99, 0.1); /* Reduced shadow intensity */
  transform: scale(1.1);
}

.step-indicator-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: #999;
  transition: all 0.3s ease;
}

.step-indicator-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.step-indicator.active .step-indicator-label {
  color: var(--primary-color);
}

/* ステップセクション */
.step-section {
  display: none;
  animation: fadeInStep 0.5s ease;
}

.step-section.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  text-align: center;
  margin-bottom: 30px;
}

.step-number {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary-color);
  margin-bottom: 8px;
  background: rgba(156, 120, 99, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ステップナビゲーションボタン */
.step-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.step-nav-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.step-prev-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.step-prev-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.step-next-btn {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: white;
}

.step-next-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(156, 120, 99, 0.2);
}

.step-next-btn:disabled {
  background: #e0e0e0;
  border-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
}

.drawer__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 49;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s linear,
    visibility 0.3s linear;
}

.drawer__overlay.is-checked {
  opacity: 1;
  visibility: visible;
}

/* --- Hamburger Menu Styles --- */

/* Drawer Content */
.drawer__content {
  position: fixed;
  top: 0;
  right: -80%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: #fff;
  z-index: 200;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding-top: 70px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.drawer__content.is-checked {
  right: 0;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
}

.drawer__content__link {
  padding: 16px 24px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(156, 120, 99, 0.1);
  transition: background 0.2s;
  font-size: 15px;
}

.drawer__content__link:hover {
  background: rgba(156, 120, 99, 0.05);
  color: var(--primary-color);
}

/* Hamburger Icon Animation */
.drawer__icon {
  width: 30px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
  padding: 0;
}

.drawer__icon__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-dark);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.drawer__icon__bar:nth-of-type(1) {
  top: 0;
}
.drawer__icon__bar:nth-of-type(2) {
  top: 11px;
}
.drawer__icon__bar:nth-of-type(3) {
  bottom: 0;
}

.drawer__icon.is-checked .drawer__icon__bar:nth-of-type(1) {
  top: 11px;
  transform: rotate(45deg);
}

.drawer__icon.is-checked .drawer__icon__bar:nth-of-type(2) {
  opacity: 0;
}

.drawer__icon.is-checked .drawer__icon__bar:nth-of-type(3) {
  bottom: 11px;
  transform: rotate(-45deg);
}

/* Responsive Toggle Overrides */

/* Desktop (Default): Hide Hamburger, Show Nav */
.header {
  display: none !important;
}

.desktop-nav-container {
  display: block;
}

/* Mobile: Show Hamburger, Hide Nav */
@media (max-width: 768px) {
  .header {
    display: flex !important;
  }

  .desktop-nav-container {
    display: none !important;
  }

  .drawer__overlay {
    z-index: 150;
  }
}
