/* ひなた商店 — ECデモ（架空・静的モック） */
:root {
  --ink: #1a2421;
  --sub: #5a6b64;
  --line: #d5ddd8;
  --bg: #f7f5f1;
  --panel: #ffffff;
  --primary: #1f4d45;
  --primary-hi: #2a6b5f;
  --accent: #c4782a;
  --header-h: 64px;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

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

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: var(--sg-back-h, 40px);
  z-index: 100;
  background: rgba(247, 245, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--primary), var(--primary-hi));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--primary);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-size: 13px;
}

.cart-count {
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  background: var(--primary-hi);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--panel);
}

.btn-accent {
  background: var(--accent);
}

.btn-accent:hover {
  background: #a86522;
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 44, 38, 0.92) 0%, rgba(22, 58, 52, 0.76) 42%, rgba(22, 58, 52, 0.22) 100%),
    url("../images/hero.svg") center / cover no-repeat;
  color: #fff;
}

.hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: 72px 0 80px;
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9e0d9;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.35;
  font-weight: 800;
  text-wrap: balance;
}

.hero-lead {
  margin: 16px 0 0;
  max-width: 36em;
  color: #d7ebe4;
  font-size: 16px;
  line-height: 1.85;
}

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

.hero-panel {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px;
  backdrop-filter: blur(6px);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.flow-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  color: #e4f2ed;
}

.flow-steps span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-band {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section-head .label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--primary-hi);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--sub);
  max-width: 40em;
}

/* Product grid */
.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(31, 77, 69, 0.1);
}

.product-thumb {
  aspect-ratio: 1 / 1;
  position: relative;
}

.product-thumb .photo-note {
  position: absolute;
  right: 8px;
  bottom: 8px;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 10px;
}

.product-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-cat {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-hi);
}

.product-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.product-price {
  margin: 4px 0 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.product-body .btn {
  margin-top: auto;
  width: 100%;
  min-height: 40px;
  font-size: 14px;
}

/* Thumb variants (CSS placeholders) */
.thumb-a {
  background:
    radial-gradient(circle at 30% 30%, #e8c48a 0 28%, transparent 29%),
    linear-gradient(160deg, #d9c4a0, #b8956a);
}
.thumb-b {
  background:
    radial-gradient(circle at 70% 40%, #f0ebe3 0 22%, transparent 23%),
    linear-gradient(145deg, #3d6b5c, #1f4d45);
}
.thumb-c {
  background:
    linear-gradient(135deg, #c4782a 0%, #e0a35a 40%, transparent 41%),
    linear-gradient(210deg, #efe6d8, #d2c0a4);
}
.thumb-d {
  background:
    radial-gradient(ellipse at 50% 80%, #8bb8a8 0 35%, transparent 36%),
    linear-gradient(180deg, #f3efe8, #c5d5cc);
}
.thumb-e {
  background:
    repeating-linear-gradient(-35deg, #e8dfd0 0 8px, #dccfba 8px 16px),
    linear-gradient(160deg, #6a8f7f, #2f5a4f);
}
.thumb-f {
  background:
    radial-gradient(circle at 40% 50%, #fff6e8 0 18%, transparent 19%),
    linear-gradient(120deg, #5c4030, #2a1f18);
}

/* Product detail */
.detail-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 860px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.detail-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.detail-media .product-thumb {
  aspect-ratio: 4 / 3;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}

.detail-price {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.detail-desc {
  margin: 18px 0 0;
  color: var(--sub);
  line-height: 1.85;
}

.detail-meta {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--sub);
}

.detail-meta strong {
  color: var(--ink);
  font-weight: 700;
  margin-right: 8px;
}

.qty-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.qty-row label {
  font-size: 14px;
  font-weight: 700;
}

.qty-row input {
  width: 72px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.demo-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--sub);
}

/* Cart / complete */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.cart-table th {
  background: #eef3f0;
  font-size: 13px;
  font-weight: 700;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cart-item .mini-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex-shrink: 0;
}

.cart-summary {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-left: auto;
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.cart-summary .total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
}

.cart-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.empty-cart {
  padding: 40px 24px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.complete-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 28px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.complete-card .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e6f3ee;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
}

.complete-card h1 {
  margin: 0;
  font-size: 26px;
}

.complete-card p {
  margin: 14px 0 0;
  color: var(--sub);
}

.complete-card .btn {
  margin-top: 28px;
}

/* Features strip */
.feature-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--sub);
  font-size: 14px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  background: #163a34;
  color: #c5d9d3;
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer a:hover {
  color: #fff;
}

/* Breadcrumb */
.breadcrumb {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--sub);
}

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

@media (max-width: 720px) {
  .hero {
    background-position: 64% center;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .cart-link {
    margin-top: 8px;
    justify-content: center;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    padding: 12px 0;
  }

  .cart-table td {
    padding: 6px 16px;
  }

  .cart-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sub);
    margin-bottom: 2px;
  }
}

img.product-thumb,img.mini-thumb,img.detail-thumb{
  display:block;width:100%;height:auto;object-fit:cover;background:#f3f1ec;
}
img.product-thumb{aspect-ratio:4/3}
img.mini-thumb{width:90px;height:auto;flex:0 0 90px}
/* 商品画像枠の差し替え注記（一覧・詳細） */
.product-media{
  position:relative;
  overflow:hidden;
}
.product-media::after{
  content:"イメージイラスト：画像に差し替え可能";
  position:absolute;
  left:0;right:0;bottom:0;
  z-index:2;
  padding:.55em .7em;
  background:rgba(26,26,26,.55);
  color:#fff;
  font-size:clamp(10px,1.55vw,12px);
  font-weight:600;
  line-height:1.35;
  text-align:center;
  letter-spacing:.02em;
  pointer-events:none;
}
