/* ============================================================================
 * FX自動売買支援サイト 共通スタイルシート (assets/style.css)
 * ============================================================================ */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f4f7f6;
    padding: 16px;
    color: #2c3e50;
    line-height: 1.75;
    margin: 0;
}
.container {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* PR表示バナー */
.pr-notice {
    font-size: 13px;
    color: #333333;
    text-align: center;
    margin-bottom: 16px;
    font-weight: bold;
    background: #eef2f5;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #d9e2ec;
}

/* グローバルナビゲーション */
nav.site-nav {
    background: #2c3e50;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
nav.site-nav .nav-brand a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
}
nav.site-nav .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
nav.site-nav .nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}
nav.site-nav .nav-links a:hover,
nav.site-nav .nav-links a[aria-current="page"] {
    background-color: #34495e;
    color: #5dade2;
}

/* 見出し・本文 */
h1 {
    font-size: 23px;
    color: #1a252f;
    border-bottom: 3px solid #3498db;
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.4;
}
h2 {
    font-size: 19px;
    color: #1a252f;
    margin-top: 36px;
    margin-bottom: 14px;
    border-left: 5px solid #3498db;
    padding-left: 12px;
    background: #f8fbfd;
    padding-top: 6px;
    padding-bottom: 6px;
}
h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-top: 24px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e1e8ed;
    padding-bottom: 4px;
}
p, li {
    font-size: 15px;
    color: #333333;
}
ul, ol {
    padding-left: 22px;
}
li {
    margin-bottom: 8px;
}

/* 記事メタ情報・更新日 */
.article-meta {
    font-size: 13px;
    color: #555555;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 3px solid #95a5a6;
}

/* コールアウト・注意枠 */
.info-box {
    background: #eef7fc;
    border: 1px solid #bce0fd;
    border-radius: 6px;
    padding: 16px;
    margin: 18px 0;
}
.caution-box {
    background: #fff8e6;
    border: 1px solid #f5d68e;
    border-radius: 6px;
    padding: 16px;
    margin: 18px 0;
}
.alert-box {
    background: #fdedec;
    border: 1px solid #f5b7b1;
    border-radius: 6px;
    padding: 16px;
    margin: 18px 0;
}
.box-title {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 15px;
}

/* フォーム要素（VPSシミュレーター） */
.simulator-panel {
    background: #fdfdfd;
    border: 2px solid #d6eaf8;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.form-group {
    margin-bottom: 18px;
}
label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
    color: #2c3e50;
}
select, input[type="number"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccd1d9;
    border-radius: 4px;
    background-color: #ffffff;
}
button.btn-calc {
    width: 100%;
    padding: 15px;
    background-color: #e74c3c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 17px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 8px;
    transition: background-color 0.2s;
}
button.btn-calc:hover {
    background-color: #c0392b;
}
button:focus, a:focus, select:focus, input:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* 診断結果表示エリア */
.result-box {
    margin-top: 26px;
    padding: 20px;
    border-radius: 6px;
    display: none;
    border: 2px solid #3498db;
    background: #ffffff;
}
.result-box.show {
    display: block;
}
.plan-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}
.plan-card.recommended {
    border: 2px solid #27ae60;
    background: #eafaf1;
}
.plan-card.danger {
    border: 2px solid #e74c3c;
    background: #fdedec;
}
.plan-card.reference {
    border: 2px solid #7f8c8d;
    background: #fdfdfd;
}
.plan-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #2c3e50;
}
.price-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #cccccc;
    padding: 6px 0;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 4px;
}
.price-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0 0;
    font-size: 18px;
    font-weight: bold;
    color: #c0392b;
    flex-wrap: wrap;
    gap: 4px;
}
.monthly-equiv {
    text-align: right;
    font-size: 13px;
    color: #555555;
    margin-top: 5px;
}
.data-source {
    font-size: 12px;
    color: #555555;
    text-align: right;
    margin-top: 12px;
}
.data-source a {
    color: #2980b9;
    text-decoration: underline;
}
.warning-text {
    color: #c0392b;
    font-size: 13px;
    font-weight: bold;
    margin-top: 10px;
}

/* ボタン・CTAリンク */
.btn-official {
    display: block;
    text-align: center;
    background: #27ae60;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 14px;
    cursor: pointer;
    border: none;
    width: 100%;
    font-size: 15px;
}
.btn-official:hover {
    background: #219653;
}
.btn-secondary {
    display: inline-block;
    text-align: center;
    background: #2980b9;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}
.btn-secondary:hover {
    background: #1f6391;
}

/* カードグリッド（トップ・導線用） */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin: 22px 0;
}
.hub-card {
    background: #fdfdfd;
    border: 1px solid #dce4ec;
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hub-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: none;
}
.hub-card a.btn-hub {
    display: block;
    text-align: center;
    background: #3498db;
    color: #ffffff;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 12px;
}
.hub-card a.btn-hub:hover {
    background: #2980b9;
}

