@charset "utf-8";

/**
 * お知らせ詳細（single.php / 通常投稿）専用スタイル
 * 他ページには enqueue されない想定。念のため .single-news-page でスコープ。
 */

.single-news-page {
    --single-ink: #121212;
    --single-muted: #4a5565;
    --single-line: rgba(18, 18, 18, .16);
    --single-paper: #f1f1f1;
    --single-surface: #fff;
    --single-accent: #121212;
    --single-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Meta（カテゴリ・タグ） ---------- */

.single-news-page .single-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 40px;
}

.single-news-page .single-article__terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-news-page .single-article__terms a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--single-line);
    background: var(--single-paper);
    color: var(--single-ink);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1;
    transition: background-color .3s var(--single-ease), color .3s var(--single-ease), border-color .3s var(--single-ease);
}

.single-news-page .single-article__terms a:hover {
    background: var(--single-ink);
    border-color: var(--single-ink);
    color: #fff;
}

.single-news-page .single-article__terms--tags a {
    background: transparent;
}

/* ---------- 本文ベース ---------- */

.single-news-page .single-article__body {
    color: #2d3032;
    font-size: 16px;
    line-height: 2.1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.single-news-page .single-article__body > * + * {
    margin-top: 1.8em;
}

.single-news-page .single-article__body > *:first-child {
    margin-top: 0;
}

.single-news-page .single-article__body :where(p, li, td, th, figcaption, cite) {
    font-feature-settings: "palt";
}

.single-news-page .single-article__body a {
    color: var(--single-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .28em;
    transition: opacity .3s var(--single-ease);
}

.single-news-page .single-article__body a:hover {
    opacity: .62;
}

.single-news-page .single-article__body strong,
.single-news-page .single-article__body b {
    color: var(--single-ink);
    font-weight: 700;
}

.single-news-page .single-article__body em,
.single-news-page .single-article__body i {
    font-style: italic;
}

.single-news-page .single-article__body small {
    font-size: .875em;
    color: var(--single-muted);
}

.single-news-page .single-article__body mark {
    background: rgba(18, 18, 18, .08);
    color: inherit;
    padding: .05em .2em;
}

.single-news-page .single-article__body del,
.single-news-page .single-article__body s {
    color: var(--single-muted);
}

.single-news-page .single-article__body sub,
.single-news-page .single-article__body sup {
    font-size: .75em;
    line-height: 1;
}

/* ---------- 見出し ---------- */

.single-news-page .single-article__body :where(h1, h2, h3, h4, h5, h6) {
    color: var(--single-ink);
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: .02em;
}

.single-news-page .single-article__body h1 {
    margin-top: 2.6em;
    font-size: 34px;
}

.single-news-page .single-article__body h2 {
    margin-top: 2.4em;
    padding-bottom: .35em;
    border-bottom: 1px solid var(--single-line);
    font-size: 30px;
}

.single-news-page .single-article__body h3 {
    margin-top: 2em;
    font-size: 23px;
}

.single-news-page .single-article__body h4 {
    margin-top: 1.8em;
    font-size: 19px;
}

.single-news-page .single-article__body h5,
.single-news-page .single-article__body h6 {
    margin-top: 1.6em;
    font-size: 16px;
}

.single-news-page .single-article__body :where(h1, h2, h3, h4, h5, h6) + * {
    margin-top: .9em;
}

/* ---------- リスト ---------- */

.single-news-page .single-article__body :where(ul, ol) {
    margin: 0;
    padding-left: 1.4em;
}

.single-news-page .single-article__body ul {
    list-style: disc;
}

.single-news-page .single-article__body ol {
    list-style: decimal;
}

.single-news-page .single-article__body :where(ul, ol) :where(ul, ol) {
    margin-top: .55em;
}

.single-news-page .single-article__body li + li {
    margin-top: .45em;
}

.single-news-page .single-article__body li > :where(ul, ol) {
    margin-top: .45em;
}

/* ---------- 引用 ---------- */

.single-news-page .single-article__body blockquote,
.single-news-page .single-article__body .wp-block-quote,
.single-news-page .single-article__body .wp-block-pullquote {
    margin: 2.2em 0;
    padding: 28px 28px 28px 32px;
    border-left: 3px solid var(--single-ink);
    background: var(--single-paper);
    color: var(--single-ink);
}

.single-news-page .single-article__body blockquote p,
.single-news-page .single-article__body .wp-block-quote p {
    margin: 0;
}

.single-news-page .single-article__body blockquote p + p,
.single-news-page .single-article__body .wp-block-quote p + p {
    margin-top: 1em;
}

.single-news-page .single-article__body blockquote cite,
.single-news-page .single-article__body .wp-block-quote cite,
.single-news-page .single-article__body .wp-block-pullquote cite {
    display: block;
    margin-top: 1em;
    color: var(--single-muted);
    font-size: 13px;
    font-style: normal;
}

/* ---------- 区切り線 ---------- */

.single-news-page .single-article__body hr,
.single-news-page .single-article__body .wp-block-separator {
    width: 100%;
    height: 0;
    margin: 2.8em 0;
    border: 0;
    border-top: 1px solid var(--single-line);
    background: transparent;
}

.single-news-page .single-article__body .wp-block-separator.is-style-wide {
    border-top-width: 2px;
}

.single-news-page .single-article__body .wp-block-separator.is-style-dots {
    border: 0;
    text-align: center;
    height: auto;
    line-height: 1;
}

.single-news-page .single-article__body .wp-block-separator.is-style-dots::before {
    content: "···";
    letter-spacing: .8em;
    color: var(--single-muted);
}

/* ---------- 画像・キャプション ---------- */

.single-news-page .single-article__body :where(img, video, iframe, embed, object) {
    max-width: 100%;
    height: auto;
}

.single-news-page .single-article__body figure,
.single-news-page .single-article__body .wp-caption,
.single-news-page .single-article__body .wp-block-image {
    margin: 2.2em 0;
}

.single-news-page .single-article__body figure img,
.single-news-page .single-article__body .wp-caption img,
.single-news-page .single-article__body .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
}

.single-news-page .single-article__body figcaption,
.single-news-page .single-article__body .wp-caption-text,
.single-news-page .single-article__body .wp-element-caption {
    margin-top: .75em;
    color: var(--single-muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.single-news-page .single-article__body .alignleft,
.single-news-page .single-article__body .wp-block-image.alignleft {
    float: left;
    margin: .4em 1.6em 1.2em 0;
    max-width: min(46%, 360px);
}

.single-news-page .single-article__body .alignright,
.single-news-page .single-article__body .wp-block-image.alignright {
    float: right;
    margin: .4em 0 1.2em 1.6em;
    max-width: min(46%, 360px);
}

.single-news-page .single-article__body .aligncenter,
.single-news-page .single-article__body .wp-block-image.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.single-news-page .single-article__body .alignwide {
    max-width: min(1040px, 100%);
}

.single-news-page .single-article__body .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.single-news-page .single-article__body::after {
    content: "";
    display: table;
    clear: both;
}

/* ---------- ギャラリー ---------- */

.single-news-page .single-article__body .gallery,
.single-news-page .single-article__body .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 2.2em 0;
}

.single-news-page .single-article__body .gallery-columns-3,
.single-news-page .single-article__body .wp-block-gallery.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.single-news-page .single-article__body .gallery-columns-4,
.single-news-page .single-article__body .wp-block-gallery.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.single-news-page .single-article__body .gallery-item,
.single-news-page .single-article__body .wp-block-image {
    margin: 0;
}

.single-news-page .single-article__body .gallery img,
.single-news-page .single-article__body .wp-block-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ---------- テーブル ---------- */

.single-news-page .single-article__body .wp-block-table,
.single-news-page .single-article__body .table-scroll {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.single-news-page .single-article__body table {
    width: 100%;
    border-collapse: collapse;
    background: var(--single-surface);
    font-size: 15px;
    line-height: 1.7;
}

.single-news-page .single-article__body th,
.single-news-page .single-article__body td {
    padding: 14px 16px;
    border: 1px solid var(--single-line);
    text-align: left;
    vertical-align: top;
}

.single-news-page .single-article__body thead th,
.single-news-page .single-article__body th {
    background: var(--single-paper);
    color: var(--single-ink);
    font-weight: 700;
}

.single-news-page .single-article__body tbody tr:nth-child(even) td {
    background: rgba(241, 241, 241, .45);
}

/* ---------- コード ---------- */

.single-news-page .single-article__body code,
.single-news-page .single-article__body kbd,
.single-news-page .single-article__body samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
}

.single-news-page .single-article__body :not(pre) > code {
    padding: .15em .4em;
    background: var(--single-paper);
    border: 1px solid var(--single-line);
    color: var(--single-ink);
}

.single-news-page .single-article__body pre,
.single-news-page .single-article__body .wp-block-code,
.single-news-page .single-article__body .wp-block-preformatted {
    max-width: 100%;
    margin: 2em 0;
    padding: 20px 22px;
    overflow-x: auto;
    background: #1a1a1a;
    color: #f5f5f5;
    font-size: 13px;
    line-height: 1.8;
}

.single-news-page .single-article__body pre code {
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: inherit;
}

/* ---------- ボタン・埋め込み ---------- */

.single-news-page .single-article__body .wp-block-button__link,
.single-news-page .single-article__body .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    background: var(--single-ink);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    letter-spacing: .04em;
    transition: opacity .3s var(--single-ease);
}

.single-news-page .single-article__body .wp-block-button__link:hover,
.single-news-page .single-article__body .button:hover {
    opacity: .78;
}

.single-news-page .single-article__body .wp-block-embed,
.single-news-page .single-article__body .wp-block-video,
.single-news-page .single-article__body .wp-block-audio {
    margin: 2.2em 0;
}

.single-news-page .single-article__body .wp-block-embed__wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
}

