@charset "UTF-8";

/* ========================================
   投稿個別ページ専用
======================================== */

html {
    font-size: 62.5%;
}

body.news-custom-page.news-single-page {
    margin: 0;
    background: #f7f9fc;
    color: #333;
    font-family: "Noto Sans JP", sans-serif;
}

body.news-custom-page.news-single-page *,
body.news-custom-page.news-single-page *::before,
body.news-custom-page.news-single-page *::after {
    box-sizing: border-box;
}

body.news-custom-page.news-single-page img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

body.news-custom-page.news-single-page a {
    transition: opacity 0.2s ease;
}

/* ========================================
   ヘッダー
======================================== */

body.news-custom-page.news-single-page header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e3e9f3;
    padding: 0 40px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

body.news-custom-page.news-single-page header .inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    height: 80px;
}

body.news-custom-page.news-single-page header .logo {
    margin: 0;
    padding: 0;
    line-height: 1;
    flex: 0 0 auto;
}

body.news-custom-page.news-single-page header .logo a {
    display: block;
}

body.news-custom-page.news-single-page header .logo img {
    display: block;
    width: auto;
    height: 60px;
    max-width: none;
}

body.news-custom-page.news-single-page header .menu-btn {
    display: none;
}

body.news-custom-page.news-single-page header .header-nav {
    display: block;
    margin-left: auto;
}

body.news-custom-page.news-single-page header .header-nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.news-custom-page.news-single-page header .header-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.news-custom-page.news-single-page header .header-nav a {
    display: block;
    color: #333 !important;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.news-custom-page.news-single-page header .header-nav a:hover {
    opacity: 0.7;
}

/* ========================================
   メイン
======================================== */

.news-single-main {
    display: block;
    padding-top: 80px;
}

.news-single-page .news-single-container {
    width: min(800px, calc(100% - 48px));
    margin: 40px auto 72px;
}

.news-single-page .news-single-header {
    margin: 0 0 24px;
}

.news-single-page .news-single-title {
    margin: 0 0 12px;
    font-size: 2.4rem;
    line-height: 1.5;
    font-weight: 700;
    color: #2f3e55;
    letter-spacing: 0.02em;
}

.news-single-page .news-single-meta {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #6b7a90;
    text-align: right;
}

.news-single-page .news-single-thumbnail {
    margin: 0 0 32px;
}

.news-single-page .news-single-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ========================================
   本文
======================================== */

.news-single-page .entry-content {
    font-size: 1.6rem;
    line-height: 2;
    color: #444;
    word-break: break-word;
    overflow-wrap: anywhere;
}

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

.news-single-page .entry-content p {
    margin: 0 0 1.6em;
}

.news-single-page .entry-content h1,
.news-single-page .entry-content h2,
.news-single-page .entry-content h3,
.news-single-page .entry-content h4,
.news-single-page .entry-content h5,
.news-single-page .entry-content h6 {
    font-weight: 700;
    color: #2f3e55;
}

.news-single-page .entry-content h1 {
    margin: 2.2em 0 0.8em;
    font-size: 2.2rem;
    line-height: 1.5;
}

.news-single-page .entry-content h2 {
    margin: 2.4em 0 0.9em;
    padding-bottom: 10px;
    font-size: 2rem;
    line-height: 1.5;
    color: #1f5fbf;
    border-bottom: 1px solid #dbe3f1;
}

.news-single-page .entry-content h3 {
    margin: 2em 0 0.8em;
    padding-left: 12px;
    font-size: 1.8rem;
    line-height: 1.6;
    border-left: 4px solid #6f8fcf;
}

.news-single-page .entry-content h4 {
    margin: 1.8em 0 0.7em;
    font-size: 1.7rem;
    line-height: 1.6;
}

.news-single-page .entry-content h5 {
    margin: 1.6em 0 0.6em;
    font-size: 1.6rem;
    line-height: 1.6;
}

.news-single-page .entry-content h6 {
    margin: 1.5em 0 0.6em;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #6b7a90;
}

.news-single-page .entry-content ul,
.news-single-page .entry-content ol {
    margin: 0 0 1.6em 1.4em;
    padding: 0;
}

.news-single-page .entry-content li {
    margin: 0 0 0.5em;
    font-size: 1.6rem;
    line-height: 1.9;
}

.news-single-page .entry-content a {
    color: #1f5fbf;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.news-single-page .entry-content a:hover {
    opacity: 0.8;
}

.news-single-page .entry-content blockquote {
    margin: 2em 0;
    padding: 16px 18px;
    background: #f8fafc;
    border-left: 4px solid #6f8fcf;
    color: #555;
}

.news-single-page .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.news-single-page .entry-content table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    font-size: 1.5rem;
    line-height: 1.8;
}

.news-single-page .entry-content th,
.news-single-page .entry-content td {
    padding: 10px 12px;
    border: 1px solid #dbe3f1;
    vertical-align: top;
}

.news-single-page .entry-content th {
    background: #f8fafc;
    font-weight: 700;
}

.news-single-page .entry-content figure {
    margin: 2em 0;
}

