/*
Theme Name: Daiichi Sangyo Theme
Theme URI: https://daiichi-sangyo.co.jp
Description: 大一産業株式会社コーポレートサイト用テーマ
Author: Daiichi Sangyo
Version: 1.0.0
Text Domain: daiichi-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

body {
    font-family: 'Noto Sans JP', sans-serif;
}

.slide {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

.indicator.active {
    width: 3rem;
    background-color: white;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#pickup-scroll {
    display: flex;
    gap: 1.5rem;
}

#pickup-scroll > div {
    min-width: calc(25% - 1.125rem);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    #pickup-scroll > div {
        min-width: calc(50% - 0.75rem);
    }
}

/* ページネーション */
.page-numbers {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.page-numbers li a,
.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.page-numbers li a:hover {
    background-color: #0078E8;
    color: white;
    border-color: #0078E8;
}

.page-numbers li span.current {
    background-color: #0E2B79;
    color: white;
    border-color: #0E2B79;
}

/* 商品カードのテキスト省略 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* WP管理バー対応 */
.admin-bar header.fixed {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar header.fixed {
        top: 46px;
    }
}
