/* inquiry.css */

/* CSSリセット */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'BIZ UDPゴシック' !important;
}

/* ルート変数 */
:root {
  --primary-color: #3498db;
  --primary-color-dark: #2980b9;
  --secondary-color: #2ecc71;
  --text-color: #333;
  --background-color: #f7f7f7;
  --border-color: #ddd;
  /* フォント指定も上書き */
  --font-family: 'BIZ UDPゴシック' !important;
}

/* 基本スタイル */
body {
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 質問・回答ボックス */
.inquiry, .question-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.timestamp {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.9em;
  color: #777;
}

.question-content, .answer-content {
  margin-top: 10px;
  white-space: pre-wrap;
}

/* 回答ボックス */
.answer {
  background: #f9f9f9;
  border-left: 3px solid var(--secondary-color);
  padding: 15px;
  margin-top: 15px;
  position: relative;
}

/* フォーム関連 */
.answer-form {
  margin-top: 15px;
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  resize: vertical;
  font-size: 1rem;
}

button,
input[type="submit"] {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover,
input[type="submit"]:hover {
  background-color: var(--primary-color-dark);
}

/* フィルタリンク */
.filter-links a {
  margin-right: 15px;
  font-weight: bold;
}

/* メディアクエリ */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .timestamp {
    top: 10px;
    right: 10px;
  }
  
  .inquiry, .question-box {
    padding: 15px;
  }
}
