/* 問い合わせページ */

/* ぱんくずリスト */
nav.pankuzu {
  margin: 24px auto;
  height: auto;
}

nav.pankuzu ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  line-height: 2;
}

nav.pankuzu li {
  font-size: 12px;
}

nav.pankuzu li:not(:last-child)::after {
  content: '/';
  padding: 0 0.5em;
}

nav.pankuzu a {
  color: #426599;
  text-decoration: underline;
}

nav.pankuzu a:hover {
  color: #222;
  text-decoration: none;
  opacity: 1;
}

/* お問い合わせページ共通 */
main#contact {
  max-width: 1064px;
  padding: 96px 20px 80px;
  margin: 0 auto;
}

#contact section {
    margin-bottom: 40px;
}

#contact h1 {
    margin-bottom: 9px;
    margin-top: 2rem;
    font-size: 24px;
}

#contact h2 {
    margin-bottom: 0;
    font-size: 24px;
}

#contact h3 a {
    font-weight: 700;
}

#contact h3 img {
    margin-left: 0.2rem;
}

#contact .faq-category ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem auto;
    max-width: 720px;
}

#contact .faq-category li {
    width: 10rem;
    height: 2rem;
    line-height: 1.8;
    background-color: #ffffff;
    border: 2px solid #222222;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#contact .faq-category li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    width: 100%;
    height: 100%;
}

#contact .faq-category li:hover {
    color: #868686;
    border: 2px solid #868686;
}

#contact .faq-category li a:hover {
    color: #868686;
}

#contact .showroom-wrap {
    display: flex;
    margin: 1rem 0;
    justify-content: space-between;
}

#contact .showroom-wrap p {
    margin: 0;
}

#contact .showroom-titile-b {
    font-size: 1rem;
    font-weight: 700;
}

/* お問い合わせフォーム */
#contact .form-base {
    background-color: #F2F2F2;
    margin: 2rem auto;
    padding: 56px 20px;
}

#contact .request {
    max-width: 800px;
    margin: 0 auto;
}

#contact .form-group {
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
    height: auto;
    align-items: center;
}

#contact .form-group.textarea {
    margin-bottom: 1rem;
    height: auto;
    align-items: normal;
}    

#contact .form-base dt {
    width: 200px;
    margin: 0;
    font-weight: 700;
}

#contact .form-base dt span.label-required {
    color: #EA6646;
    font-size: 12px;
    margin-left: 0.5rem;
}

#contact .form-base dt span.label-note {
    font-weight: 400;
    font-size: 12px;
}

#contact .form-base dd {
    width: calc(100% - 224px);
    word-wrap: break-word;
}

#contact .form-base dd.sub.zip,
#contact .form-base dd.sub.tel,
#contact .form-base dd.sub.fax {
    width: auto;
    display: flex;
}

#contact label {
    font-weight: 700;
}    

#contact .form-base dd.sub.zip input#zip2 {
    width: 100px;
}

#contact .form-base dd.sub.zip input#zip1,
#contact .form-base dd.sub.tel input,
#contact .form-base dd.sub.fax input {
    width: 80px;
}

#contact form input {
    background-color: #fff;
    border: 1px solid #A3A3A3;
    border-radius: 8px;
    width: 100%;
    height: 40px;
    padding: 0 0.5rem;
}

/* 入力済みの項目の自動背景色を削除 */
input:-webkit-autofill {
    background-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}

#contact form select {
    background-color: #fff;
    border: 1px solid #A3A3A3;
    border-radius: 8px;
    width: 100%;
    height: 40px;
    padding: 0 0.5rem;
}

#contact textarea {
    background-color: #fff;
    border: 1px solid #A3A3A3;
    border-radius: 8px;
    width: 100%;
    height: 200px;
    padding: 0.5rem;
    line-height: 1.3;
}

#contact form input::placeholder{
    padding: 0 0.5rem;
}

#contact form .hyphen {
    font-size: 20px;
    font-weight: 300;
    line-height: 40px;
    color: #4D4D4D;
    margin: 0 4px;
}

#contact p {
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

#contact .autofill-address-btn {
    width: 126px;
    height: 40px;
    background-color: #d9d9d9;
    border: none;
    margin-left: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

#contact .autofill-address-btn:hover {
    color: #868686;
}

#contact .form-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

#contact .form-button .clear {
    background-color: #fff;
    border: 2px solid #222;
    width: 146px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
}

#contact .form-button .clear:hover {
    color: #868686;
    border: 2px solid #868686;
    cursor: pointer;
}

#contact .form-button #confirmBtn {
    background-color: #d9d9d9;
    color: #222;
    border: none;
    width: 264px;
    height: 48px;
    border-radius: 8px;
    cursor: not-allowed;
    transition: all 0.3s;
    pointer-events: none;
}

#contact .form-button #confirmBtn.ready {
    background-color: #426599;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

#contact .form-button #confirmBtn.ready:hover {
    background-color: #668ABE;
}

#contact .form_list {
    list-style: none;
}

/* バリデーション */
#contact form input.is-error,
#contact form input.is-error:-webkit-autofill {
    border: 1px solid #EA6646;
    background-color: #fdede9 !important;
    -webkit-box-shadow: 0 0 0 1000px #fdede9 inset !important;
}


#contact form select.is-error,
#contact form textarea.is-error{ 
    border: 1px solid #EA6646;
    background-color: #fdede9;
}

/* 問い合わせ入力内容確認画面 */
#confirm {
    display: none;
}

#contact .confirm-data {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
}

#contact .confirm-data dd {
    font-weight: 700;
}

#contact .confirm-data dd.gray {
    color: #ccc;
}

