/* Mobile-only layout repairs. Desktop styles are intentionally untouched. */
@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body {
    position: relative;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  img,
  svg,
  video,
  canvas {
    max-width: 100% !important;
  }

  a,
  button,
  input,
  textarea,
  select {
    pointer-events: auto;
  }

  #nav,
  nav#nav {
    display: none !important;
  }

  .mob-bar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 64px !important;
    padding: 0.75rem 1.25rem !important;
    z-index: 12000 !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid var(--border-soft) !important;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06) !important;
  }

  .mob-logo,
  .mob-logo a {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    line-height: 1 !important;
  }

  .mob-logo img {
    display: block !important;
    width: auto !important;
    height: 36px !important;
    max-width: 168px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
  }

  .mob-btn {
    position: relative !important;
    z-index: 12004 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: #fff !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  .drawer-ov {
    position: fixed !important;
    inset: 0 !important;
    z-index: 12001 !important;
    background: rgba(26, 18, 8, 0.32) !important;
    backdrop-filter: blur(2px) !important;
    pointer-events: auto !important;
  }

  .drawer {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: min(82vw, 340px) !important;
    max-width: calc(100vw - 32px) !important;
    height: 100dvh !important;
    padding: 5rem 1.5rem 2rem !important;
    overflow-y: auto !important;
    z-index: 12003 !important;
    background: var(--white) !important;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.14) !important;
    pointer-events: auto !important;
  }

  .drawer.open {
    right: 0 !important;
  }

  .drawer-x {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 12004 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: #fff !important;
    border: 1px solid var(--border-soft) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  .drawer ul,
  .drawer-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .drawer li,
  .drawer-menu li {
    width: 100% !important;
  }

  .drawer a,
  .drawer-menu a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 0.95rem 0 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .page-hero {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 7rem 2rem 3.25rem !important;
  }

  .page-content,
  .sec,
  .cards-sec,
  .news-sec,
  .contact-sec,
  .phil {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 2rem !important;
    padding-left: 2rem !important;
  }

  .page-content {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  section {
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    padding-top: 64px !important;
    overflow: hidden !important;
  }

  .hero-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 4rem 2rem 2.5rem !important;
  }

  .hero-right {
    order: 2 !important;
    position: relative !important;
    width: 100% !important;
    height: 32vh !important;
    min-height: 260px !important;
    max-height: 320px !important;
    overflow: hidden !important;
  }

  .hero-photo {
    position: absolute !important;
    inset: 0 !important;
    background-position: center !important;
    background-size: cover !important;
  }

  .hero-photo::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.55)) !important;
  }

  .hero-title {
    margin-bottom: 1.4rem !important;
    font-size: clamp(2.2rem, 10vw, 3.2rem) !important;
    line-height: 1.2 !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .hero-body {
    max-width: 100% !important;
    margin-bottom: 2rem !important;
    font-size: 0.92rem !important;
    line-height: 1.9 !important;
    overflow-wrap: anywhere !important;
  }

  .hero-actions {
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 1.6rem !important;
  }

  .hero-actions .btn-orange,
  .btn-orange,
  .btn-line,
  .form-submit,
  .f-btn {
    justify-content: center !important;
    max-width: 100% !important;
    min-height: 44px !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .shop-lbl,
  .sns-lbl {
    display: none !important;
  }

  .shop-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin: 0 0 1.5rem !important;
  }

  .shop-chip {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0.45rem !important;
  }

  .shop-chip img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 42px !important;
    object-fit: contain !important;
  }

  .sns-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
  }

  .sns-icon {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
  }

  .sns-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .scroll-hint,
  .hero-stat-card {
    display: none !important;
  }

  .about-grid,
  .stats-row,
  .svc-grid,
  .cards-grid,
  .contact-sec,
  .contact-grid,
  .overview-grid,
  .greeting-grid,
  .val-grid,
  .loc-grid,
  .jobs-grid,
  .form-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .overview-grid,
  .greeting-grid {
    margin-bottom: 3rem !important;
  }

  .greeting-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }

  .content-img,
  .president-img,
  .philosophy-img,
  .mission-img {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 280px !important;
    min-height: 0 !important;
    margin: 0 auto 1.5rem !important;
    overflow: hidden !important;
  }

  .content-img img,
  .president-img img,
  .philosophy-img img,
  .mission-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .president-profile,
  .greeting-left .president-profile,
  .form-card,
  .info-card,
  .card,
  .svc-card,
  .val-card,
  .loc-card,
  .job-card,
  .biz-item,
  .cta-banner,
  .table-wrap {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .president-profile {
    padding: 1.25rem !important;
  }

  .prose,
  .phil-quote,
  .phil-quote-sub,
  .content-text,
  .mission-text,
  .philosophy-text {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    overflow-wrap: anywhere !important;
  }

  .prose h2 {
    margin-top: 2rem !important;
    margin-bottom: 0.75rem !important;
  }

  .prose p {
    margin-bottom: 1.25rem !important;
    line-height: 1.95 !important;
  }

  .phil-line {
    white-space: normal !important;
  }

  .phil-quote,
  .phil-quote-text {
    font-size: clamp(1.35rem, 7vw, 2rem) !important;
    line-height: 1.65 !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .table-wrap {
    padding: 0 1rem !important;
    overflow-x: hidden !important;
  }

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

  .info-table tr {
    padding: 0.9rem 0 !important;
    border-bottom: 1px solid var(--border-soft) !important;
  }

  .info-table th,
  .info-table td {
    padding: 0.25rem 0 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .info-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
  }

  .info-row-label {
    width: 100% !important;
    min-width: 0 !important;
  }

  input,
  textarea,
  select {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
  }

  .form-card {
    padding: 2rem 1.25rem !important;
  }

  .contact-hl,
  .sec-title,
  .page-hero h1 {
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .news-row,
  .news-item {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .news-arrow,
  .news-arr {
    display: none !important;
  }

  footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2rem !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  .foot-logo {
    max-width: 100% !important;
    letter-spacing: 0.18em !important;
    word-break: keep-all !important;
  }

  .foot-copy {
    max-width: 100% !important;
    line-height: 1.7 !important;
    overflow-wrap: anywhere !important;
  }

  .foot-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
    max-width: 100% !important;
  }
}

@media (max-width: 420px) {
  .page-content,
  .sec,
  .cards-sec,
  .news-sec,
  .contact-sec,
  .phil {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
  }

  .hero-left {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
  }

  .shop-row {
    gap: 0.55rem !important;
  }

  .shop-chip {
    height: 58px !important;
  }

  .content-img,
  .president-img,
  .philosophy-img,
  .mission-img {
    height: 250px !important;
  }
}
