/* ═══════════════════════════════════════════════════
   nissin-shared.css — A/B共通スタイル
   ═══════════════════════════════════════════════════ */

/* ── ベース背景 ── */
body {
  background-color: #fff !important;
}

/* ── ページ可視化（テンプレートの #page{opacity:0} をオーバーライド） ── */
#page:not(.home) {
  opacity: 1 !important;
}

/* ── ローディングスキップ ── */
.skip-loading #loading-screen {
  display: none !important;
}

/* ── パターン切替ボタン（全ページ共通） ── */
.fixed-pattern-switch {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.fixed-pattern-switch__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.05em;
  margin-right: 2px;
}
.pattern-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  color: #999;
  background: #f0f0f0;
}
.pattern-btn.is-current {
  background: #0f3068;
  color: #fff;
}
.pattern-btn:not(.is-current):hover {
  background: #ddd;
  color: #333;
}

/* ── フッターユーティリティ ── */
.footer-text-white { color: #fff; font-size: 1.025rem; margin-top: 0.5em; position: relative; z-index: 1; }
.footer-relative-z2 { position: relative; z-index: 2; }
.footer-fw500 { font-weight: 500; }
.footer-centered-text { max-width: 600px; margin: 0 auto; }
.footer-fw700 { font-weight: 700; }

/* ── 共通レイアウトシステム ── */
/*
 * 統一ルール:
 *   コンテナ幅: min(90.2040816327vw + 36.7346938776px, 1480px)
 *   パディング: min(1.6326530612vw + 13.8775510204px, 40px)
 *   ブレークポイント: 1024px / 768px
 */
.ns-container {
  width: min(90.2040816327vw + 36.7346938776px, 1480px);
  margin: 0 auto;
  padding: 0 min(1.6326530612vw + 13.8775510204px, 40px);
  box-sizing: border-box;
}
.ns-section {
  padding: 80px 0;
}
@media (max-width: 1024px) {
  .ns-container { width: 100%; padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 768px) {
  .ns-section { padding: 50px 0; }
}

/* ── CTA フッター共通（画像フル幅、テキストをセクション幅に揃え） ── */
.c-cta_footer .c-cta_footer__link:first-child > a {
  padding-left: calc((100vw - min(90.2040816327vw + 36.7346938776px, 1480px)) / 2 + min(1.6326530612vw + 13.8775510204px, 40px)) !important;
}
.c-cta_footer .c-cta_footer__link:last-child > a {
  padding-right: calc((100vw - min(90.2040816327vw + 36.7346938776px, 1480px)) / 2 + min(1.6326530612vw + 13.8775510204px, 40px)) !important;
}
