:root {
  --paper: #fffaf4;
  --surface: #ffffff;
  --ink: #171514;
  --muted: #6f6259;
  --line: #d8d0c7;
  --vermilion: #c84332;
  --vermilion-dark: #9e2f24;
  --jade: #22695d;
  --jade-dark: #174940;
  --saffron: #d79625;
  --plum: #503055;
  --mist: #eef5f0;
  --shadow: 0 20px 50px rgba(23, 21, 20, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.cart-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  color: #ffffff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 244, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.icon-button,
.button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.site-header.is-scrolled .icon-button,
.cart-drawer .icon-button,
.modal .icon-button {
  color: var(--ink);
  background: var(--mist);
  border-color: var(--line);
}

.cart-button strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--vermilion);
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: 132px 32px 72px;
  overflow: hidden;
  color: #ffffff;
}

.hero-pack-scene,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-pack-scene {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  padding: 90px 8vw 40px 38vw;
  background:
    radial-gradient(circle at 18% 22%, rgba(215, 150, 37, 0.28), transparent 28%),
    radial-gradient(circle at 88% 75%, rgba(34, 105, 93, 0.32), transparent 32%),
    linear-gradient(135deg, #251817, #673128 52%, #173f38);
  overflow: hidden;
}

.hero-pack {
  width: clamp(150px, 16vw, 260px);
  min-height: clamp(320px, 46vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 20px;
  border-radius: 28px;
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.32);
  transform: rotate(-8deg);
}

.hero-pack:nth-child(2) {
  transform: translateY(-28px) rotate(4deg);
}

.hero-pack:nth-child(3) {
  transform: translateY(34px) rotate(11deg);
}

.hero-pack strong,
.pack-visual strong {
  text-align: center;
  font-size: 34px;
  line-height: 1.05;
}

.hero-pack span,
.pack-visual span {
  text-align: center;
  font-weight: 900;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(16, 14, 13, 0.78), rgba(16, 14, 13, 0.34) 52%, rgba(16, 14, 13, 0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--saffron);
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 0.95;
  font-weight: 900;
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

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

.button.primary:hover {
  background: var(--vermilion-dark);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(23, 21, 20, 0.18);
}

.button.ghost {
  color: var(--jade-dark);
  background: transparent;
  border: 1px solid var(--jade);
}

.button.full {
  width: 100%;
}

.notice-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: #ffffff;
}

.notice-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.section {
  padding: 82px 32px;
}

.section-heading {
  width: min(1080px, 100%);
  margin: 0 auto 34px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2,
.story-copy h2,
.cart-head h2,
.modal h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
}

.section-heading p:not(.eyebrow),
.story-copy p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.product-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.brand-grid,
.route-stack {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.route-stack {
  display: grid;
  gap: 22px;
}

.nested-grid {
  width: 100%;
}

.route-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.source-link,
.source-line {
  color: var(--muted);
  font-size: 13px;
}

.source-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand-card-link {
  display: block;
  height: 100%;
}

.pseudo-button {
  margin-top: 18px;
}

.brand-hero-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.brand-hero-panel img,
.brand-hero-panel .pack-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--mist);
}

.brand-hero-panel h3,
.detail-main h3,
.detail-section h3 {
  margin: 0 0 12px;
}

.brand-hero-panel h3,
.detail-main h3 {
  font-size: 34px;
  line-height: 1.2;
}

