

:root {
  --ground: #faf7f2;      
  --ink: #33302c;         
  --ink-mute: #6b655c;
  --line: #e3ded4;
  --accent: #9a7b4f;      

  
  --tone-hadaare: #eef1e9;  
  --tone-keana:   #f6efe2;  
  --tone-kansou:  #eceef2;  
  --tone-hiyakedome: #f6ece6; 
  --tone-mutenka: #f3ecec;    
  --tone-kigen: #edf0ea;      
  --tone-akami: #f7ebe6;      
  --tone-hoshitsu: #f4f0e8;   
  --tone-yameru: #f3f0e9;     
  --tone-tsubusu: #eef1f4;    
  --tone-seikatsu: #eef2f0;   
  --tone-ase: #eef4f5;        
  --tone-kyushu: #eef1ea;     
  --tone-proactive: #f2ecef;  
  --tone-shindan: #f2efe9;    
  --tone-default: #f2ede4;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;

  --measure: 34em;        
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;   
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 1rem 1.2rem;
  text-align: center;
}
.site-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: .14em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav {
  margin-top: .9rem;
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--ink-mute);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }

.topic-nav {
  margin-top: .7rem;
  display: flex;
  justify-content: center;
  gap: .45rem .9rem;
  flex-wrap: wrap;
}
.topic-nav a {
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--ink-mute);
  text-decoration: none;
  opacity: .78;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
}
.topic-nav a:hover { opacity: 1; border-bottom-color: var(--accent); }

.hero {
  position: relative;
  margin: 0 0 3.5rem;
  background: var(--tone, var(--tone-default));
}
.hero img {
  display: block;
  width: 100%;
  
  height: clamp(150px, 22vw, 260px);
  object-fit: cover;
}
.hero-line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 3.4vw, 1.9rem);
  line-height: 1.7;
  margin: 0;
  padding: 2rem 1.2rem 2.4rem;
  text-align: center;
}

.eyebrow {
  font-family: var(--latin);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .82rem;
  color: var(--ink-mute);
  text-align: center;
  margin: 0 0 1.6rem;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.2rem 4rem;
}
main.wide { max-width: 52em; }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 4.2vw, 2rem);
  line-height: 1.6;
  letter-spacing: .01em;
  margin: 0 0 1.2rem;
}
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 3rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
p { margin: 0 0 1.5rem; }
strong { font-weight: 600; }
.date { color: var(--ink-mute); font-size: .82rem; letter-spacing: .06em; }

article ul { padding-left: 1.2em; }
article li { margin-bottom: .6rem; }

.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.article-list li {
  background: var(--tone-default);
  border-radius: 2px;
  overflow: hidden;
}
.article-list li.tone-hadaare { background: var(--tone-hadaare); }
.article-list li.tone-keana   { background: var(--tone-keana); }
.article-list li.tone-kansou  { background: var(--tone-kansou); }
.article-list li.tone-hiyakedome { background: var(--tone-hiyakedome); }
.article-list li.tone-mutenka { background: var(--tone-mutenka); }
.article-list li.tone-kigen { background: var(--tone-kigen); }
.article-list li.tone-akami { background: var(--tone-akami); }
.article-list li.tone-hoshitsu { background: var(--tone-hoshitsu); }
.article-list li.tone-yameru { background: var(--tone-yameru); }
.article-list li.tone-tsubusu { background: var(--tone-tsubusu); }
.article-list li.tone-seikatsu { background: var(--tone-seikatsu); }
.article-list li.tone-ase { background: var(--tone-ase); }
.article-list li.tone-kyushu { background: var(--tone-kyushu); }
.article-list li.tone-proactive { background: var(--tone-proactive); }
.article-list li.tone-shindan { background: var(--tone-shindan); }

.article-list img { display: block; width: 100%; height: 150px; object-fit: cover; }
.article-list .body { padding: 1.2rem 1.3rem 1.4rem; }
.article-list a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.article-list a:hover { border-bottom-color: var(--accent); }
.article-list span {
  display: block;
  margin-top: .6rem;
  font-size: .85rem;
  line-height: 1.8;
  color: var(--ink-mute);
}

