.ichijo-xsa-wrap,
.ichijo-xsa-page {
    color: #05284d;
}

.ichijo-xsa-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 14px 48px;
}

.ichijo-xsa-hero {
    padding: 28px 22px;
    border: 1px solid #dce8f2;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4fbff 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(6, 49, 95, 0.08);
}

.ichijo-xsa-hero-small {
    padding: 22px;
}

.ichijo-xsa-eyebrow {
    margin: 0 0 6px;
    color: #0fa4a7;
    font-weight: 700;
}

.ichijo-xsa-hero h1 {
    margin: 0 0 10px;
    color: #06315f;
    font-size: clamp(1.55rem, 3.8vw, 2.35rem);
    line-height: 1.35;
}

.ichijo-xsa-hero p {
    margin: 0;
    line-height: 1.85;
}

.ichijo-xsa-notice,
.ichijo-xsa-week-comment,
.ichijo-xsa-admin-draft-notice,
.ichijo-xsa-admin-note {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #dce8f2;
    border-radius: 10px;
    background: #f4fbff;
    line-height: 1.8;
}

.ichijo-xsa-admin-draft-notice {
    border-color: #ffcf9c;
    background: #fff7ed;
    color: #8a4300;
    font-weight: 700;
}

.ichijo-xsa-latest,
.ichijo-xsa-section {
    margin: 28px 0;
}

.ichijo-xsa-latest h2,
.ichijo-xsa-section h2 {
    margin: 0 0 14px;
    color: #06315f;
    font-size: 1.28rem;
}

.ichijo-xsa-latest a,
.ichijo-xsa-week-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dce8f2;
    border-radius: 12px;
    background: #fff;
    color: #06315f;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(6, 49, 95, 0.06);
}

.ichijo-xsa-week-list {
    display: grid;
    gap: 10px;
}

.ichijo-xsa-week-list span {
    color: #55718c;
    font-size: 0.9em;
}

.ichijo-xsa-card-grid {
    display: grid;
    gap: 18px;
}

.ichijo-xsa-card {
    padding: 18px;
    border: 1px solid #dce8f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(6, 49, 95, 0.08);
    scroll-margin-top: 90px;
}

.ichijo-xsa-card h2 {
    margin: 10px 0;
    color: #06315f;
    font-size: 1.22rem;
    line-height: 1.55;
}

.ichijo-xsa-card-meta,
.ichijo-xsa-badges,
.ichijo-xsa-tags,
.ichijo-xsa-buttons,
.ichijo-xsa-site-links,
.ichijo-xsa-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ichijo-xsa-category,
.ichijo-xsa-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eaf7fb;
    color: #06315f;
    font-size: 0.82rem;
    font-weight: 700;
}

.ichijo-xsa-badges span:nth-child(2) {
    background: #fff3e7;
    color: #9b4a00;
}

.ichijo-xsa-card-meta time {
    color: #55718c;
    font-size: 0.9rem;
}

.ichijo-xsa-total {
    margin: 0 0 12px;
    color: #55718c;
    font-weight: 700;
}

.ichijo-xsa-bars {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.ichijo-xsa-bar-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
    line-height: 1.45;
}

.ichijo-xsa-bar-head span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ichijo-xsa-bar-head strong {
    color: #1976b8;
    white-space: nowrap;
}

.ichijo-xsa-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf4fa;
}

.ichijo-xsa-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0fa4a7, #1976b8);
}

.ichijo-xsa-comment {
    margin: 14px 0;
    padding: 12px 14px;
    border-left: 4px solid #ff861f;
    border-radius: 8px;
    background: #fffaf4;
    line-height: 1.75;
}

.ichijo-xsa-tags a,
.ichijo-xsa-pill-list a {
    padding: 6px 10px;
    border: 1px solid #dce8f2;
    border-radius: 999px;
    background: #fff;
    color: #1976b8;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.ichijo-xsa-buttons {
    margin-top: 16px;
}

.ichijo-xsa-buttons a,
.ichijo-xsa-site-links a,
.ichijo-xsa-open-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #06315f;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.ichijo-xsa-buttons a:nth-child(2),
.ichijo-xsa-site-links a:nth-child(2) {
    background: #0fa4a7;
}

.ichijo-xsa-buttons a:nth-child(3),
.ichijo-xsa-site-links a:nth-child(3) {
    background: #ff861f;
}

.ichijo-xsa-muted {
    color: #55718c;
    font-size: 0.92rem;
}

.ichijo-xsa-related {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf4fa;
}

.ichijo-xsa-related ul,
.ichijo-xsa-toc {
    margin: 8px 0 0;
    padding-left: 1.2em;
}

.ichijo-xsa-toc li {
    margin: 8px 0;
}

.ichijo-xsa-toc a {
    color: #06315f;
    text-decoration: none;
}

.ichijo-xsa-toc span,
.ichijo-xsa-toc em {
    margin-right: 8px;
    color: #55718c;
    font-style: normal;
    font-size: 0.9em;
}

.ichijo-xsa-week-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0;
}

.ichijo-xsa-week-nav a {
    color: #1976b8;
    font-weight: 700;
    text-decoration: none;
}

.ichijo-xsa-empty {
    padding: 16px;
    border: 1px dashed #dce8f2;
    border-radius: 10px;
    background: #f4fbff;
}

.ichijo-xsa-admin-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    align-items: start;
}

.ichijo-xsa-admin-grid input[type="text"],
.ichijo-xsa-admin-grid input[type="url"],
.ichijo-xsa-admin-grid input[type="number"],
.ichijo-xsa-admin-grid input[type="date"],
.ichijo-xsa-admin-grid select,
.ichijo-xsa-admin-grid textarea,
.ichijo-xsa-copy-textarea {
    width: 100%;
}

.ichijo-xsa-choice-table {
    display: grid;
    gap: 8px;
}

.ichijo-xsa-choice-row {
    display: grid;
    grid-template-columns: 90px 1fr 100px;
    gap: 8px;
    align-items: center;
}

@media (max-width: 640px) {
    .ichijo-xsa-wrap {
        padding-inline: 10px;
    }

    .ichijo-xsa-hero,
    .ichijo-xsa-card {
        padding: 16px;
    }

    .ichijo-xsa-latest a,
    .ichijo-xsa-week-list a,
    .ichijo-xsa-bar-head,
    .ichijo-xsa-week-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .ichijo-xsa-buttons a,
    .ichijo-xsa-site-links a {
        width: 100%;
    }

    .ichijo-xsa-admin-grid,
    .ichijo-xsa-choice-row {
        grid-template-columns: 1fr;
    }
}
