/* =========================================================
  CONTACT PAGE
  slug: contact / template: page-contact.php
  沖縄らしさ・信頼感・問い合わせ導線を強化
========================================================= */
.lower-page--contact,
.contact-page {
  --contact-orange: #f47b20;
  --contact-deep-orange: #d94f00;
  --contact-red: #e9342f;
  --contact-yellow: #ffd34d;
  --contact-blue: #00a6d6;
  --contact-deep-blue: #0077a8;
  --contact-green: #16a35f;
  --contact-brown: #3f240f;
  --contact-cream: #fff8ec;
  --contact-soft: #fff1d2;
  --contact-shadow: 0 16px 38px rgba(74, 43, 19, .16);
  color: var(--contact-brown);
  overflow: hidden;
}

/* =========================================
   CONTACT THANKS
========================================= */
.contact-thanks {
  position: relative;
  overflow: hidden;
  padding: 96px 20px 112px;
  background: var(--contact-cream);
}

.contact-thanks__inner {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 64px 56px 58px;
  border: 3px solid var(--contact-orange);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--contact-shadow);
  text-align: center;
}

.contact-thanks__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--contact-red), var(--contact-orange));
  box-shadow: 0 10px 24px rgba(217, 79, 0, .25);
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.contact-thanks__title {
  margin: 0;
  color: var(--contact-brown);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.4;
}

.contact-thanks__message {
  margin: 28px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
}

.contact-thanks__note {
  margin: 24px auto 0;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--contact-soft);
  font-size: 15px;
  line-height: 1.9;
}

.contact-thanks__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  min-height: 64px;
  margin-top: 38px;
  padding: 14px 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--contact-red), var(--contact-orange));
  box-shadow: 0 9px 0 var(--contact-deep-orange);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-thanks__button:hover {
  transform: translateY(3px);
  box-shadow: 0 6px 0 var(--contact-deep-orange);
  color: #fff;
}

.contact-thanks__button:focus-visible {
  outline: 3px solid var(--contact-blue);
  outline-offset: 4px;
}

/* ノートPC */
@media (max-width: 1366px) and (min-width: 768px) {
    .contact-thanks,
    .contact-thanks__inner {
        height: 500px;
        min-height: 500px !important;
    }
}

@media screen and (max-width: 767px) {
  .contact-thanks {
    padding: 56px 16px 72px;
  }

  .contact-thanks__inner {
    padding: 42px 20px 40px;
    border-width: 2px;
    border-radius: 24px;
  }

  .contact-thanks__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    font-size: 32px;
  }

  .contact-thanks__title {
    font-size: 26px;
  }

  .contact-thanks__message {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.9;
  }

  .contact-thanks__note {
    margin-top: 20px;
    padding: 16px;
    font-size: 14px;
    text-align: left;
  }

  .contact-thanks__pc-br {
    display: none;
  }

  .contact-thanks__button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    margin-top: 30px;
    padding-inline: 24px;
    font-size: 16px;
  }
}

.contact-page img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px 16px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--contact-red), var(--contact-orange));
  color: #fff;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  box-shadow: 6px 6px 0 rgba(255, 211, 77, .85);
}

.contact-kicker::before,
.contact-kicker::after {
  content: "✦";
  font-size: 12px;
}

.contact-kicker--small {
  margin-bottom: 12px;
  font-size: 13px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 5px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(63, 36, 15, .18);
  opacity: .94;
}

.contact-btn--orange {
  background: linear-gradient(90deg, var(--contact-red), var(--contact-orange));
  color: #fff;
}

.contact-btn--white {
  background: rgba(255,255,255,.92);
  color: var(--contact-brown);
  border: 1px solid rgba(63,36,15,.16);
}

/* =========================
   CONTACT HERO
========================= */

.contact-hero {
  position: relative;
  width: 100vw;
  height: clamp(600px, calc(100vw * 500 / 1440), 680px);
  min-height: 600px !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: #061b28;
}

.contact-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.contact-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.contact-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.36) 34%,
      rgba(0, 0, 0, 0.14) 70%,
      rgba(0, 0, 0, 0.02) 100%
    );
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 2;
  display: block !important;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0 !important;
}

.contact-hero__content {
  position: absolute;
  left: 300px;
  top: 40%;
  z-index: 4;
  color: #fff;
  width: max-content;
  max-width: min(900px, 90vw);
}

