.spi-top-page {
    --accent:        #26A69A;
    --accent-light:  #4FBDB1;
    --accent-lighter:#B6E9E4;
    --accent-bg:     #E4F8F6;
    --accent-bg-soft:#F2FBFA;
    --accent-dark:   #1E8B82;
    --yellow:        #FCE952;
    --coral:         #FF8A65;
    --coral-soft:    #FFD6C9;
    --ink:           #252525;
    --ink-soft:      #5A6360;
    --ink-mute:      #8A908E;
    --line:          #E4ECEB;

    position: relative;
    /* WordPressテーマの記事コンテナ幅を突き抜けてビューポート全幅で表示 */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 100vh;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 40%, #F7FCFB 100%);
    color: var(--ink);
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    font-weight: 400;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.spi-top-page * { box-sizing: border-box; }

/* ===== Header ===== */
.spi-top-header {
    position: relative; z-index: 2;
    background: var(--accent);
    padding: 16px 36px;
    display: flex; align-items: center; gap: 18px;
}
.spi-top-header-brand { display: inline-flex; align-items: center; text-decoration: none; }
.spi-top-header-logo-img { display: block; height: 44px; width: auto; transition: transform .22s ease; }
.spi-top-header-brand:hover .spi-top-header-logo-img { transform: translateY(-2px); }
.spi-top-header-divider { width: 1px; height: 28px; background: rgba(255,255,255,.5); }
.spi-top-header-sub { font-size: 18px; font-weight: 500; color: #fff; letter-spacing: .06em; }

/* ===== Background blobs ===== */
.spi-top-blobs {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.spi-top-blobs > svg { position: absolute; top: 0; left: 0; width: 100%; height: 900px; }
.spi-top-dot { position: absolute; border-radius: 50%; background: var(--accent-lighter); }
.spi-top-dot-1     { top: 220px; left: 60px;  width: 8px; height: 8px; }
.spi-top-dot-2     { top: 460px; right: 80px; width: 6px; height: 6px; }
.spi-top-dot-3     { top: 360px; left: 48%;   width: 5px; height: 5px; background: var(--coral-soft); }
.spi-top-dot-4     { top: 600px; left: 120px; width: 7px; height: 7px; }
.spi-top-dot-5     { top: 320px; right: 14%;  width: 10px; height: 10px; opacity: .7; }
.spi-top-dot-6     { top: 540px; left: 30%;   width: 6px; height: 6px; }
.spi-top-dot-7     { top: 100px; left: 38%;   width: 5px; height: 5px; opacity: .8; }
.spi-top-dot-coral { top: 160px; right: 200px; width: 14px; height: 14px; background: var(--coral-soft); opacity: .7; }
.spi-top-dot-coral-2 { top: 520px; right: 22%; width: 11px; height: 11px; background: var(--coral-soft); opacity: .55; }
.spi-top-dot-yellow { top: 280px; left: 18%; width: 12px; height: 12px; background: var(--yellow); opacity: .55; }

/* キラキラ装飾 */
.spi-top-spark {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}
.spi-top-spark svg { width: 100%; height: 100%; display: block; }
.spi-top-spark-1 { top: 140px; left: 26%; width: 22px; height: 22px; animation: spi-top-twinkle 2.4s ease-in-out infinite; }
.spi-top-spark-2 { top: 260px; right: 20%; width: 18px; height: 18px; animation: spi-top-twinkle 3.0s ease-in-out infinite .8s; }
.spi-top-spark-3 { bottom: 140px; right: 30%; width: 16px; height: 16px; animation: spi-top-twinkle 2.6s ease-in-out infinite .4s; }
@keyframes spi-top-twinkle {
    0%, 100% { opacity: .35; transform: scale(.85); }
    50%      { opacity: 1;   transform: scale(1.1); }
}

/* 装飾：左下の本の山 */
.spi-top-bookstack {
    position: absolute;
    pointer-events: none;
    z-index: 3;
}
/* 4装飾：カードの左右に大きくばらけて配置 */
.spi-top-bookstack-left {
    top: 160px;
    left: 20px;
    width: 120px;
    height: 96px;
    transform: rotate(-5deg);
    opacity: .8;
}

/* 装飾：右の時計（上寄り） */
.spi-top-clock {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    top: 140px;
    right: 20px;
    width: 86px;
    height: 94px;
    transform: rotate(10deg);
    opacity: .8;
}

/* 装飾：右の鉛筆（下寄り） */
.spi-top-pencil {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    top: 440px;
    right: 28px;
    width: 120px;
    height: 34px;
    transform: rotate(15deg);
    opacity: .8;
}

/* 装飾：左のノート（下寄り） */
.spi-top-notebook {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    top: 430px;
    left: 20px;
    width: 80px;
    height: 98px;
    transform: rotate(-10deg);
    opacity: .8;
}

/* ===== Main ===== */
.spi-top-main { position: relative; z-index: 2; max-width: 100%; margin: 0 auto; padding: 0 24px 60px; }
.spi-top-grid { display: block; padding-top: 8px; }

/* ===== Center ===== */
.spi-top-center { text-align: center; padding-top: 40px; position: relative; z-index: 3; }
.spi-top-main-title-wrap { display: inline-flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.spi-top-main-title-line { flex: 1; min-width: 60px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-light)); border-radius: 1px; }
.spi-top-main-title-wrap .spi-top-main-title-line:last-child { background: linear-gradient(90deg, var(--accent-light), transparent); }
.spi-top-main-title { font-size: 52px; font-weight: 500; color: var(--accent); letter-spacing: .16em; margin: 0; white-space: nowrap; }
.spi-top-title { font-size: 22px; font-weight: 400; line-height: 1.4; margin: 0 0 8px; color: var(--ink-soft); letter-spacing: .02em; }
.spi-top-title-em { color: var(--accent); font-weight: 600; }
.spi-top-sub { font-size: 13px; color: var(--ink-mute); margin: 0 0 14px; font-weight: 400; }

.spi-top-pulses { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.spi-top-pulses span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: spi-top-pulse 1.6s ease-in-out infinite; }
.spi-top-pulses span:nth-child(2) { animation-delay: .2s; }
.spi-top-pulses span:nth-child(3) { animation-delay: .4s; }
@keyframes spi-top-pulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }

/* ===== Subject cards ===== */
.spi-top-page .spi-top-cards { list-style: none; padding: 0; margin: 40px auto 0; display: flex; gap: 24px; align-items: stretch; max-width: 1060px; }
.spi-top-page .spi-top-cards > li { flex: 1; min-width: 0; display: flex; margin: 0; }
.spi-top-card {
    position: relative; overflow: hidden;
    background: #fff;
    border: 2px solid #B6E9E4;
    border-radius: 16px;
    padding: 16px 20px 16px;
    box-shadow: 0 8px 24px rgba(38,166,154,.12), 0 2px 8px rgba(38,166,154,.08);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    text-decoration: none; color: inherit;
    flex: 1;
    transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s cubic-bezier(.2,.8,.2,1), border-color .24s ease, background .24s ease;
    cursor: pointer;
}
.spi-top-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(38,166,154,.20), 0 4px 10px rgba(38,166,154,.10); border-color: var(--accent); background: var(--accent-bg-soft); }
.spi-top-card.is-disabled { cursor: default; }
.spi-top-card.is-disabled:hover { transform: none; box-shadow: 0 8px 24px rgba(38,166,154,.10), 0 2px 6px rgba(38,166,154,.05); }
.spi-top-card-dotbg {
    position: absolute;
    background-image: radial-gradient(circle, rgba(38,166,154,.28) 1.4px, transparent 1.6px);
    background-size: 12px 12px;
}
.spi-top-card-dotbg-tr { top: 20px; right: 20px; width: 64px; height: 36px; opacity: .7; }
.spi-top-card-dotbg-bl { bottom: 90px; left: 16px; width: 36px; height: 24px; opacity: .55; }

