/* =========================================================
   layout.css — ページの骨組み（ゲスト用 / ログイン後アプリ用）
   モバイルファースト。960px以上でPCレイアウトに切り替わります。
   ========================================================= */

/* ---------- Guest（layouts.guest 相当） ---------- */
.auth { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 56px 24px 40px; overflow: hidden; }
.auth::before { content: ""; position: absolute; top: -120px; left: -60px; right: -60px; height: 420px; background: radial-gradient(ellipse at 50% 30%, rgba(212, 175, 106, .20) 0, transparent 62%); pointer-events: none; }
.auth > * { position: relative; }
.auth__logo { width: min(250px, 64vw); height: auto; margin-bottom: 30px; }
.auth__logo--sm { width: min(190px, 52vw); margin-bottom: 22px; }
.auth__card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; padding: 26px 22px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; }
.auth__title { font: 700 18px/1.5 var(--font-serif); text-align: center; }
.auth__lead { font-size: 12.5px; line-height: 1.8; color: var(--c-text-sub); text-align: center; }
.auth__sub { width: 100%; max-width: 440px; margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 12.5px; color: var(--c-text-weak); }
.auth__links { margin-top: 32px; display: flex; gap: 20px; font-size: 11.5px; color: var(--c-text-weak); }
.auth__center { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 440px; width: 100%; gap: 14px; }

/* ---------- App（layouts.app 相当） ---------- */
.app { min-height: 100vh; padding: var(--header-h) 0 var(--nav-h); }
.app-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.app-header__logo img { height: 26px; width: auto; }
.app-header__back { display: flex; width: 40px; }
.app-header__title { flex: 1; text-align: center; font: 700 16px/1 var(--font-serif); }
.app-header__logo--pc { display: none; }
.app-header__side { min-width: 40px; display: flex; justify-content: flex-end; color: var(--c-text-sub); }
.app-header__nav { display: none; }
.app-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: var(--nav-h); display: flex; padding-bottom: 6px; background: var(--c-surface); border-top: 1px solid var(--c-line); }
.app-nav__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; color: var(--c-text-weak); }
.app-nav__item.is-on { color: var(--c-accent); font-weight: 700; }
.app-nav__icon { position: relative; display: flex; }
.app-nav__icon .badge { position: absolute; top: -6px; right: -12px; }
.page { max-width: 560px; margin: 0 auto; padding: 22px 18px 40px; display: flex; flex-direction: column; gap: 20px; }
.page--wide { max-width: 1100px; }
.page--flush { padding-left: 0; padding-right: 0; }
.page__title { display: none; font: 800 24px/1.4 var(--font-serif); }
.pagebar { position: sticky; top: var(--header-h); z-index: 30; }
.cta-bar { position: fixed; left: 0; right: 0; bottom: var(--nav-h); z-index: 35; display: flex; gap: 10px; padding: 14px 18px; background: linear-gradient(to top, var(--c-bg) 70%, transparent); }
.cta-bar > * { max-width: 560px; }

@media (min-width: 960px) {
  .app { padding: 72px 0 0; }
  .app-header { height: 72px; padding: 0 48px; }
  .app-header__logo img { height: 32px; }
  .app-header__back, .app-header__title { display: none; }
  .app-header__logo--pc { display: block; }
  .app-header__nav { display: flex; gap: 36px; height: 72px; }
  .app-header__nav a { display: flex; align-items: center; gap: 6px; padding: 0 4px; font-size: 14.5px; color: var(--c-text-sub); border-bottom: 2px solid transparent; }
  .app-header__nav a.is-on { color: var(--c-accent); font-weight: 700; border-bottom-color: var(--c-accent); }
  .app-nav { display: none; }
  .page { padding-top: 36px; }
  .page__title { display: block; }
  .cta-bar { bottom: 0; }
  .toast { bottom: 28px; }
  .pagebar { top: 72px; }
}

/* Livewire の単一ルート要素用：子要素をそのまま親(.auth / .page)の直下として扱う */
.lw-root { display: contents; }
