/* ===== ドキュメント一覧 ===== */

.docs-index-header {
    margin-bottom: 2rem;
}
.docs-index-header h2 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: .3rem;
}
.docs-index-desc {
    color: #64748b;
    font-size: .95rem;
}

.docs-section {
    margin-bottom: 2.5rem;
}

.docs-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.05rem;
    font-weight: bold;
    color: #334155;
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e2e8f0;
}
.docs-category-icon {
    font-size: 1.2rem;
}
.docs-category-count {
    margin-left: auto;
    font-size: .8rem;
    font-weight: normal;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 9999px;
}

.docs-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.docs-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}
.docs-card:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 10px rgba(99, 102, 241, .12);
    transform: translateY(-1px);
}

.docs-card-title {
    font-size: .95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: .6rem;
    line-height: 1.4;
}
.docs-card:hover .docs-card-title {
    color: #6366f1;
}

.docs-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}
.docs-card-filename {
    font-size: .78rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.docs-card-date {
    font-size: .78rem;
    color: #94a3b8;
    flex-shrink: 0;
}

/* ===== パンくず ===== */

.docs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    font-size: .88rem;
    margin-bottom: 1.4rem;
    color: #64748b;
}
.docs-breadcrumb a {
    color: #6366f1;
    text-decoration: none;
}
.docs-breadcrumb a:hover {
    text-decoration: underline;
}
.docs-breadcrumb-sep {
    color: #cbd5e1;
}
.docs-breadcrumb-category {
    color: #475569;
}
.docs-breadcrumb-current {
    color: #1e293b;
    font-weight: 600;
}

/* ===== ドキュメント本文フッター ===== */

.docs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}
.docs-footer a {
    color: #6366f1;
    text-decoration: none;
    font-size: .9rem;
}
.docs-footer a:hover {
    text-decoration: underline;
}
.docs-footer-filename {
    font-size: .8rem;
    color: #94a3b8;
}

/* ===== Markdownレンダリング ===== */

.markdown-body {
    line-height: 1.85;
    color: #1e293b;
    max-width: 860px;
}
.markdown-body h1 {
    font-size: 1.8rem;
    font-weight: bold;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: .4em;
    margin: 1.5em 0 .8em;
}
.markdown-body h2 {
    font-size: 1.35rem;
    font-weight: bold;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: .3em;
    margin: 1.6em 0 .6em;
}
.markdown-body h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1.3em 0 .5em;
    color: #334155;
}
.markdown-body p {
    margin: .7em 0;
}
.markdown-body ul,
.markdown-body ol {
    padding-left: 1.8em;
    margin: .6em 0;
}
.markdown-body li {
    margin: .35em 0;
}
.markdown-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .88em;
    color: #e11d48;
}
.markdown-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.1em 1.3em;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.2em 0;
    font-size: .9em;
    line-height: 1.6;
}
.markdown-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: .93rem;
}
.markdown-body th,
.markdown-body td {
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    text-align: left;
}
.markdown-body th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}
.markdown-body tr:hover td {
    background: #fafafa;
}
.markdown-body blockquote {
    border-left: 4px solid #6366f1;
    padding: .5em 1em;
    margin: 1em 0;
    background: #f8fafc;
    color: #475569;
    border-radius: 0 6px 6px 0;
}
.markdown-body hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.8em 0;
}
.markdown-body a {
    color: #6366f1;
    text-decoration: underline;
}
.markdown-body a:hover {
    color: #4f46e5;
}
.markdown-body strong {
    font-weight: 700;
    color: #1e293b;
}
