body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #fdfdfd;
    /* ほんの少しだけグレーを混ぜた白 */
    color: #333;
    padding: 20px;
    box-sizing: border-box;
}

#title-display {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
    cursor: pointer;
}

#subtitle {
    font-size: clamp(0.75rem, 2.5vw, 0.98rem);
    font-weight: 500;
    color: #5b5b5b;
    text-align: center;
    letter-spacing: 0.05em;
    margin: 0 auto 32px;
    max-width: 540px;
    line-height: 1.6;
}

#link-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 580px;
    height: 350px;
    position: relative;
}

/* --- スケルトンスクリーン（ローディング演出） --- */
#skeleton-loader {
    position: absolute;
    top: 0;
    width: 494px;
    max-width: 100%;
    height: 350px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 内部のダミー要素 */
.skeleton-header {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    margin-bottom: 15px;
}

.skeleton-line {
    width: 80%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-rect {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    border-radius: 8px;
    margin-top: 20px;
}

/* シマー（光が流れるアニメーション） */
.shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* --- noteの埋め込みiframe --- */
.note-embed {
    opacity: 0;
    transform: translateY(10px);
    /* 少し下から浮かび上がる */
    border: 0;
    max-width: 99%;
    width: 494px;
    height: 350px;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}

/* 読み込み完了後のアニメーション */
.note-embed.loaded {
    opacity: 1;
    transform: translateY(0);
}

#skeleton-loader.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
}

@media (max-width: 768px) {
    body {
        justify-content: flex-start;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    #title-display {
        font-size: 2rem;
    }

    #skeleton-loader,
    .note-embed {
        width: 100%;
    }
}

/* Footer Styles */
footer {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
}

.footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

footer a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #5b5b5b;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #000;
}

.footer-credit {
    margin-top: 12px;
    text-align: center;
}

.footer-credit a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}



.footer-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 6px;
}

footer span {
    font-size: 0.88rem;
}