/*
Theme Name: Lightning Child
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.0
*/


/* ========================================
   カラー変数
======================================== */
:root {
    --color-primary: #BF9A0E;
    --color-accent:  #8b7355;
}


/* ========================================
   ヘッダー
======================================== */
#site-header {
    background: #383e2f;
}

/* PC：白文字・ホバー時下線 */
@media (min-width: 769px) {
    .global-nav-list > .menu-item > a {
        color: #fff;
        border: none;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        padding: 4px 12px;
        transition: border-color 0.2s;
    }

    .global-nav-list > .menu-item > a:hover {
        border-bottom-color: #fff;
    }

    .global-nav-list > .menu-item.current-menu-item > a,
    .global-nav-list > .menu-item.current-menu-ancestor > a {
        border-bottom-color: #fff;
        font-weight: bold;
    }
}

.global-nav-list > .menu-item > a .global-nav-name {
    color: #fff;
    letter-spacing: 0.1em;
}

/* スマホメニュー */
#vk-mobile-nav-menu-btn {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
}

#vk-mobile-nav-menu-btn:not(.menu-open) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/%3E%3C/svg%3E") !important;
}

#vk-mobile-nav-menu-btn.menu-open {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") !important;
}

#vk-mobile-nav {
    background: #BF9A0E;
}

#vk-mobile-nav .menu-item a {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

#vk-mobile-nav .widget {
    display: none;
}

/* サブメニュー開閉ボタン：枠なし・白アイコン */
#vk-mobile-nav .acc-btn {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#vk-mobile-nav .vk-menu-acc .acc-btn {
    border: none !important;
    background-image: var(--vk-menu-acc-icon-open-white-bg-src) !important;
    background-color: transparent !important;
}


/* ========================================
   スライダー（Smart Slider 3）
======================================== */

/* 隙間なし調整 */
.n2-ss-slider-wrapper-inside {
    margin-top: 0 !important;
}

/* センタリング・左右余白色・余白なし */
.n2-section-smartslider {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background-color: #e8e4dc;
}


/* ========================================
   ページヘッダー
======================================== */
.page-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 220px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

.page-header .page-header-inner {
    color: #fff;
    position: relative;
    z-index: 1;
}

.page-header .page-title {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.page-header .breadcrumb,
.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
    .page-header {
        min-height: 160px;
    }
}

/* ページ別ヘッダー画像 */
.post-type-post .page-header,
.post-name-info .page-header {
/*    background-image: url('images/header-info.webp');*/
    background-image: url('images/header-info.jpg');
}

.blog .page-header {
    background-image: url('images/header-news.jpg');
}

.post-name-facility .page-header {
/*    background-image: url('images/header-guide.webp');*/
    background-image: url('images/header-facility.jpg');
}

.post-name-permanent .page-header {
/*    background-image: url('images/header-permanent.webp');*/
    background-image: url('images/header-permanent.jpg');
}

.post-type-exhibition .page-header {
/*    background-image: url('images/header-exhibition.webp');*/
    background-image: url('images/header-exhibition.jpg');
}

.post-type-collection .page-header {
    background-image: url('images/header-collection.webp');
}

.post-name-cafe .page-header {
    background-image: url('images/header-cafe.webp');
}

.post-name-kids .page-header {
    background-image: url('images/header-kids.webp');
}


/* ========================================
   サイト本文背景色
======================================== */
.site-body {
    background-color: #ffffff;
}


/* ========================================
   ページトップへ戻るボタン
======================================== */
#page_top {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #333 !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    color: transparent !important;
    font-size: 0 !important;
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}

#page_top::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: 3px;
}

#page_top:hover {
    background: #555 !important;
}


/* ========================================
   フッター
======================================== */
footer.site-footer {
    background: #4a4a42 !important;
    margin-top: -30px;
    padding-top: 30px;
}

.site-footer-copyright {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer-copyright p:last-child {
    display: none;
}

/* メニュー・テキスト 白文字 */
.site-footer .widget ul {
    display: block !important;
    padding: 0;
    list-style: none;
}

.site-footer .widget ul li a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
}

.site-footer .widget ul li a:hover {
    color: rgba(255, 255, 255, 0.5) !important;
}

.site-footer .widget p {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 2;
    margin-bottom: 0.5rem;
}

