/* Base Styles */

* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: 'Helvetica Neue', Arial, sans-serif;

}



.btn-text {

  margin-right: 10px;

}



/* Layout for Form and Progress Bar */

.page-layout {

  display: flex;

  gap: 20px; /* ギャップを小さく */

  padding: 0;

  max-width: 1200px;

  margin: 0 auto;

  min-height: 600px; /* フォームの最小高さを確保 */

}



.side-progress {

  width: 80px; /* 幅を小さく */

  flex-shrink: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  padding-top: 20px; /* パディングを小さく */

  gap: 10px; /* ギャップを小さく */

  background-color: #f9f9f9;

  position: relative;

  min-height: 600px; /* プログレスバーの最小高さを設定 */

}



.progress-item {

  text-align: center;

  position: relative;

  padding: 6px 0; /* パディングを小さく */

  width: 100%;

  transition: all 0.3s ease;

}



/* プログレスバーをつなぐ線 */

.progress-item:not(:last-child)::after {

  content: '';

  position: absolute;

  top: 100%;

  left: 50%;

  width: 1px; /* 線を細く */

  height: 10px; /* ギャップの高さを小さく */

  background-color: #e0e0e0;

  z-index: 0;

}



/* アクティブなアイテムの下の線の色を変更 */

.progress-item.active:not(:last-child)::after,

.progress-item.completed:not(:last-child)::after {

  background-color: #2196f3;

}



.progress-icon {

  width: 36px; /* アイコンサイズを小さく */

  height: 36px; /* アイコンサイズを小さく */

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 4px; /* マージンを小さく */

  border-radius: 50%;

  background-color: #f0f0f0;

  color: #aaa;

  font-size: 14px; /* フォントサイズを小さく */

  transition: all 0.3s ease;

  position: relative;

  z-index: 1;

  border: 1px solid #e0e0e0; /* ボーダーを細く */

}



/* アクティブ・完了状態のスタイル */

.progress-item.active .progress-icon {

  background-color: #2196f3;

  color: white;

  border-color: #2196f3;

  transform: scale(1.1);

  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2); /* シャドウを小さく */

}



.progress-item.completed .progress-icon {

  background-color: #4caf50;

  color: white;

  border-color: #4caf50;

}



/* 完了マークの追加 */

.progress-item.completed .progress-icon::after {

  content: '✓';

  position: absolute;

  bottom: -3px; /* 位置調整 */

  right: -3px; /* 位置調整 */

  width: 16px; /* サイズを小さく */

  height: 16px; /* サイズを小さく */

  background-color: #4caf50;

  color: white;

  border-radius: 50%;

  font-size: 10px; /* フォントサイズを小さく */

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid white; /* ボーダーを細く */

}



.progress-label {

  font-size: 11px; /* フォントサイズを小さく */

  color: #777;

  white-space: nowrap;

  transition: all 0.3s ease;

}



.progress-item.active .progress-label,

.progress-item.completed .progress-label {

  color: #333;

  font-weight: 600;

}



/* Form Content */

.form-content {

  flex: 1;

  display: flex;

  flex-direction: column;

  min-height: 600px; /* フォームコンテンツの最小高さを設定 */

}



.content-container {

  width: 100%;

  flex: 1;

  display: flex;

  flex-direction: column;

  background-color: white;

  border-radius: 12px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

  margin: 30px 0;

  overflow: hidden; /* オーバーフローを隠す */

}



/* Header and Logo */

.header-wrapper {

  position: relative;

  width: 100%;

  max-width: 1200px;

  margin: 0 auto;

}



.logo-container {

  position: absolute;

  top: 10px;

  left: 10px;

  z-index: 10;

  background-color: rgba(255, 255, 255, 0.85);

  padding:5px;
  border-radius:6px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

  width: 30%;

}



.company-logo {

  height: auto;

  width: 100%;

  display: block;

  overflow:hidden;

  border-radius:5px;

}



.header-images {

  width: 100%;

  text-align: center;

  overflow: hidden;

}



.header-images .main-visual {

  width: 100%;

  max-width: 1200px;

  margin: 0 auto;

  display: block;

}



