/* ============================================
    0. フォント読み込み
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

/* ============================================
    1. リセット & 基本設定
   ============================================ */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #2c2c2c;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fdfcfa;
}

main {
    flex: 1;
}

/* ============================================
    2. ヘッダー
   ============================================ */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 28px;
    background: #fdfcfa;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
}

.logo {
    height: 36px;
    width: auto;
    display: block;
}

/* ============================================
    3. ナビゲーション
   ============================================ */
.nav-wrapper ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-wrapper ul li {
    width: auto;
    white-space: nowrap;
}

.nav-wrapper a {
    text-decoration: none;
    color: #555;
    display: block;
    padding: 4px 6px;
    font-size: 13px;
    font-weight: 500;
}

.menu-trigger {
    display: none;
}

/* ============================================
    4. メインビジュアル
   ============================================ */
.main-visual {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.mv-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
    7. フッター
   ============================================ */
.site-footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 48px 28px 28px;
    width: 100%;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 24px;
}

/* ロゴ画像は白背景なので、色反転(filter)はかけず、白い板に載せる */
.footer-logo {
    height: 44px !important;
    width: auto;
    display: block;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: #fff;
    border-radius: 6px;
}

.footer-logo-text {
    font-family: "Shippori Mincho", serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}

.footer-desc {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0;
    line-height: 1.7;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    text-decoration: none;
    color: #ccc;
    font-size: 13px;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav {
    margin-right: 50px;
}

.copyright {
    text-align: center;
    font-size: 11px;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-nav {
        margin-right: 0;
    }

    .footer-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ============================================
    8. PC表示
   ============================================ */
@media screen and (min-width: 769px) {
    .menu-trigger { display: none; }
    .sp-only { display: none !important; }

    .nav-wrapper {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        box-shadow: none;
        visibility: visible;
        background: transparent;
    }
}

/* ============================================
    9. スマホ表示
   ============================================ */
@media screen and (max-width: 768px) {
    .logo { height: 28px; }
    .pc-only { display: none !important; }
    .main-visual-container { height: 50vh; }

    .menu-trigger {
        display: block;
        width: 18px;
        height: 14px;
        position: relative;
        z-index: 102;
    }

    .menu-trigger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #2c2c2c;
        position: absolute;
        transition: all .3s;
    }
    .menu-trigger span:nth-of-type(1) { top: 0; }
    .menu-trigger span:nth-of-type(2) { top: 6px; }
    .menu-trigger span:nth-of-type(3) { bottom: 0; }

    .menu-trigger.is-active span:nth-of-type(1) { transform: translateY(11px) rotate(-45deg); }
    .menu-trigger.is-active span:nth-of-type(2) { opacity: 0; }
    .menu-trigger.is-active span:nth-of-type(3) { transform: translateY(-12px) rotate(45deg); }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fdfcfa;
        padding: 80px 20px;
        transition: all .3s;
        z-index: 101;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        visibility: hidden;
    }

    .nav-wrapper.is-active {
        right: 0;
        visibility: visible;
    }
    .nav-wrapper ul {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
    10. タブ
   ============================================ */
.tab-btn {
    background: #faf9f6;
    border: 1px solid #ddd;
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    color: #555;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    background: #f0efe9;
}

.tab-btn.active {
    background: #2c2c2c;
    border-color: #2c2c2c;
    color: #fff;
}

.tab-btn.is-hidden {
    display: none;
}

.post-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: none;
    margin: 0;
    position: relative;
    aspect-ratio: 4 / 5;
}

.post-card a {
    text-decoration: none;
    color: #111;
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-card:hover img {
    transform: scale(1.06);
}

.post-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 55%);
    pointer-events: none;
}

.post-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    padding: 14px;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .post-card {
        aspect-ratio: 3 / 4;
    }
}

/* ============================================
    11. 投稿グリッド（人気・最新）
   ============================================ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.popular-posts {
    padding: 20px 28px 40px;
}

.popular-posts h2 {
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 10px;
    }
}

/* ============================================
    12. エリア・ジャンル検索
   ============================================ */
.tab-search {
    padding: 40px 28px 24px;
}

.tab-search h2,
.latest-posts h2 {
    font-family: "Shippori Mincho", serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #2c2c2c;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 12px;
}

.tab-search h2::after,
.latest-posts h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: #b08d57;
}

.tab-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.tab-group h3 {
    min-width: 60px;
    margin: 0;
    font-size: 16px;
    white-space: nowrap;
}

.tab-group-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
    .tab-group {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .tab-group h3 {
        min-width: auto;
        padding-top: 8px;
        font-size: 14px;
    }

    .tab-group-btns {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 4px;
        width: 100%;
        min-width: 0;
    }

    .tab-group-btns .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* ============================================
    13. スライダー
   ============================================ */
.popular-swiper,
.latest-swiper {
    width: 100%;
    overflow: hidden;
}

.popular-swiper .swiper-slide,
.latest-swiper .swiper-slide {
    width: auto;
}

.latest-swiper .swiper-slide {
    transform: none !important;
}

.latest-swiper .swiper-slide-active {
    transform: none !important;
}

.latest-swiper .post-card h3 {
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* ============================================
    14. すべて見る
   ============================================ */
.view-all {
    text-align: center;
    margin-top: 32px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #2c2c2c;
    border-radius: 20px;
    text-decoration: none;
    color: #2c2c2c;
    font-size: 13px;
    font-weight: 500;
}

.view-all-btn:hover {
    background: #2c2c2c;
    color: #fff;
    transition: all .25s;
}

/* ============================================
    エリアの子カテゴリー プルダウン
   ============================================ */
.tab-btn-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-sub-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px 6px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    .home .tab-group-btns,
    .front-page .tab-group-btns {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .home .tab-btn-wrap,
    .front-page .tab-btn-wrap {
        flex-shrink: 0;
    }

    .home .more-area-btn,
    .front-page .more-area-btn {
        white-space: nowrap;
    }

    .page-id-1015 .tab-group-btns {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* ============================================
    15. 検索結果エリア(タブ選択時のみ表示)
   ============================================ */
.post-grid.is-hidden {
    display: none;
}

.show-more-wrap.is-hidden {
    display: none;
}

.latest-posts {
    padding: 24px 28px 32px;   /* 下の余白を48pxから縮小(フッターとの間を詰める) */
}

/* ============================================
    16. エリア・ジャンル「もっと見る」
   ============================================ */
.show-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0 32px;
}

.show-more-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.show-more-icon-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    color: #2c2c2c;
}

.show-more-icon-btn:hover {
    opacity: 0.6;
}