@charset "UTF-8";
/* CSS Document */

@media screen and (min-width: 320px) {
  /* スマホ用レイアウト 320px以上の範囲に収めるデザインはこの中に記述 */
  /*==============================================================
    　　入力フォーム
  ==============================================================*/
  /*======== 電話 ========*/
  .tel-box {
    margin: 0 18px;
  }

  .tel-item {
    background-color: var(--color-bg-white);
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 20px;
  }

  .tel-item__title {
    font-size: 22px;
    font-weight: 500;
    padding-bottom: 10px;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 16px;
  }

  .contact-tel .tel-link {
    margin: 0 auto;
    font-size: 40px;
    text-align: center;
    font-weight: 500;
  }

  .contact-tel .tel-link a {
    display: inline-block;
  }

  .con-bg {
    margin: 0 18px;
    background-color: var(--color-bg-white);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    font-family: var(--font-copy);
  }

  .contact-lead {
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
  }

  .contact-lead .required-label {
    color: var(--color-text-white);
    padding: 5px 6px 4px;
    background-color: var(--color-bg-required);
    font-size: 12px;
    margin-top: -30px;
    margin-right: 4px;
    line-height: 1;
  }

  /* コンテンツ全体 */
  .form-box {
    margin-top: 32px;
  }

  .form-item,
  .info-item {
    display: flex;
    gap: 2px 0;
    padding: 8px 0 20px;
    flex-direction: column;
  }

  .form-item label,
  .info-item dt {
    font-size: 12px;
    line-height: 2.3;
    font-weight: 400;
    color: var(--color-text-contact);
  }

  .required {
    color: var(--color-text-white);
    padding: 3px 4px 2px;
    margin-left: 8px;
    background-color: var(--color-bg-required);
    font-size: 8px;
  }

  .form-item input,
  .form-item textarea,
  .form-item select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 15px;
    line-height: 1.46;
    font-weight: 400;
    font-size: 14px;
    background-color: #fff;
    color: #333333;
  }
  .form-item.mail input {
    letter-spacing: 0.03em;
  }
  .form-item select {
    letter-spacing: 0.1em;
  }

  .select-box {
    position: relative;
  }

  select:has(option[value=""]:checked) {
    color: #cccccc;
  }

  .select-box {
    position: relative;
  }

  .select-box::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: rotate(45deg) translateX(-50%);
    width: 9px;
    height: 9px;
    border-right: 1.5px solid #828282;
    border-bottom: 1.5px solid #828282;
    pointer-events: none;
    margin-top: -4px;
  }

  /* SafariやChromeの自動入力（autofill）対策 */
  input:-webkit-autofill,
  textarea:-webkit-autofill,
  select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: inherit; /* 文字色はそのまま */
    transition: background-color 5000s ease-in-out 0s; /* チラつき防止 */
  }

  .form-item textarea {
    height: 196px;
    /* padding: 8px; */
    line-height: 1.5;
  }

  /* 入力例 */
  input::placeholder {
    color: #cccccc;
    letter-spacing: 0.1em;
  }
  textarea::placeholder {
    color: #cccccc;
    letter-spacing: 0.12em;
  }
  .mail input::placeholder {
    color: #cccccc;
    letter-spacing: 0.05em;
  }

  .privacy-box {
    padding: 20px 0 0;
    margin-top: 16px;
    line-height: 3;
  }

  .agree,.check {
    font-size: 14px;
    text-align: center;
    line-height: 2;
    letter-spacing: 0.05em;
  }
  .agree {
    line-height: 1.8;
    margin-bottom: 8px;
  }

  .agree span {
    text-decoration: underline;
    text-decoration-color: var(--color-text-sub);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    color: var(--color-text-sub);
  }

  .agree img {
    width: 18px;
    margin: 0 8px 3.5px 8px;
  }

  .check-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    margin-top: 8px;
    font-weight: 400;
    line-height: 2.4;
  }

  /* 元のチェックボックスは非表示 */
  .check-label input[type="checkbox"] {
    display: none;
  }

  /* 見た目用 */
  .check-box {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 18.75px;
    height: 18.75px;
    margin: 0;
    appearance: none;
    outline: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    margin-top: 3px;
  }

  /* チェック時 */
  .check-label input[type="checkbox"]:checked + .check-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid var(--color-bg-sub);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  /* ==================== エラーメッセージ ================== */
  select.input-error,
  input.input-error,
  textarea.input-error {
    background-color: #FFE6E6;
    border: 1.5px solid #dc3232;
  }

  select.input-error:focus,
  input.input-error:focus,
  textarea.input-error:focus {
    outline: none;
    border: 1px solid #dc3232;
  }

  .error-message {
    color: #dc3232;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.5;
    letter-spacing: 0.1em;
  }

  .error-message.check-error {
    text-align: center;
    margin-top: 12px;
  }

  /* ボタン */
  .contact-btn {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 54px;
    border-radius: 64px;
    border: 2px solid var(--color-bg-sub);
    background-color: var(--color-bg-sub);
    display: grid;
    place-content: center;
    margin-top: 40px;
  }
  .contact-btn__inner {
    display: grid;
    place-items: center;
    width: fit-content;
    /* max-width: 268px; */
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    column-gap: 12px;
    font-weight: 500;
    padding-right: 6px;
  }
  .contact-btn__icon-mail {
    width: auto !important;
    height: 20px !important;
    fill: var(--color-bg-section) !important;
    margin-top: 1px;
  }
  .contact-btn__text {
    color: #fff;
    font-size: 14px;
    font-weight: 550;
    margin-top: -2px;
    letter-spacing: 0.1em;
  }
  .contact-btn__icon-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: auto;
    height: 10px;
    fill: var(--color-bg-base) !important;
  }

  /*==============================================================
    　　確認画面
  ==============================================================*/
  .info-item dd {
    font-size: 14px;
    color: #333333;
  }

  .back-btn {
    text-align: center;
    margin-top: 24px;
    text-decoration: underline;
    font-size: 13px;
  }

  /*==============================================================
    　　完了画面
  ==============================================================*/
  .thanks-title {
    text-align: center;
    font-size: 20px;
    margin-top: 24px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-text-sub);
  }

  .thanks-text {
    text-align: center;
    font-size: 14px;
    line-height: 2.3;
    margin-top: 24px;
  }

  .thanks-btn {
    font-size: 14.5px;
    font-weight: 500;
    margin-top: 35px;
    margin-bottom: 10px;
  }

}

