/*
Theme Name: Minfuu Corporate
Theme URI: https://minfuu.info
Author: みんふう
Author URI: https://minfuu.info
Description: みんふう コーポレートポータルテーマ — 和楽器・教室・IT・会計 6事業の総合ポータル
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: minfuu
*/

/* ============================================================
   Google Fonts — Noto Serif JP (見出し) + Noto Sans JP (本文)
   functions.php の wp_enqueue_scripts でロード済み
============================================================ */

/* ============================================================
   Design Tokens
============================================================ */
:root {
    /* Colors */
    --c-bg:           #0b0917;
    --c-bg-mid:       #100d21;
    --c-bg-card:      #13102a;
    --c-bg-card-alt:  #0f0c1f;
    --c-bg-accent:    #1a1535;
    --c-bg-dark:      #07050f;
    --c-gold:         #c9962a;
    --c-gold-hover:   #dba832;
    --c-gold-dim:     rgba(201,150,42,0.15);
    --c-gold-border:  rgba(201,150,42,0.35);
    --c-gold-glow:    rgba(201,150,42,0.08);
    --c-line:         #06c755;
    --c-text:         #ede8da;
    --c-text-sub:     #a89ec0;
    --c-text-dim:     #6b6185;
    --c-text-faint:   #3d3660;
    --c-border:       rgba(255,255,255,0.07);
    --c-border-mid:   rgba(255,255,255,0.12);

    /* Typography */
    --f-serif: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    --f-sans:  'Noto Sans JP', 'Hiragino Kino ProN', 'Yu Gothic', 'YuGothic', sans-serif;

    /* Spacing */
    --max-w: 1160px;
    --sp-section: 96px;

    /* Radius */
    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  16px;
    --r-xl:  24px;
}

/* ============================================================
   Reset
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--f-sans);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================================
   Typography Scale
============================================================ */
.t-serif { font-family: var(--f-serif); }

h1, h2, h3 {
    font-family: var(--f-serif);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* Section labeling */
.label {
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
    display: block;
    margin-bottom: 12px;
}

.section-heading {
    font-size: clamp(24px, 3vw, 32px);
    color: var(--c-text);
    margin-bottom: 12px;
}

.section-sub {
    font-size: 14px;
    color: var(--c-text-dim);
    line-height: 1.8;
}

.divider {
    width: 36px;
    height: 1.5px;
    background: var(--c-gold);
    margin: 16px 0 36px;
}
.divider--c { margin: 16px auto 36px; }

/* ============================================================
   Layout
============================================================ */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px;
}

section { position: relative; }

.section-inner {
    padding: var(--sp-section) 48px;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* ============================================================
   Buttons
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--r-sm);
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: background 0.25s, color 0.25s, transform 0.15s, box-shadow 0.25s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--gold {
    background: var(--c-gold);
    color: #0b0917;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(201,150,42,0.25);
}
.btn--gold:hover {
    background: var(--c-gold-hover);
    box-shadow: 0 6px 28px rgba(201,150,42,0.38);
}

.btn--ghost {
    background: transparent;
    color: var(--c-gold);
    border: 1px solid var(--c-gold-border);
}
.btn--ghost:hover {
    background: var(--c-gold-dim);
    border-color: var(--c-gold);
}

.btn--line {
    background: var(--c-line);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(6,199,85,0.2);
}
.btn--line:hover { box-shadow: 0 6px 24px rgba(6,199,85,0.35); }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   Sticky Header
============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(11,9,23,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-logo {
    font-family: var(--f-serif);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    color: var(--c-text);
}
.site-logo em {
    font-style: normal;
    color: var(--c-gold);
}

.primary-nav { flex: 1; }
.primary-nav ul { display: flex; gap: 36px; }
.primary-nav a {
    font-size: 13px;
    color: var(--c-text-sub);
    letter-spacing: 0.03em;
    transition: color 0.2s;
    position: relative;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--c-gold);
    transition: width 0.25s;
}
.primary-nav a:hover { color: var(--c-text); }
.primary-nav a:hover::after { width: 100%; }

.header-cta { margin-left: auto; padding: 10px 22px; font-size: 13px; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--c-text);
    transition: transform 0.3s, opacity 0.2s;
}

/* ============================================================
   Hero
============================================================ */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    overflow: hidden;
}

/* 背景装飾 */
.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero__bg::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 60%; height: 80%;
    background: radial-gradient(ellipse, rgba(201,150,42,0.055) 0%, transparent 65%);
}
.hero__bg::after {
    content: '';
    position: absolute;
    bottom: 0; right: -10%;
    width: 50%; height: 60%;
    background: radial-gradient(ellipse, rgba(83,74,183,0.07) 0%, transparent 65%);
}

