/*
Theme Name: 0円介護 (Zerokaigo)
Theme URI: https://xn--0-mz6a60giv7g.com/
Author: ティーボックス / 藤原アンジー真実 監修
Author URI: https://xn--0-mz6a60giv7g.com/
Description: 介護シリーズ書籍と統一したブランドの専用テーマ。あたたかみのある色鉛筆タッチのイラストと紙のようなやさしい配色で、介護に携わる方が安心できるデザイン。大きめ文字・音声読み上げ等アクセシビリティにも配慮。
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zerokaigo
*/

/* =========================================================
   0. デザイントークン（あたたかみ重視・色鉛筆タッチと調和）
   ========================================================= */
:root{
  /* ブランド（信頼＝ティール系。ややくすませて紙になじませる） */
  --teal:        #2f88a0;
  --teal-dark:   #226b80;
  --teal-darker: #184f60;
  --teal-tint:   #e5f0f0;

  /* あたたかいアクセント（主役） */
  --terra:       #d98a5f;   /* テラコッタ/杏 */
  --terra-dark:  #c06f45;
  --honey:       #e3a94e;   /* はちみつ色 */
  --honey-tint:  #f8ecd3;
  --sage:        #8aa877;   /* やさしい緑 */
  --coral-tint:  #fbe9df;

  /* インク＆紙 */
  --ink:      #4a4038;      /* あたたかい黒（茶寄り） */
  --ink-soft: #7c6f62;
  --paper:    #faf4e8;      /* 紙のようなクリーム */
  --paper2:   #f4ead6;      /* 少し濃い紙（帯用） */
  --surface:  #fffdf7;      /* カード面（温白） */
  --box-bg:   #f6efe0;      /* 箱の背景（あたたかい） */
  --line:     #ece0c9;      /* 罫線（茶みのベージュ） */

  /* タイポ */
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "游明朝", serif;
  --sans:  "Noto Sans JP", "Hiragino Sans", "Meiryo", sans-serif;
  --round: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Maru Gothic ProN", sans-serif; /* 丸ゴシック＝あたたかみ */

  /* 寸法・質感 */
  --content: 44rem;
  --wide:    72rem;
  --radius:  20px;
  --radius-sm: 12px;
  --shadow:    0 6px 22px rgba(120,88,54,.10);
  --shadow-lg: 0 14px 40px rgba(120,88,54,.16);
  --fscale: 1;
  --fbase: 1.125rem;
}

/* =========================================================
   1. ベース
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  color:var(--ink);
  font-family:var(--serif);
  font-size:calc(var(--fbase) * var(--fscale));
  line-height:1.95;
  font-feature-settings:"palt" 1;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-wrap:break-word;
  /* 紙のようなやわらかい地＋淡いにじみ（WP global-styles注入に勝つため!important） */
  background-color:var(--paper) !important;
  background-image:
    radial-gradient(1200px 600px at 15% -5%, #fdf6e6 0%, rgba(253,246,230,0) 60%),
    radial-gradient(1000px 500px at 100% 0%, #fbeede 0%, rgba(251,238,222,0) 55%);
  background-attachment:fixed;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--teal-dark); text-underline-offset:.18em; text-decoration-thickness:.06em; }
a:hover{ color:var(--teal-darker); }
h1,h2,h3,h4,h5{ font-family:var(--round); line-height:1.5; color:var(--ink); font-weight:700; letter-spacing:.01em; }
p{ margin:0 0 1.4em; }
ruby rt{ font-size:.55em; }
:focus-visible{ outline:3px solid var(--terra); outline-offset:2px; border-radius:4px; }

