body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 16px;
  color: #333;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#wrapper, .container {
  max-width: 1000px;   /* PCでは中央寄せ用 */
  margin: 0 auto;
  padding: 0 16px;     /* 画面端にベタ付きしないように */
  box-sizing: border-box;
}





h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.instructions {
  background: #e9fcda;
  border-left: 5px solid #0ed13f;
  border-right: 5px solid #0ed13f;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
}

.section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 18px;
}

.section-header {
  padding: 14px;
  background: #4a90e2;
  color: #fff;
  font-size: 1.1rem;
}

.section-content {
  padding: 15px;
}

.item {
  margin-bottom: 18px;
}

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.star-rating {
  display: flex;
  gap: 8px;
  font-size: 2rem;
  cursor: pointer;
}

.star-rating span {
  color: #ccc;
  transition: 0.2s;
}

.star-rating span.active {
  color: #ffb400;
}

.average-box {
  margin-top: 10px;
  padding: 10px;
  background: #eef3f8;
  border-radius: 6px;
  font-size: 1.1rem;
}

.section-note {
  width: 100%;
  min-height: 90px;
  padding: 10px;
  border-radius: 6px;
  border: 2px solid #ccc;
  font-size: 1rem;
  resize: vertical;
  margin-top: 12px;
  transition: 0.2s;
}

/* ★1〜2 の場合に赤枠で強調 */
.section-note.required {
  border-color: #e63946;
  background: #ffecec;
}

/* 結果表示ボタン（流用） */
.pdf-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #2b7cff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  margin-top: 25px;
}

.pdf-btn:hover {
  background: #1f5fcc;
}

/* スマホ最適化 */
@media (max-width: 600px) {
  h1 {
    font-size: 1.4rem;
  }

  .star-rating {
    font-size: 1.8rem;
  }
}

/* 印刷用（必要なら index でも使えるが、主に result.html 用を想定） */
@media print {

  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body {
    background: #fff !important;
    padding: 0;
    margin: 0;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  h1 {
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }

  .instructions {
    font-size: 11px !important;
    padding: 6px 10px !important;
    margin-bottom: 10px !important;
    background: #fff !important;
    border-left: 3px solid #ffb400 !important;
  }

  .section {
    margin-bottom: 10px !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
  }

  .section-header {
    padding: 6px 8px !important;
    font-size: 12px !important;
    background: #e0e0e0 !important;
    color: #000 !important;
  }

  .section-content {
    padding: 6px 8px !important;
  }

  .item {
    margin-bottom: 6px !important;
  }

  .label {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }

  .star-rating {
    font-size: 14px !important;
    gap: 3px !important;
  }

  .average-box {
    font-size: 11px !important;
    padding: 4px 6px !important;
    margin-top: 4px !important;
  }

  .section-note {
    min-height: 30px !important;
    font-size: 11px !important;
    padding: 6px !important;
    margin-top: 6px !important;
    page-break-inside: avoid !important;
  }

  .pdf-btn {
    display: none !important;
  }
}

/* index.html の備考欄見切れ防止 */
.section {
  overflow: visible !important;
}

.section-note {
  min-height: 120px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.section-content {
  padding-bottom: 20px !important;
}

.thanks-message {
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: center;
}

.title-box,
.thanks-box {
  display: flex;
  align-items: center;
  gap: 8px; /* 画像と文字の間隔 */
  margin: 10px 0;
img {
  width: 100px;
  height: auto;
}
 display: flex;
  justify-content: center; /* 横方向の中央寄せ */
  align-items: center;     /* 画像と文字の高さを揃える */
  gap: 8px;
  margin: 20px 0;

}

.title-icon,
.thanks-icon {
  width: 52px;   /* 小さめのアイコンサイズ */
  height: 52px;
  object-fit: contain;
}



#wrapper, .container {
  max-width: 1000px;   /* PCでは中央寄せ用 */
  margin: 0 auto;
  padding: 0 16px;     /* 画面端にベタ付きしないように */
  box-sizing: border-box;
}

@media (max-width: 768px) {

  /* 全体の文字と行間を少し大きめに */
  body {
    font-size: 14px;
    line-height: 1.6;
  }

  #wrapper, .container {
    max-width: 100%;
    padding: 8px 12px;
  }

  /* テーブルレイアウトを使っている場合の簡易対応 */
  table {
    width: 100%;
    border-collapse: collapse;
  }

  td, th {
    padding: 6px 4px;
    word-break: break-word;
  }

  /* もし「項目名」と「入力欄」が横並びなら縦並びにする */
  .form-row,
  .row,
  .item-line {
    display: block;
  }

  .form-row > * {
    display: block;
    width: 100% !important;
  }

  /* input / select / textarea を横幅いっぱいに */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  select,
  textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;   /* iOSのズーム防止にも */
    padding: 6px 8px;
  }

  /* ボタンを押しやすく */
  button,
  input[type="submit"],
  input[type="button"] {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
  }
}

