:root {
  color-scheme: light;
  background: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: #ffffff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  overflow-x: hidden;
}

.has-sticky-cta .page {
  padding-bottom: calc(var(--sticky-cta-height, 0px) + env(safe-area-inset-bottom));
}

.page {
  width: min(100%, 863px);
  margin: 0 auto;
  background: #ffffff;
  transition: padding-bottom 420ms ease;
}

.visual-section {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.visual-section img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 24px 16px;
  color: #000000;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  background: #fdfdfd;
}

.site-footer-copyright {
  margin: 0;
}

.site-footer .privacy-link {
  position: static;
  width: auto;
  height: auto;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.br-sp {
  display: none;
}

@media (max-width: 767px) {
  .br-sp {
    display: inline;
  }

  /*
   * Figmaの各グループは境界部分が数pxずつ重なっているため、
   * 863px幅を基準に割合で重なりを再現する。
   */
  [aria-label="サービスのご案内"] {
    margin-top: -0.23175%;
  }

  [aria-label="よくあるお悩み"] {
    margin-top: -0.4635%;
  }

  [aria-label="SNTのサポート"],
  [aria-label="太陽光発電のメリット"],
  [aria-label="お客様事例"] {
    margin-top: -0.11588%;
  }

  [aria-label="資産形成プラン"] {
    margin-top: -0.23175%;
  }

  [aria-label="SNTが選ばれる理由"],
  [aria-label="お問い合わせ"] {
    margin-top: -0.34762%;
  }

  [aria-label="無料相談"] {
    margin-top: 0;
  }

  .site-footer {
    margin-top: -1.15875%;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 863 / 121;
    min-height: 0;
    gap: 9.73%;
    font-size: 2.78vw;
    line-height: 1;
    white-space: nowrap;
  }
}

.plan-cta-section {
  position: relative;
}

.plan-cta-button {
  position: absolute;
  top: 50%;
  left: 30.01%;
  display: block;
  width: 63.73%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.plan-cta-button img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .plan-cta-button {
    top: 80.16%;
    left: 4.63%;
    width: 90.73%;
    height: 15.13%;
  }

  .plan-cta-button img {
    visibility: hidden;
  }
}

.reasons-cta-section {
  position: relative;
}

.reasons-cta-button {
  position: absolute;
  top: 71.27%;
  left: 6.37%;
  display: block;
  width: 53.07%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.reasons-cta-button img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .reasons-cta-button {
    top: 83.99%;
    left: 6.37%;
    width: 87.83%;
    height: 11.59%;
  }

  .reasons-cta-button img {
    visibility: hidden;
  }
}

.advisors-cta-section {
  position: relative;
}

.advisors-cta-button {
  position: absolute;
  top: 66.5%;
  left: 9.27%;
  display: block;
  width: 82.04%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.advisors-cta-button img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .advisors-cta-button {
    display: none;
  }

  .mobile-combined-hidden {
    display: none;
  }
}

.seminar-cta-section {
  position: relative;
}

.seminar-cta-button {
  display: none;
}

@media (max-width: 767px) {
  .seminar-cta-button {
    position: absolute;
    top: 79.88%;
    left: 8.92%;
    display: block;
    width: 81.81%;
    height: 12.64%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
}

.final-cta-section {
  position: relative;
  padding: 0 16px;
  color: #ffffff;
  line-height: 1.6;
  background-color: #063fa7;
  background-image: url("sections/final-cta-bg-pc.webp");
  background-position: center top;
  background-size: 100% 100%;
}

.final-cta-layout {
  display: grid;
  grid-template-columns: minmax(0, min(31%, 270px)) minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
  position: relative;
  width: min(100%, 863px);
  min-height: 720px;
  margin: 0 auto;
}

.final-cta-people {
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.final-cta-people img {
  display: block;
  width: 100%;
  height: auto;
}

.final-cta-side {
  position: sticky;
  top: var(--final-cta-people-sticky-top, 0px);
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  margin-block: var(--final-cta-people-top, 0px);
  min-width: 0;
}

.final-cta-side .final-cta-benefits {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.final-cta-content,
.inline-form-section {
  position: relative;
  z-index: 2;
}

.final-cta-content {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 0 0 0 auto;
  padding: 28px 0 52px;
}

.final-cta-lead {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 16px 0;
}

.final-cta-badge {
  display: grid;
  place-content: center;
  width: 96px;
  height: 96px;
  padding: 10px;
  border: 4px solid #ffe267;
  border-radius: 50%;
  color: #063fa7;
  text-align: center;
  line-height: 1.05;
  background: #ffe267;
  box-shadow: 0 8px 20px rgba(0, 20, 91, 0.22);
  transform: rotate(-6deg);
}

.final-cta-badge span {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.final-cta-badge strong {
  display: block;
  font-size: 36px;
  letter-spacing: -0.08em;
}

.final-cta-copy {
  text-align: left;
}

.final-cta-kicker {
  margin: 0 0 8px;
  font-size: clamp(17px, 2.4vw, 23px);
  font-weight: 700;
}

.final-cta-kicker span {
  color: #ffe267;
}

.final-cta-copy h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.final-cta-heading-nowrap {
  white-space: nowrap;
}

.final-cta-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 24, 92, 0.18);
}

.final-cta-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  color: #063fa7;
}

.final-cta-benefits--mobile {
  display: none;
}

.final-cta-benefit + .final-cta-benefit {
  border-left: 1px solid #d5e0f5;
}

.benefit-icon {
  display: block;
  flex: 0 0 24px;
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
}

.final-cta-benefit h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.final-cta-benefit p {
  margin: 5px 0 0;
  color: #253b67;
  font-size: 11px;
  line-height: 1.4;
}

.plan-cta-button,
.reasons-cta-button,
.advisors-cta-button {
  transition: opacity 200ms ease;
}

@media (hover: hover) {
  .plan-cta-button:hover,
  .reasons-cta-button:hover,
  .advisors-cta-button:hover,
  .sticky-cta.is-visible:hover {
    opacity: 0.7;
  }

}

.sticky-cta {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 999;
  display: block;
  width: min(100%, 863px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 32px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(50%, 0);
}

.sticky-cta img {
  display: block;
  width: 100%;
  height: auto;
}

.inline-form-section {
  width: min(100%, 560px);
  margin: 20px 0 0 auto;
  padding: 28px clamp(18px, 4vw, 34px) 32px;
  border-radius: 18px;
  font-family: inherit;
  line-height: 1.6;
  color: #263238;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.form-heading {
  padding-right: 28px;
  text-align: center;
}

.form-eyebrow {
  margin: 0 0 8px;
  color: #bc4b37;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.form-heading h2 {
  margin: 0;
  color: #1c4f62;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.45;
}

.form-heading p:last-child {
  margin: 12px 0 0;
  color: #66737b;
  font-size: 13px;
}

.lead-form,
.wpcf7-form {
  margin-top: 28px;
}

.cf7-setup-notice {
  margin: 28px 0 0;
  padding: 14px;
  border-radius: 7px;
  color: #66737b;
  font-size: 13px;
  text-align: center;
  background: #f3f6f8;
}

.thanks-page {
  display: grid;
  min-height: 100vh;
  padding: 48px 20px;
  place-items: center;
  background: linear-gradient(160deg, #eef5f7 0%, #f8fafb 55%, #e4eff3 100%);
  font-family: inherit;
}

.thanks-card {
  width: min(100%, 640px);
  padding: clamp(32px, 7vw, 68px) clamp(24px, 7vw, 72px);
  border-radius: 18px;
  color: #263238;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(28, 79, 98, 0.14);
}

.thanks-eyebrow {
  margin: 0 0 12px;
  color: #bc4b37;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.thanks-card h1 {
  margin: 0;
  color: #1c4f62;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.45;
}

.thanks-card p:not(.thanks-eyebrow) {
  margin: 16px 0 0;
  color: #66737b;
  font-size: 14px;
  line-height: 1.8;
}

.thanks-link {
  display: inline-flex;
  min-width: 190px;
  justify-content: center;
  margin-top: 30px;
  padding: 13px 22px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: #1c6b82;
}

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

.form-field {
  margin: 0 0 18px;
}

.form-field label,
.form-choice-group legend {
  display: block;
  margin-bottom: 7px;
  color: #34454c;
  font-size: 14px;
  font-weight: 700;
}

.form-field label .required-mark,
.form-choice-group legend .required-mark {
  color: #bc4b37;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd6da;
  border-radius: 7px;
  color: #263238;
  font: inherit;
  font-size: 16px;
  background: #ffffff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
  min-height: 104px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #1c6b82;
  box-shadow: 0 0 0 3px rgba(28, 107, 130, 0.14);
}

.form-choice-group {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.form-note {
  margin: 22px 0 14px;
  color: #78858b;
  font-size: 11px;
  line-height: 1.7;
}

.lead-form-submit {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  background: #bc4b37;
  box-shadow: 0 7px 16px rgba(188, 75, 55, 0.2);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.lead-form-submit:hover,
.lead-form-submit:focus-visible {
  background: #a84030;
  transform: translateY(-1px);
}

.lead-form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.choice-grid .wpcf7-form-control-wrap {
  width: 100%;
}

.choice-grid .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

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

.choice-grid .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 7px 4px;
  border: 1px solid #cbd6da;
  border-radius: 7px;
  color: #34454c;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.choice-grid .wpcf7-list-item label:has(input:checked) {
  border-color: #1c6b82;
  color: #1c4f62;
  background: #eef5f7;
}

.choice-grid .wpcf7-list-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #bc4b37;
  font-size: 12px;
}

.wpcf7-response-output {
  margin: 14px 0 0 !important;
  padding: 9px 12px !important;
  border: 1px solid #cbd6da !important;
  border-radius: 7px;
  color: #66737b;
  font-size: 12px;
  line-height: 1.6;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #1c6b82 !important;
  color: #1c6b82;
  background: #eef5f7;
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .plan-cta-button,
  .reasons-cta-button,
  .advisors-cta-button,
  .sticky-cta {
    transition: none;
  }

  .form-field input,
  .form-field select,
  .form-field textarea,
  .choice-grid .wpcf7-list-item label,
  .lead-form-submit {
    transition: none;
  }
}

@media (max-width: 767px) {
  .final-cta-section {
    padding: 0 14px;
    background-image: url("sections/final-cta-bg-sp.webp");
  }

  .final-cta-layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 260px;
  }

  .final-cta-content {
    order: 1;
  }

  .final-cta-side {
    position: static;
    order: 2;
    display: block;
    margin-top: 0;
    min-height: 0;
  }

  .final-cta-people {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 50%;
    margin-top: 0;
    transform: translateX(-50%);
    width: min(100%, 300px) !important;
  }

  .final-cta-lead {
    display: block;
    width: 100%;
    padding: 34px 0 0;
  }

  .final-cta-content {
    width: 100%;
    padding: 34px 0 0;
  }

  .final-cta-copy {
    text-align: center;
  }

  .final-cta-badge {
    width: 104px;
    height: 104px;
    margin: 0 auto 22px;
  }

  .final-cta-badge strong {
    font-size: 34px;
  }

  .final-cta-copy h2 {
    font-size: clamp(18px, 5.7vw, 30px);
  }

  .final-cta-benefits {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .final-cta-benefits--mobile {
    display: grid;
    width: 100%;
    margin: 30px auto 0;
  }

  .final-cta-side .final-cta-benefits--desktop {
    display: none;
  }

  .final-cta-benefit {
    padding: 15px 18px;
  }

  .final-cta-benefit h3 {
    font-size: 24px;
  }

  .final-cta-benefit p {
    font-size: 14px;
  }

  .final-cta-benefit + .final-cta-benefit {
    border-top: 1px solid #d5e0f5;
    border-left: 0;
  }

  .inline-form-section {
    width: 100%;
    margin: 18px 0 0;
    padding: 34px 18px 28px;
    border-radius: 18px;
  }

  .form-heading {
    padding-right: 0;
  }

  .form-heading p:last-child {
    font-size: 12px;
  }

  .choice-grid-age {
    grid-template-columns: repeat(3, 1fr);
  }

  .choice-grid-age .wpcf7-radio {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefit-icon {
    flex: 0 0 32px;
    width: 32px !important;
    height: 32px !important;
  }
}

@media (min-width: 893px) {
  html,
  body {
    background: #f7f8fa;
  }
}
