/* =========================================
   YUI MARKETING - SINGLE POST STYLES (Fixed)
   ========================================= */

/* --- Variables --- */
:root {
    --cyan: #00c6ff;
    --purple: #9d50bb;
    --text-main: rgba(255, 255, 255, 0.9);
    --text-sub: rgba(255, 255, 255, 0.6);
    --dark-bg: rgba(15, 15, 15, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Astra Default Reset & Layout Fix --- */
/* 背景を透過させ、テーマの白背景を無効化 */
.ast-plain-container, 
.site-content, 
.ast-article-single {
    background-color: transparent !important;
}

/* コンテンツ幅の調整 */
.single-post .site-content > .ast-container {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Article Container (Glassmorphism) --- */
.ast-article-single {
    background: var(--dark-bg) !important;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: clamp(30px, 5vw, 60px) !important;
    margin-top: 40px;
    margin-bottom: 80px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}


/* =========================================
   HEADER AREA (Title, Meta, Thumbnail)
   ========================================= */

.entry-header {
    margin-bottom: 0;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

/* Title */
.entry-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 10px;
}

/* -----------------------------------------
   OLD META (FORCE HIDE)
   Astra標準のメタ情報を完全に非表示にする
   ----------------------------------------- */
.entry-header .entry-meta,
.ast-article-single .entry-header .entry-meta {
    display: none !important;
}

/* -----------------------------------------
   NEW CUSTOM META (YUI Style)
   functions.phpで挿入したエリア
   ----------------------------------------- */
.yui-custom-meta-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    
    margin-top: 10px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
}

/* 日付 */
.yui-custom-meta-bar .yui-date {
    color: #fff;
    opacity: 0.8;
    font-weight: 500;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

/* カテゴリタグ */
.yui-custom-meta-bar .yui-cat-tag {
    display: inline-block;
    background: rgba(0, 198, 255, 0.1);
    color: #00c6ff;
    border: 1px solid #00c6ff;
    padding: 4px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    transition: 0.3s;
}

.yui-custom-meta-bar .yui-cat-tag:hover {
    background: #00c6ff;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}


/* =========================================
   CONTENT AREA (Typography)
   ========================================= */

.entry-content {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 2;
}

.entry-content p {
    margin-bottom: 2em;
}

/* --- Headings --- */
.entry-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 3em 0 1.5em;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--cyan);
    position: relative;
    color: #fff;
}
.entry-content h2::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 30%; height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    z-index: 1;
}

.entry-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.5em 0 1.2em;
    padding-left: 15px;
    border-left: 4px solid var(--cyan);
    color: #fff;
}

.entry-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2em 0 1em;
    color: #fff;
}

/* --- Links --- */
.entry-content a {
    color: var(--cyan);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: 0.3s;
}
.entry-content a:hover {
    color: #fff;
    text-decoration-color: var(--cyan);
}

/* --- Lists --- */
.entry-content ul, .entry-content ol {
    margin-bottom: 2em;
    padding-left: 1.5em;
    background: rgba(255,255,255,0.03);
    padding: 2em 2em 2em 3em;
    border-radius: 10px;
    border: var(--glass-border);
}
.entry-content ul li {
    list-style: disc;
    margin-bottom: 0.5em;
}
.entry-content ol li {
    list-style: decimal;
    margin-bottom: 0.5em;
}

/* --- Blockquote --- */
.entry-content blockquote {
    margin: 2em 0;
    padding: 20px 30px;
    background: rgba(0, 198, 255, 0.05);
    border-left: 4px solid var(--cyan);
    color: var(--text-main);
    font-style: italic;
    border-radius: 0 10px 10px 0;
}
.entry-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-sub);
    font-style: normal;
}

/* --- Table --- */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}
.entry-content th {
    background: rgba(0, 198, 255, 0.1);
    color: var(--cyan);
    font-weight: 700;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.entry-content td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* --- Images (Gutenberg Blocks) --- */
.wp-block-image img {
    border-radius: 10px;
    height: auto;
    border: var(--glass-border);
}
.wp-block-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-top: 10px;
}


/* =========================================
   FOOTER AREA (Nav, Share)
   ========================================= */

/* Post Navigation (Next/Prev) */
.post-navigation {
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}
.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.nav-previous, .nav-next {
    width: 48%;
}
.nav-links a {
    display: block;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: var(--glass-border);
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}
.nav-links a:hover {
    background: rgba(0, 198, 255, 0.1);
    border-color: var(--cyan);
}
.nav-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--cyan);
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
.nav-title {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.4;
}


/* =========================================
   HIDE COMMENTS (コメント欄完全非表示)
   ========================================= */
#comments, 
.comments-area, 
#respond,
.ast-comment-area,
.comment-respond {
    display: none !important;
}


/* --- Responsive --- */
@media (max-width: 768px) {
    .ast-article-single {
        padding: 30px 20px !important;
        margin-top: 20px;
        backdrop-filter: none; -webkit-backdrop-filter: none;
        background: rgba(15, 15, 15, 0.95) !important;
    }
    .entry-title { font-size: 1.5rem; }
    .nav-links { flex-direction: column; }
    .nav-previous, .nav-next { width: 100%; }
}