.single-news-page .single-article__body .wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ---------- 目次（主要プラグイン共通） ---------- */

.single-news-page .single-article__body :is(
    .toc,
    #toc,
    .toc-container,
    .table-of-contents,
    .wp-block-table-of-contents,
    .ez-toc,
    .ez-toc-container,
    .ez-toc-v2_0_57-container,
    nav.ez-toc-container,
    .lwptoc,
    .lwptoc-container,
    #toc_container,
    .toc_wrap,
    .rank-math-block-toc,
    .wp-block-rank-math-toc-block,
    .tocbot,
    .post-toc
) {
    margin: 2.4em 0 2.8em;
    padding: 28px 28px 24px;
    background: var(--single-surface);
    border: 1px solid var(--single-line);
    box-shadow: 0 10px 28px rgba(18, 18, 18, .04);
}

.single-news-page .single-article__body :is(
    .toc,
    #toc,
    .toc-container,
    .table-of-contents,
    .wp-block-table-of-contents,
    .ez-toc,
    .ez-toc-container,
    .lwptoc,
    .lwptoc-container,
    #toc_container,
    .toc_wrap,
    .rank-math-block-toc,
    .wp-block-rank-math-toc-block,
    .post-toc
) :is(.toc-title, .ez-toc-title, .lwptoc_header, .lwptoc__header, .toc_title, h2, h3, p.toc-title) {
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--single-line);
    color: var(--single-ink);
    font-family: var(--font-en, "Futura PT", "Futura", sans-serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.single-news-page .single-article__body :is(
    .toc,
    #toc,
    .toc-container,
    .table-of-contents,
    .wp-block-table-of-contents,
    .ez-toc,
    .ez-toc-container,
    .lwptoc,
    #toc_container,
    .toc_wrap,
    .rank-math-block-toc,
    .wp-block-rank-math-toc-block,
    .post-toc
) :is(ul, ol) {
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-news-page .single-article__body :is(
    .toc,
    #toc,
    .toc-container,
    .table-of-contents,
    .wp-block-table-of-contents,
    .ez-toc,
    .ez-toc-container,
    .lwptoc,
    #toc_container,
    .toc_wrap,
    .rank-math-block-toc,
    .wp-block-rank-math-toc-block,
    .post-toc
) li {
    margin: 0;
    padding: 0;
}

.single-news-page .single-article__body :is(
    .toc,
    #toc,
    .toc-container,
    .table-of-contents,
    .wp-block-table-of-contents,
    .ez-toc,
    .ez-toc-container,
    .lwptoc,
    #toc_container,
    .toc_wrap,
    .rank-math-block-toc,
    .wp-block-rank-math-toc-block,
    .post-toc
) li + li {
    margin-top: 2px;
}

.single-news-page .single-article__body :is(
    .toc,
    #toc,
    .toc-container,
    .table-of-contents,
    .wp-block-table-of-contents,
    .ez-toc,
    .ez-toc-container,
    .lwptoc,
    #toc_container,
    .toc_wrap,
    .rank-math-block-toc,
    .wp-block-rank-math-toc-block,
    .post-toc
) a {
    display: block;
    padding: 10px 4px;
    color: var(--single-ink);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.7;
    border-bottom: 1px solid transparent;
    transition: padding-left .35s var(--single-ease), opacity .3s var(--single-ease), border-color .3s var(--single-ease);
}

.single-news-page .single-article__body :is(
    .toc,
    #toc,
    .toc-container,
    .table-of-contents,
    .wp-block-table-of-contents,
    .ez-toc,
    .ez-toc-container,
    .lwptoc,
    #toc_container,
    .toc_wrap,
    .rank-math-block-toc,
    .wp-block-rank-math-toc-block,
    .post-toc
) a:hover {
    padding-left: 8px;
    opacity: .72;
    border-bottom-color: var(--single-line);
}

.single-news-page .single-article__body :is(
    .toc,
    #toc,
    .toc-container,
    .table-of-contents,
    .ez-toc,
    .ez-toc-container,
    .lwptoc,
    #toc_container,
    .toc_wrap,
    .rank-math-block-toc,
    .post-toc
) ul ul,
.single-news-page .single-article__body :is(
    .toc,
    #toc,
    .toc-container,
    .table-of-contents,
    .ez-toc,
    .ez-toc-container,
    .lwptoc,
    #toc_container,
    .toc_wrap,
    .rank-math-block-toc,
    .post-toc
) ol ol {
    margin: 4px 0 8px;
    padding-left: 1em;
}

.single-news-page .single-article__body :is(
    .ez-toc-toggle,
    .toc-toggle,
    .lwptoc_toggle,
    .lwptoc__toggle
) {
    color: var(--single-muted);
    font-size: 12px;
    text-decoration: none;
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 1023px) {
    .single-news-page .single-article__body {
        font-size: 15px;
        line-height: 2;
    }

    .single-news-page .single-article__body h1 {
        font-size: 28px;
    }

    .single-news-page .single-article__body h2 {
        font-size: 25px;
    }

    .single-news-page .single-article__body h3 {
        font-size: 20px;
    }

    .single-news-page .single-article__body h4 {
        font-size: 17px;
    }

    .single-news-page .single-article__body blockquote,
    .single-news-page .single-article__body .wp-block-quote,
    .single-news-page .single-article__body .wp-block-pullquote {
        padding: 22px 18px 22px 20px;
    }

    .single-news-page .single-article__body .gallery-columns-4,
    .single-news-page .single-article__body .wp-block-gallery.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-news-page .single-article__body :is(
        .toc,
        #toc,
        .toc-container,
        .table-of-contents,
        .wp-block-table-of-contents,
        .ez-toc,
        .ez-toc-container,
        .lwptoc,
        .lwptoc-container,
        #toc_container,
        .toc_wrap,
        .rank-math-block-toc,
        .wp-block-rank-math-toc-block,
        .post-toc
    ) {
        padding: 22px 18px 18px;
    }
}

@media (max-width: 767px) {
    .single-news-page .single-article__meta {
        margin-bottom: 28px;
    }

    .single-news-page .single-article__body h1 {
        font-size: 26px;
    }

    .single-news-page .single-article__body h2 {
        font-size: 23px;
    }

    .single-news-page .single-article__body h3 {
        font-size: 19px;
    }

    .single-news-page .single-article__body .alignleft,
    .single-news-page .single-article__body .alignright,
    .single-news-page .single-article__body .wp-block-image.alignleft,
    .single-news-page .single-article__body .wp-block-image.alignright {
        float: none;
        display: block;
        margin: 1.6em auto;
        max-width: 100%;
    }

    .single-news-page .single-article__body .alignfull {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .single-news-page .single-article__body .gallery,
    .single-news-page .single-article__body .wp-block-gallery,
    .single-news-page .single-article__body .gallery-columns-3,
    .single-news-page .single-article__body .wp-block-gallery.columns-3,
    .single-news-page .single-article__body .gallery-columns-4,
    .single-news-page .single-article__body .wp-block-gallery.columns-4 {
        grid-template-columns: 1fr;
    }

    .single-news-page .single-article__body table,
    .single-news-page .single-article__body pre {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    .single-news-page .single-article__body th,
    .single-news-page .single-article__body td {
        padding: 12px;
        font-size: 14px;
        white-space: nowrap;
    }
}