.news-single-page .entry-content figcaption {
    margin-top: 8px;
    font-size: 1.3rem;
    line-height: 1.7;
    color: #6b7a90;
    text-align: center;
}

.news-single-page .entry-content hr {
    margin: 2.4em 0;
    border: 0;
    border-top: 1px solid #e3e9f3;
}

/* ========================================
   TOC
======================================== */

.news-single-page .entry-content .toc,
.news-single-page .entry-content #toc_container,
.news-single-page .entry-content .table-of-contents,
.news-single-page .entry-content .ez-toc-container {
    width: 100%;
    max-width: 420px;
    margin: 2.4em auto;
    padding: 18px 22px;
    background: #fbfcfe;
    border: 1px solid #dbe3f1;
    border-radius: 6px;
    box-shadow: none;
}

.news-single-page .entry-content .toc_title,
.news-single-page .entry-content #toc_container .toc_title,
.news-single-page .entry-content .ez-toc-title {
    margin: 0 0 12px;
    font-size: 1.6rem;
    line-height: 1.6;
    font-weight: 700;
    color: #2f3e55;
    text-align: center;
}

.news-single-page .entry-content .toc_list,
.news-single-page .entry-content #toc_container ul,
.news-single-page .entry-content .ez-toc-list {
    margin: 0;
    padding-left: 1.3em;
}

.news-single-page .entry-content .toc_list li,
.news-single-page .entry-content #toc_container li,
.news-single-page .entry-content .ez-toc-list li {
    margin-bottom: 0.4em;
    font-size: 1.5rem;
    line-height: 1.8;
}

.news-single-page .entry-content .toc_list a,
.news-single-page .entry-content #toc_container a,
.news-single-page .entry-content .ez-toc-list a {
    color: #2f3e55;
    text-decoration: none;
}

.news-single-page .entry-content .toc_list a:hover,
.news-single-page .entry-content #toc_container a:hover,
.news-single-page .entry-content .ez-toc-list a:hover {
    color: #1f5fbf;
    text-decoration: underline;
}

.news-single-page .entry-content .toc_list ul,
.news-single-page .entry-content #toc_container ul ul,
.news-single-page .entry-content .ez-toc-list ul {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

/* ========================================
   前後記事リンク
======================================== */

.news-single-page .news-single-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid #e3e9f3;
}

.news-single-page .news-single-prev,
.news-single-page .news-single-next {
    flex: 1 1 0;
    min-width: 0;
}

.news-single-page .news-single-prev {
    text-align: left;
}

.news-single-page .news-single-next {
    text-align: right;
}

.news-single-page .news-single-nav a {
    display: inline-block;
    max-width: 100%;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #1f5fbf;
    text-decoration: none;
}

.news-single-page .news-single-nav a:hover {
    text-decoration: underline;
}

/* ========================================
   フッター（rem基準に補正）
======================================== */

body.news-custom-page.news-single-page #footer {
    background: #2f3f56 !important;
    margin-top: 6.4rem;
    padding: 5.6rem 0 2.4rem;
    color: #fff;
}

body.news-custom-page.news-single-page #footer .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: calc(100% - 4.8rem);
    max-width: 120rem;
    margin: 0 auto;
    padding: 0;
}

body.news-custom-page.news-single-page #footer .footer-left {
    flex: 0 0 30rem;
    text-align: left;
    margin-right: 4.8rem;
}

body.news-custom-page.news-single-page #footer .footer-left img {
    width: 25rem;
    margin-bottom: 2rem;
}

body.news-custom-page.news-single-page #footer .footer-name {
    margin: 0 0 1.4rem;
    line-height: 1.9;
    font-size: 1.4rem;
}

body.news-custom-page.news-single-page #footer .footer-address {
    margin: 0;
    font-style: normal;
    line-height: 2.1;
    font-size: 1.3rem;
    color: #c9d3e3;
    white-space: nowrap;
}

body.news-custom-page.news-single-page #footer .footer-nav {
    display: flex;
    align-items: flex-start;
    gap: 3.6rem;
    flex: 1 1 auto;
    justify-content: flex-start;
}

body.news-custom-page.news-single-page #footer .footer-nav-group {
    text-align: left;
}

body.news-custom-page.news-single-page #footer .footer-nav-title {
    margin: 0 0 1.2rem;
    font-size: 1.5rem;
}

body.news-custom-page.news-single-page #footer .footer-nav-group.single > ul > li > a {
    display: block;
    margin: 0 0 1.2rem;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.6;
    color: #fff !important;
}

body.news-custom-page.news-single-page #footer .footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.news-custom-page.news-single-page #footer .footer-nav li {
    margin-bottom: 0.6rem;
}

body.news-custom-page.news-single-page #footer .footer-nav a {
    font-size: 1.4rem;
    color: #fff !important;
    text-decoration: none !important;
}

body.news-custom-page.news-single-page #footer .footer-nav a:hover {
    opacity: 0.7;
}

/* ★ここが重要（©中央寄せ） */
body.news-custom-page.news-single-page #footer .footer-copy {
    width: 100%;
    max-width: 120rem;
    margin: 4rem auto 0;
    padding: 0 2.4rem;
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #c9d3e3;
}