/* Step Styling */

.step {

  display: none;

  width: 100%;

  padding: 40px;

  transition: all 0.3s ease;

  flex: 1;

}



.step.active {

  display: block;

}



.step-title {

  text-align: center;

  font-size: 24px;

  font-weight: 700;

  margin-bottom: 30px;

  color: #2a2d3e;

}



/* Options Container */

.options-container {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px;

  margin-bottom: 30px;

}



.option {

  border: 2px solid #e0e0e0;

  border-radius: 12px;

  padding: 20px;

  text-align: center;

  cursor: pointer;

  transition: all 0.3s ease;

  min-height: 120px;

  display: flex;

  align-items: center;

  justify-content: center;

}



.option:hover {

  transform: translateY(-5px);

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);

  border-color: #2196f3;

}



.option.selected {

  background-color: #f0f7ff;

  border-color: #2196f3;

  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.2);

}



.option-content {

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  width: 100%;

}



.option-icon {

  font-size: 24px;

  margin-bottom: 10px;

  color: #2196f3;

}



.option-title {

  font-weight: 600;

  color: #2a2d3e;

  font-size: 26px; /* フォントサイズを大きく設定 */

  line-height: 1.2; /* 行間を調整 */

  display: flex;

  flex-direction: column; /* 円マークと文字を縦に配置 */

  align-items: center;

  justify-content: center;

  width: 100%;

  text-align: center;

}



/* 「以上」などの小さいテキスト用 */

.option-title span {

  font-size: 18px; /* 「以上」の部分は少し小さく */

  display: inline-block;

}



/* Back Button */

.back-btn {

  background-color: #f0f0f0;

  border: none;

  border-radius: 30px;

  padding: 10px 20px;

  display: flex;

  align-items: center;

  cursor: pointer;

  font-weight: 600;

  margin-top: 20px;

  transition: all 0.3s ease;

  color: #555;

}



.back-btn:hover {

  background-color: #e0e0e0;

}



/* Form Elements */

.form-container {

  background-color: #f9f9f9;

  border-radius: 12px;

  padding: 30px;

  margin-bottom: 20px;

}



.form-subtitle {

  text-align: center;

  margin-bottom: 30px;

  color: #2196f3;

  font-weight: 600;

  display: flex;

  align-items: center;

  justify-content: center;

}



.form-group {

  margin-bottom: 20px;

}



.form-label {

  display: block;

  margin-bottom: 8px;

  font-weight: 600;

}



.form-input {

  width: 100%;

  padding: 12px;

  border: 2px solid #e0e0e0;

  border-radius: 8px;

  transition: all 0.3s ease;

}



.form-input:focus {

  border-color: #2196f3;

  outline: none;

  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);

}



.form-note {

  font-size: 12px;

  color: #777;

  margin-top: 5px;

}



.form-error {

  color: #f44336;

  font-size: 12px;

  margin-top: 5px;

  display: none;

}



/* Submit Button */

.submit-btn {

  background-color: #2196f3;

  color: white;

  border: none;

  border-radius: 50px;

  padding: 15px 30px;

  font-size: 16px;

  font-weight: 700;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  transition: all 0.3s ease;

  width: 100%;

  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);

}



.submit-btn:hover {

  background-color: #1976d2;

  transform: translateY(-3px);

  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);

}



/* Error Message */

.error-message {

  background-color: #ffebee;

  border-left: 4px solid #f44336;

  color: #f44336;

  padding: 10px 15px;

  border-radius: 4px;

  margin-bottom: 20px;

  display: flex;

  align-items: center;

}



.error-message i {

  margin-right: 10px;

}



.hidden {

  display: none;

}



/* Completion Screen */

.completion-container {

  width: 100%;

  padding: 30px;

  background-color: #fafafa;

  border-radius: 12px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

  text-align: center;

}



.completion-icon {

  font-size: 80px;

  color: #4caf50;

  margin-bottom: 20px;

  animation: pulse 2s infinite;

}



