@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@700&display=swap');

:root {
    --primary-blue: #003366;
    --link-blue: #0056b3;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f4f4f4;
    --line-green: #06c755;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.site-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.main-content {
    flex: 2;
    min-width: 0;
    /* Fix flex child overflow */
}

.sidebar {
    flex: 1;
}

/* Article Cards */
.article-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.05); */
    /* Optional shadow on hover */
}

.article-card:last-child {
    border-bottom: none;
}

.article-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
}

.article-thumb {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    transition: opacity 0.3s;
}

.article-card:hover .article-thumb {
    opacity: 0.95;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.5;
    padding: 0 20px;
}

/* 2記事目以降のタイトルを青色にする */
.article-card:not(:first-of-type) .article-title {
    color: var(--primary-blue);
}

.article-title a {
    color: inherit;
    /* Remove blue link color if present */
    text-decoration: none;
}

.article-title a:hover {
    text-decoration: none;
    color: inherit;
}

.article-excerpt {
    font-size: 14px;
    color: #444;
    padding: 20px 0;
    margin: 0 20px;
    border-top: 1px solid #e0e0e0;
    line-height: 1.8;
}

/* Sidebar Rankings */
.ranking-section {
    background: white;
    padding: 20px;
}

.ranking-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.ranking-list {
    list-style: none;
}

.ranking-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    align-items: flex-start;
    transition: transform 0.2s;
}

.ranking-item:hover {
    transform: translateX(4px);
}

.ranking-thumb {
    width: 80px;
    height: 60px;
    background-color: #ddd;
    object-fit: cover;
    flex-shrink: 0;
}

.ranking-text {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.ranking-text a:hover {
    color: var(--link-blue);
    text-decoration: underline;
}

.rank-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background-color: var(--primary-blue);
    color: white;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Special CTA Box in Main Column */
.cta-box {
    background: white;
    /* border: 1px solid #ddd; */
    text-align: center;
    margin-top: 60px;
    padding-bottom: 20px;
}

.cta-title-main {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.cta-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
}

.cta-content-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-button-new {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 0 auto 10px auto;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.1s, box-shadow 0.1s;
    position: relative;
}

.cta-button-new:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.btn-blue-gradient {
    background: linear-gradient(to bottom, #2da4f1, #1d6fa5 50%, #155582);
    border: 1px solid #104265;
}

.btn-green-gradient {
    background: linear-gradient(to bottom, #00d95a, #00b94a);
    border: 1px solid #008f39;
    box-shadow: 0 4px 0 #007a30;
}

.icon-play {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: white;
    color: var(--primary-blue);
    /* Default for blue btn */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    margin-left: 10px;
    padding-left: 2px;
    /* optical center */
}

.btn-green-gradient .icon-play {
    color: #00b94a;
}

.icon-line {
    background: white;
    color: #00b94a;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 15px;
}

.cta-note-small {
    font-size: 12px;
    color: #333;
    margin-bottom: 30px;
}

.cta-divider {
    height: 1px;
    background: #ccc;
    margin: 0 20px 30px 20px;
}

.cta-text-nav {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Form Styles */
.cta-form {
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.cta-input {
    width: 80%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit;
}

.cta-input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.2);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #e0e0e0;
}

.main-footer a {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .article-thumb {
        height: auto;
        aspect-ratio: 16/9;
    }
}