/*
Theme Name: 親の暮らしサポート帖
Author: Happy Gift
Description: 高齢の親を支える家族向けの暮らしメディア用WordPressテーマ。固定トップページ・記事ページ・広告枠対応。
Version: 1.5.8
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: oyagurashi-support
*/

:root{
  --bg:#F8F5EF; --surface:#fff; --text:#3A342E; --head:#2F2A25; --muted:#7B7166;
  --line:#E8DFD3; --green:#8FA98B; --green-dark:#6F7F5F; --green-pale:#EDF3EA;
  --beige:#E9DFD0; --orange:#D8A06A; --shadow:0 14px 35px rgba(63,52,41,.08);
  --radius-lg:24px; --radius:18px; --container:1160px;
  --serif:"Noto Serif JP","Yu Mincho","Hiragino Mincho ProN",serif;
  --sans:"Noto Sans JP","Hiragino Sans","Yu Gothic",system-ui,sans-serif;
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);line-height:1.85;letter-spacing:.035em}
img{max-width:100%;height:auto;vertical-align:middle} a{color:inherit;text-decoration:none} a:hover{color:var(--green-dark)}
.container{width:min(calc(100% - 40px),var(--container));margin:auto}.section{padding:44px 0}.section-tight{padding:28px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:20px}
.section-title{margin:0;color:var(--head);font-family:var(--serif);font-size:clamp(1.45rem,2vw,2rem);font-weight:600;letter-spacing:.09em}
.more-link{color:var(--muted);font-size:.9rem;white-space:nowrap}.more-link:after{content:"›";margin-left:.45em}
.card{background:rgba(255,255,255,.86);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 24px rgba(63,52,41,.055)}
.tag{display:inline-flex;padding:4px 10px;border-radius:999px;background:var(--green-pale);color:var(--green-dark);font-size:.78rem;font-weight:700}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.7em;min-height:52px;padding:13px 24px;border-radius:999px;border:1px solid transparent;font-weight:700;transition:.2s}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(63,52,41,.08)}.btn-primary{background:var(--green-dark);color:#fff}.btn-primary:hover{background:#fff;color:var(--green-dark);border-color:var(--green-dark)}
.btn-outline{background:#fff;color:var(--green-dark);border-color:rgba(111,127,95,.45)}.btn-outline:hover{background:var(--green-dark);color:#fff}
.screen-reader-text{position:absolute;width:1px;height:1px;clip:rect(1px,1px,1px,1px);overflow:hidden}

/* header */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(248,245,239,.9);border-bottom:1px solid rgba(232,223,211,.78);backdrop-filter:blur(16px)}
.site-header.is-scrolled{box-shadow:0 10px 28px rgba(63,52,41,.06)}.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:72px;gap:24px}
.site-logo{font-family:var(--serif);font-size:clamp(1.25rem,2vw,1.8rem);font-weight:600;letter-spacing:.08em;color:var(--head);white-space:nowrap}
.primary-nav ul{display:flex;gap:26px;list-style:none;margin:0;padding:0}.primary-nav a{font-size:.92rem;font-weight:700;color:var(--head)}
.menu-toggle{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:999px;background:#fff}.menu-toggle span{display:block;width:18px;height:2px;margin:4px auto;background:var(--head)}

/* hero */
.hero{padding:42px 0 34px;background:radial-gradient(circle at 18% 20%,rgba(143,169,139,.13),transparent 28%),radial-gradient(circle at 84% 16%,rgba(216,160,106,.13),transparent 28%)}
.hero-inner{display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:42px}.hero-kicker{color:var(--green-dark);font-size:.85rem;font-weight:800;letter-spacing:.18em}
.hero-title{margin:0;color:var(--head);font-family:var(--serif);font-size:clamp(2rem,5vw,3.7rem);line-height:1.42;letter-spacing:.1em;font-weight:600}
.hero-lead{max-width:520px;margin:20px 0 0;line-height:2.05}
.hero-visual{min-height:430px;border-radius:30px;overflow:hidden;background:url("assets/images/hero.svg") center/cover no-repeat;box-shadow:var(--shadow)}

/* grids */
.problem-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.problem-card{display:grid;place-items:center;min-height:128px;padding:18px 10px;text-align:center;transition:.2s}
.problem-card:hover,.category-tile:hover{transform:translateY(-3px);border-color:rgba(143,169,139,.6)}.problem-icon,.category-icon{font-size:2rem;color:var(--orange)}.problem-title,.category-name{font-weight:800;color:var(--head)}
.feature-layout{display:grid;grid-template-columns:1fr 300px;gap:28px}.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.article-card{overflow:hidden}.article-thumb{display:block;aspect-ratio:4/2.55;background:var(--beige) center/cover no-repeat}.article-body{padding:16px 18px 18px}
.article-title{margin:0 0 12px;color:var(--head);font-size:1.02rem;line-height:1.65;font-weight:800}.article-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:.78rem}
.ad-box{display:grid;place-items:center;min-height:100px;padding:20px;text-align:center;color:#7a7067;background:repeating-linear-gradient(45deg,rgba(232,223,211,.38),rgba(232,223,211,.38) 8px,rgba(255,255,255,.55) 8px,rgba(255,255,255,.55) 16px);border:1px dashed rgba(122,112,103,.28);border-radius:var(--radius)}
.ad-box span{display:block;font-size:.75rem}.ad-box strong{display:block;margin-top:6px;color:var(--head);font-size:1.25rem;letter-spacing:.12em}
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.category-tile{display:grid;place-items:center;min-height:126px;padding:16px 8px;text-align:center;transition:.2s}.category-name{font-size:.9rem;line-height:1.55}
.split-section{display:grid;grid-template-columns:1fr .82fr;gap:28px}.gift-feature{padding:22px}.gift-main{min-height:250px;padding:28px;border-radius:24px;background:#FFFBF6}
.ribbon{display:inline-flex;padding:5px 13px;border-radius:999px;background:#b99154;color:#fff;font-size:.78rem;font-weight:800}.gift-title{margin:16px 0 12px;color:var(--head);font-family:var(--serif);font-size:clamp(1.45rem,3vw,2rem)}
.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.mini-card{display:grid;grid-template-columns:82px 1fr;align-items:center;gap:12px;padding:10px}.mini-thumb{width:82px;height:62px;border-radius:12px;background:center/cover no-repeat}.mini-title{font-size:.88rem;font-weight:800;line-height:1.5}
.compare-list{display:grid;gap:14px}.compare-card{display:grid;grid-template-columns:124px 1fr 20px;align-items:center;gap:16px;padding:12px 14px}.compare-thumb{width:124px;aspect-ratio:4/2.6;border-radius:13px;background:center/cover no-repeat}.compare-title{display:block;color:var(--head);font-weight:800}.compare-text{display:block;color:var(--muted);font-size:.84rem;line-height:1.65}.chev{font-size:1.4rem;color:var(--muted)}
.lower-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:30px}.news-list{display:grid;gap:10px}.news-item{display:grid;grid-template-columns:132px 1fr auto;align-items:center;gap:16px;padding:10px}.news-thumb{width:132px;aspect-ratio:4/2.45;border-radius:12px;background:center/cover no-repeat}.news-title{margin:0 0 5px;color:var(--head);font-weight:800;line-height:1.55}.news-date{color:var(--muted);font-size:.78rem}
.sidebar-stack{display:grid;gap:16px}.profile-card{padding:22px}.profile-head{display:flex;align-items:center;gap:15px}.avatar{width:72px;height:72px;border-radius:50%;background:url("assets/images/avatar.svg") center/cover no-repeat}.profile-title{font-family:var(--serif);font-size:1.25rem;color:var(--head)}
.line-card{display:grid;grid-template-columns:72px 1fr;gap:16px;padding:22px;color:#fff;background:linear-gradient(135deg,#4fa95a,#6f7f5f);border-radius:var(--radius)}.line-icon{display:grid;place-items:center;width:72px;height:72px;border-radius:18px;background:#fff;color:#05b900;font-weight:900}.line-btn{display:inline-flex;padding:8px 18px;background:#fff;color:var(--green-dark);border-radius:999px;font-weight:800;font-size:.85rem}

/* content pages */
.content-wrap{width:min(calc(100% - 40px),1080px);margin:auto;padding:42px 0}.content-grid{display:grid;grid-template-columns:minmax(0,760px) 300px;gap:34px}.entry-card{padding:clamp(22px,4vw,44px)}.entry-title{font-family:var(--serif);font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.5;color:var(--head)}.entry-meta{display:flex;gap:12px;margin-bottom:24px;color:var(--muted);font-size:.86rem}.pr-box{margin:22px 0;padding:14px 16px;background:#fbfaf6;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:.86rem}.entry-content h2{margin:2.2em 0 .9em;padding-left:16px;border-left:5px solid var(--green);font-family:var(--serif);font-size:1.55rem;color:var(--head)}.entry-content p{margin:0 0 1.5em}.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

/* footer */
.site-footer{margin-top:54px;padding:38px 0 18px;background:rgba(233,223,208,.65);border-top:1px solid var(--line)}.footer-inner{display:grid;grid-template-columns:1fr auto;gap:24px}.footer-logo{font-family:var(--serif);font-size:1.25rem;color:var(--head)}.footer-nav ul{display:flex;flex-wrap:wrap;gap:18px;list-style:none;padding:0;margin:0;color:var(--muted);font-size:.86rem}.copyright{text-align:center;color:var(--muted);font-size:.78rem}

@media(max-width:1080px){.feature-layout,.split-section,.lower-layout,.content-grid{grid-template-columns:1fr}.problem-grid{grid-template-columns:repeat(3,1fr)}.category-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){
  .container{width:min(calc(100% - 28px),var(--container))}.header-inner{min-height:60px}.site-logo{font-size:1.18rem}.menu-toggle{display:inline-block}.primary-nav{position:fixed;top:60px;left:14px;right:14px;display:none;padding:14px;background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.primary-nav.is-open{display:block}.primary-nav ul{display:grid;gap:0}.primary-nav a{display:block;padding:13px 8px;border-bottom:1px solid var(--line)}
  .hero{padding:22px 0 26px}.hero-inner{grid-template-columns:1fr;gap:20px}.hero-visual{min-height:240px;border-radius:22px;order:1}.hero-copy{order:2}.hero-title{font-size:clamp(1.68rem,8vw,2.35rem)}.btn{width:100%}.section{padding:34px 0}
  .problem-grid{grid-template-columns:repeat(2,1fr);gap:12px}.problem-card{min-height:104px}.article-grid,.archive-grid{grid-template-columns:1fr}.article-card{display:grid;grid-template-columns:132px 1fr}.article-thumb{aspect-ratio:auto;min-height:112px}.article-body{padding:12px 14px}.article-title{font-size:.93rem}.category-grid{grid-template-columns:repeat(2,1fr);gap:12px}.category-tile{min-height:102px}.mini-grid{grid-template-columns:1fr}.compare-card{grid-template-columns:96px 1fr 16px;gap:12px}.compare-thumb{width:96px}.news-item{grid-template-columns:92px 1fr}.news-date{grid-column:2}.news-thumb{width:92px}.line-card{grid-template-columns:54px 1fr}.line-icon{width:54px;height:54px;font-size:.82rem}.footer-inner{grid-template-columns:1fr}
}
@media(max-width:480px){.article-card{grid-template-columns:114px 1fr}.article-meta{align-items:start;flex-direction:column;gap:6px}.compare-title,.news-title{font-size:.9rem}}

/* =========================================================
   v1.2 デザイン標準: アイボリー + セージグリーン + テラコッタ
   基本レイアウト・余白・カード表現は従来のテーマを継承
   ========================================================= */
:root {
  --bg:#FFF9F1;
  --surface:#FFFFFF;
  --text:#443A30;
  --head:#443A30;
  --muted:#756B61;
  --line:#E9DDD0;
  --green:#708B65;
  --green-dark:#708B65;
  --green-pale:#EDF3EA;
  --accent:#B94B30;
  --accent-light:#FBE8DF;
  --shadow:0 14px 35px rgba(66,48,32,.07);
}
:focus-visible{outline:3px solid #B94B30;outline-offset:3px}
.btn-accent{color:#fff!important;background:var(--accent);border-color:var(--accent)}
.btn-accent:hover{color:#fff!important;background:#94371E;border-color:#94371E;box-shadow:0 9px 25px rgba(185,75,48,.18)}
.tag.is-featured{background:var(--accent-light);color:var(--accent)}
.more-link:hover{color:var(--accent)}

/* 写真の左に文字を重ねるメインビジュアル。画像は管理画面で差し替え可 */
.hero-photo{
  position:relative;
  padding:0;
  display:flex;
  align-items:center;
  min-height:clamp(410px,45vw,590px);
  background-color:#FFF9F1;
  background-image:linear-gradient(90deg,rgba(255,249,241,.42) 0%,rgba(255,249,241,.18) 30%,rgba(255,249,241,0) 56%),var(--hero-image);
  background-size:cover;
  background-position:center center;
}
.hero-photo-inner{display:flex;align-items:center;min-height:inherit;padding-top:40px;padding-bottom:48px}
.hero-photo .hero-copy{position:relative;z-index:1;width:58%;max-width:675px;padding:0 0 0 5px}
.hero-photo .hero-kicker{display:inline-block;margin:0 0 14px;font-weight:700;font-size:.91rem;letter-spacing:.12em;color:#667D5C}
.hero-photo .hero-title{font-size:clamp(1.85rem,3.05vw,2.85rem);line-height:1.52;letter-spacing:.035em;font-weight:600;text-wrap:pretty;text-shadow:0 1px 2px rgba(255,255,255,.38)}
.hero-photo .hero-lead{font-size:clamp(.9rem,1.28vw,1.06rem);line-height:2;max-width:440px;color:#53483B;margin-top:23px}


/* 親への贈りもの特集：背景イラスト削除 + テキスト中央揃え */
.gift-main{
  background:#FFFBF6!important;
  background-image:none!important;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:12px;
  min-height:246px;
  padding:32px 24px;
  border:1px solid #F2E8DE;
}
.gift-main .ribbon{background:#B89155}
.gift-main .gift-title{margin:8px 0 0;line-height:1.5}
.gift-main p{max-width:490px;margin:0 auto 5px;color:#685B4D}
.gift-main .btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.gift-main .btn-primary:hover{background:#94371E;border-color:#94371E;color:#fff}

/* サイドバー: 余分な行高が生まれる grid から、内容に応じて詰める flex に変更 */
.content-wrap{width:min(calc(100% - 32px),1200px);padding:34px 0 24px}
.content-grid,.lower-layout{--sidebar-width:284px;align-items:start}
.content-grid.has-sidebar{display:grid;grid-template-columns:minmax(0,1fr) var(--sidebar-width);gap:20px}
.lower-layout.has-sidebar{display:grid;grid-template-columns:minmax(0,1fr) var(--sidebar-width);gap:20px}
.content-grid.sidebar-left,.lower-layout.sidebar-left{grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
.content-grid.sidebar-left > :first-child,.lower-layout.sidebar-left > :first-child{order:2}
.content-grid.sidebar-left > .site-sidebar,.lower-layout.sidebar-left > .site-sidebar{order:1}
.content-grid.no-sidebar{max-width:900px;margin:0 auto;display:block}
.lower-layout.no-sidebar{display:block}
.entry-card{min-width:0;padding:clamp(20px,3vw,34px)}
.entry-title{margin-top:0;font-size:clamp(1.65rem,3vw,2.6rem)}
.entry-featured{margin:0 0 22px;border-radius:16px;overflow:hidden}
.entry-featured img{width:100%;height:auto}
.sidebar-stack,.site-sidebar{display:flex;flex-direction:column;align-items:stretch;align-self:start;min-width:0;gap:14px;margin:0;padding:0}
.site-sidebar > *{flex:0 0 auto;min-height:0;margin:0}
.site-sidebar.is-sticky{position:sticky;top:92px}
.site-sidebar .profile-card{padding:18px}
.site-sidebar .profile-card p{margin:12px 0 4px;font-size:.89rem;line-height:1.8}
.site-sidebar .avatar{width:50px;height:50px;flex:0 0 50px}
.site-sidebar .profile-title,.site-sidebar .og-widget-title{font-size:1.06rem;line-height:1.55;margin:0}
.site-sidebar .line-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;padding:17px;background:linear-gradient(135deg,#557A5A,#708B65)}
.site-sidebar .line-icon{width:48px;height:48px;border-radius:11px;font-size:.74rem}
.site-sidebar .line-card p{margin:0 0 10px;font-size:.82rem;line-height:1.7}
.site-sidebar .og-widget{padding:17px}
.site-sidebar .og-widget ul{margin:8px 0 0;padding-left:20px}
.site-sidebar .sidebar-recent .profile-title{margin-bottom:12px}
.sidebar-recent-item{display:flex;gap:11px;align-items:center;padding:10px 0;border-top:1px solid var(--line);font-size:.82rem;line-height:1.5;font-weight:700}
.sidebar-recent-item img{width:62px;height:55px;object-fit:cover;border-radius:9px;flex-shrink:0}
.sidebar-cta{padding:18px;background:#FFF9F3}
.sidebar-cta h2{font-family:var(--serif);font-size:1.05rem;margin:0 0 10px}
.sidebar-cta p{margin:0 0 13px;font-size:.87rem;line-height:1.7}
.sidebar-cta .btn{width:100%;min-height:42px;font-size:.85rem;padding:9px 12px}
.sidebar-disclosure{padding:13px 15px;color:#76695d;font-size:.76rem;line-height:1.65}
.archive-main{min-width:0}
.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.archive-pagination{margin:28px 0}
.archive-pagination a,.archive-pagination span{display:inline-block;padding:5px 12px;border:1px solid var(--line);border-radius:8px;margin-right:5px}
.archive-pagination .current{background:var(--green);color:#fff}
.entry-content{overflow-wrap:anywhere}
.entry-content a{color:#886448;text-underline-offset:3px}
.entry-content .og-comparison-cta{color:#fff}
.entry-content .oyagurashi-article{max-width:100%;padding-left:0;padding-right:0}
.entry-content .oyagurashi-article .cta-button{background:var(--accent)}
.entry-content .oyagurashi-article h2{border-left-color:var(--green)}

/* 記事編集画面から画像を左に差し込める「比較カード」 */
.og-comparison-card{margin:30px 0;background:#F2F7F7;border:1px solid #DFE9E7;border-radius:17px;overflow:hidden;box-shadow:0 6px 20px rgba(38,54,54,.04)}
.og-comparison-head{display:flex;gap:16px;align-items:center;background:#708B65;color:#fff;padding:15px 22px}
.og-comparison-head h3,.entry-content .og-comparison-head h3{margin:0;padding:0;border:none;font-family:var(--sans);font-size:clamp(1.1rem,2vw,1.36rem);line-height:1.5;color:#fff}
.og-rank{background:var(--accent);color:#fff;border-radius:9px;font-weight:800;font-size:1.15rem;min-width:42px;min-height:42px;display:grid;place-items:center}
.og-comparison-layout{display:grid;grid-template-columns:minmax(190px,37%) minmax(0,1fr);gap:20px;padding:20px}
.og-comparison-photo{display:flex;flex-direction:column;min-width:0;background:#fff;border-radius:12px;overflow:hidden;align-self:start}
.og-comparison-photo img{width:100%;aspect-ratio:4/3;object-fit:contain;padding:14px}
.og-no-image{display:grid;place-items:center;min-height:200px;color:#93877b;font-size:.86rem}
.og-image-link{text-align:center;font-size:.82rem;color:var(--accent)!important;padding:12px;border-top:1px solid var(--line);font-weight:700;text-decoration:none!important}
.og-comparison-details{min-width:0;display:flex;flex-direction:column;gap:14px}
.og-specs{margin:0;border:1px solid #d7e5e0;background:#fff}
.og-specs > div{display:grid;grid-template-columns:43% 57%;min-height:45px}
.og-specs > div+div{border-top:1px solid #d7e5e0}
.og-specs dt,.og-specs dd{margin:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px 12px;font-size:.88rem;line-height:1.5}
.og-specs dt{background:#E3EFE7;font-weight:700}
.og-comparison-features{background:#FFFCF3;border-radius:11px;padding:17px}
.og-comparison-features h4{color:#40392f;font-size:.9rem;line-height:1.4;margin:0 0 10px}
.og-comparison-features ul{list-style:none;margin:0;padding:0}
.og-comparison-features li{position:relative;padding:0 0 0 20px;margin:0 0 10px;color:#443A30;font-size:.92rem;line-height:1.8;font-weight:600}
.og-comparison-features li:last-child{margin-bottom:0}
.og-comparison-features li:before{content:'✓';position:absolute;left:0;color:var(--green);font-weight:900}
.og-comparison-cta{margin-top:0;align-self:stretch;max-width:none;min-height:48px;text-align:center}
.og-comparison-note{margin:0!important;text-align:center;color:var(--muted);font-size:.75rem!important;line-height:1.6}

/* サイトマップを3列で表示。メニューは 外観 > メニュー から編集 */
.site-footer{margin-top:46px;padding:42px 0 16px;background:#EEE6DA;border-top:1px solid #E4D7C7}
.footer-top{display:grid;grid-template-columns:minmax(180px,.72fr) minmax(0,2fr);gap:50px}
.footer-brand p:not(.footer-logo){font-size:.86rem;color:#75685b;line-height:1.8}
.footer-logo{font-size:1.35rem;font-weight:700;margin:0 0 10px}
.footer-sitemap-title{font-family:var(--serif);font-size:1.4rem;margin:0 0 17px;color:var(--head)}
.footer-sitemap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.footer-sitemap-col h3{font-size:.92rem;color:var(--head);margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid #D9CBBB}
.footer-sitemap-col ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.footer-sitemap-col li{font-size:.83rem;line-height:1.6;color:#665B50}
.footer-sitemap-col a:hover{color:var(--accent);text-decoration:underline}
.footer-extra{margin-top:24px;display:flex;flex-wrap:wrap;gap:20px}
.footer-bottom{border-top:1px solid #D9CBBB;margin-top:30px;padding-top:14px;display:flex;justify-content:space-between;gap:16px;align-items:center}
.footer-bottom p{margin:0;font-size:.77rem;color:#766b5e}
.copyright{text-align:right}

/* 一覧・比較系記事のスマホ表（WP標準テーブル含む） */
.og-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.og-table-scroll table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
.og-table-scroll th,.og-table-scroll td{min-width:132px;white-space:normal;border:1px solid var(--line);padding:12px;vertical-align:middle}
.og-table-scroll th:first-child,.og-table-scroll td:first-child{position:sticky;left:0;z-index:2;background:#F6EFE5;min-width:116px}

@media(max-width:980px){
  .content-grid.has-sidebar,.lower-layout.has-sidebar{grid-template-columns:minmax(0,1fr) 260px;gap:16px}
  .content-grid.sidebar-left,.lower-layout.sidebar-left{grid-template-columns:260px minmax(0,1fr)}
  .archive-grid{grid-template-columns:1fr}
}
@media(max-width:820px){
  .content-wrap{width:min(calc(100% - 24px),1200px);padding:24px 0 8px}
  .content-grid.has-sidebar,.content-grid.sidebar-left,.lower-layout.has-sidebar,.lower-layout.sidebar-left{display:flex;flex-direction:column;gap:22px}
  .content-grid.sidebar-left > :first-child,.lower-layout.sidebar-left > :first-child{order:0}
  .content-grid.sidebar-left > .site-sidebar,.lower-layout.sidebar-left > .site-sidebar{order:0}
  .site-sidebar{width:100%}
  .site-sidebar.is-sticky{position:static}
  .footer-top{grid-template-columns:1fr;gap:20px}
  .footer-sitemap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-bottom{display:block}
  .footer-bottom .copyright{text-align:left;margin-top:6px}
  .archive-grid{grid-template-columns:1fr}
  .og-comparison-layout{gap:14px;padding:14px}
}
@media(max-width:580px){
  /* スマホ幅でのみ画像とコピーを上下に分離する */
  .hero-photo{display:block;min-height:0;background-image:none!important;background-color:#FFF9F1}
  .hero-photo:before{content:"";display:block;width:100%;height:240px;background:var(--hero-mobile-image,var(--hero-image)) center center/cover no-repeat}
  .hero-photo-inner{min-height:0;display:block;padding-top:19px;padding-bottom:23px}
  .hero-photo .hero-copy{width:100%;max-width:650px;padding:0}
  .hero-photo .hero-title{font-size:clamp(1.7rem,5.5vw,2.3rem);line-height:1.55}
  .hero-photo .hero-lead{font-size:.9rem;line-height:1.9}
  .gift-main{padding:28px 14px;min-height:218px}
  .gift-main .gift-title{font-size:1.46rem}
  .entry-card{padding:18px 14px}
  .og-comparison-layout{grid-template-columns:1fr}
  .og-comparison-photo img{max-height:230px}
  .og-comparison-head{padding:12px 14px}
  .og-comparison-features{padding:14px}
  .og-comparison-features li{font-size:.87rem}
  .footer-sitemap-grid{grid-template-columns:1fr;gap:22px}
}

/* v1.2.2: 写真左側のコピーを主役に。旧ラベル・サブコピーは表示しない */
.hero-photo .hero-kicker,.hero-photo .hero-lead{display:none!important}
@media (min-width:821px) and (max-width:1080px){
 .hero-photo .hero-copy{width:56%}
 .hero-photo .hero-title{font-size:clamp(1.75rem,2.75vw,2.3rem)}
}
/* タブレット幅でも画像上にコピーを残す。狭い幅では自然な折り返しを許容 */
@media (min-width:581px) and (max-width:820px){
 .hero-photo{display:flex;align-items:center;min-height:clamp(350px,51vw,420px);background-position:center center}
 .hero-photo:before{content:none;display:none}
 .hero-photo-inner{display:flex;align-items:center;min-height:inherit;padding-top:20px;padding-bottom:22px}
 .hero-photo .hero-copy{width:55%;max-width:450px;padding:0 0 0 5px}
 .hero-photo .hero-title{font-size:clamp(1.55rem,3.6vw,1.88rem);line-height:1.52;letter-spacing:.015em;text-wrap:wrap;overflow-wrap:normal;word-break:normal}
}
@media (max-width:440px){
 .hero-photo .hero-title{font-size:clamp(1.5rem,6.0vw,1.8rem);letter-spacing:.025em}
}

/* 旧介護記事のカテゴリーが増えたときも、PCのカードを均等に整列 */
@media (min-width:1081px){
  .category-grid.has-care-notes{grid-template-columns:repeat(7,minmax(0,1fr));gap:11px}
  .category-grid.has-care-notes .category-tile{padding-inline:5px}
  .category-grid.has-care-notes .category-name{font-size:.86rem}
}

/* v1.2.4: モバイルは人物中心の専用画像。PCとタブレットへの影響なし */


/* ===== v1.3: editorial trust, SEO-related navigation, conversion flow ===== */
.og-breadcrumbs{font-size:.76rem;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap;margin:0 0 15px;align-items:center;line-height:1.6}
.og-breadcrumbs a{text-decoration:underline;text-underline-offset:3px}
.og-breadcrumbs .og-crumb-sep{color:#b2a491}
.og-summary{margin:20px 0 25px;padding:23px 25px;background:#f7f2e9;border:1px solid #e7daca;border-left:5px solid var(--green);border-radius:15px;color:var(--head)}
.og-summary h2{font:700 1.1rem var(--sans);margin:0 0 10px;border:0;padding:0;color:var(--head)}
.og-summary p{margin:0;line-height:1.9}
.og-summary a{display:inline-flex;margin-top:11px;font-size:.85rem;color:var(--accent);font-weight:700;text-decoration:underline}
.og-editorial{margin:34px 0 12px;padding:17px 20px;border:1px solid var(--line);background:#fffdf8;border-radius:15px}
.og-editorial h2{font-size:1.02rem;font-family:var(--sans);margin:0 0 9px;color:var(--head)}
.og-editorial p{font-size:.86rem;line-height:1.85;margin:0 0 7px}
.og-editorial .og-author{font-weight:700}
.og-editorial small{color:var(--muted)}
.og-related{margin-top:34px}
.og-related h2{font:700 1.25rem var(--sans);margin:0 0 16px;color:var(--head)}
.og-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.og-related-item{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(50,30,15,.04)}
.og-related-item img{width:100%;aspect-ratio:16/10;object-fit:cover}
.og-related-item span{padding:12px 13px;font-size:.88rem;font-weight:700;line-height:1.65;color:var(--head)}
.og-article-next{margin:32px 0 4px;padding:25px;border:1px solid #e9c7b8;border-radius:17px;background:#fff9f5;text-align:center}
.og-article-next h2{font-size:1.1rem;font-family:var(--sans);margin:0 0 8px;color:var(--head);border:0;padding:0}
.og-article-next p{font-size:.87rem;line-height:1.8;margin:0 0 15px}
.og-article-next .btn{background:var(--accent);border-color:var(--accent);color:white}
.og-article-next .btn:hover{background:#94371e}
.og-article-next small{display:block;font-size:.75rem;color:var(--muted);margin-top:9px}
.og-data-table-region{overflow-x:auto;max-width:100%;margin:24px 0;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;border:1px solid var(--line);border-radius:12px}
.og-data-table-region table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;margin:0}
.og-data-table-region th,.og-data-table-region td{padding:12px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:145px;max-width:310px;vertical-align:top;line-height:1.7;background:#fff}
.og-data-table-region tr:last-child td,.og-data-table-region tr:last-child th{border-bottom:0}
.og-data-table-region th:first-child,.og-data-table-region td:first-child{position:sticky;left:0;z-index:2;background:#f5efe5;box-shadow:2px 0 5px rgba(50,30,15,.04)}
.og-table-scroll-hint{display:none;font-size:.75rem;color:var(--muted);margin:6px 0 -16px}
.og-article-image{display:block;aspect-ratio:4/2.55;overflow:hidden;background:#f1ece3}
.og-article-image img{display:block;width:100%;height:100%;object-fit:cover}
.article-card .article-thumb:has(img){background:none}
.og-comparison-intro{font-size:.91rem;line-height:1.8;color:var(--head);margin:0!important}
.og-comparison-cautions{background:#fff7ed;border:1px solid #f2ddc8;padding:13px 16px;border-radius:11px}
.og-comparison-cautions strong{font-size:.85rem;color:#8c4e30}
.og-comparison-cautions p{font-size:.87rem;line-height:1.75;margin:4px 0 0}
.og-review-meta{margin:3px 0 0!important;font-size:.75rem!important;color:var(--muted)}
@media(max-width:820px){.og-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.og-related-grid{grid-template-columns:1fr}.og-related-item{flex-direction:row}.og-related-item img{width:110px;aspect-ratio:1/1;flex:0 0 110px}.og-summary{padding:17px}.og-table-scroll-hint{display:block}.og-data-table-region th,.og-data-table-region td{min-width:132px;font-size:.85rem}.og-article-next{padding:20px 16px}}

/* New article manuscript elements, preserve existing beige article design */
.og-import-article .lead{font-size:1.05rem;padding:18px 20px;background:#fffaf4;border:1px solid var(--line);border-radius:13px;line-height:1.95}
.og-import-article h3{font-size:1.1rem;line-height:1.7;color:var(--head);margin:1.8em 0 .6em}
.og-import-article ul{padding-left:1.45em;margin:0 0 1.5em}
.og-import-article li{margin-bottom:.5em}
.og-import-article .og-editorial{margin-top:35px}
.og-import-article .og-summary h2{font-size:1.05rem;margin:0 0 .5em!important;padding:0!important;border:0!important;font-family:var(--sans)}
.og-import-article .og-summary ul{margin-bottom:0}
@media(max-width:580px){.og-import-article .lead{padding:14px 16px;font-size:.95rem}}

/* v1.3.2: リンク付きヘッダーナビ（画像・特集・カードのCSSは変更しない） */
.primary-nav ul { gap: clamp(10px,1.15vw,18px); }
.primary-nav a { font-size: .85rem; white-space: nowrap; }
.primary-nav .current-menu-item > a { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--terra,#B94B30); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.primary-nav a:focus-visible, .site-logo:focus-visible { outline: 3px solid #B94B30; outline-offset: 4px; border-radius: 4px; }
@media(max-width:1180px){
  .header-inner{min-height:60px}
  .menu-toggle{display:inline-block}
  .primary-nav{position:fixed;top:60px;left:14px;right:14px;display:none;padding:14px;background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);max-height:calc(100dvh - 80px);overflow:auto}
  .primary-nav.is-open{display:block}
  .primary-nav ul{display:grid;gap:0}
  .primary-nav a{display:block;padding:12px 8px;border-bottom:1px solid var(--line);font-size:.95rem}
}


/* =============================================================
 * v1.3.3 | 記事デザイン統一 (既存画像・本文・特集レイアウトは変更しない)
 * 記事インポートで使われた .og-import-article と、
 * 以前の記事 .oyagurashi-article を同じトーンに揃える。
 * ============================================================= */
:root {
  --bg: #FFF9F1;
  --surface: #FFFFFF;
  --text: #443A30;
  --head: #443A30;
  --line: #E9DDD0;
  --green: #708B65;
  --green-dark: #708B65;
  --green-pale: #EDF3EA;
  --accent: #B94B30;
  --accent-light: #FBE8DF;
}
.entry-content .og-import-article,
.entry-content .oyagurashi-article {
  max-width: 100%;
  margin: 0 auto;
  color: #443A30;
  line-height: 1.94;
  font-size: 1rem;
  letter-spacing: .02em;
}
.entry-content .og-import-article > p,
.entry-content .oyagurashi-article > section > p {margin: 0 0 1.65em;}
.entry-content .og-import-article > .lead,
.entry-content .oyagurashi-article .lead {
  padding: 23px 25px;
  margin: 0 0 32px;
  font-size: 1.05rem;
  line-height: 1.95;
  color: #4B4035;
  background: #FFFDF8;
  border: 1px solid #EADCC8;
  border-left: 5px solid #708B65;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(69,45,25,.045);
}
.entry-content .og-import-article > h2,
.entry-content .oyagurashi-article section > h2 {
  margin: 49px 0 21px;
  padding: 15px 18px;
  border-left: 6px solid #708B65;
  border-top: 1px solid #EADCC8;
  border-right: 1px solid #EADCC8;
  border-bottom: 1px solid #EADCC8;
  border-radius: 10px;
  background: #F7F1E8;
  font-family: var(--sans);
  font-size: clamp(1.22rem,2.4vw,1.5rem);
  line-height: 1.56;
  font-weight: 750;
  letter-spacing: .02em;
  color: #443A30;
}
.entry-content .og-import-article > h3,
.entry-content .oyagurashi-article section > h3 {
  margin: 30px 0 16px;
  padding: 0 0 10px;
  border: none;
  border-bottom: 2px solid #EADCC8;
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: clamp(1.08rem,2vw,1.2rem);
  font-weight: 700;
  line-height: 1.65;
  color: #514338;
}
.entry-content .og-import-article > ul,
.entry-content .oyagurashi-article section > ul,
.entry-content .og-import-article > ol {
  margin: 12px 0 26px;
  padding-left: 1.5em;
}
.entry-content .og-import-article li,
.entry-content .oyagurashi-article li {margin-bottom: .45em;}
.entry-content .og-import-article a:not(.btn),
.entry-content .oyagurashi-article a:not(.btn):not(.cta-button) {
  color: #8A6238;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content .og-import-article img,
.entry-content .oyagurashi-article section img {
  max-width: 100%; height: auto; border-radius: 12px;
}
.entry-content .og-import-article > .og-summary,
.entry-content .oyagurashi-article .point-box,
.entry-content .oyagurashi-article .check-box,
.entry-content .oyagurashi-article .speech-box {
  margin: 30px 0;
  padding: 23px 25px;
  background: #FFFAF1;
  border: 1px solid #EADCC8;
  border-left: 6px solid #708B65;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(69,45,25,.03);
}
.entry-content .og-import-article > .og-summary h2 {
  margin: 0 0 12px!important;
  padding: 0!important;
  color: #443A30;
  font: 700 1.15rem/1.6 var(--sans)!important;
  border: none!important;
  background: transparent!important;
}
.entry-content .og-import-article > .og-summary ul {margin: 10px 0 0; padding-left: 1.45em;}
.entry-content .oyagurashi-article .faq-item,
.entry-content .oyagurashi-article .support-item {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid #EADCC8;
  border-radius: 16px;
  background: #fff;
}
.entry-content .oyagurashi-article .faq-item h3,
.entry-content .oyagurashi-article .support-item h3 {
  margin: 0 0 12px; padding: 0; border: none;
  font: 700 1.1rem/1.6 var(--sans);
}
/* v1.5.5: FAQの「Q」アイコンに質問文が重ならないよう修正。
   本文中の古い .oyagurashi-article インラインCSSより優先させる。 */
.entry-content .oyagurashi-article .faq-item > h3 {
  position: relative;
  padding-left: 40px;
  min-height: 28px;
}
.entry-content .oyagurashi-article .faq-item > h3::before {
  content: "Q";
  position: absolute;
  top: .12em;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #B99B73;
  color: #FFF;
  font: 700 14px/1 var(--sans);
}
.entry-content .oyagurashi-article .toc-box,
.entry-content .oyagurashi-article .related-links {
  margin: 26px 0 36px;
  padding: 23px;
  border: 1px solid #EADCC8;
  border-radius: 16px;
  background: #fff;
}
.entry-content .oyagurashi-article .cta-box,
.entry-content .oyagurashi-article .final-cta-box {
  padding: 24px;
  margin: 31px 0;
  border: 1px solid #E8D5C2;
  border-radius: 18px;
  background: #FFF9F5;
  text-align: center;
}
.entry-content .oyagurashi-article .cta-button {
  display: inline-block;
  margin: 12px auto 0;
  padding: 13px 23px;
  border-radius: 999px;
  color: #fff!important;
  font-weight: 700;
  background: #B94B30;
  text-decoration: none!important;
}
.entry-content .oyagurashi-article .cta-button:hover {background: #94371E;}
.entry-content .oyagurashi-article .support-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px;
}
.entry-content .oyagurashi-article .support-grid .support-item {margin: 0;}
.entry-content table {max-width:100%;}
@media (max-width: 680px) {
  .entry-content .og-import-article > .lead,
  .entry-content .oyagurashi-article .lead {padding: 17px 18px; font-size: .98rem;}
  .entry-content .og-import-article > h2,
  .entry-content .oyagurashi-article section > h2 {margin: 39px 0 17px; padding: 12px 13px;}
  .entry-content .og-import-article > .og-summary,
  .entry-content .oyagurashi-article .point-box,
  .entry-content .oyagurashi-article .check-box,
  .entry-content .oyagurashi-article .speech-box {padding: 17px 18px;}
  .entry-content .oyagurashi-article .support-grid {grid-template-columns: 1fr;}
  .entry-content .oyagurashi-article .cta-button {display:block; width:100%;}
}

/* ===== v1.4.0 : 控えめなマイクロインタラクションと柔軟なトップページ ===== */
.og-home-tone-cream{background:#F4EDE3}
.og-home-tone-white{background:#FFFCF8}
.og-custom-section{padding-block:40px}
.og-custom-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:0;overflow:hidden;border-radius:24px;min-height:200px}
.og-custom-panel-image{min-width:0;order:2;max-height:300px}
.og-custom-panel-image img{width:100%;height:100%;object-fit:cover}
.og-custom-panel-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(22px,4vw,46px);gap:10px;order:1}
.og-custom-panel:not(:has(.og-custom-panel-image)){grid-template-columns:1fr;text-align:center}
.og-custom-panel:not(:has(.og-custom-panel-image)) .og-custom-panel-copy{align-items:center}
.og-custom-panel h2{font-family:var(--serif);font-size:clamp(1.45rem,2.7vw,2.1rem);font-weight:600;color:var(--head);line-height:1.45;margin:0}
.og-custom-panel p{font-size:.96rem;line-height:1.85;color:var(--muted);margin:0 0 10px}
.og-custom-panel .btn{min-height:47px}
@media(max-width:680px){.og-custom-panel{display:flex;flex-direction:column}.og-custom-panel-image{order:0;max-height:210px}.og-custom-panel-image img{max-height:210px}.og-custom-panel-copy{order:1;text-align:center;align-items:center;padding:24px 18px}}

/* 動きを使わない読者には、初期表示・タップ・アニメーションで過剰に動かさない。 */
.og-motion-enabled{--og-motion-time:260ms;--og-lift:-3px;--og-motion-distance:14px}
.og-motion-standard{--og-motion-time:390ms;--og-lift:-5px;--og-motion-distance:22px}
@media(hover:hover) and (pointer:fine){
  .og-motion-enabled .problem-card,
  .og-motion-enabled .category-tile,
  .og-motion-enabled .article-card,
  .og-motion-enabled .mini-card,
  .og-motion-enabled .compare-card,
  .og-motion-enabled .news-item,
  .og-motion-enabled .og-related-item,
  .og-motion-enabled .profile-card,
  .og-motion-enabled .btn,
  .og-motion-enabled .line-btn {
    transition: transform var(--og-motion-time) cubic-bezier(.22,.85,.26,1), box-shadow var(--og-motion-time) ease, border-color var(--og-motion-time) ease, background-color var(--og-motion-time) ease, opacity var(--og-motion-time) ease;
    will-change:auto;
  }
  .og-motion-enabled .problem-card:hover,
  .og-motion-enabled .category-tile:hover,
  .og-motion-enabled .article-card:hover,
  .og-motion-enabled .mini-card:hover,
  .og-motion-enabled .compare-card:hover,
  .og-motion-enabled .news-item:hover,
  .og-motion-enabled .og-related-item:hover {
    transform:translateY(var(--og-lift));
    border-color:#D3AB91;
    box-shadow:0 15px 32px rgba(72,48,28,.115);
  }
  .og-motion-enabled .article-thumb,
  .og-motion-enabled .mini-thumb,
  .og-motion-enabled .compare-thumb,
  .og-motion-enabled .news-thumb,
  .og-motion-enabled .og-related-item img{
    transition:transform 450ms cubic-bezier(.22,.85,.26,1),opacity 300ms ease,filter 350ms ease;
  }
  .og-motion-enabled .article-card:hover .article-thumb,
  .og-motion-enabled .mini-card:hover .mini-thumb,
  .og-motion-enabled .compare-card:hover .compare-thumb,
  .og-motion-enabled .news-item:hover .news-thumb,
  .og-motion-enabled .og-related-item:hover img{
    transform:scale(1.025);opacity:.92;
  }
  .og-motion-enabled .problem-icon,
  .og-motion-enabled .category-icon{transition:transform 260ms ease}
  .og-motion-enabled .problem-card:hover .problem-icon,
  .og-motion-enabled .category-tile:hover .category-icon{transform:translateY(-2px) scale(1.055)}
  .og-motion-enabled .more-link:after{display:inline-block;transition:transform 230ms ease}
  .og-motion-enabled .more-link:hover:after{transform:translateX(4px)}
  .og-motion-enabled .primary-nav a{transition:color 220ms ease, opacity 220ms ease}
  .og-motion-enabled .primary-nav a:hover{color:var(--accent);opacity:.85}
  .og-motion-enabled .btn:hover,.og-motion-enabled .line-btn:hover{transform:translateY(-2px)}
  .og-motion-enabled .btn:active{transform:translateY(0)}
}
/* JavaScript が有効な場合のみ初期状態を変え、見えないまま残ることを防止 */
.og-motion-enabled.og-motion-ready.og-reveal-enabled [data-og-reveal]{
  transition:opacity 650ms cubic-bezier(.22,.85,.26,1),transform 650ms cubic-bezier(.22,.85,.26,1);
}
.og-motion-enabled.og-motion-ready.og-reveal-enabled [data-og-reveal]:not(.is-visible){
  opacity:0;transform:translateY(var(--og-motion-distance));
}
.og-motion-enabled.og-motion-ready.og-reveal-enabled [data-og-reveal].is-visible{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .og-motion-enabled *, .og-motion-enabled *::before, .og-motion-enabled *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .og-motion-enabled.og-motion-ready.og-reveal-enabled [data-og-reveal]{opacity:1!important;transform:none!important}
}


/* v1.4.1: トップページ追加広告枠。広告未登録時はPHP側でセクションごと非表示。 */
.og-home-ad-extra{padding:18px 0 26px}
.og-home-ad-extra .og-ad-slot{width:100%;max-width:970px;min-width:0;margin:0 auto;text-align:center;overflow:hidden}
.og-home-ad-extra .og-ad-slot>.og-widget{margin:0;max-width:100%;padding:0;border:0;box-shadow:none;background:transparent}
.og-home-ad-extra .og-ad-slot img,.og-home-ad-extra .og-ad-slot video{max-width:100%;height:auto}
.og-home-ad-extra .og-ad-slot iframe{max-width:100%;border:0}
@media(max-width:580px){.og-home-ad-extra{padding:12px 0 18px}}

/* v1.5.0: スマホのカテゴリー7件目の右隣に表示する広告ウィジェット */
.og-mobile-category-ad { display: none; }
@media (max-width: 820px) {
  .category-grid.has-care-notes .og-mobile-category-ad {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    min-height: 102px;
    padding: 10px 8px;
    border: 1px solid #eadccf;
    border-radius: var(--radius);
    background: #fffdf8;
    overflow: hidden;
  }
  .og-mobile-category-ad-label {
    display: block;
    flex: 0 0 auto;
    color: #756e64;
    font-size: 10px;
    text-align: center;
    letter-spacing: .03em;
    margin: 0 0 5px;
  }
  .og-mobile-category-ad-content { width: 100%; min-width: 0; text-align: center; }
  .og-mobile-category-ad-content .og-widget {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    width: 100%;
    min-width: 0;
  }
  .og-mobile-category-ad-content img,
  .og-mobile-category-ad-content video { display: block; width: auto; max-width: 100%; height: auto; margin: auto; }
  .og-mobile-category-ad-content iframe,
  .og-mobile-category-ad-content ins { max-width: 100%; }
}

/* v1.5.6: 記事本文の共通リンク色ルールが、ミニCTAの白文字を
   同色の茶色で上書きする問題を修正。記事内の既存リンク先は変更しない。 */
.entry-content .oyagurashi-article .mini-cta a,
.entry-content .oyagurashi-article .service-card .mini-cta a {
  color: #ffffff !important;
  text-decoration: none !important;
  opacity: 1;
  visibility: visible;
}
.entry-content .oyagurashi-article .mini-cta a:visited,
.entry-content .oyagurashi-article .mini-cta a:hover,
.entry-content .oyagurashi-article .mini-cta a:focus-visible {
  color: #ffffff !important;
}
.entry-content .oyagurashi-article .mini-cta a:focus-visible {
  outline: 3px solid #708B65;
  outline-offset: 3px;
}


/* ================================================================
 * v1.5.7: 本文・タブレットの幅あふれ修正
 * 固定幅の比較表だけを内部スクロールさせ、記事全体は常に画面内に収める。
 * ================================================================ */
.content-grid,
.lower-layout,
.content-grid > *,
.lower-layout > *,
.entry-card,
.entry-content,
.entry-content .oyagurashi-article,
.entry-content .og-import-article {
  min-width: 0;
}
.entry-content,
.entry-content .oyagurashi-article,
.entry-content .og-import-article {
  width: 100%;
  max-width: 100%;
}
.entry-content .table-scroll,
.entry-content .wp-block-table,
.entry-content .og-table-scroll,
.entry-content .og-data-table-region {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
.entry-content img,
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object,
.entry-content svg {max-width: 100%;}
.entry-content pre {max-width: 100%;overflow-x:auto;}
@media (max-width: 1024px) {
  /* PC用2列グリッドをタブレットから縦1列へ切り替える。
     align-items:start のまま flex-direction:column にすると、
     920px幅の比較表につられて記事カードまで広がるため stretch が必要。 */
  .content-grid.has-sidebar,
  .content-grid.sidebar-left,
  .lower-layout.has-sidebar,
  .lower-layout.sidebar-left {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    width: 100%;
    min-width: 0;
  }
  .content-grid.has-sidebar > *,
  .content-grid.sidebar-left > *,
  .lower-layout.has-sidebar > *,
  .lower-layout.sidebar-left > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .content-grid.sidebar-left > :first-child,
  .lower-layout.sidebar-left > :first-child,
  .content-grid.sidebar-left > .site-sidebar,
  .lower-layout.sidebar-left > .site-sidebar {order:0;}
  .site-sidebar.is-sticky {position: static;}
}

/* 過去記事の表をJavaScriptでラップしたときの専用スクロール領域 */
.entry-content .og-responsive-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
.entry-content .og-responsive-table-wrap > table {
  max-width: none;
}
.entry-content .og-responsive-table-wrap:focus-visible {
  outline: 2px solid #708B65;
  outline-offset: 2px;
}


/* v1.5.8: おすすめ記事の高さがAdSense広告に引きずられる問題を修正。 */
/* 左右カラムを上端で揃え、広告だけが縦長になっても記事カードを伸ばさない。 */
.feature-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}
.feature-layout > .article-grid {
  min-width: 0;
  align-self: start;
  height: auto;
}
.feature-layout > .og-ad-slot {
  width: 300px;
  max-width: 100%;
  min-width: 0;
  align-self: start;
  justify-self: center;
  text-align: center;
}
.feature-layout > .og-ad-slot > .og-widget {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* テーマ既存の1カラム切替を維持。広告は記事一覧の下に置く。 */
@media (max-width: 1080px) {
  .feature-layout { grid-template-columns: minmax(0, 1fr); }
}
/* 極端に狭い画面には、固定300px広告を表示しない。 */
@media (max-width: 339px) {
  .feature-layout > .og-ad-slot { display: none; }
}
