:root {
    --brand-green: #123c2b;
    --brand-green-2: #1f6b48;
    --brand-red: #9a2632;
    --brand-ink: #1e2923;
    --brand-body: #34483e;
    --brand-muted: #66736b;
    --brand-line: #e2dacd;
    --brand-paper: #f7f2e8;
    --brand-white: #fffdf8;
    --brand-soft: #eaf3eb;
}

body {
    background: var(--brand-paper) !important;
    color: var(--brand-ink) !important;
    font-family: "Noto Sans JP","Yu Gothic",Meiryo,sans-serif !important;
    line-height: 1.95 !important;
    letter-spacing: 0 !important;
    font-feature-settings: "palt";
}

img {
    max-width: 100%;
    height: auto;
}

p,
li,
td,
dd {
    color: var(--brand-body) !important;
    font-size: 16px !important;
    line-height: 1.95 !important;
}

h1,
h2,
h3,
h4 {
    letter-spacing: 0 !important;
}

h1,
.page-h1 {
    color: var(--brand-green) !important;
    font-family: "Noto Serif JP","Yu Mincho",serif !important;
    font-size: clamp(34px,5.2vw,58px) !important;
    line-height: 1.32 !important;
    font-weight: 700 !important;
}

h2,
.section-title {
    color: var(--brand-green) !important;
    font-family: "Noto Serif JP","Yu Mincho",serif !important;
    font-size: clamp(25px,3.8vw,40px) !important;
    line-height: 1.45 !important;
    margin-top: 1.8em !important;
}

h2 small,
.section-title small {
    display: block !important;
    color: var(--brand-red) !important;
    font-family: "Noto Sans JP","Yu Gothic",Meiryo,sans-serif !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    margin-bottom: 6px !important;
}

h3 {
    color: var(--brand-green) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
}

header,
.site-header,
.header,
[class*="header"],
[class*="Header"] {
    background: rgba(247,242,232,.96) !important;
    border-bottom: 1px solid var(--brand-line) !important;
}

header a,
.site-header a,
.header a,
[class*="header"] a {
    color: var(--brand-green) !important;
    text-decoration: none !important;
}

main,
.main,
.contents,
.content,
.blog_body,
.article,
[class*="contents"],
[class*="container"] {
    color: var(--brand-ink) !important;
}

.blog_body,
.article,
.content,
.main > div,
[class*="text_text"] {
    max-width: 1040px;
}

.breadcrumb,
.breadcrumbs,
[class*="breadcrumb"] {
    color: var(--brand-muted) !important;
    font-size: 13px !important;
}

.pickup_link_aa5dad1a,
.product-card,
.info-card,
.related-item,

[class*="pickup_link"],
[class*="info-card"],
[class*="related"] {
    background: var(--brand-white) !important;
    border: 1px solid var(--brand-line) !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 32px rgba(18,60,43,.08) !important;
    overflow: hidden !important;
}

.pickup_link_aa5dad1a:hover,
.product-card:hover,
.info-card:hover,
[class*="pickup_link"]:hover {
    transform: translateY(-2px);
    transition: .18s ease;
}

table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: var(--brand-white) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

th,
td {
    border: 1px solid var(--brand-line) !important;
    padding: 13px !important;
}

th {
    background: var(--brand-soft) !important;
    color: var(--brand-green) !important;
}

.btn,
.button,
button,
[class*="btn"],
[class*="button"],

a[href*="/p/00018"],
a[href*="items"],
a[href*="amazon"],
a[href*="shopping.yahoo"] {
    border-radius: 8px !important;
    font-weight: 900 !important;
}

.hidegen-sales-cta {
    max-width: 1040px;
    margin: 36px auto;
    padding: 28px;
    border-radius: 12px;
    background: var(--brand-green);
    color: white;
    box-shadow: 0 18px 42px rgba(18,60,43,.16);
}

.hidegen-sales-cta h2 {
    margin: 0 0 8px !important;
    color: white !important;
    font-size: 28px !important;
}

.hidegen-sales-cta p {
    margin: 0 !important;
    color: rgba(255,255,255,.86) !important;
}

.hidegen-sales-cta .cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hidegen-sales-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    background: white;
    color: var(--brand-green) !important;
    text-decoration: none;
    font-weight: 900;
}

.hidegen-sales-cta a.secondary {
    background: rgba(255,255,255,.12);
    color: white !important;
    border: 1px solid rgba(255,255,255,.32);
}

