/* =========================================================
   初診WEB予約・お問い合わせ (slug: contact)
   ========================================================= */

.contact-page {
  background: #fff;
  color: var(--c-brown);
  font-family: var(--ff-jp);
  padding-bottom: 128px;
}

.contact-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.contact-hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.contact-hero__photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 43%;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 154, 146, .08) 34%, rgba(255, 154, 146, .72) 68%, #fc9291 100%),
    linear-gradient(to right, rgba(73, 50, 21, .18), rgba(73, 50, 21, 0) 58%);
}

.contact-hero__inner {
  width: min(1280px, 100%);
  min-height: 720px;
  margin: 0 auto;
  padding: 0 44px 92px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.contact-hero__crumb {
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 500;
  line-height: 2.2;
  letter-spacing: .18em;
  text-shadow: 0 1px 10px rgba(0,0,0,.25);
}

.contact-hero__en {
  margin: 0;
  font-family: var(--ff-josefin);
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .04em;
  text-shadow: 0 1px 12px rgba(0,0,0,.28);
}

.contact-hero__ja {
  margin: 18px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .12em;
  text-shadow: 0 1px 12px rgba(0,0,0,.28);
}

.contact-lead {
  background: var(--c-pink-soft);
  padding: 86px 24px 70px;
}

.contact-lead__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-lead__eyebrow {
  margin: 0 0 18px;
  color: var(--c-pink);
  font-family: var(--ff-josefin);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
}

.contact-lead h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.55;
  letter-spacing: .1em;
}

.contact-lead p:not(.contact-lead__eyebrow) {
  margin: 26px auto 0;
  max-width: 760px;
  font-size: 15px;
  font-weight: 500;
  line-height: 2.25;
  letter-spacing: .07em;
}

.contact-main {
  background: linear-gradient(to bottom, var(--c-pink-soft) 0, #fff 180px);
  padding: 0 24px;
}

.contact-sent-wrap {
  width: min(1080px, 100%);
  margin: 0 auto 28px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  width: min(1080px, 100%);
  margin: 0 auto;
  align-items: start;
}

.contact-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 118px;
}

.contact-side__card,
.contact-form-panel {
  background: #fff;
  border: 1px solid rgba(255, 154, 146, .22);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(228, 74, 63, .09);
}

.contact-side__card {
  padding: 28px 26px;
}

.contact-side__label {
  margin: 0 0 10px;
  color: var(--c-pink);
  font-family: var(--ff-josefin);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
}

.contact-side__tel {
  display: inline-block;
  color: var(--c-red);
  font-family: var(--ff-inter);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .03em;
}

.contact-side__text {
  margin: 12px 0 0;
  color: var(--c-brown2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
}

.contact-side .schedule-table {
  max-width: none;
  font-size: 10px;
}

.contact-form-panel {
  padding: 46px 52px 54px;
}

.contact-alert {
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: 12px;
  font-weight: 500;
  line-height: 1.8;
}

.contact-alert p,
.contact-alert ul {
  margin: 0;
}

.contact-alert ul {
  padding-left: 1.3em;
}

.contact-alert__title {
  margin: 0 0 6px !important;
  font-weight: 700;
}

.contact-alert--success {
  background: #fff5f4;
  border: 1px solid rgba(255, 154, 146, .34);
  color: var(--c-brown);
}

.contact-alert--standalone {
  margin: 0;
  padding: 28px 34px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(228, 74, 63, .09);
}

.contact-alert--standalone .contact-alert__title {
  margin-bottom: 8px !important;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: .08em;
}

.contact-alert--standalone p:not(.contact-alert__title) {
  font-size: 15px;
  line-height: 2;
  letter-spacing: .06em;
}

.contact-alert--standalone ul {
  margin-top: 8px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .06em;
}

.contact-alert--error {
  background: #fff7f2;
  border: 1px solid rgba(228, 74, 63, .42);
  color: #8d2f29;
}

.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 22px;
}

.contact-field {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.contact-field--full {
  margin-top: 24px;
}

.contact-field > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-brown);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.contact-field em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--c-red);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  letter-spacing: .08em;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid #efd6d2;
  border-radius: 8px;
  background: #fffdfc;
  color: var(--c-brown);
  font-family: var(--ff-jp);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-field input,
.contact-field select {
  height: 54px;
  padding: 0 16px;
}

.contact-field textarea {
  min-height: 190px;
  resize: vertical;
  padding: 16px;
  line-height: 1.9;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 0;
  border-color: var(--c-pink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 154, 146, .16);
}

.contact-field input::placeholder {
  color: #b69b91;
}

.contact-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px 0 0;
  color: var(--c-brown2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
}

