/* ===========================================
   Dynamic Tape Theme - CUSTOM CSS
   IndexPage 追加セクション専用
   ────────────────────────────────────────
   含まれるセクション:
     #dt-more-btn-wrap   ← もっと見るボタン
     #dt-hero            ← ヒーローバナー
     .dt-section         ← セクション共通
     #dt-announce        ← お知らせバナー
     #dt-info            ← ブランド解説ドキュメント（旧 #dt-pickup）
     .dt-section-divider ← コンテンツ区切り線
   ────────────────────────────────────────
   ここに特定箇所のカスタマイズCSSを自由に追記
=========================================== */

/* === もっと見るボタン === */
#dt-more-btn-wrap {
    padding: 32px 16px;
    text-align: center;
}
#dt-load-more-btn {
    background: var(--dt-text, #2c2c2c);
    border: none;
    border-radius: var(--dt-btn-radius, 3px);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    min-width: 200px;
    padding: 14px 32px;
    text-transform: uppercase;
    transition: background 0.2s, opacity 0.2s;
}
#dt-load-more-btn:hover {
    background: var(--dt-accent);
}
#dt-load-more-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ========================================
   ヒーローセクション
======================================== */
#dt-hero {
    background: var(--dt-hero-bg, var(--dt-header-bg, #1a1a2e));
    display: var(--dt-hero-display, flex);
    align-items: center;
    justify-content: center;
    min-height: var(--dt-hero-height, 340px);
    overflow: hidden;
    position: relative;
    width: 100%;
}
#dt-hero::before {
    background: rgba(0,0,0,0.32);
    content: '';
    inset: 0;
    position: absolute;
}
.dt-hero-inner {
    position: relative;
    text-align: center;
    z-index: 1;
}
.dt-hero-sub {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.dt-hero-title {
    color: #fff;
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.15;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.dt-hero-btn {
    background: var(--dt-accent);
    border-radius: var(--dt-btn-radius, 3px);
    color: #fff !important;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    padding: 13px 32px;
    text-transform: uppercase;
    transition: background 0.2s;
}
.dt-hero-btn:hover {
    background: var(--dt-accent-hover);
}
@media(max-width: 768px) {
    #dt-hero { min-height: 220px; }
    .dt-hero-title { font-size: 28px; }
}

/* ========================================
   セクション共通
======================================== */
.dt-section {
    margin: 0 auto;
    max-width: 1240px;
    padding: 40px 16px 0;
    width: 100%;
    box-sizing: border-box;
}
.dt-section-title {
    color: var(--dt-text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    position: relative;
    text-align: var(--dt-section-title-align, center);
    text-transform: uppercase;
}
.dt-section-title::after {
    background: var(--dt-accent);
    bottom: 0;
    content: '';
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 40px;
}
[data-title-align="left"] .dt-section-title::after { left: 0; transform: none; }

/* ========================================
   お知らせバナー（IndexPage上部）
======================================== */
#dt-announce {
    background: var(--dt-accent);
    color: #fff;
    display: var(--dt-announce-display, none);
    font-size: 13px;
    padding: 10px 20px;
    text-align: center;
}
#dt-announce a {
    color: #fff !important;
    text-decoration: underline;
}

/* ========================================
   ブランド解説ドキュメント（#dt-info）
   旧 #dt-pickup の代替セクション
======================================== */
#dt-pickup {
    display: none; /* ピックアップを非表示 */
}

#dt-info {
    display: block;
}

/* 2カラムレイアウト（PC） */
.dt-info-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}
@media(max-width: 768px) {
    .dt-info-grid {
        grid-template-columns: 1fr;
    }
}

