@media (max-width: 1100px) {
  .menu-level-1 > .menu-item + .menu-item {
    margin-left: 32px;
  }

  .menu-level-1 > .menu-item > .menu-link,
  .menu-level-1 > .menu-item > .menu-trigger {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  body {
    overflow-y: auto;
    -webkit-tap-highlight-color: transparent;
  }

  a,
  button {
    -webkit-tap-highlight-color: transparent;
  }

  body.menu-open {
    overflow: hidden;
  }

  .page {
    height: auto;
    min-height: 100vh;
    overflow-y: visible;
  }

  .section {
    height: auto;
    min-height: 0;
  }

  .topbar {
    height: auto;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
  }

  .topbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    z-index: 2002;
  }

  .logo {
    height: 30px;
    width: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(300px, 78vw);
    background: #fff;
    padding: 72px 20px 24px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 2001;
    overflow-y: auto;
  }

  .menu-level-1 {
    display: block;
    height: auto;
    width: 100%;
  }

  .menu-level-1 > .menu-item + .menu-item {
    margin-left: 0;
  }

  .menu-level-1 > .menu-item {
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .menu-level-1 > .menu-item > .menu-link,
  .menu-level-1 > .menu-item > .menu-trigger {
    width: 100%;
    height: auto;
    margin: 0;
    font-size: 16px;
    padding: 12px 0;
    justify-content: space-between;
  }

  .menu-level-1 > .menu-item > .menu-link::after {
    display: none;
  }

  .submenu {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .submenu .submenu {
    left: auto;
  }

  .submenu .menu-item {
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .submenu .menu-item:last-child {
    border-bottom: none;
  }

  .submenu .menu-link,
  .submenu .menu-trigger {
    width: 100%;
    font-size: 14px;
    padding: 10px 0;
    justify-content: space-between;
  }

  .submenu .menu-item.has-children > .menu-trigger::after {
    transform: rotate(45deg) translateY(-1px);
  }

  .submenu .menu-item.has-children.is-open > .menu-trigger::after {
    transform: rotate(-135deg) translateY(-1px);
  }

  .menu-item.has-children.is-open > .submenu {
    max-height: 520px;
  }

  body.menu-open .nav {
    transform: translateX(0);
  }

  .menu-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
  }

  body.menu-open .menu-mask {
    opacity: 1;
    pointer-events: auto;
  }

  .footer-inner {
    padding: 42px 0 20px;
    gap: 24px;
  }

  .footer-title {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .friend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .friend-grid a {
    font-size: 12px;
    white-space: normal;
  }

  .contact-list {
    gap: 12px;
  }

  .contact-list p,
  .contact-list a {
    font-size: 12px;
  }

  .footer-bottom {
    padding-top: 16px;
  }
}
