/* =====================
   SHE風リセットCSS + 共通テーマ
   ===================== */
   :root {
    --primary-color: #ffd700;
    --primary-dark: #ffb300;
    --primary-light: #fff3cd;
    --bg-light: #fffbf0;
    --text-dark: #333;
    --text-light: #888;
    --radius: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --font-main: "sofia-pro", "Yu Gothic", "游ゴシック体", sans-serif;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.8;
  }
  
  /* ===== Header ===== */
  header {
    background: #fff;
    box-shadow: var(--shadow);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  nav a {
    margin-left: 20px;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  nav a:hover {
    color: var(--primary-color);
  }
  
  /* ===== Hero ===== */
  .hero {
    background: var(--bg-light);
    text-align: center;
    padding: 100px 20px 60px;
  }
  
  .hero h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    color: var(--primary-color);
  }
  
  .hero p {
    font-size: 1.2rem;
    color: var(--text-light);
  }
  
  .cta-button {
    margin-top: 30px;
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .cta-button:hover {
    background-color: #d56a86;
  }
  
  /* ===== Sections ===== */
    .section {
    max-width: 960px;
    margin: 60px auto;
    padding: 48px 32px;
    background: linear-gradient(135deg, #fff 0%, #fefefe 100%);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
  }

  .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark), #ffc107);
  }

  .section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
  }

  .section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
  }
  
  /* ===== Cards ===== */
  .card-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 20px;
  }
  
  .card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
  }
  
  .card:hover {
    transform: translateY(-4px);
  }
  
  .card h3 {
    margin-top: 0;
    color: var(--text-dark);
  }
  
  .card p {
    color: var(--text-light);
  }
  
  /* ===== Footer ===== */
  footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    background: #fafafa;
  }
  
  /* ===== Responsive ===== */
  @media (max-width: 768px) {
    .hero h2 {
      font-size: 2rem;
    }
    .hero p {
      font-size: 1rem;
    }
    .section h2 {
      font-size: 1.6rem;
    }
    
    .section {
      margin: 30px auto;
      padding: 24px 16px;
    }
    
    .form-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .career-inputs {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    
    .career-inputs textarea[name="career_detail[]"] {
      grid-column: 1 / 2;
      min-height: 120px;
    }
    
    .btn-remove {
      justify-self: start;
      margin-top: 12px;
      width: 100%;
      padding: 12px;
    }
    
    .checkbox-group {
      gap: 12px;
      padding: 16px;
    }
    
    .checkbox-group label {
      width: 100%;
      padding: 12px;
      font-size: 0.9rem;
    }
    
    input[type="text"],
    input[type="url"],
    input[type="file"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
      font-size: 16px; /* iOSでズームを防ぐ */
      padding: 16px;
    }
    
    input[type="date"] {
      font-size: 16px;
      min-height: 52px;
      padding: 16px;
    }
    
    .btn-primary,
    .btn-secondary {
      width: 100%;
      padding: 16px;
      font-size: 1rem;
    }
  }

  @media (max-width: 480px) {
    .section {
      margin: 20px auto;
      padding: 20px 12px;
    }
    
    .section h2 {
      font-size: 1.4rem;
      margin-bottom: 24px;
    }
    
    .career-container {
      padding: 16px;
    }
    
    .career-item {
      padding: 16px;
    }
    
    .checkbox-group {
      padding: 12px;
    }
    
    .checkbox-group label {
      padding: 10px;
      font-size: 0.85rem;
    }
  }
    .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .form-group.full {
    grid-column: 1 / -1;
  }

  label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
  }

  label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
  }

  .form-group:focus-within label::after {
    width: 100%;
  }
  
  input[type="text"],
  input[type="url"],
  input[type="file"],
  input[type="date"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 1rem;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: var(--radius);
    background: #fff;
    transition: all 0.3s ease;
    font-family: var(--font-main);
  }

  input[type="text"]:focus,
  input[type="url"]:focus,
  input[type="file"]:focus,
  input[type="date"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  select:focus,
  textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
  }

  input[type="text"]:hover,
  input[type="url"]:hover,
  input[type="file"]:hover,
  input[type="date"]:hover,
  input[type="email"]:hover,
  input[type="tel"]:hover,
  select:hover,
  textarea:hover {
    border-color: #cbd5e0;
  }
  
  textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
  }

  /* 生年月日入力の改善 */
  input[type="date"] {
    position: relative;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.5;
    min-height: 48px;
  }

  input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
  }

  /* カスタム日付入力スタイル */
  input[type="date"]::-webkit-datetime-edit {
    padding: 0;
  }

  input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  input[type="date"]::-webkit-datetime-edit-text {
    padding: 0 2px;
  }

  input[type="date"]::-webkit-datetime-edit-month-field,
  input[type="date"]::-webkit-datetime-edit-day-field,
  input[type="date"]::-webkit-datetime-edit-year-field {
    padding: 0 2px;
  }

  /* 経歴セクションの改善 */
  .career-container {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff8e1 100%);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
  }

  .career-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  }

  .career-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
  }

  .career-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
  }

  .career-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px 0 0 2px;
  }

  .career-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 16px;
    align-items: start;
  }

  .career-inputs input[type="text"],
  .career-inputs textarea {
    min-height: 48px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
  }

  .career-inputs input[type="text"]:focus,
  .career-inputs textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  }

  .career-inputs textarea[name="career_detail[]"] {
    grid-column: 3 / 4;
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
    padding: 16px;
    background: #fafafa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
  }

  .career-inputs textarea[name="career_detail[]"]:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  }

  .career-inputs textarea[name="career_detail[]"]:hover {
    border-color: #cbd5e0;
    background: #f8f9fa;
  }

  .btn-remove {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  }

  .btn-remove:hover {
    background: linear-gradient(135deg, #ff5252, #ff3838);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
  }

  .btn-secondary {
    background: linear-gradient(135deg, #ffc107, var(--primary-dark));
    color: #333;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  }

  .btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #ffb300);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  }

  .btn-secondary:disabled {
    background: linear-gradient(135deg, #ffd54f, #ffb74d);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
  }
  
    .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
  }

  .checkbox-group label {
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .checkbox-group label:hover {
    border-color: var(--primary-color);
    background: rgba(255, 215, 0, 0.1);
  }

  .checkbox-group input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
  }
  
    .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #333;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
  }

  .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #ffc107);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
  }

  .btn-primary:hover::before {
    left: 100%;
  }

  /* 必須項目のスタイル */
  .required {
    color: #ff4757;
    font-weight: bold;
    margin-left: 4px;
  }

  /* フォームノート */
  .form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 16px;
  }

  /* ボタンの状態 */
  .btn-primary:disabled {
    background: linear-gradient(135deg, #ccc, #bbb);
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  .btn-primary:disabled:hover {
    background: linear-gradient(135deg, #ccc, #bbb);
    transform: none;
    box-shadow: none;
  }

  .btn-primary:disabled::before {
    display: none;
  }

  .btn-enabled {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #333;
    cursor: pointer;
  }

  .btn-disabled {
    background: linear-gradient(135deg, #ccc, #bbb);
    color: #666;
    cursor: not-allowed;
  }

  /* モーダルスタイル */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    background-color: #fff;
    margin: 20px;
    padding: 0;
    border-radius: var(--radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e1e5e9;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #333;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
  }

  .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }

  .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
  }

  .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e1e5e9;
    background-color: #f8f9fa;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  /* 確認画面のスタイル */
  .confirmation-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .confirmation-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
  }

  .confirmation-section h4 {
    margin: 0 0 16px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
  }

  .confirmation-item {
    margin-bottom: 12px;
    line-height: 1.6;
  }

  .confirmation-item:last-child {
    margin-bottom: 0;
  }

  .confirmation-item strong {
    color: var(--text-dark);
    font-weight: 600;
  }

  .career-detail {
    margin-top: 8px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-size: 0.9rem;
    color: var(--text-light);
  }

  /* レスポンシブ対応 */
  @media (max-width: 768px) {
    .modal-content {
      width: 95%;
      margin: 10px;
    }
    
    .modal-header {
      padding: 16px 20px;
    }
    
    .modal-body {
      padding: 20px;
    }
    
    .modal-footer {
      padding: 16px 20px;
      flex-direction: column;
    }
    
    .modal-footer button {
      width: 100%;
    }
  }
    
  /* ===== 送信中ローディング状態 ===== */
  .btn-loading {
    background: linear-gradient(135deg, #ccc, #bbb) !important;
    color: #666 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    position: relative !important;
    pointer-events: none !important;
  }

  .btn-loading::before {
    display: none !important;
  }

  .btn-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  .btn-loading .btn-text {
    opacity: 0;
  }

  @keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
  }

  /* 送信中オーバーレイ */
  .form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .form-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Edit Form専用 - loading-overlay */
  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
  }



  .loading-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 350px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
  }

  .loading-spinner {
    display: none;
  }

  .loading-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    text-align: center;
    width: 100%;
    display: block;
    padding: 0;
    line-height: 1.4;
  }

  .loading-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    text-align: center;
    width: 100%;
    display: block;
    padding: 0;
    line-height: 1.4;
  }

  /* 送信中のボタンテキスト変更 */
  .btn-submitting .original-text {
    display: none;
  }

  .btn-submitting .loading-text {
    display: inline;
  }

  .btn-submitting .loading-text::before {
    content: '送信中';
  }

  /* プログレスバー */
  .progress-container {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin: 1.5rem 0 0 0;
    overflow: hidden;
    display: block;
  }

  .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-animation 3s ease-in-out infinite;
  }

  @keyframes progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
  }
    