html {
  font-size: 10px;
}

#contact-body {
  background: #F6F4F2;
}

#contact.--new {
  width: 100%;
  background: #F6F4F2;
}

/* ===== メインタイトル ===== */
#contact.--new .main-title {
  background: url("../images/new/main-title_bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: 328px;
}
@media (max-width: 768px) {
  #contact.--new .main-title {
    height: auto;
    padding-block: 10%;
  }
}

#contact.--new .main-title__wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#contact.--new .main-title .en {
  display: block;
  color: #5C5C5C;
  font-family: Abel;
  font-size: 6.4rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
@media (max-width: 1024px) {
  #contact.--new .main-title .en { font-size: 3.2rem; }
}
@media (max-width: 768px) {
  #contact.--new .main-title .en { font-size: 2.4rem; }
}

#contact.--new .main-title .jp {
  color: #8A7B7F;
  font-family: "Noto Sans JP";
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.33;
  display: flex;
  align-items: center;
  gap: 8px;
}

#contact.--new .main-title .jp::before {
  content: "";
  display: block;
  border-radius: 1px;
  background: #E85471;
  width: 4px;
  height: 4px;
}

/* ===== パンくず ===== */
#contact.--new #panlistid {
  display: block !important;
  margin: 0;
  padding: 0;
  padding-bottom: 48px;
  background: transparent !important;
}
#contact.--new #panlistid ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP";
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.71;
}
/* bcn_display()はspanで出力する */
#contact.--new #panlistid ul > span {
  color: #A19182 !important;
}
#contact.--new #panlistid ul a,
#contact.--new #panlistid ul a span {
  color: #A19182 !important;
  text-decoration: none;
}
#contact.--new #panlistid ul .arrow {
  color: #A19182 !important;
}
@media (max-width: 767px) {
  #contact.--new #panlistid {
    padding-bottom: 6%;
  }
}

/* ===== バナー ===== */
.contact-banner {
  position: relative;
  background-image: url('../images/contact/con01-bg01_new.jpg');
  background-size: cover;
  background-position: center;
  height: 640px;
}
@media (max-width: 767px) {
  .contact-banner { height: 320px; }
}

.contact-banner::before,
.contact-banner::after {
  content: "";
  position: absolute;
  top: 64px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

.contact-banner::before {
  left: 0;
  width: 345px;
  height: 438px;
  background-image: url('../images/contact/con01-deco01_new.png');
}

.contact-banner::after {
  right: 0;
  width: 345px;
  height: 467px;
  background-image: url('../images/contact/con01-deco02_new.png');
}

@media (max-width: 767px) {
  .contact-banner::before,
  .contact-banner::after {
    top: 50%;
    transform: translateY(-50%);
    width: 25%;
    height: 40%;
  }
}

.contact-banner__catch {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: 463px;
  height: auto;
  z-index: 1;
}
@media (max-width: 767px) {
  .contact-banner__catch {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 80%;
  }
}

/* ===== ご相談案内 ===== */
.contact-guide {
  padding-block: 80px;
}
@media (max-width: 767px) {
  .contact-guide { padding-block: 12%; }
}

.contact-guide__card {
  background: #FFF;
  border: 1px solid #EEE6DF;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
@media (max-width: 767px) {
  .contact-guide__card { padding: 8%; gap: 16px; }
}

.contact-guide__en {
  color: #D3C8BE;
  font-family: Abel, sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}

.contact-guide__ttl {
  color: #5C5C5C;
  font-family: "Noto Sans JP";
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.43;
  letter-spacing: 0.04em;
  text-align: center;
}
@media (max-width: 767px) {
  .contact-guide__ttl { font-size: 1.8rem; }
}

.contact-guide__divider {
  border: none;
  border-top: 1px solid #D3C8BE;
  width: 100%;
  margin: 0;
}

.contact-guide__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-guide__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5C5C5C;
  font-family: "Noto Sans JP";
  font-size: 2.0rem;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .contact-guide__list li { font-size: 1.4rem; }
  .contact-guide__list li::before { width: 24px; height: 24px; }
}

.contact-guide__list li::before {
  content: "";
  flex-shrink: 0;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background-color: #E85471;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 31 31'%3E%3Cpath d='M8 16l5 5 10-10' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
}

/* ===== フォームセクション ===== */
.contact-form-sec {
  padding-block: 80px 120px;
  background-image: url('../images/contact/con03-bg01_new.jpg');
  background-size: cover;
  background-position: center;
}
@media (max-width: 767px) {
  .contact-form-sec { padding-block: 12% 16%; }
}

.contact-form-sec__ttl-wrap {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}
@media (max-width: 767px) {
  .contact-form-sec__ttl-wrap { margin-bottom: 6%; }
}

.contact-form-sec__ttl-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #D3C8BE;
}