.cta {
  display: inline-block;
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 1.2rem 3rem;
  text-align: center;
  color: var(--ink-mute);
  font-size: .8rem;
  line-height: 1.9;
}
.site-footer nav { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.site-footer a { color: var(--ink-mute); text-decoration: none; border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: no-preference) {
  a { transition: border-color .18s ease; }
}

.fig { margin: 2.6rem 0; }
.fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ground);
}
.fig figcaption {
  margin-top: .7rem;
  font-size: .8rem;
  line-height: 1.8;
  color: var(--ink-mute);
}
@media (min-width: 760px) {
  .fig {
    width: min(48em, 92vw);
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

.next-up { margin-top: 3.6rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.next-up .article-list img { height: 110px; }

.table-wrap { overflow-x: auto; margin: 1.8em 0; -webkit-overflow-scrolling: touch; }
.article table { border-collapse: collapse; width: 100%; font-size: 0.94em; }
.article th, .article td {
  border-bottom: 1px solid var(--line);
  padding: 0.7em 0.9em;
  text-align: left;
  vertical-align: top;
}
.article th { font-weight: 600; white-space: nowrap; background: var(--tone, var(--tone-default)); }

.article blockquote {
  margin: 1.8em 0;
  padding: 0.9em 1.1em;
  background: rgba(0, 0, 0, .028);
  color: var(--ink-mute);
}
.article blockquote p { margin: 0.4em 0; }

.article p, .article li, .article td, .article th, .article blockquote { overflow-wrap: anywhere; }

.hero-line span { display: inline-block; }

.fig-zoom { display: block; }
.fig-hint {
  display: block;
  margin-top: .35rem;
  font-size: .75rem;
  color: var(--accent);
}
@media (min-width: 760px) {
  
  .fig-hint { display: none; }
}

.topic-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1.4rem 0 2.2rem;
}
.topic-jump > span {
  font-size: 0.82rem;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin-right: 0.2rem;
}
.topic-jump a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}
.topic-jump a:hover { border-color: var(--ink-mute); }
.topic-jump a b { font-weight: 600; font-size: 0.8rem; color: var(--ink-mute); }

.topic-group { margin-top: 2.6rem; }
.topic-group > h2 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;   
}
.topic-group > h2 .count {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-mute);
}

.affiliate-notice {
  margin: 1.2rem 0 2rem;
  padding: 0.7rem 0.9rem;
  background: rgba(0, 0, 0, .035);
  background: #f6f2ea;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink);
}
.affiliate-notice span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.83rem;
  color: var(--ink-mute);
}

.card-date {
  display: block;
  margin-top: .5rem;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink-mute);
  opacity: .7;
}

pre.contrast {
  margin: 1.8rem 0;
  padding: 1.1rem 1.2rem;
  background: rgba(0, 0, 0, .028);
  border-radius: 2px;
  font-family: inherit;
  font-size: .92rem;
  line-height: 1.95;
  color: var(--ink, inherit);
  white-space: pre-wrap;
  overflow-x: auto;
  word-break: break-word;
}
pre.contrast strong { font-weight: 600; }

.date .updated {
  margin-left: .7em;
  font-size: .92em;
  opacity: .75;
}

.revision {
  margin: 1.1rem 0 1.8rem;
  padding: .75rem 0 .55rem;
  border-top: 1px solid var(--line, #ddd);
  color: var(--ink-mute);
  font-size: .84rem;
  line-height: 1.75;
}
.revision-label {
  display: block;
  font-size: .74rem;
  letter-spacing: .12em;
  opacity: .8;
  margin-bottom: .15rem;
}

.toc {
  margin: 1.6rem 0 2.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line, #ddd);
  border-radius: 8px;
  background: var(--paper-2, rgba(0, 0, 0, .02));
}
.toc-title { margin: 0 0 .5rem; font-size: .82rem; letter-spacing: .08em; color: var(--ink-mute); }
.toc ol { margin: 0; padding-left: 1.4rem; }
.toc li { margin: .3rem 0; font-size: .95rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc ol ol { margin: .25rem 0 .45rem; padding-left: 1.2rem; list-style: circle; }
.toc ol ol li { font-size: .9rem; opacity: .88; }

.article-notice {
  margin: 2.4rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line, #ddd);
  color: var(--ink-mute);
  font-size: .84rem;
  line-height: 1.8;
}

@media (max-width: 560px) {
  .article th { white-space: normal; }
  .article th, .article td { padding: 0.6em 0.55em; }
  .article table { font-size: 0.88em; }
}
.table-wrap {
  background:
    linear-gradient(to right, var(--bg, #fff) 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to right, rgba(255, 255, 255, 0), var(--bg, #fff) 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0)) 100% 0;
  background-repeat: no-repeat;
  background-size: 34px 100%, 34px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
