/* =========================================
   ULABO 記事ページ 共通スタイル
   ========================================= */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg: #0f0e17;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #fffffe;
    --text-muted: #a7a9be;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #0ea5e9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.15) 0%, transparent 65%);
    color: var(--text-main);
    min-height: 100vh;
    padding: 0;
    line-height: 1.8;
}

/* レイアウト */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 80px;
}

.container {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 60px 80px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px;
}

/* 見出し */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    line-height: 1.4;
}

h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-main);
}

/* テキスト */
p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.05rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.9;
}

ul,
ol {
    margin-bottom: 2rem;
    padding-left: 24px;
    font-size: 1.05rem;
    color: var(--text-main);
}

li {
    margin-bottom: 10px;
}

/* ボックスコンポーネント */
.highlight-box {
    background: rgba(79, 70, 229, 0.05);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.highlight-box p {
    margin-bottom: 0;
}

.warning-box {
    background: rgba(239, 68, 68, 0.08);
    border-left: 4px solid #ef4444;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.warning-box p {
    margin-bottom: 0;
}

.info-box {
    background: rgba(14, 165, 233, 0.08);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.info-box p {
    margin-bottom: 0;
}

/* ステップ */
.step-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.step-number {
    display: inline-block;
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 12px;
}

.step-title {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* テーブル */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: 0.98rem;
}

.spec-table th {
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    border: 1px solid var(--border);
}

.spec-table td {
    padding: 12px 18px;
    border: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: top;
}

.spec-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.03);
}

/* バッジ */
.badge-ok {
    display: inline-block;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-right: 6px;
}

.badge-ng {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-right: 6px;
}

/* コード・例示ブロック */
.example-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 0.95rem;
    margin: 1rem 0 1.8rem;
    line-height: 1.9;
    word-break: break-all;
}

/* 目次 */
.toc {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 3rem;
}

.toc-title {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.toc ol {
    margin-bottom: 0;
}

.toc li a {
    color: #a5b4fc;
    text-decoration: none;
    font-size: 0.98rem;
}

.toc li a:hover {
    text-decoration: underline;
}

/* CTAボタン */
.tool-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.4);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .container {
        padding: 40px 30px;
    }

    h1 {
        font-size: 2rem;
    }

    .spec-table {
        font-size: 0.88rem;
    }

    .spec-table th,
    .spec-table td {
        padding: 10px 12px;
    }
}
