/* 上部メニューの上の隙間を削除 */
#header-container {
    display: none;
}
.article-header {
    display: none;
}
article .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.content {
    margin-top: 0;
}
.main {
    padding: 0;
    border: 0;
}



.article h2, .article h3 {
    margin: 0;
    padding: 5px;
}
.article h3 {
    border-left: 3px solid #6441a4;
    border-right: 0px solid var(--cocoon-thin-color);
    border-top: 0px solid var(--cocoon-thin-color);
    border-bottom: 0px solid var(--cocoon-thin-color);
    font-size: 18px;
}
.article p {
    margin-bottom: 0;
}
.article ul li {
    margin: 12px 0;
}

@media screen and (max-width: 860px) {
    main.main, div.sidebar {
        padding: 0;
    }
    .article ul, .article ol {
        padding-left: 0;
    }
}



:root {
    --text-color: #111;
    --text-color-muted: #555;
    --text-color-strong: #000;
    --surface-main: #ffffff;
    --surface-panel: #ffffff;
    --surface-card: #ffffff;
    --surface-input: #ffffff;
    --surface-border: #e5e7eb;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --danger-color: #b91c1c;
    --shadow-color: rgba(15, 23, 42, 0.08);
}

.dark-theme {
    --text-color: #e5e7eb;
    --text-color-muted: #9ca3af;
    --text-color-strong: #f9fafb;
    --surface-main: #0b1220;
    --surface-panel: #111827;
    --surface-card: #1f2937;
    --surface-input: #111827;
    --surface-border: #374151;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --danger-color: #ef4444;
    --shadow-color: rgba(0, 0, 0, 0.35);
}

.dark-theme body,
.dark-theme #container,
.dark-theme #content,
.dark-theme .content,
.dark-theme .content-in,
.dark-theme .content-in-wrap,
.dark-theme .main,
.dark-theme article,
.dark-theme article .entry-content,
.dark-theme #under-entry-content {
    background: var(--surface-main) !important;
    background-color: var(--surface-main) !important;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: var(--text-color);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), transparent 260px), var(--surface-main);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.top-menu {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dark-theme .top-menu {
    background: rgba(17, 24, 39, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.top-menu-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-home-link,
.top-link,
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--surface-card);
    color: var(--text-color-strong);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.theme-toggle-btn {
    width: 42px;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
}

.top-home-link:hover,
.top-link:hover,
.theme-toggle-btn:hover {
    text-decoration: none;
    filter: brightness(0.98);
}

.detail-main {
    max-width: 1100px;
    margin: 16px auto 40px;
    padding: 0 14px;
}
@media screen and (max-width: 860px) {
    .detail-main {
        padding: 0 5px;
    }
}

.message-box {
    margin: 8px 0;
    padding: 12px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--surface-card);
    color: var(--text-color);
    font-size: 14px;
}

.message-box--error {
    border-color: color-mix(in srgb, var(--danger-color) 45%, var(--surface-border));
    color: var(--danger-color);
}

.streamer-header {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: var(--surface-panel);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.streamer-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    background: #d1d5db;
}

.streamer-summary h1 {
    margin: 0;
    color: var(--text-color-strong);
    font-size: 28px;
    line-height: 1.2;
}

.streamer-login {
    margin: 8px 0 0;
    color: var(--text-color-muted);
    font-size: 15px;
}

.streamer-description {
    margin: 10px 0 0;
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--text-color);
}

.streamer-meta {
    margin: 12px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.streamer-meta div {
    margin: 0;
    padding: 8px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--surface-card);
}

.streamer-meta dt {
    margin: 0;
    font-size: 12px;
    color: var(--text-color-muted);
}

.streamer-meta dd {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--text-color);
}

.streamer-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.favorite-button,
.action-link,
.more-button {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--surface-card);
    color: var(--text-color-strong);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.favorite-button {
    width: 44px;
    padding: 0;
    font-size: 22px;
    color: #a3a3a3;
    cursor: pointer;
}

.favorite-button.is-favorite {
    color: #f59e0b;
    border-color: #f59e0b;
}

.more-button {
    cursor: pointer;
}

.more-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.clip-section {
    margin-bottom: 16px;
    padding: 5px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: var(--surface-panel);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.clip-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.clip-section h2 {
    margin: 0;
    font-size: 22px;
    padding: 5px 10px;
    /* color: var(--text-color-strong); */
}

.clip-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clip-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: var(--surface-card);
}

.clip-thumbnail {
    width: 180px;
    height: 102px;
    border-radius: 8px;
    object-fit: cover;
    background: #d1d5db;
}

.clip-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-color-strong);
}

.clip-meta {
    margin: 5px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-color-muted);
}

.clip-link-row {
    margin-top: 5px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.clip-action-link {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--surface-border);
    border-radius: 9px;
    background: var(--surface-panel);
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
}

.empty-text {
    margin: 0;
    color: var(--text-color-muted);
    font-size: 14px;
}

.ad-slot {
    margin: 12px 0;
    padding: 10px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: var(--surface-card);
}

.ad-slot ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-height: 110px;
}

.clip-ad-item {
    list-style: none;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--surface-card);
}

.clip-ad-item--section-end {
    margin-top: 14px;
}

.clip-ad-item ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-height: 100px;
}

.ad-sponsor-label {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.3;
    color: var(--text-color-muted);
    background: color-mix(in srgb, var(--surface-border) 80%, transparent);
}

@media (max-width: 860px) {
    .top-menu-inner {
        flex-wrap: wrap;
    }

    .theme-toggle-btn {
        margin-left: 0;
    }

    .streamer-header {
        grid-template-columns: 1fr;
    }

    .streamer-avatar {
        width: 96px;
        height: 96px;
    }

    .streamer-meta {
        grid-template-columns: 1fr;
    }

    .clip-item {
        grid-template-columns: 1fr;
    }

    .clip-thumbnail {
        width: 100%;
        max-width: 360px;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .favorite-button {
        width: 100%;
    }

    .ad-slot,
    .clip-ad-item {
        padding: 8px;
    }

    .ad-slot ins.adsbygoogle,
    .clip-ad-item ins.adsbygoogle {
        min-height: 90px;
    }
}
