/* ========================================
   Front Page - ZUU CC Child
   2カラム（メイン70% + サイドバー30%）
   ダイヤモンド CRYPTO INSIGHT 風構成
   ======================================== */
:root {
    --zuu-brand-red: #CC0000;
}

/* ========================================
   フロントページ: 不要な要素を非表示
   ======================================== */

/* 全ての #content.l-content を潰す（header.phpとfront-page.phpで2つ出力される） */
body.home #content,
body.home .l-content,
.top #content {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    border: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

#home-main {
    margin-top: 0;
    background: var(--zuu-gray-100);
}

/* ========================================
   2カラム レイアウト
   ======================================== */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.home-main {
    flex: 1;
    min-width: 0;
}
.home-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

@media (max-width: 767px) {
    .home-container {
        flex-direction: column;
        padding: 16px 16px 40px;
        gap: 24px;
    }
    .home-sidebar {
        width: 100%;
        position: static;
    }
}

/* ========================================
   共通: セクション
   ======================================== */
.home-section {
    margin-bottom: 40px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--zuu-black);
    border-left: 4px solid var(--zuu-brand-red);
    padding-left: 10px;
    line-height: 1.3;
    margin: 0;
}
.section-more {
    font-size: 12px;
    color: var(--zuu-brand-red);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.section-more:hover {
    opacity: 0.7;
}
.section-footer {
    text-align: center;
    margin-top: 20px;
}
.btn-more {
    display: inline-block;
    border: 1px solid var(--zuu-gray-300);
    color: var(--zuu-gray-700);
    padding: 8px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-more:hover {
    background: var(--zuu-black);
    color: var(--zuu-white);
    border-color: var(--zuu-black);
}

/* ========================================
   共通: カード（ニュースカードベース）
   ======================================== */

/* 大カード */
.card-main a {
    display: flex;
    gap: 20px;
    background: var(--zuu-white);
    border: 1px solid #e5e5e5;
    border-radius: var(--zuu-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}
.card-main a:hover {
    box-shadow: var(--zuu-shadow-md);
}
.card-main__thumb {
    flex: 0 0 45%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.card-main__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-main__body {
    padding: 16px 16px 16px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 小カードグリッド */
.card-grid {
    display: grid;
    gap: 12px;
}
.card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}
.card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
.card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 小カード */
.card-sm {
    background: var(--zuu-white);
    border: 1px solid #e5e5e5;
    border-radius: var(--zuu-radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}
.card-sm:hover {
    box-shadow: var(--zuu-shadow-md);
    transform: translateY(-2px);
}
.card-sm a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.card-sm__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.card-sm__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-sm__body {
    padding: 10px 12px 12px;
}

/* 取引所カードのロゴサムネ */
.card-sm__thumb--logo {
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--zuu-gray-100);
    height: 80px;
}
.card-sm__thumb--logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}
.logo-placeholder {
    width: 48px;
    height: 48px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--zuu-gray-700);
}

/* カード内CTA */
.card-cta {
    display: block;
    text-align: center;
    padding: 8px;
    background: var(--zuu-brand-red);
    color: var(--zuu-white);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}
.card-cta:hover {
    opacity: 0.85;
}

/* カード共通パーツ */
.card-label {
    display: inline-block;
    background: var(--zuu-black);
    color: var(--zuu-white);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 2px;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}
.card-date {
    font-size: 11px;
    color: var(--zuu-gray-500);
    font-variant-numeric: tabular-nums;
    display: block;
    margin-bottom: 4px;
}
.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 4px 0 6px;
    color: var(--zuu-gray-900);
}
.card-title--sm {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 4px;
    color: var(--zuu-gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-excerpt {
    font-size: 13px;
    color: var(--zuu-gray-700);
    line-height: 1.6;
    margin: 0;
}
.card-stars .star {
    color: #ddd;
    font-size: 14px;
}
.card-stars .star.filled {
    color: #f5a623;
}

@media (max-width: 767px) {
    .card-main a {
        flex-direction: column;
        gap: 0;
    }
    .card-main__thumb {
        flex: none;
    }
    .card-main__body {
        padding: 12px;
    }
    .card-grid--2,
    .card-grid--3 {
        grid-template-columns: 1fr;
    }
    .card-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   テキストリスト（ニュース・価格）
   ======================================== */
.text-list {
    background: var(--zuu-white);
    border: 1px solid #e5e5e5;
    border-radius: var(--zuu-radius);
    padding: 0;
    margin: 0;
    list-style: none;
}
.text-list li {
    border-bottom: 1px solid var(--zuu-gray-100);
    padding: 10px 14px;
}
.text-list li:last-child {
    border-bottom: none;
}
.text-list a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    line-height: 1.5;
}
.text-list a:hover span {
    color: var(--zuu-brand-red);
}
.text-list time {
    color: var(--zuu-gray-500);
    font-size: 12px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    min-width: 50px;
}
.text-list span {
    transition: color 0.15s;
}

/* 価格ツール */
.price-tools-widget {
    margin-bottom: 12px;
    border-radius: var(--zuu-radius);
    overflow: hidden;
}

/* ========================================
   サイドバー共通
   ======================================== */
.sidebar-box {
    background: var(--zuu-white);
    border: 1px solid #e5e5e5;
    border-radius: var(--zuu-radius);
    padding: 16px;
    margin-bottom: 16px;
}
.sidebar-box__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--zuu-black);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--zuu-black);
}
.sidebar-box__more {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--zuu-brand-red);
    text-decoration: none;
}
.sidebar-box__more:hover {
    opacity: 0.7;
}

/* サイドバー: 暗号資産交換業者特集 */
.sidebar-exchange-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-exchange-list li {
    border-bottom: 1px solid var(--zuu-gray-100);
}
.sidebar-exchange-list li:last-child {
    border-bottom: none;
}
.sidebar-exchange-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.sidebar-exchange-list a:hover {
    background: var(--zuu-gray-100);
}
.sidebar-exchange-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-exchange-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-exchange-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--zuu-gray-900);
    line-height: 1.4;
}

/* サイドバー: TradingViewウィジェット */
.sidebar-widget-area {
    border-radius: 4px;
    overflow: hidden;
}

/* サイドバー: カテゴリ一覧 */
.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-cat-list li {
    border-bottom: 1px solid var(--zuu-gray-100);
}
.sidebar-cat-list li:last-child {
    border-bottom: none;
}
.sidebar-cat-list a {
    display: block;
    padding: 8px 4px;
    font-size: 13px;
    color: var(--zuu-gray-700);
    text-decoration: none;
    transition: color 0.15s;
}
.sidebar-cat-list a:hover {
    color: var(--zuu-brand-red);
}

/* サイドバー: 人気記事 */
.sidebar-popular {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: none;
}
.sidebar-popular__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--zuu-gray-100);
}
.sidebar-popular__item:last-child {
    border-bottom: none;
}
.sidebar-popular__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--zuu-black);
    color: var(--zuu-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}
.sidebar-popular__item:nth-child(1) .sidebar-popular__num {
    background: var(--zuu-brand-red);
}
.sidebar-popular__item a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}
.sidebar-popular__thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-popular__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-popular__title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--zuu-gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-popular__item a:hover .sidebar-popular__title {
    color: var(--zuu-brand-red);
}

/* SWELLウィジェット用 */
.home-sidebar__swell-widgets {
    margin-top: 16px;
}

/* ========================================
   信頼バー
   ======================================== */
.home-trust-bar {
    background: var(--zuu-black);
    padding: 16px 20px;
    text-align: center;
}
.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.trust-item {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}
.trust-divider {
    color: rgba(255,255,255,0.2);
}
