/* Fonts */

.noto-sans-regular {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.noto-sans-jp-regular {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background-color: #f2f2f2;
  color: #333;
}

/* Header */
.header {
  background-color: #1aa550;
  padding: 16px 24px;
  position: relative;
  z-index: 1;
}

.curve{
  display: none;
}
.logo {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 1px;
}

.header .logo img {
  width: 108px;
  height: auto;
  display: block;
}

/* Page wrapper */
.page-wrapper {
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.form-outer {
  border-radius: 12px;
  padding: 24px 16px 20px;
  flex-direction: column;
  display: flex;
  align-items: center;
  position: relative;
}

.badge {
  text-align: center;
  color: #1aa550;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: none;
}

.form-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.form-card {
  background: #ffffff;
  border-radius: 40px;
  display: flex;
  width: 712px;
  justify-content: center;
  padding: 65px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 旧・自作フォーム(#xtns-form)専用のスタイルは削除。
   フォーム内はHubSpotネイティブ埋め込み＋xtns/form-hubspot.css で描画する。
   （.form-card / .badge 等のmockup chromeは下記で維持） */

.disclaimer {
  text-align: center;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0%;
  color: #000;
  margin-top: 20px;
  padding: 0 8px;
}

.disclaimer a {
  color: #3d7fd9;
  text-decoration: none;
}

/* Footer */
.site-footer {
  background-color: #191d33;
  padding: 60px 24px 40px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-nav a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-copyright {
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
}

.showOnSP {
  display: none;
}

/* =========================================================
   MOBILE — matches reference screenshot
   Card rises up under the green header with rounded top
   corners, and the "1分で完了" pill floats on the seam.
   ========================================================= */
@media (max-width: 640px) {
  .header {
    padding: 14px 20px;
  }
  /* .rounded{
    width: 100%;
    position: absolute;
    z-index: 9;
    top: -46px;
  } */
   .curve {
  width: 100%;
        height: 80px;
        display: block;
        position: absolute;
        top: -30px;
        left: 0;
        border-radius: 50%;
        background: white;
}

  .page-wrapper {
    padding: 0 0px 32px;
        margin-top: 180px;
        position: relative;
        z-index: 2;
  }

  .form-outer {
    background: #ffffff;
        border-radius: 24px 24px 0 0;
        padding: 15px 16px 28px;
        align-items: stretch;
  }

  .badge {
            position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%) translateY(-130px);
        background-color: #009f42;
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        padding: 7px 20px;
        border-radius: 999px;
        box-shadow: none;
        white-space: nowrap;
        margin-bottom: 0;
  }
  .badge::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #009f42;
    left: 43%;
    top: 30px;
  }

  .form-title {
    position: absolute;
    width: 100%;
    left: 0;
    margin-top: 18px;
    font-size: 18px;
    transform: translateY(-140px);
  }

  .form-card {
    width: 100%;
    padding: 0;
    box-shadow: none;
    display: block;
  }

  .footer-nav {
    display: none;
  }
  .footer-copyright {
    margin: 40px;
  }
  .disclaimer {
    display: none;
  }
  .showOnSP {
    display: flex;
    margin: 30px auto 30px auto;
    row-gap: 30px;
    justify-content: center;
    width: 305px;
    align-items: center;
    flex-direction: column;
  }
  .showOnSP p:last-child {
    font-weight: 400;
    text-decoration: none;
    font-size: 13px;
    line-height: 22.1px;
    letter-spacing: 0%;
  }
  .showOnSP p:last-child a {
    text-decoration: none;
  }
}

@media (min-width: 640px) and (max-width: 860px) {
  .form-card {
    width: auto;
  }
}

@media (max-width: 320px) {
  .showOnSP p:last-child {
    width: 80%;
  }
}
