/* Base Styles */
:root {
    --primary-color: #f7a072;
    /* Warm Peach from the image text */
    --secondary-color: #a2d2ff;
    /* Sky Blue from the background */
    --accent-color: #ffc2d1;
    /* Soft Pink from the flowers/cheeks */
    --text-color: #5a4b41;
    /* Soft Brown instead of harsh black */
    --light-gray: #fffcf0;
    /* Creamy White */
    --bg-color: #fff9f0;
    /* Subtle warm background */
    --border-color: #ffe8d6;
    --white: #fff;
    --font-family: 'Noto Sans JP', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(8px);
    /* ぼかしの強さ */
    opacity: 0.6;
    /* 背景の濃さ */
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Header Search */
.search-form {
    display: flex;
    align-items: center;
    background-color: #f0f2f5;
    border-radius: 20px;
    padding: 5px 15px;
    margin-left: 20px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

nav {
    margin-left: auto;
}

.search-form:focus-within {
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(247, 160, 114, 0.2);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px;
    font-size: 0.9rem;
    color: var(--text-color);
    width: 200px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #888;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: var(--primary-color);
}

@media (max-width: 800px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .search-form {
        width: 100%;
        margin: 0;
        order: 2;
        /* Place search between logo and nav on mobile */
    }

    .search-input {
        width: 100%;
    }

    nav {
        order: 3;
    }
}



/* Hero Image */
.hero-image-container {
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Post Cards */
.section-title {
    font-size: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding: 10px 15px;
    margin-bottom: 30px;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.post-card {
    background: rgba(255, 255, 255, 0.9);
    /* 半透明の白 */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    display: flex;
    transition: transform 0.2s;
    backdrop-filter: blur(4px);
    /* カード背後を少しぼかす */
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-card-image {
    width: 200px;
    min-height: 140px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-image-placeholder {
    width: 200px;
    background-color: #ddd;
    min-height: 100%;
    /* Placeholder pattern */
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.post-content {
    padding: 10px 15px;
    flex: 1;
}

.post-content .category {
    display: inline-block;
    background-color: #e1f5fe;
    color: #0277bd;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.post-content .category:hover {
    opacity: 0.8;
}

.post-content .category.analysis {
    background-color: #fce4ec;
    color: #c2185b;
}

.post-content h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.post-content .excerpt {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.post-meta {
    font-size: 0.75rem;
    color: #999;
}

@media (max-width: 600px) {
    .post-card {
        flex-direction: column;
    }

    .post-image-placeholder {
        width: 100%;
        height: 180px;
    }

    .post-card-image {
        width: 100%;
        height: 200px;
    }
}

/* Sidebar Widgets */
.widget {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.widget h3 {
    font-size: 1.1rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 15px;
}

.widget ul li,
.widget ol li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.widget ul li:last-child,
.widget ol li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget a:hover {
    text-decoration: none;
    color: var(--primary-color);
}

/* Popular Posts Ranking */
.popular-posts {
    list-style: none;
    padding: 0;
}

.popular-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    position: relative;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-item a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    transition: transform 0.2s;
}

.popular-item a:hover {
    transform: translateY(-2px);
}

.popular-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    flex-shrink: 0;
}

.popular-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.popular-rank {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1.5px solid var(--white);
}

.rank-1 .popular-rank {
    background-color: #ffd700;
}

/* Gold */
.rank-2 .popular-rank {
    background-color: #c0c0c0;
}

/* Silver */
.rank-3 .popular-rank {
    background-color: #cd7f32;
}

/* Bronze */
.rank-4 .popular-rank,
.rank-5 .popular-rank {
    background-color: #718096;
}

/* Dark Gray */

.popular-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-color);
}

/* Article Page Specifics */
.article-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-header .category {
    background-color: #e1f5fe;
    color: #0277bd;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid #b3e5fc;
    text-decoration: none;
    transition: all 0.2s;
}

.article-header .category:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.article-header .category.analysis {
    background-color: #fce4ec;
    color: #c2185b;
    border-color: #f8bbd0;
}

.article-header h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.article-header .post-meta {
    justify-content: center;
    display: flex;
    gap: 20px;
    align-items: center;
}

.read-time {
    color: #666;
    font-size: 0.9rem;
    background-color: #f0f2f5;
    padding: 2px 10px;
    border-radius: 4px;
}

.article-body h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.article-body h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    border-left: 5px solid var(--secondary-color);
    padding-left: 10px;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.featured-image {
    width: 100%;
    margin-bottom: 30px;
}

.main-featured-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background-color: #f0f2f5;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.manga-section {
    margin: 30px 0;
}

.manga-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: block;
    margin-bottom: 20px;
}

.stock-chart,
.stock-fundamental {
    width: 100%;
    margin: 40px 0;
}

.stock-chart h3 {
    margin-bottom: 20px;
}

.summary-box {
    background-color: #fff8e1;
    border: 1px solid #ffe0b2;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f4f9 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card li::before {
    content: "✦";
    color: var(--primary-color);
    font-weight: bold;
}

.info-card-footer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(247, 160, 114, 0.1);
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
}

/* Focus Points Styles */
.focus-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.point-box {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.point-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.point-box ul {
    list-style: none;
    padding: 0;
}

.point-box li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.point-box li::before {
    content: "・";
    position: absolute;
    left: 0;
}

.point-box.positive {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
}

.point-box.positive h4 {
    color: #2f855a;
}

.point-box.cautious {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
}

.point-box.cautious h4 {
    color: #c53030;
}

@media (max-width: 768px) {
    .focus-points {
        grid-template-columns: 1fr;
    }
}

.summary-box h3 {
    margin-top: 0;
    border-left: none;
    color: #d84315;
}

.summary-box ul {
    list-style: disc;
    padding-left: 20px;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-weight: 700;
}

.back-link:hover {
    background-color: #e0e0e0;
}


/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    cursor: default;
}


/* Related Posts on Article Page */
.related-posts {
    margin-top: 60px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.post-card.mini {
    flex-direction: column;
    margin-bottom: 0;
}

.post-card.mini .post-image-placeholder {
    width: 100%;
    height: 120px;
}

.post-card.mini .post-content {
    padding: 10px;
}

.post-card.mini h3 {
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}


/* Author Profile */
.author-profile-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.author-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    gap: 30px;
    backdrop-filter: blur(4px);
}

.author-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.author-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    padding: 5px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s;
}

.author-social a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

@media (max-width: 600px) {
    .author-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .author-img {
        width: 120px;
        height: 120px;
    }

    .author-social {
        justify-content: center;
    }
}

/* Footer */
footer {
    background-color: #222;
    color: #999;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    font-size: 0.9rem;
}

/* Highlighter Utility */
.highlight {
    background: linear-gradient(transparent 60%, rgba(255, 235, 59, 0.7) 60%);
    font-weight: bold;
    padding: 0 4px;
}

/* Data Embedding Card */
.data-card {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.data-card iframe {
    display: block;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    background-color: #fff;
    min-height: 200px;
}

.data-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
} 
 / *   H o m e   C T A   B u t t o n   * /  
 . c t a - c o n t a i n e r   {  
         t e x t - a l i g n :   c e n t e r ;  
         m a r g i n :   4 0 p x   0 ;  
 }  
  
 . c t a - b u t t o n   {  
         d i s p l a y :   i n l i n e - b l o c k ;  
         p a d d i n g :   1 . 2 r e m   3 r e m ;  
         f o n t - s i z e :   1 . 3 r e m ;  
         f o n t - w e i g h t :   7 0 0 ;  
         c o l o r :   v a r ( - - w h i t e ) ;  
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 4 5 d e g ,   v a r ( - - p r i m a r y - c o l o r ) ,   v a r ( - - a c c e n t - c o l o r ) ) ;  
         b o r d e r - r a d i u s :   5 0 p x ;  
         b o x - s h a d o w :   0   1 0 p x   2 0 p x   r g b a ( 2 4 7 ,   1 6 0 ,   1 1 4 ,   0 . 3 ) ;  
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ;  
         t e x t - d e c o r a t i o n :   n o n e ;  
         l e t t e r - s p a c i n g :   0 . 0 5 e m ;  
         p o s i t i o n :   r e l a t i v e ;  
         o v e r f l o w :   h i d d e n ;  
 }  
  
 . c t a - b u t t o n : : b e f o r e   {  
         c o n t e n t :   ' ' ;  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   0 ;  
         l e f t :   0 ;  
         w i d t h :   1 0 0 % ;  
         h e i g h t :   1 0 0 % ;  
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 4 5 d e g ,   v a r ( - - a c c e n t - c o l o r ) ,   v a r ( - - p r i m a r y - c o l o r ) ) ;  
         o p a c i t y :   0 ;  
         t r a n s i t i o n :   o p a c i t y   0 . 3 s   e a s e ;  
         z - i n d e x :   1 ;  
 }  
  
 . c t a - b u t t o n   s p a n   {  
         p o s i t i o n :   r e l a t i v e ;  
         z - i n d e x :   2 ;  
 }  
  
 . c t a - b u t t o n : h o v e r   {  
         t r a n s f o r m :   t r a n s l a t e Y ( - 5 p x ) ;  
         b o x - s h a d o w :   0   1 5 p x   3 0 p x   r g b a ( 2 4 7 ,   1 6 0 ,   1 1 4 ,   0 . 5 ) ;  
         c o l o r :   v a r ( - - w h i t e ) ;  
 }  
  
 . c t a - b u t t o n : h o v e r : : b e f o r e   {  
         o p a c i t y :   1 ;  
 }  
 