/*
Theme Name: My Theme
Theme URI:
Author:
Author URI:
Description: My custom WordPress theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-theme
*/

/* ================================================
   リセット & ベース
================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    color: #e8e8e8;
    line-height: 1.7;
    background: #0a0a0a;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* ================================================
   共通ユーティリティ
================================================ */
.container {
    width: 90%;
    max-width: 1100px;
    margin-inline: auto;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: .05em;
    margin-bottom: .5rem;
}

.section-lead {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: .85em 2.2em;
    border-radius: 4px;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .04em;
    transition: opacity .2s, transform .15s;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }

.btn--primary  { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn--outline  { background: transparent; color: #2563eb; border-color: #2563eb; }
.btn--white    { background: #fff; color: #1e3a8a; border-color: #fff; }
.btn--danger   { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn--ghost    { background: transparent; color: #e8e8e8; border-color: rgba(255,255,255,.4); }

/* ================================================
   ヘッダー
================================================ */
#masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    background: #0a0a0a;
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.site-branding a { font-size: 1.15rem; font-weight: 700; color: #fff; }
.site-description { font-size: .75rem; color: #666; }

#site-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.8rem;
}
#site-navigation a {
    font-size: .9rem;
    font-weight: 500;
    color: #aaa;
    transition: color .2s;
}
#site-navigation a:hover { color: #fff; }

/* ================================================
   ヒーローセクション
================================================ */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
    color: #fff;
    padding: clamp(5rem, 15vw, 9rem) 5%;
    text-align: center;
}

.hero__inner { max-width: 760px; margin-inline: auto; }

.hero__heading {
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .03em;
    margin-bottom: 1.25rem;
}

.hero__subheading {
    font-size: clamp(.95rem, 2.5vw, 1.15rem);
    opacity: .88;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* ================================================
   サービスセクション
================================================ */
.services {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: #f8fafc;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: box-shadow .25s, transform .2s;
}
.service-card:hover {
    box-shadow: 0 6px 24px rgba(37,99,235,.12);
    transform: translateY(-3px);
}

.service-card__icon {
    width: 52px;
    height: 52px;
    color: #2563eb;
    margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.service-card__text {
    font-size: .9rem;
    color: #555;
    line-height: 1.8;
}

/* ================================================
   新着情報セクション
================================================ */
.news {
    padding: clamp(4rem, 10vw, 7rem) 0;
}

.news__list {
    list-style: none;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 2.5rem;
}

.news__item { border-bottom: 1px solid #e5e7eb; }

.news__link {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.1rem .5rem;
    transition: background .15s;
}
.news__link:hover { background: #f0f4ff; }

.news__date {
    font-size: .82rem;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.news__title {
    font-size: .95rem;
    color: #1a1a1a;
}

.news__more { text-align: center; }

.news__empty { text-align: center; color: #888; }

/* ================================================
   問い合わせ導線セクション
================================================ */
.contact-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    text-align: center;
    padding: clamp(4rem, 10vw, 7rem) 5%;
}

.contact-cta__heading {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-cta__text {
    opacity: .88;
    margin-bottom: 2.5rem;
    font-size: clamp(.9rem, 2vw, 1rem);
}

/* ================================================
   フッター
================================================ */
#colophon {
    background: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 2rem 5%;
    font-size: .85rem;
}
#colophon a { color: #9ca3af; }
#colophon a:hover { color: #fff; }
.site-info { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }

/* ================================================
   レスポンシブ（モバイル）
================================================ */
@media (max-width: 700px) {

    #masthead {
        flex-direction: column;
        align-items: flex-start;
        gap: .6rem;
        padding: .85rem 5%;
    }

    #site-navigation ul { gap: 1rem; flex-wrap: wrap; }

    .news__link {
        flex-direction: column;
        gap: .25rem;
    }

    .services__grid { grid-template-columns: 1fr; }
}

/* ================================================
   ヘッダー（センターロゴ型）
================================================ */
.header--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 5% .75rem;
    background: #0a0a0a;
    color: #fff;
    gap: .5rem;
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.header__logo { text-align: center; }

.header__site-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .06em;
    text-decoration: none;
}

.header__tagline {
    font-size: .75rem;
    color: #aaa;
    margin-top: .2rem;
}

.header__nav { width: 100%; }

#primary-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    border-top: 1px solid #2a2a2a;
    padding-top: .5rem;
}

#primary-menu > li > a {
    display: block;
    padding: .55rem 1rem;
    font-size: .85rem;
    color: #ccc;
    font-weight: 500;
    letter-spacing: .04em;
    transition: color .2s;
}
#primary-menu > li > a:hover { color: #fff; }

/* ハンバーガートグル（スマホ用） */
.header__nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    margin: 0 auto;
}
.header__hamburger,
.header__hamburger::before,
.header__hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: #ccc;
    position: relative;
    transition: transform .25s;
}
.header__hamburger::before,
.header__hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.header__hamburger::before { top: -7px; }
.header__hamburger::after  { top:  7px; }

/* ================================================
   記事（single）
================================================ */
.single-main { padding: 3rem 0 5rem; }

.single-article__header { margin-bottom: 2rem; }

.single-article__cats {
    font-size: .8rem;
    margin-bottom: .5rem;
}
.single-article__cats a {
    background: #1e3a8a;
    color: #fff;
    padding: .2em .7em;
    border-radius: 3px;
    font-size: .78rem;
    margin-right: .3rem;
}

.single-article__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: .75rem;
}

.single-article__meta {
    font-size: .82rem;
    color: #888;
    margin-bottom: 1.25rem;
}

.single-article__thumb img {
    width: 100%;
    border-radius: 8px;
}

.single-article__content {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
}
.single-article__content h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; border-left: 4px solid #2563eb; padding-left: .75rem; }
.single-article__content h3 { font-size: 1.15rem; margin: 2rem 0 .75rem; }
.single-article__content p  { margin-bottom: 1.2rem; }
.single-article__content img { border-radius: 6px; margin: 1rem 0; }

.single-article__tags a {
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: .15em .6em;
    font-size: .8rem;
    color: #555;
    margin: .2rem;
}

/* ================================================
   SNS シェアボタン
================================================ */
.share-buttons {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.share-buttons__label {
    font-size: .85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: .85rem;
    text-align: center;
}

.share-buttons__list {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6em 1.2em;
    border-radius: 5px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.share-btn--x    { background: #000; color: #fff; }
.share-btn--line { background: #06c755; color: #fff; }
.share-btn--copy { background: #6b7280; color: #fff; }

/* ================================================
   著者情報ボックス
================================================ */
.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    margin: 2rem 0;
}

.author-box__avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-box__name {
    font-weight: 700;
    margin-bottom: .35rem;
}

.author-box__bio {
    font-size: .88rem;
    color: #555;
    line-height: 1.7;
}

/* ================================================
   関連記事
================================================ */
.related-posts { margin: 3rem 0; }

.related-posts__title {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: .5rem;
    margin-bottom: 1.25rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.related-posts__item {
    display: block;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: box-shadow .2s, transform .15s;
    color: #1a1a1a;
}
.related-posts__item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.related-posts__item img,
.related-posts__no-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e5e7eb;
}

.related-posts__item-title {
    font-size: .88rem;
    padding: .75rem;
    line-height: 1.5;
}

/* ================================================
   レスポンシブ追加（スマホ）
================================================ */
@media (max-width: 700px) {
    .header__nav-toggle { display: block; }

    #primary-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        padding-bottom: .5rem;
    }
    #primary-menu.is-open { display: flex; }

    .author-box { flex-direction: column; align-items: center; text-align: center; }

    .related-posts__grid { grid-template-columns: repeat(2, 1fr); }

    .share-buttons__list { flex-direction: column; align-items: stretch; }
    .share-btn { justify-content: center; }
}

/* ================================================
   固定ページ（page.php）
================================================ */
.page-main { padding: 3rem 0 5rem; }

.page-article__header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #1e1e1e;
}

.page-article__title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #fff;
}

.page-article__thumb { margin-bottom: 2rem; }
.page-article__thumb img { border-radius: 8px; width: 100%; }

.page-article__content { font-size: 1rem; line-height: 1.9; color: #ccc; }
.page-article__content h2 { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 2rem 0 .75rem; border-left: 3px solid #c0392b; padding-left: .75rem; }
.page-article__content p  { margin-bottom: 1.2rem; }
.page-article__content ul { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.page-article__content li { margin-bottom: .4rem; }
.page-article__content a  { color: #c0392b; text-decoration: underline; }

/* ================================================
   アーカイブ・一覧ページ
================================================ */
.archive-main { padding: 3rem 0 5rem; }

.archive-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #1e1e1e;
}

.archive-header__title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    color: #fff;
}

.archive-header__desc {
    margin-top: .5rem;
    font-size: .9rem;
    color: #666;
}

.post-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.post-card {
    background: #141414;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.post-card:hover {
    border-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(192,57,43,.15);
}

.post-card__img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f0f0f;
}
.post-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.post-card:hover .post-card__img-wrap img { transform: scale(1.05); }

.post-card__no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: #111;
}

.post-card__cat {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: #c0392b;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .2em .7em;
    border-radius: 3px;
}

.post-card__body { padding: 1.1rem 1.25rem 1.4rem; }

.post-card__date {
    display: block;
    font-size: .75rem;
    color: #555;
    margin-bottom: .4rem;
}

.post-card__title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: .6rem;
    color: #e0e0e0;
}
.post-card__title a:hover { color: #fff; }

.post-card__excerpt {
    font-size: .82rem;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ページネーション */
.archive-pagination { text-align: center; }
.archive-pagination .nav-links { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.archive-pagination .page-numbers {
    display: inline-block;
    padding: .45em .9em;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #aaa;
    font-size: .9rem;
    transition: border-color .2s, color .2s;
}
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    border-color: #c0392b;
    color: #fff;
}

.archive-empty { text-align: center; color: #555; padding: 3rem 0; }

@media (max-width: 700px) {
    .post-card-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
    .post-card-grid { grid-template-columns: 1fr; }
}

/* ================================================
   フロントページ専用（心霊アフィサイト）
================================================ */

/* --- ヒーロー --- */
.fp-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #050505;
    color: #e8e8e8;
}

.fp-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(120,0,0,.35) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 20% 80%, rgba(60,0,80,.25) 0%, transparent 60%);
    animation: fp-fog 12s ease-in-out infinite alternate;
}

@keyframes fp-fog {
    from { opacity: .7; transform: scale(1); }
    to   { opacity: 1;  transform: scale(1.06); }
}

.fp-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 5%;
    max-width: 800px;
}

.fp-hero__eyebrow {
    font-size: .85rem;
    letter-spacing: .15em;
    color: #c0392b;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.fp-hero__heading {
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .02em;
    margin-bottom: 1.25rem;
    text-shadow: 0 0 40px rgba(200,0,0,.4);
}

.fp-hero__sub {
    font-size: clamp(.9rem, 2vw, 1.05rem);
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-inline: auto;
}

.fp-hero__btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* スクロール矢印 */
.fp-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}
.fp-hero__scroll span {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    animation: fp-scroll .9s ease-in-out infinite alternate;
}
@keyframes fp-scroll {
    from { opacity: .3; transform: rotate(45deg) translateY(-4px); }
    to   { opacity: 1;  transform: rotate(45deg) translateY(4px); }
}