/* アクセス・SNSリンクボタン */
.footer-access-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.footer-access-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff !important;
}

.footer-access-btn i {
    color: inherit;
}

@media (max-width: 768px) {
    .site-footer .widget {
        margin-bottom: 2rem;
    }
}


/* ========================================
   施設カードバナー
======================================== */
.site-body-bottom {
    margin-top: 2rem;
}

.facility-cards-section {
    background: #f5f1e8;
    padding: 32px calc(50vw - 50%);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.facility-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.facility-card {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center;
    gap: 10px;
    padding: 24px 12px;
    background: #fff;
    border: 1px solid #e0d8c8;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.facility-card:hover {
    opacity: 0.75;
}

.facility-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #BF9A0E;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.facility-card__icon i {
    color: #fff;
    font-size: 24px;
    margin-right: 0 !important;
}

.facility-card__name {
    font-size: 1rem;
    font-weight: bold;
    color: #444;
}

@media (max-width: 768px) {
    .facility-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================
   トップ：開催中企画展
======================================== */
.current-exhibition__link {
    display: flex;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.current-exhibition__img {
    flex-shrink: 0;
}

.current-exhibition__img img {
    width: 200px;
    height: auto;
    display: block;
}

.current-exhibition__title {
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.current-exhibition__period {
    font-size: 0.95rem;
    color: #666;
}

.current-exhibition__none {
    color: #999;
}

@media (min-width: 769px) {
    .current-exhibition__img img {
        width: 300px;
        border: 1px solid #ccc;
    }
}

@media (max-width: 768px) {
    .current-exhibition__link {
        flex-direction: column;
    }

    .current-exhibition__img img {
        width: 100%;
    }
}


/* ========================================
   新着情報
======================================== */

/* アイキャッチ画像：上部表示 */
.news-thumb img {
    object-position: top center;
}

/* カテゴリーラベル：下線・点線なし */
.wp-block-post-template .taxonomy-category a {
    text-decoration: none;
    border-bottom: none;
}

/* カテゴリーラベル：フォルダーアイコン */
.wp-block-post-template .taxonomy-category a:first-child::before {
    font-family: "Font Awesome 5 Free";
    content: "\f07b";
    font-weight: 900;
    margin-right: 6px;
    margin-left: 2px;
    color: var(--color-primary);
    display: inline-block;
}

/* トップページ：アイキャッチ画像 センタリング・サイズ */
.wp-block-post-template .wp-block-post-featured-image {
    display: flex;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
}

.wp-block-post-template .news-thumb.wp-block-post-featured-image {
    max-width: 240px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* トップページ：画像リンクの点線下線を消す */
.wp-block-post-template .news-thumb.wp-block-post-featured-image a {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* トップページ：横長画像対応 */
.wp-block-post-template .news-thumb.wp-block-post-featured-image img {
    object-fit: cover !important;
    object-position: center center;
}

/* アーカイブ：アイキャッチ画像サイズ・比率 */
.vk_post.media .vk_post_imgOuter.media-img {
    flex: 0 0 100px;
    width: 100px;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: top center;
}

/* アーカイブ：カテゴリーラベル色 */
.vk_post_imgOuter_singleTermLabel {
    background-color: var(--color-primary) !important;
}

@media (max-width: 768px) {
    .vk_post.media .vk_post_imgOuter.media-img {
        flex: 0 0 80px;
        width: 80px;
    }
}


/* ========================================
   お知らせリスト（トップページ・一覧共通）
======================================== */

/* 各行：枠なし・背景なし・間隔 */
.post-list .vk_post.card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0.5em 0 !important;
    margin-bottom: 0 !important;
}

/* 各行の区切り線 */
.post-list .vk_post + .vk_post {
    border-top: 1px solid #e0d8c8 !important;
}

/* 本文エリア：横一列・上揃え */
.post-list .vk_post_body.list-body {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0.5em 0.8em;
}

/* 並び順：日付→カテゴリー→タイトル */
.post-list .vk_post_body.list-body .vk_post_date {
    order: 1;
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
    font-size: 0.85rem !important;
}

.post-list .vk_post_body.list-body .post-cat-badges {
    order: 2;
}

.post-list .vk_post_body.list-body .vk_post_title {
    order: 3;
    flex: 1;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* タイトル：太字・サイズ統一 */
.post-list .vk_post_title.list-title a {
    font-size: 1rem !important;
    font-weight: bold;
}

/* カテゴリーバッジ：背景色帯・幅固定・センタリング */
.post-list .post-cat-badges {
    display: flex;
    flex-shrink: 0;
    gap: 0.3em;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    background-color: #383e2f;
    padding: 0.15em 1em;
    border-radius: 3px;
}

.post-list .post-cat-badge {
    color: #ffffff !important;
    font-size: 0.85rem !important;
    text-decoration: none;
    white-space: nowrap;
}

.post-list .post-cat-sep {
    color: #ffffff;
    font-size: 0.85rem !important;
}

/* スマホ：タイトル折り返し許可 */
@media (max-width: 768px) {
    .post-list .vk_post_body.list-body {
        flex-wrap: wrap;
    }

    .post-list .vk_post_body.list-body .vk_post_title {
        width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}


/* ========================================
   収蔵品アーカイブ：グリッド
======================================== */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.collection-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.collection-card__thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.collection-card__thumb--noimg {
    aspect-ratio: 1 / 1;
    background: #ccc;
}

.collection-card__title {
    font-size: 1rem;
    margin: 8px 0 0;
}

@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================
   収蔵品詳細：交互2段組みレイアウト
======================================== */
article.entry-collection .collection-single__title {
    border-bottom-color: var(--color-accent);
}

article.entry-collection .collection-item {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

article.entry-collection .collection-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

article.entry-collection .collection-item__image {
    flex: 0 0 45%;
    max-width: 45%;
}

article.entry-collection .collection-item__image img {
    width: 100%;
    height: auto;
    display: block;
}

article.entry-collection .collection-item__description {
    flex: 1;
}

article.entry-collection .collection-item--img-right {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    article.entry-collection .collection-item {
        flex-wrap: wrap !important;
    }

    article.entry-collection .collection-item__image,
    article.entry-collection .collection-item--img-right .collection-item__image {
        flex: 0 0 100%;
        max-width: 100%;
        order: 0;
    }

    article.entry-collection .collection-item__description {
        flex: 0 0 100%;
        order: 1;
    }
}

/* 収蔵品詳細：関連企画展 */
.collection-related-exhibitions,
.collection-items {
    margin-bottom: 2em;
}

.collection-related-exhibitions {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
}

.collection-related-exhibitions__title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5em;
}


/* ========================================
   企画展詳細
======================================== */

/* 会期 */
.exhibition-period--simple {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 0 24px;
}

/* 開催中バッジ */
.exhibition-badge {
    display: inline-block;
    color: #f00;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 6px;
}

/* 前後ナビ非表示 */
.post-type-exhibition .vk_posts.next-prev {
    display: none;
}

/* 企画展一覧：画像サイズ */
.vk_post-col-sm-6 .vk_post__figure img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    width: 100%;
}

/* 関連収蔵品セクション */
.exhibition-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #ddd;
}

.exhibition-related__title {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.exhibition-related .collection-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* 関連収蔵品カード */
.exhibition-related .collection-card {
    border: 1px solid #e0d8c8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.exhibition-related .collection-card__thumb img {
    aspect-ratio: 4 / 3;
}

.exhibition-related .collection-card__title {
    font-size: 0.8rem;
    margin: 4px 0 0;
    padding: 0 8px;
}

.exhibition-related .vk_post_taxonomies {
    padding: 0 8px 8px;
}

@media (max-width: 768px) {
    .exhibition-related .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ========================================
   チラシ（投稿詳細・企画展詳細 共通）
======================================== */
.single-flyer-wrap {
    margin-bottom: 1.5em;
}

.single-flyer-thumbnail {
    display: block;
    width: 100%;
    height: auto;
}

.flyer-lightbox-trigger {
    display: inline-block;
    position: relative;
    text-decoration: none;
    border: 1px solid #ccc;
}

@media (min-width: 768px) {
    .single-flyer-wrap {
        float: right;
        width: 280px;
        margin: 0 0 1.5em 2em;
    }

    .flyer-lightbox-trigger:hover {
        cursor: pointer;
    }
}

@media (max-width: 767px) {
    .single-flyer-wrap {
        float: none;
        width: 100%;
        margin: 0 0 1.5em 0;
    }
}

/* フロート後のクリア */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}


/* ========================================
   投稿詳細 共通
======================================== */

/* 投稿者名を非表示 */
.author-info,
.veu_postAuthor,
.by-author,
.author.vcard,
span.author {
    display: none !important;
}

/* 前後ナビ：シンプルテキスト */
.simple-nav a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 0.8em 0;
    border-top: 1px solid #ddd;
}

.simple-nav a:hover {
    color: #666;
}

.simple-nav .nav-label {
    display: block;
    font-size: 0.75em;
    color: #999;
    margin-bottom: 0.3em;
}

.simple-nav .nav-title {
    font-size: 0.9em;
}


/* ========================================
   カフェページ：黒板スタイル お知らせ
======================================== */
.cafe-news {
    background: #2d4a3e;
    border: 6px solid #5c3d1e;
    border-radius: 4px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5em;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.cafe-news__heading {
    font-family: 'Stick', sans-serif;
    color: #ffffff;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.5),
        2px 2px 0px rgba(255, 255, 255, 0.08),
       -1px -1px 0px rgba(255, 255, 255, 0.08);
    opacity: 0.78;
}

.cafe-news__item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.cafe-news__item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.cafe-news__meta {
    font-size: 0.8125rem; /* 13px */
    color: rgba(255, 230, 180, 0.7);
    margin-bottom: 0.3rem;
}

.cafe-news__title {
    font-size: 1.0625rem; /* 17px */
    font-weight: 500;
    color: #f5f0e0;
    margin: 0 0 0.5em;
}

.cafe-news__title a,
.cafe-news a {
    color: rgba(255, 230, 180, 0.9);
    text-decoration: none;
}

.cafe-news__content {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.75;
    color: rgba(240, 235, 220, 0.85);
}

.cafe-news__body {
    flex: 1;
    min-width: 0;
}

.cafe-news__thumbnail {
    flex-shrink: 0;
    width: 180px;
}

.cafe-news__thumb-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* 本文中の画像を非表示（アイキャッチと重複するため） */
/*
.cafe-news__content img {
    display: none;
}
*/

/* モバイルでは縦積みに */
@media (max-width: 600px) {
    .cafe-news__item {
        flex-direction: column;
    }
    .cafe-news__thumbnail {
        width: 100%;
    }
    .cafe-news__thumb-img {
        height: 200px;
    }
}


/* ============================================
   トップページ カバーブロック 色帯
   ============================================ */

/* 共通設定 */
.cover-permanent,
.cover-exhibition,
.cover-kids,
.cover-cafe {
    position: relative;
    overflow: hidden;
    border: 2px solid #e0d8c8;
    border-radius: 4px;
}

/* 色帯：下部に固定・テキスト白・文字間隔 */
.cover-permanent .wp-block-cover__inner-container,
.cover-exhibition .wp-block-cover__inner-container,
.cover-kids .wp-block-cover__inner-container,
.cover-cafe .wp-block-cover__inner-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.4em 0.8em;
    z-index: 2;
    color: #ffffff;
    font-size: 0.95em;
    letter-spacing: 0.15em;
}

/* 各色帯 */
.cover-permanent .wp-block-cover__inner-container {
    background-color: rgba(61, 90, 110, 0.85);
}
.cover-exhibition .wp-block-cover__inner-container {
    background-color: rgba(184, 134, 11, 0.85);
}
.cover-kids .wp-block-cover__inner-container {
    background-color: rgba(106, 189, 160, 0.85);
}
.cover-cafe .wp-block-cover__inner-container {
    background-color: rgba(200, 98, 42, 0.85);
}



/* トップページ：スライダーとコンテンツの隙間をつめる */
.home .site-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.home .entry-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* スマホ：タイトル折り返し許可 */
@media (max-width: 768px) {
    .post-list .vk_post_body.list-body {
        flex-wrap: wrap;
    }

    .post-list .vk_post_body.list-body .vk_post_date {
        flex-shrink: 0;
    }

    .post-list .post-cat-badges {
        min-width: unset;
        width: auto;
    }

    .post-list .vk_post_body.list-body .vk_post_title {
        width: 100%;
        flex: 0 0 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}