:root {
  --green-900: #163b24;
  --green-700: #286142;
  --green-100: #e8f3ea;
  --leaf: #5f9f4d;
  --cream: #fffaf0;
  --sand: #f5eddc;
  --brown: #6a4a2f;
  --sky: #dff3ff;
  --amber: #f6b73c;
  --ink: #1f2a24;
  --muted: #637068;
  --line: #dfe6dc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(22, 59, 36, .12);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); line-height: 1.75; }
a { color: var(--green-700); text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
.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 { overflow: hidden; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--green-900); color: white; padding: 8px 12px; z-index: 99; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,250,240,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green-900); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--green-100); font-size: 24px; }
.brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.global-nav { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 14px; }
.global-nav a { color: var(--green-900); text-decoration: none; font-weight: 700; }
.menu-toggle { position: relative; z-index: 52; display: none; flex: 0 0 auto; width: 52px; height: 44px; padding: 0; border: 1px solid rgba(40,97,66,.28); border-radius: 999px; background: var(--green-700); color: white; 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: white; color: var(--green-900); }
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(15,46,28,.5); backdrop-filter: blur(5px); }
.global-menu__panel { left: auto; width: min(100%, 520px); padding: 90px 24px 30px; overflow-y: auto; background: radial-gradient(circle at 88% 12%, rgba(246,183,60,.25), transparent 34%), linear-gradient(145deg, #fffaf0, #e8f3ea); box-shadow: -22px 0 54px rgba(22,59,36,.2); transform: translateX(100%); transition: transform 300ms cubic-bezier(.22,1,.36,1); }
body.is-menu-open .global-menu { visibility: visible; opacity: 1; pointer-events: auto; }
body.is-menu-open .global-menu__panel { transform: translateX(0); }
body.is-menu-closing { overflow: hidden; }
body.is-menu-closing .global-menu { visibility: visible; opacity: 0; }
body.is-menu-closing .global-menu__panel { transform: translateX(100%); }
.global-menu__title { margin: 0 0 20px; color: var(--green-900); font-size: clamp(26px, 7vw, 36px); font-weight: 900; }
.global-menu__list { display: grid; border-top: 1px solid rgba(40,97,66,.22); }
.global-menu__list a { display: grid; gap: 2px; min-height: 68px; padding: 13px 4px; border-bottom: 1px solid rgba(40,97,66,.22); color: var(--ink); text-decoration: none; }
.global-menu__list strong { font-size: 17px; }
.global-menu__list small { color: var(--muted); font-size: 12px; }
.home-hero { background: radial-gradient(circle at top left, var(--sky), transparent 36%), linear-gradient(135deg, #fbfff4, var(--sand)); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; padding: 72px 0; }
.eyebrow { margin: 0 0 10px; color: var(--green-700); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3 { color: var(--green-900); line-height: 1.35; letter-spacing: .01em; }
h1 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 18px; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 10px; }
.hero-grid p, .page-hero p, .lead { font-size: 18px; color: #3c4b42; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--green-700); border-radius: 999px; padding: 11px 18px; font-weight: 800; text-decoration: none; background: var(--white); color: var(--green-900); }
.button.primary { background: var(--green-700); color: white; box-shadow: var(--shadow); }
.hero-panel, .affiliate-box, .notice, .toc, .article-card, .hub-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.hero-panel { padding: 26px; }
.panel-title, .footer-heading { font-weight: 900; color: var(--green-900); margin: 0 0 10px; }
.section { padding: 56px 0; }
.muted { background: #f1f6ee; border-block: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; }
.hub-grid, .card-grid, .stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-card { display: block; padding: 22px; height: 100%; text-decoration: none; color: inherit; }
.article-card > a { display: block; height: 100%; padding: 0; text-decoration: none; color: inherit; }
.card-copy { padding: 22px; }
.hub-card span, .card-category, .card-meta, .small-note { display: block; color: var(--muted); font-size: 13px; }
.hub-card strong { color: var(--green-700); }
.article-card { overflow: hidden; box-shadow: none; }
.card-media { display: grid; aspect-ratio: 16 / 10; overflow: hidden; place-items: center; background: linear-gradient(135deg, var(--green-100), var(--cream) 58%, var(--sky)); border-bottom: 1px solid var(--line); }
.card-media picture, .card-media img { display: block; width: 100%; height: 100%; }
.card-media img { object-fit: cover; transition: transform 240ms ease; }
.article-card:hover .card-media img { transform: scale(1.035); }
.card-media-fallback { display: grid; width: 100%; height: 100%; place-content: center; gap: 4px; padding: 20px; color: var(--green-900); text-align: center; }
.card-media-fallback strong { font-size: 30px; line-height: 1; }
.card-media-fallback small { color: var(--muted); font-size: 12px; font-weight: 800; }
.article-card.is-important { border-color: rgba(246,183,60,.75); background: linear-gradient(180deg, #fff, #fff9eb); }
.article-card p { color: #46554c; margin: 0 0 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.priority-badge { display: inline-flex; margin-top: 10px; background: #fff2c8; color: #69480a; border: 1px solid #f1c45f; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 900; }
.category-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.category-list a { display: flex; justify-content: space-between; gap: 12px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; }
.page-hero { padding: 48px 0 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.article-layout { padding: 34px 0 64px; }
.article-hero { padding: 28px; background: linear-gradient(135deg, #ffffff, #f5f9ed); border: 1px solid var(--line); border-radius: 28px; }
.article-figure { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin: 24px 0 0; border: 1px solid var(--line); border-radius: 28px; background: var(--green-100); }
.article-figure picture, .article-figure img { display: block; width: 100%; height: 100%; }
.article-figure img { margin: 0; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.content-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 26px; }
.toc { position: sticky; top: 90px; padding: 18px; box-shadow: none; }
.toc p { margin: 0 0 8px; font-weight: 900; }
.toc ol { padding-left: 20px; margin: 0; font-size: 14px; }
.article-content { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: min(5vw, 42px); }
.static-content { width: min(842px, calc(100% - 310px)); max-width: none; }
.static-content h2 { margin-top: 36px; }
.static-content p, .static-content li { font-size: 17px; }
.article-content h1 { font-size: clamp(28px, 4vw, 42px); }
.article-content h2 { margin-top: 42px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.article-content h3 { margin-top: 28px; }
.article-content p { margin: 0 0 18px; }
.article-content ul, .article-content ol { padding-left: 1.5em; }
.article-content li + li { margin-top: 11px; }
.article-content .check-list { display: grid; gap: 10px; margin: 18px 0 24px; padding-left: 0; list-style: none; }
.article-content .check-list li { position: relative; min-height: 30px; margin-top: 0; padding: 3px 0 3px 34px; list-style: none; }
.article-content .check-list__mark { position: absolute; top: 5px; left: 0; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: 14px; font-weight: 900; line-height: 1; }
.article-content blockquote { margin: 22px 0; padding: 20px 24px; background: var(--green-100); border-radius: 0; }
.ad-label { position: absolute; right: .65rem; bottom: .45rem; z-index: 1; color: #777; font-size: .72rem; font-weight: 400; line-height: 1.4; text-align: right; }
.ad-label--standalone { position: static; display: block; margin: 0 0 18px; }
.notice { padding: 16px 18px; margin: 0 0 22px; box-shadow: none; }
.notice-safety { border-color: #e4b95d; background: #fff8df; }
.affiliate-box { padding: 22px; margin: 0 0 30px; }
.shop-grid { display: grid; gap: 12px; }
.shop-card { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdf8; }
.shop-card div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.shop-card a { display: inline-flex; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 13px; background: white; }
.table-wrap { overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: white; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--green-100); color: var(--green-900); white-space: nowrap; }
.related-section { margin-top: 48px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid div { padding: 22px; border-radius: 22px; background: white; border: 1px solid var(--line); text-align: center; }
.stats-grid strong { display: block; font-size: 36px; color: var(--green-700); }
.keyword-clusters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.keyword-clusters details { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.keyword-clusters summary { display: flex; justify-content: space-between; cursor: pointer; }
.keyword-clusters li { margin: 8px 0; }
.keyword-clusters span { color: #8a610b; font-weight: 900; }
.site-footer { background: var(--green-900); color: #e5f1e6; padding: 36px 0; }
.site-footer a { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.footer-logo { font-size: 22px; font-weight: 900; margin: 0 0 8px; color: white; }
.moshimo-recommendation { margin: 30px 0; }
/* affiliate-search 商品カードの基本スタイル。
   使い方: このファイルを各サイトにコピーし、.af-card の CSS 変数を
   サイトのトーンに合わせて上書きする(構造セレクタは触らない)。 */

.af-card {
  /* ---- サイトごとに調整する変数 ---- */
  --af-card-bg: #ffffff;
  --af-card-border: #e3e0da;
  --af-card-radius: 12px;
  --af-card-gap: 16px;
  --af-card-title-color: #333333;
  --af-card-price-color: #333333;
  --af-card-note-color: #888888;
  --af-btn-radius: 6px;
  --af-btn-text: #ffffff;
  --af-btn-rakuten: #f76956;
  --af-btn-amazon: #f79256;
  --af-btn-yahoo: #66a7ff;
  /* ---------------------------------- */
  position: relative;
  display: flex;
  gap: var(--af-card-gap);
  padding: var(--af-card-gap);
  margin: var(--af-card-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 var(--af-media-size, 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 .af-card__button {
  --af-btn-color: var(--af-card-title-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 140px;
  padding: 10px 12px;
  background: var(--af-btn-color);
  border: 1px solid var(--af-btn-color);
  border-radius: var(--af-btn-radius);
  color: var(--af-btn-text);
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.af-card .af-card__button:visited {
  color: var(--af-btn-text);
}

.af-card .af-card__button:hover,
.af-card .af-card__button:focus-visible {
  background: var(--af-card-bg);
  border-color: var(--af-btn-color);
  color: var(--af-btn-color);
  text-decoration: none;
}

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

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

  .af-card__media {
    flex-basis: var(--af-mobile-media-basis, auto);
    align-self: var(--af-mobile-media-align, center);
    width: var(--af-mobile-media-width, 60%);
  }
}

.moshimo-recommendation { padding: 24px; border: 1px solid #e5c767; border-radius: 22px; background: linear-gradient(180deg, #fffdf5, #fff); }
.article-content .moshimo-recommendation > h2 { margin-top: 0; }
.moshimo-product-group + .moshimo-product-group { margin-top: 30px; padding-top: 26px; border-top: 1px dashed #d9c98d; }
.moshimo-product-group > h3 { margin: 0 0 8px; }
.moshimo-product-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
.moshimo-product-grid .af-card { height: 100%; margin: 0; --af-card-border: #dce4d7; --af-card-radius: 16px; --af-btn-radius: 8px; }
.moshimo-product-grid .af-card__media { flex-basis: 112px; }
.moshimo-product-grid .af-card__reason, .moshimo-product-grid .af-card__check { margin: 0; color: #46554c; font-size: 13px; line-height: 1.65; }
.moshimo-product-grid .af-card__check { padding: 8px 10px; border-radius: 9px; background: #f4f7f1; }
.moshimo-product-grid .af-card__price { margin-top: auto; }
@media (max-width: 900px) {
  .header-inner { min-height: 70px; padding: 10px 0; }
  .brand small { display: none; }
  .global-nav { display: none; }
  .menu-toggle { display: block; }
  .section-heading { align-items: start; flex-direction: column; }
  .hero-grid, .content-grid, .footer-grid { grid-template-columns: 1fr; }
  .static-content { width: min(1120px, calc(100% - 32px)); }
  .toc { position: static; }
  .hub-grid, .card-grid, .card-grid.compact, .stats-grid, .keyword-clusters { grid-template-columns: 1fr 1fr; }
  .category-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1120px); }
  .static-content { width: min(100% - 24px, 1120px); }
  .hero-grid { padding: 44px 0; }
  .hub-grid, .card-grid, .card-grid.compact, .stats-grid, .keyword-clusters, .category-list { grid-template-columns: 1fr; }
  .article-content { padding: 22px; }
  .moshimo-recommendation { padding: 18px; }
  .moshimo-product-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .breadcrumb, .toc, .affiliate-box, .moshimo-recommendation, .related-section, .ad-label, .mobile-sticky-cta { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .container, .content-grid { width: 100%; display: block; }
  .article-layout, .article-hero { padding: 0; }
  .article-content { border: 0; border-radius: 0; padding: 0; }
  .article-content h2 { margin-top: 18pt; break-after: avoid; }
  .article-content table, .article-content ul { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
