@charset "UTF-8";
/* =========================================================================
   お問い合わせ（改修版）専用スタイル  2026-09-29
   - 対象：tpl-contact.php（入力・確認）／tpl-contact-complete.php（送信完了）
   - デザイン基準：お問い合わせページ_改修デザインドラフト
   - すべて .p-contact 配下にスコープし、クラスは ct- 接頭辞（他ページへ影響させない）
   - 共通CSS（css/style.css）の meyer-reset が div・p・span 等に font-size:1.5rem を指定し、
     SP では html{font-size:1vw} になるため、ここでは rem を使わず px で指定し、要素ごとに inherit へ戻す
   - 見出しフォントは header.php の $ct_font で切り替え（:root の --ct-heading-font／--ct-heading-weight）
   ========================================================================= */

.p-contact {
  --ct-ink: #243c31;
  --ct-green: #176b43;
  --ct-green-dark: #105536;
  --ct-orange: #bd7b45;
  --ct-line: #dfe7dc;
  --ct-muted: #596c60;
  --ct-error: #b3261e;
  --ct-anchor-offset: 110px; /* PC 固定ヘッダー分 */
  display: block;
  margin: 0;
  padding: 0;
  color: var(--ct-ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  background: #fff;
  overflow-x: clip;
}

/* 共通CSSのリセット（font-size:1.5rem 等）を打ち消す */
.p-contact :where(div, span, p, h1, h2, h3, a, strong, small, b, em, label, ul, ol, li, section, form, dl, dt, dd, fieldset, legend) {
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.p-contact *,
.p-contact *::before,
.p-contact *::after {
  box-sizing: border-box;
}

.p-contact img {
  max-width: 100%;
}

.p-contact strong,
.p-contact b {
  font-weight: 700;
}

.p-contact [id] {
  scroll-margin-top: var(--ct-anchor-offset);
}

.p-contact input,
.p-contact select,
.p-contact textarea,
.p-contact button {
  font: inherit;
  letter-spacing: .02em;
}

.p-contact .ct-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.p-contact .ct-wrap {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- ヒーロー ---------- */
.p-contact .ct-hero {
  background: #f1f6ed;
  border-bottom: 1px solid #e4eddf;
  overflow: hidden;
}

.p-contact .ct-hero__inner {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  align-items: center;
  gap: 24px 40px;
  padding: 48px 0;
}

.p-contact .ct-hero__title {
  margin: 0 0 10px;
  font-family: var(--ct-heading-font, "Klee One", "Yu Mincho", serif);
  font-weight: var(--ct-heading-weight, 600);
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1.3;
  letter-spacing: .06em;
  color: #18231b;
}

.p-contact .ct-hero__en {
  margin: 0 0 22px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .34em;
  color: #2d603c;
}

.p-contact .ct-hero__sub {
  margin: 0 0 13px;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.55;
}

.p-contact .ct-hero__desc {
  max-width: 650px;
  margin: 0;
  font-size: 14px;
  color: var(--ct-muted);
}

.p-contact.is-confirm .ct-hero__desc {
  font-size: 16px;
  font-weight: 700;
  color: var(--ct-ink);
}

.p-contact .ct-hero__art {
  width: 100%;
  max-width: 400px;
  height: 285px;
  justify-self: start;
  border-radius: 26px;
  overflow: hidden;
  background: #e6f1df;
}

.p-contact .ct-hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% center;
}

/* 完了ページ */
.p-contact .ct-hero--complete .ct-hero__inner {
  min-height: 280px;
  grid-template-columns: 1fr;
  text-align: center;
}

.p-contact .ct-hero__check {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ct-green);
}

.p-contact .ct-hero__check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 26px;
  height: 14px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- フォームエリア ---------- */
.p-contact .ct-zone {
  padding: 72px 0 110px;
  background: linear-gradient(#fff 0 70%, #f7f8f3);
}

.p-contact .ct-content {
  max-width: 840px;
}

.p-contact .ct-section-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.p-contact .ct-section-lead {
  margin: 0 0 25px;
  font-size: 14px;
  color: var(--ct-muted);
}

.p-contact .ct-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #48845a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  vertical-align: .2em;
  white-space: nowrap;
}

.p-contact .ct-badge--optional {
  background: #9aa69b;
}

/* 入力画面・確認画面で出し分ける部品（部品側の display 指定より優先させるため .mw_wp_form を挟む） */
.p-contact .mw_wp_form .ct-confirm-only {
  display: none;
}

.p-contact .mw_wp_form_confirm .ct-input-only {
  display: none;
}

.p-contact .mw_wp_form_confirm .ct-confirm-only {
  display: block;
}

/* ---------- 区分カード ---------- */
.p-contact .ct-audience-block {
  margin: 0 0 46px;
}

.p-contact .ct-row.ct-row--audience {
  display: block;
  padding: 0;
}

.p-contact .ct-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.p-contact .ct-audience .mwform-radio-field {
  display: block;
  margin: 0;
}

.p-contact .ct-audience .mwform-radio-field label {
  position: relative;
  display: block;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.p-contact .ct-audience .mwform-radio-field input[type="radio"] {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

/* カード本体（ラジオの直後のラベル文字 span をカードとして使う） */
.p-contact .ct-audience .mwform-radio-field-text {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 16px;
  height: 100%;
  min-height: 94px;
  padding: 19px 20px;
  border: 2px solid var(--ct-line);
  border-radius: 16px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  transition: border-color .18s, background-color .18s, box-shadow .18s, transform .18s;
}

/* アイコン */
.p-contact .ct-audience .mwform-radio-field-text::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 36px;
  height: 36px;
  background-color: #5b9a6b;
  -webkit-mask: var(--ct-icon) center / contain no-repeat;
  mask: var(--ct-icon) center / contain no-repeat;
}

/* 補足文 */
.p-contact .ct-audience .mwform-radio-field-text::after {
  grid-column: 2;
  grid-row: 2;
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #68796c;
  word-break: keep-all; /* 「・」の位置で折り返す */
  overflow-wrap: anywhere;
}

/* 選択の目印（右側の丸）は label 側の疑似要素で描く */
.p-contact .ct-audience .mwform-radio-field label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 2px solid #c9d6c8;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  transition: border-color .18s, background-color .18s;
}

.p-contact .ct-audience .mwform-radio-field label:has(input:checked)::after {
  border-color: var(--ct-green);
  background: var(--ct-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.p-contact .ct-audience input[value="旅人の方"] + .mwform-radio-field-text {
  --ct-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M7 31l9-22 8 13 4-6 6 15H7Z'/%3E%3Ccircle cx='30' cy='9' r='3'/%3E%3C/svg%3E");
}

.p-contact .ct-audience input[value="旅人の方"] + .mwform-radio-field-text::after {
  content: "地域で働く・お手伝いについて";
}

.p-contact .ct-audience input[value="事業者の方"] + .mwform-radio-field-text {
  --ct-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 32V16l14-9 14 9v16H6Zm9 0V21h10v11M6 17h28'/%3E%3C/svg%3E");
}

.p-contact .ct-audience input[value="事業者の方"] + .mwform-radio-field-text::before {
  background-color: var(--ct-orange);
}

.p-contact .ct-audience input[value="事業者の方"] + .mwform-radio-field-text::after {
  content: "資料請求・掲載・受け入れの相談";
}

.p-contact .ct-audience input[value="自治体・学校の方"] + .mwform-radio-field-text {
  --ct-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 31h30M9 31V15l11-7 11 7v16M16 31V20h8v11M9 16h22'/%3E%3C/svg%3E");
}

.p-contact .ct-audience input[value="自治体・学校の方"] + .mwform-radio-field-text::after {
  content: "地域連携・学生連携について";
}

.p-contact .ct-audience input[value="その他"] + .mwform-radio-field-text {
  --ct-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M7 10h26v18H17l-8 5v-5H7V10Z'/%3E%3Ccircle cx='15' cy='19' r='1' fill='%23000'/%3E%3Ccircle cx='20' cy='19' r='1' fill='%23000'/%3E%3Ccircle cx='25' cy='19' r='1' fill='%23000'/%3E%3C/svg%3E");
}

.p-contact .ct-audience input[value="その他"] + .mwform-radio-field-text::after {
  content: "取材・協業などのお問い合わせ";
}

.p-contact .ct-audience label:hover .mwform-radio-field-text {
  border-color: #a7c7aa;
  transform: translateY(-2px);
}

.p-contact .ct-audience input:checked + .mwform-radio-field-text {
  border-color: var(--ct-green);
  background: #f1f8ee;
  box-shadow: 0 7px 22px #2f6b3717;
}

.p-contact .ct-audience input[value="事業者の方"]:checked + .mwform-radio-field-text {
  border-color: var(--ct-orange);
  background: #fff6ec;
}

.p-contact .ct-audience label:has(input[value="事業者の方"]:checked)::after {
  border-color: var(--ct-orange);
  background-color: var(--ct-orange);
}

.p-contact .ct-audience input:focus-visible + .mwform-radio-field-text {
  outline: 3px solid #dbac65;
  outline-offset: 3px;
}

/* ---------- 入力欄の枠 ---------- */
.p-contact .ct-shell {
  padding: 40px 48px;
  border: 1px solid #e4e9e0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 65px #2c492111;
}

.p-contact .ct-shell__title {
  margin: 0 0 5px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.5;
}

.p-contact .ct-shell__lead {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--ct-muted);
}

.p-contact .ct-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 15px 0;
}

.p-contact .ct-row__label {
  display: block;
  margin: 0;
  padding-top: 13px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.p-contact .ct-row__value {
  min-width: 0;
}

.p-contact .ct-row input[type="text"],
.p-contact .ct-row input[type="email"],
.p-contact .ct-row select,
.p-contact .ct-row textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cfd9cf;
  border-radius: 9px;
  background-color: #fff;
  color: var(--ct-ink);
  font-size: 16px;
  line-height: 1.6;
  outline: none;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}

.p-contact .ct-row select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23176b43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}