.spi-top-card-illust { width: 100px; height: 76px; margin-bottom: 6px; position: relative; z-index: 1; }
.spi-top-card-title { font-size: 28px; font-weight: 500; color: var(--accent-dark); line-height: 1; margin-bottom: 8px; letter-spacing: .04em; }
.spi-top-card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--ink-soft); font-size: 13px; }
.spi-top-card-time { font-weight: 500; color: var(--ink); font-size: 14px; }
.spi-top-card-desc { color: var(--ink-soft); font-size: 12px; margin-bottom: 12px; line-height: 1.5; }
.spi-top-card-cta {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(38,166,154,.30);
    transition: transform .22s ease, box-shadow .22s ease;
    margin-top: auto;
}
.spi-top-card-cta-icon { width: 13px; height: 13px; display: block; }
.spi-top-card:hover .spi-top-card-cta { transform: scale(1.08); box-shadow: 0 6px 16px rgba(38,166,154,.40); }
.spi-top-card.is-disabled .spi-top-card-cta { background: #E4ECEB; box-shadow: none; }
.spi-top-card-coming { font-size: 11px; font-weight: 500; color: var(--ink-soft); }

/* ===== Feature strip ===== */
.spi-top-features {
    margin-top: 40px;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border: 1px solid #EAF2F1;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(38,166,154,.06);
    padding: 22px 36px;
    display: flex; gap: 28px; align-items: stretch;
}
.spi-top-feat { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.spi-top-feat-icon { flex: none; }
.spi-top-feat-title { font-size: 15.5px; font-weight: 500; color: var(--accent-dark); margin: 0 0 4px; }
.spi-top-feat-body { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.spi-top-feat-sep { width: 1px; background: #EAF2F1; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .spi-top-header { padding: 10px 14px; gap: 10px; }
    .spi-top-header-logo-img { height: 30px; }
    .spi-top-header-sub { font-size: 12px; }
    .spi-top-main {
        padding: 0 6px 28px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        width: 100%;
    }
    .spi-top-grid { padding-top: 4px; gap: 12px; width: 100%; }
    .spi-top-center { padding-top: 8px; }
    .spi-top-main-title-wrap { gap: 10px; margin-bottom: 8px; }
    .spi-top-main-title-line { min-width: 24px; }
    .spi-top-main-title { font-size: 28px; letter-spacing: .08em; white-space: nowrap; }
    .spi-top-title { font-size: 16px; margin: 0 0 6px; }
    .spi-top-sub { display: none; }
    .spi-top-page .spi-top-cards { flex-direction: column; gap: 10px; width: 100%; padding: 0; margin: 20px 0 0; align-items: center; }
    .spi-top-page .spi-top-cards > li { width: 100%; max-width: 280px; flex: none; margin: 0 auto; }
    .spi-top-card {
        padding: 14px 14px 16px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        box-sizing: border-box;
        border-radius: 14px;
    }
    .spi-top-card-illust { width: 96px; height: 72px; margin-bottom: 4px; }
    .spi-top-card-title { font-size: 20px; margin-bottom: 6px; }
    .spi-top-card-meta { font-size: 11.5px; margin-bottom: 4px; gap: 6px; }
    .spi-top-card-meta svg { width: 14px; height: 14px; }
    .spi-top-card-time { font-size: 12.5px; }
    .spi-top-card-desc { font-size: 11.5px; margin-bottom: 10px; line-height: 1.45; }
    .spi-top-card-cta { width: 32px; height: 32px; }
    .spi-top-card-cta svg { width: 14px; height: 14px; }
    .spi-top-card-dotbg { display: none; }
    .spi-top-dot-coral, .spi-top-dot-coral-2 { display: none; }
    .spi-top-dot-3 { display: none; }
    .spi-top-dot-5, .spi-top-dot-6, .spi-top-dot-7 { display: none; }
    .spi-top-dot-yellow { display: none; }
    .spi-top-bookstack { display: none; }
    .spi-top-clock { display: none; }
    .spi-top-pencil { display: none; }
    .spi-top-notebook { display: none; }
    .spi-top-spark { display: none; }
    .spi-top-features { flex-direction: column; gap: 12px; padding: 14px 16px; margin-top: 24px; }
    .spi-top-feat-sep { display: none; }
    .spi-top-feat-icon svg { width: 40px; height: 40px; }
    .spi-top-feat-title { font-size: 14px; }
    .spi-top-feat-body { font-size: 11.5px; }
}
