/* RENOVIA Contact Ver.5.6 — scoped to contact page */
.p-contact {background:#fff;color:#292930;overflow:hidden}
.rv-contact-hero{background:linear-gradient(115deg,#faf5f1 0%,#fff9f5 55%,#f7e5e4 100%);border-bottom:1px solid #efdcd8;padding:clamp(72px,8vw,132px) 24px 70px}
.rv-contact-wrap{max-width:1200px;margin:auto;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);align-items:center;gap:48px}
.rv-contact-eyebrow{font-size:13px;letter-spacing:.2em;color:#9e2043;font-weight:700;margin:0 0 20px}
.rv-contact-hero h1{font-size:clamp(32px,4.3vw,62px);line-height:1.38;letter-spacing:.025em;margin:0 0 27px;color:#25262d;font-weight:800}
.rv-contact-hero h1 span{color:#922643}
.rv-contact-lead{font-size:clamp(15px,1.3vw,18px);line-height:2;max-width:720px;margin:0 0 26px}
.rv-contact-hero__links{display:flex;flex-wrap:wrap;gap:12px}
.rv-contact-hero__links a{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:54px;padding:12px 24px;border-radius:999px;font-weight:700;text-decoration:none;transition:opacity .2s}
.rv-contact-main-btn{background:#9e2243;color:white!important}.rv-contact-secondary-btn{background:white;color:#912443!important;border:1px solid #e5bfc6}
.rv-contact-hero__links a:hover{opacity:.8}
.rv-contact-response{font-size:13px;color:#755e61;line-height:1.8;margin:18px 0 0}
.rv-contact-hero__mascot{position:relative;min-height:300px;display:flex;align-items:center;justify-content:center}
.rv-contact-hero__mascot img{width:100%;max-height:400px;object-fit:contain;filter:drop-shadow(0 14px 22px rgba(72,21,36,.12))}
.rv-contact-hero__mascot-fallback{font-size:42px;color:#a22a4a;font-weight:700}
.rv-contact-hero__bubble{position:absolute;right:0;top:0;background:#fff;border:1px solid #eac7cb;border-radius:20px;padding:13px 18px;color:#9e2243;font-size:15px;font-weight:700;box-shadow:0 8px 24px #8b45641b;line-height:1.5}
.rv-contact-section-intro{max-width:1200px;margin:70px auto 25px;padding:0 24px}.rv-contact-section-intro .rv-contact-eyebrow{margin:0 0 9px}.rv-contact-section-intro h2{font-size:clamp(23px,2.7vw,36px);margin:0}
.p-contact .p-contact__section-1{padding-top:0}
.p-contact .p-contact__section-1 .l-container-2{max-width:1248px;margin:auto;box-sizing:border-box;padding:0 24px 85px}
.p-contact .p-contact__section-1__left__item{background:#fff;border:1px solid #ebd7d3;border-radius:20px;overflow:hidden}
.p-contact .p-contact__section-1__right__form{background:#fff;border:1px solid #ebd7d3;border-radius:20px;padding:clamp(18px,3vw,36px)}
.p-contact #rv-contact-form{scroll-margin-top:100px;min-width:0}
.p-contact input:not([type=radio]):not([type=checkbox]):not([type=submit]),.p-contact select,.p-contact textarea{max-width:100%;box-sizing:border-box}
@media(max-width:800px){.rv-contact-hero{padding:60px 18px 44px}.rv-contact-wrap{grid-template-columns:minmax(0,1fr);gap:16px}.rv-contact-hero__mascot{min-height:0;max-width:310px;margin:8px auto 0}.rv-contact-hero__mascot img{max-height:250px}.rv-contact-hero__bubble{font-size:12px;right:0}.rv-contact-hero__links a{width:100%}.rv-contact-section-intro{margin-top:46px;padding:0 18px}.p-contact .p-contact__section-1 .l-container-2{padding:0 18px 55px}.p-contact .p-contact__section-1__right__form{padding:18px}}

/* =========================================================
   RENOVIA Contact PC Optimize Final
   PC表示のみ調整 / スマホ表示には影響させない
========================================================= */
@media (min-width: 801px) {

  /* ------------------------------
     全体レイアウト
  ------------------------------ */
  .p-contact .rv-contact-section-intro {
    max-width: 1120px !important;
    margin: 64px auto 24px !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
  }

  .p-contact .rv-contact-section-intro .rv-contact-eyebrow {
    font-size: 11px !important;
    letter-spacing: .22em !important;
    margin: 0 0 8px !important;
  }

  .p-contact .rv-contact-section-intro h2 {
    font-size: 28px !important;
    line-height: 1.45 !important;
    letter-spacing: .04em !important;
    margin: 0 !important;
  }

  .p-contact .p-contact__section-1 .l-container-2 {
    max-width: 1120px !important;
    display: grid !important;
    grid-template-columns: 270px minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
    padding: 0 24px 88px !important;
    box-sizing: border-box !important;
  }

  .p-contact .p-contact__section-1__left,
  .p-contact .p-contact__section-1__right {
    min-width: 0 !important;
  }

  /* ------------------------------
     左カラム：電話・LINE
  ------------------------------ */
  .p-contact .p-contact__section-1__left {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .p-contact .p-contact__section-1__left__item {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 18px !important;
    border: 1px solid #ebd7d3 !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 電話カード */
  .p-contact .p-contact__section-1__left__item:nth-of-type(1) {
    background: #fff !important;
    display: block !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(1) > p {
    margin: 0 0 18px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    letter-spacing: .04em !important;
    color: #292930 !important;
    text-align: left !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(1) .p-contact__section-1__left__item__bottom {
    display: block !important;
    margin: 0 !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(1) .p-contact__section-1__left__item__bottom a[href^="tel"] {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.045em !important;
    font-weight: 700 !important;
    color: #292930 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(1) .p-contact__section-1__left__item__bottom span {
    display: block !important;
    margin-top: 12px !important;
    font-size: 10px !important;
    line-height: 1.6 !important;
    letter-spacing: .02em !important;
    color: #292930 !important;
  }

  /* LINEカード */
  .p-contact .p-contact__section-1__left__item:nth-of-type(2) {
    background: #3f8f62 !important;
    color: #fff !important;
    padding: 18px !important;
    display: block !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(2) .p-contact__section-1__left__item__top {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 22px !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(2) .p-contact__section-1__left__item__top img {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(2) .p-contact__section-1__left__item__top p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    letter-spacing: .04em !important;
    color: #fff !important;
    font-weight: 700 !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(2) .p-contact__section-1__left__item__bottom {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(2) .p-contact__section-1__left__item__bottom p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    letter-spacing: .04em !important;
    color: #fff !important;
    font-weight: 700 !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(2) .p-contact__section-1__left__item__bottom br {
    display: none !important;
  }

  /* LINEカードの丸矢印 */
  .p-contact .p-contact__section-1__left__item:nth-of-type(2) .c-btn-2 {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(2) .c-btn-2 span {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(2) .c-btn-2 img {
    position: static !important;
    display: block !important;
    width: 12px !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  .p-contact .p-contact__section-1__left__item:nth-of-type(2) .c-btn-2 img:nth-child(2) {
    display: none !important;
  }

  /* ------------------------------
     フォームカード
  ------------------------------ */
  .p-contact .p-contact__section-1__right {
    width: 100% !important;
  }

  .p-contact .p-contact__section-1__right__form {
    width: 100% !important;
    padding: 32px 36px 38px !important;
    border: 1px solid #ebd7d3 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  .p-contact .p-contact__section-1__right .form,
  .p-contact .p-contact__section-1__right .form__list,
  .p-contact .p-contact__section-1__right .confirm,
  .p-contact .p-contact__section-1__right .confirm__list {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .p-contact .p-contact__section-1__right .form__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .p-contact .p-contact__section-1__right .form__list__item {
    margin: 0 0 24px !important;
    padding: 0 !important;
  }

  .p-contact .p-contact__section-1__right .form__list__item:last-child {
    margin-bottom: 0 !important;
  }

  .p-contact .p-contact__section-1__right .form__list__item label {
    display: block !important;
    margin: 0 0 8px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    letter-spacing: .04em !important;
    font-weight: 700 !important;
    color: #292930 !important;
  }

  .p-contact .p-contact__section-1__right .form__list__item label.required::after {
    color: #d8344a !important;
  }

  .p-contact .p-contact__section-1__right .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
  }

  /* 入力欄 */
  .p-contact .p-contact__section-1__right input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]),
  .p-contact .p-contact__section-1__right select,
  .p-contact .p-contact__section-1__right textarea {
    width: 100% !important;
    border: 1px solid #d8c7c4 !important;
    background: #fff !important;
    color: #292930 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  .p-contact .p-contact__section-1__right input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]),
  .p-contact .p-contact__section-1__right select {
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 15px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .p-contact .p-contact__section-1__right textarea {
    min-height: 150px !important;
    padding: 14px 15px !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    resize: vertical !important;
  }

  .p-contact .p-contact__section-1__right input::placeholder,
  .p-contact .p-contact__section-1__right textarea::placeholder {
    color: #9b9494 !important;
    opacity: 1 !important;
  }

  .p-contact .p-contact__section-1__right input:focus,
  .p-contact .p-contact__section-1__right select:focus,
  .p-contact .p-contact__section-1__right textarea:focus {
    border-color: #9e2243 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(158, 34, 67, .12) !important;
  }

  /* ------------------------------
     ファイルアップロード
  ------------------------------ */
  .p-contact .p-contact__section-1__right .codedropz-upload-wrapper {
    margin-top: 8px !important;
  }

  .p-contact .p-contact__section-1__right .codedropz-upload-handler,
  .p-contact .p-contact__section-1__right .codedropz-upload-container {
    min-height: 230px !important;
    height: 230px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  .p-contact .p-contact__section-1__right .codedropz-upload-inner {
    min-height: 230px !important;
    height: 230px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .p-contact .p-contact__section-1__right .codedropz-upload-inner h3,
  .p-contact .p-contact__section-1__right .codedropz-upload-inner span {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  .p-contact .p-contact__section-1__right .codedropz-btn-wrap a,
  .p-contact .p-contact__section-1__right .cd-upload-btn {
    min-width: 160px !important;
    height: 48px !important;
    padding: 0 24px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 48px !important;
  }

  /* ------------------------------
     入力フォーム下部：確認ボタン
  ------------------------------ */
  .p-contact .p-contact__section-1__right .form__btn {
    display: block !important;
    margin-top: 28px !important;
  }

  .p-contact .p-contact__section-1__right .form__btn p {
    margin: 0 0 14px !important;
    font-size: 13px !important;
    line-height: 1.9 !important;
    color: #292930 !important;
  }

  .p-contact .p-contact__section-1__right .form__btn p a {
    color: #292930 !important;
    text-decoration: underline !important;
  }

  /* 入力内容の確認ボタン：共通 */
  .p-contact .p-contact__section-1__right .form__btn input[type="button"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 0 24px !important;
    border-radius: 14px !important;
    border: none !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
    transition: background-color .2s ease, opacity .2s ease !important;
  }

  /* 未入力時：グレー */
  .p-contact .p-contact__section-1__right .form__btn input[type="button"]:disabled {
    background: #bdbdbd !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
  }

  /* 必須入力完了時：送信ボタンと同じ色 */
  .p-contact .p-contact__section-1__right .form__btn input[type="button"]:not(:disabled) {
    background: #a92f38 !important;
    color: #fff !important;
    cursor: pointer !important;
    opacity: 1 !important;
  }

  .p-contact .p-contact__section-1__right .form__btn input[type="button"]:not(:disabled):hover {
    opacity: .86 !important;
  }

  /* ------------------------------
     確認画面
  ------------------------------ */
  .p-contact .p-contact__section-1__right .confirm {
    flex-direction: column !important;
  }

  .p-contact .p-contact__section-1__right .confirm__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  .p-contact .p-contact__section-1__right .confirm__list__item {
    margin: 0 !important;
    padding: 0 !important;
  }

  .p-contact .p-contact__section-1__right .confirm__list__item > p:first-child {
    margin: 0 0 8px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #9b9494 !important;
    font-weight: 700 !important;
  }

  .p-contact .p-contact__section-1__right .confirm__list__item > p:last-child {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #292930 !important;
  }

  /* 確認画面ボタン：戻る・送信を同じサイズ */
  .p-contact .p-contact__section-1__right .confirm__btn {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    align-items: stretch !important;
    margin-top: 40px !important;
  }

  .p-contact .p-contact__section-1__right .confirm__btn input[type="button"],
  .p-contact .p-contact__section-1__right .confirm__btn input[type="submit"],
  .p-contact .p-contact__section-1__right .confirm__btn .wpcf7-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 0 24px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
    cursor: pointer !important;
  }

  /* 戻るボタン */
  .p-contact .p-contact__section-1__right .confirm__btn input[type="button"] {
    background: #fff !important;
    color: #292930 !important;
    border: 1px solid #d8c7c4 !important;
  }

  /* 送信ボタン */
  .p-contact .p-contact__section-1__right .confirm__btn input[type="submit"],
  .p-contact .p-contact__section-1__right .confirm__btn .wpcf7-submit {
    background: #a92f38 !important;
    color: #fff !important;
    border: none !important;
  }

  .p-contact .p-contact__section-1__right .confirm__btn input:hover {
    opacity: .86 !important;
  }

  /* Contact Form 7 スピナー位置調整 */
  .p-contact .p-contact__section-1__right .confirm__btn .wpcf7-spinner {
    margin: 0 !important;
  }
}
