/* Life Care Club 2026 — shared layout, type, and components */

:root {
  --ink: #1a221c;
  --forest: #2c4638;
  --sage: #4d6b5a;
  --moss: #6e8b78;
  --cream: #f4efe6;
  --paper: #fffdf9;
  --clay: #b45c38;
  --clay-dark: #8e4428;
  --line: #ddd6c8;
  --muted: #6a645b;
  --whisper: #8a847a;
  --shadow: 0 10px 30px rgba(28, 36, 30, 0.08);
  --radius: 14px;
  --max: 1120px;
  --prose: 42rem;
  --header-h: 72px;
  --sans: "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

a {
  color: var(--clay-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--clay);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  z-index: 100;
  background: var(--forest);
  color: #fff;
  padding: 0.4rem 0.8rem;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--forest);
  min-width: 0;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--forest);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--clay);
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, rgba(44, 70, 56, 0.08), transparent 55%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}

.hero-inner,
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

h1,
h2,
h3,
.serif {
  font-family: var(--serif);
  color: var(--forest);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  margin: 0 0 0.85rem;
  font-weight: 700;
}

.lede {
  font-size: 1.2rem;
  max-width: 44rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
}

.btn-primary:hover {
  background: var(--sage);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}

/* Cards / grids */
.section {
  padding: 2.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.8rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}

a.card:hover {
  border-color: var(--moss);
  transform: translateY(-2px);
  transition: 0.18s ease;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

/* Prose articles */
.article {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.article h2 {
  font-size: 1.55rem;
  margin: 2.1rem 0 0.7rem;
}

.article h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

.article p,
.article li {
  color: #2a2a26;
}

.article ul,
.article ol {
  padding-left: 1.2rem;
}

.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.4rem 0 2rem;
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.toc ol {
  margin: 0;
}

.callout {
  background: #efe8d8;
  border-left: 4px solid var(--clay);
  padding: 1rem 1.1rem;
  margin: 1.4rem 0;
  border-radius: 0 10px 10px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 1.6rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--paper);
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--forest);
  color: #fff;
  font-weight: 600;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--sage);
  text-decoration: none;
}

/* Roots / continuity — small but readable, not cloaked */
.roots {
  background: var(--forest);
  color: #d7e0da;
}

.roots .wrap {
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.roots h2 {
  color: #f4efe6;
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
}

.roots p {
  max-width: 46rem;
  margin: 0 0 0.7rem;
}

.roots a {
  color: #f0c9b0;
}

.whisper {
  font-size: 0.62rem;
  line-height: 1.45;
  color: var(--whisper);
  max-width: 52rem;
  margin: 0.75rem auto 0;
  padding: 0 1.25rem;
}

/* Footer */
.site-footer {
  background: #22362c;
  color: #d5ddd8;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  color: #f4efe6;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: #c9d4cd;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  font-family: var(--serif);
  color: #f4efe6;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem 1.3rem;
  font-size: 0.8rem;
  color: #a8b5ae;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lang-note {
  font-size: 0.92rem;
}

/* Japan / bilingual blocks */
.ja-block {
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

.figure-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 960px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3,
  .related { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.25rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.55rem; }
  .grid-2,
  .grid-3,
  .grid-5,
  .related,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .header-inner { min-height: 58px; }
}