/* 比較テーブル（横スクロール対応） */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 18px 0;
}
table.comparison-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: 14px;
}
table.comparison-table th,
table.comparison-table td {
    border: 1px solid #d5dbdb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
table.comparison-table th {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: bold;
}
table.comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* スクリーンリーダー専用 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 法務・運営情報セクション */
.legal-sections {
    margin-top: 48px;
    border-top: 2px solid #dfe6e9;
    padding-top: 24px;
}
.legal-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #444444;
}
.legal-card h2 {
    font-size: 16px;
    color: #2c3e50;
    margin-top: 0;
    border-left: 4px solid #3498db;
    padding-left: 10px;
    background: transparent;
}
.legal-card p, .legal-card li {
    font-size: 13px;
}
.legal-card ul {
    padding-left: 20px;
    margin: 8px 0;
}
.legal-card li {
    margin-bottom: 6px;
}
.legal-card a {
    color: #2980b9;
}

/* フッター */
footer {
    margin-top: 36px;
    text-align: center;
    font-size: 12px;
    color: #666666;
    border-top: 1px solid #eeeeee;
    padding-top: 18px;
}
footer nav {
    margin-bottom: 10px;
}
footer a {
    color: #2980b9;
    text-decoration: none;
    margin: 0 6px;
    font-weight: bold;
}
footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    body {
        padding: 8px;
    }
    .container {
        padding: 16px;
    }
    h1 {
        font-size: 20px;
    }
    h2 {
        font-size: 17px;
    }
}

/* A8.net 静的正式広告枠（広告HTML無改変・PR明示・通常リンクと視覚的に区別） */
.a8-ad-unit {
    background: #fcfefe;
    border: 2px solid #27ae60;
    border-radius: 6px;
    padding: 16px 18px;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.a8-ad-unit.a8-ad-secondary {
    border-color: #2980b9;
    background: #f8fbfe;
}
.a8-ad-unit.is-out-of-scope {
    border-color: #95a5a6;
    background: #fafafa;
}
.a8-ad-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.pr-badge {
    display: inline-block;
    background: #34495e;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.04em;
}
.a8-ad-title {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}
.a8-ad-desc {
    font-size: 13.5px;
    color: #333333;
    margin: 0 0 12px 0;
    line-height: 1.65;
}
.a8-ad-desc.out-of-scope-notice {
    color: #c0392b;
    font-weight: bold;
    background: #fdedec;
    border: 1px solid #f5b7b1;
    padding: 8px 10px;
    border-radius: 4px;
}
.a8-ad-raw {
    text-align: center;
    margin: 8px 0 4px 0;
}
.a8-ad-raw a {
    display: inline-block;
    width: 100%;
    max-width: 480px;
    text-align: center;
    background: #27ae60;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.2s;
}
.a8-ad-unit.a8-ad-secondary .a8-ad-raw a {
    background: #2980b9;
}
.a8-ad-raw a:hover {
    background: #219653;
}
.a8-ad-unit.a8-ad-secondary .a8-ad-raw a:hover {
    background: #1f6391;
}
.a8-ad-raw img {
    width: 1px;
    height: 1px;
    border: 0;
    vertical-align: bottom;
}
.a8-ad-footnote {
    font-size: 12px;
    color: #555555;
    margin: 8px 0 0 0;
    text-align: center;
}

/* パンくずリスト・記事内補助スタイル（2026-11-08追加） */
nav.breadcrumb {
    font-size: 13px;
    color: #555555;
    margin-bottom: 16px;
    padding: 4px 2px;
    line-height: 1.5;
    overflow-wrap: break-word;
}
nav.breadcrumb a {
    color: #2980b9;
    text-decoration: none;
}
nav.breadcrumb a:hover {
    text-decoration: underline;
}
.related-links-bar {
    background: #f4f8fb;
    border: 1px solid #d6eaf8;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.8;
}
.related-links-bar a {
    color: #2980b9;
    font-weight: bold;
    text-decoration: none;
}
.related-links-bar a:hover {
    text-decoration: underline;
}

/* 記事冒頭の目的別・段階別クイックナビゲーション（スマホ長文スクロール軽減用） */
.stage-nav-box {
    background: #f4f8fb;
    border: 1px solid #bce0fd;
    border-left: 5px solid #2980b9;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 18px 0 24px 0;
}
.stage-nav-title {
    font-size: 14.5px;
    font-weight: bold;
    color: #1a252f;
    margin: 0 0 10px 0;
}
.stage-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}
.stage-nav-link {
    display: block;
    background: #ffffff;
    border: 1px solid #cbd6e2;
    border-radius: 4px;
    padding: 9px 11px;
    color: #2980b9;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: bold;
    line-height: 1.45;
    transition: background-color 0.15s, border-color 0.15s;
}
.stage-nav-link:hover {
    background: #ebf5fb;
    border-color: #3498db;
    text-decoration: underline;
}
.stage-nav-sub {
    display: block;
    font-size: 11.5px;
    font-weight: normal;
    color: #555555;
    margin-top: 2px;
}

/* EA実運用前の無料確認チェックリスト */
.checklist-box {
    background: #f8fbfd;
    border: 2px solid #3498db;
    border-radius: 6px;
    padding: 16px 18px;
    margin: 18px 0;
}
ul.check-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}
ul.check-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 14.5px;
    line-height: 1.65;
}
ul.check-list li::before {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 16px;
}

/* 比較表内の記事内詳細移動リンク */
a.in-page-detail-link {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    background: #eef7fc;
    border: 1px solid #bce0fd;
    border-radius: 3px;
    color: #1f6391;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.4;
}
a.in-page-detail-link:hover {
    background: #d6eaf8;
    text-decoration: underline;
}