@media screen and (min-width: 640px) {
  /* タブレット用レイアウト 640px以上の範囲に収めるデザインはこの中に記述 */
  /*==============================================================
    　　TB_入力フォーム
  ==============================================================*/
  /*======== 電話 ========*/
  .tel-box {
    margin: 0 82px;
  }

  .tel-item {
    padding: 50px;
    border-radius: 50px;
  }

  .tel-item__title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 24px;
  }

  .tel-item__title .tb-none {
    display: none;
  }

  .tel-item__title .target {
    margin-left: -20px;
  }

  .contact-tel .tel-link a {
    font-size: 44px;
    font-weight: 600;
  }

  .con-bg {
    margin: 0 82px 120px;
    padding: 50px;
    border-radius: 50px;
  }

  /* コンテンツ全体 */
  .form-box,
  .info-box {
    margin-top: 16px;
  }

  .form-item,
  .info-item {
    padding: 0 0 18px;
  }

  .form-item label,
  .info-item dt {
    align-content: center;
  }

  .form-item.message label {
    align-content: start;
    padding-top: 14px;
  }

  .form-item textarea {
    height: 200px;
    max-width: none;
  }

  .select-box::after {
    right: 20px;
  }


  .privacy-box {
    margin-top: 40px;
  }

  .agree,.check {
    font-size: 16px;
    line-height: 1.8;
  }


  /* ==================== エラーメッセージ ================== */
  .error-message {
    margin-top: 7px;
    grid-column: 2;
    grid-row: 2;
  }

  /* ボタン */
  .contact-btn {
    width: 330px;
    height: 60px;
    margin: 56px auto 0;
  }
  .contact-btn__inner {
    column-gap: 18px;
  }
  .contact-btn__icon-mail {
    height: 22px !important;
    margin-top: 0.5px;
  }
  .contact-btn__text {
    font-size: 18px;
    margin-top: -2px;
  }
  .contact-btn__icon-arrow {
    right: 22px;
    height: 12px;
  }

  /*==============================================================
    　　TB_確認画面
  ==============================================================*/
  .info-item dd,
  .info-item dt {
    font-size: 16px;
    line-height: 2;
  }

  .info-item.message dt {
    align-content: start;
  }

  .back-btn {
    line-height: 2;
  }

  /*==============================================================
    　　TB_完了画面
  ==============================================================*/
  .thanks-title {
    font-size: 28px;
    margin-top: 34px;
  }

  .thanks-text {
    font-size: 16px;
    margin-top: 40px;
  }

  .thanks-btn {
    font-size: 16px;
    margin-top: 40px;
  }


}

