/* フッター */
.footer { background: var(--deep-red); color: #f8e9e9; padding: 50px 0 0; position: relative; z-index: 1; border-radius: 0; }
.footer-inner { padding: 0 20px; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; position: relative; }
.footer-links-block { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: left; }
.footer-divider { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.3); margin: 20px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-top: 20px; }
.footer-logo-block { text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer-logo-block a { display: inline-block; text-decoration: none; }
.footer-logo-block img { width: 200px; margin-bottom: 10px; display: block; }
.footer-company { font-size: 14px; width: 200px; text-align: center; font-weight: 500; }
.footer-info { text-align: right; display: flex; flex-direction: row; gap: 40px; }
.footer-factory { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 500; }
.factory-name { font-weight: 700; margin-bottom: 3px; font-size: 16px; }
.footer-category { display: flex; flex-direction: column; }
.footer-category-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.footer-link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-link-list li { margin: 0; } 
.footer-link-list a { color: #f8e9e9; text-decoration: none; font-size: 13px; font-weight: 500; font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif; transition: color 0.3s ease, padding-left 0.3s ease; display: block; padding: 2px 0; }
.footer-link-list a:hover { color: var(--yellow); padding-left: 4px; }
/* フッター下部白バー */
.footer-bar { background: #fff; padding: 16px 20px 20px; position: relative; z-index: 1; margin-top: 40px; }
.footer-bar-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-links-bottom { display: flex; gap: 24px; }
.footer-links-bottom a { color: var(--base); text-decoration: none; font-size: 13px; font-weight: 500; font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif; transition: opacity 0.3s ease; }
.footer-links-bottom a:hover { opacity: 0.7; }
.footer-cert { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.footer-cert img { height: 40px; width: auto; }
.footer-cert-note { font-size: 9px; color: #999; }
.footer-copy { font-size: 10px; color: var(--base); margin: 8px 0 0; text-align: center; }
/* 画像保存防止 */
.no-save {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.page-top { position: fixed; bottom: 24px; right: 24px; z-index: 900; opacity: 0; transition: opacity 0.4s ease-out; }
.page-top.show { opacity: 1; }
.page-top a { position: relative; display: flex; flex-direction: column; align-items: center; }
.page-top-plus { position: absolute; top: -5px; left: -5px; width: 15px !important; height: auto !important; max-width: 15px !important; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 1; transform: none !important; }
.page-top a:hover .page-top-plus { opacity: 1; }
.page-top a:hover img:not(.page-top-plus) { animation: bounce 0.3s ease 2; }
.page-top a:not(:hover) img:not(.page-top-plus) { animation: none; transition: transform 0.3s ease-out; }
.page-top img:not(.page-top-plus) { width: 80px; display: block; transition: transform 0.3s ease-out; transform: rotate(10deg); }

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(10deg); }
    50% { transform: translateY(-10px) rotate(15deg); }
}
.page-top span { position: absolute; bottom: 5px; font-size: 12px; color: #fff; font-weight: 700; }

/* レスポンシブ：タブレット（768px～1023px） */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .footer-links-block { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-divider { width: 100%; margin: 20px 0; }
    .footer-bottom { flex-direction: column; gap: 24px; }
    .footer-info { text-align: left; flex-direction: column; gap: 20px; }
}

/* レスポンシブ：タブレット・スマホ共通（1023px以下） */
@media (max-width: 1023px) {
    .footer-bottom { flex-direction: column; gap: 24px; }
}

/* レスポンシブ：スマホ */
/* スマホ（～767px） */
@media (max-width: 767px) {
    .footer-links-block { grid-template-columns: 1fr; gap: 24px; }
    .footer { padding: 40px 20px 0; }
    .footer-divider { width: 100%; margin: 20px 0; }
    .footer-bottom { flex-direction: column; gap: 20px; align-items: center; }
    .footer-logo-block img { width: 150px; }
    .footer-company { width: 150px; font-size: 12px; }
    .footer-info { text-align: center; flex-direction: column; gap: 16px; }
    .footer-factory { font-size: 12px; }
    .factory-name { font-size: 13px; }
    .footer { padding-left: 0; padding-right: 0; }
    .footer-inner { padding: 0 20px; }
    .footer-bar-inner { flex-direction: column; align-items: center; gap: 12px; }
    .footer-bar { padding-bottom: 70px; }
    .footer-links-bottom { gap: 16px; }
    .page-top { bottom: 60px; right: 16px; }
    .page-top img { width: 60px; }
    .page-top span { font-size: 12px; bottom: 5px; }
}
