/* ===== Service Contact (scoped) ===== */

.entry-title {
  display:none;
}

.service-contact {
  --sc-bg: #f5f7f8;
  --sc-card: #ffffff;
  --sc-text: #111827;
  --sc-muted: #6b7280;
  --sc-border: #d9dee5;
  --sc-primary: #2f7fb2;
  --sc-primary-hover: #276c97;
  --sc-danger: #e11d48;

  background: linear-gradient(135deg, #f7f8fa 0%, #f3f5f7 55%, #f7f8fa 100%);
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  color: var(--sc-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", Arial, sans-serif;
}

.service-contact::before,
.service-contact::after {
  content: "";
  position: absolute;
  inset: -20% -20%;
  pointer-events: none;
}

.service-contact::before {
  background:
    linear-gradient(135deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 40%,
      rgba(17, 24, 39, 0.03) 40%,
      rgba(17, 24, 39, 0.03) 52%,
      rgba(0, 0, 0, 0) 52%,
      rgba(0, 0, 0, 0) 100%);
  transform: rotate(-8deg);
}

.service-contact::after {
  background:
    radial-gradient(600px 300px at 15% 25%, rgba(47, 127, 178, 0.08), rgba(0, 0, 0, 0) 60%),
    radial-gradient(700px 380px at 80% 10%, rgba(17, 24, 39, 0.05), rgba(0, 0, 0, 0) 65%);
}

.service-contact .sc-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-contact .sc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 960px) {
  .service-contact {
    padding: 40px 0;
  }

  .service-contact .sc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== Left column ===== */
.service-contact .sc-subtitle {
  font-size: 14px;
  color: var(--sc-muted);
  letter-spacing: .02em;
  margin: 0 0 8px;
}

.service-contact .sc-title {
  font-size: 36px;
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 800;
}

@media (max-width: 520px) {
  .service-contact .sc-title {
    font-size: 28px;
  }
}

.service-contact .sc-sep {
  height: 2px;
  width: 56px;
  background: rgba(17, 24, 39, 0.2);
  border-radius: 999px;
  margin: 0 0 18px;
}

.service-contact .sc-heroimg {
  margin: 0 0 18px;
}

.service-contact .sc-heroimg img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 14px;
  margin: 60px auto 30px;
}

.service-contact .sc-textcard {
  background: var(--sc-card);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.10);
  padding: 22px 22px;
}

.service-contact .sc-textcard h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

.service-contact .sc-textcard p {
  margin: 0 0 10px;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.service-contact .sc-textcard p:last-child {
  margin-bottom: 0;
}

/* ===== Right column / form card ===== */
.service-contact .sc-formcard {
  background: var(--sc-card);
  border-radius: 22px;
  box-shadow: 0 22px 44px rgba(17, 24, 39, 0.12);
  border: 1px solid rgba(17, 24, 39, 0.06);
  padding: 22px 22px 26px;
}

.service-contact .sc-formnote {
  font-size: 13px;
  color: var(--sc-muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

/* ===== CF7 styling (scoped) ===== */
.service-contact .wpcf7 {
  margin-top: 8px;
}

.service-contact .wpcf7 form {
  margin: 0;
}

.service-contact .wpcf7 label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 14px 0 8px;
}

.service-contact .wpcf7 .--must,
.service-contact .wpcf7 .must,
.service-contact .wpcf7 .required {
  display: inline-block;
  margin: 0 0 3px 8px;
  padding: 0px 4px;
  border-radius: 3px;
  background: var(--sc-danger);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  vertical-align: middle;
}

.service-contact .wpcf7 input[type="text"],
.service-contact .wpcf7 input[type="email"],
.service-contact .wpcf7 input[type="tel"],
.service-contact .wpcf7 input[type="url"],
.service-contact .wpcf7 input[type="number"],
.service-contact .wpcf7 textarea,
.service-contact .wpcf7 select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--sc-border) !important;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.service-contact .wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

.service-contact .wpcf7 input:focus,
.service-contact .wpcf7 textarea:focus,
.service-contact .wpcf7 select:focus {
  border-color: rgba(47, 127, 178, 0.75);
  box-shadow: 0 0 0 3px rgba(47, 127, 178, 0.16);
}

.service-contact .wpcf7 .form-radio,
.service-contact .wpcf7 .wpcf7-radio {
  display: grid;
  gap: 4px;
  margin: 6px 0 2px;
}

.service-contact .wpcf7 .wpcf7-list-item {
  margin: 0;
}

.service-contact .wpcf7 input[type="radio"],
.service-contact .wpcf7 input[type="checkbox"] {
  width: 20px;
  accent-color: var(--sc-primary);
  transform: translateY(1px);
}

.service-contact .wpcf7-list-item-label {
  width: 100%;
}

.service-contact .wpcf7 .wpcf7-list-item label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  color: #111827;
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px;
}

.service-contact .wpcf7 .wpcf7-list-item label:hover {
  background: #d2eeff;
}

.service-contact .wpcf7 p {
  margin: 10px 0 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
}

.service-contact .wpcf7 a {
  color: var(--sc-primary);
  text-decoration: none;
}

.service-contact .wpcf7 a:hover {
  text-decoration: underline;
}

.service-contact .wpcf7 input[type="submit"] {
  appearance: none;
  border: 0;
  width: 240px;
  max-width: 100%;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--sc-primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
  margin-top: 18px;
}

.service-contact .wpcf7 input[type="submit"]:hover {
  background: var(--sc-primary-hover);
}

.service-contact .wpcf7 input[type="submit"]:active {
  transform: translateY(1px);
}

.service-contact .wpcf7 input[type="submit"][disabled] {
  background: #9ca3af;
  cursor: not-allowed;
}

.service-contact .wpcf7 .wpcf7-response-output {
  margin: 14px 0 0;
  border-radius: 10px;
  font-size: 13px;
}

b
 {
  color: var(--sc-primary);
}