@charset "utf-8";
/* 変数 */
:root {
  /* 色 */
  --main-color: #0D2C61;
  --color-red: #c00;

  /* コンテンツ幅 */
  --container: 1024px;

  /* 余白 */
  --space-65: 65px;

  /* フォントサイズ */
  --font-16: 1.6rem;
  --font-20: 2rem;

  @media screen and (max-width: 767px) {
    /* フォントサイズ */
    --font-16: 1.5rem;
    --font-20: 1.6rem;

    /* 余白 */
    --space-65: 35px;
  }
}

body {
  font-size: var(--font-16);
  line-height: 1.8;
}
@media screen and (max-width: 767px) {
  .pc_block {
    display: none;
  }
}
.pagevisual {
  background: url("../img/page_visual.webp")no-repeat center / cover;
}
.entry_inner {
  width: 90%;
  max-width: 1024px;
  margin-inline: auto;
}

/* エラーメッセージ */
.msgarea {
  color: var(--color-red);
  margin: 0 auto 35px;
  padding: 1em 2em;
  background-color: #eee;
  border: 1px solid #ccc;
}
p.errmsg {
  padding-top: 0.5em;
  color: var(--color-red);
  margin:0px;
}
.error_txt {
  padding: 0.25em 0 0;
  color: var(--color-red);
  margin-bottom: -0.5em;
  @media screen and (max-width: 767px) {
    padding: 0 0 0.25em;
  }
}

/* 必須マーク */
.required {
  padding: 0.3em 0.5em 0.25em;
  color: #fff;
  background: var(--color-red);
  font-size: 1.4rem;
  line-height: 1;
}

/* コンテンツ幅 */
.form_container {
  max-width: var(--container);
  width: 90%;
  padding: var(--space-65) 0;
  margin-inline: auto;
}

/* テキスト関連 */
.main_txt {
  font-size: var(--font-16);
  padding-bottom: 1.5em;
}
.red_txt {
  color: var(--color-red);
}

/* ページ上部テキスト */
.form_lead {
  width: auto;
  padding: 0.5em 2em;
  border: 2px solid var(--main-color);
  font-size: var(--font-20);
  font-weight: bold;
  color: var(--main-color);
  margin: 0 auto var(--space-65);
  @media screen and (max-width: 767px) {
    padding: 0.5em 1em;
  }
}

/* 三角フロー図 */
.form_flow {
  width: 100%;
  display: flex;
  counter-reset: num 0;
  margin: 0 auto 2em;
  overflow: hidden;
}
.form_flow--item {
  max-width: calc(100% / 3);
  width: 100%;
  padding: 0.55em 1em 0.45em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px 10px;
  background: #ccc;
  font-weight: bold;
  color: #000;
  position: relative;
  p {
    white-space: nowrap;
    position: relative;
    z-index: 3;
  }
  &::before {
    counter-increment: num 1;
    content: counter(num);
    min-width: 20px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    line-height: 1;
    position: relative;
    z-index: 3;
  }
  &:not(:last-child)::after {
    content: "";
    display: block;
    height: 75%;
    aspect-ratio: 1 / 1;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    background: #ccc;
    transform: rotate(45deg) translate(50%, -25%);
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
  }
  @media screen and (max-width: 767px) {
    padding: 0.6em 0 0.4em 1.5em;
    flex-direction: column;
    font-size: 1.4rem;
    line-height: 1.5;
    &:first-child {
      max-width: calc(100% / 3 - 20px);
      padding: 0.6em 0em 0.4em 0.5em;
    }
    &:nth-child(2) {
      max-width: calc(100% / 3 + 20px);
      padding: 0.6em 0em 0.4em 2em;
    }
    &:last-child {
      max-width: calc(100% / 3);
    }
    &:not(:last-child)::after {
      height: 100%;
      transform: rotate(45deg) translate(20%, -22%);
    }
  }
}
.form_flow--item[aria-current="step"] {
  background: var(--main-color);
  color: #fff;
  p {color: #fff;}
  &::before {
    color: var(--main-color);
  }
  &:not(:last-child)::after {
    background: var(--main-color);
  }
}

/* --------------------
  入力項目
-------------------- */
.form-input {
  width: 100%;

    font-family: 'Noto Sans JP', "sans-serif";
    font-weight: 500;
    line-height: 2;
    font-size: 1.6rem;
    letter-spacing: 0px;
    color: #000;
}
.form_txt {
  width: 100%;

    font-family: 'Noto Sans JP', "sans-serif";
    font-weight: 500;
    line-height: 2;
    font-size: 1.6rem;
    letter-spacing: 0px;
    color: #000;
  @media screen and (max-width: 767px) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
  }
}

/* 入力エリアの大きさ */
.w_full {
  max-width: calc(100% - 120px);
  width: 100%;
  padding: 0.25em 0.5em;
  @media screen and (max-width: 767px) {
    max-width: 100%;
  }
}
.w_half {
  max-width: calc(75% - 100px);
  width: 100%;
  padding: 0.25em 0.5em;
  @media screen and (max-width: 767px) {
    max-width: 100%;
  }
}
.w_35 {
  max-width: calc(50% - 100px);
  width: 100%;
  padding: 0.25em 0.5em;
  @media screen and (max-width: 767px) {
    max-width: 100%;
  }
}
.w_25 {
  padding: 0.25em 0.5em;
}

/* スマホ表示時の郵便番号の大きさ */
@media screen and (max-width: 767px) {
  .form_txt input[name="zipcode1"] {
    min-width: 120px;
  }
  .form_txt input[name="zipcode2"] {
    min-width: 150px;
  }
}

