:root {
  --base: #fbfaf7;
  --surface: #ffffff;
  --surface-alt: #f2f5f2;
  --ink: #292826;
  --muted: #6f706b;
  --line: #ddd8cf;
  --primary: #34524a;
  --secondary: #7f8580;
  --accent: #b56f62;
  --soft-accent: #f3e3dd;
  --cool: #e8edf0;
  --shadow: 0 16px 44px rgba(41, 40, 38, 0.08);
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic",
    "Noto Sans JP", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  line-height: 1.75;
  letter-spacing: 0;
}

body,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-color: rgba(52, 82, 74, 0.32);
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body.is-menu-open,
body.is-menu-closing {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(221, 216, 207, 0.72);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  text-decoration: none;
}

.site-brand strong,
.site-brand small {
  display: block;
  line-height: 1.2;
}

.site-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 8px solid var(--primary);
  border-right-color: var(--accent);
  border-bottom-color: var(--secondary);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.site-nav a,
.button,
.filter-chip,
.purpose-tab {
  border-radius: 6px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.site-nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.menu-toggle {
  position: relative;
  z-index: 42;
  display: none;
  flex: 0 0 auto;
  width: 52px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(52, 82, 74, 0.28);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span:not(.visually-hidden) {
  position: absolute;
  right: 13px;
  left: 13px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
  transition: top 220ms ease, transform 220ms ease;
}

.menu-toggle span:nth-of-type(2) {
  top: 16px;
}

.menu-toggle span:nth-of-type(3) {
  top: 25px;
}

body.is-menu-open .menu-toggle {
  background: var(--surface);
  color: var(--primary);
}

body.is-menu-open .menu-toggle span:nth-of-type(2),
body.is-menu-open .menu-toggle span:nth-of-type(3) {
  top: 21px;
}

body.is-menu-open .menu-toggle span:nth-of-type(2) {
  transform: rotate(28deg);
}

body.is-menu-open .menu-toggle span:nth-of-type(3) {
  transform: rotate(-28deg);
}

.global-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.global-menu__backdrop,
.global-menu__panel {
  position: absolute;
  inset: 0;
}

.global-menu__backdrop {
  background: rgba(29, 39, 36, 0.48);
  backdrop-filter: blur(5px);
}

.global-menu__panel {
  left: auto;
  width: min(100%, 520px);
  padding: 86px 24px 28px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 88% 12%, rgba(181, 111, 98, 0.2), transparent 34%),
    linear-gradient(145deg, #fbfaf7, #edf3ef);
  box-shadow: -22px 0 54px rgba(41, 40, 38, 0.18);
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-menu-open .global-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.is-menu-closing .global-menu {
  visibility: visible;
  opacity: 0;
}

body.is-menu-open .global-menu__panel {
  transform: translateX(0);
}

body.is-menu-closing .global-menu__panel {
  transform: translateX(100%);
}

.global-menu__title {
  margin: 0 0 20px;
  color: var(--primary);
  font-size: clamp(1.55rem, 7vw, 2.2rem);
  font-weight: 800;
}

.global-menu__list {
  display: grid;
  border-top: 1px solid rgba(52, 82, 74, 0.2);
}

.global-menu__list a {
  display: grid;
  gap: 2px;
  min-height: 68px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(52, 82, 74, 0.2);
  color: var(--ink);
  text-decoration: none;
}

.global-menu__list strong {
  font-size: 1.05rem;
}

.global-menu__list small {
  color: var(--muted);
  font-size: 0.78rem;
}

.global-menu__footer {
  margin-top: 26px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.global-menu__footer p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.global-menu__footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.hero {
  min-height: min(680px, 82vh);
  display: grid;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.82) 38%, rgba(251, 250, 247, 0.1) 78%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 76px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 12em;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  font-weight: 800;
}

.hero__lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #3d3b36;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  text-decoration: none;
}

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

.button--ghost {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(52, 82, 74, 0.28);
  color: var(--primary);
}

.button:hover,
.filter-chip:hover,
.purpose-tab:hover {
  transform: translateY(-1px);
}

.section,
.page-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.info-page .section,
.info-page .page-hero {
  width: min(772px, calc(100% - 384px));
}

.section {
  padding: 72px 0;
}

.section:has(+ .section) {
  border-bottom: 1px solid rgba(221, 216, 207, 0.72);
}

.section__header {
  margin-bottom: 24px;
}

.section__header h2 {
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem);
  line-height: 1.45;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);
  line-height: 1.4;
}

