form#companySurveyForm {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 32px 24px;
  border-radius: 16px;
  font-family: "Helvetica Neue", "Hiragino Sans", "游ゴシック", sans-serif;
  color: #333;
  border: solid #ddd 1px;
}

.survey-section {
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 1px solid #bbb;
}

.survey-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.survey-section h2,
.survey-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2a3f73;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

/* ラジオボタン縦並び */
.radio-vertical label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
}
.radio-vertical input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.1);
}

/* 評価テーブル */
.rating-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  margin-bottom: 10px;
}
.rating-table th,
.rating-table td {
  border: 1px solid #ccc;
  text-align: center;
  padding: 10px 8px;
  font-size: 15px;
}
.rating-table th {
  background-color: #f0f4ff;
  font-weight: 600;
}
.rating-table td input[type="radio"] {
  transform: scale(1.2);
}

/* アコーディオン */
.accordion-item {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d6d9e0;
  background: #f9f9ff;
}
.accordion-btn {
  width: 100%;
  text-align: left;
  background: #edf2ff;
  border: none;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 600;
  color: #24346b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.25s;
}
.accordion-btn:hover {
  background: #e2ebff;
}
.accordion-btn.active {
  background: #d2e0ff;
  border-bottom: 1px solid #c5d4f2;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 8px;
}
.accordion-btn.active + .accordion-content {
  padding: 0 8px 8px 8pxpx;
}
.photo-center {
  text-align: center;
}
.inst-photo {
  max-width: 160px;
  height: auto;
  border-radius: 8px;
  margin: 10px auto 15px;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.furigana {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin-left: 8px;
}

/* テキストエリア */
textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}

/* 送信ボタン */
.csaf-submit {
  background: #2a3f73;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 30px auto 0;
  transition: all 0.3s ease;
}
.csaf-submit:hover {
  background: #415da7;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* スマホ対応 */
@media (max-width: 600px) {
  .survey-section h2, .survey-section h3 {
    font-size: 20px;
  }
  .rating-table th, .rating-table td {
    font-size: 16px;
    padding: 6px 6px;
  }
  .accordion-btn {
    font-size: 16px;
    padding: 10px 12px;
  }
}

/* ===============================
   アコーディオン右側の「開く／閉じる」
================================ */
.accordion-label {
  font-size: 14px;
  font-weight: 500;
  color: #1e40af;
  margin-left: auto;
  transition: color 0.2s;
}

.accordion-btn:hover .accordion-label {
  color: #0d2e8b;
}

.accordion-btn.active .accordion-label {
  color: #0f3c6b;
}
/* ===============================
   評価テーブル（中央揃え対応）
================================ */
.rating-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  margin-bottom: 10px;
}

.rating-table th,
.rating-table td {
  border: 1px solid #ccc;
  text-align: center;
  vertical-align: middle; /* ← 縦方向中央揃え */
  padding: 8px 4px;
  font-size: 15px;
  line-height: 1.6;
}

.rating-table th {
  background-color: #f0f4ff;
  font-weight: 600;
}

.rating-table td input[type="radio"] {
  transform: scale(1.2);
  margin: auto;
  display: block;
}

/* ===============================
   アコーディオン
================================ */
.accordion-item {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d6d9e0;
  background: #f9f9ff;
}

.accordion-btn {
  width: 100%;
  text-align: left;
  background: #edf2ff;
  border: none;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 600;
  color: #24346b;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.25s;
}

.accordion-btn:hover {
  background: #e2ebff;
}

.accordion-btn.active {
  background: #d2e0ff;
  border-bottom: 1px solid #c5d4f2;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 15px;
}

.accordion-btn.active + .accordion-content {
  padding: 20px 0;
}

.accordion-content.open {
  max-height: 2000px; /* fallback */
}

/* ===============================
   アコーディオン右側の「開く／閉じる」
================================ */
.accordion-label {
  font-size: 14px;
  font-weight: 500;
  color: #1e40af;
  margin-left: auto;
  transition: color 0.2s;
}

.accordion-btn:hover .accordion-label {
  color: #0d2e8b;
}

.accordion-btn.active .accordion-label {
  color: #0f3c6b;
}



/* ===============================
   スタッフ写真（中央揃え）
================================ */
.inst-photo {
  display: block;
  max-width: 180px;
  height: auto;
  margin: 15px auto 20px; /* ← 中央寄せ */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===============================
   セクション説明文
================================ */
.section-description {
  font-size: 15px;
  color: #555;
  margin: 8px 0 15px;
  line-height: 1.6;
  padding-left: 4px;
}

/* ===============================
   縦並びラジオボタン
================================ */
.radio-vertical label {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.5;
  cursor: pointer;
}

.radio-vertical input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.1);
}

/* ===============================
   テキストエリア
================================ */
textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}

/* ===============================
   送信ボタン
================================ */
.csaf-submit {
  background: #2a3f73;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 24px 36px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 30px auto 0;
  transition: all 0.3s ease;
}

.csaf-submit:hover {
  background: #415da7;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 送信ボタンの共通スタイル（広げる設定も含む） */
.csaf-submit {
  width: 100%; /* 幅を100%に指定 */
  box-sizing: border-box; 
  padding: 15px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

/* 必須項目が未入力時のスタイル (初期状態) */
.csaf-submit:disabled {
  background-color: #cccccc; /* グレー */
  color: #666666;
	padding-bottom: 8px;
  cursor: not-allowed;
}

/* 必須項目がすべて入力された後のスタイル (有効状態) */
.csaf-submit:not(:disabled) {
  background-color: #007bff; /* 青色 */
  color: white;
  padding-bottom: 8px;
}