/* =========================
   横スクロール防止の基本設定
========================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: sans-serif;
}
:root {
    --brand-color:#003d7a;
    --text-color: #333333;
    --accent-color:#0066cc;
    --bg-color: #f0f4f8;
    --cta-color:#009688;
    --border-color:#f0f4f8;
}



/* ========== ヘッダー ========== */
.official-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  width: 100%;
}

.official-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.official-logo a {
  text-decoration: none;
}

.official-logo img {
  height: 40px;
  max-width: 100%;
}
.official-tagline{
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    font-size: 8px;
    color: #999;
    font-weight: normal;
}


/* ========== フッター ========== */
.official-footer {
  background: #333;
  color: #fff;
  padding: 40px 0;
  margin-top: 60px;
  width: 100%;
}

.official-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  width: 100%;
}

.official-footer-text{
    font-size: 10px;
}
.official-footer-text a{
    color: #fff;
}
.official-footer-links {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.official-footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

.official-footer-links a:hover {
  text-decoration: underline;
}

.official-footer-company {
  margin: 20px 0 0;
  font-size: 14px;
}

.official-footer-copyright {
  margin: 5px 0 0;
  font-size: 12px;
  color: #999;
}


/* ========== フォームコンテナ ========== */

.official-form-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 20px;
  width: 100%;
}

/* ========== ステップインジケーター ========== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ddd;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s;
}

.step-label {
  margin-top: 8px;
  font-size: 14px;
  color: #999;
  text-align: center;
  transition: all 0.3s;
}

.step-line {
  width: 80px;
  height: 2px;
  background: #ddd;
  margin: 0 10px;
  position: relative;
  top: -20px;
}

/* アクティブなステップ */
.step-item.active .step-number {
  background: var(--accent-color);
  color: #fff;
}

.step-item.active .step-label {
  color: #333;
  font-weight: bold;
}

/* 完了したステップ */
.step-item.completed .step-number {
  background: #4CAF50;
  color: #fff;
}

.step-item.completed .step-label {
  color: #4CAF50;
}

.step-item.completed + .step-line {
  background: #4CAF50;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h2 {
  margin-bottom: 30px;
  text-align: center;
  font-size: 24px;
  color: #333;
}


/* ボタン（経験選択） */
.btn-option {
  display: block;
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid #333;
  background: #fff;
  border-radius: 5px;
  transition: all 0.3s;
}

.btn-option:hover {
  background: #f0f0f0;
}


/* フォームグループ */
.form-group {
  margin: 30px 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #333;
}


/* 必須マーク */
.required {
  color: red;
  font-size: 14px;
  font-weight: normal;
}


/* エラーメッセージ */
.error {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.error:not(:empty) {
  display: block;
  padding: 8px;
  background: #ffe6e6;
  border: 1px solid #ff0000;
  border-radius: 4px;
}


/* ボタングループ */
.btn-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}


/* 次へボタン */
.btn-next {
  flex: 1;
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background: var(--accent-color);
  color: #fff;
  border-radius: 5px;
  transition: all 0.3s;
}

.btn-next:hover {
  background: #555;
}


/* 戻るボタン */
.btn-back {
  flex: 1;
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid #333;
  background: #fff;
  color: #333;
  border-radius: 5px;
  transition: all 0.3s;
}

.btn-back:hover {
  background: #f0f0f0;
}


/* 送信ボタン */
.btn-submit {
  flex: 1;
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 5px;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: #555;
}


/* チェックボックスグループ */
.checkbox-group {
  margin: 20px 0;
}

.checkbox-group label {
  font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}


/* 都道府県チェックボックス */
.prefecture-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  width: 100%;
}

.prefecture-checkboxes label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
  padding: 5px;
}

.prefecture-checkboxes input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  cursor: pointer;
}


/* 利用規約注記 */
.terms-note {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.terms-note a {
  color: #0066cc;
  text-decoration: underline;
}


/* ========== レスポンシブ ========== */
@media screen and (max-width: 767px) {

  .official-form-container {
    padding: 10px;
    margin: 20px auto;
    width: 100%;
  }
  
  /* ステップインジケーター */
  .step-indicator {
    margin-bottom: 30px;
    padding: 15px 0;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .step-label {
    font-size: 12px;
  }
  
  .step-line {
    width: 40px;
    top: -15px;
  }

  .form-step h2 {
    font-size: 20px;
  }

  .btn-option,
  .btn-next,
  .btn-back,
  .btn-submit {
    padding: 12px;
    font-size: 14px;
  }

  .form-group input,
  .form-group select {
    font-size: 14px;
  }
  
  .prefecture-checkboxes {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    max-height: 150px;
  }
}