:root {
  color-scheme: light;
  --paper: #faf8f0;
  --white: #fffefa;
  --ink: #142920;
  --muted: #486052;
  --green: #245943;
  --pale: #e6efe5;
  --line: #c5d0c2;
  --warm: #eed5a2;
  --max: 70rem;
  --measure: 47rem;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.8; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #744500; outline-offset: 3px; }
img { display: block; width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.42; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.9vw, 3.15rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.42rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.2rem; }
mark { color: inherit; background: linear-gradient(transparent 64%, var(--warm) 64%); font-weight: 700; }
.wrap, .reading { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.reading { max-width: var(--measure); }
.skip { position: absolute; inset: .5rem auto auto .5rem; background: var(--white); padding: .5rem .8rem; transform: translateY(-150%); z-index: 1; }
.skip:focus { transform: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .45rem 1.5rem; }
.header-inner { min-height: 4.3rem; padding-block: .65rem; }
.brand { color: inherit; font-weight: 800; text-decoration: none; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; font-size: .87rem; }
.site-header nav a { color: var(--ink); }
.site-footer { background: var(--ink); color: var(--paper); margin-top: 4.25rem; padding-block: 1.8rem; }
.site-footer a { color: inherit; }
.site-footer a:focus-visible { outline-color: var(--warm); }

.home-hero { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); padding: clamp(2.2rem, 7vw, 5.8rem) 0; }
.home-hero h1 { font-size: clamp(2.55rem, 7vw, 5.45rem); line-height: 1.12; }
.home-hero img, .cover img, .article-figure img { border-radius: .65rem; }
.lead { color: var(--muted); max-width: 29ch; margin-top: 1.3rem; }
.jump { display: inline-flex; align-items: center; gap: .8rem; background: var(--green); color: white; padding: .55rem 1rem; border-radius: .3rem; text-decoration: none; font-weight: 700; }
.home-articles { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.home-articles .disclosure { margin-top: .45rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; }
.card-copy { padding: clamp(1rem, 3vw, 1.4rem); }
.card-copy h3 a { color: var(--ink); }
.card-copy p { margin: .65rem 0 0; color: var(--muted); font-size: .95rem; }

.crumbs { margin-block: 1.45rem 1.25rem; font-size: .78rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; align-items: baseline; }
.crumbs li:first-child { flex: none; }
.crumbs li + li::before { content: "/"; color: var(--muted); margin-right: .5rem; }
.article-heading h1 { margin-bottom: .6rem; }
.disclosure, .source-note, figcaption { font-size: .86rem; color: var(--muted); }
.disclosure a { margin-left: .7rem; }
.answer, .toc, .note { border: 1px solid var(--line); padding: clamp(.85rem, 3vw, 1.4rem); border-radius: .5rem; margin-block: 1rem; }
.answer { background: var(--pale); border-inline-start: 4px solid var(--green); }
.answer p { margin-bottom: .35rem; }
.answer ul, .checks { list-style: none; padding: 0; margin-block: .5rem 0; }
.answer li, .checks li { padding-left: 1.45rem; position: relative; margin: .25rem 0; }
.answer li::before, .checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 700; }
.note { background: #fbf0d9; border-color: #e0c993; }
.note p { margin: 0; }
.toc { background: var(--white); }
.toc h2 { font-size: 1.15rem; }
.toc ol { padding-left: 1.4rem; margin: .45rem 0 0; }
article > h2 { border-top: 1px solid var(--line); padding-top: .85rem; margin: 2.45rem 0 .85rem; scroll-margin-top: 1rem; }
article > h3, .info h2 { margin: 1.45rem 0 .5rem; }
figure { margin: 1.5rem 0; }
figcaption { margin: .4rem 0 0; }
.source-note { margin: .6rem 0 .85rem; }
.ad-slot { border: 1px dashed #789482; background: var(--white); padding: .7rem 1rem; border-radius: .4rem; text-align: center; margin: 1rem 0 1.35rem; }
.table-scroll { max-width: 100%; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: .4rem; margin: .75rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.55; }
@media (min-width: 27rem) {
  .table-scroll:not(.stack-cards) table { min-width: 33rem; }
}
caption { text-align: left; padding: .65rem .8rem; font-weight: 700; }
th, td { padding: .68rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--green); color: white; }
tbody th { white-space: nowrap; }
tbody tr:nth-child(even) { background: #f1f5ed; }
tbody tr:last-child > * { border-bottom: 0; }
.faq { margin: 0; }
.faq dt, .faq dd { margin: 0; padding: .75rem 1rem; }
.faq dt { background: var(--pale); font-weight: 700; border-radius: .4rem .4rem 0 0; }
.faq dd { background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 .4rem .4rem; margin-bottom: .9rem; }
.info { background: var(--white); padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: .65rem; }
.info h1 { margin-bottom: .9rem; }

@media (max-width: 43rem) {
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero img { display: none; }
  .cards { grid-template-columns: 1fr; }
}

.ad-label { margin: 1rem 0 0.15rem; font-size: .86rem; font-weight: 700; color: var(--muted); }
.ad-label + .ad-slot { margin-top: 0.25rem; }

.pubdate { margin: .35rem 0 0; font-size: .86rem; color: var(--muted); }

/* A8テキスト素材をボタン表示。a/imgのマークアップは改変しない */
.ad-slot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.55rem 1.25rem;
  border: 2px solid var(--green);
  border-radius: 0.45rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.ad-slot a:hover { text-decoration: none; filter: brightness(1.08); }
.ad-slot img {
  display: inline;
  width: 1px;
  height: 1px;
  border: 0;
  margin: 0;
  vertical-align: top;
}

.next-link { margin: .15rem 0 1rem; font-weight: 700; }
.next-link a { font-size: 1.02rem; }

.plan-judge { font-size: .86rem; font-weight: 500; color: var(--muted); display: block; margin-top: .2rem; }

/* 390px前後（本文幅は左右余白を引いた約358px）では表を縦カードにし、更新額・返金先を横スクロールなしで見せる */
@media (max-width: 26.5rem) {
  .stack-cards {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .stack-cards table { min-width: 0; }
  .stack-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-cards caption {
    padding: .2rem 0 .6rem;
  }
  .stack-cards tbody tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .5rem;
    margin: 0 0 .75rem;
    padding: .15rem 0 .3rem;
  }
  .stack-cards tbody tr:nth-child(even) { background: var(--white); }
  .stack-cards tbody th,
  .stack-cards tbody td {
    width: 100%;
    border-bottom: 0;
    padding: .4rem .85rem;
    white-space: normal;
  }
  .stack-cards tbody th { display: block; font-size: 1.05rem; background: var(--pale); border-radius: .5rem .5rem 0 0; }
  .stack-cards tbody td {
    display: grid;
    grid-template-columns: 8.2rem 1fr;
    gap: .6rem;
  }
  .stack-cards tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
  }
  .stack-cards tbody tr:last-child > * { border-bottom: 0; }
}

.amt-term { white-space: nowrap; display: inline-block; }