/* 各カード */
.dt-info-card {
    background: var(--dt-card-bg, #fff);
    border-radius: var(--dt-card-radius, 4px);
    box-shadow: var(--dt-card-shadow, 0 1px 4px rgba(0,0,0,0.08));
    box-sizing: border-box;
    padding: 28px 28px 24px;
}

/* カード見出し */
.dt-info-card__heading {
    align-items: flex-start;
    border-bottom: 2px solid var(--dt-accent);
    color: var(--dt-text);
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin-bottom: 16px;
    padding-bottom: 12px;
}
.dt-info-card__heading-icon {
    background: var(--dt-accent);
    border-radius: 2px;
    color: #fff;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 2px;
    padding: 3px 7px;
    text-transform: uppercase;
}

/* 本文テキスト */
.dt-info-card__body {
    color: var(--dt-textt, #2c2c2c);
    font-size: 13px;
    line-height: 1.85;
}
.dt-info-card__body p {
    margin-bottom: 12px;
}
.dt-info-card__body p:last-child {
    margin-bottom: 0;
}

/* 3原則リスト（番号付き） */
.dt-info-principles {
    background: var(--dt-body-bg, #f4f4f4);
    border-left: 3px solid var(--dt-accent);
    border-radius: 3px;
    counter-reset: principle;
    list-style: none;
    margin: 14px 0 14px;
    padding: 14px 16px;
}
.dt-info-principles li {
    align-items: flex-start;
    color: var(--dt-text);
    counter-increment: principle;
    display: flex;
    font-size: 13px;
    font-weight: 500;
    gap: 10px;
    line-height: 1.6;
    padding: 5px 0;
}
.dt-info-principles li::before {
    background: var(--dt-accent);
    border-radius: 50%;
    color: #fff;
    content: counter(principle);
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    height: 20px;
    line-height: 20px;
    margin-top: 1px;
    text-align: center;
    width: 20px;
}

/* 比較ポイントリスト（箇条書き） */
.dt-info-bullets {
    border-left: 3px solid var(--dt-accent);
    list-style: none;
    margin: 14px 0 0;
    padding: 2px 0 2px 16px;
}
.dt-info-bullets li {
    align-items: flex-start;
    color: var(--dt-text);
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    letter-spacing: 0.5px;
    line-height: 1.6;
    padding: 4px 0;
}
.dt-info-bullets li::before {
    background: var(--dt-accent);
    border-radius: 1px;
    content: '';
    flex-shrink: 0;
    height: 12px;
    margin-top: 4px;
    width: 3px;
}

/* ========================================
   dt-info 画像ブロック
======================================== */
.dt-info-img-wrap {
    margin: 0 auto 28px;
    max-width: 1240px;
    text-align: center;
    width: 100%;
}
.dt-info-img-wrap img {
    border-radius: var(--dt-card-radius, 4px);
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}
.dt-info-img-wrap--bottom {
    margin-top: 28px;
    margin-bottom: 0;
}

/* ========================================
   NEWSセクション（#dt-news）
======================================== */
#dt-news {
    padding-bottom: 8px;
}
.dt-news-list {
    border-top: 1px solid var(--dt-border, #e0e0e0);
    list-style: none;
    padding: 0;
    margin: 0;
}
.dt-news-item {
    border-bottom: 1px solid var(--dt-border, #e0e0e0);
}
.dt-news-item a {
    align-items: center;
    color: var(--dt-text, #2c2c2c) !important;
    display: flex;
    gap: 32px;
    padding: 18px 8px;
    text-decoration: none !important;
    transition: background 0.18s, color 0.18s;
}
.dt-news-item a:hover {
    background: #eef4ff;
    color: #1a56db !important;
}
.dt-news-item a:hover .dt-news-date {
    color: #1a56db;
}
.dt-news-item a:hover .dt-news-arrow {
    color: #1a56db;
    transform: translateX(3px);
}
.dt-news-date {
    color: var(--dt-text-light, #888);
    flex-shrink: 0;
    font-size: 14px;
    letter-spacing: 1.5px;
    min-width: 96px;
    transition: color 0.18s;
}
.dt-news-title {
    color: inherit;
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dt-news-arrow {
    color: #aaa;
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    transition: color 0.18s, transform 0.18s;
}
.dt-news-loading,
.dt-news-empty {
    color: var(--dt-text-light, #999);
    font-size: 14px;
    padding: 24px 8px;
    text-align: center;
}
.dt-news-empty a {
    color: #1a56db !important;
}
.dt-news-more-wrap {
    margin-top: 16px;
    text-align: right;
}
.dt-news-more-btn {
    color: #1a56db !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: text-decoration 0.15s;
}
.dt-news-more-btn:hover {
    text-decoration: underline !important;
    color: #1a56db !important;
}
@media(max-width: 768px) {
    .dt-news-title { white-space: normal; font-size: 14px; }
    .dt-news-date { min-width: 80px; font-size: 12px; }
    .dt-news-item a { gap: 16px; padding: 14px 4px; }
}

/* ========================================
   商品カード: カートに入れるボタン
======================================== */
.dt-card-btn-wrap {
    padding: 0 8px 12px;
}
.dt-card-cart-btn {
    background: var(--dt-accent, #c8102e);
    border-radius: var(--dt-btn-radius, 3px);
    color: #fff !important;
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 8px;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.2s, opacity 0.2s;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}
.dt-card-cart-btn:hover {
    background: var(--dt-accent-hover, #a00d24);
    color: #fff !important;
}
.dt-card-cart-btn--sold {
    background: var(--dt-border, #e0e0e0);
    color: var(--dt-text-light, #999) !important;
    cursor: default;
    pointer-events: none;
    font-size: 11px;
}
.dt-card-cart-btn--coming {
    background: var(--dt-body-bg, #f4f4f4);
    color: var(--dt-text-light, #888) !important;
    cursor: default;
    pointer-events: none;
    font-size: 11px;
    border: 1px solid var(--dt-border, #e0e0e0);
}

/* itemDetail(価格)と dt-item-link の下マージン調整 */
.dt-item-link {
    display: block;
    padding-bottom: 4px;
}
.dt-item-link .itemDetail {
    margin-bottom: 8px;
}

/* ========================================
   コンテンツ区切り線
======================================== */
.dt-section-divider {
    border: none;
    border-top: 1px solid var(--dt-border, #e0e0e0);
    margin: 40px auto 0;
    max-width: 1240px;
    padding: 0 24px;
}

/* ========================================
   ショップビュー / カテゴリビュー 制御
   ─────────────────────────────────────
   HOME (通常)     : タブ非表示、ヒーロー・解説 表示
   ?view=shop      : タブ表示、ヒーロー・解説 非表示
   /categories/xxx : タブ表示、ヒーロー・解説 非表示
======================================== */

/* HOME では cat-tabs・SHOP専用ヘッダーを非表示 */
#dt-cat-tabs    { display: none; }
#dt-shop-header { display: none; }

/* ?view=shop のとき */
html.dt-shop-view #dt-cat-tabs    { display: block; }
html.dt-shop-view #dt-shop-header { display: flex; }
html.dt-shop-view #dt-hero,
html.dt-shop-view #dt-announce,
html.dt-shop-view #dt-info,
html.dt-shop-view #dt-news,
html.dt-shop-view .dt-section-divider { display: none !important; }

/* カテゴリページ (/categories/xxx) のとき */
html.dt-category-view #dt-cat-tabs { display: block; }
html.dt-category-view #dt-hero,
html.dt-category-view #dt-announce,
html.dt-category-view #dt-info,
html.dt-category-view #dt-news,
html.dt-category-view .dt-section-divider,
html.dt-category-view #dt-shop-header { display: none !important; }

/* ─── SHOP専用ページヘッダー ─── */
#dt-shop-header {
    align-items: center;
    background: var(--dt-header-bg, #1a1a2e);
    justify-content: center;
    min-height: 120px;
    padding: 32px 16px;
    position: relative;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
#dt-shop-header::after {
    background: var(--dt-accent);
    bottom: 0; content: ''; height: 3px;
    left: 0; position: absolute; width: 100%;
}
.dt-shop-header-inner { position: relative; z-index: 1; }
.dt-shop-header-sub {
    color: rgba(255,255,255,0.55);
    font-size: 11px; letter-spacing: 4px;
    margin-bottom: 6px; text-transform: uppercase;
}
.dt-shop-header-title {
    color: #fff; font-size: 32px; font-weight: 700;
    letter-spacing: 8px; line-height: 1; text-transform: uppercase;
}
@media(max-width: 768px) {
    #dt-shop-header { min-height: 80px; padding: 20px 16px; }
    .dt-shop-header-title { font-size: 22px; }
}

/* ─── カテゴリタブ本体 ─── */
#dt-cat-tabs {
    background: var(--dt-content-bg, #fff);
    border-bottom: 1px solid var(--dt-border, #e0e0e0);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}
.dt-cat-tabs-inner {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0 auto;
    max-width: 1240px;
    overflow-x: auto;
    padding: 0 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.dt-cat-tabs-inner::-webkit-scrollbar { display: none; }

/* スマホ: 右端フェード */
@media(max-width: 768px) {
    #dt-cat-tabs { position: relative; }
    #dt-cat-tabs::after {
        content: '';
        pointer-events: none;
        position: absolute;
        right: 0; top: 0; bottom: 0; width: 40px;
        background: linear-gradient(to right, transparent, var(--dt-content-bg, #fff));
        z-index: 1;
    }
}

/* ALL タブ */
.dt-cat-tab-all {
    border-bottom: 3px solid transparent;
    color: var(--dt-text-light, #666) !important;
    display: block; flex-shrink: 0;
    font-size: 12px; font-weight: 700;
    letter-spacing: 2px; padding: 14px 20px;
    text-transform: uppercase;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.dt-cat-tab-all:hover,
.dt-cat-tab-all.is-active {
    border-bottom-color: var(--dt-accent);
    color: var(--dt-text) !important;
}

/* BASEカテゴリアプリの実際のHTML:
   <ul id="appsItemCategoryTag">
     <li class="appsItemCategoryTag_child">
       <a class="mainHeaderNavColor" ...> */
#dt-cat-tabs #appsItemCategoryTag,
#dt-cat-tabs ul[id*="appsItemCategory"],
#dt-cat-tabs .appsItemCategoryTag_categories {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important; padding: 0 !important;
    align-items: stretch;
}
#dt-cat-tabs .appsItemCategoryTag_child { flex-shrink: 0; }
#dt-cat-tabs .appsItemCategoryTag_child a,
#dt-cat-tabs .appsItemCategoryTag_child .mainHeaderNavColor,
#dt-cat-tabs .appsItemCategoryTag_link {
    border-bottom: 3px solid transparent !important;
    color: var(--dt-text-light, #666) !important;
    display: block !important;
    font-size: 12px !important; font-weight: 500 !important;
    letter-spacing: 1.5px !important; padding: 14px 20px !important;
    text-transform: uppercase !important;
    transition: color 0.15s, border-color 0.15s !important;
    white-space: nowrap !important; text-decoration: none !important;
}
#dt-cat-tabs .appsItemCategoryTag_child a:hover,
#dt-cat-tabs .appsItemCategoryTag_child .mainHeaderNavColor:hover,
#dt-cat-tabs .appsItemCategoryTag_child a.is-active,
#dt-cat-tabs .appsItemCategoryTag_link:hover,
#dt-cat-tabs .appsItemCategoryTag_link.is-active {
    border-bottom-color: var(--dt-accent) !important;
    color: var(--dt-text) !important;
}
@media(max-width: 768px) {
    .dt-cat-tab-all,
    #dt-cat-tabs .appsItemCategoryTag_child a,
    #dt-cat-tabs .appsItemCategoryTag_link {
        font-size: 11px !important;
        padding: 12px 14px !important;
        letter-spacing: 1px !important;
    }
}

/* ========================================
   ブログページ用 NEWS セクション（JS注入）
   .main の直前に挿入される
   #dt-blog-news — dt-newsと同じスタイルを流用
======================================== */
#dt-blog-news {
    padding-bottom: 8px;
    padding-top: 48px;
}
