/* Shared app-style mobile header. */
body.has-app-mobile-header {
  background: #f6f8fc;
}

.app-mobile-header.m-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 900 !important;
  width: 100% !important;
  max-width: 480px !important;
  height: 56px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(226, 231, 241, .9) !important;
  background: rgba(255, 255, 255, .94) !important;
  backdrop-filter: blur(14px) !important;
  box-sizing: border-box !important;
}

.app-mobile-header-inner {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.app-mobile-logo {
  display: block !important;
  width: 166px !important;
  line-height: 0 !important;
}

.app-mobile-logo img {
  display: block !important;
  width: 160px !important;
  height: auto !important;
  max-height: 40px !important;
  object-fit: contain !important;
}

.app-header-menu {
  border: 0 !important;
  background: transparent !important;
  display: inline-flex !important;
  width: 42px !important;
  height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  border-radius: 999px !important;
  color: #20283d !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

.app-header-menu span {
  width: 20px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  display: block !important;
}

.app-menu-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1200 !important;
  min-height: 100dvh !important;
  overflow-y: auto !important;
  background: #fff !important;
  color: #061b3d !important;
  padding: 22px 22px 34px !important;
  box-sizing: border-box !important;
}

.app-menu-drawer[hidden] {
  display: none !important;
}

body.app-menu-open .m-bottom-nav,
body.app-menu-open .app-sticky-cta {
  display: none !important;
}

.app-menu-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid #dfe3ec !important;
}

