/* スマホ(〜767px)のメニューボタン(menu.js と対)。PCでは何も出さない。 */
.mm-btn, .mm-head-cta, .mm-panel, .mm-scrim { display: none; }
@media (max-width: 767px) {
  html { -webkit-text-size-adjust: 100%; }
  html { overflow-x: hidden; }
  body { max-width: 100%; }
  header { position: sticky; top: 0; z-index: 40; }
  header .wrap, header .w { display: flex !important; align-items: center; gap: 10px; min-height: 62px; padding-left: 16px; padding-right: 16px; max-width: 100%; box-sizing: border-box; justify-content: flex-start !important; }
  header .logo { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
  header .logo .ls { white-space: nowrap; }
  /* PCのメニューと「トップへ戻る」は、スマホではメニューの中へ */
  header nav:not(.mm-panel), header .back { display: none !important; }
  .mm-head-cta { display: inline-flex; align-items: center; margin-left: auto; min-height: 40px; padding: 0 14px; border-radius: 10px; background: #2563eb; color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .mm-btn { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; margin-left: 0; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; background: transparent; cursor: pointer; flex: none; }
  .mm-bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
  .mm-btn[aria-expanded="true"] .mm-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mm-btn[aria-expanded="true"] .mm-bar:nth-child(2) { opacity: 0; }
  .mm-btn[aria-expanded="true"] .mm-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mm-btn:focus-visible, .mm-panel a:focus-visible { outline: 3px solid #f5b83d; outline-offset: 2px; }
  .mm-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; background: #0d1530; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 40px rgba(0,0,0,.4); padding: 8px 16px 20px; box-sizing: border-box; }
  .mm-panel:not([hidden]) { display: block; }
  .mm-panel a { display: flex !important; align-items: center; min-height: 48px; padding: 0 4px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.1); white-space: normal; }
  .mm-panel a[aria-current="page"] { color: #8fb2ff; }
  .mm-cta { display: flex; gap: 10px; padding-top: 16px; }
  .mm-cta a { flex: 1; justify-content: center; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; border-bottom-width: 1px; }
  .mm-cta .mm-main { background: #2563eb; border-color: #2563eb; }
  .mm-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); }
  .mm-scrim:not([hidden]) { display: block; }
  html.mm-open { overflow: hidden; }
}
@media (max-width: 359px) { .mm-head-cta { display: none; } header .logo { font-size: 16px; } header .logo .ls { font-size: 9px; } header .wrap .mm-btn, header .w .mm-btn { margin-left: auto; } }

/* タブレット幅(768〜1000px)でメニューが横にはみ出さないように */
@media (min-width: 768px) and (max-width: 1000px) { header nav { gap: 10px; } header nav a:not(.btn) { font-size: 13px; } header nav .btn { padding: 7px 12px; } }

/* 広い画面(1600px以上)では、ヒーローの見本を少し大きく */
@media (min-width: 1600px) { .hero .hv { zoom: 1.25; } }
