/* お問い合わせページ全体 */
.contact-main {
  padding: 40px 0 60px;
  background: #fafafa;
}

.contact-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.contact-section {
  background: #fff;
  border-radius: 8px;
  padding: 24px 20px 32px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* 見出し */
.contact-heading {
  font-size: 1.6rem;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid #f28ab2;
}

.contact-heading span {
  font-weight: 700;
}

/* リード文 */
.contact-lead {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* フロー表示 */
.contact-flow {
  font-size: 0.9rem;
  margin-bottom: 20px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #f5f5f5;
  display: inline-block;
}

.contact-flow--input {
  border-left: 4px solid #6c9;
}

.contact-flow--confirm {
  border-left: 4px solid #69c;
}

.contact-flow--complete {
  border-left: 4px solid #c96;
}

/* テーブルレイアウト */
.contact-form-table,
.contact-confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.contact-form-table th,
.contact-form-table td,
.contact-confirm-table th,
.contact-confirm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e4e4e4;
  vertical-align: top;
  font-size: 0.95rem;
}

.contact-form-table th,
.contact-confirm-table th {
  width: 30%;
  background: #f7f7f7;
  font-weight: 600;
}

.contact-form-table td,
.contact-confirm-table td {
  width: 70%;
}

/* ラベル・必須・任意 */
.contact-label {
  display: inline-block;
  margin-right: 4px;
}

.contact-required,
.contact-optional {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 999px;
  vertical-align: middle;
}

.contact-required {
  background: #e74c3c;
  color: #fff;
}

.contact-optional {
  background: #ccc;
  color: #fff;
}

/* 入力部品 */
.contact-input-text,
.contact-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

.contact-input-text:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #f28ab2;
  box-shadow: 0 0 0 2px rgba(242, 138, 178, 0.2);
}

.contact-textarea {
  resize: vertical;
}

/* ラジオボタン */
.contact-radio-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
}

.contact-radio input[type="radio"] {
  transform: scale(1.1);
}

/* 注意書き */
.contact-note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 6px;
}

/* エラーメッセージ */
.contact-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin: 0 0 6px;
}

.contact-error--general {
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 4px;
  background: #ffe6e2;
  border: 1px solid #f5a996;
}

/* プライバシーポリシー */
.contact-privacy-block {
  margin-top: 24px;
}

.contact-privacy-heading {
  font-size: 1rem;
  margin-bottom: 8px;
  border-left: 3px solid #f28ab2;
  padding-left: 8px;
}

.contact-privacy {
  max-height: 260px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fcfcfc;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.contact-privacy ol {
  margin: 0;
  padding-left: 18px;
}

.contact-privacy li {
  margin-bottom: 8px;
}

/* 同意チェック */
.contact-agree {
  margin-top: 10px;
}

.contact-agree-label {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ボタン */
.contact-buttons {
  margin-top: 24px;
  text-align: center;
}

.contact-buttons--double {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.contact-buttons-form {
  margin: 0;
}

.contact-button {
  min-width: 220px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.contact-button--primary {
  background: #f28ab2;
  color: #fff;
}

.contact-button--secondary {
  background: #777;
  color: #fff;
}

.contact-button:hover {
  opacity: 0.9;
}

.contact-button:active {
  transform: scale(0.98);
}

/* 完了画面 */
.contact-complete-message {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 12px 0 24px;
}

.contact-to-top {
  text-align: center;
  margin-top: 16px;
}

.contact-link {
  color: #f28ab2;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 138, 178, 0.6);
}

.contact-link:hover {
  border-bottom-color: transparent;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .contact-section {
    padding: 20px 12px 26px;
  }

  .contact-form-table th,
  .contact-confirm-table th {
    width: 35%;
  }

  .contact-buttons--double {
    flex-direction: column;
  }

  .contact-button {
    width: 100%;
    max-width: 320px;
  }
}