/* 入力項目レイアウト */
.form-element-container {
  border: 1px solid #ccc;
}
.form-field-input-pair {
  width: 100%;
  display: flex;
  &:not(:last-child) {
    border-bottom: 1px solid #ccc;
  }
  @media screen and (max-width: 767px) {
    flex-wrap: wrap;
  }
}
.form-field {
  min-width: 280px;
  padding: 0.75em 1em;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eee;
  white-space: nowrap;
    font-family: 'Noto Sans JP', "sans-serif";
    font-weight: 500;
    line-height: 2;
    font-size: 1.6rem;
    letter-spacing: 0px;
    color: #000;
  @media screen and (max-width: 767px) {
    width: 100%;
  }
}
.form-input {
  padding: 0.75em 1em;
  @media screen and (max-width: 767px) {
    width: 100%;
  }
}
.form-input > .form-input:has(label:nth-child(3)) {
  padding-inline: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5em;

    font-family: 'Noto Sans JP', "sans-serif";
    font-weight: 500;
    line-height: 2;
    font-size: 1.6rem;
    letter-spacing: 0px;
    color: #000;
}
.form-input input[type="text"], .form-input input[type="email"], .form-input textarea, .form-input input[type="number"] {
  background: #ffc;
  border: 2px solid #5f5f68;
  border-radius: 6px;

    font-family: 'Noto Sans JP', "sans-serif";
    font-weight: 500;
    line-height: 2;
    font-size: 1.6rem;
    letter-spacing: 0px;
    color: #000;
}

/* 苗字 */
.form-input input[name="familyname"],
.form-input input[name="furi"] {
  margin: 0 1em 0 0;
  @media screen and (max-width: 767px) {
    margin:  0 0 0.5em 0;
  }
}

/* エラー・OK判定 */
.form-input input.is-error, .form-input textarea.is-error {
  background: #fff0f0;
  border: 2px solid var(--color-red);
}
.form-input input.is-ok, .form-input textarea.is-ok {
  background-color: #f2fff4;
  background-image: url(../img/ok.png);
  background-size: auto;
  background-repeat: no-repeat;
  background-position: right 0.5em center;
  border: 2px solid #32CD32;
  @media screen and (max-width: 767px) {
    background-color: #f2fff4;
    background-image: url(../img/ok-sp.png);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: right 0.5em center;
  }
}

/* 数字入力 */
.form-input input[type="number"]::-webkit-outer-spin-button,
.form-input input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.form-input input[type="number"] {
  -moz-appearance:textfield;
}

/* ラジオボタン */
.form-input:has(.form_radio) {
  width: 100%;
  padding: 0.5em 1em;
  @media screen and (max-width: 767px) {
    padding: 1em;
  }
}
.form-input .form_radio {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.form_radio label {
  max-width: calc(100% / 3 - 20px / 3);
  width: 100%;
  padding: 0.5em 1em;
  background: #D7E5EF;
  border: 1px solid var(--main-color);
  border-radius: 5px;
  @media screen and (max-width: 767px) {
    max-width: 100%;
  }
}
.form_radio input {
  margin-right: 5px;
}
.form_radio label:has(input[type="radio"]:checked) {
  background: var(--main-color);
  color: #fff;
}

/* セレクト */
.form_txt select {
  padding: 0.25em 0.5em;

    font-family: 'Noto Sans JP', "sans-serif";
    font-weight: 500;
    line-height: 2;
    font-size: 1.6rem;
    letter-spacing: 0px;
    color: #000;
}

/* --------------------
  各種画面
-------------------- */
/* 入力画面 */
.form_btns {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 35px auto;
  @media screen and (max-width: 767px){
    max-width: 250px;
    margin-bottom: 0;
  }
}
.form_btns input {
  padding: 0.55em 3em 0.45em;
  border: none;
  border-radius: 6px;
  font-size: var(--font-20);
  font-weight: bold;
  &:hover {
    opacity: 0.8;
    cursor: pointer;
  }
  &[type="submit"] {
    background: var(--main-color);
    color: #fff;
  }
  &[type="reset"] {
    background: #ccc;
  }
  &[name="ret"] {
    background: #ccc;
    color: #000;
  }

  @media screen and (max-width: 767px){
    width: 100%;
    padding: 0.55em 2em 0.45em;
  }
}
.form_btns input[disabled] {
  background: #ccc;
  &:hover {
    opacity: 1;
    cursor: default;
  }
}

/* 確認画面 */

/* 送信完了 */
.form_container:has(.thanks_container) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.thanks_container {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}
.thanks_lead {
  padding-bottom: 1em;
  font-size: var(--font-20);
  font-weight: bold;
  color: var(--main-color);
}
.thanks_txt {
  margin-bottom: var(--space-65);
}
.thanks_btns {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 1.5em;
  @media screen and (max-width: 767px) {
    flex-direction: column;
    gap: 10px;
  }
}
.thanks_btns--item {
  max-width: calc(100% / 3 - 40px / 3);
  width: 100%;
  @media screen and (max-width: 767px) {
    max-width: 100%;
  }
}
.thanks_btns--item a {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0.55em 1em 0.45em;
  border: 1px solid var(--main-color);
  border-radius: 10px;
  font-size: var(--font-20);
  font-weight: bold;
  text-align: center;

  background: var(--main-color);
  color: #fff;
  &:hover {
    opacity: 0.8;
  }
}
/* .thanks_btns--item:nth-child(odd) a {
  background: #D7E5EF;
  color: var(--main-color);
}
.thanks_btns--item:nth-child(even) a {
  background: var(--main-color);
  color: #fff;
} */