.contact-hero__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-height: 38px;
  margin-bottom: 18px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(180deg, #ff8a35 0%, #f25b19 100%);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.contact-hero__title {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Mochiy Pop One", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(34px, 4vw, 82px);
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.72),
    2px 2px 0 rgba(0, 32, 58, 0.55);
}

.contact-hero__lead {
  margin: 0;
  color: #fff;
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.8;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 5px 12px rgba(0, 0, 0, 0.75);
}

/* ノートPC */
@media (max-width: 1366px) and (min-width: 768px) {
    .contact-hero,
    .contact-hero__inner {
        height: 500px;
        min-height: 500px !important;
    }
}

/* SP */
@media (max-width: 767px) {
  .contact-hero {
    height: 72svh;
    min-height: 520px !important;
  }

  .contact-hero__bg img {
    object-fit: cover;
    object-position: center center;
  }

  .contact-hero__inner {
    width: 100%;
    max-width: none;
  }

  .contact-hero__content {
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: none;
  }

  .contact-hero__label {
    height: 34px;
    min-height: 34px;
    margin-bottom: 14px;
    padding: 0 14px;
    font-size: 11px;
  }

  .contact-hero__title {
    font-size: clamp(30px, 5.5vw, 46px);
    line-height: 1.28;
    margin-bottom: 14px;
  }

  .contact-hero__lead {
    font-size: 12px;
    line-height: 1.8;
  }
}


.contact-heading-visual {
  position: relative;
  width: 100%;
  height: 207px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  text-align: center;
}

.contact-heading-visual__flower-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 230px;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.contact-heading-visual__flower-bg img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center top;
}

.contact-heading-visual__flower-bg::after {
  content: none;
}

.contact-heading-visual__inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.contact-heading-visual__subcopy {
  position: absolute;
  top: 90px;
  left: 0;
  width: 100%;
  margin: 0;
  transform: translateY(-50%);
  color: rgba(0, 0, 0, 0.8);
  font-family: "Mochiy Pop One", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 32px;
  line-height: normal;
  font-weight: 400;
}

.contact-heading-visual__title {
  position: absolute;
  top: 151px;
  left: 0;
  width: 100%;
  margin: 0;
  transform: translateY(-50%);
  color: #fb6727;
  font-family: "Noto Sans", sans-serif;
  font-size: 32px;
  line-height: normal;
  font-weight: 600;
}

@media (max-width: 767px) {
  .contact-heading-visual {
    height: 150px;
  }

  .contact-heading-visual__flower-bg {
    height: 150px;
  }

  .contact-heading-visual__inner {
    width: calc(100% - 32px);
    left: 0;
  }

  .contact-heading-visual__subcopy {
    top: 61px;
    font-size: 24px;
    line-height: 1.4;
  }

  .contact-heading-visual__title {
    top: 108px;
    font-size: 24px;
  }
}


/* =========================
   CONTACT BOTTOM VISUAL
========================= */
.contact-bottom-visual {
  position: relative;
  width: 100vw;
  height: 230px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: #fff8ef;
}

