/* TitanFX 口座開設ガイド - 記事共通スタイル */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #9EFF00;
    --secondary-color: #1a0f3e;
    --gradient-start: #0f0a28;
    --gradient-mid: #1a0f3e;
    --gradient-end: #2d1b5e;
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-color);
    color: #000;
    padding: 12px 20px;
    border-radius: 0 0 8px 0;
    font-weight: 700;
    text-decoration: none;
    z-index: 2000;
}

.skip-link:focus {
    left: 0;
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* Header */
header {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(158, 255, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    max-width: 180px;
    height: auto;
}

.header-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.header-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.header-nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .header-nav {
        display: none;
    }
}

.header-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 4px 20px rgba(158, 255, 0, 0.4);
}

.btn-primary:hover {
    background: #b3ff33;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(158, 255, 0, 0.6);
}

/* Article Layout */
.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    padding: 25px 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb li + li::before {
    content: '›';
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.article-header {
    padding: 30px 0 10px;
}

.article-category {
    display: inline-block;
    background: rgba(158, 255, 0, 0.15);
    border: 1px solid rgba(158, 255, 0, 0.4);
    color: var(--primary-color);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.1rem;
    line-height: 1.35;
    margin-bottom: 18px;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-meta .icon {
    color: var(--primary-color);
    margin-right: 4px;
}

/* Article Body */
.article-body {
    padding: 10px 0 60px;
}

.article-body .lead {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.9;
    margin: 25px 0;
}

.article-body h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin: 55px 0 20px;
    padding: 8px 0 8px 16px;
    border-left: 4px solid var(--primary-color);
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 35px 0 15px;
    color: var(--primary-color);
}

.article-body p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 18px;
}

.article-body strong {
    color: var(--text-white);
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
    color: var(--text-light);
    line-height: 1.9;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body a:not(.btn) {
    color: var(--primary-color);
}

/* Table of Contents */
.toc {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(158, 255, 0, 0.25);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
}

.toc h2 {
    font-size: 1.1rem;
    margin: 0 0 15px;
    padding: 0;
    border: none;
    color: var(--primary-color);
}

.toc ol {
    margin: 0;
    padding-left: 22px;
}

.toc a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.toc a:hover {
    color: var(--primary-color);
}

/* Tables */
.table-scroll {
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 560px;
}

.article-table caption {
    caption-side: bottom;
    text-align: left;
    color: var(--text-light);
    font-size: 0.8rem;
    padding-top: 8px;
}

.article-table th {
    background: rgba(158, 255, 0, 0.12);
    color: var(--text-white);
    text-align: left;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.article-table td {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
}

.article-table .hl {
    color: var(--primary-color);
    font-weight: 700;
}

/* Info Boxes */
.note-box,
.warn-box {
    border-radius: 12px;
    padding: 20px 25px;
    margin: 25px 0;
    line-height: 1.8;
}

.note-box {
    background: rgba(158, 255, 0, 0.08);
    border: 1px solid rgba(158, 255, 0, 0.35);
}

.warn-box {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.35);
}

.note-box h4,
.warn-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.note-box h4 {
    color: var(--primary-color);
}

.warn-box h4 {
    color: #ffc107;
}

.note-box p,
.warn-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, rgba(158, 255, 0, 0.12) 0%, rgba(45, 27, 94, 0.4) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 35px 30px;
    margin: 45px 0;
    text-align: center;
}

.cta-box h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    color: var(--text-white);
}

.cta-box p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Related Articles */
.related-articles {
    margin: 50px 0 0;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-articles h2 {
    font-size: 1.3rem;
    margin: 0 0 20px;
    padding: 0;
    border: none;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 12px;
}

.related-articles a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(158, 255, 0, 0.2);
    border-radius: 10px;
    padding: 16px 20px;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.related-articles a:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.related-articles .icon {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(158, 255, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

.risk-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.6rem;
    }

    .article-body h2 {
        font-size: 1.35rem;
    }

    .article-body h3 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .toc {
        padding: 20px;
    }

    .cta-box {
        padding: 25px 20px;
    }
}

/* 記事冒頭の要点サマリー（AI・検索エンジンによる抽出を想定） */
.summary-box {
    background: rgba(158, 255, 0, 0.07);
    border: 1px solid rgba(158, 255, 0, 0.35);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 0 0 30px;
}

.summary-box h2 {
    font-size: 1.15rem !important;
    color: var(--primary-color);
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-box ul {
    margin: 0;
    padding-left: 1.25em;
}

.summary-box li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.summary-box li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .summary-box {
        padding: 20px;
    }
}

/* 著者ボックス（E-E-A-T：各記事から著者エンティティへ紐づける） */
.author-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(158, 255, 0, 0.22);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 40px 0 0;
}

.author-box h2 {
    font-size: 1.05rem !important;
    color: var(--primary-color);
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: none !important;
}

.author-box .author-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.author-box .author-name a {
    color: var(--text-white);
    text-decoration: none;
}

.author-box .author-name a:hover {
    color: var(--primary-color);
}

.author-box p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.author-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .author-box {
        padding: 20px;
    }
}
