@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');
.question-items {
    margin-top: 10px;
}

input[type="text"].parent_name { 
    position: relative;
    font: 15px / 24px sans-serif;
    box-sizing: border-box;
    width: 80%;
    letter-spacing: 1px;
    border: 0;
    border-bottom: 1px solid #a7a7f9;
}

.parent-group {
    margin: 15px 0;
    border: 1px solid #666666;
    padding: 10px;
}

.question-item {
    padding: 5px 0;
}

.score {
	width: 80px;
}

input.question {
    width: 550px;
}

.result-options-wrap {
    margin-bottom: 10px;
}

/* フォーム全体 */
.survey-form {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
  /* ▼フォントを Noto Sans JP 優先に変更 */
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Helvetica Neue", Arial, "游ゴシック体",
    "YuGothic", "メイリオ", sans-serif;
  color: #111827;
}

/* カード */
.survey-card {
  width: 100%;
  max-width: 720px;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.10),
    0 1px 0 rgba(148, 163, 184, 0.4);
  box-sizing: border-box;
}

/* タイトル・説明 */
.survey-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 4px;
}

/* ▼説明文：文字サイズを少し小さく（14px → 13px） */
.survey-description {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;  /* 文字間をほんの少し広げる */
  color: #6b7280;
}

/* セクション */
.survey-section {
  margin-bottom: 24px;
}

.survey-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827;
}

/* チェック項目グループ */
.survey-question-group {
  margin-bottom: 16px;
}

.survey-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0;
  background: #f9fafb;
}

.survey-legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 4px;
  color: #111827;
}

/* チェックボックス行 */
.survey-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  cursor: pointer;
  font-size: 14px;
  color: #111827;
}

.survey-checkbox-row:hover {
  background-color: rgba(15, 23, 42, 0.03);
  border-radius: 8px;
}

.survey-checkbox {
  width: 16px;
  height: 16px;
}

/* 入力フィールド */
.survey-field {
  margin-bottom: 16px;
}

.survey-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.survey-required {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: #ef4444;
  padding: 1px 6px;
  border-radius: 999px;
  background-color: #fee2e2;
}

.survey-input-wrap {
  position: relative;
}

.survey-input,
.survey-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background-color: #f9fafb;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.survey-input:focus,
.survey-select:focus {
  outline: none;
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 区切り線 */
.survey-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 24px 0;
}

/* ボタン */
.survey-actions {
  margin-top: 8px;
  text-align: right;
}

.survey-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 10px 20px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(15, 23, 42, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.survey-submit-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.30),
    0 0 0 1px rgba(15, 23, 42, 0.45);
}

.survey-submit-button:active {
  transform: translateY(0);
  box-shadow:
    0 6px 12px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(15, 23, 42, 0.45);
}

/* 備考 */
.survey-note {
  margin-top: 8px;
  font-size: 11px;
  color: #9ca3af;
}

/* レスポンシブ */
@media (max-width: 640px) {
  .survey-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

/* ここから下は上書き系の調整 -------------------------------- */

/* 送信ボタン行の余白と罫線（※プラグイン側の .send-wrap を使う場合用） */
.survey-actions {
  margin-top: 40px;
  padding-top: 16px;
  text-align: right;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.survey-section {
  margin-bottom: 32px;
}

/* 送信ボタンブロックの位置調整（中央寄せ＆上に余白） */
form .send-wrap {
  margin-top: 40px !important;
  padding-top: 16px !important;
  text-align: center !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

form .send-wrap .send {
  display: inline-block !important;
  padding: 10px 24px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* Survey カード幅の修正 */
.survey-card {
  max-width: 640px !important;
}

/* 備考テキスト中央寄せ */
.survey-note {
  text-align: center !important;
}
/* ガス給湯器診断フォーム：送信ボタンを常に中央寄せ */
form.survey-form .survey-actions {
  text-align: center !important;   /* 右寄せの指定を上書き */
}

/* 念のためボタン自体も中央配置 */
form.survey-form .survey-actions .survey-submit-button {
  display: inline-flex;            /* すでに指定済みでもOK */
  margin-left: auto !important;
  margin-right: auto !important;
}
/* === ボタン色を青系に変更 === */
.survey-submit-button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; /* Tailwind系ブルー */
  color: #ffffff !important;
  box-shadow:
    0 10px 20px rgba(37, 99, 235, 0.25),
    0 0 0 1px rgba(37, 99, 235, 0.45) !important;
}

/* hover時（見えなくなる問題を防止） */
.survey-submit-button:hover {
  color: #ffffff !important; /* 白を維持 */
  filter: brightness(1.05);
  box-shadow:
    0 14px 28px rgba(37, 99, 235, 0.3),
    0 0 0 1px rgba(37, 99, 235, 0.5) !important;
}

/* active時 */
.survey-submit-button:active {
  filter: brightness(0.97);
  box-shadow:
    0 6px 12px rgba(37, 99, 235, 0.25),
    0 0 0 1px rgba(37, 99, 235, 0.5) !important;
}
/* ===== 二重線対策 ===== */

/* dividerを非表示に */
.survey-divider {
    display: none !important;
}

/* actionsブロックの線だけ残す */
.survey-actions {
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    padding-top: 16px !important;
    margin-top: 28px !important;
}
/* ===============================
   写真プレビュー
   =============================== */

.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.photo-preview__item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.photo-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  padding: 0;
  cursor: pointer;
}