/* Keep the static design's rem base independent of the legacy page content. */
html {
  font-size: 100%;
}
.sitePage {
  text-align: left;
}
.sitePage .siteFooterNav {
  flex-wrap: wrap;
}
.sitePage.is-legacy .siteMain {
  min-height: 45vh;
  padding-top: 79px;
}
@media (min-width: 1024px) {
  .sitePage.is-legacy .siteMain {
    padding-top: 124px;
  }
}
.sitePage.admin-bar .siteHeader {
  top: 32px;
}
@media (max-width: 782px) {
  .sitePage.admin-bar .siteHeader {
    top: 46px;
  }
}
.legacyContent {
  font-size: 16px;
}
.legacyContent .page_title {
  padding: 64px 24px;
  background: var(--color-bg-base);
}
.legacyContent .page_title h2 {
  font-family: var(--font-family-heading-en);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-text-base);
}
.legacyContent .element,
.legacyContent .element_right {
  opacity: 1;
  transform: none;
}
.sitePage.admin-bar .siteNav {
  top: 32px;
  height: calc(100dvh - 32px);
}
.sitePage.admin-bar #smooth-wrapper {
  top: 32px;
}
@media (max-width: 782px) {
  .sitePage.admin-bar .siteNav {
    top: 46px;
    height: calc(100dvh - 46px);
  }
  .sitePage.admin-bar #smooth-wrapper {
    top: 46px;
  }
}
@media (max-width: 1023px) {
  .sitePage.is-legacy {
    padding-bottom: 48px;
  }
  .legacyContent .page_title {
    padding: 40px 20px;
  }
}

/* Contain legacy end margins so the page background meets the new footer. */
.sitePage.is-legacy .legacyContent {
  display: flow-root;
  padding-bottom: 128px;
}
.legacyContent > :is(.product_conts, .company_conts, .contact_conts, .blog_conts_btn, .order_conts, .search_results),
.legacyContent > main > :last-child,
.legacyContent .product_conts > .product_cont:last-child {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .sitePage.is-legacy .legacyContent {
    padding-bottom: 32px;
  }
}

