/* Theme heading size overrides for the front-end. */


.article h1 {
    font-size: 20px;
}

.article h2,
.related-entry-heading,
.comment-title,
h2 {
    font-size: 18px;
}
.article h2{
    font-size: 16px;
    padding: 12px;
}
.sidebar h2,
.sidebar h3,
.widget h2{
    font-size: 16px;
    padding: 8px 12px;
}
.article h3 {
    font-size: 16px;
    padding: 8px 16px
}
.article h4 {
    font-size: 14px;
}
.article h5,.article h6 {
    font-size: 14px;
}

/* ---- Front page (top) ---- */
body.front-top-page {
    --fp-accent: #1f4e8c;
    --fp-accent-soft: #eef3fa;
    --fp-border: #dfe5ee;
    --fp-text: #1f2937;
    --fp-muted: #6b7280;
}

body.front-top-page .article h1.entry-title {
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: .02em;
    color: var(--fp-text);
}

body.front-top-page .entry-content > p {
    color: var(--fp-muted);
    line-height: 1.8;
}

body.front-top-page .entry-content > h2 {
    margin: 2.4em 0 .8em;
    padding: 2px 0 2px 14px;
    font-size: 19px;
    font-weight: 700;
    color: var(--fp-text);
    background: none;
    border: 0;
    border-left: 5px solid var(--fp-accent);
}

body.front-top-page .entry-content > h3 {
    margin: 1.8em 0 .6em;
    padding: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--fp-accent);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--fp-border);
}

/* Link lists: a grid of tiles. The whole tile is clickable via the link's ::after. */
body.front-top-page .entry-content > ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
    margin: 0 0 1em;
    padding: 0;
    list-style: none;
}

body.front-top-page .entry-content > ul > li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 0 14px 0 0;
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: 8px;
    font-size: 13px;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

body.front-top-page .entry-content > ul > li::before {
    content: none;
}

body.front-top-page .entry-content > ul > li > a {
    flex: 1;
    min-width: 0;
    padding: 11px 0 11px 14px;
    line-height: 1.5;
    color: var(--fp-text);
    text-decoration: none;
}

body.front-top-page .entry-content > ul > li > a::after {
    content: "";
    position: absolute;
    inset: 0;
}

body.front-top-page .signal-count {
    flex: none;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--fp-accent-soft);
    color: var(--fp-accent);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.front-top-page .signal-count--zero {
    background: #f3f4f6;
    color: #9ca3af;
    font-weight: 400;
}

body.front-top-page .entry-content > ul > li:hover {
    background: var(--fp-accent-soft);
    border-color: var(--fp-accent);
    box-shadow: 0 1px 4px rgba(31, 78, 140, .15);
}

body.front-top-page .entry-content > ul > li:hover > a {
    color: var(--fp-accent);
}

body.front-top-page .entry-content .alert-box {
    margin-top: 2em;
    border-radius: 8px;
    font-size: 12px;
}

@media screen and (max-width: 480px) {
    body.front-top-page .article h1.entry-title {
        font-size: 20px;
    }

    body.front-top-page .entry-content > h2 {
        font-size: 17px;
    }

    body.front-top-page .entry-content > ul {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* ---- サイドバー「チャート10本ノック」CTAボタン ---- */
.widget_cta_box .cta-box:has(a[href$="/stock-quiz"]) {
    background: linear-gradient(150deg, #1c2540 0%, #2c3b5e 100%);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(28, 37, 64, 0.22);
    padding: 16px 14px 14px;
}

/* 空の説明欄とボタン上の余白を消し、上下の余白を揃える（ボタン下の立体の縁ぶんは下を少し詰める） */
.widget_cta_box .cta-box:has(a[href$="/stock-quiz"]) .cta-content {
    display: none;
}

.widget_cta_box .cta-box:has(a[href$="/stock-quiz"]) .cta-button {
    margin: 0;
}

.widget_cta_box .cta-button a.btn[href$="/stock-quiz"] {
    align-items: center;
    background-color: #e8264f;
    background-image:
        linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.38) 50%, transparent 62%),
        linear-gradient(135deg, #ff7a45 0%, #e8264f 100%);
    background-position: 130% 0, 0 0;
    background-repeat: no-repeat;
    background-size: 260% 100%, 100% 100%;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 4px 0 #a31535, 0 10px 22px rgba(232, 38, 79, 0.4);
    color: #fff;
    display: flex;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    letter-spacing: 0.04em;
    padding: 14px 38px 14px 20px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(110, 10, 35, 0.35);
    transition: background-position 0.7s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.widget_cta_box .cta-button a.btn[href$="/stock-quiz"]::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23fff' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 3v18M12 2v20M19 5v16'/%3E%3C/g%3E%3Crect x='3' y='8' width='4' height='8' rx='1' fill='%23fff'/%3E%3Crect x='10' y='5' width='4' height='9' rx='1' fill='%23ffd9cf'/%3E%3Crect x='17' y='10' width='4' height='7' rx='1' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
    content: "";
    flex: none;
    height: 1.35em;
    margin: 0;
    width: 1.35em;
}

.widget_cta_box .cta-button a.btn[href$="/stock-quiz"]:hover {
    background-position: -30% 0, 0 0;
    box-shadow: 0 6px 0 #a31535, 0 14px 26px rgba(232, 38, 79, 0.48);
    transform: translateY(-2px);
}

.widget_cta_box .cta-button a.btn[href$="/stock-quiz"]:active {
    box-shadow: 0 1px 0 #a31535;
    transform: translateY(3px);
}

@media (prefers-reduced-motion: reduce) {
    .widget_cta_box .cta-button a.btn[href$="/stock-quiz"] {
        transition: none;
    }
}
