/* ============================================================
   relyon-contact.css – お問い合わせページ専用スタイル
   ============================================================ */

:root {
  --c-accent: #009DE6;
  --c-accent-deep: #00489D;
  --c-text: #333333;
  --c-text-mid: #555555;
  --c-border: #E5E5E5;
}

body.page-contact {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--c-text);
}

.rct-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   セクション
   ============================================================ */
.rct-section {
  padding: 120px 0;
}

/* ============================================================
   ページタイトル
   （voice single の rvs-title と同じグラデーション文字）
   ============================================================ */
.rct-title {
  margin: 0 0 56px;
  text-align: center;
  font-family: 'Zen Old Mincho', 'Yu Mincho', serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.rct-title__text {
  /* background-clip: text 非対応環境向けのフォールバック色 */
  color: var(--c-accent-deep);
  background: linear-gradient(90deg, var(--c-accent-deep) 0%, var(--c-accent) 100%);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .rct-title__text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* ============================================================
   LINE問い合わせ枠（ページタイトル直下）
   デザインは page-singles.php の .ps-contact__btn を踏襲
   ============================================================ */
.rct-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 0 56px;
}

.rct-line__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 250px;
  padding: 10px;
  border: 1px solid var(--c-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--c-accent);
  font-weight: 700;
  line-height: 1.9;
  text-decoration: none;
  transition: background-color 0.25s ease-out, border-color 0.25s ease-out, color 0.25s ease-out;
}

.rct-line__btn-text {
  font-family: 'Zen Old Mincho', 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 14px;
  white-space: nowrap;
  color: var(--c-accent-deep);
  background: linear-gradient(90deg, var(--c-accent-deep) 0%, var(--c-accent) 100%);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .rct-line__btn-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.rct-line__btn-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-accent);
  border-radius: 50%;
  font-size: 14px;
  color: var(--c-accent);
}

.rct-line__btn:hover,
.rct-line__btn:focus-visible {
  background: linear-gradient(90deg, rgba(0, 72, 157, 0.2), rgba(0, 157, 230, 0.2));
  border-color: transparent;
}

.rct-line__btn:hover .rct-line__btn-text,
.rct-line__btn:focus-visible .rct-line__btn-text,
.rct-line__btn:hover .rct-line__btn-icon,
.rct-line__btn:focus-visible .rct-line__btn-icon {
  background: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.rct-line__btn:hover .rct-line__btn-icon,
.rct-line__btn:focus-visible .rct-line__btn-icon {
  border-color: transparent;
}

.rct-line__note {
  margin: 0;
  font-size: 14px;
  color: var(--c-text-mid);
}

/* ============================================================
   フォーム
   （管理画面で <div class="rc-form__row"> を縦に並べる。
    各行は「ラベル」+「入力欄」の2要素を横並びに配置する。）
   ============================================================ */
.page-contact .rc-form {
  margin: 0 0 32px;
}

.page-contact .rc-form__row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}

.page-contact .rc-form__row:last-child {
  margin-bottom: 0;
}

.page-contact .rc-form__row--textarea {
  align-items: flex-start;
}

.page-contact .rc-form__label {
  flex: 0 0 200px;
  font-size: 16px;
  color: var(--c-text);
  font-weight: 500;
}

.page-contact .rc-form__field {
  flex: 1 1 auto;
  min-width: 0;
}

.page-contact .rc-form__field p {
  margin: 0;
}

.page-contact .rc-form__req {
  margin-left: 4px;
  color: var(--c-accent);
  font-weight: 400;
}

/* ------------------------------------------------------------
   CF7 出力の入力欄
   ------------------------------------------------------------ */
.page-contact .wpcf7-form-control-wrap {
  display: block;
}

.page-contact input[type="text"],
.page-contact input[type="email"],
.page-contact input[type="tel"],
.page-contact textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: #F3F9FE;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: 16px;
  color: var(--c-text);
  line-height: 1.6;
  transition: border-color 0.2s ease;
}

.page-contact input[type="text"]::placeholder,
.page-contact input[type="email"]::placeholder,
.page-contact input[type="tel"]::placeholder,
.page-contact textarea::placeholder {
  color: #B8CBDA;
  font-weight: 400;
}