.contact-form-sec__ttl {
  position: relative;
  display: inline-block;
  z-index: 1;
  background: #E4DED9;
  border-radius: 50px;
  padding: 16px 48px;
  color: #5C5C5C;
  font-family: "Noto Sans JP";
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .contact-form-sec__ttl { font-size: 1.8rem; padding: 12px 24px; }
}

/* ===== タブ ===== */
.contact-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 767px) {
  .contact-tabs { flex-direction: column; gap: 16px; }
}

.contact-tabs__btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #A19182;
  border: none;
  border-radius: 8px;
  color: #FFF;
  font-family: "Noto Sans JP";
  font-size: 1.8rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.contact-tabs__btn.is-active {
  opacity: 1;
}

.contact-tabs__btn:hover {
  opacity: 0.85;
  color: #FFF;
}

.contact-tabs__btn::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.contact-tabs__btn[data-tab="visit"]::before {
  background-image: url('../images/contact/tab-icon-visit.svg');
}

.contact-tabs__btn[data-tab="document"]::before {
  background-image: url('../images/contact/tab-icon-document.svg');
}

.contact-tabs__btn::after {
  content: "";
  flex-shrink: 0;
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background-color: #BDAB9A;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* フォーム注意書き */
.contact-form-notice {
  margin-bottom: 32px;
}

.contact-form-notice ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-form-notice li {
  color: #5C5C5C;
  font-family: "Noto Sans JP";
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.contact-form-notice li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* タブパネル */
.contact-tab-panel {
  display: none;
}

.contact-tab-panel.is-active {
  display: block;
}

/* ===== MW WP Form ===== */
#contact.--new .mw_wp_form table {
  width: 100%;
  border-collapse: collapse;
}

#contact.--new .mw_wp_form tr {
  border-bottom: 1px solid #EDE8E5;
}

#contact.--new .mw_wp_form tr[style*="display:none"] {
  display: none !important;
}

#contact.--new .mw_wp_form th {
  width: 280px;
  padding: 20px 16px 20px 0;
  font-size: 1.6rem;
  font-weight: 400;
  color: #463A3D;
  text-align: left;
  vertical-align: middle;
  line-height: 1.5;
  font-family: "Noto Sans JP";
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* 任意バッジ（デフォルト） */
#contact.--new .mw_wp_form th::after {
  content: "任意";
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 84px;
  height: 32px;
  background: #BCBCBC;
  color: #FFF;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 21px;
  white-space: nowrap;
}

/* 必須バッジ */
#contact.--new .mw_wp_form th.required::after,
#contact.--new .mw_wp_form th.th3::after {
  content: "必須";
  background: #A19182;
}

#contact.--new .mw_wp_form td {
  padding: 16px 0 16px 24px;
  vertical-align: middle;
}

/* テキスト入力・メール */
#contact.--new .mw_wp_form input[type="text"],
#contact.--new .mw_wp_form input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #D3C8BE;
  border-radius: 4px;
  background: #FFF;
  font-size: 1.6rem;
  color: #463A3D;
  font-family: "Noto Sans JP", sans-serif;
  box-sizing: border-box;
}

/* テキストエリア */
#contact.--new .mw_wp_form textarea {
  width: 100%;
  min-height: 144px;
  padding: 12px 16px;
  border: 1px solid #D3C8BE;
  border-radius: 4px;
  background: #FFF;
  font-size: 1.6rem;
  color: #463A3D;
  font-family: "Noto Sans JP", sans-serif;
  resize: vertical;
  box-sizing: border-box;
}

