﻿:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #F8F6F2;
  --surface: #ffffff;
  --surface-warm: #F8F6F2;
  --border: #DAD3C3;
  --border-strong: #c1b7a5;
  --text: #292520;
  --muted: #746b60;
  --soft: #a49b8d;
  --accent: #ff985c;
  --accent-strong: #f07537;
  --accent-soft: #fff1e8;
  --tag-bg: #f0eeea;
  --tag-border: #d8d1c5;
  --tag-text: #6f675d;
  --shadow: 0 14px 30px rgba(70, 55, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  user-select: none;
}

.page-frame {
  min-height: 100vh;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: var(--bg-soft);
  box-shadow: none;
}

.brand-link {
  display: inline-flex;
  height: 100%;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.top-actions {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  margin-left: auto;
  padding: 0 18px 0 8px;
}

.top-icon-button,
.contact-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.top-icon-button .icon,
.contact-button .icon,
.mail-icon,
.row-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.top-icon-button .archive-icon {
  fill: currentColor;
  stroke: none;
}

.supporter-button .archive-icon {
  color: var(--soft);
}

.contact-button .mail-icon,
.contact-row .mail-icon {
  fill: currentColor;
  stroke: none;
}

.top-icon-button:hover,
.top-icon-button:focus-visible,
.contact-button:hover,
.contact-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  outline: none;
}

.supporter-button:hover .archive-icon,
.supporter-button:focus-visible .archive-icon {
  color: var(--accent-strong);
}

.supporter-button { margin-right: 8px; text-decoration: none; }

.contact-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 18px;
  z-index: 20;
  width: min(282px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-popover[hidden] {
  display: none;
}

.contact-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.contact-row + .contact-row {
  margin-top: 8px;
}

.contact-row-link {
  text-decoration: none;
}

.contact-row-link:hover,
.contact-row-link:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.contact-service-logo,
.mail-icon,
.row-icon {
  justify-self: center;
}

.contact-service-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.mail-icon {
  margin-left: 1px;
  color: var(--soft);
}

.contact-email-row {
  color: var(--muted);
}

.contact-email-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-email-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #ddd8ce;
  border-radius: 999px;
  background: #f6f4ef;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.copy-email-button:hover,
.copy-email-button:focus-visible {
  border-color: var(--border-strong);
  background: #eeebe4;
  outline: none;
}

.copy-icon {
  width: 18px;
  height: 18px;
  opacity: 0.82;
}

.copy-status {
  min-height: 14px;
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.mobile-back-button {
  display: none;
}

.mobile-back-button[hidden] {
  display: none;
}

.site-shell {
  width: min(1040px, 100%);
  min-height: calc(100vh - 58px);
  margin: 0 auto;
  padding: 24px 18px 52px;
}

.view[hidden] {
  display: none;
}

.product-grid {
  display: grid;
  gap: 26px;
}
.product-type-section {
  display: grid;
  gap: 11px;
}

.product-type-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.product-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.product-card {
  display: flex;
  min-width: 0;
  min-height: 224px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(70, 55, 38, 0.055);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-soft);
}

.card-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center !important;
  padding: 0;
}

.card-copy {
  display: grid;
  gap: 3px;
  padding: 10px 10px 12px;
}

.card-title {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-price {
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}

.gallery-panel,
.product-info {
  min-width: 0;
}

.main-image-frame {
  display: grid;
  min-height: 430px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-warm);
}

.main-image-frame img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  padding: 12px;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.thumbnail-button {
  display: grid;
  aspect-ratio: 1;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.thumbnail-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.thumbnail-button.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(255, 152, 92, 0.24);
}

.product-info {
  display: grid;
  gap: 14px;
  padding: 4px 0;
}

.product-info h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.14;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-chip {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 12px;
  font-weight: 700;
}

.product-comment {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
  white-space: pre-line;
}

.product-comment[hidden],
.product-highlights[hidden] {
  display: none;
}

.product-highlights {
  display: grid;
  gap: 9px;
  margin: 1px 0;
}

.product-highlights h2 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.highlight-list {
  display: grid;
  gap: 7px;
}

.highlight-item {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: inherit;
  line-height: 1.5;
  white-space: pre-line;
}

.product-price {
  margin: 0;
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 850;
}

.included-products {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 2px 0 1px;
}

.included-products[hidden] {
  display: none;
}

.included-products h2 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.included-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, 64px);
  gap: 8px;
  max-width: 100%;
  overflow: visible;
  padding: 1px 0 0;
}

.included-thumb,
.included-more {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.included-more {
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  border-color: var(--tag-border);
  background: var(--bg-soft);
  color: var(--soft);
}

.included-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.included-thumb:hover,
.included-thumb:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.included-more:hover,
.included-more:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface-warm);
  color: var(--muted);
  outline: none;
}

