.page-id-5 {
  --mxx-home-ivory: #f7f3ee;
  --mxx-home-sand: #eae2da;
  --mxx-home-ink: #4e3e38;
  --mxx-home-rose: #9b7278;
  --mxx-home-rose-dark: #80595f;
  --mxx-home-serif: "Baskervville", "Baskerville", "Times New Roman", serif;
}

.page-id-5 #header:has(.mxx-home-nav) {
  position: relative;
  z-index: 10;
  height: 0;
}

.mxx-home-nav {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 42px);
  min-height: 85px;
  padding: 12px clamp(20px, 4.8vw, 78px);
  color: var(--mxx-home-ink);
  background: linear-gradient(180deg, rgb(247 243 238 / 94%), rgb(247 243 238 / 0%));
}

.mxx-home-nav a,
.mxx-home-nav a:hover,
.mxx-home-nav a:focus {
  color: inherit;
  text-decoration: none;
}

.mxx-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
  font: italic 39px/.95 var(--mxx-home-serif);
}

.mxx-home-brand__logo { width: 43px; height: 43px; object-fit: contain; }
.mxx-home-nav__desktop { min-width: 0; }
.mxx-home-nav .mxx-home-links {
  display: flex;
  gap: 5px clamp(10px, 1.6vw, 27px);
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  font-size: clamp(11px, .92vw, 14px);
}

.mxx-home-links a { display: block; padding: 9px 0; }
.mxx-home-links .current-menu-item a,
.mxx-home-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.mxx-home-nav__contact { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 12px; }
.mxx-home-nav__contact a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 5px; }
.mxx-home-nav__contact .icon-hpb { display: none; }
.mxx-home-nav a:focus-visible,
.mxx-home-hero a:focus-visible { outline: 2px solid var(--mxx-home-rose-dark); outline-offset: 4px; }

.mxx-home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(590px, 55vw, 900px);
  overflow: hidden;
  background: var(--mxx-home-ivory);
  color: var(--mxx-home-ink);
}

.mxx-home-hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 66%;
  background: var(--mxx-home-sand);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}

.mxx-home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 59% 48%;
}