.brand-hero-panel p:not(.eyebrow),
.detail-main p,
.detail-section p {
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.detail-media {
  border-radius: 8px;
  overflow: hidden;
  background: var(--mist);
}

.detail-media img,
.detail-media .pack-visual {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.detail-main {
  align-self: center;
}

.detail-price {
  margin: 20px 0 8px;
}

.detail-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.detail-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.detail-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row strong,
.detail-row span {
  padding: 13px 16px;
}

.detail-row strong {
  background: var(--mist);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.review-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-head span {
  color: var(--saffron);
  white-space: nowrap;
}

.review-card p {
  margin: 10px 0 0;
}

.product-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--mist);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-visual {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pack-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
}

.pack-visual::after {
  content: "";
  width: 82px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7d3f21, #c27c39);
  box-shadow: 42px 12px 0 #9b5528;
}

.pack-visual strong,
.pack-visual span,
.pack-visual small {
  position: relative;
  z-index: 1;
}

.pack-visual small {
  font-weight: 800;
  opacity: 0.9;
}

.pack-kouweiwang {
  background: linear-gradient(135deg, #8f0d17, #e13a2e 48%, #5e0910);
}

.pack-hecheng {
  background: linear-gradient(135deg, #2b2019, #0c1010 52%, #4a321f);
}

.pack-hecheng span,
.pack-hecheng small {
  color: #ffe39a;
}

.pack-xiangtan {
  background: linear-gradient(135deg, #22695d, #fff0dc 52%, #d83c2e);
  color: #173f38;
}

.pack-xiangtan strong {
  color: #ffffff;
}

.large-pack {
  min-height: 560px;
}

.product-body {
  padding: 18px;
}

.product-body h3 {
  min-height: 62px;
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

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

.product-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--jade-dark);
  font-size: 12px;
  font-weight: 800;
}

.product-body p {
  min-height: 80px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
}

.product-price strong {
  font-size: 24px;
}

.product-price span {
  color: var(--muted);
  font-size: 13px;
}

.product-actions .button {
  flex: 1 1 138px;
}

.split-section {
  background: var(--mist);
}

.safety-panel {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.safety-panel h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.safety-panel p {
  margin: 0;
  color: var(--muted);
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.plain-list li {
  padding: 16px 18px;
  border-left: 4px solid var(--vermilion);
  background: #ffffff;
}

.story-section {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.story-media {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.metric-row div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  font-size: 24px;
  color: var(--plum);
}

.metric-row span {
  color: var(--muted);
  font-size: 13px;
}

.delivery-section {
  background: #ffffff;
}

.info-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  padding: 22px;
}

.info-card h3 {
  margin: 0 0 12px;
  color: var(--jade-dark);
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.law-table {
  width: min(1080px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.law-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}

.law-table div:last-child {
  border-bottom: 0;
}

.law-table strong,
.law-table span {
  padding: 14px 18px;
}

.law-table strong {
  background: var(--mist);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  background: var(--ink);
  color: #ffffff;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.cart-scrim,
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(23, 21, 20, 0.54);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(440px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 18px;
  padding: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

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

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

.cart-head h2,
.modal h2 {
  margin: 0;
}

.cart-items {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}

.cart-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.cart-line img,
.cart-thumb {
  width: 76px;
  height: 76px;
  border-radius: 6px;
}

.cart-thumb {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.cart-line h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.cart-line p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--mist);
  cursor: pointer;
}

.quantity-controls span {
  min-width: 34px;
  text-align: center;
  font-weight: 800;
}

.remove-button {
  border: 0;
  background: transparent;
  color: var(--vermilion);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.cart-summary {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
}

.cart-summary div:last-child {
  font-size: 20px;
}

.cart-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-scrim {
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

.checkout-summary {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.status-note {
  padding: 14px;
  border-radius: 8px;
  background: #fff0ec;
  color: var(--vermilion-dark);
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 48px;
  }

  .notice-strip,
  .product-grid,
  .brand-grid,
  .info-grid,
  .safety-panel,
  .story-section {
    grid-template-columns: 1fr;
  }

  .brand-hero-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-media img,
  .detail-media .pack-visual {
    min-height: 260px;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .story-section {
    width: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span:last-child {
    max-width: 110px;
    line-height: 1.1;
  }

  .icon-button {
    padding: 0 10px;
  }

  .hero {
    min-height: 76vh;
    padding: 116px 18px 46px;
  }

  .hero-pack-scene {
    justify-content: center;
    padding: 96px 10px 20px;
    gap: 8px;
  }

  .hero-pack {
    width: 32vw;
    min-height: 310px;
    padding: 16px 8px;
  }

  .hero-pack strong,
  .pack-visual strong {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section {
    padding: 56px 18px;
  }

  .section-heading h2,
  .story-copy h2,
  .cart-head h2,
  .modal h2 {
    font-size: 30px;
  }

  .notice-strip span {
    min-height: 50px;
    font-size: 12px;
  }

  .law-table div {
    grid-template-columns: 1fr;
  }

  .detail-row {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    padding: 18px;
  }
}
