.home-v2 {
  --home-ink: #25211e;
  --home-paper: #fbf8f3;
  --home-cream: #eee6dc;
  --home-gold: #9b7a4a;
  --home-muted: #756e67;
  --home-line: rgba(37, 33, 30, .16);
  overflow-x: hidden;
  background: var(--home-paper);
  color: var(--home-ink);
}

.home-v2 main { overflow: hidden; }
.home-v2 .skip-link { position: fixed; left: 18px; top: -80px; z-index: 120; padding: 10px 16px; background: var(--home-ink); color: #fff; }
.home-v2 .skip-link:focus { top: 12px; }

.home-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  min-height: 82px;
  padding: max(14px, env(safe-area-inset-top)) max(24px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  transition: color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.home-header.scrolled {
  color: var(--home-ink);
  background: rgba(251, 248, 243, .94);
  box-shadow: 0 1px 0 var(--home-line);
  backdrop-filter: blur(14px);
}

.home-brand,
.menu-brand,
.home-footer > a:first-child {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font: 500 1.55rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: .055em;
}

.home-v2 .menu-button {
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(24, 20, 17, .2);
  color: inherit;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.home-v2 .home-header.scrolled .menu-button { background: rgba(255, 255, 255, .65); }
.home-v2 .menu-button span { width: 22px; height: 1px; background: currentColor; }

.home-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #82766a;
}

.home-hero-photo,
.home-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero-photo { z-index: -2; object-fit: cover; object-position: center; }
.home-hero-shade { z-index: -1; background: linear-gradient(180deg, rgba(23, 20, 18, .64), rgba(23, 20, 18, .34) 28%, rgba(23, 20, 18, .62) 52%, rgba(23, 20, 18, .66) 100%); }
.home-header:not(.scrolled) .home-brand { text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.home-hero-copy { width: min(92vw, 650px); padding: 112px 24px 92px; text-align: center; color: #fff; }

.home-hero-logo {
  width: clamp(150px, 19vw, 230px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 24px;
  object-fit: contain;
  border: 10px solid rgba(255, 255, 255, .88);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 20px 64px rgba(27, 20, 15, .22);
}

.home-hero h1 {
  margin: 0;
  font: 500 clamp(1.8rem, 5vw, 3.6rem)/1.5 "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  letter-spacing: .08em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .65), 0 4px 20px rgba(0, 0, 0, .25);
}

.home-hero-copy > p { margin: 22px 0 28px; font-size: clamp(.875rem, 1.3vw, 1rem); letter-spacing: .06em; font-weight: 500; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.home-hero h1 span { display: block; }
.home-v2 .item-section .category-filters { margin-top: 28px; margin-bottom: 24px; }
.home-hero-button,
.outline-button,
.light-button {
  min-height: 52px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.home-hero-button { background: rgba(255,255,255,.94); color: var(--home-ink); border-color: #fff; }
.home-hero-button:hover { background: var(--home-ink); color: #fff; border-color: var(--home-ink); }
.scroll-cue { position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 0; min-height: 52px; display: grid; place-items: center; gap: 6px; color: #fff; font-size: .67rem; letter-spacing: .12em; }
.scroll-cue i { width: 1px; height: 28px; background: currentColor; }
.scroll-cue { font-size: .75rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }

.home-section { max-width: 1320px; margin: 0 auto; padding: clamp(82px, 10vw, 142px) clamp(20px, 4vw, 48px); }
.home-heading > p { margin: 0 0 12px; color: var(--home-gold); font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
.home-heading h2 { margin: 0; font: 500 clamp(2rem, 4.2vw, 4rem)/1.35 "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; letter-spacing: .045em; }
.centered-heading { text-align: center; }
.row-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }

.category-section { max-width: 1180px; }
.category-grid { margin-top: clamp(42px, 7vw, 76px); display: grid; grid-template-columns: 1.35fr repeat(2, 1fr); gap: 16px; }
.category-card { position: relative; aspect-ratio: 1; min-height: 220px; overflow: hidden; background: #ddd; }
.category-card-wide { grid-row: span 2; aspect-ratio: auto; }
.category-card::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(25,20,16,.62)); }
.category-card img { transition: transform .45s ease; }
.category-card:hover img { transform: scale(1.025); }
.category-card span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; min-height: 32px; display: flex; align-items: center; justify-content: center; padding: 5px 12px; color: #fff; border: 1px solid rgba(255,255,255,.6); background: rgba(34,29,25,.42); backdrop-filter: blur(7px); font-size: .82rem; letter-spacing: .04em; }

.feature-section { max-width: none; padding-left: max(20px, calc((100vw - 1320px) / 2 + 48px)); padding-right: 0; background: #f0ebe4; }
.feature-section .row-heading { max-width: 1272px; padding-right: clamp(20px, 4vw, 48px); }
.rail-buttons { display: flex; gap: 9px; }
.rail-buttons button { width: 48px; height: 48px; border: 1px solid var(--home-line); border-radius: 50%; background: transparent; cursor: pointer; }
.swipe-hint { margin: 18px 0 22px; color: var(--home-muted); font-size: .72rem; }

.home-v2 .product-rail {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(37,33,30,.28) transparent;
  padding: 0 0 18px;
}
.home-v2 .product-grid { grid-template-columns: none; }
.product-rail::-webkit-scrollbar { height: 4px; }
.product-rail::-webkit-scrollbar-thumb { background: rgba(37,33,30,.28); border-radius: 8px; }

.home-v2 .product-card { position: relative; flex: 0 0 clamp(220px, 24vw, 320px); scroll-snap-align: start; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.home-v2 .feature-card { flex-basis: clamp(270px, 31vw, 410px); }
.home-v2 .product-card a { display: block; min-width: 0; }
.home-v2 .product-card-image { position: relative; display: block; aspect-ratio: 1 / 1.08; overflow: hidden; background: #e7e1da; }
.home-v2 .feature-card .product-card-image { aspect-ratio: 1.18 / 1; }
.home-v2 .product-card-image img { transition: transform .4s ease; }
.home-v2 .product-card a:hover img { transform: scale(1.025); }
.home-v2 .product-card-copy { min-height: 76px; padding: 14px 48px 0 0; display: grid; align-content: start; gap: 4px; }
.home-v2 .product-card-copy strong { font: 500 1rem/1.5 "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; }
.home-v2 .product-card-copy span { color: #514b45; font-size: .84rem; }
.feature-label { position: absolute; z-index: 2; left: 12px; top: 12px; min-height: 30px; padding: 4px 12px; display: inline-flex; align-items: center; background: var(--home-ink); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.favorite-button { position: absolute; z-index: 2; right: 8px; bottom: 7px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; cursor: pointer; font-size: 1.45rem; line-height: 1; }
.favorite-button span { transform: translateY(-1px); }
.favorite-button[aria-pressed="true"] { color: #a35f66; }
.favorite-button[aria-pressed="true"] span { font-size: 0; }
.favorite-button[aria-pressed="true"] span::after { content: "♥"; font-size: 1.45rem; }
.rail-loading,
.catalog-empty,
.favorites-empty { flex: 1 0 100%; min-height: 190px; padding: 48px 24px; display: grid; place-content: center; text-align: center; color: var(--home-muted); border: 1px solid var(--home-line); }
.catalog-empty h3, .favorites-empty h3 { margin: 0 0 8px; font: 500 1.25rem "Yu Mincho", Georgia, serif; color: var(--home-ink); }
.catalog-empty p, .favorites-empty p { margin: 0; }
.shop-link-wrap { margin-top: 36px; text-align: center; }
.outline-button:hover { background: var(--home-ink); color: #fff; }
.home-v2 .filter-button:active, .favorite-button:active { background-color: var(--home-cream); color: var(--home-ink); }
.home-v2 .filter-button.is-active:active { background-color: var(--home-ink); color: #fff; }

.favorites-section { padding-top: 0; }
.favorites-section .product-rail { margin-top: 34px; }
.favorites-section:target { scroll-margin-top: 92px; }

.review-section { max-width: 1180px; border-top: 1px solid var(--home-line); }
.review-placeholder { margin-top: clamp(42px, 7vw, 72px); display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; background: #eee7dd; }
.review-placeholder-image { aspect-ratio: 1; background: #fff; }
.review-placeholder-image img { object-fit: contain; }
.review-placeholder-copy { padding: clamp(34px, 7vw, 84px); align-self: center; }
.review-placeholder-copy > span { color: var(--home-gold); font-size: .74rem; font-weight: 700; letter-spacing: .16em; }
.review-placeholder-copy h3 { margin: 18px 0 24px; font: 500 clamp(1.55rem, 3.2vw, 2.8rem)/1.6 "Yu Mincho", Georgia, serif; }
.review-placeholder-copy p { max-width: 550px; margin: 0; color: var(--home-muted); line-height: 2; }

.about-section-v2 { max-width: none; padding-left: max(20px, calc((100vw - 1320px) / 2 + 48px)); padding-right: max(20px, calc((100vw - 1320px) / 2 + 48px)); display: grid; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr); gap: clamp(56px, 9vw, 140px); align-items: center; background: #27231f; color: #fff; }
.about-logo-panel { padding: clamp(18px, 3vw, 34px); background: #fff; }
.about-logo-panel img { height: auto; aspect-ratio: 1; object-fit: contain; }
.about-story .home-heading > p { color: #cfb78f; }
.about-story > p { max-width: 640px; margin: 28px 0 0; color: #ded8d2; line-height: 2.15; }
.name-story { margin-top: 46px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.2); }
.name-story h3 { margin: 0 0 16px; font: 500 1.25rem "Yu Mincho", Georgia, serif; }
.name-story p { margin: 8px 0 0; color: #c8c0b9; }

.home-v2 .home-notices { padding-bottom: clamp(82px, 10vw, 142px); }
.home-notices .row-heading > a { min-height: 44px; display: inline-flex; align-items: center; font-size: .82rem; border-bottom: 1px solid var(--home-line); }
.home-v2 .home-notice-list { margin-top: 42px; border-top: 1px solid var(--home-line); }
.home-v2 .home-notice-card { grid-template-columns: 140px 1fr; }
.home-v2 .home-notice-meta span { background: var(--home-ink); }

.purchase-banner { padding: clamp(76px, 9vw, 130px) max(20px, calc((100vw - 1180px) / 2)); text-align: center; background: #a58357; color: #fff; }
.purchase-banner > p { margin: 0 0 18px; font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.purchase-banner h2 { margin: 0; font: 500 clamp(2rem, 5vw, 4.7rem)/1.4 "Yu Mincho", Georgia, serif; }
.purchase-banner ul { margin: 30px 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; list-style: none; font-size: .82rem; }
.purchase-banner li::before { content: "・"; }
.purchase-banner .purchase-discount-note { margin: -12px 0 30px; font-size: .82rem; font-weight: 400; letter-spacing: .03em; line-height: 1.8; }
.purchase-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px 28px; }
.light-button { background: #fff; color: var(--home-ink); border-color: #fff; }
.purchase-actions > a:last-child { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.5); font-size: .82rem; }

.home-v2 .menu-scrim { z-index: 80; background: rgba(20,17,15,.58); }
.home-v2 .site-menu {
  z-index: 90;
  width: min(100%, 480px);
  padding: max(22px, env(safe-area-inset-top)) 28px max(30px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #fbf9f5;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
}
.home-v2 .site-menu.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.home-v2 .menu-head { position: sticky; top: -22px; z-index: 3; min-height: 66px; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; background: #fbf9f5; }
.home-v2 .menu-close { width: 48px; height: 48px; border: 1px solid var(--home-line); border-radius: 50%; background: transparent; font-size: 1.7rem; font-weight: 300; cursor: pointer; }
.menu-title { margin: 28px 0 6px; color: var(--home-gold); font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
.home-v2 .drawer-nav { margin: 0; border-top: 1px solid var(--home-line); }
.home-v2 .drawer-nav a { min-height: 64px; padding: 10px 2px; grid-template-columns: 32px 1fr 28px; gap: 12px; transform: none; font-size: 1rem; }
.home-v2 .drawer-nav a:hover { padding-left: 8px; }
.home-v2 .drawer-nav a span { color: var(--home-gold); font: .68rem Georgia, serif; }
.home-v2 .drawer-nav a strong { font-size: .94rem; }
.home-v2 .drawer-nav a i { font-style: normal; color: var(--home-gold); }
.home-v2 .drawer-social { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
.home-v2 .drawer-social a,
.home-v2 .drawer-social button { width: 100%; min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--home-line); border-radius: 0; background: transparent; font-size: .78rem; cursor: pointer; }

.home-footer { padding: 64px max(20px, calc((100vw - 1180px) / 2)) 36px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; background: #f1ece5; }
.home-footer nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px 26px; font-size: .78rem; }
.home-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.home-footer p { margin: 0; color: var(--home-muted); font-size: .7rem; }
.home-footer .admin-demo-link { justify-self: end; }
.home-v2 .toast { z-index: 110; }

#items, #notices, #about { scroll-margin-top: 86px; }

@media (max-width: 820px) {
  .home-header { min-height: 74px; padding-inline: 18px; }
  .home-brand { font-size: 1.3rem; }
  .home-v2 .menu-button { width: 48px; height: 48px; }
  .home-hero-copy { padding-inline: 18px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card-wide { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 1.35 / 1; }
  .category-card { min-height: 0; }
  .rail-buttons { display: none; }
  .review-placeholder { grid-template-columns: 1fr 1.2fr; }
  .about-section-v2 { grid-template-columns: 1fr; }
  .about-logo-panel { max-width: 580px; }
}

@media (max-width: 560px) {
  .home-hero-photo { object-position: 51% center; }
  .home-hero-copy { padding-top: 92px; padding-bottom: 100px; }
  .home-hero-logo { width: 150px; border-width: 7px; margin-bottom: 20px; }
  .home-hero h1 { font-size: clamp(1.65rem, 7.2vw, 2.5rem); line-height: 1.55; letter-spacing: .035em; }
  .home-hero-copy > p { max-width: 300px; margin-inline: auto; line-height: 1.9; }
  .home-section { padding: 78px 18px; }
  .home-heading h2 { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .category-grid { margin-top: 38px; }
  .category-card span { left: 8px; right: 8px; bottom: 8px; padding-inline: 5px; font-size: .72rem; }
  .feature-section { padding-left: 18px; padding-right: 0; }
  .home-v2 .product-rail { gap: 12px; padding-right: 0; }
  .home-v2 .product-card { flex-basis: min(70vw, 270px); }
  .home-v2 .feature-card { flex-basis: min(82vw, 330px); }
  .category-filters { margin-inline: -18px; padding-inline: 18px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .category-filters::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; }
  .favorites-section { padding-top: 0; }
  .review-placeholder { grid-template-columns: 1fr; }
  .review-placeholder-image { max-height: 340px; }
  .review-placeholder-copy { padding: 34px 24px 42px; }
  .about-section-v2 { padding: 72px 18px; gap: 48px; }
  .about-story > p { line-height: 2; }
  .home-v2 .home-notice-card { grid-template-columns: 1fr; }
  .purchase-banner { padding: 72px 20px; }
  .purchase-banner ul { display: grid; gap: 8px; }
  .home-v2 .site-menu { padding-inline: 20px; }
  .home-v2 .drawer-nav a { min-height: 60px; }
  .home-footer { grid-template-columns: 1fr; padding: 54px 20px 32px; }
  .home-footer nav { justify-content: start; }
  .home-footer .admin-demo-link { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-header, .home-v2 .site-menu, .category-card img, .home-v2 .product-card-image img, .home-hero-button, .outline-button, .light-button { transition: none; }
}
