/* ========================================
   日本株式投資ランディングページ CSS
   参考: cuvix.buzz + ZBlog PHP テーマ
   ======================================== */

/* CSS変数定義 */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --transition: all 0.3s ease;
    --max-width: 480px;
}

/* リセット・基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* 背景装飾要素 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.bg-circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.bg-circle-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    bottom: 30%;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.bg-circle-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    bottom: -50px;
    right: -50px;
    animation: float 18s ease-in-out infinite;
}

.bg-gradient-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.1) 20%, rgba(37, 99, 235, 0.2) 50%, rgba(37, 99, 235, 0.1) 80%, transparent);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -30px); }
    50% { transform: translate(-10px, 20px); }
    75% { transform: translate(30px, 10px); }
}

/* コンテナ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}

/* ヘッダー */
.header {
    padding: 20px 0;
}

.badge-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.live-badge,
.limited-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.live-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.live-badge .pulse {
    font-size: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

.limited-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ヒーローセクション */
.hero-section {
    text-align: center;
    padding: 40px 0 50px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.hero-tag i {
    color: var(--secondary-color);
}

.hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.highlight-text {
    color: var(--primary-color);
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(37, 99, 235, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* CTAボタン */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 12px;
}

/* セクション装飾 */
.section-decorator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.decorator-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.section-decorator i {
    font-size: 24px;
    color: var(--secondary-color);
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

/* 特徴セクション */
.features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 14px;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ソリューションヘッダー (中間CTA) */
.solution-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

/* コミュニティの強みセクション */
.problem-section {
    padding: 50px 0;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.problem-item:hover {
    transform: translateX(5px);
}

.problem-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon .text-success {
    color: var(--accent-color);
}

.problem-item p {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 学習カリキュラムセクション（Google Ads原創内容対策） */
.edu-content-section {
    padding: 50px 0;
}
.edu-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}
.edu-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-md);
}
.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.15);
    border-color: var(--primary-color);
}
.edu-step {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.edu-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.edu-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.edu-topics {
    list-style: none;
    padding: 0;
    margin: 0;
}
.edu-topics li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 4px 0 4px 20px;
    position: relative;
}
.edu-topics li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}
.edu-disclaimer {
    margin-top: 24px;
    padding: 14px 18px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.edu-disclaimer i {
    color: #ffc107;
    margin-right: 6px;
}

/* CTA ボタン内アイコン */
.cta-icon {
    font-size: 1.1em;
    margin-right: 4px;
}

/* アバター画像 */
.avatar {
    margin-top: 24px;
    text-align: center;
}
.avatar img {
    border: 3px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

/* コミュニティ画像セクション（band-section） */
.band-section {
    padding: 30px 0;
}
.band-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.band-image {
    width: 100%;
    height: auto;
    display: block;
}
.band-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.band-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.95);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
}

/* 参加者フィードバック スライダー */
.success-section {
    padding: 50px 0;
}
.testimonial-slider {
    position: relative;
    overflow: hidden;
}
.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}
.testimonial-card {
    min-width: 100%;
    padding: 24px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 20px;
    flex-shrink: 0;
}
.testimonial-info {
    flex: 1;
}
.testimonial-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.testimonial-meta {
    font-size: 13px;
    color: var(--text-muted);
}
.testimonial-result {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.testimonial-result.positive {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}
.testimonial-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}
.testimonial-date {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}
.slider-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}
.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.slider-dots {
    display: flex;
    gap: 8px;
}
.slider-dot {
    width: 10px;
    height: 10px;
    background: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.active {
    background: var(--primary-color);
    width: 28px;
    border-radius: 10px;
}
.testimonial-notice {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* 記事セクション */
.articles-section {
    padding: 50px 0;
}

.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-link {
    display: block;
    padding: 20px;
    color: inherit;
    text-decoration: none;
}

.article-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.article-date {
    font-size: 12px;
    color: var(--text-muted);
}

.article-cat {
    font-size: 12px;
    padding: 2px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
}

.article-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-readmore {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

/* ページバー */
.lp-pagebar {
    margin-top: 24px;
    text-align: center;
}

.lp-pagebar .pagebar {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lp-pagebar .pagebar a,
.lp-pagebar .pagebar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.lp-pagebar .pagebar a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lp-pagebar .pagebar span.now {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 700;
}

/* フッター */
.footer {
    padding: 40px 0 20px;
    background: linear-gradient(to bottom, transparent, rgba(241, 245, 249, 0.8));
}

.footer-content {
    text-align: center;
}

.company-info {
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.company-info h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.company-info h4 i {
    color: var(--primary-color);
}

.company-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.footer-notice {
    margin-bottom: 20px;
}

.footer-notice p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-notice a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-notice a:hover {
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links .divider {
    margin: 0 10px;
    color: var(--text-muted);
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* 固定下部CTAボタン */
.fixed-bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.fixed-cta {
    width: 100%;
    max-width: 440px;
    padding: 16px 24px;
    font-size: 16px;
    position: relative;
    overflow: visible;
}

.spots-left {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 4px 10px;
    background: var(--danger-color);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 1.5s ease-in-out infinite;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-header h3 i {
    color: var(--primary-color);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}

.modal-body .legal-date {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== 記事ページ (single.php) ===== */
.single-page-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px 100px;
    position: relative;
    z-index: 1;
}

.single-header {
    margin-bottom: 30px;
}

.single-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.single-meta span {
    font-size: 13px;
    color: var(--text-muted);
}

.single-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.single-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.single-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.2);
}

.single-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.single-content p {
    margin-bottom: 16px;
}

.single-content img {
    border-radius: var(--border-radius-sm);
    margin: 16px 0;
}

.single-content ul,
.single-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.single-content li {
    margin-bottom: 8px;
}

.single-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-light);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.single-content a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.single-content code {
    padding: 2px 6px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 14px;
}

.single-content pre {
    margin: 16px 0;
    padding: 16px;
    background: #1e293b;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
}

.single-content pre code {
    background: none;
    color: #e2e8f0;
    font-size: 14px;
}

.single-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.single-tags a {
    display: inline-block;
    padding: 4px 14px;
    margin: 4px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.single-tags a:hover {
    background: var(--primary-color);
    color: white;
}

.single-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.single-nav a {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.single-nav a:hover {
    text-decoration: underline;
}

/* ===== カテゴリ / 検索ページ ===== */
.list-page-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px 100px;
    position: relative;
    z-index: 1;
}

.list-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.list-page-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
}

.list-page-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ===== 404ページ ===== */
.error-page-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: 100px;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
}

.error-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 10px 0;
}

.error-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.error-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== ナビバー (記事/カテゴリページ用) ===== */
.lp-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 20px;
}

.lp-navbar .lp-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 16px;
}

.lp-navbar .lp-logo-icon {
    font-size: 22px;
}

.lp-navbar .lp-nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 16px;
}

