/* Shared layout safeguards for navigation, controls, and Japanese headings. */
:root {
  --cjk-sans: "Noto Sans CJK JP", "Source Han Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Microsoft YaHei", "PingFang SC", Meiryo, sans-serif;
  --cjk-serif: "Noto Serif CJK JP", "Source Han Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", "SimSun", serif;
}

body, button, input, select, textarea { font-family: var(--cjk-sans) !important; }
.section-title, .hero h1, .brand-story h3, .story-zh h4, .company h3, .contactbox h3 { font-family: var(--cjk-serif) !important; }

.my-page-link{display:inline-flex!important;min-height:40px;align-items:center;justify-content:center;padding:0 15px;border:1px solid var(--wine,#741426);border-radius:999px;color:var(--wine,#741426);font-family:"Times New Roman",Times,serif!important;font-weight:700;letter-spacing:.04em;text-decoration:none}
.my-page-link:hover{background:var(--wine,#741426);color:#fff}.my-page-short{display:none}
.nav-actions > a,
.nav-actions > button,
.navlinks > a,
.navlinks > button,
.side-menu-nav a,
.side-menu-cart-label,
.contact-pill .consult-label,
.chat-launcher span,
.add-btn,
.primary-btn,
.outline-btn,
.back-link {
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.side-menu-nav a::after {
  flex: 0 0 auto;
}

.shop-intro h1,
.cart-head h1,
.form-section h2,
.confirm-section h2,
.catalog-top h2,
.product-info h2 {
  word-break: normal;
  line-break: strict;
  overflow-wrap: normal;
}

@media (max-width: 600px) {
  .nav-actions {
    flex-wrap: nowrap;
  }

  .side-menu-nav a {
    font-size: .96rem;
  }

  .my-page-link{min-height:38px;padding:0 11px}.my-page-full{display:none}.my-page-short{display:inline}
}

/* Store pages have a generic .brand img rule; keep the approved animated lockup large. */
.brand-motion-lockup .brand-motion-bee {
  width: 96px !important;
  height: 86px !important;
  flex-basis: 96px !important;
}

.brand-motion-lockup .brand-motion-text {
  width: min(410px, calc(100% - 96px)) !important;
  height: auto !important;
}

.footer-motion-lockup .footer-motion-bee {
  width: 112px !important;
  height: 104px !important;
  flex-basis: 112px !important;
}

.footer-motion-lockup .footer-motion-text {
  width: min(620px, calc(100% - 112px)) !important;
  height: auto !important;
}

/* Keep the full consultation label visible instead of squeezing it into the old cap. */
.site-header .navlinks > .contact-pill {
  min-width: 232px !important;
  justify-content: center;
  flex-shrink: 0 !important;
  padding-left: 14px !important;
  padding-right: 18px !important;
}

.site-header .navlinks > .contact-pill .consult-label {
  max-width: none !important;
  white-space: nowrap !important;
}

@media (max-width: 800px) {
  .site-header .navlinks > .contact-pill {
    min-width: 208px !important;
    padding: 6px 12px !important;
  }

  .site-header .navlinks > .contact-pill .consult-label {
    max-width: none !important;
    font-size: .76rem !important;
    line-height: 1.2;
  }

  .brand-motion-lockup .brand-motion-bee {
    width: 64px !important;
    height: 58px !important;
    flex-basis: 64px !important;
  }

  .brand-motion-lockup .brand-motion-text {
    width: calc(100% - 64px) !important;
  }

  .footer-motion-lockup .footer-motion-bee {
    width: 84px !important;
    height: 78px !important;
    flex-basis: 84px !important;
  }

  .footer-motion-lockup .footer-motion-text {
    width: calc(100% - 84px) !important;
  }
}

@media (max-width: 390px) {
  .site-header .navlinks > .contact-pill {
    min-width: 196px !important;
    padding: 5px 9px !important;
  }

  .site-header .navlinks > .contact-pill .consult-label {
    font-size: .7rem !important;
  }
}

.payment-next-btn {
  border-color: #d2a74d !important;
  background: #d2a74d !important;
  color: #321d0c !important;
  box-shadow: 0 8px 20px rgba(210, 167, 77, .28) !important;
}

.payment-layout.is-complete {
  display: block;
}

.payment-layout.is-complete .payment-summary,
.payment-form.is-complete fieldset,
.payment-form.is-complete .payment-detail,
.payment-form.is-complete .payment-submit,
.payment-form.is-complete .confirm-error {
  display: none !important;
}

.payment-complete {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 26px;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 34px !important;
  border: 1px solid #d2a74d !important;
  background: #fffaf1 !important;
  box-shadow: 0 16px 40px rgba(69, 36, 34, .12);
}

.payment-complete > img {
  width: 110px !important;
  height: 110px !important;
}

.payment-complete h2 {
  margin: 4px 0 8px;
  color: #741426;
  font: 700 1.7rem Georgia, "Yu Mincho", serif;
}

.payment-complete-copy > strong {
  display: block;
  margin-bottom: 18px;
  color: #326036;
  font-size: 1.05rem;
}

.payment-complete dl {
  margin: 0 0 18px;
  border-top: 1px solid #e2d7c5;
}

.payment-complete dl > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #e2d7c5;
}

.payment-complete dt {
  color: #7b6d67;
  font-weight: 700;
}

.payment-complete dd {
  margin: 0;
  color: #291f20;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.payment-complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .payment-complete {
    grid-template-columns: 1fr;
    padding: 24px 18px !important;
    text-align: center;
  }

  .payment-complete > img {
    margin: 0 auto;
  }

  .payment-complete dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .payment-complete-actions {
    display: grid;
  }
}
