@charset "utf-8";
/*
Theme Name: Lightning Pro Child
Theme URI:
Template: lightning-pro
Description: サン工房ブログ専用カスタマイズ。
Author:
Tags:
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Shippori+Mincho:wght@400;500&display=swap');


/* ============================================
   skip-links / screen-reader 非表示
   ============================================ */
.skip-link,
.screen-reader-text {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
}

/* Lightning Pro / プラグインが出力する不要要素を強制非表示 */
html body #page_top,
html body .page_top_btn,
html body a#page_top.page_top_btn,
#show_template_file_name_on_top,
#included-files-fie-on-wp-footer,
.show-template-file-name,
#floatbtn,
#floatbtn_sp,
.vk-mobile-fix-nav,
#vk-mobile-fix-nav-bar-btn,
.fix-bottom-menu,
.fix-bottom-nav,
[id*="fix-nav"],
[class*="fix-nav"],
[id*="page_top"],
[class*="page_top"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* ============================================
   base（元テーマと同等）
   ============================================ */
body {
    font-size: 16px;
    font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
    color: #231815;
}

ul {
    list-style: none;
    padding-left: 0;
}

a {
    text-decoration: none;
    color: #231815;
}

a:hover {
    text-decoration: none;
}

a:hover img {
    opacity: 0.8;
}

.sp-only {
    display: none;
}

@media (max-width: 767px) {
    .sp-only {
        display: block;
    }
}

/* ============================================
   site header (Figma 568:1964 準拠)
   ============================================ */
.site-header {
    background: #F4F4F0;
    padding: 56px 0;
    position: relative;
}

.site-header__inner {
    position: relative;
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    text-align: center;
    min-height: 33px;
}

.site-header__logo {
    position: absolute;
    left: 244px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

.site-header__logo img {
    display: block;
    width: 166px;
    height: auto;
}

.site-header__title {
    display: inline-block;
    font-family: 'Inter', "Helvetica Neue", Arial, sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #231815;
    letter-spacing: 0.02em;
    border-left: 1px solid #231815;
    border-right: 1px solid #231815;
    padding: 0 73px;
    line-height: 1.1;
    margin: 0;
}

.site-header__title a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.site-header__title a:hover {
    color: inherit;
    text-decoration: none;
    opacity: 1;
}

@media (max-width: 1256px) {
    .site-header__logo {
        left: 80px;
    }
}

@media (max-width: 1100px) {
    .site-header {
        padding: 40px 16px;
    }

    .site-header__inner {
        min-height: 0;
    }

    .site-header__logo {
        position: static;
        transform: none;
        margin: 0 auto 24px;
        display: block;
        width: -moz-fit-content;
        width: fit-content;
    }
}

@media (max-width: 767px) {
    .site-header {
        padding: 25px 16px;
    }

    .site-header__logo img {
        width: 140px;
    }

    .site-header__title {
        font-size: 22px;
        padding: 0 30px;
    }
}


/* ============================================
   カテゴリーリスト（元テーマと同等）
   ============================================ */
ul.cmscategory {
    list-style: none;
    display: flex;
    margin-top: 90px;
}

ul.cmscategory li {
    width: 100%;
    padding: 0 2px;
}

ul.cmscategory li.current {
    color: #fff;
    background: #373838;
    text-align: center;
    box-sizing: border-box;
}

ul.cmscategory li.current span {
    display: block;
    height: 100%;
    padding: 10px 0;
    border: 1px solid #373838;
}

ul.cmscategory li a {
    display: block;
    color: #373838;
    text-decoration: none;
    border: 1px solid #373838;
    text-align: center;
    padding: 10px 0;
    box-sizing: border-box;
    font-family: 'Inter', "Helvetica Neue", Arial, sans-serif;
}

ul.cmscategory li.current a {
    color: #fff;
}

@media (max-width: 767px) {
    ul.cmscategory {
        margin-top: 40px;
    }
}

/* ============================================
   記事一覧（元テーマと同等）
   ============================================ */
ul.cmsList {
    list-style: none;
}

ul.cmsList li {
    border-bottom: 1px dotted #000;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

ul.cmsList a {
    display: flex;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}

ul.cmsList .icon {
    padding: 2px 5px;
    font-size: 14px;
    border: 1px solid #373838;
    margin: 0 20px;
    min-width: 150px;
    text-align: center;
}

ul.cmsList a p {
    margin: 0;
}

ul.cmsList a h3 {
    border: none;
    font-size: 16px;
    margin: 0;
    padding: 0;
    font-family: 'Shippori Mincho', "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

ul.cmsList a h3:after {
    display: none;
}


/* ============================================
   ページネーション (wp-pagenavi) — 元テーマと同等
   ============================================ */
.wp-pagenavi {
    width: 100%;
    font-size: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.wp-pagenavi a,
.wp-pagenavi span {
    display: block;
    padding: 7px;
    background: #595a5b;
    min-width: 36px;
    text-align: center;
}

.wp-pagenavi .current {
    color: #fff;
    background: #CCC;
}

.wp-pagenavi a:link,
.wp-pagenavi a:visited {
    color: #fff;
    text-decoration: none;
}

.wp-pagenavi a:hover,
.wp-pagenavi a:active {
    color: #fff;
    text-decoration: none;
    background: #000;
}


@media (max-width: 415px) {
    ul.cmsList a {
        display: block;
    }

    ul.cmsList .icon {
        display: inline-block;
        padding: 0;
        font-size: 12px;
        margin: 0 20px;
        min-width: 140px;
    }

    ul.cmsList h3 {
        padding-top: 10px !important;
        display: block;
    }

    ul.cmscategory {
        display: block;
    }

    ul.cmscategory li {
        width: 32%;
        display: inline-block;
    }
}


/* ============================================
   single blog
   ============================================ */
.single-blog {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.single-blog__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #6b6b6b;
}

.single-blog__meta .icon {
    background: #8a8a82;
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
}

.single-blog__title {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.5;
    font-family: 'Shippori Mincho', "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

.single-blog__body {
    font-size: 16px;
    line-height: 2;
}

.single-blog__body img {
    height: auto;
    margin: 16px 0;
}

.single-blog__nav {
    margin-top: 50px;
    text-align: center;
}

.single-blog__nav a {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid #231815;
    font-family: 'Inter', "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}


/* ============================================
   site footer (Figma 593:1787 準拠)
   ============================================ */
.site-footer {
    padding: 80px 0 120px;
}

.site-footer__inner {
    width: 100%;
    max-width: 593px;
    margin: 0 auto;
    padding: 0 17px;
}

/* cta-banner: 左テキスト + 右画像の横並び 593x169 */
.cta-banner {
    display: grid;
    grid-template-columns: 259fr 334fr;
    width: 100%;
    height: 169px;
    text-decoration: none;
    overflow: hidden;
}

/* 左：ロゴ + テキスト */
.cta-banner__text {
    background-color: #EEE8DA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    gap: 8px;
    height: 100%;
}

.cta-banner__logo {
    display: block;
    width: 98px;
    height: 19px;
}

.cta-banner__title {
    color: #111111;
    display: block;
    font-family: 'Shippori Mincho', "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.448;
    text-align: center;
}

/* 右：背景画像 + View more */
.cta-banner__media {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.cta-banner__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    will-change: transform;
}

.cta-banner__view-more {
    position: absolute;
    right: 26px;
    bottom: 22px;
    display: block;
    min-width: 89px;
    color: #ffffff;
    font-family: 'Shippori Mincho', "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.448;
    text-align: center;
    padding-bottom: 12px;
}

.cta-banner__view-more::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
}

.cta-banner__view-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 3px;
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
    border-radius: 9999px;
    transition: left 0.3s ease-in-out;
    will-change: left;
}

@media (hover: hover) {
    .cta-banner:hover .cta-banner__img {
        transform: scale(1.05);
        opacity: 1;
    }

    .cta-banner:hover .cta-banner__view-more::after {
        left: 100%;
    }
}

@media (max-width: 575px) {
    .site-footer {
        padding: 40px 0 60px;
    }

    .cta-banner {
        height: auto;
        min-height: 121px;
    }

    .cta-banner__text {
        padding: 10px 20px 0;
    }

    .cta-banner__logo {
        width: 78px;
        height: 15px;
    }

    .cta-banner__title {
        font-size: 14px;
    }

    .cta-banner__view-more {
        right: 16px;
        bottom: 14px;
    }
}