.skip-link{ position:absolute; left:-9999px; top:0; z-index:1000; background:var(--teal); color:#fff; padding:.6em 1em; }
.skip-link:focus{ left:8px; top:8px; }

.container{ width:min(100% - 2rem, var(--wide)); margin-inline:auto; }
.reading{ width:min(100% - 2rem, var(--content)); margin-inline:auto; }

/* =========================================================
   2. ヘッダー / ナビ
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(250,244,232,.92) !important;
  backdrop-filter:saturate(1.3) blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; gap:1rem; min-height:70px; }
.site-brand{ display:flex; align-items:center; gap:.6rem; text-decoration:none; margin-right:auto; }
.site-brand .logo-mark{
  width:44px; height:44px; border-radius:14px; flex:none;
  background:linear-gradient(135deg,var(--terra),var(--honey));
  color:#fff; font-family:var(--round); font-weight:700;
  display:grid; place-items:center; font-size:1.3rem; box-shadow:var(--shadow);
  transform:rotate(-4deg);
}
.site-brand .brand-text{ font-family:var(--round); font-weight:700; font-size:1.3rem; color:var(--ink); }
.site-brand .brand-text small{ display:block; font-size:.6rem; font-weight:700; color:var(--terra-dark); letter-spacing:.14em; }

.primary-nav ul{ list-style:none; display:flex; gap:.2rem; margin:0; padding:0; }
.primary-nav a{
  font-family:var(--round); font-weight:700; font-size:.95rem; color:var(--ink);
  text-decoration:none; padding:.5em .9em; border-radius:999px; display:block; transition:.15s;
}
.primary-nav a:hover, .primary-nav .current-menu-item>a{ background:var(--coral-tint); color:var(--terra-dark); }

.header-cta{
  font-family:var(--round); font-weight:700; font-size:.9rem; white-space:nowrap;
  background:var(--terra); color:#fff !important; text-decoration:none;
  padding:.6em 1.2em; border-radius:999px; box-shadow:var(--shadow); transition:.15s;
}
.header-cta:hover{ background:var(--terra-dark); transform:translateY(-1px); }

.a11y-bar{ background:var(--teal-darker); color:#fff; font-family:var(--sans); }
.a11y-bar .container{ display:flex; align-items:center; gap:.5rem; padding:.3rem 0; font-size:.78rem; }
.a11y-bar .label{ opacity:.85; }
.a11y-bar button{
  font-family:var(--sans); font-weight:700; cursor:pointer;
  background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.28);
  border-radius:6px; padding:.15em .6em; line-height:1;
}
.a11y-bar button:hover{ background:rgba(255,255,255,.28); }
.a11y-bar .spacer{ margin-left:auto; }

.nav-toggle{ display:none; background:none; border:0; cursor:pointer; padding:.4em; }
.nav-toggle span{ display:block; width:26px; height:3px; background:var(--ink); border-radius:2px; margin:5px 0; transition:.2s; }

/* =========================================================
   3. ボタン
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; gap:.5em; font-family:var(--round); font-weight:700;
  text-decoration:none; padding:.8em 1.7em; border-radius:999px; font-size:1.02rem; transition:.15s; border:0; cursor:pointer;
}
.btn-primary{ background:var(--teal); color:#fff !important; box-shadow:var(--shadow); }
.btn-primary:hover{ background:var(--teal-dark); transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.btn-accent{ background:var(--terra); color:#fff !important; box-shadow:var(--shadow); }
.btn-accent:hover{ background:var(--terra-dark); transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.btn-ghost{ background:var(--surface); color:var(--teal-dark) !important; border:2px solid var(--teal); }
.btn-ghost:hover{ background:var(--teal-tint); }
.btn-lg{ font-size:1.1rem; padding:.95em 2em; }

/* =========================================================
   4. ヒーロー（色鉛筆イラストを主役に）
   ========================================================= */
.hero{ position:relative; overflow:hidden; padding-top:.5rem; }
.hero::before{ /* あたたかい紙の陽だまり */
  content:""; position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(227,169,78,.16) 0%, rgba(227,169,78,0) 60%),
    radial-gradient(55% 60% at 15% 90%, rgba(138,168,119,.14) 0%, rgba(138,168,119,0) 60%);
}
.hero-inner{ position:relative; z-index:1; display:grid; grid-template-columns:1.05fr .95fr; gap:2.5rem; align-items:center; padding:3.5rem 0 3rem; }
.hero-copy .eyebrow{
  display:inline-flex; align-items:center; gap:.4em; font-family:var(--round); font-weight:700; font-size:.82rem;
  color:var(--terra-dark); background:var(--surface); border:2px solid var(--honey); border-radius:999px; padding:.4em 1.1em; margin-bottom:1.2rem;
}
.hero-copy h1{ font-family:var(--round); font-size:clamp(1.9rem, 4.6vw, 3rem); line-height:1.42; margin:0 0 1.1rem; }
.hero-copy h1 .u-teal{ color:var(--teal); }
.hero-copy h1 .u-warm{ color:var(--terra-dark); }
.hero-copy .lead{ font-size:1.15rem; color:var(--ink-soft); margin-bottom:1.8rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.8rem; }

