/* =========================================================
   お問い合わせページ（indonesiasoken.com）
   ========================================================= */

/* ---------- 導入部 ---------- */
.ct-intro {
  --ct-main: #2f7f7f;
  --ct-light: #eef6f6;
  --ct-border: #d9e4e4;
  margin-bottom: 1em;
}
.ct-intro p { margin: 0; }
.ct-lead {
  margin-bottom: 2.5em !important;
  font-size: 1.05em;
  line-height: 2;
}
.ct-block { margin-bottom: 3em; }

/* 見出し（SWELLの見出し装飾を打ち消す） */
.ct-intro.ct-intro .ct-h2 {
  position: static;
  margin: 0 0 1.2em;
  padding: .1em 0 .1em .7em;
  border: none;
  border-left: 4px solid var(--ct-main);
  border-radius: 0;
  background: none;
  color: #222;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .05em;
}
.ct-intro.ct-intro .ct-h2::before,
.ct-intro.ct-intro .ct-h2::after {
  content: none;
  display: none;
}

/* ご相談いただける内容（カード） */
.ct-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
}
.ct-card {
  padding: 1.4em 1.3em;
  border: 1px solid var(--ct-border);
  border-top: 3px solid var(--ct-main);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.ct-card-num {
  color: var(--ct-main);
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .15em;
}
.ct-card-title {
  margin: .3em 0 .6em !important;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.5;
}
.ct-card-text {
  color: #555;
  font-size: .88em;
  line-height: 1.8;
}

/* ご連絡までの流れ */
.ct-intro.ct-intro .ct-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-intro.ct-intro .ct-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.2em 1.3em;
  border-radius: 6px;
  background: var(--ct-light);
  list-style: none;
}
.ct-intro.ct-intro .ct-steps li::before { content: none; display: none; }
.ct-intro.ct-intro .ct-steps li::marker { content: none; }
.ct-intro.ct-intro .ct-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.15em;
  border: .5em solid transparent;
  border-top-color: var(--ct-main);
  transform: translateX(-50%);
}
.ct-step-num {
  color: var(--ct-main);
  font-size: .75em;
  font-weight: 700;
  letter-spacing: .15em;
}
.ct-step-title {
  margin: .2em 0 .4em;
  font-weight: 700;
}
.ct-step-text {
  color: #555;
  font-size: .85em;
  line-height: 1.7;
}