/* Lower-page typography follows the renewal's heading/body roles. */
.legacyContent {
  --legacy-body-size: 0.875rem;
  --legacy-heading-size: 1.375rem;
  font-family: var(--font-family-body);
  font-size: var(--legacy-body-size);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--color-text-base);
}
.legacyContent :is(button, input, select, textarea) {
  font-family: var(--font-family-body);
  letter-spacing: 0.04em;
}
.legacyContent :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-family-heading-serif);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.08em;
}
.legacyContent .page_title h2 {
  font-family: "Cormorant", "Shippori Mincho", serif;
  font-size: 2rem;
  line-height: 1.4;
}
.legacyContent .product_title {
  font-family: var(--font-family-heading-serif);
  font-size: var(--legacy-heading-size);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.08em;
}
.legacyContent .product_cont_right h1 {
  font-family: var(--font-family-heading-en);
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.06em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.legacyContent .product_cont_right h2 {
  font-family: var(--font-family-heading-serif);
  font-size: var(--legacy-heading-size);
  line-height: 1.8;
  letter-spacing: 0.08em;
  margin-right: 0;
}
.legacyContent .product_cont_right h5 {
  font-family: var(--font-family-body);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}
.legacyContent :is(.product_cont_ex, .company_cont, .contact_title, .order_conts) {
  font-size: var(--legacy-body-size);
  line-height: 1.9;
  letter-spacing: 0.04em;
}
.legacyContent :is(.product_cont_use, .product_cont_btn, .product_cont_price) {
  font-size: 0.875rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.legacyContent .company_conts {
  max-width: calc(100% - 40px);
}
.legacyContent .company_cont_left {
  flex-shrink: 0;
  font-weight: 500;
}
.legacyContent .company_cont {
  gap: 1rem;
}
.legacyContent .company_cont_right {
  flex: 1;
  width: auto;
}
.legacyContent .contact_title {
  width: min(calc(100% - 40px), 48rem);
  margin-inline: auto;
  text-align: left;
}
.legacyContent :is(.company_cont_right, .news_cont_wrap, .blog_cont_flex) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.legacyContent .contact_form :is(input, select, textarea),
.legacyContent .search_form_box :is(input, select) {
  font-size: 1rem; /* Keep touch inputs readable without focus zoom. */
  line-height: 1.5;
}
.legacyContent :is(.contact_form_text, .contact_form_textarea, .contact_form_check, .contact_form_policy_cont),
.legacyContent .search_form_box label {
  font-size: var(--legacy-body-size);
  line-height: 1.8;
}
.legacyContent :is(.contact_btn, .nav_back_btn, .submit_btn, .clear_btn, #load-more-btn) {
  font-family: var(--font-family-heading-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
.legacyContent :is(.blog_conts_btn, .news_cont_btn, .news_cont_spans span, .order_cont_left h3) {
  font-family: var(--font-family-heading-en);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.legacyContent .blog_conts_btn {
  font-size: 1.25rem;
}
.legacyContent .news_cont_btn {
  font-size: 0.875rem;
}
.legacyContent :is(.news_cont, .news_cont_wraps, .news_cont_wrap, .blog_cont) {
  max-height: none;
}
.legacyContent .news_cont_text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.legacyContent :is(.news_cont_title, .blog_cont h3, .blog_cont h4) {
  font-family: var(--font-family-heading-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.legacyContent :is(.news_cont_text *, .news_cont_date, .blog_cont h5) {
  font-family: var(--font-family-body);
  font-size: 0.8125rem;
  line-height: 1.8;
}
.legacyContent :is(.news_post_title, .blog_no_img) {
  height: auto;
  min-height: 15rem;
  padding: 2.5rem 1.25rem;
  background: var(--color-bg-base);
}
.legacyContent :is(.news_post_title h2, .blog_post_title h2) {
  font-family: var(--font-family-heading-serif);
  font-size: var(--legacy-heading-size);
  line-height: 1.7;
  letter-spacing: 0.06em;
}
.legacyContent .news_post_title :is(h2, h3, p),
.legacyContent .blog_no_img :is(h2, h3, p) {
  color: var(--color-text-base);
}
.legacyContent :is(.news_post_title h3, .blog_post_title h3) {
  font-family: var(--font-family-heading-en);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-shadow: none;
}
.legacyContent .blog_post_conts :is(p, li, td, th) {
  font-family: var(--font-family-body);
  font-size: var(--legacy-body-size);
  line-height: 2;
  letter-spacing: 0.03em;
}
.legacyContent .blog_post_conts :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-family-heading-serif);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.06em;
  margin-block: 1.75em 0.75em;
}
.legacyContent .blog_post_conts :is(h1, h2) {
  font-size: var(--legacy-heading-size);
}
.legacyContent .blog_post_conts h3 {
  font-size: 1.25rem;
}
.legacyContent .blog_post_conts :is(h4, h5, h6) {
  font-size: 1.0625rem;
}
.legacyContent :is(.search_form h3, .order_cont_right h4, .order_conts_cv p) {
  font-family: var(--font-family-heading-serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.05em;
}
.legacyContent .search_results_body .salon_item .salon_name {
  font-family: var(--font-family-heading-serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
}
.legacyContent .search_results_body .salon_item :is(.salon_postal, .salon_address, .salon_phone) {
  font-family: var(--font-family-body);
  font-size: var(--legacy-body-size);
  line-height: 1.9;
}
@media (min-width: 1024px) {
  .legacyContent {
    --legacy-body-size: 0.9375rem;
    --legacy-heading-size: 1.625rem;
  }
  .legacyContent .page_title h2 {
    font-size: 2.5rem;
  }
}
@media (max-width: 767px) {
  .legacyContent .company_cont_left {
    width: 6.5em;
  }
}

@media (max-width: 1023px) {
  .legacyContent .product_title {
    font-size: var(--font-size-for-salon-intro-body);
  }
}
