@import url("https://fonts.googleapis.com/css2?family=Caveat&family=Oswald:wght@700&family=Roboto+Condensed:wght@700&display=swap");

:root {
  /* color */
  --white: #fff;
  --black: #2a2b2c;
  --green: #22bebb;
  --blue: #1779cd;
  --blue-bg: #ecf3fd;
  --navy: #2d3770;
  --gray-border: #cacaca;
  --gray-text: #979494;
  --gray-bg: #ebebeb;
  --gray-placeholder: #d9d9d9;
  --red-attention: #d42926;
  --gra-skew: linear-gradient(78deg, #22bebb -8.83%, #1779cd 78.35%);
  --gra-horizon: linear-gradient(90deg, #22bebb 0%, #1779cd 100%);
  --gra-cta: linear-gradient(90deg, #e82c03 0%, #ed9f09 100%);
  --gra-hover: linear-gradient(90deg, #ed9f09 0%, #e82c03 100%);
  --gra-hover-blue: linear-gradient(90deg, #1779cd 0%, #22bebb 100%);

  /* font-family */
  --sans: "Noto Sans JP", sans-serif;
  --en: "Caveat", cursive;
  --graph: "Oswald", sans-serif;
}

/**
 * Reset form fields to make them styleable
 */

button,
input,
optgroup,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
  color: inherit;
  font: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  outline: 0;
  border-radius: 0;
  text-align: inherit;
}

/* destyle pickup start */

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Remove padding
 */

option {
  padding: 0;
}

select {
  line-height: 3rem !important;
  border-radius: 0.5rem;
}

/**
 * Reset radio and checkbox appearance to preserve their look in iOS.
 */

[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  width: 14px;
  height: 14px;
  margin-right: 10px;
}

[type="radio"] {
  -webkit-appearance: radio;
  appearance: radio;
}

label[for] {
  cursor: pointer;
}

/* destyle pickup end */

.p-contact {
  padding-top: 50px;
  padding-bottom: 40px;
}

.p-contact-formWrap {
  background: var(--gra-horizon);
  padding: 4px;
  max-width: 335px;
  border-radius: 20px;
  margin: auto;
}

.p-contact-form {
  background-color: #fff;
  padding: 26px 20px 32px;
  border-radius: 16px;
  width: 100%;
  position: relative;
}

.p-contact-form:before {
  content: "2分で簡単登録";
  background: var(--gra-skew);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  line-height: 1;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.p-contact__heading {
  color: var(--blue);
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  line-height: 1.5;
}

.p-contact__steps {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
}

.p-contact__steps span {
  display: inline-block;
  width: 33.3333%;
  text-align: center;
  position: relative;
  color: var(--gray-text);
}

.p-contact__steps span:before {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--gray-border);
  position: absolute;
  left: 0;
  bottom: -4px;
}

.p-contact__steps span.active {
  color: var(--black);
}
.p-contact__steps span.active:before {
  background: var(--black);
}

.p-contact__formIinner {
  margin-top: 20px;
}

.input-group {
  margin-bottom: 10px;
  flex: 1;
}

.input-group label {
  font-size: 14px;
}

label {
  display: block;
  margin-bottom: 4px;
}

legend {
  font-size: 14px;
  margin-bottom: 4px;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"] {
  line-height: 1;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 14px;
}

select {
  line-height: 1.2;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 14px;
  padding-right: 30px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='5'><path d='M0 0 L10 0 L5 5 z' fill='black'/></svg>")
    no-repeat;
  background-position: right 10px center;
  background-size: 10px 5px;
}

.radio-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.input-filled {
  background: rgba(66, 92, 239, 0.1);
}

input::placeholder {
  font-size: 14px;
  color: var(--gray-placeholder);
}

input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

input[type="text"]:focus,
input[type="radio"]:focus + label,
input[type="checkbox"]:focus + label {
  box-shadow: 0px 0px 3px var(--blue);
}

.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  width: 100%;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 6px;
  background: var(--gray-bg, #ebebeb);
  cursor: pointer;
  position: relative;
}

input[type="radio"]:checked + .radio-label {
  background-color: var(--blue, #1779cd);
  color: white;
}

/* 中央のインジケータ（白丸）のスタイル */
input[type="radio"] + .radio-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  opacity: 1;
}

.radio-label::after {
  content: "";
  position: absolute;
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--blue, #1779cd);
  border-radius: 50%;
  transform: scale(0);
  top: 50%;
  left: 14px;
  transform: translateY(-50%) scale(0);
}

input[type="radio"]:checked + .radio-label::after {
  transform: translateY(-50%) scale(1);
}

.p-contact[data-pc] {
  position: fixed;
  width: 374px;
  height: 100vh;
  padding: 4px;
  transition: width 0.5s; /* アニメーションの追加 */
  z-index: 101;
}

@media screen and (max-width: 1024px) {
  .p-contact[data-pc] {
    display: none;
  }
}

@media screen and (min-width: 1023px) {
  .p-contact-formWrap {
    background: var(--gra-horizon);
    padding: 4px;
    max-width: 480px;
    border-radius: 20px;
    margin: auto;
  }
}

.p-contact[data-pc].expand {
  width: 480px;
}

.p-contact[data-pc] {
  background: var(--gra-horizon);
}

.p-contact[data-pc] .p-contact-formWrap {
  background: #fff;
  max-width: 100%;
  border-radius: 0;
  height: 99.1vh;
  padding-top: 80px;
  overflow-y: auto;
}

.p-contact-formWrap__logo {
  max-width: 273px;
  margin: auto;
}

.p-contact[data-pc] .p-contact-form:before {
  top: 40px;
}

.p-contact[data-pc] .p-contact-form {
  max-width: 295px;
  margin: auto;
  padding: 0;
  padding-top: 80px;
}

.p-contact[data-pc] .radio-group {
  margin-bottom: 30px;
}

.p-contact[data-pc] legend {
  font-size: 14px;
}

.p-contact[data-pc] .p-contact__steps {
  margin-top: 40px;
}

/********************************************************
thanksページ
/********************************************************/
.l-header {
  width: 100%;
  padding: 20px;
}

.l-header img {
  width: 100%;
  max-width: 183px;
}

.p-thanks {
  text-align: center;
  padding: 0 20px 20px;
  max-width: 375px;
  margin: auto;
}

.p-thanks__text {
  font-size: 20px;
  font-weight: 700;
}

.p-thanks__textSub {
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  margin-top: 24px;
}

.p-thanks__button {
  margin-top: 50px;
}

.p-thanks-flow {
  padding: 40px 20px;
}

.p-thanks-flowInner {
  max-width: 375px;
  margin: auto;
}

.p-thanks-flow__heading {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
}

.p-thanks-flow__lists {
  margin-top: 24px;
}

.p-thanks-flow__list {
}

.p-thanks-flow__list + * {
  margin-top: 16px;
}

.p-thanks-flowFlex {
  display: flex;
  gap: 20px;
}

.p-thanks-flow__listNumber {
  font-size: 14px;
  color: var(--blue);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
}

.p-thanks-flow__listNumber:after {
  content: "";
  height: 20px;
  width: 1px;
  background: var(--blue);
  display: inline-block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.p-thanks-flow__list:last-of-type .p-thanks-flow__listNumber:after {
  height: 40px;
  bottom: -20px;
}

.p-thanks-flow__listNumber .fz-lg {
  font-size: 30px;
}

.p-thanks-flow__listText h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}

.p-thanks-flow__listText p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.p-thanks-goal {
  background: var(--gra-skew);
  color: #fff;
  padding: 20px 47px;
  border-radius: 20px;
  margin-top: 16px;
  font-weight: 700;
  text-align: center;
  position: relative;
}

.p-thanks-goalHeading {
  font-size: 30px;
}

.p-thanks-goalText {
  font-size: 14px;
  margin-top: 20px;
  font-weight: 500;
}

@media screen and (min-width: 769px) {
  .l-header {
    padding-bottom: calc((5 / 1440) * 100vw);
    padding-top: calc((50 / 1440) * 100vw);
    padding-left: calc((50 / 1440) * 100vw);
  }

  .l-header img {
    max-width: 273px;
  }

  .p-thanks {
    max-width: 489px;
    padding-bottom: 24px;
  }

  .p-thanks__text {
    font-size: 30px;
  }

  .p-thanks__textSub {
    font-size: 16px;
    text-align: center;
  }

  .p-thanks-flow {
    margin: auto;
    max-width: 640px;
    margin-bottom: 40px;
    padding: 40px;
  }
  .p-thanks-flowInner {
    max-width: 100%;
  }
  .p-thanks-flow__list + * {
    margin-top: 33px;
  }

  .p-thanks-flow__listNumber:after {
    bottom: -17px;
  }
  .p-thanks-goal {
    margin-top: 37px;
  }

  .p-thanks-flow__list:last-of-type .p-thanks-flow__listNumber:after {
    bottom: -40px;
  }
}

/****************************
component
*****************************/

.c-button-wrapper {
  text-align: center;
  margin-top: 10px;
}

.c-button {
  width: 100%;
  max-width: 294px;
  line-height: 1;
  font-size: clamp(14px, calc((18 / 375) * 100vw), 18px);
  font-weight: 700;
  display: inline-block;
  position: relative;
  text-align: center;
  padding: 20px 44px 22px 43px;
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
}

.c-button:focus {
  outline: 2px solid #5b9dd9; /* フォーカスの際に目立つアウトラインを設定 */
  outline-offset: 2px; /* アウトラインがボタンの枠から少し離れるように設定 */
}

.c-button:disabled {
  cursor: not-allowed;
  opacity: 0.8;
  filter: grayscale(80%);
}

.c-button[data-bg="cta"] {
  background: var(--gra-hover);
  overflow: hidden;
  z-index: 1;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 800ms; /* ホバーから離れたときのアニメーション時間 */
}

.c-button[data-bg="cta"]:before,
.c-button[data-bg="contact"]:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gra-cta);
  z-index: 1;
  transition: all 0.3s ease-in-out;
}

.c-button[data-bg="contact"]:before {
  background: var(--gra-horizon);
}

.c-button[data-bg="cta"]:hover:before,
.c-button[data-bg="contact"]:hover:before {
  opacity: 0;
}

.c-button[data-bg="cta"] span,
.c-button[data-bg="contact"] span {
  position: relative;
  z-index: 1;
}

.c-button[data-bg="contact"] {
  background: var(--gra-hover-blue);
  overflow: hidden;
  z-index: 1;
}

.c-button[data-bg="contact"]:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  color: #fff;
  line-height: 1;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translate(-50%, -25%) rotate(45deg);
  position: absolute;
  top: calc(50% - 2px);
  right: 24px;
  z-index: 2;
}

.error {
  color: #ff5722;
  font-size: 12px;
  font-weight: 500;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.foreigner-link {
  font-size: 12px !important;
}