/* 縦線装飾 */
.hero__lines {
    position: absolute;
    top: 0; right: 120px;
    height: 100%;
    display: flex;
    gap: 28px;
    pointer-events: none;
    opacity: 0.07;
}
.hero__lines span {
    display: block;
    width: 1px;
    height: 100%;
    background: var(--c-gold);
}

.hero__inner {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 80px 48px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 80px;
    align-items: center;
}

/* バッジ */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--c-gold-dim);
    border: 1px solid var(--c-gold-border);
    border-radius: 40px;
    padding: 5px 16px 5px 10px;
    font-size: 12px;
    color: var(--c-gold);
    letter-spacing: 0.05em;
    margin-bottom: 28px;
}
.hero__badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-gold);
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--c-gold);
}

/* タイトル */
.hero__title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 8px;
    color: var(--c-text);
}
.hero__title .gold {
    color: var(--c-gold);
    position: relative;
}
.hero__title .gold::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--c-gold), transparent);
    opacity: 0.5;
}

.hero__tagline {
    font-family: var(--f-sans);
    font-size: 15px;
    color: var(--c-text-sub);
    margin-bottom: 36px;
    line-height: 1.9;
    max-width: 480px;
}

.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

/* 事業タグ */
.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hero__tag {
    font-size: 11px;
    color: var(--c-text-dim);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 3px 10px;
    letter-spacing: 0.05em;
    transition: border-color 0.2s, color 0.2s;
}
.hero__tag:hover { border-color: var(--c-gold-border); color: var(--c-gold); }

/* 実績カード */
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.stat-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 22px 20px;
    transition: border-color 0.25s;
}
.stat-card:hover { border-color: var(--c-gold-border); }

.stat-card__num {
    font-family: var(--f-serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--c-gold);
    line-height: 1.15;
    margin-bottom: 6px;
}
.stat-card__label {
    font-size: 11px;
    color: var(--c-text-dim);
    letter-spacing: 0.05em;
    line-height: 1.5;
}

/* ============================================================
   Business Section
============================================================ */
.business-section {
    background: var(--c-bg-mid);
    border-bottom: 1px solid var(--c-border);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--c-border);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.biz-card {
    background: var(--c-bg-card);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: background 0.25s;
    position: relative;
}
.biz-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.biz-card:hover { background: var(--c-bg-accent); }
.biz-card:hover::before { opacity: 1; }

.biz-card--featured {
    background: var(--c-bg-accent);
}
.biz-card--featured::before { opacity: 0.6; }

.biz-card__badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--c-gold);
    border: 1px solid var(--c-gold-border);
    border-radius: 3px;
    padding: 2px 8px;
    margin-bottom: 16px;
    width: fit-content;
}

.biz-card__icon {
    font-size: 28px;
    margin-bottom: 14px;
    line-height: 1;
}

.biz-card__tag {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--c-text-dim);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.biz-card__name {
    font-family: var(--f-serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 12px;
    line-height: 1.45;
}

.biz-card__desc {
    font-size: 13px;
    color: var(--c-text-sub);
    line-height: 1.8;
    flex: 1;
    margin-bottom: 24px;
}

.biz-card__link {
    font-size: 12px;
    color: var(--c-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.03em;
    margin-top: auto;
    transition: gap 0.2s;
}
.biz-card:hover .biz-card__link { gap: 10px; }
.biz-card__link-arrow { transition: transform 0.2s; }
.biz-card:hover .biz-card__link-arrow { transform: translateX(3px); }

/* ============================================================
   Trust Section
============================================================ */
.trust-section {
    background: var(--c-bg-dark);
    border-bottom: 1px solid var(--c-border);
}

.trust-section .section-inner { text-align: center; }
.trust-section .divider { margin: 16px auto 48px; }

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--c-border);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    text-align: left;
    margin-top: 0;
}

.trust-item {
    background: var(--c-bg-card);
    padding: 36px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: background 0.2s;
}
.trust-item:hover { background: var(--c-bg-accent); }

