/* 個別記事・お知らせ一覧・アーカイブ共通。他の固定ページには読み込まない。 */
.article-hero {
    height: 300px;
}

.article-page {
    background: #f5f6fa;
    color: #303443;
    padding: 0 32px 80px;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
    color: #555e70;
    font-size: 13px;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    min-width: 0;
    padding: 44px;
    border: 1px solid #d7dce6;
    border-radius: 16px;
    background: #fff;
}

.article-heading {
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid #d7dce6;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 20px;
    color: #555e70;
    font-size: 14px;
}

.article-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    background: #e9edf6;
    color: #161666;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.article-title {
    color: #161666;
    font-size: clamp(25px, 2.4vw, 34px);
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: 0.025em;
    overflow-wrap: anywhere;
}

.article-browse-link {
    display: none;
}

.article-body {
    font-size: 17px;
    line-height: 1.95;
    overflow-wrap: anywhere;
    display: flow-root;
}

.article-body > :first-child {
    margin-top: 0;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body figure,
.article-body blockquote {
    margin: 0 0 1.6em;
}

.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin: 2em 0 0.85em;
    color: #161666;
    font-weight: 700;
    line-height: 1.6;
    scroll-margin-top: 110px;
}

.article-body h2 {
    padding: 12px 16px;
    border-left: 4px solid #393982;
    background: #f1f3f8;
    color: #161666;
    font-size: 24px;
}

.article-body h3 {
    padding-bottom: 10px;
    border-bottom: 1px solid #cbd2e0;
    font-size: 21px;
}

.article-body h4,
.article-body h5,
.article-body h6 {
    font-size: 18px;
}

.article-body ul,
.article-body ol {
    padding-left: 1.6em;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li + li {
    margin-top: 0.5em;
}

.article-body li > ul,
.article-body li > ol {
    margin: 0.5em 0;
}

.article-body a:not(.wp-element-button) {
    color: #242484;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.article-body a:hover {
    text-decoration-thickness: 2px;
}

.article-body img,
.article-body video {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.article-body figure,
.article-body .wp-caption,
.article-body iframe {
    max-width: 100%;
}

.article-body figcaption,
.article-body .wp-caption-text {
    margin-top: 8px;
    color: #555e70;
    font-size: 14px;
    line-height: 1.7;
}

.article-body blockquote {
    padding: 20px 24px;
    border-left: 3px solid #a9b4d0;
    background: #f5f6fa;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body .wp-block-table {
    overflow-x: auto;
}

.article-body table {
    display: block;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin-bottom: 1.6em;
    font-size: 15px;
}

.article-body th,
.article-body td {
    min-width: 100px;
    padding: 14px 16px;
    border: 1px solid #d7dce6;
    text-align: left;
    vertical-align: top;
}

.article-body th {
    background: #e9edf6;
    color: #161666;
    font-weight: 700;
}

.article-body pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 16px;
    background: #f5f6fa;
}

.article-body hr {
    margin: 32px 0;
    border: 0;
    border-top: 1px solid #d7dce6;
}

.article-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.article-pages .post-page-numbers {
    padding: 8px 14px;
    border: 1px solid #d7dce6;
    border-radius: 6px;
}

.article-pages .current {
    background: #e9edf6;
    color: #161666;
}

.article-navigation {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #d7dce6;
    color: #161666;
    font-size: 14px;
}

.article-navigation__adjacent {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.article-navigation__adjacent a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.article-back {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px 32px;
    border: 1px solid #161666;
    border-radius: 8px;
    background: #fff;
    color: #161666;
    text-align: center;
}

.article-back:hover {
    background: #161666;
    color: #fff;
}

.article-sidebar {
    min-width: 0;
    display: grid;
    gap: 24px;
    scroll-margin-top: 110px;
}

.article-sidebar__section {
    padding: 24px;
    border: 1px solid #e0e4ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(32, 42, 75, 0.035);
}

.article-sidebar__section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: #252553;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
}

.article-sidebar__icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 9px;
    border: 1px solid #e1e6ef;
    border-radius: 12px;
    background: #f5f7fb;
    color: #626d8a;
}

.article-sidebar__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #69738a;
    font-family: sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
}

.article-sidebar__section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-sidebar__section a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    border-radius: 9px;
}

.article-sidebar__section a:hover {
    color: #161666;
    background: #f1f4f9;
}

.article-category:hover {
    background: #dce3f0;
    color: #161666;
}

.article-category-list li + li {
    margin-top: 8px;
}

.article-category-list a {
    padding: 11px 12px;
    border: 1px solid #e7eaf1;
}

.article-category-list .is-active {
    background: #edf1f7;
    border-color: #dce2ed;
    box-shadow: inset 3px 0 0 #7d89a7;
    color: #252553;
    font-weight: 700;
}

.article-count {
    flex-shrink: 0;
    margin-left: auto;
    min-width: 26px;
    padding: 1px 7px;
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    background: #fff;
    color: #626d8a;
    text-align: center;
    font-family: sans-serif;
    font-size: 11px;
    font-weight: 400;
}

.article-recent-list li + li {
    border-top: 1px solid #e7eaf1;
}

.article-recent-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12px;
    gap: 6px 10px;
    padding: 16px 2px;
}

