/* ==========================================================
   無料ホームページ案ヒアリングフォーム
   ========================================================== */

/* 親テーマのnormalize.css（section等をdisplay:blockに強制）に
   [hidden]属性が上書きされてしまうため、明示的に無効化する */
.hearing-page [hidden] {
  display: none !important;
}

.hearing-page {
  background: var(--bg-color01, #e9f3ff);
  padding: 0 0 100px;
}

.hearing-page .inner {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- Hero --- */
.hearing-hero {
  background: linear-gradient(135deg, #2350d2 0%, #4f8ff0 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}

.hearing-page .hearing-hero-inner {
  max-width: 1080px;
  display: flex;
  align-items: center;
  gap: 48px;
  text-align: left;
}

.hearing-hero-text {
  flex: 1 1 0;
}

.hearing-hero-image {
  flex: 1 1 0;
}

.hearing-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hearing-hero-eyebrow {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 16px;
}

.hearing-hero-lead {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.92;
  margin: 0;
}

@media screen and (max-width: 900px) {
  .hearing-page .hearing-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hearing-hero-text,
  .hearing-hero-image {
    flex: none;
    width: 100%;
  }
}

/* --- Box --- */
.hearing-box {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(35, 80, 210, 0.12);
  padding: 40px;
  box-sizing: border-box;
  margin: 0 auto;
}

.hearing-wrap,
.hearing-confirm-wrap,
.hearing-thanks-wrap {
  padding: 40px 0 0;
}

/* --- Progress bar --- */
.hearing-progress {
  margin: 0 0 24px;
}

.hearing-progress-label {
  font-size: 13px;
  font-weight: bold;
  color: #2350d2;
  margin: 0 0 8px;
}

.hearing-progress-bar {
  width: 100%;
  height: 8px;
  background: #dde6f7;
  border-radius: 999px;
  overflow: hidden;
}

.hearing-progress-bar-inner {
  height: 100%;
  width: 10%;
  background: linear-gradient(to right, #2350d2, #5374d4);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* --- Question --- */
.hearing-step {
  animation: hearingFadeIn 0.25s ease;
}

@keyframes hearingFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hearing-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2350d2;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  margin: 0 0 12px;
}

.hearing-q-title {
  font-size: 17px;
  font-weight: bold;
  color: #333;
  line-height: 1.6;
  margin: 0 0 20px;
}

.hearing-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  color: #e24a37;
  border: 1px solid #e24a37;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 10px;
  vertical-align: middle;
}

.hearing-tag-optional {
  color: #999;
  border-color: #999;
}

/* --- Chip choices (checkbox) --- */
.hearing-choice-group.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hearing-choice-group .wpcf7-list-item {
  margin: 0;
}

.hearing-choice-group .hearing-choice-item {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1.5px solid #d8dfef;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hearing-choice-group .hearing-choice-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hearing-choice-group .hearing-choice-item.is-checked {
  background: #2350d2;
  border-color: #2350d2;
  color: #fff;
  font-weight: bold;
}

.hearing-choice-group .hearing-choice-item.is-checked .wpcf7-list-item-label {
  color: #fff;
}

/* --- Radio cards --- */
.hearing-choice-group.wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hearing-choice-group.wpcf7-radio .hearing-choice-item {
  display: block;
  width: 100%;
  border-radius: 10px;
  padding: 16px 20px;
  font-weight: bold;
}

.hearing-choice-group.wpcf7-radio .hearing-choice-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: normal;
  color: #777;
}

.hearing-choice-group.wpcf7-radio .is-checked .hearing-choice-desc {
  color: #eaf0ff;
}

/* --- Text / textarea / url fields --- */
.hearing-step input[type="text"],
.hearing-step input[type="url"],
.hearing-step textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d8dfef;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  background: #f9fafd;
}

.hearing-step input[type="text"]:focus,
.hearing-step input[type="url"]:focus,
.hearing-step textarea:focus {
  outline: none;
  border-color: #2350d2;
  background: #fff;
}

.hearing-step textarea {
  min-height: 100px;
  resize: vertical;
}

/* --- Error --- */
.hearing-error {
  color: #e24a37;
  font-size: 13px;
  font-weight: bold;
  margin: 12px 0 0;
}

/* --- Nav buttons --- */
.hearing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.hearing-btn {
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 999px;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.hearing-btn-next {
  margin-left: auto;
  padding: 14px 40px;
  background: linear-gradient(to right, #2350d2, #5374d4);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(35, 80, 210, 0.35);
}

.hearing-btn-next:hover {
  opacity: 0.9;
}

.hearing-btn-back {
  padding: 12px 24px;
  background: transparent;
  color: #777;
  font-size: 14px;
}

.hearing-btn-back:hover {
  color: #333;
}

/* --- Submit (step10 / final) --- */
.hearing-form-outer .wpcf7-submit,
.hearing-submit-row input[type="submit"] {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 340px;
  height: 60px;
  margin: 32px auto 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(to right, #d94545 0%, #a00202 100%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 16px rgba(160, 2, 2, 0.3);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.hearing-form-outer .wpcf7-submit:hover {
  opacity: 0.9;
}

.hearing-form-outer .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

.hearing-form-outer .wpcf7-not-valid-tip {
  font-size: 13px;
  margin-top: 6px;
}

.hearing-form-outer .wpcf7-response-output {
  margin-top: 20px;
  border-radius: 8px;
  font-size: 14px;
}

/* --- Confirm screen --- */
.hearing-confirm-head {
  text-align: center;
  margin: 0 0 30px;
}

.hearing-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e9f3ff;
  color: #2350d2;
  font-size: 26px;
  margin: 0 0 14px;
}

.hearing-confirm-head h2 {
  font-size: 22px;
  font-weight: bold;
  color: #2350d2;
  margin: 0;
}

.hearing-confirm-title {
  font-weight: bold;
  color: #333;
  font-size: 15px;
  margin: 0 0 20px;
}

.hearing-confirm-title a {
  color: #2350d2;
  font-weight: normal;
  font-size: 13px;
  margin-left: 8px;
}

.hearing-confirm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
}

.hearing-confirm-item-label {
  font-size: 12px;
  color: #888;
  margin: 0 0 4px;
}

.hearing-confirm-item-value {
  font-size: 14px;
  color: #333;
  font-weight: bold;
  word-break: break-word;
}

.hearing-confirm-figure {
  max-width: 480px;
  margin: 40px auto 0;
}

.hearing-confirm-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.hearing-confirm-note {
  text-align: center;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  margin: 20px 0 30px;
}

.hearing-confirm-cta {
  text-align: center;
  font-size: 19px;
  font-weight: bold;
  color: #2350d2;
  border-top: 2px solid #2350d2;
  border-bottom: 2px solid #2350d2;
  padding: 16px 0;
  margin: 0 0 30px;
}

.hearing-options {
  margin: 0 0 24px;
}

.hearing-options-lead {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px;
}

.hearing-options .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hearing-options .wpcf7-list-item {
  margin: 0;
}

.hearing-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.hearing-contact-grid .field_wrap {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.hearing-contact-grid .field_name {
  width: auto;
  padding-top: 0;
  padding-right: 0;
}

.hearing-contact-grid div.field_name.require::after,
.hearing-contact-grid div.field_name.any::after {
  position: static;
  display: inline-block;
  transform: none;
  margin: 0 0 0 8px;
  vertical-align: middle;
}

.hearing-contact-grid input[type="text"],
.hearing-contact-grid input[type="email"],
.hearing-contact-grid input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d8dfef;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  background: #f9fafd;
}

.hearing-privacy {
  font-size: 13px;
  color: #666;
  margin: 20px 0;
}

.hearing-privacy a {
  color: #2350d2;
  margin-left: 6px;
}

/* --- Thanks screen --- */
.hearing-thanks-wrap {
  text-align: center;
}

.hearing-thanks-wrap h2 {
  font-size: 22px;
  font-weight: bold;
  color: #2350d2;
  margin: 0 0 20px;
}

.hearing-thanks-wrap p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 0 0 30px;
}

.hearing-back-top {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 999px;
  background: linear-gradient(to right, #2350d2, #5374d4);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
  .hearing-box {
    padding: 24px;
  }

  .hearing-hero-eyebrow {
    font-size: 22px;
  }

  .hearing-confirm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
