@charset "utf-8";
/* ======================================================================
 お問い合わせページ（固定ページ ID 220 / Contact Form 7 + CF7 Table）
 フォーム本体は触らず、見た目だけ整えています。
 導入文ブロック（.dct-intro）は functions.php が本文の前に差し込みます。
====================================================================== */

/* ページ上部（見出し）は pagehead.css で共通化しています */
body.page-id-220 #container { overflow-x: clip; }

/* ---------- 2カラム ---------- */
body.page-id-220 #main_content,
body.page-id-220 #main_col,
body.page-id-220 #article { width: auto; max-width: none; margin: 0; padding: 0; float: none; }
body.page-id-220 .post_content { padding: 0; margin: 0; }

.dct {
  --dct-red: #D32F2F; --dct-red-text: #B71C1C; --dct-ink: #141414; --dct-sub: #3A3A3A; --dct-ease: cubic-bezier(.19,1,.22,1);
  width: 100vw; margin-left: calc(50% - 50vw);
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic Medium', Meiryo, sans-serif; color: var(--dct-ink); line-height: 1.8;
  background: #FFFFFF;
}
.dct *, .dct *::before, .dct *::after { box-sizing: border-box; }
.dct-inner {
  max-width: 1240px; margin: 0 auto; padding: 88px 24px 120px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px 80px; align-items: start;
}