/* 電話 */
.ct-tel {
  margin-bottom: 3em;
  padding: 1.4em;
  border: 1px solid var(--ct-border);
  border-radius: 6px;
  background: #fff;
  text-align: center;
}
.ct-tel-label { color: #555; font-size: .85em; }
.ct-tel-num {
  margin: .2em 0 !important;
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: .05em;
}
.ct-tel-num a { color: #222; text-decoration: none; }
.ct-tel-time { color: #777; font-size: .8em; }

@media screen and (min-width: 768px) {
  .ct-cards { grid-template-columns: repeat(3, 1fr); }
  .ct-intro.ct-intro .ct-steps { grid-template-columns: repeat(3, 1fr); }
  .ct-intro.ct-intro .ct-steps li:not(:last-child)::after {
    left: auto;
    right: -1.15em;
    top: 50%;
    bottom: auto;
    border-top-color: transparent;
    border-left-color: var(--ct-main);
    transform: translateY(-50%);
  }
}

/* ---------- フォーム本体 ---------- */
.cf7-form {
  --ct-main: #2f7f7f;
  --ct-light: #eef6f6;
  --ct-border: #d9e4e4;
  --ct-accent: #e03232;
  max-width: 100%;
  margin: 0;
  padding: 2em 1.2em;
  border: 1px solid var(--ct-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}
.cf7-form p { margin: 0; }
.cf7-form br { display: none; }
.cf7-form .wpcf7-form-control-wrap { display: block; }

/* セクション */
.cf7-sec { margin-bottom: 2.5em; }
.cf7-sec-title {
  display: flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 1.4em !important;
  padding-bottom: .7em;
  border-bottom: 1px solid var(--ct-border);
  color: #222;
  font-size: 1.1em;
  font-weight: 700;
}
.cf7-sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--ct-main);
  color: #fff;
  font-size: .85em;
}
.cf7-row { margin-bottom: 1.6em; }
.cf7-grid { display: grid; grid-template-columns: 1fr; gap: 0 1.5em; }

/* 項目名・必須/任意 */
.cf7-label {
  display: block;
  margin-bottom: .5em;
  font-weight: 700;
  line-height: 1.6;
}
.cf7-req,
.cf7-opt {
  display: inline-block;
  margin-left: .6em;
  padding: .1em .6em;
  border-radius: 3px;
  font-size: .72em;
  font-weight: 700;
  vertical-align: middle;
}
.cf7-req { background: var(--ct-accent); color: #fff; }
.cf7-opt { background: #e8ecec; color: #666; }

/* 入力欄 */
.cf7-form input[type="text"],
.cf7-form input[type="email"],
.cf7-form input[type="tel"],
.cf7-form select,
.cf7-form textarea {
  width: 100%;
  padding: .85em 1em;
  border: 1px solid #d5dddd;
  border-radius: 6px;
  background: #f7f9f9;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.cf7-form textarea { min-height: 200px; line-height: 1.8; }
.cf7-form input:focus,
.cf7-form select:focus,
.cf7-form textarea:focus {
  border-color: var(--ct-main);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 127, 127, .15);
}
.cf7-form ::placeholder { color: #aab3b3; }
.cf7-help {
  margin-top: .5em !important;
  color: #777;
  font-size: .82em;
}

/* お問い合わせ種別（選べるカード） */
.cf7-form .wpcf7-radio {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6em;
}
.cf7-form .wpcf7-radio .wpcf7-list-item { display: block; margin: 0; }
.cf7-form .wpcf7-radio label {
  display: flex;
  align-items: center;
  gap: .7em;
  height: 100%;
  padding: .85em 1em;
  border: 1px solid #d5dddd;
  border-radius: 6px;
  background: #f7f9f9;
  font-size: .95em;
  line-height: 1.5;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .2s, background-color .2s;
}
.cf7-form .wpcf7-radio label:hover { border-color: var(--ct-main); }
.cf7-form .wpcf7-radio label:has(input:checked) {
  border-color: var(--ct-main);
  background: var(--ct-light);
  font-weight: 700;
}
.cf7-form input[type="radio"],
.cf7-form input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  margin: 0;
  accent-color: var(--ct-main);
}

/* 同意 */
.cf7-agree {
  padding: 1.1em;
  border-radius: 6px;
  background: #f7f9f9;
  text-align: center;
}
.cf7-agree .wpcf7-list-item { margin: 0; }
.cf7-agree label { cursor: pointer; }
.cf7-agree input[type="checkbox"] { margin-right: .5em; vertical-align: -.15em; }

/* 送信ボタン */
.cf7-submit { text-align: center; }
.cf7-form .wpcf7-submit {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.1em;
  border: none;
  border-radius: 50px;
  background: var(--ct-accent);
  color: #fff;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(224, 50, 50, .25);
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.cf7-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(224, 50, 50, .3);
}
.cf7-form .wpcf7-submit:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.cf7-form .wpcf7-spinner { display: block; margin: .8em auto 0; }

.cf7-note {
  margin-top: 1.4em !important;
  color: #888;
  font-size: .8em;
  text-align: center;
}
.cf7-note br { display: inline; }

/* エラー表示・送信結果 */
.cf7-form .wpcf7-not-valid { border-color: var(--ct-accent); background: #fff6f6; }
.cf7-form .wpcf7-not-valid-tip { margin-top: .4em; font-size: .82em; }
.wpcf7 form .wpcf7-response-output {
  margin: 1.5em 0 0;
  padding: 1em;
  border-radius: 6px;
  font-size: .9em;
}

@media screen and (min-width: 768px) {
  .cf7-form { padding: 2.8em 3em; }
  .cf7-grid { grid-template-columns: 1fr 1fr; }
  .cf7-form .wpcf7-radio { grid-template-columns: 1fr 1fr; }
}