.contact-bottom-visual__flower-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.contact-bottom-visual__flower-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.contact-bottom-visual__flower-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.contact-bottom-visual__inner {
  position: relative;
  z-index: 3;
  width: 1120px;
  max-width: calc(100% - 48px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-bottom-visual__subcopy {
  margin: 0 0 10px;
  color: #1f1a17;
  font-family: "Mochiy Pop One", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.contact-bottom-visual__lead {
  margin: 0;
  color: #3e3936;
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.7;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .contact-bottom-visual {
    padding: 26px 16px 20px;
  }


  .contact-bottom-visual__subcopy {
    font-size: 24px;
    line-height: 1.5;
  }

  .contact-bottom-visual__lead {
    font-size: 12px;
    line-height: 1.7;
  }
}

/* =========================
   CONTACT FORM
========================= */

.contact-page .contact-visual {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 16px 0 88px;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

/* 上部説明文 */
.contact-page .contact-visual__message {
  position: relative;
  top: auto;
  left: auto;
  z-index: 3;

  width: min(460px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 0;
  transform: none;

  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
}

/* MW WP Formの外側 */
.contact-page .contact-visual > .mw_wp_form {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* PC版：フォーム全体 */
.contact-page .contact-form {
  position: relative;
  z-index: 3;
  top: auto;
  left: auto;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;

  width: min(460px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
  transform: none;
}

/* PC版：項目名＋入力欄 */
.contact-page .contact-form .form-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;

  width: 100%;
  margin: 0;
  padding: 0;
}

/* 項目名 */
.contact-page .contact-form .form-label {
  margin: 0;
  padding: 0;

  color: #222;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

/* 必須マーク */
.contact-page .contact-form .required {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 32px;
  height: 15px;
  margin-left: 5px;
  padding: 0 3px;

  color: #fff;
  background: #fb6727;

  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: middle;
}

/* 入力欄側 */
.contact-page .contact-form .form-control,
.contact-page .contact-form .form-control > span {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* 入力欄共通 */
.contact-page .contact-form input[type="text"],
.contact-page .contact-form input[type="email"],
.contact-page .contact-form input[type="tel"],
.contact-page .contact-form select,
.contact-page .contact-form textarea {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;

  color: #333;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  box-shadow: none;

  font-family: inherit;
  font-size: 11px;
  box-sizing: border-box;
}

/* 1行入力 */
.contact-page .contact-form input[type="text"],
.contact-page .contact-form input[type="email"],
.contact-page .contact-form input[type="tel"],
.contact-page .contact-form select {
  height: 29px;
  min-height: 29px;
  padding: 3px 8px;
}

/* 都道府県 */
.contact-page .contact-form select {
  padding-right: 28px;
}

/* お問い合わせ内容 */
.contact-page .contact-form .form-row--message {
  align-items: center;
}

.contact-page .contact-form textarea {
  height: 104px;
  min-height: 104px;
  padding: 7px 8px;
  resize: vertical;
}

/* MW WP Formの余計な余白を除去 */
.contact-page .contact-form p,
.contact-page .contact-form .horizontal-item,
.contact-page .contact-form .mwform-checkbox-field {
  margin: 0;
  padding: 0;
}

/* 個人情報 */
.contact-page .contact-form .privacy-row {
  display: grid;
  grid-template-columns: 145px auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;

  width: 100%;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
}

/* 個人情報のラベル */
.contact-page .contact-form .privacy-label {
  margin: 0;
  padding: 0;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

/* 同意欄 */
.contact-page .contact-form .consent {
  display: block;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.contact-page .contact-form .consent label {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  margin: 0;
  padding: 0;

  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
}

.contact-page .contact-form .consent input[type="checkbox"] {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin: 0;
}

/* Privacy policy */
.contact-page .contact-form .privacy-row > a {
  color: #333;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

/* 確認ボタン */
.contact-page .contact-form .confirm-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  width: 100%;
  margin: 1px 0 0;
  padding: 0;
  text-align: center;
}

.contact-page .contact-form .confirm-button button,
.contact-page .contact-form .confirm-button input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 120px;
  height: 38px;
  margin: 0;
  padding: 0 16px;

  color: #fff;
  background: #fb6727;
  border: 0;
  border-radius: 7px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
}

/* エラー表示 */
.contact-page .contact-form .error {
  display: block;
  margin: 3px 0 0;
  color: #d60000;
  font-size: 9px;
  line-height: 1.4;
}

.contact-page .contact-visual__image {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;

  width: 100%;
  height: 600px;
  overflow: hidden;
  pointer-events: none;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 10%,
    #000 28%,
    #000 100%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 10%,
    #000 28%,
    #000 100%
  );

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.contact-page .contact-visual__image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.16);
}

.contact-page .contact-visual__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.97) 8%,
    rgba(255, 255, 255, 0.90) 18%,
    rgba(255, 255, 255, 0.76) 30%,
    rgba(255, 255, 255, 0.52) 42%,
    rgba(255, 255, 255, 0.28) 54%,
    rgba(255, 255, 255, 0.12) 66%,
    rgba(255, 255, 255, 0.03) 76%,
    rgba(255, 255, 255, 0) 84%
  );
}

/* 写真 */
.contact-page .contact-visual__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  transform: translateY(90px);
}


/* =========================
   CONTACT FORM SP
========================= */

@media screen and (max-width: 767px) {
  .contact-page .contact-visual {
    height: auto;
    min-height: 0;
    padding: 14px 0 120px;
  }

  .contact-page .contact-visual__message {
    position: relative;
    top: auto;
    left: auto;

    width: calc(100% - 28px);
    max-width: 460px;
    margin: 0 auto 22px;
    transform: none;

    font-size: 14px;
    line-height: 1.65;
    text-align: center;
  }

  .contact-page .contact-form {
    position: relative;
    top: auto;
    left: auto;

    width: calc(100% - 28px);
    max-width: 460px;
    margin: 0 auto;

    gap: 10px;
    transform: none;
  }


  /* SPでもラベルと入力欄を横並び */
  .contact-page .contact-form .form-row {
    display: grid;
    row-gap: 0;
    align-items: center;

    width: 100%;
    margin: 0;
  }

  .contact-page .contact-form .form-label {
    font-size: 13px;
  }

.contact-page .contact-form .confirm-button button,
.contact-page .contact-form .confirm-button input[type="submit"] {
  font-size: 13px;
}


  .contact-page .contact-form input[type="text"],
  .contact-page .contact-form input[type="email"],
  .contact-page .contact-form input[type="tel"],
  .contact-page .contact-form select {
    height: 40px;
    min-height: 30px;
  }

  .contact-page .contact-form textarea {
    height: 100px;
    min-height: 100px;
  }

  .contact-page .contact-form .privacy-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    column-gap: 7px;
    align-items: center;

    width: 100%;
    margin: 2px 0 0;
  }

  .contact-page .contact-form .privacy-label {
    width: auto;
    font-size: 8px;
  }

  .contact-page .contact-form .consent label {
    font-size: 8px;
  }

  .contact-page .contact-form .privacy-row > a {
    font-size: 7px;
  }

  .contact-page .contact-visual__image {
    top: auto;
    bottom: 0;
    height: 210px;
  }
  .contact-visual__image img {
    transform: none !important;
  }
}

/* =========================================
   CONTACT FORM PC：参考画像どおりに調整
========================================= */
@media screen and (min-width: 768px) {

  /* フォーム上の説明文 */
  .contact-page .contact-visual__message {
    width: min(560px, calc(100% - 40px)) ;
    margin: 0 auto 24px ;
    font-size: 16px ;
    line-height: 1.65 ;
    text-align: center ;
  }

  /* フォーム全体 */
  .contact-page .contact-form {
    position: relative ;
    top: auto ;
    left: auto ;

    display: grid ;
    grid-template-columns: minmax(0, 1fr) ;
    grid-auto-flow: row ;
    grid-auto-rows: max-content ;

    align-content: start ;
    justify-content: stretch ;
    align-items: stretch ;

    width: min(560px, calc(100% - 40px)) ;
    height: 880px ;
    min-height: 0 ;

    row-gap: 0 ;
    margin: 0 auto ;
    padding: 0 ;
    transform: none ;
    gap: 16px;
  }

  /* 不要な改行を非表示 */
  .contact-page .contact-form > br,
  .contact-page .contact-form > p:empty,
  .contact-page .contact-form > .form-row > br,
  .contact-page .contact-form .form-control > br {
    display: none ;
  }

  /* 各入力項目 */
  .contact-page .contact-form > .form-row {
    display: grid ;
    grid-template-columns: 110px minmax(0, 1fr) ;
    grid-template-rows: max-content ;

    column-gap: 40px ;
    row-gap: 0 ;

    align-items: center ;
    align-content: center ;
    align-self: start ;

    width: 100% ;
    height: auto ;
    min-height: 30px ;

    margin: 0 ;
    padding: 0 ;
  }

  /* 左側の項目名 */
  .contact-page .contact-form > .form-row > .form-label {
    grid-column: 1 ;
    grid-row: 1 ;
    align-self: center ;

    width: 110px ;
    height: auto ;
    min-height: 0 ;

    margin: 0 ;
    padding: 0 ;

    color: #222 ;
    font-size: 13px ;
    line-height: 1.4 ;
    font-weight: 400 ;
    text-align: left ;
    white-space: nowrap ;
  }

  /* 必須表示 */
  .contact-page .contact-form .required {
    min-width: 25px ;
    height: 15px ;
    margin-left: 5px ;
    padding: 0 5px ;

    font-size: 11px ;
    line-height: 13px ;
    vertical-align: middle ;
  }

  /* 右側の入力欄 */
  .contact-page .contact-form > .form-row > .form-control {
    grid-column: 2 ;
    grid-row: 1 ;
    align-self: center ;

    display: block ;
    width: 100% ;
    min-width: 0 ;
    height: auto ;
    min-height: 0 ;

    margin: 0 ;
    padding: 0 ;
  }

  /* MW WP Formが生成する内側要素 */
  .contact-page .contact-form .form-control > span,
  .contact-page .contact-form .form-control > p {
    display: block ;
    width: 100% ;
    height: auto ;

    margin: 0 ;
    padding: 0 ;
  }

  /* 入力欄共通 */
  .contact-page .contact-form .form-control input,
  .contact-page .contact-form .form-control select,
  .contact-page .contact-form .form-control textarea {
    display: block ;
    width: 100% ;
    min-width: 0 ;
    max-width: none ;

    margin: 0 ;
    box-sizing: border-box ;
  }

  /* 通常の入力欄 */
  .contact-page .contact-form .form-control input,
  .contact-page .contact-form .form-control select {
    height: 30px ;
    min-height: 30px ;
    padding: 3px 8px ;
  }

  /* お問い合わせ内容 */
  .contact-page .contact-form > .form-row--message {
    grid-template-rows: 104px ;
    min-height: 104px ;
    align-items: center ;
    margin-top: -45px
  }

  .contact-page .contact-form .form-row--message textarea {
    height: 104px ;
    min-height: 104px ;
    padding: 7px 8px ;
  }

  /* 個人情報・同意 */
  .contact-page .contact-form .privacy-row {
    display: flex ;
    justify-content: center ;
    align-items: center ;
    align-self: start ;

    gap: 25px ;
    width: 100% ;
    height: auto ;
    min-height: 18px ;

    margin: 12px auto 12px ;
    padding: 0 ;
  }

  .contact-page .contact-form .privacy-label,
  .contact-page .contact-form .consent label {
    font-size: 12px ;
    line-height: 1.4 ;
  }

  .contact-page .contact-form .privacy-row > a {
    font-size: 12px ;
  }

  /* 確認ボタン */
  .contact-page .contact-form .confirm-button {
    display: flex ;
    justify-content: center ;
    align-items: center ;

    width: 100% ;
    height: auto ;

    margin: 2px 0 0 ;
    padding: 0 ;
  }

  .contact-page .contact-form .confirm-button button,
  .contact-page .contact-form .confirm-button input[type="submit"] {
    width: 140px ;
    height: 38px ;
    margin: 0 ;
  }

  /* フォームエリア全体をコンパクトに */
  .contact-page .contact-visual {
    height: auto ;
    min-height: 0 ;
    padding: 16px 0 82px ;
  }
}

/* =========================================
   CONTACT FORM：項目間隔・背景位置調整
========================================= */

/* 入力項目どうしの間隔 */
.contact-page .contact-form > .form-row + .form-row {
  margin-top: 10px ;
}

/* お問い合わせ内容の前は少し広め */
.contact-page .contact-form > .form-row--message {
  margin-top: 14px ;
}

/* =========================
   SP：個人情報欄を中央配置
========================= */
@media screen and (max-width: 767px) {
  .contact-page .contact-form .privacy-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 25px;

    width: 100%;
    margin: 10px auto 12px;
    padding: 0;

    text-align: center;
  }

  .contact-page .contact-form .privacy-label {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
    font-size: 14px;
    white-space: nowrap;
  }

  .contact-page .contact-form .consent {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  .contact-page .contact-form .consent label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
  }

  .contact-page .contact-form .consent input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin: 0;
  }

  .contact-page .contact-form .privacy-row > a {
    flex: 0 0 auto;
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
  }
/* =========================
   SP：項目名を入力欄の上へ
========================= */
  .contact-page .contact-form > .form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 10px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .contact-page .contact-form > .form-row > .form-label {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
  }

  .contact-page .contact-form > .form-row > .form-control {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .contact-page .contact-form .form-control input,
  .contact-page .contact-form .form-control select,
  .contact-page .contact-form .form-control textarea {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
  }

  .contact-page .contact-form > .form-row--message {
    align-items: stretch;
  }
  .contact-page .contact-form .privacy-row {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 25px;
    row-gap: 5px;
    align-items: center;

    width: max-content;
    max-width: 100%;
    margin: 10px auto 14px;
    padding: 0;
  }

  .contact-page .contact-form .privacy-label {
    grid-column: 1;
    grid-row: 1;

    width: auto;
    margin: 0;
    white-space: nowrap;
  }

  .contact-page .contact-form .consent {
    grid-column: 2;
    grid-row: 1;

    display: flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
  }

  .contact-page .contact-form .consent label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    white-space: nowrap;
  }

  .contact-page .contact-form .privacy-row > a {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;

    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
  }
  /* SP：入力欄内の文字サイズ */
  .contact-page .contact-form input[type="text"],
  .contact-page .contact-form input[type="email"],
  .contact-page .contact-form input[type="tel"],
  .contact-page .contact-form select,
  .contact-page .contact-form textarea {
    font-size: 14px;
  }
}