/* ---------- 導入文 ---------- */
.dct-intro { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 28px; }
.dct-intro .dct-eyebrow { margin: 0; font-family: Inter, sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .2em; color: var(--dct-red-text); line-height: 1.6; }
.dct-intro h2 { margin: 4px 0 0; padding: 0; border: 0; background: none; font-family: inherit; font-size: clamp(28px, 3vw, 40px); font-weight: 900; line-height: 1.45; color: var(--dct-ink); text-align: left; }
.dct-intro .dct-lead { margin: 0; color: var(--dct-sub); font-size: 16px; line-height: 2; }
.dct-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid #E5E5E5; }
.dct-steps li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid #E5E5E5; font-weight: 700; font-size: 15px; }
.dct-steps li span { flex: none; font-family: Inter, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .15em; color: var(--dct-red-text); }
.dct-tel { display: flex; flex-direction: column; gap: 2px; padding: 24px 28px; background: var(--dct-ink); color: #FFFFFF; border-radius: 10px; border-top: 4px solid var(--dct-red); }
.dct-tel small { font-size: 13px; color: #CFCFCF; }
.dct-tel a { font-family: Inter, sans-serif; font-weight: 800; font-size: 30px; line-height: 1.3; color: #FFFFFF !important; text-decoration: none; letter-spacing: .02em; }
.dct-tel em { font-style: normal; font-size: 12px; color: #CFCFCF; }

/* ---------- フォームのカード ---------- */
.dct-form .wpcf7 { background: #FFFFFF; border: 1px solid #ECECEC; border-radius: 14px; padding: 16px 48px 48px; box-shadow: 0 20px 48px rgba(20,20,20,.06); }
.dct-form .wpcf7 form { margin: 0; }

/* 表を縦並びに */
.dct-form .CF7_table, .dct-form .CF7_table tbody, .dct-form .CF7_table tr,
.dct-form .CF7_table th, .dct-form .CF7_table td { display: block; width: 100%; padding: 0; border: 0; background: none; }
.dct-form .CF7_table tr { padding: 26px 0; border-bottom: 1px solid #F0F0F0; }
.dct-form .CF7_table tr:last-child { border-bottom: 0; }
.dct-form .CF7_table th { padding: 0 0 10px; text-align: left; font-weight: 700; font-size: 15px; color: var(--dct-ink); }
.dct-form .CF7_table p { margin: 0; }
.dct-form .CF7_req, .dct-form .CF7_unreq {
  display: inline-block; margin-right: 10px; padding: 2px 9px; border-radius: 3px; vertical-align: 1px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.7; color: #FFFFFF; background: var(--dct-red);
}
.dct-form .CF7_unreq { background: #9A9A9A; }

/* 入力欄 */
.dct-form input[type="text"], .dct-form input[type="email"], .dct-form input[type="tel"], .dct-form textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid #D6D6D6; border-radius: 8px; background: #FAFAF8;
  font-family: inherit; font-size: 16px; color: var(--dct-ink); line-height: 1.6;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.dct-form textarea { min-height: 200px; resize: vertical; }
.dct-form ::placeholder { color: #9A9A9A; opacity: 1; }
.dct-form input[type="text"]:hover, .dct-form input[type="email"]:hover, .dct-form textarea:hover { border-color: #9A9A9A; }
.dct-form input[type="text"]:focus, .dct-form input[type="email"]:focus, .dct-form textarea:focus {
  outline: none; border-color: var(--dct-ink); background: #FFFFFF; box-shadow: 0 0 0 4px rgba(211,47,47,.15);
}

/* チェックボックスをチップ表示に */
.dct-form .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 10px; }
.dct-form .wpcf7-list-item { display: block; position: relative; margin: 0; }
.dct-form .wpcf7-list-item label { display: block; cursor: pointer; }
/* このフォームはチェックボックスを <label> で包んでいないため、
   透明なチェックボックス本体をチップ全体に重ねて、どこを押しても反応するようにする */
.dct-form .wpcf7-list-item input[type="checkbox"] {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.dct-form .wpcf7-list-item-label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1.5px solid #D6D6D6; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--dct-ink); background: #FFFFFF; transition: background-color .3s, color .3s, border-color .3s;
}
.dct-form .wpcf7-list-item:hover .wpcf7-list-item-label { border-color: var(--dct-ink); }
.dct-form .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label { box-shadow: 0 0 0 4px rgba(211,47,47,.25); }
.dct-form .wpcf7-list-item input:checked + .wpcf7-list-item-label { background: var(--dct-ink); border-color: var(--dct-ink); color: #FFFFFF; font-weight: 700; }
.dct-form .wpcf7-list-item input:checked + .wpcf7-list-item-label::before { content: "✓"; margin-right: 8px; color: #FF8A80; font-weight: 900; }

/* 送信ボタン */
.dct-form .CF7_btn { margin: 32px 0 0; text-align: center; }
/* CF7 の標準CSS（.wpcf7 input.wpcf7-submit：オレンジ）より強い指定にする */
.dct-form .wpcf7 input.wpcf7-submit {
  appearance: none; -webkit-appearance: none; cursor: pointer; width: 100%; max-width: 420px; min-height: 64px; padding: 0 40px; margin: 0 auto;
  border: 0; border-radius: 6px; background-color: var(--dct-ink); color: #FFFFFF; font-family: inherit; font-weight: 900; font-size: 17px; letter-spacing: .08em;
  transition: background-color .3s, transform .5s var(--dct-ease), box-shadow .5s var(--dct-ease);
}
.dct-form .wpcf7 input.wpcf7-submit:hover { background-color: var(--dct-red); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(211,47,47,.28); }
.dct-form .wpcf7 input.wpcf7-submit:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(211,47,47,.35); }
.dct-form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }

/* エラー・完了メッセージ */
.dct-form .wpcf7-not-valid-tip { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--dct-red-text); }
.dct-form .wpcf7-not-valid { border-color: var(--dct-red) !important; background: #FFF6F6 !important; }
.dct-form .wpcf7 form .wpcf7-response-output { margin: 28px 0 0; padding: 16px 20px; border-width: 1.5px; border-radius: 8px; font-size: 14px; line-height: 1.8; }
.dct-form .wpcf7 form.sent .wpcf7-response-output { border-color: #2E7D32; background: #F2FAF3; color: #1B5E20; }
.dct-form .wpcf7 form.invalid .wpcf7-response-output,
.dct-form .wpcf7 form.failed .wpcf7-response-output,
.dct-form .wpcf7 form.unaccepted .wpcf7-response-output { border-color: var(--dct-red); background: #FFF6F6; color: var(--dct-red-text); }

/* ---------- スマホ・タブレット ---------- */
@media (max-width: 960px) {
  .dct-inner { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 80px; gap: 40px; }
  .dct-intro { position: static; }
}
@media (max-width: 600px) {
  .dct-form .wpcf7 { padding: 4px 20px 32px; border-radius: 10px; }
  .dct-form .CF7_table tr { padding: 22px 0; }
  .dct-tel a { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .dct-form * { transition: none !important; }
}
