/* 暮らしのデータ（/news/data/）。グラフは SVG、色は base.css のトークンに合わせる。 */
.life-page { --life-ink: var(--color-ink, #2b2720); --life-muted: var(--color-muted, #776f66); --life-line: var(--color-line, #ded6ca);
  --life-c0: #a8740f; --life-c1: #4f745f; --life-c2: #356789; --life-up: #a6492f; --life-down: #2f6b8a; --life-alert: #a6492f;
  max-width: 1100px; margin: clamp(1rem, 4vw, 2.5rem) auto; padding: 0 1rem; color: var(--life-ink); }
.life-masthead { padding: clamp(1rem, 3vw, 2rem); background: #fbf6ea; border: 1px solid #ecdfc0; border-radius: 6px; }
.life-eyebrow { font-size: .72rem; letter-spacing: .14em; font-weight: 700; color: #8a6a24; margin: 0 0 .4rem; overflow-wrap: anywhere; }
.life-masthead h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.35; margin: 0; }
.life-lead { font-size: .95rem; line-height: 1.8; color: var(--life-muted); margin: .6rem 0 1rem; }
.life-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.life-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .85rem; border: 1px solid #dccb9f; border-radius: 999px; background: #fff; color: var(--life-ink); font-size: .85rem; text-decoration: none; }
.life-tabs a[aria-current="page"] { background: #3a3122; border-color: #3a3122; color: #fff; }
.life-page a:focus-visible { outline: 3px solid #8a6a24; outline-offset: 3px; }
.life-status { font-size: .85rem; line-height: 1.7; min-height: 1.7em; color: var(--life-muted); margin: 1rem .25rem; }
.life-status:empty { margin: .25rem; }

.life-block { margin: 1.25rem 0; padding: clamp(1rem, 3vw, 1.6rem); background: #fff; border: 1px solid var(--life-line); border-radius: 6px; }
.life-block-kicker { font-size: .7rem; letter-spacing: .14em; font-weight: 700; color: #8a6a24; margin: 0 0 .25rem; }
.life-block h2 { font-size: 1.2rem; line-height: 1.5; margin: 0 0 .6rem; }
.life-block h3 { font-size: 1rem; line-height: 1.5; margin: 1.2rem 0 .5rem; }
.life-block-lead { font-size: .92rem; line-height: 1.8; margin: .4rem 0 .8rem; }
.life-note { font-size: .82rem; line-height: 1.7; color: var(--life-muted); }
.life-block > a { display: inline-flex; min-height: 44px; align-items: center; font-size: .88rem; color: #6d5113; text-underline-offset: .2em; }

.life-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; margin: .6rem 0 1rem; }
.life-tile { display: flex; flex-direction: column; gap: .2rem; padding: .8rem .9rem; background: #faf7f2; border: 1px solid #ece4d6; border-radius: 6px; min-width: 0; }
.life-tile-label { font-size: .78rem; color: var(--life-muted); line-height: 1.5; }
.life-tile-value { font-size: 1.35rem; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.life-tile-note { font-size: .78rem; line-height: 1.5; color: var(--life-muted); overflow-wrap: anywhere; }
.life-tile--up .life-tile-note { color: var(--life-up); }
.life-tile--down .life-tile-note { color: var(--life-down); }
.life-tile--alert { background: #fbefe9; border-color: #efcdbf; }
.life-tile--alert .life-tile-value { color: var(--life-alert); }
.life-tile--accent { background: #fbf4df; border-color: #ecdcae; }

.life-figure { margin: .8rem 0 1rem; }
.life-figure figcaption { font-size: .8rem; line-height: 1.6; color: var(--life-muted); margin-top: .3rem; }
.life-chart { display: block; width: 100%; height: auto; overflow: visible; }
.life-grid { stroke: #ece6db; stroke-width: 1; }
.life-zero, .life-ref { stroke: #8a7f70; stroke-width: 1; stroke-dasharray: 3 3; }
.life-axis { font-size: 11px; fill: #6f675e; font-family: var(--font-latin, system-ui), var(--font-ja-sans, sans-serif); font-variant-numeric: tabular-nums; }
.life-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.life-line--0 { stroke: var(--life-c0); } .life-dot--0 { fill: var(--life-c0); }
.life-line--1 { stroke: var(--life-c1); } .life-dot--1 { fill: var(--life-c1); }
.life-line--2 { stroke: var(--life-c2); } .life-dot--2 { fill: var(--life-c2); }
.life-bar { fill: #d9a441; }
.life-bar--high { fill: #d08a4c; } .life-bar--low { fill: #8fb3a0; }
.life-bar--early { fill: #6f9fb8; } .life-bar--late { fill: #d08a4c; }
.life-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; list-style: none; padding: 0; margin: 0 0 .5rem; font-size: .8rem; }
.life-legend li::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: .35rem; vertical-align: middle; border-radius: 2px; }
.life-legend--0::before { background: var(--life-c0); } .life-legend--1::before { background: var(--life-c1); } .life-legend--2::before { background: var(--life-c2); }

.life-details { margin: .6rem 0; border-top: 1px solid #efe8dc; padding-top: .4rem; }
.life-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: .9rem; font-weight: 600; }
.life-table-wrap { overflow-x: auto; }
.life-table { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.life-table th, .life-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid #f0ebe2; white-space: nowrap; }
.life-table th { font-size: .76rem; color: var(--life-muted); font-weight: 600; }
.life-row--strong td { font-weight: 700; color: var(--life-alert); }

.life-warn-list { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .6rem; }
.life-warn-office { padding: .7rem .9rem; border: 1px solid #efd7cc; background: #fffaf7; border-radius: 6px; }
.life-warn-office h3 { margin: 0 0 .35rem; font-size: .95rem; }
.life-warn-area { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; padding: .25rem 0; }
.life-warn-name { font-size: .9rem; font-weight: 600; min-width: 6em; }
.life-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.life-chip { display: inline-block; font-size: .75rem; line-height: 1.5; padding: .1rem .5rem; border-radius: 999px; background: #f2ede4; color: #4f473d; }
.life-chip--l30 { background: #f6d9c9; color: #7a3712; }
.life-chip--l40 { background: #9c3b1f; color: #fff; }
.life-chip--l50 { background: #5b1f5f; color: #fff; }
.life-chip--cat { background: #e7efe9; color: #34584a; }

.life-date-head { font-size: .95rem; margin: 1.2rem 0 .3rem; padding-bottom: .2rem; border-bottom: 1px solid #efe8dc; }
.life-recall-list { list-style: none; padding: 0; margin: 0; }
.life-recall { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; padding: .5rem 0; border-bottom: 1px dashed #eee6d8; font-size: .9rem; line-height: 1.6; }
.life-recall a { color: var(--life-ink); text-underline-offset: .2em; overflow-wrap: anywhere; }
.life-recall-meta { font-size: .78rem; color: var(--life-muted); }

.life-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin: 1rem 0; }
.life-hub-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem; background: #fff; border: 1px solid var(--life-line); border-radius: 6px; color: var(--life-ink); text-decoration: none; min-height: 190px; }
.life-hub-card:hover { border-color: #d9a441; }
.life-hub-kicker { font-size: .68rem; letter-spacing: .14em; font-weight: 700; color: #8a6a24; }
.life-hub-title { font-size: 1.05rem; font-weight: 700; }
.life-hub-value { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: .2rem; overflow-wrap: anywhere; }
.life-hub-note { font-size: .8rem; line-height: 1.55; color: var(--life-muted); overflow-wrap: anywhere; }
.life-hub-lead { font-size: .8rem; line-height: 1.6; color: var(--life-muted); margin-top: auto; padding-top: .5rem; border-top: 1px solid #f1ebe0; }

.life-method { margin: 1.5rem 0 1rem; padding: 1rem 1.2rem; font-size: .84rem; line-height: 1.8; color: var(--life-muted); border-top: 1px solid var(--life-line); }
.life-method h2 { font-size: 1rem; color: var(--life-ink); margin: 0 0 .4rem; }
.life-method h3 { font-size: .9rem; color: var(--life-ink); margin: 1rem 0 .2rem; }
.life-method ul { margin: .2rem 0; padding-left: 1.2rem; }
.life-source-list a { color: #6d5113; text-underline-offset: .2em; }

@media (max-width: 600px) {
  .life-page { padding: 0 .75rem; }
  .life-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .life-tile-value { font-size: 1.15rem; }
}