/* イラストは「貼った絵」風の額縁＋やわらかい影＋わずかな傾き */
.hero-figure{ position:relative; }
.hero-figure img{
  border-radius:26px; box-shadow:var(--shadow-lg);
  border:6px solid var(--surface); outline:1px solid var(--line);
  transform:rotate(1.4deg);
}
.hero-figure .badge{
  position:absolute; bottom:-16px; left:-10px; background:var(--terra); color:#fff;
  font-family:var(--round); font-weight:700; border-radius:16px; padding:.7em 1.05em; box-shadow:var(--shadow);
  font-size:.95rem; line-height:1.35; transform:rotate(-3deg);
}

/* =========================================================
   5. セクション見出し
   ========================================================= */
.section{ position:relative; padding:3.4rem 0; }
.section-alt{ background:var(--surface); }
/* 帯の上下にやわらかい手描き風の波 */
.section-alt::before, .section-alt::after{
  content:""; position:absolute; left:0; right:0; height:14px;
  background:radial-gradient(circle at 10px -4px, var(--surface) 12px, transparent 13px) repeat-x;
  background-size:22px 14px;
}
.section-alt::before{ top:-13px; }
.section-alt::after{ bottom:-13px; transform:scaleY(-1); }

.section-head{ text-align:center; margin-bottom:2.2rem; }
.section-head h2{
  font-family:var(--round); font-size:clamp(1.5rem,3vw,2.1rem); display:inline-block; position:relative; padding-bottom:.6rem; margin:0;
}
.section-head h2::after{
  content:""; position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:70px; height:5px; border-radius:3px;
  background:linear-gradient(90deg,var(--honey),var(--terra));
}
.section-head .sub{ color:var(--ink-soft); margin-top:.9rem; font-size:1rem; }

/* 特徴カード（色鉛筆イラスト付き） */
.features{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; }
.feature-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow); transition:.18s; text-align:center;
}
.feature-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.feature-card .ill{ display:block; aspect-ratio:1/1; background:var(--honey-tint); overflow:hidden; }
.feature-card .ill img{ width:100%; height:100%; object-fit:cover; }
.feature-card .fc-body{ padding:1.3rem 1.4rem 1.6rem; }
.feature-card h3{ font-family:var(--round); font-size:1.22rem; margin:0 0 .6rem; color:var(--terra-dark); }
.feature-card p{ font-size:.98rem; color:var(--ink-soft); margin:0; }

/* =========================================================
   6. 記事カード
   ========================================================= */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; }
