/* ========================================
   Gutenberg ブロックスタイル
   ======================================== */

/* Block Editor コンテンツ幅 */
.entry-content > * {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content > .alignwide {
    max-width: 1100px;
}

.entry-content > .alignfull {
    max-width: 100%;
}

/* Cover Block */
.wp-block-cover {
    border-radius: 12px;
    margin: 2rem 0;
}

.wp-block-cover-image {
    border-radius: 12px;
    margin: 2rem 0;
}

/* Quote Block */
.wp-block-quote {
    border-left: 4px solid #6366f1;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8fafc;
    border-radius: 8px;
    font-style: italic;
}

.wp-block-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    color: #6b7280;
    font-size: 0.9375rem;
}

/* Code Block */
.wp-block-code code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
}

/* Preformatted Block */
.wp-block-preformatted {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
}

/* Table Block */
.wp-block-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.wp-block-table th {
    background: #f8fafc;
    font-weight: 600;
}

/* Gallery Block */
.wp-block-gallery {
    gap: 1rem;
}

.wp-block-gallery figure {
    border-radius: 12px;
    overflow: hidden;
}

/* Button Block */
.wp-block-button__link {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

/* Separator */
.wp-block-separator {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 3rem 0;
}

/* Columns */
.wp-block-columns {
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }
}

/* Group Block */
.wp-block-group {
    margin: 2rem 0;
}

/* Image Block */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    border-radius: 12px;
}

/* Pullquote */
.wp-block-pullquote {
    border: none;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
}

.wp-block-pullquote blockquote {
    margin: 0;
}

.wp-block-pullquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    color: #6b7280;
}

/* Verse */
.wp-block-verse {
    font-family: 'Courier New', monospace;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    white-space: pre-wrap;
}

/* List Blocks */
.wp-block-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.wp-block-list li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* Latest Posts Block */
.wp-block-latest-posts {
    list-style: none;
    padding: 0;
}

.wp-block-latest-posts li {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.wp-block-latest-posts a {
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
}

.wp-block-latest-posts a:hover {
    color: #6366f1;
}

.wp-block-latest-posts__post-date {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Archives Block */
.wp-block-archives {
    list-style: none;
    padding: 0;
}

.wp-block-archives li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.wp-block-archives a {
    color: #374151;
    text-decoration: none;
}

.wp-block-archives a:hover {
    color: #6366f1;
}

/* Categories Block */
.wp-block-categories {
    list-style: none;
    padding: 0;
}

.wp-block-categories li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.wp-block-categories a {
    color: #374151;
    text-decoration: none;
}

.wp-block-categories a:hover {
    color: #6366f1;
}

.wp-block-categories__post-count {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive Blocks */
@media (max-width: 768px) {
    .entry-content > * {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .entry-content > .alignwide,
    .entry-content > .alignfull {
        margin-left: 0;
        margin-right: 0;
    }
}