/* ========================================
   記事タイトルの固定解除（ヘッダー被り防止）
======================================== */

/* タイトル・ヘッダー周りの固定をすべて解除 */
.news-single-page .news-single-header,
.news-single-page .news-single-title,
.news-single-page .entry-title,
.news-single-page .post-title,
.news-single-page .wp-block-post-title {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    transform: none !important;
}

/* stickyクラスが付与されるテーマ対策 */
.news-single-page .news-single-header.is-sticky,
.news-single-page .news-single-title.is-sticky,
.news-single-page .entry-title.is-sticky,
.news-single-page .post-title.is-sticky,
.news-single-page .wp-block-post-title.is-sticky {
    position: static !important;
}

/* 念のため：スクロール時の重なり防止 */
.news-single-page .news-single-container {
    position: relative;
    z-index: 1;
}

/* ========================================
   スマホ
======================================== */

@media screen and (max-width: 767px) {
    body.news-custom-page.news-single-page header {
        padding: 0 20px;
    }
    body.news-custom-page.news-single-page header .inner {
        height: 64px;
        min-height: 64px;
    }

    body.news-custom-page.news-single-page header .logo img {
        height: 42px;
    }

    body.news-custom-page.news-single-page header .menu-btn {
        display: block;
        width: 44px;
        height: 44px;
        margin: 0 0 0 auto;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        position: relative;
        z-index: 1200;
    }

    body.news-custom-page.news-single-page header .menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px auto;
        background: #333;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    body.news-custom-page.news-single-page.news-menu-open header .menu-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.news-custom-page.news-single-page.news-menu-open header .menu-btn span:nth-child(2) {
        opacity: 0;
    }

    body.news-custom-page.news-single-page.news-menu-open header .menu-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    body.news-custom-page.news-single-page header .header-nav {
        display: block;
        position: fixed;
        top: 64px;
        right: 0;
        width: min(320px, 78vw);
        height: calc(100vh - 64px);
        margin-left: 0;
        padding: 24px 20px;
        background: #fff;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1100;
        overflow-y: auto;
    }

    body.news-custom-page.news-single-page.news-menu-open header .header-nav {
        transform: translateX(0);
    }

    body.news-custom-page.news-single-page header .header-nav ul {
        display: block;
        margin: 0;
        padding: 0;
    }

    body.news-custom-page.news-single-page header .header-nav li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e3e9f3;
    }

    body.news-custom-page.news-single-page header .header-nav a {
        display: block;
        padding: 16px 4px;
        font-size: 1.6rem;
        line-height: 1.6;
    }

    .news-single-page .news-single-container {
        width: calc(100% - 32px);
        margin: 24px auto 48px;
    }

    .news-single-page .news-single-header {
        margin-bottom: 18px;
    }
	
	.news-single-main {
        padding-top: 64px;
    }

    .news-single-page .news-single-title {
        margin-bottom: 8px;
        font-size: 2rem;
        line-height: 1.45;
    }

    .news-single-page .news-single-meta {
        font-size: 1.2rem;
    }

    .news-single-page .news-single-thumbnail {
        margin-bottom: 24px;
    }

    .news-single-page .entry-content {
        font-size: 1.5rem;
        line-height: 1.95;
    }

    .news-single-page .entry-content h1 {
        font-size: 1.9rem;
    }

    .news-single-page .entry-content h2 {
        font-size: 1.8rem;
    }

    .news-single-page .entry-content h3 {
        font-size: 1.7rem;
    }

    .news-single-page .entry-content h4 {
        font-size: 1.6rem;
    }

    .news-single-page .entry-content h5,
    .news-single-page .entry-content h6 {
        font-size: 1.5rem;
    }

    .news-single-page .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .news-single-page .entry-content .toc,
    .news-single-page .entry-content #toc_container,
    .news-single-page .entry-content .table-of-contents,
    .news-single-page .entry-content .ez-toc-container {
        max-width: 100%;
        padding: 16px;
        margin: 2em 0;
    }

    .news-single-page .news-single-nav {
        display: block;
        margin-top: 36px;
        padding-top: 16px;
    }

    .news-single-page .news-single-next {
        margin-top: 12px;
        text-align: left;
    }

    body.news-custom-page.news-single-page #footer {
        margin-top: 4.8rem;
        padding: 4.4rem 0 2rem;
    }

    body.news-custom-page.news-single-page #footer .footer-inner {
        display: block;
        padding: 0 1.6rem;
        width: auto;
    }

    body.news-custom-page.news-single-page #footer .footer-left {
        margin-right: 0;
        margin-bottom: 3.2rem;
    }

    body.news-custom-page.news-single-page #footer .footer-left img {
        width: 21rem;
    }

    body.news-custom-page.news-single-page #footer .footer-address {
        white-space: normal;
    }

    body.news-custom-page.news-single-page #footer .footer-nav {
        display: block;
    }

    body.news-custom-page.news-single-page #footer .footer-nav-group {
        margin-bottom: 2.4rem;
    }

    body.news-custom-page.news-single-page #footer .footer-copy {
        padding: 0 1.6rem;
        text-align: center;
    }
}