.contact-privacy input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--c-red);
  flex: none;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(320px, 100%);
  height: 64px;
  margin: 34px auto 0;
  border: 0;
  border-radius: 999px;
  background: var(--c-red);
  color: #fff;
  font-family: var(--ff-jp);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(228, 74, 63, .22);
}

.contact-submit i {
  width: 28px;
  height: 1px;
  background: currentColor;
  position: relative;
}

.contact-submit i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.contact-submit:hover {
  filter: brightness(1.04);
}

@media (max-width: 980px) {
  .contact-sent-wrap {
    margin-bottom: 22px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .contact-page {
    padding-bottom: 76px;
  }

  .contact-hero {
    min-height: 460px;
  }

  .contact-hero__inner {
    width: 100%;
    min-height: 460px;
    padding: 0 24px 56px;
  }

  .contact-hero__crumb {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .contact-hero__en {
    font-size: 40px;
  }

  .contact-hero__ja {
    font-size: 17px;
    line-height: 1.65;
  }

  .contact-lead {
    padding: 54px 20px 46px;
  }

  .contact-lead h2 {
    font-size: 23px;
    letter-spacing: .06em;
  }

  .contact-lead p:not(.contact-lead__eyebrow) {
    font-size: 14px;
    line-height: 2;
    text-align: left;
  }

  .contact-main {
    padding: 0 20px;
  }

  .contact-sent-wrap {
    margin-bottom: 18px;
  }

  .contact-alert--standalone {
    padding: 20px;
    border-radius: 14px;
  }

  .contact-alert--standalone .contact-alert__title {
    font-size: 16px;
    line-height: 1.7;
  }

  .contact-alert--standalone p:not(.contact-alert__title) {
    font-size: 13px;
    line-height: 2;
    letter-spacing: .04em;
  }

  .contact-alert--standalone ul {
    font-size: 13px;
    line-height: 2;
    letter-spacing: .04em;
  }

  .contact-side {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-side__card {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .contact-side__tel {
    font-size: 24px;
  }

  .contact-form-panel {
    padding: 30px 20px 34px;
    border-radius: 14px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-field > span {
    font-size: 13px;
  }

  .contact-field input,
  .contact-field select {
    height: 52px;
    font-size: 16px;
  }

  .contact-field textarea {
    min-height: 170px;
    font-size: 16px;
  }

  .contact-submit {
    height: 60px;
  }
}

/* SPレビュー反映: 初期表示は写真全面 + 左下パンくず/ページ名。 */
@media (max-width: 760px) {
  .contact-hero {
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
  }

  .contact-hero__inner {
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
    padding: 0 24px 58px !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
  }

  .contact-hero::before {
    background:
      linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(73, 50, 21, .04) 50%, rgba(255, 154, 146, .42) 100%),
      linear-gradient(to right, rgba(73, 50, 21, .18), rgba(73, 50, 21, 0) 58%) !important;
  }

  .contact-hero__crumb {
    margin: 0 0 16px !important;
  }
}

/* SP最終調整: 他ページと同じ濃度のグラデーションで左下タイトルを読ませる。 */
@media (max-width: 760px) {
  .contact-hero__photo img {
    object-position: center center !important;
  }

  .contact-hero::before {
    background:
      linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(73,50,21,.08) 42%, rgba(255,154,146,.54) 70%, rgba(252,146,145,.95) 100%),
      linear-gradient(to right, rgba(73,50,21,.20), rgba(73,50,21,0) 62%) !important;
  }

  .contact-hero__inner {
    padding: 0 22px 46px !important;
  }

  .contact-hero__crumb {
    max-width: 100% !important;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1.7 !important;
    letter-spacing: .12em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .contact-hero__en {
    font-size: clamp(42px, 13vw, 58px) !important;
  }

  .contact-hero__ja {
    max-width: calc(100vw - 44px) !important;
    font-size: clamp(18px, 5.4vw, 22px) !important;
    line-height: 1.45 !important;
    white-space: nowrap !important;
  }
}

/* SP画像サイズ調整: Contact FVの写真を短めに戻す。 */
@media (max-width: 760px) {
  .contact-hero,
  .contact-hero__inner {
    min-height: 320px !important;
    height: 320px !important;
  }

  .contact-hero__inner {
    padding: 0 22px 32px !important;
  }

  .contact-hero::before {
    background:
      linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(73,50,21,.06) 36%, rgba(255,154,146,.46) 68%, rgba(252,146,145,.92) 100%),
      linear-gradient(to right, rgba(73,50,21,.18), rgba(73,50,21,0) 62%) !important;
  }
}

/* パンくず/タイトルをアクセスページ基準に統一（PCパンくず10px / SPタイトル40px） */
@media (min-width: 821px) { .contact-hero__crumb { font-size: 10px !important; } }
@media (max-width: 820px) { .contact-hero__en { font-size: 40px !important; } }
