/* order-guide.html adaptive layout shell. This page already has extensive
   real breakpoints down to 768px for its own content grids (most use
   auto-fit or already have 641-1024px coverage), so this file mainly adds
   the shared header, nav and footer treatment used on every other adaptive
   page, plus a couple of page specific gaps found by testing. */
/* 2026-09-19: narrowed from 1400px to 1279px (see membership-point-card-responsive.css
   for the full rationale). Unconditional reset keeps html/body/.header-container off
   style.css's sitewide min-width:1300px floor at every width from 641px up. */
@media (min-width: 641px) {
  html,
  body {
    min-width: 0 !important;
  }

  .header-container {
    min-width: 0 !important;
  }
}

@media (min-width: 641px) and (max-width: 1279px) {
  html,
  body {
    min-width: 0 !important;
    width: 100% !important;
    overflow-x: clip !important;
  }

  body {
    padding-top: 68px !important;
  }

  body > header {
    display: block !important;
    visibility: visible !important;
    min-height: 68px !important;
    height: 68px !important;
    padding: 8px 0 !important;
    border-bottom: 0 !important;
  }

  body > header .header-container {
    display: flex !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 52px !important;
    padding: 0 18px !important;
    transform: none !important;
  }

  body > header .header-left {
    display: flex !important;
    min-width: 0 !important;
    margin-top: 0 !important;
  }

  body > header .logo img {
    display: block !important;
    width: auto !important;
    height: 46px !important;
    max-width: 230px !important;
  }

  html[data-adaptive-layout] body:not(.admin-page):not(.admin-layout) > header .mobile-menu-toggle {
    display: block !important;
    position: absolute !important;
    top: 5px !important;
    right: 18px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 6px !important;
    border-radius: 8px !important;
    z-index: 10000 !important;
  }

  html[data-adaptive-layout] body:not(.admin-page):not(.admin-layout) > header .mobile-menu-toggle span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    margin: 5px auto !important;
  }

  body > header .main-nav {
    display: none !important;
  }

  body > header .main-nav.active {
    display: block !important;
    position: fixed !important;
    inset: 0 0 0 auto !important;
    width: 100% !important;
    height: 100vh !important;
    padding: 78px 22px 32px !important;
    overflow-y: auto !important;
    background: #fff !important;
    box-shadow: -8px 0 28px rgba(15, 23, 42, 0.18) !important;
    z-index: 9999 !important;
  }

  body > header .main-nav.active ul,
  body > header .main-nav.active .mobile-menu-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body > header .main-nav.active li {
    width: 100% !important;
    border-bottom: 1px solid #e8edf5 !important;
  }

  body > header .main-nav.active > ul > li > a {
    display: block !important;
    padding: 14px 4px !important;
    font-size: 0.94rem !important;
  }

  body > header .main-nav.active .mobile-order-btn {
    display: block !important;
    background: #00aaff !important;
    color: #fff !important;
    padding: 14px 20px !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    text-align: center !important;
    text-decoration: none !important;
  }

  body > header .main-nav.active .mobile-consult-btn {
    display: block !important;
    color: #00aaff !important;
    padding: 12px 20px !important;
    border: 1px solid #00aaff !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    text-align: center !important;
    text-decoration: none !important;
  }

  body > header .header-right {
    display: flex !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: 54px !important;
    padding-right: 0 !important;
    gap: 0 !important;
  }

  body > header .header-right > a.header-link,
  body > header #authSection,
  body > header .consult-btn,
  body > header .upload-btn {
    display: none !important;
  }

  body > header .cart-icon,
  body > header .cart-icon a,
  body > header .cart-icon svg {
    display: flex !important;
    width: 24px !important;
    height: 24px !important;
  }

  .vertical-faq-btn {
    display: none !important;
  }

  footer .footer-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  footer .footer-brand {
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 36px !important;
    padding-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  footer .footer-logo {
    margin-left: 0 !important;
    transform: none !important;
  }

  footer .footer-logo img {
    margin-inline: auto !important;
  }

  footer .business-calendar {
    width: min(100%, 300px) !important;
    min-width: 0 !important;
    max-width: 300px !important;
    margin: 18px auto 14px !important;
    transform: none !important;
  }

  footer .footer-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    width: 100% !important;
    gap: 34px !important;
    padding-right: 0 !important;
  }

  footer .footer-col {
    width: 100% !important;
    max-width: 520px !important;
    min-width: 0 !important;
    align-items: center !important;
    text-align: center !important;
  }

  footer .footer-col .footer-main-link {
    width: 100% !important;
    padding-bottom: 9px !important;
    border-bottom: 1px solid #dce5f2 !important;
    color: #234f9a !important;
    font-size: 1rem !important;
  }

  footer .footer-links .footer-col:last-child {
    grid-column: 1 !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding-top: 28px !important;
    border-top: 1px solid #e5eaf2 !important;
  }

  footer .footer-bottom {
    flex-direction: column !important;
    gap: 20px !important;
    text-align: center !important;
  }

  footer .footer-legal {
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px 28px !important;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  footer .footer-col {
    max-width: 360px !important;
  }

  footer .footer-links {
    gap: 30px !important;
  }

  footer .footer-links .footer-col:last-child {
    padding-top: 22px !important;
  }

  footer .footer-legal {
    gap: 12px 18px !important;
  }
}