footer,
.site-footer,
[class*="footer"] {
    background: var(--brand-green) !important;
    color: white !important;
}

footer a,
.site-footer a,
[class*="footer"] a {
    color: white !important;
}

@media (max-width:880px){
    p,
    li,
    td,
    dd {
        font-size: 15px !important;
    }

    h1,
    .page-h1 {
        font-size: clamp(29px,8vw,42px) !important;
    }

    h2,
    .section-title {
        font-size: clamp(23px,6vw,31px) !important;
    }

    .hidegen-sales-cta {
        margin: 28px 16px;
        padding: 22px;
    }

    .hidegen-sales-cta .cta-links {
        display: block;
    }

    .hidegen-sales-cta a {
        display: flex;
        margin-top: 10px;
    }
}

/* Product card price/button fix */
.product-grid,
.grid.four,
.grid.three {
    align-items: stretch;
}

.product-card {
    display: flex !important;
    flex-direction: column !important;
    color: var(--brand-ink) !important;
    text-decoration: none !important;
}

.product-card img {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    object-fit: contain !important;
    background: white !important;
}

.product-card-body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 9px !important;
    padding: 14px !important;
    background: var(--brand-white) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.product-card-title,
.product-card h3 {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 3.1em !important;
    color: var(--brand-green) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    font-weight: 900 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.product-card p:not(.product-card-price) {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--brand-body) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.product-card-price {
    margin: 2px 0 0 !important;
    padding: 0 !important;
    color: var(--brand-red) !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.product-card-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    margin-top: auto !important;
    padding: 9px 12px !important;
    color: white !important;
    background: var(--brand-red) !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.product-card:hover .product-card-btn {
    background: #7f1f29 !important;
}

.shop-grid {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
}

.shop-grid .card {
    min-width: 0 !important;
    overflow-wrap: break-word !important;
}

@media (max-width:880px){
    .shop-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile product grid: show products two per row */
@media (max-width:880px){
    .grid.four:has(.product-card),
    .product-grid {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 12px !important;
    }

    .product-card-body {
        padding: 11px !important;
        gap: 7px !important;
    }

    .product-card-title,
    .product-card h3 {
        min-height: 3.4em !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .product-card p:not(.product-card-price) {
        font-size: 12px !important;
        line-height: 1.55 !important;
    }

    .product-card-price {
        font-size: 17px !important;
    }

    .product-card-btn {
        min-height: 38px !important;
        font-size: 12px !important;
        padding: 8px 8px !important;
    }
}

/* Dark background readability fix */
.page-hero,
.inline-cta,
.sidebar-cta,
.hidegen-sales-cta,
.site-footer,
footer {
    color: white !important;
}

.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero p,
.page-hero .page-hero-eyebrow,
.inline-cta h1,
.inline-cta h2,
.inline-cta h3,
.inline-cta p,
.sidebar-cta h1,
.sidebar-cta h2,
.sidebar-cta h3,
.sidebar-cta h4,
.sidebar-cta p,
.sidebar-cta li,
.hidegen-sales-cta h1,
.hidegen-sales-cta h2,
.hidegen-sales-cta h3,
.hidegen-sales-cta p,
.site-footer p,
.site-footer li,
.site-footer strong,
.site-footer a,
footer p,
footer li,
footer strong,
footer a {
    color: white !important;
}

.page-hero .page-hero-eyebrow,
.sidebar-cta-header p {
    color: #9ee6b8 !important;
}

.page-hero p,
.inline-cta p,
.sidebar-product-name,
.site-footer .footer-credit,
footer .footer-credit {
    color: rgba(255,255,255,.78) !important;
}

.sidebar-product-price {
    color: #ffb4b4 !important;
}

.inline-cta .btn-secondary-cta,
.sidebar-cta .btn-secondary-cta,
.sidebar-cta a[style*="color:white"] {
    color: white !important;
}

/* Sidebar CTA header contrast fix */
.sidebar-cta-header {
    background: linear-gradient(135deg,#123c2b,#1f6b48) !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

.sidebar-cta-header h3,
.sidebar-cta-header h3 * {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.18) !important;
}

.sidebar-cta-header p {
    color: #9ee6b8 !important;
    text-shadow: none !important;
}

/* Button text contrast fix */
.buy-btn,
.btn-primary-cta,
.product-card-btn,
.sidebar-product-btn,
.hero-actions a.buy-btn,
.hero-actions a[class*="btn"],
a.buy-btn,
a.btn-primary-cta,
a.product-card-btn,
a.sidebar-product-btn {
    color:  !important;
}

.sub-btn,
a.sub-btn {
    color: var(--brand-green) !important;
}

.buy-btn:hover,
.btn-primary-cta:hover,
.product-card-btn:hover,
.sidebar-product-btn:hover {
    color: white !important;
}

/* Top final offer brand styling */
.final-offer-inner {
    background: linear-gradient(135deg,#123c2b 0%,#184832 62%,#f7f2e8 62%,#f7f2e8 100%) !important;
    border: 1px solid rgba(176,138,60,.28) !important;
    box-shadow: 0 18px 42px rgba(18,60,43,.16) !important;
}

.final-offer-kicker {
    margin: 0 0 8px !important;
    color: #cdb778 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
}

.final-offer h2 {
    color: white !important;
}

.final-offer p:not(.final-offer-kicker) {
    color: rgba(255,255,255,.86) !important;
}

.final-offer .buy-btn {
    background: #fffdf8 !important;
    color: #123c2b !important;
    border: 1px solid rgba(176,138,60,.42) !important;
    box-shadow: 0 10px 24px rgba(18,60,43,.12) !important;
}

.final-offer .buy-btn:hover {
    background: #f2eadb !important;
    color: #123c2b !important;
}

@media (max-width:900px){
    .final-offer-inner {
        background: linear-gradient(135deg,#123c2b 0%,#184832 100%) !important;
    }
}

/* Top liquid-first sales flow */
.liquid-panel img {
    object-fit: contain !important;
    padding: 28px !important;
    background: #fffdf8 !important;
}

.liquid-panel .buy-btn {
    background: #123c2b !important;
    color: white !important;
}

.liquid-panel .buy-btn:hover {
    background: #1f6b48 !important;
    color: white !important;
}

.liquid-panel .sub-btn {
    background: #fffdf8 !important;
    border: 1px solid rgba(18,60,43,.22) !important;
}

/* Secondary button readability in hero actions */
.hero-actions .sub-btn,
.liquid-panel .hero-actions .sub-btn,
a.sub-btn {
    background: #fffdf8 !important;
    color: #123c2b !important;
    border: 1px solid rgba(18,60,43,.26) !important;
    box-shadow: none !important;
}

.hero-actions .sub-btn:hover,
.liquid-panel .hero-actions .sub-btn:hover,
a.sub-btn:hover {
    background: #eaf3eb !important;
    color: #123c2b !important;
}

/* Final culture option CTA: no clipped diagonal background */
.final-offer-inner {
    background: linear-gradient(135deg,#123c2b 0%,#184832 100%) !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    overflow: visible !important;
}

.final-offer-inner > div {
    min-width: 0 !important;
}

.final-offer h2 {
    overflow-wrap: break-word !important;
}

.final-offer .buy-btn {
    white-space: nowrap !important;
}

@media (max-width:900px){
    .final-offer-inner {
        grid-template-columns: 1fr !important;
    }

    .final-offer .buy-btn {
        width: 100% !important;
    }
}

/* Restored detailed PSB article */
.restored-psb-page {
    max-width: 1080px;
    padding-top: 40px;
    padding-bottom: 72px;
}

.restored-psb-page .breadcrumb {
    color: #6d7c72;
    font-size: 13px;
    margin: 0 0 22px;
}

.restored-psb-page .page-h1 {
    margin: 0 0 22px;
    color: #0e3d2b;
    letter-spacing: .02em;
}

.restored-psb-page .page-lead {
    background: #fffdfa;
    border: 1px solid #ded5c5;
    border-left: 5px solid #a2202d;
    border-radius: 8px;
    color: #244437;
    font-size: 18px;
    font-weight: 700;
    line-height: 2;
    margin: 0 0 34px;
    padding: 22px 24px;
}

.restored-psb-page h2 {
    color: #0e3d2b;
    font-size: clamp(25px,3.6vw,38px);
    line-height: 1.35;
    margin: 54px 0 18px;
    padding-left: 16px;
    border-left: 5px solid #a2202d;
}

.restored-psb-page h3 {
    color: #0e3d2b;
    font-size: 20px;
    line-height: 1.5;
    margin: 0 0 10px;
}

.restored-psb-page p,
.restored-psb-page li,
.restored-psb-page td {
    color: #31473b;
    font-size: 16px;
    line-height: 2;
}

.restored-psb-page strong {
    color: #0e3d2b;
    font-weight: 900;
}

.restored-psb-page .use-cards,
.restored-psb-page .merit-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
    margin: 24px 0 10px;
}

.restored-psb-page .use-card,
.restored-psb-page .merit-item,
.restored-psb-page .faq-item {
    background: #fffdfa;
    border: 1px solid #ded5c5;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(14,61,43,.06);
}

.restored-psb-page .use-card {
    overflow: hidden;
}

.restored-psb-page .use-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.restored-psb-page .use-card h3,
.restored-psb-page .use-card p {
    padding-left: 18px;
    padding-right: 18px;
}

.restored-psb-page .use-card h3 {
    padding-top: 18px;
}

.restored-psb-page .use-card p {
    padding-bottom: 18px;
    margin: 0;
}

.restored-psb-page .type-table {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.restored-psb-page .type-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    background: #fffdfa;
    border: 1px solid #ded5c5;
    border-radius: 10px;
    padding: 18px;
}

.restored-psb-page .type-row .type-name {
    color: #0e3d2b;
    font-weight: 900;
}

.restored-psb-page .merit-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 20px;
}

.restored-psb-page .merit-num {
    align-items: center;
    background: #0e3d2b;
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-weight: 900;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.restored-psb-page .cta-box {
    background: #0e3d2b;
    border-radius: 12px;
    margin: 50px 0;
    padding: 30px;
}

.restored-psb-page .cta-box h2,
.restored-psb-page .cta-box h3,
.restored-psb-page .cta-box p,
.restored-psb-page .cta-box li {
    color: #fff;
}

.restored-psb-page .cta-box h2 {
    border-left-color: #fff;
    margin-top: 0;
}

.restored-psb-page .trouble-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 24px;
}

.restored-psb-page .trouble-list li {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    padding: 10px 14px;
}

.restored-psb-page .link-btn {
    background: #fff;
    border-radius: 999px;
    color: #0e3d2b !important;
    display: inline-flex;
    font-weight: 900;
    margin-top: 8px;
    padding: 12px 22px;
}

.restored-psb-page .faq-item {
    margin: 14px 0;
    overflow: hidden;
}

.restored-psb-page .faq-item summary {
    color: #0e3d2b;
    cursor: pointer;
    font-size: 17px;
    font-weight: 900;
    list-style: none;
    padding: 18px 20px;
}

.restored-psb-page .faq-item summary::-webkit-details-marker {
    display: none;
}

.restored-psb-page .faq-body {
    border-top: 1px solid #e7dfd1;
    padding: 18px 20px 22px;
}

.restored-psb-page .faq-note {
    background: #f5efe4;
    border-radius: 8px;
    color: #5b4b38;
    font-size: 14px;
    margin-top: 12px;
    padding: 12px 14px;
}

@media (max-width:760px){
    .restored-psb-page {
        padding-top: 28px;
        padding-bottom: 52px;
    }

    .restored-psb-page .page-lead {
        font-size: 16px;
        padding: 18px;
        line-height: 1.85;
    }

    .restored-psb-page .use-cards,
    .restored-psb-page .merit-list {
        grid-template-columns: 1fr;
    }

    .restored-psb-page .type-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .restored-psb-page .merit-item {
        grid-template-columns: 40px 1fr;
        padding: 16px;
    }

    .restored-psb-page .merit-num {
        height: 40px;
        width: 40px;
    }

    .restored-psb-page .cta-box {
        padding: 22px 18px;
    }
}

/* PSB article CTA readability fix */
.restored-psb-page .cta-box {
    background: #fffdfa !important;
    border: 1px solid #ded5c5 !important;
    border-left: 6px solid #a2202d !important;
    box-shadow: 0 16px 34px rgba(14,61,43,.08) !important;
    color: #173f30 !important;
}

.restored-psb-page .cta-box h2 {
    border: none !important;
    color: #0e3d2b !important;
    font-size: clamp(24px,3vw,34px) !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

.restored-psb-page .cta-box p,
.restored-psb-page .cta-box li,
.restored-psb-page .cta-box strong {
    color: #244437 !important;
}

.restored-psb-page .trouble-list li {
    background: #f5efe4 !important;
    border: 1px solid #e2d7c7 !important;
    color: #244437 !important;
    font-weight: 700 !important;
}

.restored-psb-page .link-btn {
    background: #0e3d2b !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 24px rgba(14,61,43,.18) !important;
}

/* PSB visual hero */
.psb-visual-hero {
    background: #f4efe4;
    border-bottom: 1px solid #ded5c5;
    padding: 34px 0 26px;
    text-align: center;
}

.psb-visual-hero img {
    width: min(100%,1120px);
    height: auto;
    display: block;
    margin: 0 auto 26px;
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(14,61,43,.12);
}

.psb-visual-hero .eyebrow {
    color: #a2202d;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .16em;
    margin: 0 0 10px;
}

.psb-visual-hero h1 {
    color: #0e3d2b;
    font-size: clamp(32px,5vw,56px);
    line-height: 1.25;
    margin: 0;
}

@media (max-width:760px){
    .psb-visual-hero {
        padding: 18px 0 22px;
    }

    .psb-visual-hero img {
        border-radius: 6px;
        margin-bottom: 20px;
    }
}

/* Force top hero visibility */
body .site-intro.home-visual-hero {
    max-width: 1180px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

body .site-intro.home-visual-hero h1 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    color: #0e3d2b !important;
    font-size: clamp(26px,7vw,46px) !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body .site-intro.home-visual-hero p {
    max-width: 850px !important;
    color: #31473b !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

body .site-intro.home-visual-hero .top-hero-actions {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

body .site-intro.home-visual-hero .top-hero-actions a {
    min-width: 150px !important;
    color: #fff !important;
    text-align: center !important;
    white-space: normal !important;
    opacity: 1 !important;
}

body .site-intro.home-visual-hero .top-hero-actions a.sub-btn {
    background: #fffdfa !important;
    color: #0e3d2b !important;
    border: 1px solid #cfc6b5 !important;
    text-shadow: none !important;
}

@media (max-width:560px){
    body .site-intro.home-visual-hero h1 {
        font-size: 28px !important;
    }

    body .site-intro.home-visual-hero .top-hero-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    body .site-intro.home-visual-hero .top-hero-actions a {
        min-width: 0 !important;
        padding: 13px 8px !important;
        font-size: 14px !important;
    }
}

/* Expanded global navigation */
.site-header .header-inner {
    gap: 18px !important;
}

.site-header .brand {
    flex: 0 0 auto !important;
}

.site-header .nav {
    gap: 10px 14px !important;
    align-items: center !important;
}

.site-header .nav a {
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
}

@media (max-width:900px){
    .site-header .header-inner {
        display: block !important;
    }

    .site-header .nav {
        margin-top: 10px !important;
        justify-content: flex-start !important;
        gap: 8px 12px !important;
    }

    .site-header .nav a {
        font-size: 12px !important;
    }
}

/* Force unified header/footer on legacy detail pages */
body .site-header {
    background: rgba(247,242,232,.96) !important;
    border-bottom: 1px solid #ded5c5 !important;
    box-shadow: none !important;
    color: #0e3d2b !important;
}

body .site-header .header-inner {
    max-width: 1180px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 14px 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body .site-header .brand,
body .site-header .brand:visited {
    color: #0e3d2b !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

body .site-header .brand span {
    display: block !important;
    color: #7a2d34 !important;
    font-size: 11px !important;
    letter-spacing: .08em !important;
    margin-top: 2px !important;
}

body .site-header .nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
}

body .site-header .nav a,
body .site-header .nav a:visited {
    background: transparent !important;
    color: #0e3d2b !important;
    border-radius: 0 !important;
    padding: 8px 0 !important;
    text-decoration: none !important;
}

body .site-header .nav a:hover {
    color: #0e3d2b !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

body .site-footer {
    background: #0e3d2b !important;
    color: #f7f2e8 !important;
    padding: 34px 22px !important;
    text-align: left !important;
}

body .site-footer .footer-inner {
    max-width: 1180px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
}

body .site-footer a,
body .site-footer a:visited {
    color: #f7f2e8 !important;
    text-decoration: none !important;
}

body .site-footer a:hover {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

@media (max-width:900px){
    body .site-header .header-inner {
        display: block !important;
        padding: 12px 16px !important;
    }

    body .site-header .nav {
        justify-content: flex-start !important;
        margin-top: 10px !important;
        gap: 8px 12px !important;
    }

    body .site-header .nav a {
        font-size: 12px !important;
    }
}
/* feature product grid fix */
#products .feature-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 760px) {
  #products .feature-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #products .feature-product-grid a div { padding: 10px !important; }
  #products .feature-product-grid a p { font-size: 12px !important; }
  #products .feature-product-grid a span { font-size: 12px !important; padding: 8px 6px !important; }
}
/* final mobile footer drawer override */
footer.site-footer .footer-menu-toggle {
  display: none !important;
}

@media (max-width: 900px) {
  footer.site-footer {
    position: relative !important;
    padding: 12px 14px !important;
    min-height: 52px !important;
  }

  footer.site-footer .footer-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    right: 12px !important;
    top: 10px !important;
    width: 36px !important;
    height: 32px !important;
    border: 1px solid rgba(247, 242, 232, .55) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, .10) !important;
    color: #f7f2e8 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    z-index: 3 !important;
  }

  footer.site-footer .footer-inner,
  footer.site-footer .footer-credit {
    padding-right: 48px !important;
  }

  footer.site-footer:not(.footer-open) .footer-links,
  footer.site-footer:not(.footer-open) .footer-nav {
    display: none !important;
  }

  footer.site-footer.footer-open .footer-links,
  footer.site-footer.footer-open .footer-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px 12px !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
  }
}
/* HIDEGEN final dark header/footer override */
.site-header,
header.site-header,
.site-header .header-inner,
header.site-header .header-inner {
  background: #0e3d2b !important;
  color: #ffffff !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
.site-header .brand,
.site-header .brand:visited,
.site-header .brand span,
.site-header .nav a,
.site-header .nav a:visited,
.site-header nav a,
.site-header nav a:visited {
  color: #ffffff !important;
  background: transparent !important;
  text-decoration: none !important;
}
.site-header .brand span,
.site-header .text-logo-sub {
  color: rgba(255,255,255,.72) !important;
}
.site-footer,
footer.site-footer,
.site-footer .footer-inner,
footer.site-footer .footer-inner {
  background: #0e3d2b !important;
  color: #ffffff !important;
  border-top: 0 !important;
}
.site-footer *,
footer.site-footer *,
.site-footer a,
footer.site-footer a {
  color: #ffffff !important;
  text-decoration: none !important;
}
.site-footer .footer-brand span,
footer.site-footer .footer-brand span {
  color: rgba(255,255,255,.72) !important;
}
/* HIDEGEN final Japanese readability fix: natural wrapping without forced phrase breaks */
p, li, dd, td, th, .lead, .page-lead, .sales-lead, .home-about-panel p, .section-block p, .main-content p, .main-content li, .article p, .article li, .cta p, .problem-card p, .guide-link p, .usecase-card p {
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-break: strict !important;
}
.home-about-panel p, .home-visual-hero p, .site-intro p {
  max-width: 980px !important;
}
.shop-grid .card, .final-offer h2, body .site-intro.home-visual-hero h1, body .site-intro.home-visual-hero p {
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-break: strict !important;
}
.nowrap-term { white-space: nowrap !important; }
/* HIDEGEN final readable layout: keep text areas wide, then let the browser wrap naturally. */
html body main.page-wrap,
html body main.clean-page,
html body main.product-clean-page,
html body .page-wrap,
html body .clean-page,
html body .product-clean-page,
html body .wrap,
html body .main-content,
html body .article,
html body .blog_body {
  width: min(100% - 32px, 1180px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
html body .sales-section,
html body .section,
html body section,
html body .section-block,
html body .sales-title,
html body .home-about-panel,
html body .site-intro,
html body .home-visual-hero,
html body .product-clean-page .section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html body .page-lead,
html body .lead,
html body .intro,
html body .section-desc,
html body .section-text,
html body .sales-title p,
html body .site-intro p,
html body .home-visual-hero p,
html body .home-about-panel p,
html body .sales-lead,
html body .article p,
html body .article li,
html body .blog_body p,
html body .blog_body li,
html body .main-content p,
html body .main-content li,
html body .section-block p,
html body .cta p,
html body .problem-card p,
html body .guide-link p,
html body .usecase-card p,
html body .product-clean-page .section-desc,
html body .product-clean-page .section-text {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-break: strict !important;
  text-wrap: pretty;
}
html body .sales-title p,
html body .page-lead,
html body .section-desc,
html body .home-about-panel p {
  font-size: clamp(15px, 1.45vw, 17px) !important;
  line-height: 2 !important;
}
@media (max-width: 760px) {
  html body main.page-wrap,
  html body main.clean-page,
  html body main.product-clean-page,
  html body .page-wrap,
  html body .clean-page,
  html body .product-clean-page,
  html body .wrap,
  html body .main-content,
  html body .article,
  html body .blog_body {
    width: min(100% - 24px, 1180px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}