/* first-card-guide.html: 同じ設計（data-adaptive-layout属性、641-1400pxで
   本文を実際に畳む・積み重ねる）。ヘッダーとフッターは他ページ共通、
   guide- と of- で始まるクラスはこのページ固有のセクション。 */
/* 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;
  }

  /* ここからページ固有。 */
  .guide-anchor-list,
  .guide-flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .guide-choice-grid,
  .guide-thickness-grid,
  .guide-difference,
  .guide-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .guide-hero-actions,
  .guide-cta-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .of-flow {
    flex-wrap: wrap !important;
    gap: 38px !important;
    justify-content: center !important;
  }

  .of-arrow {
    display: none !important;
  }

  .of-step {
    max-width: 170px !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;
  }

  .guide-anchor-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .guide-steps,
  .guide-choice-grid,
  .guide-compare,
  .guide-thickness-grid,
  .guide-difference,
  .guide-option-grid,
  .guide-flow-grid {
    grid-template-columns: 1fr !important;
  }

  .guide-delivery-table,
  .guide-delivery-table tbody,
  .guide-delivery-table tr,
  .guide-delivery-table th,
  .guide-delivery-table td {
    display: block !important;
    width: 100% !important;
  }

  .guide-delivery-table th {
    border-bottom: 0 !important;
  }
}

/* Match the order guide's visual shell without changing the selection content. */
body.first-card-guide-page {
  --guide-ink: #333;
  --guide-text: #666;
  --guide-muted: #666;
  --guide-soft: #f8f9fa;
  background: #fff !important;
}
body.first-card-guide-page .guide-hero {
  padding: 20px 0 0;
}
body.first-card-guide-page .guide-hero-content {
  background: linear-gradient(135deg, #f5f7fa, #e4eaf5);
  border-radius: 12px;
  padding: 40px 20px;
  margin-bottom: 60px;
}
body.first-card-guide-page .guide-hero h1 {
  font-size: 2.02rem !important;
  font-weight: 600 !important;
  margin-bottom: 15px;
}
body.first-card-guide-page .guide-hero-lead {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.6;
}
body.first-card-guide-page .guide-section {
  padding: 80px 0;
  background: #f8f9fa;
}
body.first-card-guide-page .guide-section.is-white {
  background: #fff;
}
body.first-card-guide-page .guide-section h2,
body.first-card-guide-page .guide-cta h2 {
  font-size: 20.6px !important;
  font-weight: 600 !important;
  color: #333 !important;
}
body.first-card-guide-page .guide-btn {
  min-width: 250px;
  min-height: 48px;
  padding: 12px 30px;
  font-size: 0.9rem;
  box-sizing: border-box;
}
body.first-card-guide-page .guide-btn-primary {
  border: 2px solid #4273db;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
body.first-card-guide-page .guide-anchor-list a {
  box-shadow: none;
  background: #f8f9fa;
}
body.first-card-guide-page :is(.guide-step-card, .guide-choice-card, .guide-info-card, .guide-option-card, .guide-flow-step, .guide-thickness-card) {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
@media (min-width: 1280px) {
  html body.first-card-guide-page :is(.guide-breadcrumb, .guide-hero, .guide-anchor-band, .guide-section, .guide-cta) > .container {
    max-width: none !important;
    width: min(86.49vw, 1480px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-inline: auto !important;
  }
}
@media (max-width: 1279px) {
  html body.first-card-guide-page .guide-breadcrumb > .container {
    padding-inline: 18px !important;
  }
}
@media (max-width: 768px) {
  body.first-card-guide-page .guide-hero-content {
    padding: 30px 18px;
    margin-bottom: 40px;
  }
  body.first-card-guide-page .guide-hero h1 {
    font-size: 1.62rem !important;
  }
  body.first-card-guide-page .guide-hero-lead {
    font-size: 0.98rem;
    line-height: 1.8;
  }
  body.first-card-guide-page .guide-section {
    padding: 60px 0;
  }
  body.first-card-guide-page .guide-btn {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 480px) {
  body.first-card-guide-page .guide-hero h1 {
    font-size: 1.38rem !important;
  }
}