.p-work-flow .c-section-heading {
  color: #fff;
  background-color: #3f83f8;
  padding: 50px 0;
  margin-bottom: 50px;
}

.p-work-flow .c-section-heading .l-inner {
  display: block;
}

/* =========================
   Work Flow
========================= */
.p-work-flow__list {
  margin: 0;
  padding: 0;
  list-style: none;
  margin-bottom: 100px;
}

.p-work-flow__item + .p-work-flow__item {
  margin-top: 48px;
}

.p-work-flow__title {
  margin: 0;
  font-size: clamp(1.2rem, 1.55rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.p-work-flow__text {
  margin-top: 12px;
  max-width: 760px;
}

.p-work-flow__text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: #222;
}

.p-work-flow__text p + p {
  margin-top: 2px;
}

/* =========================
   Price
========================= */

.p-price__lead {
  margin-top: 24px;
  max-width: 760px;
}

.p-price__lead p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: #222;
}

.p-price__lead p + p {
  margin-top: 2px;
}

.p-price__list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.p-price__item {
    margin-bottom: 50px;
}

.p-price__title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(1.2rem, 1.55rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.p-price__text {
  margin-top: 16px;
  max-width: 720px;
}

.p-price__text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: #222;
}

.p-price__text p + p {
  margin-top: 2px;
}

.p-price__detail {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 8px;
  margin: 24px 0 0;
}

.p-price__detail dt,
.p-price__detail dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #222;
}

.p-price__button {
  display: flex;
  justify-content: flex-end;
  align-self: end;
}

.p-price__button .c-btn {
  min-width: 160px;
  padding-inline: 20px;
  background: transparent;
  color: #222;
  border: none;
  text-align: right;
}

.p-price__button .c-btn:hover,
.p-price__button .c-btn:focus-visible {
  opacity: 0.7;
}

