/* 記事ページ・カテゴリ一覧など（v17 以外のページ）の見た目を、新しいトップ（v17）にそろえる（2026-10-25 ユーザー指示
   「記事ページも直ってないので直して」）。テーマ（XWRITE）のファイルは変えず、このプラグインから上書きする。本文・広告・目次・アフィリエイト表記は触らない */
:root{--ozx-ink:#163D2C;--ozx-lime:#B8DA53;--ozx-paper:#fffefb;--ozx-soft:#f3f8de}
#ozx-gnav{background:var(--ozx-ink)!important;box-shadow:0 2px 6px #163d2c40!important}
#ozx-gnav a{color:#fff!important}
#ozx-gnav a:hover{background:#ffffff1f!important}
#ozx-gnav .ozx-gnav-contact{background:var(--ozx-lime)!important;color:var(--ozx-ink)!important;border-radius:6px}
.header .siteInfo__desc{background:var(--ozx-soft)!important;color:var(--ozx-ink)!important;font-weight:700}
.header{background:var(--ozx-paper)!important;border-bottom:1px solid #d5e1d4}
.header .custom-logo{max-height:46px!important;width:auto!important;height:auto!important}
.gNavList>li>a .menu-item-title{font-size:13.5px!important;letter-spacing:0!important}
.gNavList>li>a{color:var(--ozx-ink)!important}
.gNavList>li>a:hover{color:#2c7a3f!important}
.catList .list-label a,.list-label a{background:var(--ozx-ink)!important;color:#fff!important;border-color:var(--ozx-ink)!important}
.breadcrumbs a{color:#41663b!important}
.footer{background:var(--ozx-paper)!important}
.footer .container-copyright,.footer .pagetop{display:none!important}
.ozx-footer-legal{background:var(--ozx-paper)!important}
.ozx-footer-legal a{color:#55665a!important}
.ozx-v17-footer{border-top:4px solid var(--ozx-ink);background:linear-gradient(180deg,var(--ozx-soft),var(--ozx-paper) 70%);padding:28px 24px 34px;color:#55665a;font-size:13px;line-height:1.8}
.ozx-v17-footer .in{max-width:1200px;margin:0 auto;display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.ozx-v17-footer .brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.ozx-v17-footer .brand img{display:block;height:auto}
.ozx-v17-footer .tag{display:inline-block;font-weight:700;color:var(--ozx-ink);background:#B8DA5355;border-radius:20px;padding:2px 10px;margin-bottom:4px}
.ozx-v17-footer p{margin:0;flex:1;min-width:240px}
.ozx-v17-footer a.top{color:var(--ozx-ink);font-weight:700;white-space:nowrap}
.ozx-to-top{position:fixed;right:16px;bottom:24px;z-index:9998;width:52px;height:52px;border-radius:50%;background:var(--ozx-ink);color:#fff;border:2px solid var(--ozx-lime);box-shadow:0 6px 16px #18291d40;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;cursor:pointer;font-family:inherit}
.ozx-to-top[hidden]{display:none!important}
.ozx-to-top span{font-size:18px;font-weight:800}.ozx-to-top small{font-size:9px;margin-top:2px}
@media(max-width:760px){.ozx-to-top{right:12px;bottom:18px;width:46px;height:46px}.ozx-v17-footer{padding:22px 16px 90px}}
@media(prefers-reduced-motion:no-preference){.ozx-to-top{transition:opacity .2s}}
/* 右端のメニューのサブメニューは左向きに開く（画面の右にはみ出して横スクロールが出ないように） */
.gNavList>li:nth-last-child(-n+2) .sub-menu{left:auto!important;right:0!important}
.gNavList .sub-menu .sub-menu{max-width:calc(100vw - 20px)}