.app-menu-head h2 {
  margin: 0 !important;
  color: #0b2b63 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.app-menu-close {
  display: grid !important;
  width: 46px !important;
  height: 46px !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f2f3f8 !important;
  color: #0b2b63 !important;
  cursor: pointer !important;
  font-size: 34px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.app-menu-cta {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 24px 0 !important;
}

.app-menu-cta a {
  display: flex !important;
  min-height: 62px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.app-menu-cta-price {
  background: #f26a0a !important;
  color: #fff !important;
}

.app-menu-cta-order {
  background: #123777 !important;
  color: #fff !important;
}

.app-menu-cta-sample {
  border: 1px solid #123777 !important;
  background: #fff !important;
  color: #061b3d !important;
}

.app-menu-links h3 {
  margin: 0 !important;
  padding: 19px 0 9px !important;
  border-bottom: 1px solid #dfe3ec !important;
  color: #4f5b74 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.app-menu-links a {
  display: flex !important;
  align-items: center !important;
  min-height: 56px !important;
  border-bottom: 1px solid #dfe3ec !important;
  color: #061b3d !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.app-menu-links a::after {
  content: '›' !important;
  margin-left: auto !important;
  color: #5f6b80 !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
}

.app-menu-phone {
  margin-top: 26px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 20px 18px !important;
  border-radius: 18px !important;
  background: #f3f2f8 !important;
  color: #123777 !important;
  text-decoration: none !important;
}

.app-menu-phone svg {
  width: 24px !important;
  height: 24px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.app-menu-phone span {
  display: grid !important;
  gap: 5px !important;
}

.app-menu-phone strong {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.app-menu-phone small {
  color: #31415e !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

@media (max-width: 350px) {
  .app-menu-drawer { padding-left: 16px !important; padding-right: 16px !important; }
  .app-menu-cta { gap: 8px !important; }
  .app-menu-cta a { font-size: 13px !important; }
  .app-mobile-logo { width: 148px !important; }
  .app-mobile-logo img { width: 142px !important; }
}

.m-bottom-nav.mobile-nav-v2 {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  max-width: 480px !important;
  height: 84px !important;
  margin: 0 auto !important;
  padding: 8px 4px max(10px, env(safe-area-inset-bottom)) !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: end !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  box-shadow: 0 -7px 24px rgba(16, 24, 40, 0.1) !important;
  overflow: visible !important;
}

.mobile-nav-v2 .m-nav-item {
  position: relative !important;
  top: auto !important;
  min-width: 0 !important;
  height: 66px !important;
  padding: 5px 2px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  color: #34383d !important;
  text-align: center !important;
  text-decoration: none !important;
  font-size: 0.68rem !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  transform: translateY(-10px) !important;
}

.mobile-nav-v2 .m-nav-icon {
  width: 29px !important;
  height: 29px !important;
  margin: 0 !important;
  display: block !important;
  color: currentColor !important;
}

.mobile-nav-v2 .m-nav-icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.mobile-nav-v2 .m-nav-item.active {
  color: #f25512 !important;
}

.mobile-nav-v2 .m-nav-badge {
  position: absolute !important;
  top: 1px !important;
  right: 18% !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  border: 2px solid #fff !important;
  border-radius: 8px !important;
  background: #e62e2e !important;
  color: #fff !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.52rem !important;
}

body.has-mobile-nav-v2 .m-page {
  padding-bottom: 110px !important;
}

body.has-mobile-nav-v2.mobile-nav-cart .m-page {
  padding-bottom: 225px !important;
}

body.has-mobile-nav-v2.mobile-nav-checkout .m-page {
  padding-bottom: 245px !important;
}

/* ナビゲーション本体の高さ(84px)ちょうどに合わせる。以前は102pxで18px分の
   隙間があり、その隙間から下にあるページ本文（支払い方法欄など）が
   透けて見えてしまっていた。 */
body.has-mobile-nav-v2 .m-bottom-bar {
  bottom: 84px !important;
}

@media (max-width: 350px) {
  .mobile-nav-v2 .m-nav-item { font-size: 0.62rem !important; }
  .mobile-nav-v2 .m-nav-icon { width: 26px !important; height: 26px !important; }
}

/* iOS polish pass 2026-10-01 */
:root {
  --ios-bg: #f5f5f7;
  --ios-card: rgba(255, 255, 255, .82);
  --ios-ink: #111827;
  --ios-muted: #6b7280;
  --ios-blue: #0a3a82;
  --ios-orange: #ff7a1a;
  --ios-line: rgba(60, 60, 67, .14);
  --ios-shadow: 0 16px 42px rgba(15, 23, 42, .10);
}

body.has-app-mobile-header {
  background: var(--ios-bg) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-app-mobile-header .m-page {
  background: var(--ios-bg) !important;
}

.app-mobile-header.m-header {
  height: 58px !important;
  padding: 0 18px !important;
  border-bottom: 0 !important;
  background: rgba(255, 255, 255, .74) !important;
  backdrop-filter: saturate(180%) blur(22px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(22px) !important;
  box-shadow: 0 .5px 0 rgba(60, 60, 67, .18) !important;
}

.app-mobile-logo {
  width: 174px !important;
}

.app-mobile-logo img {
  width: 168px !important;
  max-height: 42px !important;
}

.app-header-menu {
  width: 42px !important;
  height: 42px !important;
  background: rgba(118, 118, 128, .10) !important;
  color: #10203d !important;
  transition: transform .16s ease, background .16s ease !important;
}

.app-header-menu:active {
  transform: scale(.96) !important;
  background: rgba(118, 118, 128, .18) !important;
}

.app-header-menu span {
  width: 18px !important;
  height: 1.8px !important;
}

.app-menu-drawer {
  background: #f5f5f7 !important;
  color: var(--ios-ink) !important;
  padding: max(18px, env(safe-area-inset-top)) 18px 28px !important;
}

.app-menu-head {
  min-height: 54px !important;
  padding: 0 0 14px !important;
  border-bottom: .5px solid var(--ios-line) !important;
}

.app-menu-head h2 {
  color: #0b2248 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
}

.app-menu-close {
  width: 44px !important;
  height: 44px !important;
  background: rgba(118, 118, 128, .12) !important;
  color: #13213a !important;
  font-size: 31px !important;
  font-weight: 300 !important;
  transition: transform .16s ease, background .16s ease !important;
}

.app-menu-close:active {
  transform: scale(.95) !important;
  background: rgba(118, 118, 128, .20) !important;
}

.app-menu-cta {
  gap: 10px !important;
  padding: 22px 0 22px !important;
}

.app-menu-cta a {
  min-height: 58px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06) !important;
  transition: transform .16s ease, filter .16s ease !important;
}

.app-menu-cta a:active {
  transform: scale(.98) !important;
  filter: brightness(.98) !important;
}

.app-menu-cta-price {
  background: linear-gradient(180deg, #ff852b, #f0640a) !important;
}

.app-menu-cta-order {
  background: linear-gradient(180deg, #173f86, #0d2f6d) !important;
}

.app-menu-cta-sample {
  border: .8px solid rgba(13, 47, 109, .55) !important;
  background: rgba(255, 255, 255, .82) !important;
}

.app-menu-links {
  overflow: hidden !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .86) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055) !important;
}

.app-menu-links h3 {
  padding: 18px 16px 8px !important;
  border-bottom: .5px solid var(--ios-line) !important;
  background: rgba(247, 247, 249, .88) !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
}

.app-menu-links a {
  min-height: 54px !important;
  padding: 0 16px !important;
  border-bottom: .5px solid var(--ios-line) !important;
  color: #071c3d !important;
  font-size: 15.5px !important;
  font-weight: 650 !important;
  letter-spacing: -.015em !important;
  background: rgba(255, 255, 255, .72) !important;
}

.app-menu-links a:last-child {
  border-bottom: 0 !important;
}

.app-menu-links a:active {
  background: rgba(118, 118, 128, .10) !important;
}

.app-menu-links a::after {
  color: rgba(60, 60, 67, .42) !important;
  font-size: 24px !important;
}

.app-menu-phone {
  margin-top: 18px !important;
  border: .5px solid rgba(60, 60, 67, .10) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06) !important;
  color: #0d2f6d !important;
}

.app-menu-phone strong {
  font-size: 20px !important;
  letter-spacing: .01em !important;
}

.app-menu-phone small {
  color: #667085 !important;
}

.m-bottom-nav.mobile-nav-v2 {
  left: 10px !important;
  right: 10px !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: 460px !important;
  height: 74px !important;
  padding: 7px 8px !important;
  border: .5px solid rgba(60, 60, 67, .16) !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, .82) !important;
  backdrop-filter: saturate(180%) blur(24px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(24px) !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .16) !important;
}

.mobile-nav-v2 .m-nav-item {
  height: 60px !important;
  justify-content: center !important;
  gap: 3px !important;
  color: #2f3542 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: -.02em !important;
  transform: none !important;
  border-radius: 20px !important;
  transition: background .16s ease, transform .16s ease, color .16s ease !important;
}

.mobile-nav-v2 .m-nav-item:active {
  transform: scale(.96) !important;
  background: rgba(118, 118, 128, .10) !important;
}

.mobile-nav-v2 .m-nav-icon {
  width: 26px !important;
  height: 26px !important;
}

.mobile-nav-v2 .m-nav-icon svg {
  stroke-width: 1.95 !important;
}

.mobile-nav-v2 .m-nav-item.active {
  color: var(--ios-orange) !important;
  background: rgba(255, 122, 26, .12) !important;
}

.mobile-nav-v2 .m-nav-badge {
  top: 4px !important;
  right: 17% !important;
  border-color: rgba(255, 255, 255, .95) !important;
  background: #ff3b30 !important;
}

body.has-mobile-nav-v2 .m-page {
  padding-bottom: 104px !important;
}

body.has-mobile-nav-v2 .m-bottom-bar {
  bottom: 92px !important;
}

body.has-app-mobile-header .m-card,
body.has-app-mobile-header .mpd-section,
body.has-app-mobile-header .m-section > .m-card,
body.has-app-mobile-header .m-summary-card,
body.has-app-mobile-header .m-form-card,
body.has-app-mobile-header .m-stats-card,
body.has-app-mobile-header .m-ticket-card,
body.has-app-mobile-header .m-coupon-card {
  border-color: rgba(60, 60, 67, .10) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055) !important;
}

body.has-app-mobile-header h1,
body.has-app-mobile-header h2,
body.has-app-mobile-header h3 {
  letter-spacing: -.025em;
}

@media (max-width: 350px) {
  .app-mobile-header.m-header { padding-left: 14px !important; padding-right: 14px !important; }
  .app-mobile-logo { width: 152px !important; }
  .app-mobile-logo img { width: 148px !important; }
  .app-menu-cta { gap: 8px !important; }
  .app-menu-cta a { min-height: 54px !important; font-size: 12.5px !important; border-radius: 14px !important; }
  .m-bottom-nav.mobile-nav-v2 { left: 7px !important; right: 7px !important; border-radius: 24px !important; }
  .mobile-nav-v2 .m-nav-item { font-size: 10px !important; }
  .mobile-nav-v2 .m-nav-icon { width: 24px !important; height: 24px !important; }
}

body.app-menu-open .notification-bell,
body.app-menu-open #notificationBell,
body.app-menu-open .m-bell,
body.app-menu-open .bell-button {
  display: none !important;
}

/* Header icons: bag and two-line menu */
.app-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  margin-left: auto !important;
}

.app-header-cart,
.app-header-menu {
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1d1d1f !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.app-header-cart svg {
  width: 27px !important;
  height: 27px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.app-header-menu {
  gap: 7px !important;
}

.app-header-menu span {
  width: 26px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
}

.app-header-menu:active,
.app-header-cart:active {
  opacity: .55 !important;
  transform: none !important;
  background: transparent !important;
}

.m-header,
.app-mobile-header.m-header {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 350px) {
  .app-header-actions { gap: 18px !important; }
  .app-header-cart,
  .app-header-menu { width: 32px !important; height: 32px !important; }
  .app-header-cart svg { width: 25px !important; height: 25px !important; }
  .app-header-menu span { width: 24px !important; }
}

/* Apple dark full-screen menu */
.app-menu-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1200 !important;
  min-height: 100dvh !important;
  overflow-y: auto !important;
  background: #161617 !important;
  color: #f5f5f7 !important;
  padding: max(68px, env(safe-area-inset-top)) 34px calc(42px + env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
}

.app-menu-drawer[hidden] {
  display: none !important;
}

.app-menu-close {
  position: fixed !important;
  top: max(20px, env(safe-area-inset-top)) !important;
  right: 26px !important;
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f5f5f7 !important;
  font-size: 46px !important;
  font-weight: 200 !important;
  line-height: 1 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.app-menu-close:active {
  opacity: .55 !important;
  transform: none !important;
}

.app-menu-head,
.app-menu-cta,
.app-menu-phone {
  display: none !important;
}

.app-menu-links {
  display: grid !important;
  gap: 22px !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.app-menu-links h3 {
  display: none !important;
}

.app-menu-links a {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #f5f5f7 !important;
  font-size: clamp(37px, 10.5vw, 58px) !important;
  font-weight: 700 !important;
  letter-spacing: -.055em !important;
  line-height: 1.08 !important;
  text-decoration: none !important;
}

.app-menu-links a::after {
  display: none !important;
}

.app-menu-links a:active {
  opacity: .6 !important;
  background: transparent !important;
}

.app-menu-primary-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 34px !important;
}

.app-menu-primary-actions a {
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 16px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  text-decoration: none !important;
}

.app-menu-primary-order {
  background: #f5f5f7 !important;
  color: #161617 !important;
}

.app-menu-primary-contact {
  background: rgba(245, 245, 247, .14) !important;
  color: #f5f5f7 !important;
  border: 1px solid rgba(245, 245, 247, .28) !important;
}

body.app-menu-open .m-bottom-nav,
body.app-menu-open .app-sticky-cta,
body.app-menu-open .notification-bell,
body.app-menu-open #notificationBell,
body.app-menu-open .m-bell,
body.app-menu-open .bell-button {
  display: none !important;
}

@media (max-width: 350px) {
  .app-menu-drawer {
    padding-left: 26px !important;
    padding-right: 26px !important;
  }
  .app-menu-links {
    gap: 18px !important;
  }
  .app-menu-primary-actions a {
    min-height: 54px !important;
    font-size: 16px !important;
  }
}

/* White Apple full-screen menu override */
.app-menu-drawer {
  background: #ffffff !important;
  color: #1d1d1f !important;
}

.app-menu-close {
  color: #1d1d1f !important;
}

.app-menu-links a {
  color: #1d1d1f !important;
}

.app-menu-primary-order {
  background: #1d1d1f !important;
  color: #ffffff !important;
}

.app-menu-primary-contact {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  border: 1px solid #d2d2d7 !important;
}

/* Apple menu purpose list sizing */
.app-menu-drawer {
  padding-top: max(58px, env(safe-area-inset-top)) !important;
}

.app-menu-links {
  gap: 13px !important;
}

.app-menu-links a {
  font-size: clamp(24px, 7.2vw, 34px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.045em !important;
}

.app-menu-primary-actions {
  margin-top: 24px !important;
}

@media (max-width: 350px) {
  .app-menu-links {
    gap: 10px !important;
  }
  .app-menu-links a {
    font-size: 22px !important;
  }
}

/* Trim excessive tail whitespace above the floating mobile tab bar on normal pages. */
body.has-mobile-nav-v2:not(.mobile-nav-cart):not(.mobile-nav-checkout) .m-page {
  padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
}

/* Keep product-detail mobile pages tight after the legal footer. */
body.has-app-mobile-header.has-mobile-nav-v2 .m-page {
  min-height: auto !important;
}
body.has-app-mobile-header.has-mobile-nav-v2 .m-page > :last-child {
  margin-bottom: 0 !important;
}
body.has-app-mobile-header.has-mobile-nav-v2 footer,
body.has-app-mobile-header.has-mobile-nav-v2 .footer,
body.has-app-mobile-header.has-mobile-nav-v2 .site-footer,
body.has-app-mobile-header.has-mobile-nav-v2 .mobile-footer {
  margin-bottom: 0 !important;
  padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
}

/* Smaller shared app menu text for long Japanese category labels. */
.app-menu-links {
  gap: 11px !important;
}
.app-menu-links a {
  font-size: clamp(20px, 6vw, 28px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.035em !important;
}
.app-menu-primary-actions a {
  font-size: 13px !important;
  min-height: 46px !important;
  border-radius: 13px !important;
}
@media (max-width: 350px) {
  .app-menu-links a { font-size: 19px !important; }
  .app-menu-primary-actions a { font-size: 12px !important; }
}

/* Even smaller shared app menu text pass. */
.app-menu-links {
  gap: 9px !important;
}
.app-menu-links a {
  font-size: clamp(17px, 5.1vw, 24px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em !important;
}
.app-menu-primary-actions a {
  font-size: 12px !important;
  min-height: 42px !important;
  border-radius: 12px !important;
}
@media (max-width: 350px) {
  .app-menu-links a { font-size: 16px !important; }
  .app-menu-primary-actions a { font-size: 11.5px !important; }
}

/* Apple-like lighter shopping bag icon. */
.app-header-cart svg {
  width: 29px !important;
  height: 29px !important;
  stroke-width: 1.75 !important;
}

/* Apple-like mobile bag panel. */
body.app-cart-open .m-bottom-nav,
body.app-cart-open .app-sticky-cta,
body.app-cart-open .notification-bell,
body.app-cart-open #notificationBell,
body.app-cart-open .m-bell,
body.app-cart-open .bell-button {
  display: none !important;
}
.app-cart-panel {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1210 !important;
  min-height: 100dvh !important;
  overflow-y: auto !important;
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  padding: max(76px, env(safe-area-inset-top)) 48px calc(42px + env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
}
.app-cart-panel[hidden] { display: none !important; }
.app-cart-close {
  position: fixed !important;
  top: max(22px, env(safe-area-inset-top)) !important;
  right: 30px !important;
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  background: transparent !important;
  color: #1d1d1f !important;
  font-size: 42px !important;
  font-weight: 200 !important;
  line-height: 1 !important;
  padding: 0 !important;
}
.app-cart-inner { max-width: 390px !important; margin: 0 auto !important; }
.app-cart-inner h2 {
  margin: 0 0 36px !important;
  color: #1d1d1f !important;
  font-size: clamp(32px, 8vw, 42px) !important;
  font-weight: 700 !important;
  letter-spacing: -.055em !important;
  line-height: 1.12 !important;
}
.app-cart-inner p {
  margin: 0 0 72px !important;
  color: #6e6e73 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.48 !important;
}
.app-cart-inner p a { color: #06c !important; text-decoration: underline !important; text-underline-offset: 3px !important; }
.app-cart-profile > span {
  display: block !important;
  margin: 0 0 22px !important;
  color: #6e6e73 !important;
  font-size: 17px !important;
  line-height: 1.3 !important;
}
.app-cart-profile a {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  min-height: 48px !important;
  color: #1d1d1f !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -.035em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}
.app-cart-profile svg {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  fill: none !important;
  stroke: #7d7d82 !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
@media (max-width: 350px) {
  .app-cart-panel { padding-left: 34px !important; padding-right: 34px !important; }
  .app-cart-inner h2 { font-size: 29px !important; }
  .app-cart-inner p { font-size: 16px !important; margin-bottom: 52px !important; }
  .app-cart-profile a { font-size: 20px !important; gap: 16px !important; }
}

/* Business-sized bag panel typography. */
.app-cart-panel {
  padding: max(70px, env(safe-area-inset-top)) 38px calc(34px + env(safe-area-inset-bottom)) !important;
}
.app-cart-inner h2 {
  margin-bottom: 24px !important;
  font-size: clamp(24px, 6.4vw, 32px) !important;
  letter-spacing: -.04em !important;
  line-height: 1.16 !important;
}
.app-cart-inner p {
  margin-bottom: 46px !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}
.app-cart-profile > span {
  margin-bottom: 16px !important;
  font-size: 14px !important;
}
.app-cart-profile a {
  min-height: 42px !important;
  gap: 16px !important;
  font-size: 18px !important;
  font-weight: 650 !important;
  letter-spacing: -.025em !important;
}
.app-cart-profile svg {
  width: 20px !important;
  height: 20px !important;
  flex-basis: 20px !important;
}
@media (max-width: 350px) {
  .app-cart-panel { padding-left: 28px !important; padding-right: 28px !important; }
  .app-cart-inner h2 { font-size: 22px !important; }
  .app-cart-inner p { font-size: 14px !important; margin-bottom: 38px !important; }
  .app-cart-profile a { font-size: 17px !important; }
}

/* Top header actions: search / bag / menu. */
.app-header-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
}
.app-header-search,
.app-header-cart {
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #20283d !important;
  padding: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
}
.app-header-search svg,
.app-header-cart svg {
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.app-header-search svg {
  width: 30px !important;
  height: 30px !important;
  stroke-width: 1.85 !important;
}

/* Apple-like search dropdown panel. */
body.app-search-open .m-bottom-nav,
body.app-search-open .app-sticky-cta,
body.app-search-open .notification-bell,
body.app-search-open #notificationBell,
body.app-search-open .m-bell,
body.app-search-open .bell-button {
  display: none !important;
}
.app-search-panel {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  z-index: 1220 !important;
  width: 100% !important;
  max-width: 480px !important;
  min-height: 100dvh !important;
  transform: translateX(-50%) !important;
  padding: 76px 34px 48px !important;
  background: #fbfbfd !important;
  box-sizing: border-box !important;
  color: #1d1d1f !important;
}
.app-search-panel[hidden] { display: none !important; }
.app-search-close {
  position: absolute !important;
  top: 22px !important;
  right: 24px !important;
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  background: transparent !important;
  color: #1d1d1f !important;
  font-size: 34px !important;
  line-height: 1 !important;
  font-weight: 300 !important;
}
.app-search-form { margin: 0 0 72px !important; }
.app-search-label {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  color: #6e6e73 !important;
}
.app-search-label svg {
  flex: 0 0 auto !important;
  width: 38px !important;
  height: 38px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.app-search-label input {
  width: 100% !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #1d1d1f !important;
  font-size: 34px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.045em !important;
}
.app-search-label input::placeholder { color: #6e6e73 !important; opacity: 1 !important; }
.app-search-links {
  display: grid !important;
  gap: 23px !important;
}
.app-search-links > span {
  color: #86868b !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}
.app-search-links a {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  color: #333336 !important;
  font-size: 21px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}
.app-search-links a::before {
  content: "→" !important;
  color: #6e6e73 !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}
@media (max-width: 360px) {
  .app-search-panel { padding-left: 28px !important; padding-right: 28px !important; }
  .app-search-label input { font-size: 30px !important; }
  .app-search-links a { font-size: 19px !important; }
}

/* Search panel result tabs and richer result rows. */
.app-search-tabs {
  display: flex !important;
  gap: 28px !important;
  margin: -42px 0 20px !important;
  border-bottom: 1px solid #d2d2d7 !important;
}
.app-search-tabs button {
  border: 0 !important;
  background: transparent !important;
  padding: 0 0 12px !important;
  color: #86868b !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
.app-search-tabs button.active {
  color: #1d1d1f !important;
  border-bottom: 1px solid #1d1d1f !important;
}
.app-search-count {
  min-height: 22px !important;
  margin: 0 0 24px !important;
  color: #86868b !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}
.app-search-links a {
  grid-template-columns: 25px minmax(0, 1fr) !important;
  gap: 12px !important;
  min-height: 54px !important;
}
.app-search-links a strong {
  display: block !important;
  color: #333336 !important;
  font-size: 20px !important;
  font-weight: 750 !important;
  line-height: 1.22 !important;
}
.app-search-links a small {
  display: block !important;
  margin-top: 3px !important;
  color: #86868b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

/* Fix search panel rows: keep descriptions horizontal. */
.app-search-links {
  gap: 0 !important;
}
.app-search-links a {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  min-height: 78px !important;
  padding: 10px 0 16px !important;
  border-bottom: 0 !important;
}
.app-search-links a::before {
  flex: 0 0 42px !important;
  width: 42px !important;
  display: block !important;
  padding-top: 2px !important;
  text-align: left !important;
}
.app-search-links a strong,
.app-search-links a small {
  grid-column: auto !important;
  min-width: 0 !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}
.app-search-links a strong {
  margin: 0 !important;
}
.app-search-links a small {
  margin-top: 7px !important;
}

/* Polished Apple-like search suggestion rows. */
.app-search-panel .app-search-links {
  display: grid !important;
  gap: 6px !important;
}
.app-search-panel .app-search-links a {
  min-height: 72px !important;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  column-gap: 18px !important;
  align-items: center !important;
  padding: 8px 0 !important;
  color: #1d1d1f !important;
}
.app-search-panel .app-search-links a::before {
  width: 28px !important;
  flex-basis: 28px !important;
  padding: 0 !important;
  color: #6e6e73 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  text-align: left !important;
}
.app-search-panel .app-search-links a strong,
.app-search-panel .app-search-links a small {
  display: block !important;
  max-width: 100% !important;
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}
.app-search-panel .app-search-links a strong {
  color: #1d1d1f !important;
  font-size: 23px !important;
  font-weight: 780 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.035em !important;
}
.app-search-panel .app-search-links a small {
  margin-top: 5px !important;
  color: #86868b !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}
.app-search-panel .app-search-count {
  margin-bottom: 18px !important;
}
@media (max-width: 360px) {
  .app-search-panel .app-search-links a { grid-template-columns: 24px minmax(0, 1fr) !important; column-gap: 14px !important; }
  .app-search-panel .app-search-links a strong { font-size: 20px !important; }
  .app-search-panel .app-search-links a small { font-size: 13px !important; }
}

/* Keep short search descriptions on one line. */
.app-search-panel .app-search-links a small {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Show short search descriptions fully on one line. */
.app-search-panel .app-search-links a {
  grid-template-columns: 28px max-content !important;
}
.app-search-panel .app-search-links a small {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
}

/* Global mobile header divider: hidden at top, visible only after scrolling. */
.app-mobile-header.m-header {
  border-bottom: 0 !important;
  box-shadow: none !important;
}
.app-mobile-header.m-header.is-scrolled {
  border-bottom: 0 !important;
  box-shadow: 0 1px 0 rgba(60, 60, 67, .18), 0 8px 18px rgba(15, 23, 42, .06) !important;
}

/* 下部ナビゲーションは廃止 */
.m-bottom-nav, .mobile-nav-v2 { display: none !important; }
body.has-mobile-nav-v2 { padding-bottom: 0 !important; }

/* ===== 検索パネル（整理版）: 検索ボックスを丸型に、候補を一覧に ===== */
html body .app-search-panel { padding: 12px 16px 32px !important; background: #fff !important; overflow-y: auto !important; }
html body .app-search-close { top: 12px !important; right: 12px !important; width: 40px !important; height: 40px !important; font-size: 28px !important; font-weight: 300 !important; }
html body .app-search-form { margin: 0 52px 14px 0 !important; }
html body .app-search-label { gap: 10px !important; height: 44px !important; padding: 0 14px !important; border-radius: 999px !important; background: #f2f2f5 !important; color: #6e6e73 !important; }
html body .app-search-label svg { width: 20px !important; height: 20px !important; stroke-width: 2 !important; }
html body .app-search-label input { min-width: 0 !important; height: 44px !important; padding: 0 !important; font-size: 16px !important; font-weight: 500 !important; letter-spacing: 0 !important; line-height: 44px !important; -webkit-appearance: none !important; appearance: none !important; }
html body .app-search-label input::-webkit-search-cancel-button,
html body .app-search-label input::-webkit-search-decoration { -webkit-appearance: none !important; display: none !important; }
html body .app-search-tabs { margin: 0 0 6px !important; gap: 20px !important; border-bottom: 1px solid #e5e5ea !important; }
html body .app-search-tabs button { padding: 8px 0 !important; font-size: 14px !important; }
html body .app-search-panel .app-search-count { margin: 12px 0 4px !important; font-size: 12px !important; color: #86868b !important; }
html body .app-search-panel .app-search-links { display: block !important; gap: 0 !important; }
html body .app-search-panel .app-search-links a { display: block !important; position: relative !important; padding: 13px 28px 13px 0 !important; border-bottom: 1px solid #f0f0f3 !important; font-size: 15px !important; grid-template-columns: none !important; }
html body .app-search-panel .app-search-links a::before { display: none !important; }
html body .app-search-panel .app-search-links a::after { content: "›" !important; position: absolute !important; right: 4px !important; top: 50% !important; transform: translateY(-50%) !important; color: #b0b0b6 !important; font-size: 20px !important; }
html body .app-search-panel .app-search-links a strong { display: block !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1.4 !important; letter-spacing: 0 !important; white-space: normal !important; overflow-wrap: anywhere !important; }
html body .app-search-panel .app-search-links a small { display: block !important; margin-top: 2px !important; font-size: 12px !important; font-weight: 400 !important; color: #86868b !important; }

/* ヘッダーのボタンはどのページでも同じ大きさにする（home-app.css の上書きに負けないように）。 */
html body .app-header-search, html body .app-header-cart { width: 42px !important; height: 42px !important; }
html body .app-header-menu { width: 34px !important; height: 34px !important; }
html body .app-header-actions { gap: 12px !important; }
html body .app-search-panel .app-search-empty { margin: 24px 0 !important; color: #86868b !important; font-size: 14px !important; line-height: 1.7 !important; }

/* メニュー・バッグ・検索パネル内のリンク色は、各ページの「a { color: … }」に左右されないよう固定する。 */
html body .app-menu-drawer.app-menu-drawer .app-menu-links.app-menu-links a { color: #1d1d1f !important; font-weight: 700 !important; text-decoration: none !important; }
html body .app-menu-drawer.app-menu-drawer .app-menu-primary-contact.app-menu-primary-contact { color: #1d1d1f !important; }
html body .app-menu-drawer.app-menu-drawer .app-menu-primary-order.app-menu-primary-order { color: #fff !important; }
/* 2026-10-25 style.css の全体文字色ルール（ID 9個分の強さ）に負けて黒地に濃い文字になっていたので、ドロワーのIDで上回る */
html body #appHeaderMenu .app-menu-primary-order:not(#qz0):not(#qz1):not(#qz2):not(#qz3):not(#qz4):not(#qz5):not(#qz6):not(#qz7):not(#qz8):not(#qz9) { color: #fff !important; }
html body .app-cart-panel.app-cart-panel .app-cart-inner.app-cart-inner a { color: #1d1d1f !important; }
html body .app-cart-panel.app-cart-panel .app-cart-inner.app-cart-inner p a { color: #0071e3 !important; }
html body .app-search-panel.app-search-panel .app-search-links.app-search-links a, html body .app-search-panel.app-search-panel .app-search-links.app-search-links a strong { color: #1d1d1f !important; }
html body .app-search-panel.app-search-panel .app-search-links.app-search-links a small { color: #86868b !important; }
/* Global: remove the old five-item bottom tab bar on every mobile page. */
.m-bottom-nav,
.mobile-bottom-nav,
.bottom-nav,
.mobile-tab-nav,
nav[aria-label="モバイルナビゲーション"],
nav[aria-label="下部ナビゲーション"] {
  display: none !important;
}

body {
  padding-bottom: env(safe-area-inset-bottom) !important;
}

/* メニューの「用途から選ぶ／カードの種類から選ぶ」グループ（js/mobile-bottom-nav.js が生成）の表示を固定する。 */
html body .app-menu-drawer.app-menu-drawer .app-menu-links.app-menu-links a.mobile-menu-category-hidden { display: none !important; }
html body .app-menu-drawer.app-menu-drawer .app-menu-links.app-menu-links .mobile-menu-category-fix a { display: flex !important; align-items: center !important; min-height: 44px !important; margin: 0 !important; padding: 0 14px !important; border-radius: 14px !important; background: #fff !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.4 !important; }
html body .app-menu-drawer .mobile-menu-category-fix .menu-link-grid { display: grid !important; gap: 6px !important; padding: 0 10px 12px !important; }
html body .app-menu-drawer .mobile-menu-category-fix summary { min-height: 52px !important; font-size: 15px !important; font-weight: 700 !important; }

/* ID卡サイト：ロゴが「SUGI CARD ＋ ID PRINT」と横に長いので、手機ヘッダーのロゴ幅を広げる */
html[data-storefront="id-card"] .app-mobile-logo { width: 206px !important; }
html[data-storefront="id-card"] .app-mobile-logo img { width: 200px !important; max-height: 34px !important; }
@media (max-width: 380px) {
  html[data-storefront="id-card"] .app-mobile-logo { width: 170px !important; }
  html[data-storefront="id-card"] .app-mobile-logo img { width: 164px !important; }
}
@media (max-width: 340px) {
  html[data-storefront="id-card"] .app-mobile-logo { width: 148px !important; }
  html[data-storefront="id-card"] .app-mobile-logo img { width: 142px !important; }
}