@keyframes pulse {

  0% {

    transform: scale(1);

    opacity: 1;

  }

  50% {

    transform: scale(1.1);

    opacity: 0.8;

  }

  100% {

    transform: scale(1);

    opacity: 1;

  }

}



.completion-message {

  font-size: 18px;

  margin-bottom: 30px;

  color: #2a2d3e;

}



.results-panel {

  background-color: #ffffff;

  border-radius: 12px;

  padding: 25px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

  width: 100%;

  text-align: left;

  border: 1px solid #e0e0e0;

}



.results-title {

  font-size: 18px;

  font-weight: 700;

  color: #2196f3;

  margin-bottom: 20px;

  padding-bottom: 10px;

  border-bottom: 1px solid #e0e0e0;

}



.company-info {

  width: 100%;

  margin-top: 40px;

  font-size: 14px;

  color: #777;

  text-align: center;

  padding: 15px;

  border-top: 1px solid #e0e0e0;

}



.container {

  max-width: 1200px;

  margin: 0 auto;

  padding: 0;

  overflow: hidden;

}



/* CSS側: 画像ラッパーとロゴの位置調整 */

.main-visual-wrapper {

  position: relative;

  display: inline-block;

  width: 100%;

}



/* Responsive Styles - スマホ表示時のみプログレスバー非表示 */

@media (max-width: 768px) {

  .page-layout {

    flex-direction: column;

    padding: 0 15px;

  }

  

  .side-progress {

    display: none !important; /* プログレスバーを完全に非表示 */

  }

  

  .form-content {

    width: 100%;

    margin: 0;

  }

  

  .content-container {

    margin: 10px 0;

  }

  

  .options-container {

    grid-template-columns: 1fr;

  }

  

  .step {

    padding: 20px;

  }

  

  .step-title {

    font-size: 20px;

  }

}



@media (max-width: 576px) {

  .page-layout {

    padding: 0 10px;

  }

  

  .step {

    padding: 15px;

  }

  .logo-container {

    width: 100%;

    text-align: center;

    position: relative;

    background-color: #108cc8;

    margin-bottom: -4px;

    top: 0;

    left: 0;

    border-radius:0;

    padding-top: 15px;

  }

  .company-logo {

    max-width: 240px;

    margin:0 auto;

  }

/* モバイル専用の最適化（縦方向のスペース削減と1行表示） */
@media (max-width: 768px) {
  /* ステップタイトルをよりコンパクトに */
  .step-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding: 0;
  }
  
  /* オプションの高さを削減し横幅いっぱいに */
  .option {
    min-height: auto;
    height: 50px;
    padding: 5px 10px;
    margin-bottom: 8px;
  }
  
  /* オプションコンテンツを水平方向に配置 */
  .option-content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }
  
  /* アイコンサイズを削減 */
  .option-icon {
    font-size: 16px;
    margin-bottom: 0;
    margin-right: 5px;
  }
  
  /* タイトルを水平方向に並べる */
  .option-title {
    font-size: 16px;
    line-height: 1;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  
  /* 「以上」テキストを横に配置 */
  .option-title span {
    font-size: 14px;
    margin-left: 2px;
  }
  
  /* オプション間のギャップを削減 */
  .options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  /* すべてのステップのパディングを削減 */
  .step {
    padding: 15px 10px;
  }
  
  /* 戻るボタンのサイズを削減 */
  .back-btn {
    padding: 8px 15px;
    margin-top: 10px;
    font-size: 14px;
  }

  /* エラーメッセージを最適化 */
  .error-message {
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 13px;
  }
  
  /* ステップ5（年齢選択）は項目が多いのでグリッドを追加 */
  #step-5 .options-container {
    display: flex;
    flex-direction: column;
  }
  
  /* 選択済みオプションのスタイル調整 */
  .option.selected {
    background-color: #e3f2fd;
  }
}

/* さらに小さい画面サイズ向けの追加最適化 */
@media (max-width: 375px) {
  .option-title {
    font-size: 15px;
  }
  
  .option {
    height: 45px;
    padding: 5px 8px;
  }
  
  .step {
    padding: 10px 8px;
  }
}


}