@media screen and (min-width: 1024px) {
  /* パソコン用レイアウト 1024px以上の範囲に収めるデザインはこの中に記述 */
  /*==============================================================
    　　PC_入力フォーム
  ==============================================================*/
  /*======== 電話 ========*/
  .tel-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    margin: 0 118px;
  }

  .tel-item {
    padding: 50px;
  }

  .tel-item__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
  }

  .tel-item__title .tb-none {
    display: block;
  }

  .contact-tel .tel-link a {
    font-size: 50px;
    font-weight: 600;
  }

  .con-bg {
    margin: 0 118px 160px;
    padding: 60px 50px 80px;
  }

  .contact-lead {
    margin-bottom: 30px;
  }

  .form-item,
  .info-item {
    grid-template-columns: 220px auto;
    column-gap: 20px;
  }

  /*==============================================================
    　　PC_確認画面
  ==============================================================*/
  .info-item dt {
    padding-left: 0;
  }

  .back-btn {
    font-size: 14px;
    margin-top: 26px;
  }


  /*==============================================================
    　　PC_完了画面
  ==============================================================*/
  .thanks-title {
    font-size: 32px;
    margin-top: 40px;
  }

  .thanks-text {
    margin-top: 50px;
  }

  .thanks-btn {
    margin-top: 55px;
    margin-bottom: 10px;
    font-size: 16px;
  }


}

@media screen and (min-width: 1400px) {
  /* PC全画面用レイアウト 1400px以上の範囲に収めるデザインはこの中に記述 */
  /*==============================================================
    　　PC-gib_入力フォーム
  ==============================================================*/
  /*======== 電話 ========*/
  .tel-box {
    max-width: 1080px;
    margin: 0 auto;
  }

  .tel-item {
    padding: 50px 0 50px 10px;
  }

  .tel-item__title .tb-none {
    display: none;
  }

  .tel-link a {
    letter-spacing: 0.08em;
  }

  .con-bg {
    max-width: 1080px;
    margin: 0 auto 160px;
  }

  /*======== アニメーション ========*/
  .agree a {
    transition: all .5s;
  }
  .agree a:hover {
    opacity: 0.6;
  }

  /* ボタン */
  .contact-btn,
  .contact-btn__icon-mail,
  .contact-btn__icon-arrow {
    transition: all .5s;
  }

  .contact-btn:hover {
    background-color: var(--color-bg-white);
  }

  .contact-btn:hover .contact-btn__text {
    color: var(--color-text-sub);
  }

  .contact-btn:hover .contact-btn__icon-mail,
  .contact-btn:hover .contact-btn__icon-arrow {
    fill: var(--color-bg-sub) !important;
  }


  /*==============================================================
    　　PC-gib_確認画面
  ==============================================================*/
  /*======== アニメーション ========*/
  .back-btn a {
    transition: all .5s;
  }

  .back-btn a:hover {
    opacity: 0.6;
  }

  /*==============================================================
    　　PC-gib_完了画面
  ==============================================================*/


}