/* article.cssの:rootトークン（クリーム背景・赤土アクセント）をそのまま使う。
   ここではinquiry.php専用のチャット形式フォームの見た目だけを定義する。 */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--cream, #F6F1E7);
  color: var(--ink, #2B2620);
  font-family: "Noto Sans JP", sans-serif;
}
#inquiryApp {
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 24px 100px 24px;
}

.iq-header { margin-bottom: 24px; }
.iq-title {
  font-family: "Shippori Mincho", serif;
  font-size: 22px; font-weight: 700; margin-bottom: 8px;
}
.iq-remaining { font-size: 13px; color: var(--ink-soft, #5C5449); }
.iq-article-note { font-size: 12px; color: var(--ink-soft, #5C5449); margin-top: 8px; }

.iq-answered {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line, #DED2BE);
  font-size: 13px;
  animation: iqFadeIn 0.25s ease;
}
.iq-answered .q { color: var(--ink-soft, #5C5449); }
.iq-answered .a { color: var(--ink, #2B2620); font-weight: 500; text-align: right; }

.iq-current {
  margin-top: 24px;
  animation: iqPop 0.28s ease;
}
.iq-question-text {
  font-family: "Shippori Mincho", serif;
  font-size: 17px; font-weight: 700; margin-bottom: 16px; line-height: 1.6;
}
.iq-hint { font-size: 12px; color: var(--ink-soft, #5C5449); margin-bottom: 12px; }

.iq-input {
  width: 100%; padding: 13px; border: 1px solid var(--line, #DED2BE); border-radius: 3px;
  font-size: 16px; box-sizing: border-box; font-family: "Noto Sans JP", sans-serif;
  background: var(--paper, #FFFDF9); color: var(--ink, #2B2620); margin-bottom: 14px;
}
textarea.iq-input { min-height: 90px; }

.iq-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.iq-option-btn {
  width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--line, #DED2BE); border-radius: 3px;
  background: var(--paper, #FFFDF9); color: var(--ink, #2B2620); font-size: 14px; cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
}
.iq-option-btn:active { background: var(--cream, #F6F1E7); }

.iq-next-btn {
  padding: 13px 28px; border: none; border-radius: 3px;
  background: var(--rust, #B85C38); color: #FFFDF9; font-size: 15px; font-weight: 500; cursor: pointer;
}
.iq-next-btn:disabled { background: var(--line, #DED2BE); color: var(--ink-soft, #5C5449); cursor: default; }

.iq-back-btn {
  font-size: 12px; color: var(--ink-soft, #5C5449); background: none; border: none; cursor: pointer;
  padding: 0; margin-bottom: 12px; text-decoration: underline;
}

.iq-error { font-size: 13px; color: #A33B2E; margin-bottom: 12px; }

.iq-complete { text-align: center; padding: 48px 0; animation: iqFadeIn 0.3s ease; }
.iq-complete-title {
  font-family: "Shippori Mincho", serif;
  font-size: 19px; font-weight: 700; margin-bottom: 12px;
}
.iq-complete-text { font-size: 14px; color: var(--ink-soft, #5C5449); line-height: 1.8; }

@keyframes iqPop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes iqFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}