/* ==========================================================================
   Marche Brand Page
   ========================================================================== */

/* Page-level bg so any gap below the main element blends with the page (avoid
   the white strip at the bottom when the document is slightly taller than body). */
body.page-template-page-marche-brand,
body.single-marche_article {
    background-color: rgb(254 250 245); /* orange-25 */
}

/* ── Font family (cascades from body) ── */
.marche-body,
.marche-body button,
.marche-body input,
.marche-body select,
.marche-body textarea {
    font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

/* ── Page background gradient ── */
.marche-brand {
    background: linear-gradient(180deg, #fff 0%, #FEF6EE 30%, #FEF6EE 55%, #fff 100%);
    min-height: 100vh;
}

/* ── Focus visible ── */
.marche-brand a:focus-visible,
.marche-brand button:focus-visible {
    outline: 2px solid #EF6820;
    outline-offset: 2px;
}

/* ==========================================================================
   Password Shell — Tailwind 化済み (Phase 3)
   ========================================================================== */

/* ==========================================================================
   Hero — Tailwind 化済み (Phase 2)
   ========================================================================== */

/* ==========================================================================
   Sticky Nav + Dropdown — Tailwind 化済み (Phase 3)
   状態クラス: .is-sticky (JS toggle) / .is-active (JS toggle on .brand-nav__link)
   Tailwind arbitrary variant [&.is-sticky]:... と [&.is-active]:... で保持
   ========================================================================== */

/* ==========================================================================
   Section (shared) — used by Person + Recommend (Phase 1 territory)
   Items / Related は Phase 2 で Tailwind 化済み
   ========================================================================== */
.brand-section {
    padding: 40px 32px;
    display: flex;
    justify-content: center;
    scroll-margin-top: 80px;
}

.brand-section__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Zen Kaku Gothic New', "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.5;
}

/* ==========================================================================
   Person / Recommend / Recommend wave divider — Tailwind 化済み (Phase 1)
   レスポンシブ override のみ下部 @media に残存
   ========================================================================== */

/* ==========================================================================
   Item Cards / Article-Video Cards / Event Cards / Related grid / Scroll row /
   Related badge / Video play / Footer — Tailwind 化済み (Phase 2)
   ========================================================================== */

/* ==========================================================================
   Mobile fixed header — Tailwind 化済み (Phase 3)
   ========================================================================== */

/* ==========================================================================
   Responsive — Person / Recommend (Phase 1 territory leftover)
   Nav / Mobile header / Sticky nav は Tailwind responsive prefix で扱う
   ========================================================================== */
@media (max-width: 1023px) {
    /* Person card */
    .brand-person-card {
        width: 100%;
        padding: 32px 24px;
        border-radius: 24px;
    }

    /* Recommend: stack */
    .brand-recommend__heading {
        padding-left: 44px;
    }

    .brand-recommend__pin {
        width: 34px;
        height: 50px;
    }

    .brand-recommend__inner {
        flex-direction: column;
        padding: 48px 24px;
    }

    .brand-recommend__text {
        width: 100%;
    }

    .brand-recommend__image {
        width: 100%;
        height: 240px;
    }
}

@media (max-width: 767px) {
    /* Sections (Person uses .brand-section) */
    .brand-section {
        padding: 24px 16px;
    }

    /* Person: stack vertically */
    .brand-person-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .brand-person {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .brand-person__photo-wrap {
        width: 140px;
        height: 140px;
        border-radius: 70px;
        align-self: center;
    }

    .brand-person__photo {
        border-radius: 70px;
    }

    .brand-person__links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .brand-person__name {
        font-size: 16px;
    }

    .brand-person__bio {
        font-size: 14px;
        text-align: left;
        overflow-wrap: break-word;
    }

    .brand-section--person {
        padding-bottom: 40px;
    }

    /* Recommend */
    .brand-recommend-wave {
        height: 30px;
    }

    .brand-recommend-wave--bottom {
        height: 34px;
    }

    .brand-recommend__heading {
        padding-left: 36px;
    }

    .brand-recommend__pin {
        width: 28px;
        height: 40px;
    }

    .brand-recommend__inner {
        padding: 32px 16px;
        gap: 24px;
    }

    .brand-recommend__text {
        gap: 20px;
    }

    .brand-recommend__image {
        height: 200px;
    }
}

/* ==========================================================================
   Page background: solid orange-25 on tablet & below, gradient on desktop
   Section scroll margin accounts for mobile header (56px) + sticky nav (~64px)
   ========================================================================== */
@media (max-width: 1023px) {
    .marche-brand {
        background: #FEFAF5; /* orange-25 */
    }

    .brand-section,
    .brand-recommend {
        scroll-margin-top: 120px;
    }
}


/* ==========================================================================
   Marche Article Single (single-marche_article.php)
   ========================================================================== */

.marche-article-body { color: #1A1A1A; line-height: 1.75; }

.marche-article-body h2 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1A1A1A;
    margin: 3rem 0 1.5rem;
}
@media (min-width: 1024px) {
    .marche-article-body h2 { font-size: 1.5rem; }
}

.marche-article-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1A1A1A;
    margin: 2.5rem 0 1rem;
}

.marche-article-body p {
    margin: 1.5rem 0;
    line-height: 1.75;
    color: #1A1A1A;
}

.marche-article-body a {
    color: #EF6820;
    text-decoration: none;
}
.marche-article-body a:hover { text-decoration: underline dashed; }

.marche-article-body ol,
.marche-article-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.marche-article-body ol { list-style: decimal; }
.marche-article-body ul { list-style: disc; }

.marche-article-body li {
    margin: 0.25rem 0;
    line-height: 1.75;
}

.marche-article-body strong { font-weight: 600; }

.marche-article-body img:not(.emoji) {
    display: block;
    margin: 1.5rem auto;
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}

.marche-article-body img.emoji {
    display: inline;
    width: 1em;
    height: 1em;
    margin: 0 0.05em 0 0.1em;
    vertical-align: -0.1em;
    border-radius: 0;
}

.marche-article-body > *:first-child { margin-top: 0; }
.marche-article-body > *:last-child  { margin-bottom: 0; }

/* Per-brand recommend image overrides */
.brand-recommend__image--fukunomo img.object-cover { object-fit: contain; }
.brand-recommend__image--awarefy img.object-cover { object-fit: contain; }
@media (min-width: 1024px) {
    .brand-recommend__image--qqenglish { height: auto !important; align-self: center; }
    .brand-recommend__image--qqenglish img.object-cover { height: auto; object-fit: cover; }
}

/* ── Like button (WP ULike Robeen) ── */
.brand-like {
    display: inline-flex;
    align-self: flex-start;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #E5E2DE;
    border-radius: 9999px;
    background: #fff;
    transition: border-color 0.15s ease;
    cursor: pointer;
}
.brand-like .count-box {
    cursor: pointer;
}
.brand-like:hover {
    border-color: #EF6820;
}
.brand-like .wpulike {
    display: inline-flex;
    margin: 0;
    padding: 0;
}
.brand-like .wpulike-robeen .count-box {
    color: #511C10;
    font-weight: 400;
    font-size: 14px;
    padding: 0 0 0 8px;
}
.brand-like .wpulike-robeen button.wp_ulike_btn {
    width: 24px;
    height: 24px;
}
.brand-like .wpulike-robeen .wp_ulike_put_image:after {
    filter: hue-rotate(20deg) saturate(1.1);
    background-size: 2320px 80px;
    width: 80px;
    height: 80px;
}
.brand-like .wpulike-robeen .wp_ulike_put_image.wp_ulike_btn_is_active:after {
    background-position: -2240px 0;
}
