@charset "UTF-8";

:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #f0e8dc;
  --ink: #241f1a;
  --muted: #6e665e;
  --line: #ded7cd;
  --accent: #8a5a2b;
  --accent-dark: #673f1d;
  --success: #27633e;
  --danger: #9a332d;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 16px 45px rgba(48, 36, 24, 0.08);
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(138, 90, 43, 0.45);
  outline-offset: 3px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(36, 31, 26, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
}

.site-mark { display: inline-flex; flex-direction: column; width: fit-content; }
.site-mark__main {
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.site-mark__sub { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.desktop-nav { display: flex; align-items: center; gap: 26px; }
.desktop-nav a { color: #514a43; font-size: 13px; font-weight: 600; }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--accent); }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-dark);
  font-size: 11px;
}

.hero { padding: 34px 0 20px; }
.hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 74px);
}
.hero-label, .eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.35;
  letter-spacing: -0.035em;
}
.hero-lead {
  max-width: 33em;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.hero-media { min-height: 420px; background: #ddd4c7; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { background: #f4ede5; }
.button--dark { color: #fff; background: var(--accent-dark); }
.button--dark:hover { color: #fff; background: #513016; }
.button--ghost { border-color: var(--line); color: var(--ink); }
.button--small { min-height: 40px; padding-inline: 15px; font-size: 12px; }
.button[disabled] { cursor: not-allowed; opacity: .55; }

.section { padding: clamp(58px, 8vw, 96px) 0; }
.section--white { background: var(--surface); }
.section--soft { background: var(--surface-soft); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-head h2 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.4;
}
.section-head p { max-width: 36em; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.text-link { color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.category-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.category-card:hover { border-color: #bfa98e; box-shadow: 0 8px 25px rgba(48, 36, 24, .06); }
.category-card strong { font-family: "Shippori Mincho", serif; font-size: 20px; }
.category-card span { color: var(--muted); font-size: 12px; line-height: 1.65; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.product-card[hidden] { display: none; }
.product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  background: #eee9e1;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.025); }
.image-pending {
  position: absolute;
  inset: auto 10px 10px auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--muted);
  font-size: 10px;
}
.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.product-card h3 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 20px;
  line-height: 1.5;
}
.product-card h3 a:hover { color: var(--accent-dark); }
.product-card__desc {
  display: -webkit-box;
  min-height: 3.5em;
  margin: 10px 0 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card__foot {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.price { margin: 0; font-size: 20px; font-weight: 700; white-space: nowrap; }
.price span { color: var(--muted); font-size: 10px; font-weight: 500; }
.process-grid, .store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.process-card, .store-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.process-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 700;
}
.process-card h3, .store-card h3 { margin: 0 0 8px; font-size: 17px; }
.process-card p, .store-card p { margin: 0; color: var(--muted); font-size: 13px; }
.store-name { font-family: "Shippori Mincho", serif; font-size: 20px !important; color: var(--ink) !important; }
.store-meta { margin-top: 16px !important; }
.store-links { display: flex; gap: 14px; margin-top: 16px; font-size: 12px; font-weight: 700; }

.page-hero { padding: 60px 0 34px; }
.page-hero h1 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.35;
}
.page-hero p { max-width: 46em; margin: 14px 0 0; color: var(--muted); }

.catalog-tools {
  position: sticky;
  top: 72px;
  z-index: 20;
  padding: 14px 0;
  background: rgba(247, 244, 238, .95);
  backdrop-filter: blur(10px);
}
.catalog-tools__inner { display: flex; align-items: center; gap: 12px; }
.search-box {
  min-width: 220px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.filter-chip[aria-pressed="true"] { color: #fff; border-color: var(--accent-dark); background: var(--accent-dark); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.product-detail__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: #eee9e1;
}
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__copy { padding-top: 10px; }
.product-detail h1 {
  margin: 0 0 16px;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.45;
}
.product-detail__desc { color: var(--muted); }
.product-detail__price { margin: 24px 0; font-size: 28px; font-weight: 700; }
.product-detail__note {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: #f8f3ec;
  color: var(--muted);
  font-size: 12px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}
.order-summary, .order-form-card {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.order-summary { position: sticky; top: 96px; }
.order-summary h2, .order-form-card h2 { margin: 0 0 20px; font-size: 22px; }
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eee8df;
}
.order-item__name { min-width: 0; font-size: 13px; font-weight: 700; }
.qty-controls { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.qty-controls button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.qty-controls .remove-item { width: auto; padding-inline: 8px; color: var(--muted); font-size: 10px; }
.cart-empty { padding: 24px 0; color: var(--muted); font-size: 13px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 12px; font-weight: 700; }
.required { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfc6bb;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-help { margin: 0; color: var(--muted); font-size: 11px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; }
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { margin: 20px 0 0; color: var(--muted); font-size: 11px; }

.alert {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.alert--error { color: #6d1f1b; border: 1px solid #e5bab5; background: #fff0ee; }
.alert--success { color: #174a2b; border: 1px solid #b9dbc7; background: #eef9f2; }
.alert ul { margin: 0; padding-left: 20px; }

.confirmation {
  max-width: 700px;
  margin: 60px auto 100px;
  padding: clamp(30px, 6vw, 60px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.confirmation h1 { margin: 0 0 16px; font-family: "Shippori Mincho", serif; font-size: 34px; }
.confirmation-code { margin: 26px 0; padding: 14px; border-radius: 10px; background: var(--surface-soft); font-weight: 700; }

.site-footer { padding: 54px 0 90px; color: #e7e0d8; background: #211c18; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; }
.footer-title { margin: 0; font-family: "Shippori Mincho", serif; font-size: 20px; }
.footer-copy { max-width: 34em; margin: 8px 0 0; color: #aaa198; font-size: 12px; }
.footer-links { display: flex; gap: 22px; align-items: start; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid #3a332e; color: #8e857e; }
.mobile-order-bar { display: none; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .desktop-nav { display: none; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 42px clamp(24px, 6vw, 50px); }
  .hero-media { min-height: 380px; order: -1; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid, .store-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .order-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .catalog-tools { top: 72px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 70px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { position: sticky; }
  .header-inner { min-height: 64px; }
  .site-mark__main { font-size: 14px; }
  .site-mark__sub { font-size: 9px; }
  .cart-link { min-height: 40px; padding-inline: 12px; font-size: 11px; }
  .hero { padding-top: 14px; }
  .hero-grid { border-radius: 20px; }
  .hero-media { min-height: 270px; }
  .hero h1 { font-size: clamp(31px, 10.5vw, 43px); }
  .hero-lead { font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .button { width: 100%; }
  .section { padding: 54px 0; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 22px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 126px; padding: 18px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { display: grid; grid-template-columns: 40% 60%; }
  .product-card__image { height: 100%; aspect-ratio: auto; min-height: 190px; }
  .product-card__body { padding: 16px; }
  .product-card h3 { font-size: 17px; }
  .product-card__desc { min-height: 0; margin-bottom: 12px; font-size: 12px; }
  .product-card__foot { align-items: stretch; flex-direction: column; }
  .product-card__foot .button { min-height: 38px; }
  .price { font-size: 18px; }
  .catalog-tools { top: 64px; }
  .catalog-tools__inner { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 14px 20px; }
  .mobile-order-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    display: block;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--line);
  }
  .mobile-order-bar[hidden] { display: none; }
  .mobile-order-bar a {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.filter-chip[aria-current="page"] { color: #fff; border-color: var(--accent-dark); background: var(--accent-dark); }

.product-card__image img { object-fit: contain; padding: 6px; }
.product-detail__media img { object-fit: contain; padding: 8px; }

.hero-title-line { display: block; white-space: nowrap; }
