:root {
  --bg: #f7faf8;
  --paper: #ffffff;
  --ink: #17231b;
  --muted: #647067;
  --line: #dfe8e1;
  --brand: #1f7a4d;
  --brand-soft: #e8f5ee;
  --accent: #f2b84b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--brand);
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 22px 42px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  margin: 18px 0;
  letter-spacing: -.04em;
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -.03em;
}

h3 {
  margin: 0 0 8px;
  line-height: 1.3;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}

.hero-card {
  background: linear-gradient(135deg, #ffffff, #edf8f1);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(31,122,77,.12);
}

.hero-card ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.button.secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 22px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(23,35,27,.05);
}

.product-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
}

.product-image {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand-soft), #fff9e9);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 800;
  text-align: center;
  padding: 12px;
  font-size: 13px;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.text-muted {
  color: var(--muted);
}

.notice {
  background: #fff9e9;
  border: 1px solid #f5dfa8;
  border-radius: 22px;
  padding: 20px;
  color: #6e541c;
}

.footer {
  margin-top: 48px;
  background: #102017;
  color: #dcebe1;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 22px;
  display: grid;
  gap: 14px;
}

.small {
  font-size: 13px;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 22px;
}

.page .card + .card {
  margin-top: 18px;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .grid.three,
  .grid.products {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-image {
    width: 100%;
  }

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

/* KENKO_IMAGE_LAYOUT_FIX_v0_1 */
.product-image {
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  border-radius: 16px;
  background: #f4f8f2;
  border: 1px solid #dfe8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 14px;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.product-image br {
  display: none;
}

.product-image .product-img,
.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card {
  overflow: hidden;
}

.product-card .product-image {
  margin-bottom: 16px;
}

.page > .card.product-card,
.card.product-card {
  align-items: start;
}

.card.product-card .product-image {
  width: 220px;
  max-width: 100%;
  height: 220px;
  min-height: 220px;
  flex: 0 0 220px;
}

@media (max-width: 760px) {
  .card.product-card .product-image {
    width: 100%;
    flex-basis: auto;
  }
}

/* KENKO_IMAGE_LAYOUT_SECOND_FIX_v0_1 */

/* 商品一覧：画像はカード内に収め、空枠の二重表示を避ける */
.product-card .product-image {
  width: 100%;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  border-radius: 16px;
  background: #f4f8f2;
  border: 1px solid #dfe8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 14px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  margin-bottom: 16px;
}

.product-card .product-image img,
.product-card .product-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 商品詳細：一覧より大きく見せる */
.detail-product-card {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 28px;
  align-items: start;
}

.detail-product-card .product-image {
  width: 440px;
  height: 440px;
  min-height: 440px;
  max-height: 440px;
  flex: none;
  margin-bottom: 0;
  padding: 24px;
}

.detail-product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 820px) {
  .detail-product-card {
    display: block;
  }

  .detail-product-card .product-image {
    width: 100%;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    margin-bottom: 20px;
  }
}

/* KENKO_PRODUCTS_PAGE_DUPLICATE_IMAGE_SLOT_FIX_v0_1 */

/* 商品一覧は1カード1画像。余計な空枠を出さない */
.products-grid .product-card,
.product-grid .product-card,
.product-list .product-card {
  overflow: hidden;
}

.products-list-image,
.products-grid .product-card > .product-image,
.product-grid .product-card > .product-image,
.product-list .product-card > .product-image {
  width: 100%;
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  margin: 0 0 18px 0;
  padding: 16px;
  box-sizing: border-box;
  border: 1px solid #dfe8dc;
  border-radius: 16px;
  background: #f4f8f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.products-list-image img,
.products-grid .product-card > .product-image img,
.product-grid .product-card > .product-image img,
.product-list .product-card > .product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 空の画像風ボックスが残っても商品一覧では非表示 */
.products-grid .product-card a:empty,
.product-grid .product-card a:empty,
.product-list .product-card a:empty,
.products-grid .product-card div:empty,
.product-grid .product-card div:empty,
.product-list .product-card div:empty {
  display: none;
}

/* KENKO_PRODUCTS_PAGE_CLEAN_REBUILD_v0_1 */

.products-clean-page {
  max-width: 980px;
}

.clean-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.clean-product-card {
  background: #fff;
  border: 1px solid #dfe8dc;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.clean-product-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  width: 100%;
  border: 1px solid #dfe8dc;
  border-radius: 16px;
  background: #f4f8f2;
  padding: 18px;
  box-sizing: border-box;
  overflow: hidden;
  text-decoration: none;
}

.clean-product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.clean-product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.clean-product-body h2 {
  font-size: 1.12rem;
  line-height: 1.45;
  margin: 0;
}

.clean-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clean-tags span {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf5ee;
  color: #137a52;
  font-size: .78rem;
  font-weight: 700;
}

.clean-product-body p {
  margin: 0;
}

.clean-price {
  margin-top: auto !important;
}

.clean-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .clean-products-grid {
    grid-template-columns: 1fr;
  }

  .clean-product-image-link {
    height: 220px;
  }
}

/* KENKO_DESKTOP_DETAIL_HERO_BALANCE_FIX_v0_1 */

/* PC詳細ページだけHeroバランスを調整。スマホ表示は既存の良い状態を維持する */
@media (min-width: 821px) {
  .page {
    max-width: 860px;
  }

  .detail-product-card {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    padding: 32px;
  }

  .detail-product-card .product-image {
    width: 360px;
    height: 360px;
    min-height: 360px;
    max-height: 360px;
    padding: 28px;
    margin: 0;
    align-self: start;
  }

  .detail-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .detail-product-card > div:not(.product-image) {
    max-width: 420px;
  }

  .detail-product-card .lead {
    font-size: 1.02rem;
    line-height: 1.85;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .detail-product-card .card {
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    padding: 24px;
    margin-top: 18px;
  }

  .detail-product-card .card h2 {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 18px;
  }

  .detail-product-card .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
  }

  .detail-product-card .actions .button {
    white-space: nowrap;
  }
}

/* 大きめPCでは中央に落ち着かせる */
@media (min-width: 1100px) {
  .page {
    max-width: 900px;
  }

  .detail-product-card {
    grid-template-columns: 380px minmax(0, 1fr);
  }

  .detail-product-card .product-image {
    width: 380px;
    height: 380px;
    min-height: 380px;
    max-height: 380px;
  }
}
