/* ヘッダーとフッターを非表示（実際のクラス名に合わせる） */
header.l-header,
footer.l-footer {
  display: none !important;
}

/* ローディング画面（最前面に配置） */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 999999; /* 確実に最前面へ表示 */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ローディングスピナー */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* コンテナエリアの調整 */
.l-container {
  padding-top: 20px;
}