/* static/css/xml_formatter.css */

.breadcrumbs {
    margin: 1rem 0 1.25rem;
    font-size: .875rem;
    text-align: left;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumbs li {
    display: flex;
    align-items: center;
}
.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin-left: .375rem;
    color: #666;
}
.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span[aria-current="page"] {
    color: #333;
    font-weight: 600;
}

.xmlf-page {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem 2.5rem;
    box-sizing: border-box;
    font-family: 'M PLUS 1p', 'Sawarabi Gothic', sans-serif;
    line-height: 1.7;
}
.xmlf-page h1 { font-size: 1.6rem; margin: 1.2rem 0 0.6rem; }
.xmlf-page h2 { font-size: 1.25rem; }
.xmlf-lead { color: #444; }

.xmlf-tool-panel {
    margin: 1.25rem 0 1.75rem;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(15, 23, 42, 0.08);
}

.xmlf-field {
    margin-bottom: 1rem;
}
.xmlf-field:last-child {
    margin-bottom: 0;
}
.xmlf-field > label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.4rem;
}
.xmlf-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: Consolas, Menlo, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0.75rem 0.9375rem;
    border: 0.0625rem solid #d6deeb;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #1f2a44;
    resize: vertical;
    tab-size: 4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.xmlf-textarea:focus {
    outline: none;
    border-color: #9eb8ef;
    box-shadow: 0 0 0 0.1875rem rgba(47, 106, 230, 0.18);
}
.xmlf-textarea--output {
    background: #f8fbff;
}

.xmlf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    background: #fbfdff;
    border: 0.0625rem solid #e3e9f4;
    border-radius: 0.75rem;
}
.xmlf-options__group {
    display: inline-flex;
    gap: 1rem;
}
.xmlf-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}
.xmlf-option select {
    font: inherit;
    padding: 0.3rem 0.5rem;
    border: 0.0625rem solid #d6deeb;
    border-radius: 0.5rem;
    background: #fff;
}
.xmlf-option select:disabled {
    opacity: 0.5;
}

.xmlf-error {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #b42318;
    background: #fffafa;
    border: 0.0625rem solid #f1c0c0;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9375rem;
    font-size: 0.875rem;
    margin: 0 0 1rem;
    overflow-wrap: anywhere;
}
.xmlf-error::before {
    content: "⚠";
    flex: 0 0 auto;
}
.xmlf-error[hidden] {
    display: none;
}

.xmlf-copy-btn {
    display: inline-flex;
    align-items: center;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    margin-top: 0.6rem;
    border: 0.0625rem solid #2f6ae6;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #2f6ae6;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.xmlf-copy-btn:hover {
    background: #eef4ff;
    transform: translateY(-0.0625rem);
}
.xmlf-copy-btn.is-copied {
    background: #2f6ae6;
    border-color: #2f6ae6;
    color: #fff;
}

.xmlf-faq dt {
    font-weight: bold;
    margin-top: 0.8rem;
}
.xmlf-faq dd {
    margin: 0.2rem 0 0;
    color: #444;
}

/* 関連コラムのカード */
.xmlf-other-tools {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.xmlf-other-tools__card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #d9deea;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #222;
    background: #fff;
}
.xmlf-other-tools__card:hover { background: #f7f8fb; }
.xmlf-other-tools__title { font-weight: 600; }
.xmlf-other-tools__more { color: #1d4ed8; font-size: 0.875rem; white-space: nowrap; }
