@charset "UTF-8";

/* ==========================================================================
   WordPress Block Editor & Entry Content Styles
   ========================================================================== */

/* Wrapper Scope
   Frontend: .entry-content
   Editor: .editor-styles-wrapper (or .block-editor-block-list__layout for specific scope if needed)
-------------------------------------------------------------------------- */

.entry-content,
.editor-styles-wrapper {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.8;
    color: #334155;
    /* slate-700 */
    font-size: 1rem;
}

@media (min-width: 768px) {

    .entry-content,
    .editor-styles-wrapper {
        font-size: 1.05rem;
    }
}

/* Headings
-------------------------------------------------------------------------- */
.entry-content h2,
.editor-styles-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    /* slate-900 */
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background-color: #f8fafc;
    /* slate-50 */
    border-left: 5px solid #2563eb;
    /* blue-600 */
    border-radius: 0 4px 4px 0;
}

.entry-content h3,
.editor-styles-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    /* slate-200 */
}

.entry-content h4,
.editor-styles-wrapper h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid #2563eb;
}

/* Paragraphs & Text
-------------------------------------------------------------------------- */
.entry-content p,
.editor-styles-wrapper p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.entry-content strong,
.editor-styles-wrapper strong {
    font-weight: 700;
    background: linear-gradient(transparent 60%, #bfdbfe 60%);
    /* Marker style */
}

/* Lists
-------------------------------------------------------------------------- */
.entry-content ul,
.editor-styles-wrapper ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.entry-content ol,
.editor-styles-wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.entry-content li,
.editor-styles-wrapper li {
    margin-bottom: 0.5rem;
}

.entry-content ul ul,
.entry-content ol ol,
.editor-styles-wrapper ul ul,
.editor-styles-wrapper ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquote
-------------------------------------------------------------------------- */
.entry-content blockquote,
.editor-styles-wrapper blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f1f5f9;
    /* slate-100 */
    border-left: 4px solid #94a3b8;
    /* slate-400 */
    font-style: italic;
    color: #475569;
}

/* Tables
-------------------------------------------------------------------------- */
.entry-content table,
.editor-styles-wrapper table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.entry-content th,
.editor-styles-wrapper th {
    background-color: #f8fafc;
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    white-space: nowrap;
}

.entry-content td,
.editor-styles-wrapper td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
}

@media (max-width: 640px) {

    .entry-content table,
    .editor-styles-wrapper table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Links
-------------------------------------------------------------------------- */
.entry-content a,
.editor-styles-wrapper a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s;
}

.entry-content a:hover,
.editor-styles-wrapper a:hover {
    color: #1e3a8a;
    text-decoration: none;
}

/* Media & Embeds
-------------------------------------------------------------------------- */
.entry-content figure,
.editor-styles-wrapper figure {
    margin: 2rem 0;
}

.entry-content img,
.editor-styles-wrapper img {
    height: auto;
    max-width: 100%;
    border-radius: 0.5rem;
}

.entry-content .wp-block-embed-youtube,
.editor-styles-wrapper .wp-block-embed-youtube {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.entry-content .wp-block-embed-youtube iframe,
.editor-styles-wrapper .wp-block-embed-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

/* Separator
-------------------------------------------------------------------------- */
.entry-content hr,
.editor-styles-wrapper hr {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid #cbd5e1;
    /* slate-300 */
}