/**
 * Contact Pages Styles
 * - page-contact.php (基本お問い合わせ)
 * - page-contact-system.php (システム導入相談)
 * - page-contact-recruit.php (採用応募フォーム)
 *
 * セクション構成:
 * - section6: メインコンテナ
 * - contact-basic: 基本お問い合わせ
 * - contact-system: システム導入相談
 * - contact-recruit: 採用応募フォーム
 * - Contact Form 7 スタイル
 */

/* =====================================
   Contact Form 7 共通スタイル
===================================== */

/* Contact Form 7 の p タグのマージンを 0 に設定 */
.wpcf7-form p {
  margin: 0 !important;
}

/* Contact Form 7 の span必須のデザイン */
.contactform7-span {
  display: inline-block;
  background-color: #cf0d37;
  padding: 2px 4px;
  margin-bottom: 4px;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
}

/* Contact Form7のoutputのCSSをリセット */
.wpcf7-response-output {
  margin: 0 !important;
  padding-bottom: 12px !important;
  border: none !important;
  color: red;
}

.section6 .wpcf7-submit,
.contactform7-button {
  cursor: pointer;
  background-color: #000 !important;
  border: none !important;
  color: #fff !important;
  font-size: 16px !important;
  letter-spacing: 0.5em !important;
  padding: 12px 48px !important;
  transition: opacity 0.3s ease !important;
  width: auto !important;
  min-width: 240px !important;
  margin: 24px auto !important;
  display: block !important;
}

.section6 .wpcf7-submit:hover,
.contactform7-button:hover {
  background-color: #333 !important;
  opacity: 0.9;
}

/* =====================================
   Section6: メインコンテナ
===================================== */
.section6 {
  position: relative;
  background-color: #f7f7f7;
  border: none;
}

.section6--contact,
.section6--contact-system,
.section6--contact-recruit {
  margin-top: 50px;
}

.section6 .section6-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 150px;
  font-size: 20px;
  text-align: center;
  color: #000;
  padding: 0 14px;
}

.section6 .section6-title h2 {
  margin: 0;
  letter-spacing: 0.5em;
}

.section6 .section6-title .section6-title-p {
  margin: 0 auto;
  margin-top: 10px;
  font-size: 14px;
}

.section6 .container {
  text-align: center;
  color: #000;
}

/* =====================================
   Contact Basic (基本お問い合わせ)
===================================== */
.section6 .contact-basic .contact-basic-from-title {
  background-color: #000;
  padding: 8px;
}

.section6 .contact-basic .contact-basic-from-title .contact-basic-from-title-text {
  color: #fff;
  font-size: 1em;
  margin: 0;
}

.section6 .contact-basic .text {
  font-size: 0.8em;
}

/* =====================================
   Contact System (システム導入相談)
===================================== */
.contact-system .contact-system-from-title {
  background-color: #000;
  padding: 8px;
}

.contact-system .contact-system-from-title .contact-system-from-title-text {
  color: #fff;
  font-size: 1em;
  margin: 0;
}

.contact-system .text {
  font-size: 0.8em;
  margin-top: 12px;
}

/* =====================================
   Contact Recruit (採用応募フォーム)
===================================== */
.contact-recruit .contact-recruit-from-title {
  background-color: #000;
  padding: 8px;
}

.contact-recruit .contact-recruit-from-title .contact-recruit-from-title-text {
  color: #fff;
  font-size: 1em;
  margin: 0;
}

.contact-recruit .text {
  font-size: 1em;
  margin-top: 12px;
  margin-bottom: 16px;
}

/* フォーム選択ボタン */
.contact-recruit .form-selector {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-recruit .form-select-btn {
  padding: 12px 20px;
  background-color: #b9b9b8;
  color: #16161a;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  width: auto;
}

.contact-recruit .form-select-btn.active {
  background-color: #cf0d37 !important;
  color: #fff;
}

.contact-recruit .form-select-btn:hover {
  opacity: 0.9;
}

/* フォームコンテナ */
.contact-recruit .form-container {
  display: none;
  margin-top: 20px;
}

.contact-recruit .form-container.active {
  display: block;
}

/* =====================================
   Form Elements (フォーム要素)
===================================== */
form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  text-align: left;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

form button {
  width: 30%;
  padding: 10px;
  background-color: #b9b9b8;
  color: #16161a;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