.trust-item__icon {
    font-size: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

.trust-item__title {
    font-family: var(--f-serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 8px;
}

.trust-item__desc {
    font-size: 13px;
    color: var(--c-text-sub);
    line-height: 1.8;
}

/* ============================================================
   CTA Bar
============================================================ */
.cta-bar {
    background: var(--c-bg-accent);
    border-bottom: 1px solid var(--c-border);
    position: relative;
    overflow: hidden;
}
.cta-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(201,150,42,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.cta-bar__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.cta-bar__heading {
    font-family: var(--f-serif);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 8px;
}

.cta-bar__sub {
    font-size: 13px;
    color: var(--c-text-dim);
}

.cta-bar__btns { display: flex; gap: 12px; flex-shrink: 0; }

/* ============================================================
   Footer
============================================================ */
.site-footer {
    background: var(--c-bg-dark);
    border-top: 1px solid var(--c-border);
}

.footer-top {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 64px 48px 48px;
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 48px;
    border-bottom: 1px solid var(--c-border);
}

.footer-brand__logo {
    font-family: var(--f-serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}
.footer-brand__logo em { font-style: normal; color: var(--c-gold); }

.footer-brand__desc {
    font-size: 13px;
    color: var(--c-text-dim);
    line-height: 1.9;
    margin-bottom: 20px;
}

.footer-brand__meta {
    font-size: 11px;
    color: var(--c-text-faint);
    line-height: 2;
}

.footer-col h4 {
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 18px;
}

.footer-col li {
    font-size: 12px;
    color: var(--c-text-dim);
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-col li:hover { color: var(--c-text); }
.footer-col li a { color: inherit; }

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 48px;
    font-size: 11px;
    color: var(--c-text-faint);
    letter-spacing: 0.05em;
}

/* ============================================================
   SEO: Schema markup visibility helpers
============================================================ */
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ============================================================
   Utility: Breadcrumb
============================================================ */
.breadcrumb {
    font-size: 12px;
    color: var(--c-text-dim);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.breadcrumb a { color: var(--c-text-dim); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--c-gold); }
.breadcrumb__sep { color: var(--c-text-faint); }

/* ============================================================
   Content pages (page.php / single.php)
============================================================ */
.entry-content {
    font-size: 15px;
    color: var(--c-text-sub);
    line-height: 1.95;
}
.entry-content h2 {
    font-size: 22px; margin: 48px 0 16px;
    padding-bottom: 12px; border-bottom: 1px solid var(--c-border);
}
.entry-content h3 { font-size: 18px; margin: 36px 0 12px; }
.entry-content p { margin-bottom: 20px; }
.entry-content a { color: var(--c-gold); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px 1.5em; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: var(--r-md); margin: 24px 0; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-block: 1.5em;
}
.entry-content th {
    background: var(--c-bg-accent);
    font-family: var(--f-sans);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-gold);
    font-weight: 400;
    padding: 10px 16px;
    border-bottom: 1px solid var(--c-gold-border);
    text-align: left;
}
.entry-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text-sub);
    vertical-align: top;
    line-height: 1.8;
}
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:nth-child(even) td { background: var(--c-bg-card); }

/* ============================================================
   Archive Header
============================================================ */
.archive-header { margin-bottom: 48px; }
.archive-header__title { margin-bottom: 0; }
.archive-header__count { font-size: 13px; color: var(--c-text-dim); margin-bottom: 8px; }
.archive-header__desc { font-size: 14px; color: var(--c-text-sub); line-height: 1.8; max-width: 600px; }

/* ============================================================
   Post Grid (Card Layout)
============================================================ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.post-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.post-card:hover {
    border-color: var(--c-gold-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.post-card__thumb-link { display: block; overflow: hidden; }
.post-card__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    border-radius: 0;
    margin: 0;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__thumb--fallback {
    background: linear-gradient(135deg, var(--c-bg-accent), var(--c-bg-mid));
    border-bottom: 1px solid var(--c-border);
    position: relative;
}
.post-card__thumb--fallback::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, var(--c-gold-glow), transparent 60%);
}

.post-card__body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.post-card__cat {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--c-gold);
    border: 1px solid var(--c-gold-border);
    border-radius: 3px;
    padding: 2px 8px;
    transition: background 0.2s;
    white-space: nowrap;
}
.post-card__cat:hover { background: var(--c-gold-dim); }
.post-card__date { font-size: 11px; color: var(--c-text-dim); }

.post-card__title {
    font-family: var(--f-serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color 0.2s;
}
.post-card:hover .post-card__title { color: var(--c-gold); }
.post-card__title a { color: inherit; }

.post-card__excerpt {
    font-size: 13px;
    color: var(--c-text-dim);
    line-height: 1.75;
    flex: 1;
    margin-bottom: 20px;
}

.post-card__more {
    font-size: 12px;
    color: var(--c-gold);
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}
.post-card__arrow { transition: transform 0.2s; display: inline-block; }
.post-card:hover .post-card__arrow { transform: translateX(4px); }

/* ============================================================
   Pagination
============================================================ */
.posts-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}
.posts-pagination .nav-links { display: flex; gap: 8px; align-items: center; }
.posts-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--c-text-dim);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.posts-pagination .page-numbers:hover { border-color: var(--c-gold-border); color: var(--c-gold); }
.posts-pagination .page-numbers.current {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: #0b0917;
    font-weight: 500;
}
.posts-pagination .page-numbers.dots { border: none; color: var(--c-text-faint); pointer-events: none; }

