@charset "utf-8";
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: linear-gradient(to bottom right, #e0f7fa, #fff0f5);
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo {
  font-weight: bold;
  font-size: 18px;
}

.menu {
  font-size: 16px;
  cursor: pointer;
}

main {
  width: 80%;
  max-width: 900px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
}

h1 {
  font-size: 28px;
  border-left: 5px solid #333;
  padding-left: 10px;
  margin-bottom: 10px;
}

.description {
  color: #555;
  margin-bottom: 30px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 10px;
}

.step {
  text-align: center;
  color: #555;
}

.circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  margin-bottom: 5px;
}

.circle span {
  font-size: 18px;
  font-weight: bold;
}

.step.active .circle {
  background: #333;
  color: #fff;
}

.arrow {
  font-size: 28px;
  color: #aaa;
}

.form-group {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}

label {
  width: 200px;
  font-weight: 500;
}

.required {
  background: #e53935;
  color: #fff;
  font-size: 12px;
  border-radius: 12px;
  padding: 2px 6px;
  margin-left: 6px;
  margin-right: 10px;
}
.optional {
  background: #999;
  color: #fff;
  font-size: 12px;
  border-radius: 12px;   
  padding: 2px 6px;
  margin-left: 6px;
  margin-right: 10px;
}

input, select, textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: #333;
}
.radio-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.radio-group input[type="radio"] {
  display: none;
}

.radio-group label { 
  position:relative;
  padding-left: 24px; /* 丸と文字の間隔 */
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center; /* 縦中央揃え */
  height: 38px;
}

.radio-group label::before {
  content: '';
  position: absolute;
  left:0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #555;
  border-radius: 50%;
  background-color: #fff;
  box-sizing: border-box;
  transition: background-color 0.2s, border-color 0.2s;
}

/* 選択時 */
.radio-group input[type="radio"]:checked + label::before {
  background-color: #5a89e0;
  border-color: #5a89e0;
}

/* フォーカス時 */
.radio-group input[type="radio"]:focus + label::before {
  outline: 2px solid #888;
}


.submit-btn {
  display: block;
  margin: 40px auto 0;
  padding: 12px 40px;
  border: none;
  border-radius: 25px;
  background: #333;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

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

/* 確認画面の値を入力フォーム風にする */
.confirm-value {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  background-color: #fafafa;
  font-size: 14px;
  min-height: 38px;
  display: flex;
  align-items: center;
}



@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .logo {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .menu {
    font-size: 14px;
  }

    main {
    width: 95%;
    padding: 20px;
    box-sizing: border-box; /* はみ出し防止 */
  }


  h1 {
    font-size: 22px;
    padding-left: 8px;
  }

  .steps {
    flex-direction: row; /* 横並びに戻す */
    flex-wrap: wrap;     /* はみ出す場合は折り返す */
    justify-content: center;
    gap: 20px;
  }

  .step {
    width: 100px;
  }

  .circle {
    width: 70px;
    height: 70px;
    font-size: 9px;
    margin-left: 15px;
  }

  .circle span {
    font-size: 16px;
  }

  .required {
    margin-right: auto;
  }

  .arrow {
    display: none; /* スマホでは矢印非表示でもOK */
  }

  .radio-group{
    flex-direction: column;
    align-items: flex-start;
}
.optional {
    margin-left: 0;      
    margin-right: auto;
}
  
  .form-group {
    flex-direction: column;
;
  }

  label {
    width: 100%;
    margin-bottom: 8px;
  }

  input, select, textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .radio-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  .confirm-value {
    width: 100%;
    box-sizing: border-box;
  }
}