.p-contact .ct-row textarea {
  min-height: 180px;
  resize: vertical;
}

.p-contact .ct-row input:focus,
.p-contact .ct-row select:focus,
.p-contact .ct-row textarea:focus {
  border-color: var(--ct-green);
  box-shadow: 0 0 0 3px #e0f1e1;
}

/* 共通CSSが ::placeholder の色を unset !important にしているため、ここで上書き */
.p-contact .ct-row input::placeholder,
.p-contact .ct-row textarea::placeholder {
  color: #94a398 !important;
  opacity: 1;
}

.p-contact .ct-help {
  margin: 7px 0 0;
  font-size: 12px;
  color: #647568;
}

.p-contact .ct-hint {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 3px solid #6f9d70;
  border-radius: 0 8px 8px 0;
  background: #f2f7ef;
  font-size: 13px;
  line-height: 1.7;
  color: #405b45;
}

.p-contact .ct-hint__title {
  display: block;
  margin-bottom: 3px;
  color: #205a36;
}

.p-contact .ct-hint__text {
  display: block;
}

/* ---------- 同意 ---------- */
.p-contact .ct-agree {
  margin: 26px 0 28px 205px;
}

.p-contact .ct-agree__box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.7;
}

.p-contact .ct-agree .mwform-checkbox-field {
  display: block;
  flex: none;
  margin: 0;
}

