/* 診断ページ全体 */
.diagnosis-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: sans-serif;
}

/* 進捗バー */
.progress-wrapper {
  max-width: 800px;  /* 質問ブロックと同じ幅 */
  margin: 0 auto 20px;
  height: 16px;      /* 太くする */
  background-color: #e0e0e0;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: #0073aa;
  transition: width 0.4s ease;
  border-radius: 8px 0 0 8px;
}

.progress-text {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

/* 質問ブロック */
.question-block {
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  transition: all 0.5s ease;
	  background-color: #ffffff; /* 白ベース */
  border: 1px solid #dde1e7; /* 柔らかいグレーで立体感 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* 軽い影で浮き上がる感じ */
}

.question-block.hidden {
  display: none;
}

.question-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

/* 選択肢ヘッダー */
.choices-header {
  display: grid;
  grid-template-columns: 1fr 80px 80px; /* 文章列 + 近い列 + 遠い列 */
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 4px;
}

/* 選択肢 */
.choices {
  display: grid;
  gap: 0;
}

/* 個別選択肢行 */
.choice-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  align-items: center;
  padding: 8px;
  cursor: pointer;
}
.choice-row.bg-light { background-color: #fefefe; }
.choice-row.bg-dark { background-color: #f7f8fa; }

/* 選択肢文章 */
.choice-text {
  text-align: left;
  padding-left: 8px;
}

/* ラジオボタン */
.choice-row input[type="radio"] {
  justify-self: center; /* 中央揃え */
  width: 24px;
  height: 24px;
  accent-color: #0073aa;
  cursor: pointer;
}

/* ラベルをflexで整列 */
.choice-row label {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

/* ボタン */
.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.btn {
  padding: 10px 20px;
  border-radius: 24px;
  border: none;
  background-color: #0073aa;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #005f8d;
}

.btn.hidden {
  display: none;
}

.btn-disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* 交互背景 */
.question-block:nth-child(odd) {
  background-color: #fff;
}

.question-block:nth-child(even) {
  background-color: #f7f7f7;
}
.header-description {
  max-width: 800px; /* 診断ページと揃える */
  margin: 0 auto 24px;
  padding: 0 16px;
  text-align: left;
  font-family: sans-serif;
}

.header-description h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #0073aa;
}

.header-description p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #333;
}

.header-description .form-instructions {
  font-style: italic;
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
/* ヘッダー画像 */
.header-image-wrapper {
  width: 100%;
  max-width: 800px;  /* 質問ブロックと同じ横幅に揃える */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.header-image {
  width: 100%;       /* 横幅いっぱいに広げる */
  height: 200px;     /* 高さを適切に制限 */
  object-fit: cover; /* 画像の縦横比を保ちながら切り抜き */
  display: block;
}

body {
  background: linear-gradient(180deg, #d0e6ff 0%, #f2e6ff 100%);
  color: #222;
  font-family: 'Noto Sans JP', sans-serif;
}