@media (min-width: 768px) {
  .mxx-home-hero {
    min-height: clamp(500px, 90svh, 780px);
  }

  .mxx-home-hero .mxx-home-hero__inner {
    padding-block: 87px 47px;
  }

  .mxx-home-hero .mxx-home-hero__statement {
    font-size: clamp(48px, min(6.8vw, 13svh), 121px);
  }

  .mxx-home-hero__media img {
    position: absolute;
    inset: 0 0 0 auto;
    margin: auto 3% auto auto;
    width: auto;
    height: auto;
    max-width: 97%;
    max-height: 88%;
    object-fit: contain;
    mask-image: linear-gradient(180deg, transparent, #000 8%, #000 93%, transparent),
      linear-gradient(90deg, transparent, #000 15%, #000 94%, transparent);
    mask-composite: intersect;
  }
}

.mxx-home-hero__inner {
  box-sizing: border-box;
  margin: 0 auto;
  width: min(100%, 1700px);
  padding: 108px clamp(28px, 6vw, 104px) 78px;
}

.mxx-home-hero__copy { width: 52%; }
.mxx-home-hero h1 {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--mxx-home-ink);
  background: none;
  text-align: left;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  font-size: clamp(17px, 1.45vw, 26px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .14em;
}

.mxx-home-hero__statement {
  margin: 0;
  color: #694e48;
  font-family: var(--mxx-home-serif);
  font-size: clamp(56px, 7.2vw, 132px);
  font-weight: 400;
  font-style: italic;
  line-height: .94;
  letter-spacing: -.052em;
}

.mxx-home-hero__location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 28px;
  font: 400 clamp(9px, .89vw, 14px)/1.5 var(--mxx-home-serif);
  letter-spacing: .24em;
}

.mxx-home-hero__location::before,
.mxx-home-hero__location::after {
  content: "";
  display: block;
  width: clamp(14px, 1.5vw, 23px);
  height: 1px;
  background: var(--mxx-home-rose);
}

.mxx-home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mxx-home-hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 18px;
  color: #fff;
  background: var(--mxx-home-rose);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.mxx-home-hero__actions a:hover,
.mxx-home-hero__actions a:focus { color: #fff; background: var(--mxx-home-rose-dark); text-decoration: none; }
.mxx-home-hero__actions span { font-size: 19px; line-height: 1; }

.mxx-home-hero__silk,
.mxx-home-hero__seal { position: absolute; display: block; pointer-events: none; }
.mxx-home-hero__silk--top { z-index: -1; top: -2.5%; left: -3%; width: min(39%, 640px); }
.mxx-home-hero__silk--bottom { right: -1px; bottom: -1px; width: min(39%, 610px); }
.mxx-home-hero__seal { z-index: -1; top: 15%; left: 42%; width: clamp(110px, 14vw, 230px); transform: rotate(-17deg); }
.mxx-home-hero__seal text { fill: #825f5d; font: 9px var(--mxx-home-serif); letter-spacing: 2.9px; }

.page-id-5 .mxx-home-hero + .sub-page-contents .catchcopy {
  box-sizing: border-box;
  width: 100%;
  margin: 24px 0 16px;
  padding-inline: 12px;
  color: var(--mxx-home-ink);
  letter-spacing: .03em;
}

.page-id-5.mxx-home-showing-hero #footer .fixed_btn { visibility: hidden; }

@media (max-width: 991px) {
  .mxx-home-nav { min-height: 66px; gap: 16px; padding: 8px 56px 8px 20px; }
  .mxx-home-nav__desktop { display: none; }
  .mxx-home-brand { font-size: 35px; }
  .mxx-home-brand__logo { width: 38px; height: 38px; }
  .page-id-5:has(.mxx-home-nav) .mobmenur-container { top: 17px; right: 10px; }
}

@media (max-width: 767px) {
  .mxx-home-nav { min-height: 62px; padding: 7px 53px 7px 16px; }
  .mxx-home-hero { display: block; min-height: auto; }
  .mxx-home-hero__media {
    position: relative;
    width: 100%;
    height: clamp(245px, 78vw, 490px);
    -webkit-mask-image: linear-gradient(#000 84%, transparent 100%);
    mask-image: linear-gradient(#000 84%, transparent 100%);
  }
  .mxx-home-hero__media img {
    position: absolute;
    inset: 44px 0 4px;
    margin: auto;
    width: auto;
    height: auto;
    max-width: 94%;
    max-height: calc(100% - 48px);
    object-fit: contain;
    mask-image: linear-gradient(180deg, transparent, #000 8%, #000 90%, transparent),
      linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-composite: intersect;
  }
  .mxx-home-hero__inner { position: relative; padding: 0 20px 30px; margin-top: -7px; text-align: center; }
  .mxx-home-hero__copy { width: 100%; }
  .mxx-home-hero h1 { text-align: center; margin-bottom: 9px; font-size: clamp(16px, 4.2vw, 21px); letter-spacing: .12em; }
  .mxx-home-hero__statement { font-size: clamp(42px, 12vw, 68px); line-height: .94; }
  .mxx-home-hero__statement br { display: none; }
  .mxx-home-hero__location { justify-content: center; margin: 14px 0 16px; font-size: 10px; letter-spacing: .14em; }
  .mxx-home-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; max-width: 430px; margin: 0 auto; }
  .mxx-home-hero__actions a { justify-content: center; gap: 6px; padding-inline: 7px; font-size: 13px; }
  .mxx-home-hero__silk--top { display: none; }
  .mxx-home-hero__silk--bottom { z-index: -1; width: 55%; }
  .mxx-home-hero__seal { top: 71px; left: auto; right: 8px; width: 96px; opacity: .64; }
}