/* 2026-09-19: Apple iphone-duo style fluid-scaling pilot for the desktop range
   (>=1280px). .order-guide-hero and .order-process-section use the plain
   base .container (max-width:1480px, 15px padding, style.css) with no
   page-specific override, so the "jump" here is smaller than the classic
   100px-padding pages, but still replaced for sitewide consistency. */
@media (min-width: 1280px) {
  .order-guide-hero > .container,
  .order-process-section > .container {
    max-width: none !important;
    width: min(86.49vw, 1480px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 2026-09-20: this page turned out to have several more sections using the
   plain base .container (1480px cap, same target as .order-guide-hero/
   .order-process-section above) plus two with their own distinct caps
   (.delivery-info-section: 1320px, .faq-section: 1700px, the latter from
   style.css's sitewide "html body .faq-section > .container" rule) - none of
   which were smoothed yet, so at wide viewports the page had four different
   section widths side by side instead of matching its own hero/process
   sections. Each keeps its own existing cap, just reached smoothly now. */
@media (min-width: 1280px) {
  .free-design-section > .container,
  .design-prep-section > .container,
  .payment-methods-section > .container,
  .guide-directory-section > .container {
    max-width: none !important;
    width: min(86.49vw, 1480px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .delivery-info-section > .container {
    max-width: none !important;
    width: min(86.49vw, 1320px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body .faq-section > .container {
    max-width: none !important;
    width: min(86.49vw, 1700px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Homepage-inspired redesign. */
body.order-guide-page {
  --home-bg: #f4f3f8;
  --home-white: #ffffff;
  --home-ink: #141f3d;
  --home-text: #40516b;
  --home-muted: #6b7890;
  --home-blue: #4273db;
  --home-blue-dark: #3561c7;
  --home-orange: #fb7615;
  --home-orange-dark: #e5650c;
  --home-gold: #a17743;
  --home-line: #dce5f1;
  --home-soft-blue: #f0f4ff;
  --home-card-shadow: 0 2px 8px rgba(20, 31, 61, 0.06);
  background: var(--home-bg) !important;
  color: var(--home-text);
  font-family:
    "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif !important;
  font-synthesis: none;
  letter-spacing: 0;
  text-size-adjust: 100%;
}

body.order-guide-page > :is(section, main) :is(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, small, th, td) {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

body.order-guide-page :is(
  .order-guide-hero,
  .free-design-section,
  .design-prep-section,
  .delivery-info-section,
  .faq-section
) {
  background: var(--home-bg) !important;
}

body.order-guide-page :is(
  .order-process-section,
  .payment-methods-section,
  .guide-directory-section,
  .contact-section
) {
  background: var(--home-white) !important;
}

body.order-guide-page :is(
  .order-process-section,
  .design-prep-section,
  .payment-methods-section,
  .delivery-info-section,
  .guide-directory-section,
  .faq-section,
  .contact-section
) {
  padding-block: 64px !important;
}

body.order-guide-page :is(
  .order-process-section,
  .design-prep-section,
  .payment-methods-section,
  .delivery-info-section,
  .guide-directory-section,
  .faq-section,
  .contact-section
) > .container {
  width: min(100% - 48px, 1240px) !important;
  max-width: 1240px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

body.order-guide-page .order-guide-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 18px !important;
}

body.order-guide-page .order-guide-hero::after {
  content: "";
  position: absolute;
  inset: auto 8% 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(161, 119, 67, 0),
    rgba(161, 119, 67, 0.5),
    rgba(161, 119, 67, 0)
  );
}

body.order-guide-page .order-guide-hero > .container {
  width: min(100% - 48px, 1120px) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

body.order-guide-page .order-guide-hero-content {
  position: relative;
  margin: 0 !important;
  padding: 46px 24px 50px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.order-guide-page .order-guide-hero-content::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0 auto 22px;
  border-radius: 99px;
  background: var(--home-gold);
}

body.order-guide-page .order-guide-hero h1 {
  margin: 0 0 18px !important;
  color: var(--home-ink) !important;
  font-family: inherit !important;
  font-size: clamp(2rem, 3.4vw, 2.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

body.order-guide-page .order-guide-hero p {
  max-width: 720px !important;
  color: #1f2c4a !important;
  font-size: 1.02rem !important;
  line-height: 1.85 !important;
}

body.order-guide-page .free-design-section {
  margin: 0 !important;
  padding: 36px 0 58px !important;
}

body.order-guide-page .free-design-section > .container {
  width: min(100% - 48px, 1120px) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

body.order-guide-page .free-design-panel {
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  max-width: none;
  padding: 28px 32px;
  border: 1px solid var(--home-line) !important;
  border-radius: 8px !important;
  background: var(--home-white) !important;
  box-shadow: var(--home-card-shadow) !important;
}

body.order-guide-page .free-design-panel::before {
  top: -1px;
  left: 32px;
  width: 72px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--home-gold);
}

body.order-guide-page .free-design-heading {
  color: var(--home-ink) !important;
  font-size: 1.2rem !important;
}

body.order-guide-page .free-design-description {
  color: var(--home-text) !important;
  font-size: 0.94rem !important;
}

body.order-guide-page .free-design-image-card {
  max-width: 280px;
  padding: 8px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fafafa;
}

body.order-guide-page .free-design-image-card img {
  border-radius: 4px;
}

body.order-guide-page .free-design-badge {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--home-blue);
  border-radius: 4px !important;
  background: #ffffff;
  color: var(--home-blue) !important;
  font-size: 0.82rem !important;
}

body.order-guide-page .free-design-badge.primary {
  border-color: var(--home-orange) !important;
  background: var(--home-orange) !important;
}

body.order-guide-page .free-design-badge.primary:hover {
  border-color: var(--home-orange-dark) !important;
  background: var(--home-orange-dark) !important;
}

body.order-guide-page :is(
  .order-process-section,
  .design-prep-section,
  .payment-methods-section,
  .delivery-info-section,
  .guide-directory-section,
  .faq-section,
  .contact-section
) > .container > h2 {
  position: relative;
  margin: 0 0 44px !important;
  color: var(--home-ink) !important;
  font-family: inherit !important;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

body.order-guide-page :is(
  .order-process-section,
  .design-prep-section,
  .payment-methods-section,
  .delivery-info-section,
  .guide-directory-section,
  .faq-section,
  .contact-section
) > .container > h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 16px auto 0;
  background: var(--home-gold);
}

body.order-guide-page .flow-method-title {
  margin: 0 0 8px;
  color: var(--home-ink) !important;
  font-size: 1.08rem !important;
}

body.order-guide-page .flow-method-title small {
  color: var(--home-muted) !important;
}

body.order-guide-page .flow-role-key {
  margin-bottom: 28px;
}

body.order-guide-page .sugi-flow-scroll {
  padding: 4px 2px 16px;
  scrollbar-color: #b9c7da transparent;
}

body.order-guide-page .sugi-flow-step,
body.order-guide-page .sugi-flow-company,
body.order-guide-page .sugi-flow-final {
  border: 1px solid var(--home-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: var(--home-card-shadow);
}

body.order-guide-page .sugi-flow-step {
  padding: 20px 16px !important;
}

body.order-guide-page .sugi-flow-step-no {
  color: var(--home-gold) !important;
}

body.order-guide-page .sugi-flow-step h3 {
  color: var(--home-ink) !important;
  font-size: 0.92rem !important;
}

body.order-guide-page .sugi-flow-step p {
  color: var(--home-text) !important;
}

body.order-guide-page .sugi-flow-choice a {
  border: 1px solid #cdd9ef;
  border-radius: 4px;
  background: var(--home-soft-blue);
  color: #2a55b0 !important;
}

body.order-guide-page .sugi-flow-company {
  background: #f8f9fb !important;
}

body.order-guide-page .sugi-flow-final {
  border-color: rgba(251, 118, 21, 0.38) !important;
  background: #fff7f0 !important;
  color: #b94e08 !important;
}

body.order-guide-page .mail-order-flow {
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid var(--home-line);
}

body.order-guide-page .mail-order-flow-head h3 {
  color: var(--home-ink) !important;
}

body.order-guide-page .design-prep-lead,
body.order-guide-page .guide-directory-lead {
  margin-top: -28px;
  margin-bottom: 30px;
  color: var(--home-muted);
}

body.order-guide-page .design-prep-grid,
body.order-guide-page .payment-grid {
  gap: 18px;
}

body.order-guide-page :is(
  .design-prep-card,
  .payment-method,
  .order-delivery-card,
  .guide-directory-card,
  .faq-item,
  .contact-box
) {
  border: 1px solid var(--home-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: var(--home-card-shadow) !important;
}

body.order-guide-page :is(
  .design-prep-card,
  .payment-method,
  .guide-directory-card,
  .faq-item,
  .contact-box
):hover {
  transform: none !important;
  border-color: #bdcbe0 !important;
  box-shadow: 0 7px 16px rgba(20, 31, 61, 0.1) !important;
}

body.order-guide-page .design-prep-card {
  padding: 30px !important;
}

body.order-guide-page .design-prep-card-icon,
body.order-guide-page .payment-icon {
  border-radius: 8px;
  background: var(--home-soft-blue);
}

body.order-guide-page .design-prep-button {
  border-radius: 4px !important;
  background: var(--home-blue) !important;
  box-shadow: none !important;
}

body.order-guide-page .design-prep-card:first-child .design-prep-button {
  background: var(--home-orange) !important;
}

body.order-guide-page .design-prep-card:first-child .design-prep-button:hover {
  background: var(--home-orange-dark) !important;
}

body.order-guide-page .payment-method {
  padding: 28px 24px !important;
}

body.order-guide-page .payment-method h3,
body.order-guide-page .order-delivery-card h3 {
  color: var(--home-ink) !important;
  font-size: 1.04rem !important;
}

body.order-guide-page .payment-details {
  border-top-color: var(--home-line);
}

body.order-guide-page .payment-details div {
  border-bottom-color: #e8edf4;
}

body.order-guide-page .payment-details dt {
  color: var(--home-muted) !important;
}

body.order-guide-page .delivery-info-section > .container {
  width: min(100% - 48px, 1320px) !important;
  max-width: 1320px !important;
}

body.order-guide-page .order-delivery-grid {
  gap: 18px;
}

body.order-guide-page .order-delivery-card {
  padding: 26px !important;
}

body.order-guide-page .order-schedule,
body.order-guide-page .order-delivery-table {
  border-color: var(--home-line);
  border-radius: 4px;
  box-shadow: none;
}

body.order-guide-page .order-schedule-head {
  background: #f8f9fb;
}

body.order-guide-page .order-schedule-confirm {
  background: var(--home-blue);
}

body.order-guide-page .order-schedule-bar {
  background: var(--home-blue);
}

body.order-guide-page .order-schedule-bar::after {
  border-left-color: var(--home-blue);
}

body.order-guide-page .order-schedule-ship {
  color: var(--home-orange) !important;
}

body.order-guide-page .order-delivery-row strong {
  background: var(--home-soft-blue);
}

body.order-guide-page .guide-directory {
  max-width: 900px;
  gap: 16px;
}

body.order-guide-page .guide-directory-card {
  padding: 22px 24px;
}

body.order-guide-page .guide-directory-card::after {
  color: var(--home-blue);
}

body.order-guide-page .guide-directory-card strong {
  color: var(--home-ink) !important;
}

body.order-guide-page .faq-container {
  max-width: 980px;
  margin-inline: auto;
}

body.order-guide-page .faq-question {
  min-height: 64px;
  padding: 18px 22px !important;
  background: #ffffff !important;
}

body.order-guide-page .faq-question h3 {
  color: var(--home-ink) !important;
  font-size: 0.94rem !important;
}

body.order-guide-page .faq-toggle {
  color: var(--home-blue) !important;
}

body.order-guide-page .faq-item.active .faq-answer {
  border-top: 1px solid #e8edf4;
  background: #fbfcfe;
}

body.order-guide-page .contact-section::before {
  display: none !important;
}

body.order-guide-page .contact-section > .container {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.order-guide-page .contact-grid {
  gap: 18px;
}

body.order-guide-page .contact-box {
  padding: 30px 24px;
}

body.order-guide-page .contact-icon {
  color: var(--home-blue);
}

body.order-guide-page .contact-section .btn-blue {
  min-width: 200px !important;
  border: 1px solid var(--home-blue) !important;
  border-radius: 4px !important;
  background: var(--home-blue) !important;
  box-shadow: none !important;
}

body.order-guide-page .contact-section .btn-blue:hover {
  border-color: var(--home-blue-dark) !important;
  background: var(--home-blue-dark) !important;
}

@media (max-width: 900px) {
  body.order-guide-page :is(
    .order-process-section,
    .design-prep-section,
    .payment-methods-section,
    .delivery-info-section,
    .guide-directory-section,
    .faq-section,
    .contact-section
  ) {
    padding-block: 52px !important;
  }

  body.order-guide-page .free-design-panel {
    grid-template-columns: 1fr;
  }

  body.order-guide-page .free-design-visual {
    justify-content: flex-start;
  }

  body.order-guide-page .free-design-image-card {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  body.order-guide-page :is(
    .order-process-section,
    .design-prep-section,
    .payment-methods-section,
    .delivery-info-section,
    .guide-directory-section,
    .faq-section,
    .contact-section
  ) > .container,
  body.order-guide-page .order-guide-hero > .container,
  body.order-guide-page .free-design-section > .container {
    width: min(100% - 32px, 1240px) !important;
  }

  body.order-guide-page .order-guide-hero {
    padding-top: 22px !important;
  }

  body.order-guide-page .order-guide-hero-content {
    padding: 34px 10px 38px !important;
  }

  body.order-guide-page .order-guide-hero h1 {
    font-size: 1.75rem !important;
  }

  body.order-guide-page .order-guide-hero p {
    font-size: 0.94rem !important;
  }

  body.order-guide-page .free-design-section {
    padding: 24px 0 46px !important;
  }

  body.order-guide-page .free-design-panel,
  body.order-guide-page .design-prep-card,
  body.order-guide-page .payment-method,
  body.order-guide-page .order-delivery-card,
  body.order-guide-page .contact-box {
    padding: 22px 18px !important;
  }

  body.order-guide-page :is(
    .order-process-section,
    .design-prep-section,
    .payment-methods-section,
    .delivery-info-section,
    .guide-directory-section,
    .faq-section,
    .contact-section
  ) > .container > h2 {
    margin-bottom: 36px !important;
    font-size: 1.35rem !important;
  }

  body.order-guide-page .design-prep-lead,
  body.order-guide-page .guide-directory-lead {
    margin-top: -22px;
  }
}

/* Bottom inquiry block: same background as the other pages (#F4F3F8),
   overriding the white background applied to all guide sections above. */
body.order-guide-page .contact-section {
  background: #F4F3F8 !important;
}

/* FAQ block: white, like the other pages. */
body.order-guide-page .faq-section {
  background: #ffffff !important;
}