/* --- セクション共通 --- */
.fp-section-title {
    font-size: clamp(1.3rem, 3.5vw, 1.75rem);
    font-weight: 800;
    text-align: center;
    color: #e8e8e8;
    margin-bottom: 2.5rem;
    letter-spacing: .06em;
}
.fp-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #c0392b;
    margin: .6rem auto 0;
}

/* --- カテゴリ導線 --- */
.fp-categories {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: #0f0f0f;
}

.fp-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.fp-cat-card {
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem;
    border-radius: 8px;
    border: 1px solid #222;
    background: #141414;
    transition: border-color .25s, transform .2s, box-shadow .25s;
    color: #e8e8e8;
}
.fp-cat-card:hover {
    border-color: #c0392b;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(192,57,43,.18);
}

/* カード背景：ノイズ質感オーバーレイ */
.fp-cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
    pointer-events: none;
}
.fp-cat-card { position: relative; }

/* ツーリングレポート：深夜の峠道 — 青みがかった暗い霧 */
.fp-cat-card--tour {
    background:
        linear-gradient(160deg, #0a0f1a 0%, #0d1a2e 50%, #050a10 100%);
    border-color: #1a2a3a;
}
.fp-cat-card--tour .fp-cat-card__icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    margin-top: .5rem;
    background: linear-gradient(90deg, #1a4a7a, transparent);
    border-radius: 2px;
}
.fp-cat-card--tour:hover { border-color: #2a6aaa; box-shadow: 0 8px 32px rgba(30,80,160,.25); }

/* 心霊スポット図鑑：血の滴るような深紅の闇 */
.fp-cat-card--spot {
    background:
        linear-gradient(160deg, #1a0505 0%, #2a0a0a 50%, #0f0303 100%);
    border-color: #2a0a0a;
}
.fp-cat-card--spot .fp-cat-card__icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    margin-top: .5rem;
    background: linear-gradient(90deg, #7a1a1a, transparent);
    border-radius: 2px;
}
.fp-cat-card--spot:hover { border-color: #c0392b; box-shadow: 0 8px 32px rgba(192,57,43,.3); }

/* 装備・ギアレビュー：工業的な深い緑 */
.fp-cat-card--gear {
    background:
        linear-gradient(160deg, #050f08 0%, #0a1f10 50%, #030a05 100%);
    border-color: #0a1f10;
}
.fp-cat-card--gear .fp-cat-card__icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    margin-top: .5rem;
    background: linear-gradient(90deg, #1a5a2a, transparent);
    border-radius: 2px;
}
.fp-cat-card--gear:hover { border-color: #2a7a3a; box-shadow: 0 8px 32px rgba(30,120,50,.22); }

.fp-cat-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.fp-cat-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .6rem;
    color: #fff;
}
.fp-cat-card__text {
    font-size: .88rem;
    color: #888;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}
.fp-cat-card__link {
    font-size: .82rem;
    color: #c0392b;
    font-weight: 600;
}

/* --- 新着記事 --- */
.fp-posts {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: #0a0a0a;
}

.fp-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.fp-post-card {
    background: #141414;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.fp-post-card:hover {
    border-color: #c0392b;
    transform: translateY(-3px);
}

.fp-post-card__img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f0f0f;
}
.fp-post-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.fp-post-card:hover .fp-post-card__img-wrap img { transform: scale(1.05); }

.fp-post-card__no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: #111;
}

.fp-post-card__cat {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: #c0392b;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .2em .7em;
    border-radius: 3px;
}

.fp-post-card__body { padding: 1rem 1.1rem 1.25rem; }

.fp-post-card__date {
    font-size: .75rem;
    color: #555;
    display: block;
    margin-bottom: .4rem;
}

.fp-post-card__title {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.5;
    color: #e0e0e0;
}
.fp-post-card__title a:hover { color: #fff; }

.fp-posts__more { text-align: center; }
.fp-posts__empty { text-align: center; color: #555; }

/* --- アフィリエイトCTA --- */
.fp-affiliate {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: linear-gradient(135deg, #0f0005 0%, #1a0010 50%, #0f0005 100%);
    border-top: 1px solid #2a0010;
}

.fp-affiliate__inner {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
}

.fp-affiliate__label {
    font-size: .75rem;
    letter-spacing: .15em;
    color: #c0392b;
    margin-bottom: 1rem;
}

.fp-affiliate__heading {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 1.25rem;
    text-shadow: 0 0 30px rgba(200,0,50,.3);
}

.fp-affiliate__text {
    color: #aaa;
    font-size: .95rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.fp-affiliate__points {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: 2rem;
    color: #ccc;
    font-size: .9rem;
}

.fp-affiliate__btn { font-size: 1rem; padding: .9em 2.5em; }

.fp-affiliate__note {
    margin-top: 1rem;
    font-size: .75rem;
    color: #555;
}

/* --- フロントページ レスポンシブ --- */
@media (max-width: 700px) {
    .fp-cat-grid       { grid-template-columns: 1fr; }
    .fp-posts__grid    { grid-template-columns: 1fr 1fr; }
    .fp-hero__btns     { flex-direction: column; align-items: center; }
    .fp-affiliate__points { align-items: center; }
}

@media (max-width: 480px) {
    .fp-posts__grid { grid-template-columns: 1fr; }
}