@charset "UTF-8";

/* ========================================
   /news 専用差分
   共通部分は style.css を前提
======================================== */

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

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

/* ヘッダー */
body.news-custom-page header {
    padding: 0 40px;
}

body.news-custom-page header .inner {
    width: 100%;
    max-width: none;
    margin: 0;
    height: 100%;
}

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

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

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

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

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

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

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

body.news-custom-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 header .header-nav a:hover {
    color: #333 !important;
    opacity: 0.7;
}

/* サブビジュアル */
body.news-custom-page #sub-visual {
    background-image: url("/img/sub-visual.png");
}

body.news-custom-page .sub-visual-inner h1 {
    margin: 0;
}

/* ニュース一覧 */
body.news-custom-page #news-page {
    background: #f7f9fc;
}

body.news-custom-page #news-page .inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0 80px;
}

body.news-custom-page .news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
}

body.news-custom-page .news-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(31, 55, 86, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.news-custom-page .news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(31, 55, 86, 0.12);
}

body.news-custom-page .news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

body.news-custom-page .news-card-thumb {
    aspect-ratio: 16 / 9;
    background: #eef3f9;
    overflow: hidden;
}

body.news-custom-page .news-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.news-custom-page .news-card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #7a889b;
    background: linear-gradient(135deg, #eef3f9 0%, #dde6f2 100%);
}

body.news-custom-page .news-card-body {
    position: relative;
    flex: 1 1 auto;

    min-height: 150px;
    padding: 24px 24px 48px;
}

body.news-custom-page .news-card-title {
    margin: 0;

    font-size: 3rem;
    font-weight: 500;
    line-height: 1.6;
    color: #2f3e55;
    text-align: left;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.news-custom-page .news-card-date {
    position: absolute !important;
    right: 24px !important;
    bottom: 18px !important;

    margin: 0 !important;
    display: block !important;

    font-size: 1.5rem;
    line-height: 1.4;
    color: #8b95a5;
    text-align: right;
}

body.news-custom-page .news-empty {
    padding: 40px 0;
    text-align: center;
    font-size: 1.6rem;
    color: #5f6b7a;
}

body.news-custom-page .news-pagination {
    margin-top: 48px;
    text-align: center;
}

body.news-custom-page .news-pagination .page-numbers {
    display: inline-block;
    min-width: 40px;
    margin: 0 6px;
    padding: 10px 12px;
    border: 1px solid #d7e0ea;
    background: #fff;
    font-size: 1.4rem;
    line-height: 1;
    color: #2f3e55;
    text-decoration: none;
}

body.news-custom-page .news-pagination .page-numbers:hover {
    background: #f1f5fa;
}

body.news-custom-page .news-pagination .current {
    font-weight: 700;
    color: #fff;
    background: #2f3f56;
    border-color: #2f3f56;
}

/* フッター */
body.news-custom-page #footer {
    background: #2f3f56 !important;
}

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

body.news-custom-page #footer .footer-left {
    flex: 0 0 300px;
    text-align: left;
    margin-right: 48px;
}

body.news-custom-page #footer .footer-left img {
    width: 250px;
    margin-bottom: 20px;
}

body.news-custom-page #footer .footer-name {
    margin: 0 0 14px;
    line-height: 1.9;
}

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

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

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

body.news-custom-page #footer .footer-nav-title {
    margin: 0 0 12px;
}

body.news-custom-page #footer .footer-nav-group.single {
    padding-top: 0;
}

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

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

body.news-custom-page #footer .footer-nav li {
    margin-bottom: 6px;
    list-style: none;
}

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

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

body.news-custom-page #footer .footer-copy {
    margin-top: 40px;
}

/* タブレット */
@media screen and (max-width: 1024px) {
    body.news-custom-page #news-page .inner {
        width: 92%;
    }

    body.news-custom-page .news-grid {
        gap: 28px 20px;
    }

    body.news-custom-page .news-card-title {
        font-size: 2.5rem;
    }
}

/* スマホ */
@media screen and (max-width: 767px) {
    body.news-custom-page header {
        padding: 0 20px;
    }

    body.news-custom-page header .inner {
        width: 100%;
        height: 64px;
    }

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

    body.news-custom-page #sub-visual {
        margin-top: 64px;
    }

    body.news-custom-page #news-page .inner {
        width: 88%;
        padding: 64px 0 52px;
    }

    body.news-custom-page .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.news-custom-page .news-card {
        border-radius: 0;
    }

    body.news-custom-page .news-card-body {
        min-height: auto;
        padding: 18px 18px 44px;
    }

    body.news-custom-page .news-card-title {
        margin: 0 !important;
        font-size: 2.1rem;
        line-height: 1.6;
        color: #2f3e55;

        text-align: left !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;

        word-break: break-word;
    }

    body.news-custom-page .news-card-date {
        right: 18px !important;
        bottom: 14px !important;
        font-size: 1.3rem;
    }

    body.news-custom-page .news-card-thumb-placeholder {
        font-size: 1.5rem;
    }

    body.news-custom-page #footer .footer-inner {
        display: block;
        padding: 0 16px;
    }

    body.news-custom-page #footer .footer-left {
        flex: none;
        margin-right: 0;
        margin-bottom: 32px;
    }

    body.news-custom-page #footer .footer-left img {
        width: 210px;
    }

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

    body.news-custom-page #footer .footer-nav-group {
        margin-bottom: 24px;
    }

    body.news-custom-page #footer .footer-copy {
        margin-top: 32px;
    }
}

/* =========================
   /news ハンバーガーメニュー
========================= */

body.news-custom-page.news-menu-open {
    overflow: hidden;
}

/* ボタン本体 */
body.news-custom-page header .menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1200;
}

body.news-custom-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-menu-open header .menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

/* スマホ時だけメニュー化 */
@media screen and (max-width: 767px) {
    body.news-custom-page header .menu-btn {
        display: block;
    }

    body.news-custom-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-menu-open header .header-nav {
        transform: translateX(0);
    }

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

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

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