.post-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow); display:flex; flex-direction:column; transition:.18s;
}
.post-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.post-card a.thumb{ display:block; aspect-ratio:16/10; background:var(--honey-tint); overflow:hidden; }
.post-card a.thumb img{ width:100%; height:100%; object-fit:cover; transition:.3s; }
.post-card:hover a.thumb img{ transform:scale(1.05); }
.post-card .body{ padding:1.1rem 1.25rem 1.4rem; display:flex; flex-direction:column; flex:1; }
.post-card .cat{ font-family:var(--round); font-weight:700; font-size:.72rem; color:var(--terra-dark); letter-spacing:.03em; margin-bottom:.5rem; }
.post-card h3{ font-family:var(--round); font-size:1.06rem; line-height:1.55; margin:0 0 .6rem; }
.post-card h3 a{ color:var(--ink); text-decoration:none; }
.post-card h3 a:hover{ color:var(--terra-dark); }
.post-card .meta{ margin-top:auto; font-family:var(--sans); font-size:.76rem; color:var(--ink-soft); }
.thumb-fallback{
  width:100%; height:100%; display:grid; place-items:center; color:var(--terra); font-family:var(--round); font-weight:700; font-size:1.4rem;
  background:repeating-linear-gradient(45deg, var(--honey-tint), var(--honey-tint) 12px, #f3e6cd 12px, #f3e6cd 24px);
}

/* カテゴリチップ */
.cat-chips{ display:flex; flex-wrap:wrap; gap:.7rem; justify-content:center; }
.cat-chip{
  font-family:var(--round); font-weight:700; text-decoration:none; font-size:.95rem;
  background:var(--surface); border:2px solid var(--honey); color:var(--terra-dark);
  padding:.55em 1.3em; border-radius:999px; transition:.15s; display:inline-flex; gap:.4em; align-items:center;
}
.cat-chip:hover{ background:var(--terra); color:#fff; border-color:var(--terra); }
.cat-chip .n{ font-size:.8em; opacity:.65; }

/* =========================================================
   7. 書籍CTA / 寄付バンド
   ========================================================= */
.book-band{ background:linear-gradient(135deg,var(--teal) 0%, var(--teal-darker) 100%); color:#fff; position:relative; }
.book-band .container{ display:grid; grid-template-columns:auto 1fr auto; gap:1.8rem; align-items:center; padding:2.8rem 0; }
.book-band .cover{ width:130px; border-radius:8px; box-shadow:var(--shadow-lg); flex:none; transform:rotate(-2deg); }
.book-band h2{ font-family:var(--round); color:#fff; font-size:1.5rem; margin:0 0 .5rem; }
.book-band p{ color:rgba(255,255,255,.92); margin:0; font-size:1rem; }
.book-band .actions{ display:flex; flex-direction:column; gap:.6rem; }

.donate-band{ background:var(--coral-tint); position:relative; }
.donate-band .container{ display:grid; grid-template-columns:.8fr 1.2fr; gap:2rem; align-items:center; padding:3rem 0; }
.donate-band .d-ill img{ border-radius:22px; border:6px solid var(--surface); box-shadow:var(--shadow); transform:rotate(-1.5deg); }
.donate-band h2{ font-family:var(--round); color:var(--terra-dark); font-size:1.6rem; margin:0 0 .7rem; }
.donate-band p{ color:var(--ink-soft); margin:0 0 1.4rem; }
.donate-band.centered .container{ display:block; text-align:center; }
.donate-band.centered p{ max-width:40rem; margin-inline:auto; margin-bottom:1.4rem; }

/* =========================================================
   8. 記事本文（.entry-content = 読み上げ対象）
   ========================================================= */
.page-head{ background:linear-gradient(160deg,var(--honey-tint),var(--paper)); padding:2.6rem 0 2.1rem; border-bottom:1px solid var(--line); }
.page-head .crumbs{ font-family:var(--sans); font-size:.8rem; color:var(--ink-soft); margin-bottom:.7rem; }
.page-head .crumbs a{ color:var(--teal-dark); text-decoration:none; }
.page-head h1{ font-family:var(--round); font-size:clamp(1.6rem,3.5vw,2.3rem); line-height:1.5; margin:0; }
.page-head .cat{ font-family:var(--round); font-weight:700; color:var(--terra-dark); font-size:.82rem; margin-bottom:.6rem; display:inline-block; }
.page-head .post-meta{ font-family:var(--sans); font-size:.82rem; color:var(--ink-soft); margin-top:.8rem; }

.article-wrap{ padding:2.6rem 0 3rem; }
.entry-content{ font-size:calc(1.08rem * var(--fscale)); }
.entry-content > *{ margin-inline:auto; }
.entry-content h2{
  font-family:var(--round); font-size:1.5rem; margin:2.4em 0 .9em; padding:.55em .8em .55em .95em; line-height:1.5;
  background:var(--box-bg); border-left:7px solid var(--terra); border-radius:0 12px 12px 0; color:var(--teal-darker);
}
.entry-content h3{ font-family:var(--round); font-size:1.25rem; margin:2em 0 .7em; padding-bottom:.3em; border-bottom:2px dashed var(--honey); color:var(--teal-darker); }
.entry-content h4{ font-family:var(--round); font-size:1.1rem; margin:1.6em 0 .6em; color:var(--terra-dark); }
.entry-content a{ font-weight:500; }
.entry-content img{ border-radius:14px; margin:1.5em auto; box-shadow:var(--shadow); }
.entry-content ul, .entry-content ol{ padding-left:1.4em; margin:0 auto 1.6em; }
.entry-content li{ margin-bottom:.5em; }
.entry-content li::marker{ color:var(--terra); }
.entry-content blockquote{
  margin:1.6em auto; padding:1em 1.3em; background:var(--box-bg); border-left:4px solid var(--sage);
  border-radius:0 12px 12px 0; color:var(--ink-soft); font-size:.98em;
}
.entry-content strong{ font-weight:700; background:linear-gradient(transparent 60%, #ffe1b0 60%); padding:0 .05em; }
.entry-content table{ border-collapse:collapse; width:100%; margin:1.6em auto; font-size:.95em; border-radius:10px; overflow:hidden; box-shadow:var(--shadow); }
.entry-content th{ background:var(--teal); color:#fff; font-family:var(--round); padding:.7em; text-align:left; }
.entry-content td{ padding:.7em; border:1px solid var(--line); }
.entry-content tr:nth-child(even) td{ background:var(--box-bg); }

/* 書籍スタイルの箱 */
.kbox{ background:var(--box-bg); border-left:6px solid var(--terra); border-radius:0 14px 14px 0; padding:1.1em 1.35em; margin:1.7em auto; }
.kbox.is-warn{ border-left-color:var(--honey); background:var(--honey-tint); }
.kbox.is-check{ border-left-color:var(--sage); background:#eef4e8; }

/* =========================================================
   9. 音声読み上げUI（プラグイン注入JS対応・ブランド統一）
   ========================================================= */
.voice-reader-container{ width:min(100% - 2rem, var(--content)); margin:0 auto 1.6rem; }
.voice-reader-container .voice-reader-btn{
  display:inline-flex; align-items:center; gap:.6em; font-family:var(--round); font-weight:700; font-size:1rem;
  background:var(--teal) !important; background-image:none !important; background-color:var(--teal) !important;
  color:#fff !important; border:0 !important; border-radius:999px; padding:.7em 1.4em; cursor:pointer;
  box-shadow:var(--shadow); transition:.15s;
}
.voice-reader-container .voice-reader-btn:hover{ background:var(--teal-dark) !important; background-color:var(--teal-dark) !important; }
.voice-reader-container .voice-reader-btn .icon{ font-size:1.2em; }
.voice-controls{ margin-top:.9rem; background:var(--box-bg); border:1px solid var(--line); border-radius:14px; padding:.8rem 1rem; }
.voice-speed-control{ display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; font-family:var(--sans); font-size:.85rem; }
.voice-controls .voice-speed-btn{
  font-family:var(--round); font-weight:700; cursor:pointer; background:var(--surface) !important; background-image:none !important; border:1.5px solid var(--line);
  color:var(--ink) !important; border-radius:999px; padding:.35em .9em; font-size:.85rem;
}
.voice-controls .voice-speed-btn.active{ background:var(--teal) !important; background-color:var(--teal) !important; color:#fff !important; border-color:var(--teal); }

/* =========================================================
   10. サイドバー / ページャ
   ========================================================= */
.with-sidebar{ display:grid; grid-template-columns:1fr 300px; gap:2.5rem; align-items:start; }
.widget{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:1.3rem; margin-bottom:1.4rem; box-shadow:var(--shadow); }
.widget-title{ font-family:var(--round); font-size:1.02rem; font-weight:700; color:var(--teal-darker); margin:0 0 1rem; padding-bottom:.5rem; border-bottom:2px dashed var(--honey); }
.widget ul{ list-style:none; margin:0; padding:0; }
.widget li{ padding:.5em 0; border-bottom:1px dashed var(--line); }
.widget li:last-child{ border-bottom:0; }
.widget a{ text-decoration:none; color:var(--ink); font-family:var(--sans); font-size:.9rem; }
.widget a:hover{ color:var(--terra-dark); }

.pager{ display:flex; justify-content:center; gap:.5rem; margin:2.5rem 0; flex-wrap:wrap; }
.pager a, .pager span{
  font-family:var(--round); font-weight:700; text-decoration:none; padding:.5em .95em; border-radius:10px;
  border:1.5px solid var(--line); color:var(--ink); background:var(--surface);
}
.pager a:hover{ border-color:var(--terra); color:var(--terra-dark); }
.pager .current{ background:var(--terra); color:#fff; border-color:var(--terra); }

/* =========================================================
   11. フッター
   ========================================================= */
.site-footer{ background:var(--teal-darker); color:rgba(255,255,255,.85); font-family:var(--sans); position:relative; }
.site-footer::before{ /* 上辺のやわらかい波 */
  content:""; position:absolute; top:-13px; left:0; right:0; height:14px;
  background:radial-gradient(circle at 11px 16px, var(--teal-darker) 12px, transparent 13px) repeat-x;
  background-size:22px 14px;
}
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:2rem; padding:3rem 0 2rem; }
.footer-brand .brand-text{ font-family:var(--round); color:#fff; font-weight:700; font-size:1.35rem; }
.footer-brand p{ font-size:.86rem; margin-top:.8rem; line-height:1.9; }
.footer-col h4{ font-family:var(--round); color:#fff; font-size:.98rem; margin:0 0 .9rem; }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom:.55em; }
.footer-col a{ color:rgba(255,255,255,.85); text-decoration:none; font-size:.86rem; }
.footer-col a:hover{ color:#fff; text-decoration:underline; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.15); padding:1.2rem 0; font-size:.78rem; text-align:center; color:rgba(255,255,255,.65); }

/* =========================================================
   12. レスポンシブ
   ========================================================= */
@media (max-width:900px){
  .hero-inner{ grid-template-columns:1fr; gap:1.8rem; padding:2.5rem 0; }
  .hero-figure{ order:-1; max-width:460px; margin-inline:auto; }
  .features, .card-grid{ grid-template-columns:repeat(2,1fr); }
  .with-sidebar{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .book-band .container{ grid-template-columns:1fr; text-align:center; justify-items:center; }
  .donate-band .container{ grid-template-columns:1fr; text-align:center; }
  .donate-band .d-ill{ max-width:360px; margin-inline:auto; }
}
@media (max-width:640px){
  :root{ --fbase:1.06rem; }
  .primary-nav{
    position:fixed; inset:0 0 0 auto; width:min(80vw,320px); background:var(--surface); box-shadow:var(--shadow-lg);
    transform:translateX(100%); transition:.25s; padding:5rem 1.2rem 2rem; z-index:200; overflow-y:auto;
  }
  .primary-nav.open{ transform:translateX(0); }
  .primary-nav ul{ flex-direction:column; gap:.2rem; }
  .primary-nav a{ padding:.85em 1em; border-radius:12px; }
  .nav-toggle{ display:block; z-index:210; }
  .nav-open .nav-toggle span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2){ opacity:0; }
  .nav-open .nav-toggle span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }
  .header-cta{ display:none; }
  .features, .card-grid{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; }
  .section{ padding:2.5rem 0; }
  .nav-scrim{ position:fixed; inset:0; background:rgba(60,40,20,.4); opacity:0; visibility:hidden; transition:.25s; z-index:150; }
  .nav-open .nav-scrim{ opacity:1; visibility:visible; }
}
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; scroll-behavior:auto !important; } }