.p-contact .ct-agree .mwform-checkbox-field label {
  display: block;
  margin: 0;
}

.p-contact .ct-agree input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  display: block;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ct-green);
  cursor: pointer;
}

.p-contact .ct-agree .mwform-checkbox-field-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.p-contact .ct-agree__text {
  cursor: pointer;
}

.p-contact .ct-agree a,
.p-contact .ct-back a {
  color: var(--ct-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-contact .ct-agree .error {
  margin-left: 30px;
}

/* ---------- ボタン ---------- */
.p-contact .ct-recaptcha {
  margin: 0 0 0 205px;
}

.p-contact .mw_wp_form .ct-recaptcha .error {
  margin: 0 0 14px;
}

.p-contact .ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 0 205px;
}

.p-contact .ct-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  min-height: 55px;
  margin: 0;
  padding: 15px 56px;
  border: 0;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, opacity .18s;
}

.p-contact .ct-btn--send {
  padding-right: 64px;
  background: var(--ct-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M11 5.5 15.5 10 11 14.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 26px center / 18px no-repeat;
  color: #fff;
}

.p-contact .ct-btn--send:hover {
  background-color: var(--ct-green-dark);
  opacity: 1;
}

.p-contact .ct-btn--back {
  border: 1px solid #b9c7ba;
  background: #fff;
  color: var(--ct-ink);
}

.p-contact .ct-btn--back:hover {
  border-color: var(--ct-green);
  background: #f4f8f1;
  opacity: 1;
}

.p-contact .ct-btn:focus-visible {
  outline: 3px solid #dbac65;
  outline-offset: 3px;
}

.p-contact .is-busy .ct-btn {
  opacity: .6;
  cursor: progress;
}

.p-contact .ct-after {
  margin: 12px 0 0 205px;
  font-size: 12px;
  color: #647568;
}

.p-contact .ct-back {
  margin: 0;
  padding: 45px 0 0;
  font-size: 14px;
  text-align: center;
}

.p-contact .ct-back a {
  font-weight: 700;
}

/* ---------- エラー ---------- */
.p-contact .mw_wp_form .error {
  position: relative;
  display: block;
  margin: 8px 0 0;
  padding-left: 24px;
  color: var(--ct-error);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.p-contact .mw_wp_form .error::before {
  content: "!";
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ct-error);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.p-contact .ct-row:has(.error) input[type="text"],
.p-contact .ct-row:has(.error) input[type="email"],
.p-contact .ct-row:has(.error) select,
.p-contact .ct-row:has(.error) textarea,
.p-contact .ct-row.is-error input[type="text"],
.p-contact .ct-row.is-error input[type="email"],
.p-contact .ct-row.is-error select,
.p-contact .ct-row.is-error textarea {
  border-color: #d0433a;
  background-color: #fff8f7;
}

.p-contact .ct-row:has(.error) .ct-row__label,
.p-contact .ct-row.is-error .ct-row__label {
  color: var(--ct-error);
}

.p-contact .ct-row--audience:has(.error) .mwform-radio-field-text,
.p-contact .ct-row--audience.is-error .mwform-radio-field-text {
  border-color: #eab3ad;
}

.p-contact .ct-errors {
  margin: 0 0 36px;
  padding: 18px 22px;
  border: 1px solid #f0c4bf;
  border-left: 5px solid var(--ct-error);
  border-radius: 10px;
  background: #fff4f2;
  color: #5c1c17;
  font-size: 14px;
}

.p-contact .ct-errors:focus {
  outline: none;
}

.p-contact .ct-errors__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ct-error);
}

