/* ---- 画像: width / height 属性は縦横比の確保用。CSS で高さの指定がなければ幅に合わせて自動にする ---- */
img {
    height: auto;
}


:root {
    --primary-orange: #F17300;
    --bg-beige: #FAF8F5;
    --text-black: #1a1a1a;
    --text-gray: #666;
    --border-color: #e0e0e0;
    --container-width: 1200px;
    --mobile-inset: 4%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-beige);
    color: var(--text-black);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

    body.no-scroll {
        overflow: hidden;
    }

.br-pc {
    display: block;
}

.br-sp {
    display: none;
}

h1, h2, h3, .serif {
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
   ヘッダー（共通）
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
header {
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-logo img {
    height: 60px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: none;
}

.header-nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

    nav ul li a {
        font-size: 13px;
        text-decoration: none;
        letter-spacing: 0.1em;
        color: var(--text-black);
        font-weight: 500;
        white-space: nowrap;
        transition: color 0.3s;
    }

        nav ul li a:hover {
            color: var(--primary-orange);
        }

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sns-icons {
    display: flex;
    gap: 16px;
    font-size: 16px;
    color: var(--text-black);
}

    .sns-icons a {
        color: inherit;
        transition: color 0.3s;
    }

        .sns-icons a:hover {
            color: var(--primary-orange);
        }

.lang-switch {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
}

    .lang-switch:hover {
        color: var(--primary-orange);
    }

.btn-online {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-orange);
    text-decoration: none;
    border: 1px solid var(--primary-orange);
    padding: 8px 20px;
    white-space: nowrap;
    transition: all 0.3s;
}

    .btn-online:hover {
        background-color: var(--primary-orange);
        color: #fff;
    }

/* パンくずリスト */
.breadcrumb {
    max-width: var(--container-width);
    margin: 120px auto 40px;
    padding: 0 4%;
    font-size: 12px;
    color: var(--text-gray);
}

    .breadcrumb a {
        color: var(--text-gray);
        text-decoration: none;
        transition: color 0.3s;
    }

        .breadcrumb a:hover {
            color: var(--primary-orange);
        }

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
   お知らせ詳細 固有スタイル
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
.news-detail-container {
    max-width: 860px;
    margin: 0 auto 120px;
    padding: 60px 80px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.03);
}

.news-detail-header {
    margin-bottom: 40px;
    text-align: center;
}

.news-detail-icon {
    width: 60px;
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.news-date {
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 0.05em;
}

.news-tag {
    font-size: 11px;
    padding: 4px 12px;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    font-weight: 600;
    border-radius: 2px;
}

.news-detail-title {
    font-size: 28px;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 40px;
}

.news-detail-main-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 50px;
    aspect-ratio: 16/9;
    object-fit: cover;
    background-color: #e8e4de;
}

.news-detail-content {
    font-size: 15px;
    line-height: 2.2;
    color: var(--text-black);
}

    .news-detail-content h2 {
        font-size: 22px;
        margin: 50px 0 24px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
        position: relative;
    }

        .news-detail-content h2::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 60px;
            height: 1px;
            background-color: var(--primary-orange);
        }

    .news-detail-content h3 {
        font-size: 18px;
        margin: 40px 0 20px;
        font-weight: 500;
    }

    .news-detail-content p {
        margin-bottom: 24px;
        color: var(--text-gray);
    }

    .news-detail-content .link-detail {
        margin: -8px 0 24px;
    }

        .news-detail-content .link-detail a {
            color: var(--primary-orange);
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
        }

            .news-detail-content .link-detail a:hover {
                text-decoration: underline;
            }

            .news-detail-content .link-detail i {
                font-size: 11px;
                margin-left: 4px;
            }

    .news-detail-content img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
        margin: 32px 0;
    }

/* 前後記事ナビゲーション（PC用） */
.news-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* ---- 404ページ: 戻り先のリンク ---- */
.error-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.nav-link {
    text-decoration: none;
    color: var(--text-black);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s;
    width: 30%;
}

    .nav-link:hover {
        color: var(--primary-orange);
    }

    .nav-link.next {
        justify-content: flex-end;
        text-align: right;
    }

    .nav-link .nav-text {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-link.empty {
        visibility: hidden;
    }

/* 一覧へ戻るボタン */
.btn-back-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    color: var(--text-black);
    border: 1px solid var(--text-black);
    padding: 12px 40px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .btn-back-list i {
        color: var(--primary-orange);
        margin-right: 12px;
        font-size: 13px;
        transition: color 0.3s ease;
    }

    .btn-back-list:hover {
        background-color: var(--primary-orange);
        color: #fff;
        border-color: var(--primary-orange);
    }

        .btn-back-list:hover i {
            color: #fff;
        }

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
   フッター（共通）
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
footer {
    background-color: #fff;
    padding: 100px 60px 40px;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    max-width: var(--container-width);
    margin: 0 auto 80px;
    display: flex;
    justify-content: space-between;
}

.footer-logo img {
    width: auto;
    height: 50px;
}

.footer-nav {
    display: flex;
    gap: 80px;
}

.footer-nav-col .footer-nav-title {
    font-weight: 700;
    font-size: 11px;
    color: #999;
    margin-bottom: 24px;
    letter-spacing: 0.2em;
}

.footer-nav-col ul li {
    margin-bottom: 14px;
    font-size: 13px;
    list-style: none;
}

.footer-nav-col a {
    text-decoration: none;
    color: var(--text-black);
    transition: color 0.3s;
}

    .footer-nav-col a:hover {
        color: var(--primary-orange);
    }

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #bbb;
    letter-spacing: 0.1em;
}

