/* ════════════════════════════════════
   TOPページ サイドバー版 専用CSS
   既存 top.css を @import し、2カラム用の上書きのみ記述
════════════════════════════════════ */
@import url('top.css');

/* ── 2カラムラッパー ── */
.top-sidebar-wrapper {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ── サイドバー ── */
.top-sidebar {
    position: sticky;
    top: 1rem;
}
.top-sidebar h5 {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary, #f28c28);
    margin-bottom: 0.75rem;
}
.top-sidebar .sidebar-cat-group {
    margin-bottom: 1.5rem;
}
.top-sidebar .sidebar-cat-group h6 {
    padding: 0 0 0.4rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.4rem;
}
.top-sidebar .sidebar-cat-group h6 a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.top-sidebar .sidebar-cat-group h6 a:hover {
    color: var(--color-primary, #f28c28);
}
.top-sidebar .sidebar-cat-group ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.top-sidebar .sidebar-cat-group ul li {
    font-size: 0.85rem;
    line-height: 1.8;
}
.top-sidebar .sidebar-cat-group ul li a {
    text-decoration: none;
    color: #555;
    padding-left: 0.5rem;
}
.top-sidebar .sidebar-cat-group ul li a:hover {
    color: var(--color-primary, #f28c28);
}
.top-sidebar .sidebar-cat-group ul ul {
    padding-left: 1rem;
}

/* ── サイドバー内カレンダー ── */
.sb-calendar {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.sb-calendar h5 {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary, #f28c28);
    margin-bottom: 0.75rem;
}
.sb-cal-month {
    margin-bottom: 0.75rem;
}
.sb-cal-title {
    text-align: center;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #333;
}
.sb-cal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.sb-cal-table th {
    text-align: center;
    font-size: 0.7rem;
    padding: 3px 1px;
    color: #666;
    border-bottom: 1px solid #ddd;
}
.sb-cal-table th.sun { color: #e53935; }
.sb-cal-table th.sat { color: #1e88e5; }
.sb-cal-table td {
    text-align: center;
    font-size: 0.75rem;
    padding: 3px 1px;
    color: #333;
}
.sb-cal-table td.empty { color: transparent; }
.sb-cal-table td.sun { color: #e53935; }
.sb-cal-table td.sat { color: #1e88e5; }
.sb-cal-table td.today {
    font-weight: bold;
    border-radius: 50%;
    background: #333;
    color: #fff !important;
}
.sb-cal-table td.holiday {
    background: #ffebee;
    color: #c62828 !important;
    font-weight: bold;
    border-radius: 50%;
}
.sb-cal-table td.order_only {
    background: #fff8e1;
    color: #e65100 !important;
    font-weight: bold;
    border-radius: 50%;
}
.sb-cal-table td.shipping_only {
    background: #e3f2fd;
    color: #1565c0 !important;
    font-weight: bold;
    border-radius: 50%;
}
.sb-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.5rem;
}
.sb-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: #555;
}
.sb-cal-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
}

/* ── メインコンテンツ側のセクション上書き ── */

/* 背景を白に統一 */
.sidebar-main .about-features-section,
.sidebar-main .section-case,
.sidebar-main .section-category,
.sidebar-main .section-news,
.sidebar-main .section-steps {
    background: #fff;
}

/* ABOUTセクション: カラム内に収まるよう縦並び & padding 縮小 */
.sidebar-main .about-features-section {
    width: 100%;
}
.sidebar-main .about-features-inner {
    flex-direction: column;
    padding: 2rem 0;
    gap: 2rem;
    max-width: 100%;
}
.sidebar-main .af-left {
    width: 100%;
}
.sidebar-main .af-heading {
    font-size: 32px;
}

/* 事例セクション */
.sidebar-main .section-case {
    padding: 2rem 0;
}

/* 注文ステップ */
.sidebar-main .section-steps {
    padding: 2rem 0;
}
.sidebar-main .order-steps .step {
    width: calc(50% - 10px);
}

/* 商品カテゴリ */
.sidebar-main .section-category {
    padding: 2rem 0;
}
.sidebar-main .section-category .row .col-12 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* お知らせ */
.sidebar-main .section-news {
    padding: 2rem 0;
}

/* ── セクション区切り線 ── */
.sidebar-main > section + section,
.sidebar-main > div + section,
.sidebar-main > section + div {
    border-top: 1px solid #eee;
}

/* ── レスポンシブ ── */
@media (max-width: 991px) {
    /* タブレット以下: 注文ステップは2列維持 */
    .sidebar-main .order-steps .step {
        width: calc(50% - 10px);
    }
}
@media (max-width: 767px) {
    .sidebar-main .order-steps .step {
        width: 100%;
    }
    .sidebar-main .section-category .row .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
