/* FILE ORDER: POLICY & CONTACT / HERO → POLICY → FORM → CONFIRM → THANKS → RESPONSIVE */
/* ==================================================
   POLICY / CONTACT 共通ヒーロー
================================================== */





/* ==================================================
   POLICY / 規約本文
================================================== */
.policy-section {
  padding: clamp(80px, 10vw, 150px) clamp(24px, 8vw, 140px);
  background: var(--white-pure);
}

.policy-section--tint {
  background:
    linear-gradient(180deg, rgba(232, 246, 252, .72), rgba(255, 253, 248, .92));
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.55fr);
  gap: clamp(60px, 10vw, 160px);
  max-width: 1500px;
  margin: 0 auto;
}

.policy-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.policy-heading p,
.contact-intro > p,
.thanks-panel > p:first-of-type {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: .18em;
}

.policy-heading h2 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.35;
  letter-spacing: -.04em;
}

.policy-heading h2 small {
  color: var(--text-subtle);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: .04em;
}

.policy-content {
  color: var(--text-deep-muted);
  font-size: var(--text-base);
}

.policy-content .policy-lead {
  margin: 0 0 64px;
  color: var(--ink);
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: 2.1;
}

.policy-content h3 {
  margin: 58px 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #cddfeb;
  color: var(--ink);
  font-size: 20px;
}

.policy-content ul,
.policy-content ol {
  margin: 0;
  padding-left: 1.45em;
}

.policy-content li + li {
  margin-top: 12px;
}

.policy-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy-date {
  margin: 64px 0 0;
  color: var(--text-subtle);
  text-align: right;
  font-size: var(--text-small);
}

/* ==================================================
   CONTACT / ステップ・フォーム共通
================================================== */
.contact-section {
  padding: clamp(75px, 9vw, 135px) 24px clamp(100px, 12vw, 180px);
  background:
    radial-gradient(circle at 4% 92%, rgba(242, 200, 155, .16), transparent 24%),
    var(--white-pure);
}

.contact-container {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.form-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 80px;
  padding: 0;
  list-style: none;
}

.form-steps li {
  position: relative;
  padding: 18px 10px;
  border-bottom: 2px solid #dce8f0;
  color: #9aabbc;
  text-align: center;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: .12em;
}

.form-steps li span {
  margin-right: 9px;
  font-size: 11px;
}

.form-steps li.is-current,
.form-steps li.is-done {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.form-steps li.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  translate: -50% 0;
}

.contact-intro {
  margin-bottom: 54px;
}

.contact-intro h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.45;
  letter-spacing: -.035em;
}

.contact-intro > span {
  color: var(--text-subtle);
  font-size: var(--text-base);
}

.contact-intro > span b {
  margin-right: 4px;
  color: var(--blue);
}

.contact-form {
  border-top: 1px solid #cddfeb;
}

.contact-form-entry .wpcf7-form,
.contact-confirm-entry .wpcf7-form {
  margin: 0;
}

.contact-form-entry .wpcf7-form-control-wrap {
  display: block;
}

.contact-form-entry .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #c43f4f;
  font-size: var(--text-small);
}

.contact-form-entry .wpcf7-response-output,
.contact-confirm-entry .wpcf7-response-output {
  margin: 28px 0 0;
  padding: 14px 18px;
  border-width: 1px;
  color: var(--text-deep-muted);
  font-size: var(--text-small);
}

.contact-form-entry .wpcf7-spinner,
.contact-confirm-entry .wpcf7-spinner {
  align-self: center;
}

.contact-setup-notice {
  margin: 0;
  padding: 28px;
  border: 1px solid #cddfeb;
  color: var(--text-deep-muted);
  background: #f8fbfd;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid #dce8f0;
}

.form-row > label {
  padding-top: 14px;
  color: var(--ink);
  font-weight: 700;
}

.form-row em {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 2px;
  color: var(--white-pure);
  background: var(--blue);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .08em;
}

.form-control input,
.form-control select,
.form-control textarea {
  width: 100%;
  border: 1px solid #cbdce8;
  border-radius: 3px;
  outline: 0;
  color: var(--ink);
  background: #f8fbfd;
  font-size: var(--text-base);
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.form-control input,
.form-control select {
  height: 58px;
  padding: 0 18px;
}

.form-control textarea {
  min-height: 210px;
  padding: 16px 18px;
  resize: vertical;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
  border-color: var(--blue);
  background: var(--white-pure);
  box-shadow: 0 0 0 4px rgba(8, 126, 216, .1);
}

.privacy-check {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 52px 0 0;
  color: var(--text-deep-muted);
}

.privacy-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.privacy-check a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-actions,
.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 44px;
}

.form-button {
  min-width: 300px;
  min-height: 68px;
  padding: 18px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--blue);
  border-radius: 0;
  color: var(--white-pure);
  background: linear-gradient(110deg, var(--blue-dark), var(--blue));
  cursor: pointer;
  font-weight: 700;
  transition: transform .25s, box-shadow .25s, filter .25s;
}

.form-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(7, 91, 160, .2);
}

.form-button--back {
  color: var(--blue-dark);
  background: var(--white-pure);
}

.confirm-actions .wpcf7-previous {
  min-width: 300px;
  min-height: 68px;
  padding: 18px 28px;
  border: 1px solid var(--blue);
  border-radius: 0;
  color: var(--blue-dark);
  background: var(--white-pure);
  cursor: pointer;
  font-weight: 700;
  transition: transform .25s, box-shadow .25s, filter .25s;
}

.confirm-actions .wpcf7-previous:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(7, 91, 160, .12);
}

/* ==================================================
   CONTACT / 確認・完了
================================================== */
.confirm-list {
  margin: 0;
  border-top: 1px solid #cddfeb;
}

.confirm-list > div {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid #dce8f0;
}

.confirm-list dt {
  color: var(--ink);
  font-weight: 700;
}

.confirm-list dd {
  margin: 0;
  color: var(--text-deep-muted);
  white-space: pre-wrap;
}

.contact-container--thanks {
  max-width: 860px;
}

.thanks-panel {
  padding: clamp(50px, 8vw, 90px) 24px;
  text-align: center;
  background: linear-gradient(145deg, #f4fbff, var(--warm-white));
  box-shadow: 0 24px 80px rgba(6, 51, 119, .08);
}

.thanks-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 32px;
  border: 1px solid rgba(8, 126, 216, .26);
  border-radius: 50%;
  color: var(--blue);
  font-size: 30px;
}

.thanks-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.35;
  letter-spacing: -.045em;
}

.thanks-message {
  margin: 36px 0 0;
  color: #536b84;
}

.thanks-redirect {
  margin: 26px 0;
  color: #8a9cae;
  font-size: var(--text-small);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--blue);
  color: var(--blue-dark);
  font-weight: 700;
}

@media (max-width: 800px) {


  .policy-layout {
    display: block;
  }

  .policy-heading {
    position: static;
    margin-bottom: 58px;
  }

  .policy-content .policy-lead {
    margin-bottom: 48px;
    font-size: var(--text-base);
  }

  .form-steps {
    margin-bottom: 58px;
  }

  .form-row,
  .confirm-list > div {
    display: block;
    padding: 26px 0;
  }

  .form-row > label,
  .confirm-list dt {
    display: block;
    margin-bottom: 13px;
    padding: 0;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .form-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {


  .policy-section,
  .contact-section {
    padding-inline: 20px;
  }

  .form-steps li {
    padding-inline: 3px;
    font-size: 12px;
  }

  .form-steps li span {
    display: block;
    margin: 0 0 2px;
  }

  .privacy-check {
    align-items: flex-start;
  }
}
