/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* スティッキーフッター: コンテンツが少なくてもフッターを画面下部に配置 */
.with-footer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; /* 動的ビューポート対応（モバイルブラウザのアドレスバー考慮） */
}

.with-footer > .site-footer {
  margin-top: auto;
  flex-shrink: 0; /* フッターが縮まないようにする */
}

/* サイトフッター */
.site-footer {
  background-color: #f7f7f7;
  border-top: 1px solid #dddfe2;
  padding: 15px 20px;
  text-align: center;
  font-family: var(--font-family-base);
  font-size: 13px;
  color: #606770;
  height: 50px; /* フッターの高さを固定（layout.cssの計算で使用） */
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-separator {
  color: #ccd0d5;
}

.footer-link {
  color: #606770;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* スマホでフッターを非表示にするクラス */
@media (max-width: 768px) {
  body.hide-footer-mobile .site-footer {
    display: none;
  }
}
