/* ==========================================================
   Single Post – Entry Content Styles
   WordPress エディタ出力 (the_content) のスタイリング
   ========================================================== */

/* 本文全体のベーススタイル */
.entry-content {
    color: #333333;
    font-size: 1rem;
    line-height: 2.0;
    letter-spacing: 0.05em;
    clear: both;
}

/* 段落 */
.entry-content p {
    margin-bottom: 2rem;
}

/* 見出し2 (H2) */
.entry-content h2 {
    font-family: 'Noto Serif JP', 'Sawarabi Mincho', serif;
    font-size: 1.5rem;
    color: #004068;
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}
@media (min-width: 768px) {
    .entry-content h2 {
        font-size: 1.875rem;
    }
}
.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 4rem;
    height: 2px;
    background-color: #c3a575;
}

/* 見出し3 (H3) */
.entry-content h3 {
    font-size: 1.25rem;
    color: #004068;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #c3a575;
}
@media (min-width: 768px) {
    .entry-content h3 {
        font-size: 1.5rem;
    }
}

/* 見出し4 (H4) */
.entry-content h4 {
    font-size: 1.125rem;
    color: #004068;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .entry-content h4 {
        font-size: 1.25rem;
    }
}
.entry-content h4::before {
    content: '';
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #c3a575;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* リンク */
.entry-content a {
    color: #c3a575;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s;
}
.entry-content a:hover {
    opacity: 0.7;
}

/* リスト (UL/OL) */
.entry-content ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-bottom: 2rem;
    padding-left: 1rem;
}
.entry-content ol {
    list-style-type: decimal;
    list-style-position: inside;
    margin-bottom: 2rem;
    padding-left: 1rem;
}
.entry-content li {
    padding-left: 0.25rem;
    margin-bottom: 0.5rem;
}

/* 引用 (Blockquote) */
.entry-content blockquote {
    background-color: #f4f7f9;
    border-left: 4px solid #004068;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}
.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* 画像 (Image & Figure) */
.entry-content figure {
    margin: 2.5rem 0;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.125rem;
    border: 1px solid #f3f4f6;
}
.entry-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}

/* 強調 */
.entry-content strong,
.entry-content b {
    font-weight: 700;
    color: #004068;
}

/* テーブル (Table) */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}
@media (min-width: 768px) {
    .entry-content table {
        font-size: 1rem;
    }
}
.entry-content th,
.entry-content td {
    border: 1px solid #e5e7eb;
    padding: 1rem;
}
.entry-content th {
    background-color: #f4f7f9;
    color: #004068;
    font-weight: 700;
    text-align: left;
}

/* 区切り線 (HR) */
.entry-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 3rem 0;
}

/* コードブロック */
.entry-content pre {
    background-color: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.125rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.875rem;
    font-family: monospace;
}
.entry-content code {
    background-color: #f3f4f6;
    color: #ec4899;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: monospace;
}
.entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* WordPress ブロックエディタ対応 */
.entry-content .wp-block-image {
    margin: 2.5rem 0;
}
.entry-content .wp-block-image img {
    max-width: 100%;
    height: auto;
}
.entry-content .wp-block-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}

.entry-content .wp-block-quote {
    background-color: #f4f7f9;
    border-left: 4px solid #004068;
    padding: 1.5rem;
    margin: 2rem 0;
}

.entry-content .wp-block-table table {
    width: 100%;
}

/* WordPress 位置合わせ */
.entry-content .alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}
.entry-content .alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.entry-content .aligncenter {
    display: table;
    margin-left: auto;
    margin-right: auto;
}
.entry-content .alignwide {
    margin-left: -2rem;
    margin-right: -2rem;
    max-width: calc(100% + 4rem);
}
.entry-content .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}