#contact.--new .mw_wp_form input::placeholder,
#contact.--new .mw_wp_form textarea::placeholder {
  color: #BCBCBC;
}

/* チェックボックス */
#contact.--new .mw_wp_form .mwform-checkbox-field {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 4px;
}

#contact.--new .mw_wp_form .mwform-checkbox-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  color: #463A3D;
  font-family: "Noto Sans JP";
}

#contact.--new .mw_wp_form .mwform-checkbox-field input[type="checkbox"] {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  accent-color: #A19182;
  cursor: pointer;
}

/* td内の注記テキスト */
#contact.--new .mw_wp_form td p {
  font-size: 1.3rem;
  color: #8A7B7F;
  margin-top: 8px;
  line-height: 1.6;
}

/* プライバシーポリシー */
#contact.--new .mw_wp_form .priv-text {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #E4DED9;
  border-radius: 4px;
  padding: 16px;
  background: #FFF;
  font-size: 1.4rem;
  line-height: 2.4rem;
  color: #463A3D;
  margin: 40px 0 24px;
}

#contact.--new .mw_wp_form .priv-text .priv-ttl,
#contact.--new .mw_wp_form .priv-text .tt {
  font-weight: 700;
  margin-top: 16px;
  display: block;
}

#contact.--new .mw_wp_form .priv {
  text-align: center;
  margin-bottom: 40px;
}

#contact.--new .mw_wp_form .priv label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  color: #463A3D;
  cursor: pointer;
  font-family: "Noto Sans JP";
}

/* 送信ボタン */
#contact.--new .mw_wp_form .btn-box {
  text-align: center;
}

#contact.--new .mw_wp_form .btn-confirm button {
  width: 400px;
  height: 56px;
  background: #A19182 !important;
  color: #FFF !important;
  border: none;
  font-size: 1.6rem;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: opacity 0.3s;
  border-radius: 4px;
  text-indent: 0;
}

#contact.--new .mw_wp_form .btn-confirm button:hover {
  opacity: 0.85;
}

/* 確認画面ボタン */
#contact.--new .mw_wp_form .btn-send {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

#contact.--new .mw_wp_form .btn-send button,
#contact.--new .mw_wp_form .btn-send input[type="button"],
#contact.--new .mw_wp_form .btn-send input[type="submit"] {
  width: 200px;
  height: 56px;
  border: none;
  font-size: 1.6rem;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: opacity 0.3s;
  border-radius: 4px;
  background-image: none !important;
  text-indent: 0 !important;
}

/* 戻るボタン */
#contact.--new .mw_wp_form .btn-send .btn-item:first-child button,
#contact.--new .mw_wp_form .btn-send .btn-item:first-child input {
  background: #FFF !important;
  color: #A19182 !important;
  border: 1px solid #A19182 !important;
}

/* 送信ボタン */
#contact.--new .mw_wp_form .btn-send .btn-item:last-child button,
#contact.--new .mw_wp_form .btn-send .btn-item:last-child input {
  background: #A19182 !important;
  color: #FFF !important;
}

#contact.--new .mw_wp_form .btn-send button:hover,
#contact.--new .mw_wp_form .btn-send input:hover {
  opacity: 0.85;
}

/* SP対応 */
@media (max-width: 767px) {
  #contact.--new .mw_wp_form table,
  #contact.--new .mw_wp_form tbody,
  #contact.--new .mw_wp_form tr,
  #contact.--new .mw_wp_form th,
  #contact.--new .mw_wp_form td {
    display: block;
    width: 100%;
  }

  #contact.--new .mw_wp_form th {
    padding: 16px 0 8px;
    border-bottom: none;
  }

  #contact.--new .mw_wp_form td {
    padding: 0 0 16px;
  }

  #contact.--new .mw_wp_form .btn-confirm button {
    width: 100%;
  }

  #contact.--new .mw_wp_form .btn-send {
    flex-direction: column;
    align-items: stretch;
  }

  #contact.--new .mw_wp_form .btn-send button,
  #contact.--new .mw_wp_form .btn-send input[type="button"],
  #contact.--new .mw_wp_form .btn-send input[type="submit"] {
    width: 100%;
  }
}