.article-recent-list li:first-child a {
    padding-top: 2px;
}

.article-recent-list li:last-child a {
    padding-bottom: 2px;
}

.article-recent-list time {
    grid-column: 1;
    color: #626d8a;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.article-recent-list a > span {
    grid-column: 1;
}

.article-recent-list a::after {
    content: '';
    grid-column: 2;
    grid-row: 1 / 3;
    width: 6px;
    height: 6px;
    border-top: 1px solid #8993a9;
    border-right: 1px solid #8993a9;
    transform: rotate(45deg);
}

.article-sidebar__section .article-archive-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.article-archive-list a {
    justify-content: center;
    min-height: 44px;
    padding: 8px 6px;
    border: 1px solid #e1e6ef;
    color: #555e70;
    font-size: 12px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.article-sidebar-banners {
    grid-column: 1 / -1;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.article-sidebar-banners .promo-item {
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    border: 1px solid #e0e4ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(32, 42, 75, 0.04);
}

.article-sidebar-banners .promo-item a {
    display: block;
    height: auto;
    border-radius: inherit;
}

.article-sidebar-banners .promo-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
    object-fit: contain;
}

.article-sidebar-banners a:hover {
    opacity: 0.85;
}

@media (min-width: 601px) and (max-width: 1024px) {
    .article-sidebar-banners {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

.article-page a:focus-visible {
    outline: 3px solid #5555a2;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .article-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .article-browse-link {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        min-height: 44px;
        margin-top: 16px;
        color: #161666;
        font-size: 13px;
        text-decoration: underline;
        text-underline-offset: 4px;
    }
}

@media (max-width: 600px) {
    .article-hero {
        height: 200px;
    }

    .article-page {
        padding: 0 16px 48px;
    }

    .article-breadcrumb {
        gap: 8px;
        padding: 18px 0;
        font-size: 12px;
    }

    .article-card {
        padding: 26px 20px;
        border-radius: 12px;
    }

    .article-heading {
        padding-bottom: 20px;
        margin-bottom: 24px;
    }

    .article-meta {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .article-title {
        font-size: 25px;
        line-height: 1.6;
    }

    .article-body {
        font-size: 16px;
        line-height: 1.95;
    }

    .article-body h2 {
        font-size: 21px;
        padding: 10px 12px;
    }

    .article-body h3 {
        font-size: 19px;
    }

    .article-body th,
    .article-body td {
        padding: 10px 12px;
    }

    .article-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .article-sidebar__section {
        padding: 22px;
    }

    .article-sidebar__section a {
        font-size: 15px;
    }

    .article-archive-list a {
        font-size: 13px;
    }
}

/* お知らせ一覧・カテゴリー・年月別アーカイブ */
.news-index__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #69738a;
    font-family: sans-serif;
    font-size: 11px;
    letter-spacing: 0.16em;
}

.news-index__count {
    margin-top: 12px;
    color: #555e70;
    font-size: 14px;
}

.news-index__notice {
    padding: 20px 24px;
    margin-bottom: 8px;
    border: 1px solid #eadfdf;
    border-left: 3px solid #b78181;
    border-radius: 8px;
    background: #fcf8f8;
}

.news-index__notice h2 {
    margin: 0 0 8px;
    color: #805252;
    font-size: 16px;
    font-weight: 700;
}

.news-index__notice ul {
    margin: 0;
    padding-left: 1.3em;
    list-style: disc;
    color: #55515a;
    font-size: 14px;
    line-height: 1.9;
}

.news-index__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-index__item {
    padding: 30px 0;
    border-bottom: 1px solid #e0e4ed;
}

.news-index__item .article-meta {
    margin-bottom: 12px;
}

.news-index__entry {
    display: block;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.news-index__entry h2 {
    color: #252553;
    font-size: 22px;
    line-height: 1.65;
    font-weight: 700;
}

.news-index__entry p {
    margin: 12px 0 0;
    color: #555e70;
    font-size: 15px;
    line-height: 1.9;
}

.news-index__read {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 14px;
    color: #393982;
    font-size: 14px;
}

.news-index__entry:hover h2 {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.news-index__entry:hover .news-index__read {
    color: #161666;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.news-index__pagination {
    margin-top: 32px;
}

.news-index__pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-index__pagination .page-numbers:not(ul) {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #d7dce6;
    border-radius: 8px;
    color: #393982;
    font-size: 14px;
}

.news-index__pagination .page-numbers.current,
.news-index__pagination a:hover {
    background: #e9edf6;
    border-color: #a9b4d0;
}

.news-index__pagination .page-numbers.dots {
    border-color: transparent;
    padding-inline: 4px;
    min-width: 24px;
}

.news-index__empty {
    padding: 36px 0;
    color: #555e70;
    line-height: 1.9;
}

.news-index__back {
    margin-top: 32px;
}

@media (max-width: 600px) {
    .news-index__notice {
        padding: 16px;
    }

    .news-index__notice ul {
        font-size: 13px;
    }

    .news-index__item {
        padding: 24px 0;
    }

    .news-index__entry h2 {
        font-size: 19px;
    }

    .news-index__entry p {
        font-size: 14px;
    }
}