/* =========================
   Tablet
========================= */
@media (max-width: 1024px) {

  .p-work-flow__item + .p-work-flow__item {
    margin-top: 40px;
  }

  .p-price__list {
    margin-top: 48px;
  }

  .p-price__item + .p-price__item {
    margin-top: 48px;
  }

  .p-work-flow__text p,
  .p-price__lead p,
  .p-price__text p,
  .p-price__detail dt,
  .p-price__detail dd {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}

/* =========================
   Mobile
========================= */
@media (max-width: 767px) {

  .p-work-flow__item + .p-work-flow__item {
    margin-top: 32px;
  }

  .p-work-flow__title,
  .p-price__title {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .p-work-flow__text,
  .p-price__lead,
  .p-price__text {
    margin-top: 12px;
    max-width: 100%;
  }

  .p-work-flow__text p,
  .p-price__lead p,
  .p-price__text p,
  .p-price__detail dt,
  .p-price__detail dd {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .p-price__list {
    margin-top: 40px;
  }

  .p-price__item {
    grid-template-columns: 1fr;
    row-gap: 20px;
    padding-bottom: 32px;
  }

  .p-price__item + .p-price__item {
    margin-top: 40px;
  }

  .p-price__detail {
    margin-top: 16px;
    row-gap: 6px;
  }

  .p-price__button {
    justify-content: flex-start;
  }

  .p-price__button .c-btn {
    min-width: auto;
    padding-inline: 0;
    text-align: left;
  }
}

/* =========================
   Small Mobile
========================= */
@media (max-width: 480px) {

  .p-work-flow__title,
  .p-price__title {
    font-size: 1.25rem;
  }

  .p-work-flow__text p,
  .p-price__lead p,
  .p-price__text p,
  .p-price__detail dt,
  .p-price__detail dd {
    font-size: 0.9rem;
  }

}

/* =========================
   Contact
========================= */
.p-contact {
  padding: 96px 0 120px;
}

.p-contact .l-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  column-gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.p-contact__lead {
  max-width: 360px;
}

.p-contact__lead p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #222;
}

.p-contact__lead p + p {
  margin-top: 14px;
}

.p-contact__form {
  width: 100%;
}

/* Contact Form 7 の大枠だけ整える */
.p-contact__form .wpcf7 {
  width: 100%;
}

.p-contact__form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.p-contact__form .wpcf7-form p {
  margin: 0;
}

.p-contact__form label {
  display: block;
  font-size: 1rem;
  line-height: 1.8;
  color: #222;
}

.p-contact__form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 10px;
}

.p-contact__form input[type="text"],
.p-contact__form input[type="email"],
.p-contact__form input[type="tel"],
.p-contact__form textarea,
.p-contact__form select {
  width: 100%;
  padding: 14px 16px;
  border: none;
  background-color: #d9d9d9;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
  box-sizing: border-box;
}

.p-contact__form textarea {
  min-height: 140px;
  resize: vertical;
}

.p-contact__form input[type="submit"] {
  min-width: 180px;
  padding: 14px 24px;
  border: none;
  background-color: #3f83f8;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.p-contact__form input[type="submit"]:hover,
.p-contact__form input[type="submit"]:focus-visible {
  opacity: 0.8;
}

.p-contact__form .wpcf7-spinner {
  margin-top: 10px;
}

/* =========================
   Tablet
========================= */
@media (max-width: 1024px) {
  .p-contact {
    padding: 80px 0 96px;
  }

  .p-contact .l-inner {
    column-gap: 48px;
  }

  .p-contact__lead p,
  .p-contact__form label,
  .p-contact__form input[type="text"],
  .p-contact__form input[type="email"],
  .p-contact__form input[type="tel"],
  .p-contact__form textarea,
  .p-contact__form select,
  .p-contact__form input[type="submit"] {
    font-size: 0.95rem;
  }
}

/* =========================
   Mobile
========================= */
@media (max-width: 767px) {
  .p-contact {
    padding: 64px 0 80px;
  }

  .p-contact .l-inner {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .p-contact__lead {
    max-width: 100%;
  }

  .p-contact__lead p,
  .p-contact__form label,
  .p-contact__form input[type="text"],
  .p-contact__form input[type="email"],
  .p-contact__form input[type="tel"],
  .p-contact__form textarea,
  .p-contact__form select,
  .p-contact__form input[type="submit"] {
    font-size: 0.95rem;
  }

  .p-contact__form .wpcf7-form {
    gap: 24px;
  }

  .p-contact__form input[type="submit"] {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================
   Small Mobile
========================= */
@media (max-width: 480px) {
  .p-contact {
    padding: 56px 0 72px;
  }

  .p-contact__lead p,
  .p-contact__form label,
  .p-contact__form input[type="text"],
  .p-contact__form input[type="email"],
  .p-contact__form input[type="tel"],
  .p-contact__form textarea,
  .p-contact__form select,
  .p-contact__form input[type="submit"] {
    font-size: 0.9rem;
  }
}

.p-contact-form {
  max-width: 720px;
}

.p-contact-form__row + .p-contact-form__row {
  margin-top: 24px;
}

.p-contact-form__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  color: #222;
}

.p-contact-form__required {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #fff;
  background-color: #3f83f8;
  border-radius: 999px;
}

.p-contact-form__input,
.p-contact-form__select,
.p-contact-form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background-color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
  box-sizing: border-box;
}

.p-contact-form__textarea {
  min-height: 180px;
  resize: vertical;
}

.p-contact-form__input:focus,
.p-contact-form__select:focus,
.p-contact-form__textarea:focus {
  outline: none;
  border-color: #3f83f8;
  box-shadow: 0 0 0 3px rgba(63, 131, 248, 0.15);
}

.p-contact-form__submit {
  margin-top: 32px;
}

.p-contact-form__button {
  min-width: 220px;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  background-color: #3f83f8;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  transition: opacity 0.3s;
}

.p-contact-form__button:hover {
  opacity: 0.85;
}

/* Contact Form 7 用補正 */
.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 0.875rem;
}

.wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 8px;
}

/* レスポンシブ */
@media (max-width: 767px) {
  .p-contact-form__label,
  .p-contact-form__input,
  .p-contact-form__select,
  
  .p-contact-form__textarea,
  .p-contact-form__button {
    font-size: 0.95rem;
  }

  .p-contact-form__button {
    width: 100%;
    min-width: 0;
  }
}