.p-contact .ct-errors__text {
  margin: 0;
}

.p-contact .ct-errors__list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.p-contact .ct-errors__list li {
  position: relative;
  padding-left: 16px;
}

.p-contact .ct-errors__list li::before {
  content: "";
  position: absolute;
  top: .8em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ct-error);
}

.p-contact .ct-errors__list a {
  color: var(--ct-error);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 確認画面 ---------- */
.p-contact .mw_wp_form_confirm .ct-form {
  padding: 40px 48px;
  border: 1px solid #e4e9e0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 65px #2c492111;
}

.p-contact .mw_wp_form_confirm .ct-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.p-contact .mw_wp_form_confirm .ct-audience-block {
  margin: 0;
}

.p-contact .mw_wp_form_confirm .ct-row,
.p-contact .mw_wp_form_confirm .ct-row--audience {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #e8ede5;
}

.p-contact .mw_wp_form_confirm .ct-row--audience {
  border-top: 1px solid #e8ede5;
}

.p-contact .mw_wp_form_confirm .ct-row__label {
  padding-top: 0;
  color: var(--ct-muted);
}

.p-contact .mw_wp_form_confirm .ct-badge {
  display: none;
}

.p-contact .mw_wp_form_confirm .ct-row__value,
.p-contact .mw_wp_form_confirm .ct-audience {
  display: block;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.p-contact .mw_wp_form_confirm .ct-actions {
  justify-content: center;
  margin: 36px 0 0;
}

.p-contact .mw_wp_form_confirm .ct-btn--back {
  padding-inline: 44px;
}

.p-contact .mw_wp_form_confirm .ct-after {
  margin: 14px 0 0;
  text-align: center;
}

/* ---------- 送信完了 ---------- */
.p-contact .ct-done {
  padding: 44px 48px;
  border: 1px solid #e4e9e0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 65px #2c492111;
  text-align: center;
}

.p-contact .ct-done p {
  margin: 0 0 8px;
}

.p-contact .ct-done__lead {
  font-size: 20px;
  font-weight: 700;
}

.p-contact .ct-done__note {
  max-width: 600px;
  margin: 28px auto 0;
  padding: 16px 20px;
  border-left: 3px solid #6f9d70;
  border-radius: 0 8px 8px 0;
  background: #f2f7ef;
  font-size: 14px;
  line-height: 1.7;
  color: #405b45;
  text-align: left;
}

.p-contact .ct-done__note p {
  margin: 0;
}

.p-contact .ct-done__note .ct-done__note-title {
  margin-bottom: 3px;
  font-weight: 700;
  color: #205a36;
}

.p-contact .ct-done__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.p-contact .ct-link-btn {
  display: inline-block;
  min-width: 220px;
  padding: 14px 32px;
  border: 1px solid var(--ct-green);
  border-radius: 9px;
  background: var(--ct-green);
  color: #fff;
  font-weight: 700;
  text-align: center;
  transition: background-color .18s, color .18s;
}

.p-contact .ct-link-btn:hover {
  background: var(--ct-green-dark);
  opacity: 1;
}

.p-contact .ct-link-btn--sub {
  background: #fff;
  color: var(--ct-green);
}

.p-contact .ct-link-btn--sub:hover {
  background: #f1f8ee;
}

/* ---------- reCAPTCHA バッジ（functions.php の /contact/ 用と同じ動き：通常は収納、ホバーで展開、スクロールで非表示） ---------- */
.grecaptcha-badge {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  position: fixed !important;
  bottom: 14px !important;
  right: -186px !important;
  z-index: 999999 !important;
  transition: right .3s ease, opacity .35s ease !important;
}

.grecaptcha-badge:hover {
  right: 14px !important;
}

body.recaptcha-badge-scrolled .grecaptcha-badge {
  right: -186px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: right .3s ease, opacity .35s ease, visibility 0s linear .35s !important;
}

/* ---------- PC・タブレットの横幅（2026-09-30 追加：フォーム部分を 840px → 960px に拡大） ----------
   - 見出し部分・区分カード・入力欄の枠・エラーの一覧・確認画面・完了ページの左右の端を、すべて同じ幅（--ct-content-w）にそろえる
   - 項目名の列は --ct-label-w。同意欄・ボタンの左位置はここから計算する
   - スマホ（768px 以下）には効かない。変更前の指定（840px 等）は上に残してあり、この範囲で上書きしている */
@media (min-width: 769px) {
  .p-contact {
    --ct-content-w: 960px;
    --ct-label-w: 200px;
    --ct-col-gap: 16px;
    --ct-shell-px: 56px;
  }

  /* 見出し部分もフォームと同じ幅にし、左右の端をそろえる（変更前：1080px） */
  .p-contact .ct-hero .ct-wrap {
    width: min(var(--ct-content-w), calc(100% - 40px));
  }

  .p-contact .ct-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px 48px;
  }

  .p-contact .ct-hero__art {
    max-width: 420px;
    height: 300px;
    justify-self: end;
  }

  /* 説明文は句読点の位置で折り返す（「大丈夫／です。」のように数文字だけ次の行に残るのを防ぐ） */
  .p-contact .ct-hero__desc {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  /* フォーム部分（変更前：840px） */
  .p-contact .ct-wrap.ct-content {
    max-width: var(--ct-content-w);
  }

  /* 区分カード */
  .p-contact .ct-audience {
    gap: 16px;
  }

  .p-contact .ct-audience .mwform-radio-field-text {
    min-height: 100px;
    padding: 20px 24px;
    column-gap: 18px;
  }

  .p-contact .ct-audience .mwform-radio-field-text::after {
    font-size: 13px;
  }

  .p-contact .ct-audience .mwform-radio-field label::after {
    right: 24px;
  }

  /* 入力欄の枠 */
  .p-contact .ct-shell {
    padding: 48px var(--ct-shell-px);
  }

  .p-contact .ct-row {
    grid-template-columns: var(--ct-label-w) minmax(0, 1fr);
    gap: var(--ct-col-gap);
  }

  /* 1行で足りる項目は長くなりすぎないよう上限を設ける（お問い合わせ内容・ヒントは枠いっぱい） */
  .p-contact .ct-row #ct-purpose,
  .p-contact .ct-row #ct-comname,
  .p-contact .ct-row #ct-uname,
  .p-contact .ct-row #ct-mail {
    max-width: 520px;
  }

  .p-contact .ct-agree,
  .p-contact .ct-recaptcha {
    margin-left: calc(var(--ct-label-w) + var(--ct-col-gap));
  }

  /* 2026-09-30「入力内容を確認する」ボタンと下の案内文は、白い枠の横幅に対して中央にそろえる（同意欄は入力欄の左端のまま） */
  .p-contact .ct-actions {
    justify-content: center;
    margin-left: 0;
  }

  .p-contact .ct-after {
    margin-left: 0;
    text-align: center;
  }

  /* ボタン */
  .p-contact .ct-btn {
    min-height: 58px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .p-contact .ct-btn--send {
    min-width: 300px;
  }

  /* エラーの一覧 */
  .p-contact .ct-errors {
    padding: 20px 26px;
  }

  /* 確認画面 */
  .p-contact .mw_wp_form_confirm .ct-form {
    padding: 48px var(--ct-shell-px);
  }

  .p-contact .mw_wp_form_confirm .ct-row,
  .p-contact .mw_wp_form_confirm .ct-row--audience {
    grid-template-columns: var(--ct-label-w) minmax(0, 1fr);
    gap: var(--ct-col-gap);
  }

  .p-contact .mw_wp_form_confirm .ct-btn--back {
    min-width: 200px;
  }

  .p-contact .mw_wp_form_confirm .ct-btn--send {
    min-width: 280px;
  }

  /* 送信完了 */
  .p-contact .ct-done {
    padding: 52px var(--ct-shell-px);
  }

  .p-contact .ct-done__note {
    max-width: 640px;
  }
}

/* タブレット（769〜1024px）：枠の内側の余白と項目名の列を少し詰める */
@media (min-width: 769px) and (max-width: 1024px) {
  .p-contact {
    --ct-label-w: 170px;
    --ct-shell-px: 32px;
  }

  .p-contact .ct-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 24px 32px;
  }

  .p-contact .ct-hero__art {
    height: 260px;
  }

  .p-contact .ct-shell {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* 入力欄の列が狭いので、1行の項目も枠いっぱいにする（お問い合わせ内容の枠と右端をそろえる） */
  .p-contact .ct-row #ct-purpose,
  .p-contact .ct-row #ct-comname,
  .p-contact .ct-row #ct-uname,
  .p-contact .ct-row #ct-mail {
    max-width: none;
  }
}

/* ---------- SP（共通CSSのヘッダー切り替えと同じ 768px） ---------- */
@media (max-width: 768px) {
  .p-contact {
    --ct-anchor-offset: 80px;
  }

  .p-contact .ct-hero__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 92px 0 42px; /* 上：浮いているSPヘッダー（ロゴ）分 */
  }

  .p-contact .ct-hero__title {
    font-size: clamp(38px, 11vw, 48px);
  }

  .p-contact .ct-hero__sub {
    font-size: 19px;
  }

  .p-contact .ct-hero__art {
    width: min(100%, 400px);
    height: 230px;
    margin: 22px 0 0;
    border-radius: 22px;
  }

  .p-contact .ct-hero__art img {
    object-position: 43% center;
  }

  .p-contact .ct-hero--complete .ct-hero__inner {
    min-height: 0;
  }

  /* 確認画面では画像を省き、入力内容の一覧をすぐ見られるようにする */
  .p-contact.is-confirm .ct-hero__art {
    display: none;
  }

  .p-contact .ct-zone {
    padding: 45px 0 75px;
  }

  .p-contact .ct-section-title {
    font-size: 21px;
  }

  .p-contact .ct-audience-block {
    margin-bottom: 35px;
  }

  .p-contact .ct-audience {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .p-contact .ct-audience .mwform-radio-field-text {
    min-height: 76px;
    padding: 12px 15px;
    column-gap: 14px;
  }

  .p-contact .ct-audience .mwform-radio-field label::after {
    right: 15px;
  }

  .p-contact .ct-shell {
    padding: 28px 20px;
  }

  .p-contact .ct-shell__title {
    font-size: 20px;
  }

  .p-contact .ct-row {
    display: block;
    padding: 10px 0;
  }

  .p-contact .ct-row__label {
    padding: 0 0 8px;
  }

  .p-contact .ct-agree,
  .p-contact .ct-recaptcha,
  .p-contact .ct-actions,
  .p-contact .ct-after {
    margin-left: 0;
  }

  .p-contact .ct-btn {
    width: 100%;
    padding-inline: 20px;
  }

  .p-contact .ct-btn--send {
    padding-right: 20px;
    background-position: right 20px center;
  }

  .p-contact .ct-errors {
    padding: 16px 16px 16px 18px;
  }

  /* 確認画面：項目名を上、内容を下に */
  .p-contact .mw_wp_form_confirm .ct-form {
    padding: 24px 20px;
  }

  .p-contact .mw_wp_form_confirm .ct-row,
  .p-contact .mw_wp_form_confirm .ct-row--audience {
    display: block;
    padding: 14px 0;
  }

  .p-contact .mw_wp_form_confirm .ct-row__label {
    padding: 0 0 2px;
    font-size: 13px;
  }

  .p-contact .mw_wp_form_confirm .ct-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .p-contact .mw_wp_form_confirm .ct-btn--back {
    padding-inline: 20px;
  }

  .p-contact .ct-done {
    padding: 32px 20px;
  }

  .p-contact .ct-done__lead {
    font-size: 18px;
  }

  .p-contact .ct-hero--complete .ct-hero__title {
    font-size: clamp(28px, 8.6vw, 40px); /* 「送信が完了しました」を1行に収める */
  }

  .p-contact .ct-done > p {
    word-break: keep-all; /* 読点の位置で折り返す */
    overflow-wrap: anywhere;
  }

  .p-contact .ct-link-btn {
    width: 100%;
  }

  .p-contact .ct-done__links li {
    width: 100%;
  }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  .p-contact *,
  .p-contact *::before,
  .p-contact *::after {
    transition: none !important;
  }

  .p-contact .ct-audience label:hover .mwform-radio-field-text {
    transform: none;
  }

  .grecaptcha-badge {
    transition: none !important;
  }
}
