:root {
  --ink: #122126;
  --muted: #657179;
  --line: #dce4e8;
  --paper: #fbfcfb;
  --white: #ffffff;
  --aqua: #0f8f9f;
  --aqua-dark: #08606b;
  --coral: #df6651;
  --sun: #f4c95d;
  --shadow: 0 20px 50px rgba(18, 33, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.7;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 251, 0.92);
  border-bottom: 1px solid rgba(220, 228, 232, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

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

.brand small,
.eyebrow {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.cart-toggle,
.button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--aqua-dark);
  border-radius: 8px;
}

.cart-toggle strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  color: var(--ink);
  background: var(--sun);
  border-radius: 999px;
}

.hero {
  min-height: min(720px, calc(100vh - 72px));
  display: grid;
  align-items: end;
  padding: clamp(80px, 12vw, 160px) clamp(18px, 5vw, 72px) clamp(56px, 9vw, 110px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 31, 38, 0.82), rgba(9, 31, 38, 0.34) 58%, rgba(9, 31, 38, 0.12)),
    url("https://images.unsplash.com/photo-1502680390469-be75c86b636f?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.hero-copy {
  width: min(680px, 100%);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1,
.store-toolbar h2,
.guide h2,
.checkout h2,
.cart-head h2 {
  margin: 0;
  line-height: 1.15;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 7vw, 6.7rem);
  font-weight: 900;
}

.hero p {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--coral);
}

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.button.full {
  width: 100%;
}

.store-toolbar,
.guide,
.checkout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.store-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 58px 0 24px;
}

.store-toolbar h2,
.guide h2,
.checkout h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.filters label,
.order-form label {
  display: grid;
  gap: 6px;
}

.filters span,
.order-form span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.product-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-media {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: var(--product-bg);
}

.product-media svg {
  width: 76%;
  height: 76%;
}

.product-body {
  display: grid;
  flex: 1;
  gap: 12px;
  padding: 16px;
}

.product-body h3,
.guide h3 {
  margin: 0;
  line-height: 1.35;
}

.product-body p,
.guide p,
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  font-size: 1.15rem;
  font-weight: 900;
}

.add-button {
  min-width: 112px;
}

.guide {
  padding: 70px 0 58px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.guide article,
.checkout-summary,
.order-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
  padding: 0 0 76px;
}

.checkout-items,
.cart-items {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.line-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.line-item strong,
.line-item span {
  display: block;
}

.line-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button,
.remove-button,
.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: #eef4f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.remove-button {
  width: auto;
  padding: 0 10px;
  color: var(--coral);
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-size: 1.12rem;
}

.order-form {
  display: grid;
  gap: 14px;
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  display: flex;
  width: min(420px, 100%);
  flex-direction: column;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

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

.cart-items {
  flex: 1;
  overflow: auto;
}

.cart-foot {
  padding-top: 12px;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: rgba(18, 33, 38, 0);
  transition: background 180ms ease;
}

.scrim.is-open {
  pointer-events: auto;
  background: rgba(18, 33, 38, 0.42);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.empty {
  color: var(--muted);
  background: #eef4f5;
  border-radius: 8px;
  padding: 16px;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

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

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .brand small,
  .cart-toggle span {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .store-toolbar,
  .checkout {
    display: grid;
  }

  .filters,
  .filters label,
  .product-grid,
  .guide-grid,
  .checkout {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
  }
}