.footer-caption {
    font-size: 10px;
    margin-top: 15px;
    color: #999;
    line-height: 2;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
   レスポンシブ対応
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
@media (max-width: 1024px) {
    .br-pc {
        display: none;
    }

    .br-sp {
        display: block;
    }

    header {
        padding: 20px 30px;
    }

    .header-logo img {
        height: 47px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }

        .hamburger span {
            display: block;
            width: 100%;
            height: 2px;
            background-color: var(--text-black);
            transition: all 0.3s ease;
        }

        .hamburger.active span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }

    .header-nav-wrap {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgb(250 248 245);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }

        .header-nav-wrap.active {
            opacity: 1;
            visibility: visible;
        }

        .header-nav-wrap nav ul {
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }

            .header-nav-wrap nav ul li a {
                font-size: 18px;
            }

        .header-nav-wrap .header-right {
            flex-direction: column;
            gap: 24px;
        }

        .header-nav-wrap .sns-icons {
            gap: 20px;
            font-size: 20px;
        }

    /* お知らせ詳細SP */
    .news-detail-container {
        padding: 40px 5%;
        margin: 0 var(--mobile-inset) 80px;
        width: auto;
    }

    .news-detail-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .news-detail-content h2 {
        font-size: 20px;
    }

    .news-detail-content p {
        font-size: 14px;
    }

    /* 前後記事ナビゲーション（SP・タブレット用グリッドレイアウト修正） */
    .news-navigation {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px 10px;
    }

    .btn-back-list {
        grid-column: 1 / 3; /* 左右の列をまたぐ */
        grid-row: 1; /* 1行目に配置 */
        justify-self: center;
        margin: 0;
        width: 100%;
        max-width: 280px;
        padding: 12px 30px;
    }

    .nav-link {
        width: 100%;
    }

        .nav-link.prev {
            grid-column: 1 / 2; /* 左下に配置 */
            grid-row: 2;
            justify-content: flex-start;
            text-align: left;
        }

        .nav-link.next {
            grid-column: 2 / 3; /* 右下に配置 */
            grid-row: 2;
            justify-content: flex-end;
            text-align: right;
            flex-direction: row;
        }

        .nav-link .nav-text {
            font-size: 13px;
        }

    footer {
        padding: 60px var(--mobile-inset);
    }

    .footer-main {
        flex-direction: column;
        gap: 50px;
        margin-bottom: 50px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-nav-col .footer-nav-title {
        font-size: 14px;
        letter-spacing: 0.1em;
        margin-bottom: 18px;
    }

    .footer-nav-col ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
        row-gap: 10px;
    }
}

/* ---- 連載記事用（旧 article.css から移植） ---- */
.news-detail-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 14px;
    line-height: 1.8;
}

.news-detail-content figure {
    margin: 0 0 1.6em;
}

    .news-detail-content figure img {
        width: 100%;
        margin: 0;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    .news-detail-content figure.figure-portrait img {
        max-width: 440px;
        margin: 0 auto;
        display: block;
    }

    .news-detail-content figure.figure-logo img {
        max-width: 380px;
        margin: 0 auto;
        display: block;
        border-radius: 0;
        box-shadow: none;
    }

.news-detail-content figcaption {
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
    margin-top: 10px;
    letter-spacing: 0.03em;
    text-wrap: balance;
}

@media (min-width: 769px) {
    .news-detail-content .figure-pair {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
        margin-bottom: 1.6em;
    }

        .news-detail-content .figure-pair figure {
            margin: 0;
        }

            .news-detail-content .figure-pair figure.figure-portrait img {
                max-width: none;
            }
}

.news-detail-content .article-note {
    font-size: 13px;
    color: var(--text-gray);
    border-left: 2px solid #ddd;
    padding-left: 16px;
    margin-top: 40px;
}

    .news-detail-content .article-note p {
        margin-bottom: 0.6em;
    }

        .news-detail-content .article-note p:last-child {
            margin-bottom: 0;
        }

.nav-link.is-empty {
    visibility: hidden;
}