#contact .g-recaptcha-wrap {
    text-align: center;
    margin-bottom: 20px;
}

#contact .g-recaptcha-note {
    font-size: 14px;
    margin-bottom: 10px;
}

#contact .g-recaptcha {
    display: inline-block;
}

#contact .g-recaptcha-note.is-error {
    color: #EA6646;
    font-weight: 700;
}

#contact .g-recaptcha.is-error {
    border: 1px solid#EA6646;
}



/* 送信完了/送信エラーのh2 */
#contact h1.complete-message,
#contact h1.complete-error-message{
    margin-top: 60px;
}

/* confirm 入力へ戻るボタン */
#contact .form-button .back-button{
    width: 184px;
    height: 48px;
    background-color: #fff;
    border: 2px solid #222;
    border-radius: 8px;
    color: #222;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* complete ホームへ戻るボタン */
#contact.contact-complete .form-button {
    margin-top: 46px;
}

#contact .form-button .back-home-button {
    width: 298px;
    height: 56px;
    background-color: #fff;
    border: 2px solid #222;
    border-radius: 8px;
    color: #222;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#contact .form-button .back-button:hover,
#contact .form-button .back-home-button:hover ,
#contact .form-button .back-form-button:hover {
    color: #868686;
    border: 2px solid #868686;
    cursor: pointer;
}

#contact .form-button .submit-button {
    width: 184px;
    height: 48px;
    background-color: #426599;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#contact .form-button .submit-button:hover {
    background-color: #668ABE;
}

/* 送信エラー画面 入力フォームへ戻るボタン */
#contact a.back-form-button{
    display: flex;
    width: 298px;
    height: 56px;
    background-color: #fff;
    border: 2px solid #222;
    border-radius: 8px;
    color: #222;
    font-size: 1rem;
    text-decoration: none;
    justify-content: center;
    align-items: center;
}

#contact a.back-form-button:hover{
    color: #868686;
    border: 2px solid #868686;
}

#contact .complete-page-contact-area {
    margin: 2rem auto 0;
    max-width: 320px;
}

#contact .complete-page-contact-area .contact-title {
    font-size: 16px;
}

#contact .complete-page-contact-area .reception-time {
    font-size: 12px;
}

#contact .complete-page-contact-area .showroom-list-item {
    display: flex;
    justify-content: space-between;
}

#contact .complete-page-contact-area .showroom-list-item dt {
    font-weight: 700;
    width: 60px;
    min-width: auto;
    font-size: 14px;
    margin: 0;
}

#contact .complete-page-contact-area .showroom-list-item dd {
    margin: 0;
    width: 120px;
    font-size: 14px;
}

/*メディアクエリ 1024px以下*/
@media (max-width:1024px) {
  main#contact {
    padding-top: 64px;
  }

  #contact .showroom-wrap p {
    font-size: 1.56vw;
  }
}

/*メディアクエリ 768px以下*/
@media (max-width: 768px) {
    main#contact {
        padding: 64px 15px;
    }

    #contact section {
        margin-bottom: 24px;
    }
    
    #contact .displaynone-sm {
        display: none;
    }

    #contact h3 {
        margin-bottom: 0;
    }

    #contact h3 img {
        width: 14px;
        padding-bottom: 0;
    }

    #contact .showroom-wrap p {
        font-size: 14px;
    }

    #contact .faq-category li {
        width: 46%;
    }

    #contact .showroom-wrap {
        flex-direction: column;
        gap: 16px;
        margin: 1rem 0;
    }

    /* お問い合わせフォーム */
    #contact .form-base {
        padding: 40px 20px;
    }

    #contact .form-group {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 4px;;
    }

    #contact .form-base dt {
        width: 100%;
    }

    #contact .form-base dt span.label-required {
        font-size: 12px;
    }

    #contact .form-base dd {
        width: 100%;
    }

    #contact form input,
    #contact form select,
    #contact form textarea {
        border-radius: 4px;
    }

    #contact .form-base dd.sub.zip input#zip2,
    #contact .form-base dd.sub.tel input,
    #contact .form-base dd.sub.fax input {
        width: 80px;
    }

    #contact .form-base dd.sub.zip input#zip1 {
        width: 60px;
    }

    #contact .autofill-address-btn {
        font-size: 14px;
        width: 100px;
    }


    #contact p {
        margin-top: 0.8rem;
        font-size: 14px;
    }

    #contact .form-button {
        gap: 10px;
    }

    #contact .form-button .clear {
        font-size: 14px;
        width: 90px;
        height: 38px;
        border-radius: 4px;
    }
    
    #contact .form-button #confirmBtn {
        font-size: 14px;
        width: 200px;
        height: 38px;
        border-radius: 4px;
    }

    /* 問い合わせ入力内容確認画面 */
    #contact .confirm-data dt span {
        display: none;
    }

    #contact .confirm-data dt {
        width: 114px;
    }
    
    #contact .confirm-data dd {
        width: calc(100% - 130px);
    }

    /* confirm 入力へ戻るボタン */
    #contact .form-button .back-button{
        width: 140px;
        height: 38px;
        border-radius: 4px;
    }

    #contact .form-button .submit-button {
        height: 38px;
        border-radius: 4px;
    }


    /* complete ホームへ戻るボタン */
    #contact .form-button .back-home-button {
        width: 200px;
        height: 38px;
        border-radius: 4px;
    }

    /* 送信エラー画面 入力フォームへ戻るボタン */
    /* 送信完了/送信エラーのh1 */
    #contact h1.complete-message,
    #contact h1.complete-error-message{
        margin-top: 24px;
        font-size: 16px;
    }

    #contact a.back-form-button{
        height: 38px;
        border-radius: 4px;
    }

}