/* ============================================================
   Posts list (legacy — kept for compatibility)
============================================================ */
.posts-list { display: grid; gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.post-item {
    background: var(--c-bg-card);
    padding: 28px 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: background 0.2s;
}
.post-item:hover { background: var(--c-bg-accent); }
.post-item__date { font-size: 11px; color: var(--c-text-dim); white-space: nowrap; padding-top: 5px; flex-shrink: 0; }
.post-item__title { font-family: var(--f-serif); font-size: 17px; color: var(--c-text); margin-bottom: 6px; transition: color 0.2s; }
.post-item:hover .post-item__title { color: var(--c-gold); }
.post-item__excerpt { font-size: 13px; color: var(--c-text-dim); line-height: 1.7; }

/* ============================================================
   Responsive — Tablet
============================================================ */
@media (max-width: 1024px) {
    :root { --sp-section: 72px; }
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__stats { grid-template-columns: repeat(4, 1fr); }
    .business-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ============================================================
   Responsive — Mobile
============================================================ */
@media (max-width: 768px) {
    :root { --sp-section: 56px; }

    .wrap, .section-inner, .site-header__inner,
    .cta-bar__inner, .footer-top, .footer-bottom { padding-left: 20px; padding-right: 20px; }

    /* Post Grid */
    .post-grid { grid-template-columns: 1fr; gap: 16px; }
    .post-card__body { padding: 20px 20px 24px; }

    /* Nav */
    .primary-nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }
    .primary-nav.is-open {
        display: block;
        position: fixed;
        top: 64px; left: 0; right: 0; bottom: 0;
        background: rgba(11,9,23,0.97);
        backdrop-filter: blur(12px);
        padding: 32px 24px;
        z-index: 199;
        overflow-y: auto;
    }
    .primary-nav.is-open ul { flex-direction: column; gap: 0; }
    .primary-nav.is-open a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--c-border);
        color: var(--c-text);
    }

    /* Hero */
    .hero { min-height: auto; }
    .hero__inner { padding: 60px 20px; }
    .hero__title { font-size: 30px; }
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
    .hero__lines { display: none; }

    /* Cards */
    .business-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }

    /* CTA Bar */
    .cta-bar__inner { flex-direction: column; text-align: center; }
    .cta-bar__btns { flex-wrap: wrap; justify-content: center; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   WordPress Core
============================================================ */
.wp-block-image img { height: auto; }
.aligncenter { display: block; margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================================
   ショートコード: FAQ
============================================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin: 32px 0;
    background: var(--c-border);
}
.faq-item {
    background: var(--c-bg-card);
    transition: background 0.2s;
}
.faq-item:hover { background: var(--c-bg-accent); }
.faq-item__q {
    font-family: var(--f-serif);
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text);
    padding: 20px 24px 20px 60px;
    position: relative;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.faq-item__q::before {
    content: 'Q';
    position: absolute;
    left: 20px;
    top: 18px;
    width: 26px;
    height: 26px;
    background: var(--c-gold);
    color: #0b0917;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
}
.faq-item__a {
    padding: 16px 24px 20px 60px;
    font-size: 13px;
    color: var(--c-text-sub);
    line-height: 1.85;
    position: relative;
    border-top: 1px solid var(--c-border);
}
.faq-item__a::before {
    content: 'A';
    position: absolute;
    left: 20px;
    top: 16px;
    width: 26px;
    height: 26px;
    background: var(--c-text-faint);
    color: var(--c-text-sub);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
}

/* ============================================================
   ショートコード: HowTo
============================================================ */
.howto {
    margin: 32px 0;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.howto__title {
    font-family: var(--f-serif);
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text);
    padding: 18px 24px;
    border-bottom: 1px solid var(--c-border);
    letter-spacing: 0.04em;
    background: var(--c-bg-accent);
    margin: 0;
}
.howto__steps {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.howto-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--c-bg-card-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    transition: border-color 0.2s;
}
.howto-step:hover { border-color: var(--c-gold-border); }
.howto-step__num {
    display: flex;
    width: 28px;
    height: 28px;
    background: var(--c-gold-dim);
    color: var(--c-gold);
    border: 1px solid var(--c-gold-border);
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 500;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--f-serif);
}
.howto-step__body { flex: 1; }
.howto-step__name {
    display: block;
    font-family: var(--f-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 6px;
}
.howto-step__text {
    font-size: 13px;
    color: var(--c-text-sub);
    line-height: 1.8;
}
.howto-step__text p { margin: 0; }

/* ============================================================
   記事一覧ページ ライトモード (body.home / body.blog / body.archive)
============================================================ */
body.home,
body.blog,
body.archive {
    background: #f7f4ee;
}

body:is(.home, .blog, .archive) .section-heading,
body:is(.home, .blog, .archive) .archive-header__title {
    color: #1c1633;
}

body:is(.home, .blog, .archive) .archive-header__count {
    color: #7a6f95;
}

body:is(.home, .blog, .archive) .archive-header__desc {
    color: #2e2848;
}

/* カード */
body:is(.home, .blog, .archive) .post-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

body:is(.home, .blog, .archive) .post-card:hover {
    border-color: var(--c-gold-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body:is(.home, .blog, .archive) .post-card__thumb--fallback {
    background: linear-gradient(135deg, #f0ece4, #e8e2d8);
}

body:is(.home, .blog, .archive) .post-card__title {
    color: #1c1633;
}

body:is(.home, .blog, .archive) .post-card:hover .post-card__title {
    color: var(--c-gold);
}

body:is(.home, .blog, .archive) .post-card__excerpt {
    color: #2e2848;
}

body:is(.home, .blog, .archive) .post-card__date {
    color: #7a6f95;
}

/* カテゴリバッジ・続きを読む（白背景でのゴールドはコントラスト不足になるため濃くする） */
body:is(.home, .blog, .archive) .post-card__cat {
    color: #7a5c10;
    border-color: rgba(122, 92, 16, 0.4);
    background: rgba(201, 150, 42, 0.08);
}
body:is(.home, .blog, .archive) .post-card__cat:hover {
    background: rgba(201, 150, 42, 0.15);
}
body:is(.home, .blog, .archive) .post-card__more {
    color: #7a5c10;
}

/* ページネーション */
body:is(.home, .blog, .archive) .posts-pagination .page-numbers {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #4d4570;
}

body:is(.home, .blog, .archive) .posts-pagination .page-numbers:hover {
    border-color: var(--c-gold-border);
    color: var(--c-gold);
    background: #fff;
}

body:is(.home, .blog, .archive) .posts-pagination .page-numbers.current {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: #fff;
}

body:is(.home, .blog, .archive) .posts-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #b0a8c8;
}

/* ============================================================
   投稿ページ共通スタイル
============================================================ */
.single-date {
    font-size: 11px;
    color: var(--c-text-dim);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--c-border);
    font-size: 13px;
    color: var(--c-gold);
    gap: 16px;
}
.post-nav a { color: var(--c-gold); }

/* ============================================================
   投稿ページ ライトモード (body.single)
============================================================ */
body.single {
    background: #f7f4ee;
}

/* タイトル・パンくず */
body.single .section-heading {
    color: #1c1633;
}
body.single .breadcrumb {
    color: #7a6f95;
}
body.single .breadcrumb a {
    color: #7a6f95;
}
body.single .breadcrumb a:hover {
    color: var(--c-gold);
}
body.single .breadcrumb__sep {
    color: #b0a8c8;
}

/* 本文エリア */
body.single .entry-content {
    color: #2e2848;
}
body.single .entry-content h2 {
    color: #1c1633;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
body.single .entry-content h3 {
    color: #1c1633;
}
body.single .entry-content p {
    color: #2e2848;
}
body.single .entry-content li {
    color: #2e2848;
}
body.single .entry-content strong {
    color: #1c1633;
}

/* テーブル */
body.single .entry-content th {
    background: #ede8df;
    color: #7a5c1a;
    border-bottom-color: rgba(201, 150, 42, 0.3);
}
body.single .entry-content td {
    color: #2e2848;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.single .entry-content tr:nth-child(even) td {
    background: #f0ede6;
}

/* 日付 */
body.single .single-date {
    color: #7a6f95;
}

/* 前後記事ナビ */
body.single .post-nav {
    border-top-color: rgba(0, 0, 0, 0.1);
    color: var(--c-gold);
}
