/* 
 * StarLights専用スタイル
 * スターライツページと投稿でのみ読み込まれる
 */

/* CSS変数の定義 */
:root {
    --real-estate-light-blue: #C9E8F2;
    --real-estate-black-transparent: rgba(0,0,0,0.5);
    --real-estate-black: #000000;
    --real-estate-accent: #ff6c38;
}

/* モバイルヘッダーを強制非表示 */
@media (min-width: 768px) {
    .td-header-mobile-wrap {
        display: none !important;
    }
}

/* スマホ表示時にPC用グローバルナビゲーション部分を非表示 */
@media (max-width: 767px) {
    #tdi_15 {
        display: none !important;
    }
    .td-header-desktop-wrap {
        display: none !important;
    }
    /* Subscribeボタンを非表示 */
    .tdi_11 {
        display: none !important;
    }
}

/* スターライツページのロゴ設定 - SVGを完全に非表示、PNGを表示 */
.tdi_19 .tdb-logo-svg-wrap,
.tdb_header_logo .tdb-logo-svg-wrap {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.tdi_19 .tdb-logo-svg-wrap svg,
.tdb_header_logo .tdb-logo-svg-wrap svg {
    display: none !important;
    visibility: hidden !important;
}

.tdi_19 .tdb-logo-img-wrap,
.tdb_header_logo .tdb-logo-img-wrap {
    display: block !important;
    visibility: visible !important;
}

.tdi_19 .tdb-logo-img,
.tdb_header_logo .tdb-logo-img {
    display: block !important;
    visibility: visible !important;
}

/* スターライツ投稿ページ用のスタイル補完 */
.starlights-post-article {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.starlights-post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.starlights-post-meta .meta-item {
    margin-right: 15px;
}

.starlights-post-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

/* 背景色の適用 */
.td-main-content-wrap {
    background: #f7f7f7 !important;
}

/* ヘッダーの背景色 */
.td-header-template-wrap {
  
}

.tdi_15_rand_style {
    background-color: #daf5fe !important;
}

/* フッターの背景色 */
.td-footer-template-wrap {
    background: #000 !important;
}

/* コンテナの調整 */
.td-pb-span12 {
    width: 100% !important;
}

/* ==========================================================================
   スターライツ投稿ページ - 2カラムレイアウト
   ========================================================================== */

.starlights-post-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.starlights-content-area {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 左側：メインコンテンツ (65%) */
.starlights-main-content {
    flex: 0 0 65%;
}

.starlights-post-article {
    background: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.starlights-post-header {
    margin-bottom: 30px;
}

.starlights-post-title {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.starlights-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.starlights-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.starlights-post-meta .meta-item i {
    color: #4a90e2;
}

.starlights-post-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.starlights-post-meta a:hover {
    color: #4a90e2;
}

/* カテゴリタグスタイル */
.starlights-post-meta .post-categories .category-tag {
    display: inline-block;
    background-color: #333;
    color: #fff !important;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    margin-right: 6px;
    margin-bottom: 3px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.starlights-post-meta .post-categories .category-tag:hover {
    background-color: #555;
    border-color: #555;
    color: #fff !important;
}

.starlights-post-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.starlights-post-content h1,
.starlights-post-content h2,
.starlights-post-content h3 {
    color: #1a1a2e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.starlights-post-content p {
    margin-bottom: 20px;
}

.starlights-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin: 20px 0;
}

/* スマホ用アイキャッチ画像（最上部表示） */
.starlights-mobile-featured {
    display: none; /* デスクトップでは非表示 */
}

.starlights-mobile-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* 右側：サイドバー (35%) */
.starlights-sidebar {
    flex: 0 0 35%;
    position: sticky;
    top: 20px;
}

.starlights-featured-image {
    margin-bottom: 30px;
}

.starlights-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.starlights-sidebar-title {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a90e2;
    font-weight: 600;
}

/* 関連記事リスト */
.starlights-related-posts {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 30px;
}

.starlights-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.starlights-post-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.starlights-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.starlights-post-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.starlights-post-link:hover {
    transform: translateY(-2px);
}

.starlights-post-thumb {
    flex: 0 0 60px;
}

.starlights-post-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.starlights-post-info {
    flex: 1;
}

.starlights-post-item-title {
    font-size: 14px;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    font-weight: 500;
}

.starlights-post-date {
    font-size: 12px;
    color: #888;
}

/* 記事ナビゲーション */
.starlights-post-navigation {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.starlights-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.starlights-nav-link {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.starlights-nav-link:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.nav-direction {
    display: block;
    font-size: 12px;
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

/* タイトルの改行制御 */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    /* スマホ用アイキャッチ画像を表示 */
    .starlights-mobile-featured {
        display: block;
        margin-bottom: 20px;
    }
    
    .starlights-mobile-thumbnail {
        max-height: 250px;
        object-fit: cover;
    }
    
    /* デスクトップ用アイキャッチ画像を非表示 */
    .starlights-featured-image {
        display: none;
    }
    
    .starlights-content-area {
        flex-direction: column;
        gap: 30px;
    }
    
    .starlights-main-content,
    .starlights-sidebar {
        flex: none;
        width: 100%;
    }
    
    .starlights-sidebar {
        position: static;
    }
    
    .starlights-post-article {
        padding: 25px 20px;
        margin-bottom: 0;
    }
    
    .starlights-post-title {
        font-size: 2rem;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .starlights-post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .starlights-post-layout {
        padding: 20px 15px;
    }
}