/* テーマCSSへの補助（既存テーマに無いお問い合わせフォーム等のみ）。配色はブランド #7d0000 に合わせる。 */
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin: 24px 0 0;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 15px;
  font-weight: bold;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #7d0000;
  border-color: #7d0000;
}
.contact-form button {
  font: inherit;
  font-weight: bold;
  color: #fff;
  background: #7d0000;
  border: 0;
  border-radius: 2px;
  padding: 12px 32px;
  cursor: pointer;
  justify-self: start;
}
.contact-form button:hover {
  background: #5e0000;
}
.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-note {
  color: #6b6b6b;
  font-size: 13px;
}

/* フッター背景をブランドのマルーンに（白文字の法令リンク。元の額縁マルーンと一体化） */
#footer {
  background: #7d0000;
}

/* 応募フォーム（CF7相当）の体裁 */
.basic-table.contact {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.basic-table.contact td {
  border: 1px solid #e0e0e0;
  padding: 12px 14px;
  vertical-align: top;
}
.basic-table.contact td.left,
.basic-table.contact td:first-child {
  width: 30%;
  background: #faf5f5;
  white-space: nowrap;
}
.basic-table.contact .required {
  color: #7d0000;
  font-size: 0.85em;
}
.recruit-form input[type='text'],
.recruit-form input[type='email'],
.recruit-form textarea {
  font: inherit;
  width: 100%;
  max-width: 360px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
}
.recruit-form textarea {
  max-width: 100%;
}
.recruit-form input:focus,
.recruit-form textarea:focus {
  outline: 2px solid #7d0000;
  border-color: #7d0000;
}
.recruit-form .agree-line {
  text-align: center;
  margin: 16px 0;
}
.recruit-form .form-buttons {
  text-align: center;
  display: flex;
  gap: 12px;
  justify-content: center;
}
/* ボタンは CF7 標準のグレー・通常太さ・コンパクト（リセット・送信とも同じ） */
.recruit-form .form-buttons button {
  font: inherit;
  font-weight: normal;
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  background: #f4f4f4;
  border: 1px solid #c9c9c9;
  color: #333;
}
.recruit-form .form-buttons button:hover {
  background: #e9e9e9;
}
.recruit-form .form-buttons button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 送信完了メッセージ（CF7 の response-output 相当: マルーン枠ボックス） */
.form-note.sent {
  display: block;
  border: 2px solid #7d0000;
  color: #252525;
  padding: 0.8em 1.2em;
  margin: 1.2em 0;
  font-size: 16px; /* テーマは html 62.5%(1rem=10px) のため px 指定 */
  line-height: 1.6;
}

/* EN お問い合わせの縦積みレイアウト */
.stacked-form .field-label {
  margin: 16px 0 4px;
}
.stacked-form input[type='text'],
.stacked-form input[type='email'],
.stacked-form textarea {
  width: 100%;
  max-width: 100%;
}

/* 個人情報取扱い同意書のスクロールボックス（元サイトのインラインCSS相当） */
.scroll-box {
  height: 200px;
  width: 100%;
  overflow-y: scroll;
  border: 1px solid #ddd;
  background-color: #f8f4f4;
  padding: 10px 14px;
  margin: 8px 0;
}
.scroll-box p {
  margin: 0 0 0.8em;
  font-size: 14px;
}

/* お知らせ詳細の日付 */
.the_content .inner article > time {
  display: block;
  color: #6b6b6b;
  margin-bottom: 1.2em;
}