.included-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(28, 24, 20, 0.42);
}

.included-modal {
  display: grid;
  gap: 16px;
  width: min(720px, 100%);
  max-height: min(76vh, 720px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.included-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.included-modal-header h2 {
  margin: 0;
  font-size: 16px;
}

.included-modal-close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.included-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}

.included-modal-card {
  display: grid;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.included-modal-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
}

.purchase-links {
  display: grid;
  gap: 9px;
  margin-top: 2px;
}

.auto-purchase-links {
  display: grid;
  gap: 9px;
  margin-top: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.purchase-button {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 7px 11px 7px 7px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.purchase-button:hover,
.purchase-button:focus-visible {
  border-color: var(--accent);
  border-left-color: var(--accent-strong);
  background: var(--accent-soft);
  outline: none;
  transform: translateY(-1px);
}

.purchase-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}


.purchase-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.purchase-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  opacity: 0.72;
}

.purchase-arrow {
  color: var(--accent-strong);
}

.product-extra {
  display: grid;
  gap: 42px;
  margin-top: 52px;
  padding-top: 36px;
  padding-bottom: 34px;
  border-top: 1px solid var(--border);
}

.notice-box {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfaf7;
}

.notice-box[hidden],
.recommend-section[hidden] {
  display: none;
}

.notice-list {
  display: grid;
  gap: 7px;
}

.notice-item {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.recommend-section {
  display: grid;
  gap: 16px;
  padding-top: 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title-row h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.recommended-card {
  min-height: 196px;
}

.recommended-card .card-thumb {
  aspect-ratio: 1;
  min-height: 0;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  html,
  body {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  .page-frame {
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .top-bar {
    position: static;
    height: 54px;
  }

  .brand-link {
    gap: 9px;
    padding: 0 14px;
    font-size: 15px;
  }

  .brand-logo {
    width: 33px;
    height: 33px;
  }

  .top-actions {
    padding-right: 10px;
  }

  .contact-button {
    width: 34px;
    height: 34px;
  }

  .contact-popover {
    top: calc(100% + 6px);
    right: 10px;
  }

  .site-shell {
    min-height: auto;
    padding: 12px 10px calc(96px + env(safe-area-inset-bottom));
  }

  .product-grid {
    gap: 22px;
  }

  .product-type-section {
    gap: 9px;
  }

  .product-type-title {
    font-size: 14px;
  }

  .product-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    min-height: 188px;
  }

  .card-thumb {
    min-height: 0;
  }

  .card-copy {
    padding: 8px 8px 10px;
  }

  .card-title,
  .card-price {
    font-size: 12px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mobile-back-button {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 9;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    margin: 6px 0 -36px 6px;
    border: 1px solid rgba(218, 211, 195, 0.64);
    border-radius: 8px;
    background: rgba(248, 246, 242, 0.72);
    color: rgba(41, 37, 32, 0.58);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 26px;
    font-weight: 320;
    line-height: 1;
    padding: 0 0 3px;
  }

  .mobile-back-button[hidden] {
    display: none;
  }

  .main-image-frame {
    min-height: min(250px, 34svh);
  }

  .main-image-frame img {
    max-height: min(290px, 36svh);
    padding: 8px;
  }

  .thumbnail-row {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 6px;
    margin-top: 6px;
  }

  .product-info {
    gap: 8px;
    padding: 0;
  }

  .product-info h1 {
    font-size: 22px;
  }

  .tag-row {
    gap: 5px;
  }

  .tag-chip {
    min-height: 23px;
    padding: 3px 7px;
    font-size: 11px;
  }

  .product-comment {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .product-price {
    font-size: 20px;
  }

  .included-products {
    gap: 8px;
  }

  .included-scroll {
    grid-template-columns: repeat(auto-fill, 56px);
  }

  .included-thumb,
  .included-more {
    width: 56px;
    height: 56px;
  }

  .purchase-links {
    gap: 8px;
  }

  .purchase-button {
    grid-template-columns: 30px 1fr auto;
    min-height: 45px;
    padding: 6px 10px 6px 6px;
  }

  .purchase-logo {
    width: 30px;
    height: 30px;
  }

  .product-extra {
    gap: 34px;
    margin-top: 36px;
    padding-top: 28px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .notice-box {
    padding: 12px 13px;
  }

  .notice-list {
    gap: 6px;
  }

  .notice-item {
    font-size: 12px;
    line-height: 1.45;
  }

  .recommend-section {
    gap: 12px;
  }

  .section-title-row h2 {
    font-size: 14px;
  }

  .recommended-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .recommended-card {
    min-height: 176px;
  }
}



