@charset "UTF-8";

:root {
    /* Colors */
    --pge-color-primary: #1e3a8a; /* 深いネイビーで信頼感を */
    --pge-color-primary-light: #eff6ff;
    --pge-color-primary-muted: rgba(36, 88, 204, 0.8); /* 80%程度の透過・明るさ */
    
    --pge-color-text-main: #334155;
    --pge-color-text-heading: #0f172a;
    --pge-color-text-muted: #64748b;
    
    --pge-color-bg-body: #ffffff;
    --pge-color-bg-sidebar: #f8fafc;
    --pge-color-bg-block: #f1f5f9;
    
    --pge-color-border: #e2e8f0;

    /* Typography */
    --pge-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --pge-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-base: 15px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 22px;
    --fs-2xl: 28px;
    --fs-3xl: 34px;

    /* Layout */
    --pge-header-height: 56px;
    --pge-sidebar-width: 280px;
    --pge-content-max-width: 760px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--pge-font-family);
    font-size: var(--fs-base);
    color: var(--pge-color-text-main);
    background-color: var(--pge-color-bg-body);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* Document Layout Structure */
.doc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pge-header-height);
    background: #fff;
    border-bottom: 1px solid var(--pge-color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.doc-header-brand {
    font-weight: 600;
    color: var(--pge-color-text-heading);
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-header-links a {
    color: var(--pge-color-text-muted);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.doc-header-links a:hover {
    color: var(--pge-color-primary);
}

.doc-container {
    display: flex;
    margin-top: var(--pge-header-height);
    min-height: calc(100vh - var(--pge-header-height));
}

/* Sidebar Navigation */
.doc-sidebar {
    width: var(--pge-sidebar-width);
    background-color: var(--pge-color-bg-sidebar);
    border-right: 1px solid var(--pge-color-border);
    padding: 28px 20px 40px 28px;
    position: fixed;
    top: var(--pge-header-height);
    bottom: 0;
    overflow-y: auto;
    font-size: var(--fs-sm);
}

.doc-sidebar h2 {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pge-color-text-muted);
    margin: 0 0 12px;
    padding: 0;
    border: none;
    background: transparent;
}

.doc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-sidebar > nav > ul > li {
    margin-bottom: 18px;
}

.doc-sidebar > nav > ul > li > a {
    display: block;
    font-weight: 600;
    color: var(--pge-color-text-heading);
    padding: 4px 10px;
    margin: 0 0 4px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.doc-sidebar > nav > ul > li > a:hover {
    background-color: var(--pge-color-bg-body);
    color: var(--pge-color-text-heading);
}

.doc-sidebar ul ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--pge-color-border);
    margin-left: 10px;
}

.doc-sidebar ul ul li {
    margin: 0.25em 0;
}

.doc-sidebar ul ul a {
    display: block;
    padding: 4px 10px 4px 14px;
    margin-left: -1px;
    color: var(--pge-color-text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.doc-sidebar ul ul a:hover {
    color: var(--pge-color-text-main);
    border-left-color: var(--pge-color-text-muted);
    background-color: transparent;
}

/* Content Area */
.doc-content-wrapper {
    flex: 1;
    margin-left: var(--pge-sidebar-width);
    padding: 48px;
    display: flex;
    justify-content: center;
}

.doc-content {
    max-width: var(--pge-content-max-width);
    width: 100%;
}

.doc-content .doc-title-logo {
    width: 95%;
    margin-bottom: 48px;
    display: block;
    border: none;
    border-radius: 0;
}

/* Typography in Content */
.doc-content h1 {
    font-size: var(--fs-3xl);
    color: var(--pge-color-text-heading);
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.doc-content h2 {
    font-size: var(--fs-2xl);
    color: var(--pge-color-text-heading);
    margin: 56px 0 18px;
    padding-top: 8px;
    border-bottom: none;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
    scroll-margin-top: calc(var(--pge-header-height) + 24px);
}

.doc-content h3 {
    font-size: var(--fs-xl);
    color: var(--pge-color-text-heading);
    margin: 36px 0 12px;
    font-weight: 600;
    line-height: 1.35;
    scroll-margin-top: calc(var(--pge-header-height) + 24px);
}

.doc-content h4 {
    font-size: var(--fs-md);
    color: var(--pge-color-text-heading);
    margin: 24px 0 8px;
    font-weight: 600;
    line-height: 1.4;
}

.doc-content p {
    margin-top: 0;
    margin-bottom: 16px;
}

.doc-content ul, .doc-content ol {
    margin-top: 0;
    margin-bottom: 16px;
    padding-left: 24px;
}

.doc-content li {
    margin-bottom: 6px;
}

/* Components */
/* Step Block */
.step {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--pge-color-border);
    background-color: var(--pge-color-bg-sidebar);
}

.step-num {
    display: inline-block;
    border: none;
    background-color: var(--pge-color-primary-muted);
    color: #ffffff;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8em;
    margin-right: 8px;
    vertical-align: middle;
}

/* Images & Media */
.step img, .doc-content > img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--pge-color-border);
    border-radius: 4px;
    margin: 16px 0 8px;
}

.caption {
    font-size: 0.85rem;
    color: var(--pge-color-text-muted);
    margin-top: 8px;
    margin-bottom: 16px;
    text-align: left;
    display: block;
}

/* Information Boxes */
.note, .tip {
    margin: 24px 0;
    padding: 16px 20px;
    background-color: var(--pge-color-bg-sidebar);
    border-left: 4px solid var(--pge-color-border);
    font-size: 0.95rem;
}

.note {
    border-left-color: var(--pge-color-text-muted);
}

.tip {
    border-left-color: var(--pge-color-primary);
}

.note b, .tip b {
    color: var(--pge-color-text-heading);
    margin-right: 4px;
}

/* Keyboard and Code */
kbd, code {
    font-family: var(--pge-font-mono);
    font-size: 0.85em;
    background-color: var(--pge-color-bg-block);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    border: 1px solid var(--pge-color-border);
    color: var(--pge-color-text-main);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

th, td {
    padding: 12px 16px;
    border: 1px solid var(--pge-color-border);
    text-align: left;
}

th {
    background-color: var(--pge-color-bg-sidebar);
    font-weight: 600;
    color: var(--pge-color-text-heading);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .doc-sidebar {
        width: 240px;
    }
    .doc-content-wrapper {
        margin-left: 240px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .doc-header {
        position: relative;
    }
    .doc-container {
        flex-direction: column;
        margin-top: 0;
    }
    .doc-sidebar {
        position: static;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--pge-color-border);
        padding: 24px 0;
    }
    .doc-content-wrapper {
        margin-left: 0;
        padding: 32px 24px;
    }
}