.section__header--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section__meta {
  margin: 0;
  color: var(--muted);
}

.purpose__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 0;
}

.purpose-tab,
.filter-chip {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.purpose-tab.is-active,
.filter-chip.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.purpose__panel {
  display: none;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 26px;
  padding: 26px 0 0;
}

.purpose__panel.is-active {
  display: grid;
}

.purpose__copy {
  padding: 22px 0;
}

.purpose__copy h3 {
  font-size: 1.45rem;
}

.purpose__copy p {
  color: var(--muted);
}

.article-grid,
.hub-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-card,
.category-card,
.filter-panel,
.aside-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(41, 40, 38, 0.03);
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 252px;
  padding: 18px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.article-card[hidden] {
  display: none;
}

.article-card__meta,
.article-card__footer,
.meta-row,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.article-card__thumb {
  display: block;
  margin: -18px -18px 14px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
  text-decoration: none;
}

.article-card__thumb img,
.article__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__meta span,
.article-card__meta a,
.article-card__footer span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(221, 216, 207, 0.9);
  border-radius: 6px;
  background: var(--base);
  text-decoration: none;
}

.article-card h3 {
  margin-top: 14px;
  font-size: 1.08rem;
}

.article-card:hover h3 {
  color: var(--primary);
}

.article-card:focus-visible {
  outline: 3px solid rgba(52, 82, 74, 0.34);
  outline-offset: 3px;
}

.article-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.article-card__footer {
  margin-top: auto;
}

.category-card {
  display: block;
  min-height: 170px;
  padding: 16px;
  text-decoration: none;
}

.category-card:hover,
.article-card:hover {
  border-color: rgba(52, 82, 74, 0.36);
  box-shadow: var(--shadow);
}

.category-card__count {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  line-height: 1.45;
}

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

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--base);
  color: var(--ink);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 7px 10px;
  font-size: 0.88rem;
}

.page-main {
  padding-bottom: 72px;
}

.page-hero {
  padding: 72px 0 42px;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
}

.article-layout {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 76px;
}

.article-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article {
  min-width: 0;
}

.article__header {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--muted);
}

.article__header h1 {
  margin-top: 16px;
  /* 見出しと余白の共通受入基準（03-ui-design）: H1 最大 PC28px / SP24px */
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);
  line-height: 1.4;
}

.article__header p {
  max-width: 760px;
  color: var(--muted);
}

