/* Mobile touch & iOS Safari fixes
   タッチ操作最適化・iOS Safari 固有 fixes を集約 */
@layer utilities {

/* タッチデバイスのホバー無効化（誤反応防止） */
@media (hover: none) {
  .z-btn:hover { background: inherit; }
}

/* iOS Safari: ボトムバー考慮 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .z-bottomnav {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* タップハイライト無効化 */
button, a, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

/* タッチ :active フィードバック */
button:active, a:active, [role="button"]:active {
  opacity: 0.85;
}

} /* end @layer utilities */

/* === Mobile View Banner (PC template on small screens) === */
/* Mobile-first: show banner by default, hide on desktop */
.z-mobile-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 300;
  padding: 0.625rem 1rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
}
.z-mobile-banner a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--surface-raised);
  color: var(--brand-primary);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: var(--text-sm);
}
.z-mobile-banner button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: var(--text-xl);
  cursor: pointer;
  padding: 0;
  min-width: auto;
  min-height: auto;
  line-height: 1;
}
@media (min-width: 769px) {
  .z-mobile-banner { display: none; }
}

/* === CRITICAL: Viewport overflow prevention ===
   .z-app overflow は app-shell.css (display:block mobile default) で正規化済み。
   .z-content max-width は app-shell.css で保持。重複 overflow-x も同様。 */
.z-content {
  max-width: 100% !important;
}