.lp-navbar .lp-nav-links a:hover {
    color: var(--primary-color);
}

/* Mobile: hide desktop nav links, show hamburger */
.lp-navbar .lp-nav-links {
    display: none;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 3000;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    margin: 0 16px 10px auto;
}

.mobile-menu-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.mobile-menu-content a:hover,
.mobile-menu-content a.active {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.mobile-menu-content a i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.mobile-menu-content a:hover i {
    color: var(--primary-color);
}

.mobile-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 10px 24px;
}

/* Landing page: hide navbar on mobile, show badges instead */
.landing-page .lp-navbar {
    display: none;
}

/* Investment disclaimer bar */
.disclaimer-bar {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    margin: 20px 0;
    font-size: 12px;
    color: #92400e;
    line-height: 1.6;
    text-align: center;
}

.disclaimer-bar i {
    color: #d97706;
    margin-right: 4px;
}

/* ===== レスポンシブ ===== */

/* Tablet */
@media (min-width: 768px) {
    :root {
        --max-width: 720px;
    }

    .hero-title {
        font-size: 36px;
    }

    .single-title {
        font-size: 32px;
    }

    .features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .problem-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .articles-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .footer-content {
        text-align: left;
    }

    .modal-content {
        max-width: 600px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --max-width: 1000px;
    }

    /* Show desktop nav links, hide hamburger */
    .lp-navbar .lp-nav-links {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-menu-btn {
        display: none;
    }

    /* Show navbar on landing page too */
    .landing-page .lp-navbar {
        display: flex;
    }

    /* Hide mobile badge header on desktop (navbar replaces it) */
    .landing-page .header .badge-container {
        justify-content: flex-start;
    }

    .bg-decoration {
        opacity: 0.4;
    }

    /* Hero section desktop */
    .hero-section {
        padding: 60px 0 70px;
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    /* Features: 3-column grid */
    .features {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 32px;
    }

    /* Problem list: 2-column grid */
    .problem-list {
        gap: 20px;
    }

    .problem-item {
        padding: 24px;
    }

    /* Articles: 3-column grid */
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Edu grid: 3-column */
    .edu-grid {
        flex-direction: row;
    }
    .edu-card {
        flex: 1;
    }

    /* Section titles */
    .section-title {
        font-size: 28px;
    }

    /* Footer desktop: multi-column */
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
        text-align: left;
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .company-info {
        text-align: left;
    }

    .company-info h4 {
        justify-content: flex-start;
    }

    .footer-notice {
        text-align: left;
    }

    .footer-links {
        text-align: left;
    }

    .copyright {
        grid-column: 1 / -1;
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid #e2e8f0;
    }

    /* Fixed bottom CTA: minimize on desktop */
    .fixed-bottom-cta {
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .fixed-cta {
        max-width: 360px;
        padding: 14px 24px;
        font-size: 15px;
    }

    /* Single and list page wrappers */
    .single-page-wrapper,
    .list-page-wrapper {
        max-width: 780px;
    }

    /* Modals wider on desktop */
    .modal-content {
        max-width: 680px;
    }

    /* Navbar desktop styling */
    .lp-navbar {
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 20px 20px;
    }

    .lp-navbar .lp-logo {
        font-size: 18px;
    }

    .lp-navbar .lp-nav-links a {
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
    }

    .lp-navbar .lp-nav-links a:hover {
        background: rgba(37, 99, 235, 0.08);
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    :root {
        --max-width: 1140px;
    }

    .hero-section {
        max-width: 760px;
    }

    .hero-title {
        font-size: 46px;
    }

    .single-page-wrapper,
    .list-page-wrapper {
        max-width: 820px;
    }

    .footer-content {
        max-width: 1140px;
    }
}

/* Ultra-wide */
@media (min-width: 1600px) {
    :root {
        --max-width: 1200px;
    }
}

/* ZBlog システムスタイル上書き */
.zbp-pagebar .pagebar {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.zbp-pagebar .pagebar a,
.zbp-pagebar .pagebar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.zbp-pagebar .pagebar a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.zbp-pagebar .pagebar span.now {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 700;
}