.article__thumbnail {
  margin: 26px 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.article__body {
  padding-top: 24px;
}

.article-disclosure,
.product-comparison {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(52, 82, 74, 0.24);
  border-radius: 8px;
  background: #f7f8f3;
}

.article-disclosure p {
  margin: 0;
  color: #4b504b;
}

.article-disclosure p + p {
  margin-top: 8px;
}

.product-comparison {
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(41, 40, 38, 0.03);
}

.comparison-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.comparison-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.comparison-head p,
.comparison-footnote,
.affiliate-note,
.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.affiliate-note {
  margin: 14px 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(155, 111, 72, 0.28);
  border-radius: 8px;
  background: var(--soft-accent);
}

.affiliate-note strong {
  color: var(--accent);
}

.product-comparison td strong,
.product-comparison td span {
  display: block;
}

.product-name-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.product-comparison td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.text-cta {
  display: inline-flex;
  min-width: 7em;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.86rem;
  text-decoration: none;
}

.text-cta:hover {
  background: #263f38;
}

.text-cta--subtle {
  margin-top: 12px;
  background: #edf1ec;
  color: var(--primary);
  border: 1px solid rgba(52, 82, 74, 0.2);
}

.text-cta--subtle:hover {
  background: #dde7df;
  color: var(--primary);
}

.product-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.product-review-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.product-review-card__title {
  margin: 4px 0 12px;
  color: var(--primary);
  font-size: 1rem;
}

.product-review-card__image {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 150px;
  margin: 8px auto 14px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-review-card__variant {
  min-height: 2.8em;
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.product-review-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.product-review-card dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.product-review-card dd {
  margin: 2px 0 0;
  color: #403f3b;
  font-size: 0.9rem;
}

.product-store-links {
  display: grid;
  gap: 6px;
  min-width: 9rem;
}

.product-store-links--card {
  margin-top: 14px;
}

.product-offer {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.product-offer p {
  margin: 0 0 6px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.product-offer__seller {
  font-weight: 700;
}

.product-offer .product-store-link {
  width: 100%;
}

.table-scroll:focus-visible {
  outline: 3px solid #356c59;
  outline-offset: 3px;
}

.product-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.product-store-link--rakuten {
  background: #bf0000;
}

.product-store-link--amazon {
  background: #ff9900;
  color: #1f1f1f;
}

.product-store-link--yahoo {
  background: #ff0033;
}

.product-store-link:hover {
  filter: brightness(0.92);
}

.product-store-link__impression {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.product-decision-guide {
  margin: 28px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.product-decision-guide .comparison-head h3,
.product-decision-guide .failure-scenarios h3 {
  margin: 4px 0 10px;
  color: var(--primary);
}

.product-recommendation-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.product-recommendation-list > li {
  padding: 16px;
  border-radius: 0 8px 8px 0;
  background: var(--surface-alt);
  border: 0;
}

.product-recommendation-list h4 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1rem;
}

.product-recommendation-list p {
  margin: 6px 0;
  font-size: 0.92rem;
}

.failure-scenarios {
  padding: 16px 18px;
  border: 1px solid rgba(155, 111, 72, 0.24);
  border-radius: 8px;
  background: var(--soft-accent);
}

.failure-scenarios ul {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.article__body h2 {
  margin: 56px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(221, 216, 207, 0.72);
  /* H2 最大 PC22px / SP20px */
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem);
  line-height: 1.45;
}

.article__body h3 {
  margin: 32px 0 10px;
  /* H3 最大 18px */
  font-size: 1.125rem;
  line-height: 1.5;
}

.article__body p,
.article__body li {
  color: #403f3b;
}

.article__body ul,
.article__body ol {
  padding-left: 1.4em;
}

.article__body code {
  padding: 0.1em 0.32em;
  border-radius: 4px;
  background: var(--cool);
  font-size: 0.92em;
}

.content-note {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--soft-accent);
}

.content-note p {
  margin: 0;
}

.content-note p + p {
  margin-top: 10px;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  touch-action: pan-x pan-y;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 0.88rem;
}

tr:last-child td {
  border-bottom: 0;
}

.article-aside {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.aside-block {
  padding: 16px;
}

.aside-block--note {
  background: var(--soft-accent);
}

.fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fact-list div {
  display: grid;
  gap: 3px;
}

.fact-list dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.fact-list dd {
  margin: 0;
  font-size: 0.92rem;
}

.toc {
  display: grid;
  gap: 8px;
}

.toc a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.check-list {
  margin: 0;
  padding-left: 1.2em;
  color: #4e4741;
  font-size: 0.9rem;
}

.related-section {
  padding-top: 52px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #f4f1eb;
  color: var(--muted);
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .info-page .section,
  .info-page .page-hero {
    width: min(1120px, calc(100% - 36px));
  }

  .article-grid,
  .article-grid--featured,
  .article-grid--compact,
  .hub-grid,
  .category-grid,
  .purpose__panel {
    grid-template-columns: 1fr 1fr;
  }

  .article-main {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    grid-column: 1 / -1;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    background: rgba(251, 250, 247, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand small {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 76vh;
    background-image:
      linear-gradient(180deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.86) 52%, rgba(251, 250, 247, 0.2) 100%),
      var(--hero-image);
    background-position: 60% center;
  }

  .hero h1 {
    max-width: 7em;
  }

  .section {
    padding: 48px 0;
  }

  .section__header--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .purpose__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid,
  .article-grid--featured,
  .article-grid--compact,
  .hub-grid,
  .category-grid,
  .purpose__panel,
  .article-main {
    grid-template-columns: 1fr;
  }

  .comparison-head {
    display: block;
  }

  .article-card {
    min-height: 0;
  }

  .table-scroll {
    border-radius: 6px;
  }

  .table-scroll table {
    min-width: 720px;
  }

  .table-scroll th,
  .table-scroll td {
    padding: 10px 12px;
  }

  .page-hero {
    padding-top: 48px;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* ---- アフィリエイト商品カード(tools/affiliate-search 由来) ----
   構造クラスは tools/affiliate-search/card.css と共通。
   サイトのトーン調整は .af-card 冒頭の CSS 変数の上書きのみで行う。 */

.af-disclosure {
  margin: 1.5em 0 0.5em;
  font-size: 12px;
  color: var(--muted, #6f706b);
}

.af-card {
  --af-card-bg: var(--surface, #ffffff);
  --af-card-border: var(--line, #ddd8cf);
  --af-card-radius: 8px;
  --af-card-gap: 18px;
  --af-card-title-color: var(--ink, #292826);
  --af-card-price-color: var(--primary, #34524a);
  --af-card-note-color: var(--muted, #6f706b);
  --af-btn-radius: 6px;
  --af-btn-text: #ffffff;
  --af-btn-rakuten: #b56f62;
  --af-btn-amazon: #c1885a;
  --af-btn-yahoo: #5c7f99;
  position: relative;
  display: flex;
  gap: var(--af-card-gap);
  padding: var(--af-card-gap);
  margin: 1.5em 0;
  background: var(--af-card-bg);
  border: 1px solid var(--af-card-border);
  border-radius: var(--af-card-radius);
}

.af-card__media {
  flex: 0 0 140px;
  align-self: flex-start;
}

.af-card .af-card__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: calc(var(--af-card-radius) / 2);
}

.af-card img[width="1"][height="1"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  pointer-events: none;
}

.af-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.af-card__title {
  color: var(--af-card-title-color);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.af-card__price {
  margin: 0;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--af-card-price-color);
}

.af-card__price-note {
  margin-left: 0.4em;
  font-size: 0.7em;
  font-weight: 400;
  color: var(--af-card-note-color);
}

.af-card__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.af-card__button {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--af-btn-radius);
  color: var(--af-btn-text);
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.af-card__button:hover {
  opacity: 0.85;
}

.af-card__button--rakuten { background: var(--af-btn-rakuten); }
.af-card__button--amazon { background: var(--af-btn-amazon); }
.af-card__button--yahoo { background: var(--af-btn-yahoo); }

@media (max-width: 480px) {
  .af-card {
    flex-direction: column;
  }

  .af-card__media {
    flex-basis: auto;
    align-self: center;
    width: 60%;
  }

  .af-card__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .af-card__button {
    width: 100%;
  }
}

/* 2026-10-01 コンセプトv2: トップの数字・四つの道・計算ページ */
.section__lead,
.section__note {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section__note {
  margin-top: 24px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.fact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.fact-card p {
  margin: 0;
}

.fact-card__value {
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
}

.fact-card__label {
  color: var(--ink);
}

.fact-card__source {
  color: var(--muted);
  font-size: 0.86rem;
}

.fact-card__link {
  margin-top: auto;
  padding-top: 10px;
  color: var(--primary);
  font-weight: 700;
}

.path-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid rgba(221, 216, 207, 0.72);
}

.path-block:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.path-block__copy h3 {
  font-size: 1.25rem;
  line-height: 1.45;
}

.path-block__copy p:not(.eyebrow) {
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.link-list a {
  color: var(--ink);
  font-weight: 600;
}

.link-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.tool-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(52, 82, 74, 0.24);
  border-radius: 8px;
  background: #f7f8f3;
}

.tool-teaser h2 {
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem);
  line-height: 1.45;
}

.tool-teaser p:not(.eyebrow) {
  max-width: 640px;
  margin: 10px 0 0;
  color: #4b504b;
}

.tool-teaser .button {
  flex-shrink: 0;
}

.planner h2 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem);
  line-height: 1.45;
}

.planner-form {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.planner-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.planner-row legend {
  padding: 0 6px;
  color: var(--primary);
  font-weight: 700;
}

.planner-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.planner-field--wide {
  grid-column: 1 / -1;
}

.planner-field input,
.planner-field select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--base);
  color: var(--ink);
  font-size: 1rem;
}

[data-transition-form] .planner-field {
  max-width: 280px;
}

.planner-result {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(52, 82, 74, 0.24);
  border-radius: 8px;
  background: #f7f8f3;
}

.planner-result p {
  margin: 0;
}

.planner-result p + p,
.planner-result .table-scroll + p,
.planner-result p + .table-scroll {
  margin-top: 12px;
}

.planner-result__list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.planner-result__list li {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.planner-result__list span {
  color: #4b504b;
}

.planner-result__list + p {
  margin-top: 12px;
}

.planner-result__headline {
  font-size: 1.125rem;
}

.planner-result__headline strong {
  color: var(--primary);
}

.planner-result__empty,
.planner-result__hint,
.planner-note {
  color: var(--muted);
}

.planner-note {
  margin: 16px 0 0;
}

@media (max-width: 980px) {
  .fact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .path-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .fact-card,
  .tool-teaser,
  .planner-row,
  .planner-result {
    padding: 24px 20px;
  }

  .tool-teaser {
    flex-direction: column;
    align-items: flex-start;
  }

  .link-list--columns,
  .planner-row {
    grid-template-columns: 1fr;
  }

  /* トップの道・基礎のカードはスマホで画像を省き、縦の長さを抑える */
  .home-page .path-block .article-card__thumb,
  .home-page .section--basics .article-card__thumb {
    display: none;
  }

  [data-transition-form] .planner-field {
    max-width: none;
  }
}

/* HOME / comparison 023: GitHub mock v2, scoped to preserve other pages. */
.ghv2 { font-size:17px; line-height:1.9; }
.ghv2 a { color:var(--primary); font-weight:600; }
.ghv2 h1,.ghv2 h2,.ghv2 h3 { font-family:"Yu Mincho","Hiragino Mincho ProN",serif; font-weight:600; line-height:1.65; }
.ghv2 h1 { font-size:37px; letter-spacing:.025em; margin:0 0 26px; }
.ghv2 h2 { font-size:30px; margin:0 0 24px; }
.ghv2 h3 { font-size:23px; margin:0 0 16px; }
.ghv2 p { margin:0 0 20px; }
.ghv2 figure { margin:0; }
.ghv2 figcaption,.comparison-editorial figcaption { font-size:13px; color:#60675f; margin-top:10px; line-height:1.8; }
.ghv2-wrap { max-width:1190px; margin:auto; padding:64px 32px; }
.ghv2-eyebrow { font-size:13px; letter-spacing:.16em; color:var(--primary); font-weight:700; }
.ghv2 .ghv2-btn { display:inline-block; background:var(--primary); color:#fff; padding:14px 22px; min-height:52px; font-size:15px; border-radius:4px; text-align:center; text-decoration:none; }
.ghv2 .ghv2-ghost { background:#fff; color:var(--primary); border:1px solid #9aa89e; }
.ghv2-small { font-size:13px; color:#60675f; line-height:1.8; }
.ghv2-hero { display:grid; grid-template-columns:.95fr 1.05fr; align-items:center; gap:46px; padding-top:30px; padding-bottom:54px; }
.ghv2-hero img { width:100%; height:520px; object-fit:cover; object-position:73%; border-radius:90px 0 0 0; }
.ghv2-shortcuts { font-size:14px; margin-top:20px; }
.ghv2-pale { background:#edf0e9; }
.ghv2-paths { display:grid; grid-template-columns:1fr 1fr; gap:0 65px; }
.ghv2-path { padding:28px 0; border-top:1px solid #c6ccc3; display:grid; grid-template-columns:40px 1fr; gap:16px; scroll-margin-top:100px; }
.ghv2-num { font-family:Georgia,serif; font-size:25px; color:#7a877b; }
.ghv2-path p,.ghv2-path a { font-size:15px; }
.ghv2-split { display:grid; grid-template-columns:1fr 1fr; gap:65px; align-items:center; }
.ghv2-planner { background:var(--primary); color:#fff; }
.ghv2-planner h2 { color:#fff; }
.ghv2-planner .ghv2-eyebrow { color:#dce6db; }
.ghv2-paper { background:var(--base); color:var(--ink); padding:36px; transform:rotate(-2deg); }
.ghv2-paper .ghv2-eyebrow { color:var(--primary); }
.ghv2-equation { font-family:"Yu Mincho",serif; font-size:29px; line-height:1.7; }
.ghv2-equation strong { font-size:38px; display:block; color:var(--primary); }
.ghv2-feature-photo { width:100%; height:340px; object-fit:cover; }
.ghv2-health { max-width:820px; }
.home-library summary { cursor:pointer; font-size:20px; font-weight:600; padding:16px 0; }
.article-comparison-v2 .article__header h1 { font-size:28px; line-height:1.65; }
.article-comparison-v2 .article-main { grid-template-columns:minmax(0,1fr) 230px; }
.comparison-editorial { margin:24px 0; }
.comparison-editorial img { width:100%; height:310px; object-fit:cover; object-position:50% 40%; }
.comparison-safety { background:var(--soft-accent); padding:24px 28px; margin:32px 0; }
.article__body .comparison-safety h2 { margin-top:0; font-size:25px; }
.usage-matrix table { width:100%; min-width:0; table-layout:fixed; font-size:14px; line-height:1.8; }
.usage-matrix th,.usage-matrix td { padding:16px 12px; vertical-align:top; overflow-wrap:anywhere; }
.usage-matrix thead th { background:var(--primary); color:white; }
.usage-matrix tbody th { background:#e8eee5; color:var(--ink); }
.usage-matrix td { background:#f1f3ee; }
.usage-cards { display:none; }
@media(max-width:800px) {
 .article-comparison-v2 .article-main { grid-template-columns:1fr; }
 .ghv2-hero,.ghv2-split { gap:28px; }
 .ghv2 h1 { font-size:30px; }
}
@media(max-width:650px) {
 .ghv2 { font-size:16px; }
 .ghv2-wrap { padding:45px 22px; }
 .ghv2 h1 { font-size:29px; }
 .ghv2 h2 { font-size:25px; }
 .ghv2 h3 { font-size:21px; }
 .ghv2-hero,.ghv2-paths,.ghv2-split { grid-template-columns:1fr; gap:25px; }
 .ghv2-hero { padding-top:25px; }
 .ghv2-hero img { height:280px; border-radius:55px 0 0 0; }
 .ghv2-path { padding:24px 0; grid-template-columns:29px 1fr; gap:12px; }
 .ghv2-paper { padding:26px; transform:none; }
 .ghv2-feature-photo { height:230px; }
 .ghv2 .ghv2-btn { width:100%; }
 .ghv2-equation { font-size:27px; }
 .ghv2-equation strong { font-size:32px; }
 .comparison-editorial img { height:210px; }
 .comparison-safety { padding:22px; }
 .usage-matrix { display:none; }
 .usage-cards { display:block; }
 .usage-cards section { background:#edf0e9; padding:24px; margin:20px 0; }
 .article__body .usage-cards h3 { margin:0 0 22px; font-size:21px; }
 .usage-cards dl { margin:0; }
 .usage-cards dt { font-size:13px; font-weight:600; color:#57635a; margin-top:20px; }
 .usage-cards dd { margin:4px 0 0; font-size:16px; }
}

@media(max-width:650px){.article-comparison-v2 .article__header h1{font-size:24px}}

/* これから手帳：暮らしの時間軸と、数字を使う道具をつなぐ。 */
.ghv2 h2 { font-size:22px; }
.ghv2 h3 { font-size:18px; }
.ghv2 .ghv2-btn { display:inline-flex; align-items:center; justify-content:space-between; gap:20px; border:1px solid var(--primary); transition:background-color .2s ease,color .2s ease; }
.ghv2 .ghv2-btn:hover,.ghv2 .ghv2-btn:focus-visible { background:var(--base); color:var(--primary); text-decoration:none; }
.ghv2 .ghv2-ghost:hover,.ghv2 .ghv2-ghost:focus-visible { background:var(--primary); color:#fff; border-color:#fff; }
.ghv2-btn span,.ghv2-planner-guide span { display:inline-block; transition:transform .2s ease; }
.ghv2-btn:hover span,.ghv2-btn:focus-visible span,.ghv2-planner-guide:hover span,.ghv2-planner-guide:focus-visible span { transform:translateX(5px); }
.ghv2 .ghv2-planner-guide { display:inline-flex; align-items:center; gap:16px; min-height:44px; color:#fff; font-size:14px; text-decoration:none; }
.ghv2-paper { transform:none; border-radius:3px; box-shadow:8px 8px 0 rgb(0 0 0 / 10%); }
.ghv2-year { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); list-style:none; padding:0; margin:24px 0; gap:12px 8px; }
.ghv2-month { padding:8px 4px 24px; border-top:1px solid #9daaa0; color:#486052; font-size:13px; text-align:center; background:linear-gradient(transparent calc(100% - 1px),#dce1d8 1px); font-variant-numeric:tabular-nums; }
.ghv2-calendar-note { font-family:"Yu Mincho","Hiragino Mincho ProN",serif; font-size:22px; color:var(--primary); }
.ghv2 a:focus-visible { outline:2px solid currentColor; outline-offset:5px; }
@media(max-width:650px) {
 .ghv2 h2 { font-size:20px; }
 .ghv2 h3 { font-size:18px; }
 .ghv2-year { gap:12px 5px; }
 .ghv2-paper { padding:24px; }
 .ghv2-calendar-note { font-size:20px; }
}
@media(prefers-reduced-motion:reduce) {
 .ghv2-btn:hover span,.ghv2-btn:focus-visible span,.ghv2-planner-guide:hover span,.ghv2-planner-guide:focus-visible span { transform:none; }
 .ghv2-btn,.ghv2-btn span,.ghv2-planner-guide span { transition:none; }
}

/* 045: keep the nine-column product comparison readable inside its scroll region. */
.article-partial-cover .product-comparison .table-scroll table { min-width: 1480px; }
.article-partial-cover .product-comparison .table-scroll th,
.article-partial-cover .product-comparison .table-scroll td { min-width: 8rem; }
.article-partial-cover .product-comparison .table-scroll th:last-child,
.article-partial-cover .product-comparison .table-scroll td:last-child { min-width: 18rem; }