.page-contact input[type="text"]:focus,
.page-contact input[type="email"]:focus,
.page-contact input[type="tel"]:focus,
.page-contact textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}

.page-contact textarea {
  min-height: 200px;
  resize: vertical;
}

/* ------------------------------------------------------------
   フッター（プライバシーポリシー同意 + 送信ボタン）
   ラベル幅 + gap ぶんの左パディングを取って、入力欄の左端に揃える。
   ------------------------------------------------------------ */
.page-contact .rc-form__footer {
  padding-left: calc(200px + 32px);
  margin-top: 24px;
}

.page-contact .rc-form__agree {
  margin: 0 0 24px;
  text-align: left;
  font-size: 15px;
  color: var(--c-text);
}

.page-contact .rc-form__agree a {
  color: var(--c-accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-contact .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.page-contact .wpcf7-acceptance .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.page-contact .wpcf7-acceptance .wpcf7-list-item-label {
  display: inline;
}

.page-contact .rc-form__agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  vertical-align: middle;
  accent-color: var(--c-accent);
}

/* ============================================================
   送信ボタン
   （develop の .ps-contact__btn と同じデザインを踏襲。
    シアン単色ボーダー・透明背景・グラデ文字・右端に丸枠矢印。
    functions.php の wpcf7_form_elements フィルタで
    <input type="submit"> を <button> に置換し、
    text/icon の2要素構造に変換している。）
   ============================================================ */
.page-contact .rc-form__submit {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.page-contact .rl-form-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 250px;
  padding: 10px 10px;
  background: transparent;
  border: 1px solid var(--c-accent);
  border-radius: 999px;
  color: var(--c-accent);
  font-weight: 700;
  line-height: 1.9;
  cursor: pointer;
  transition: background-color 0.25s ease-out, border-color 0.25s ease-out, color 0.25s ease-out;
  -webkit-appearance: none;
  appearance: none;
}

.page-contact .rl-form-submit__text {
  font-family: 'Zen Old Mincho', 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 14px;
  white-space: nowrap;
  /* background-clip: text 非対応環境向けのフォールバック色 */
  color: var(--c-accent-deep);
  background: linear-gradient(90deg, var(--c-accent-deep) 0%, var(--c-accent) 100%);
}

.page-contact .rl-form-submit__icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-accent);
  border-radius: 50%;
  font-size: 14px;
  color: var(--c-accent);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .page-contact .rl-form-submit__text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* hover は develop 側 assets/css/animation.css の .btn-hover-fill セレクタ列に
   .rl-form-submit を追加してもらう前提。単体動作用にフォールバックも用意する。 */
.page-contact .rl-form-submit:hover,
.page-contact .rl-form-submit:focus-visible {
  background: linear-gradient(90deg, rgba(0, 72, 157, 0.2), rgba(0, 157, 230, 0.2));
  border-color: transparent;
  outline: none;
}

.page-contact .rl-form-submit:hover .rl-form-submit__icon,
.page-contact .rl-form-submit:focus-visible .rl-form-submit__icon {
  border-color: transparent;
}

.page-contact .rl-form-submit:hover .rl-form-submit__text,
.page-contact .rl-form-submit:focus-visible .rl-form-submit__text,
.page-contact .rl-form-submit:hover .rl-form-submit__icon,
.page-contact .rl-form-submit:focus-visible .rl-form-submit__icon {
  background: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* ============================================================
   CF7 バリデーション・状態メッセージ
   ============================================================ */
.page-contact .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #E86A5A;
  font-size: 13px;
}

.page-contact .wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

/* JS で /thanks/ に遷移するため成功メッセージは表示不要 */
.page-contact .wpcf7 form.sent .wpcf7-response-output {
  display: none;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 767px) {
  .rct-section {
    padding: 60px 0 100px;
  }

  .rct-container {
    padding: 0 20px;
  }

  .rct-title {
    margin-bottom: 32px;
    font-size: 26px;
  }

  .page-contact .rc-form__row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .page-contact .rc-form__label {
    flex: 0 0 auto;
  }

  .page-contact .rc-form__label p {
    margin: 0;
  }

  .page-contact .rc-form__footer {
    padding-left: 0;
  }

  .page-contact .rc-form__agree {
    text-align: center;
  }

  .page-contact .rc-form__submit {
    justify-content: center;
  }
}
