:root {
  --red: #94171b;
  --red-dark: #681014;
  --ink: #181817;
  --muted: #68645e;
  --paper: #f6f3eb;
  --white: #fffdf8;
  --line: #d8d2c7;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans Thai", Thonburi, "Leelawadee UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-synthesis: none; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }
.hidden { display: none !important; }

.site-notice { min-height: 30px; padding: 6px 20px; color: #f6f3eb; background: #191817; text-align: center; font-size: 12px; line-height: 1.5; }
.site-header { position: sticky; z-index: 20; top: 0; background: rgba(246,243,235,.97); border-bottom: 1px solid var(--line); }
.header-top { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 178px; }
.brand img { width: 52px; height: 47px; object-fit: contain; background: #fff; border: 1px solid #dfd8cd; padding: 2px; }
.brand span { display: flex; flex-direction: column; gap: 2px; }
.brand b { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.brand small { font-size: 9px; color: var(--muted); letter-spacing: .11em; }
.main-nav { display: flex; justify-content: center; align-self: stretch; gap: 38px; }
.main-nav a { position: relative; display: flex; align-items: center; padding: 0 4px; color: #615e59; font-size: 15px; font-weight: 500; }
.main-nav a::after { position: absolute; right: 4px; bottom: -1px; left: 4px; height: 3px; content: ""; background: transparent; }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after { background: var(--red); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.languages { display: flex; border-right: 1px solid var(--line); margin-right: 4px; padding-right: 8px; }
.languages a { display: grid; min-width: 34px; min-height: 38px; place-items: center; font-size: 12px; font-weight: 500; }
.languages a.active { color: var(--red); font-weight: 600; }
.records-link, .contact-link { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--ink); font-size: 12px; font-weight: 600; }
.contact-link { color: white; background: var(--red); border-color: var(--red); }
.records-link:hover, .records-link.active { color: var(--red); border-color: var(--red); }
.contact-link:hover, .contact-link.active { background: var(--red-dark); }

.catalog-intro { padding: 48px 0 24px; border-bottom: 1px solid var(--line); }
.section-tag, .eyebrow { display: block; margin-bottom: 12px; color: var(--red); font-size: 11px; font-weight: 600; letter-spacing: .09em; }
.catalog-intro h1 { max-width: 700px; margin: 0; font-size: clamp(34px, 5vw, 56px); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.catalog-intro p { max-width: 750px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.delivery-panel { margin-top: 28px; padding: 28px 30px 24px; color: #fff8ec; background: var(--red); border: 1px solid var(--red-dark); }
.delivery-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 32px; }
.delivery-head .eyebrow { margin-bottom: 10px; color: #f0b9ad; }
.delivery-head h2 { margin: 0; font-size: clamp(23px, 3vw, 34px); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.delivery-head p { max-width: 760px; margin: 10px 0 0; color: #f1d2cb; font-size: 13px; line-height: 1.7; }
.delivery-head > a { display: inline-flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 24px; padding: 0 17px; color: var(--red-dark); background: #fff6e6; border: 1px solid #fff6e6; font-size: 13px; font-weight: 600; }
.delivery-head > a:hover { color: white; background: #171716; border-color: #171716; }
.delivery-routes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,244,225,.38); }
.delivery-routes li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding: 20px 0 2px; }
.delivery-routes li > span { color: #efb5aa; font-size: 11px; font-weight: 600; }
.delivery-routes b { display: block; color: #fffaf1; font-size: 15px; font-weight: 600; }
.delivery-routes p { margin: 7px 0 0; color: #efcec6; font-size: 12px; line-height: 1.65; }
.delivery-note { margin: 20px 0 0; padding: 13px 15px; color: #49372f; background: #fff3d9; font-size: 12px; line-height: 1.65; }

.catalog { padding: 34px 0 68px; }
.catalog-tools { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,360px); gap: 24px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.brand-filters { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: thin; }
.brand-filters button { position: relative; flex: 0 0 auto; padding: 8px 0 11px; color: #615e59; background: transparent; border: 0; cursor: pointer; font-size: 13px; font-weight: 500; }
.brand-filters button::after { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; content: ""; background: var(--red); transition: width .2s ease; }
.brand-filters button.active { color: var(--red); font-weight: 600; }
.brand-filters button.active::after { width: 100%; }
.search-box { position: relative; display: block; }
.search-box input { width: 100%; height: 44px; padding: 0 42px 0 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 0; outline: none; font-size: 14px; }
.search-box input:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(148,23,27,.15); }
.search-box > span:last-child { position: absolute; top: 8px; right: 14px; font-size: 22px; }
.result-count { margin: 18px 0; color: var(--muted); font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 34px 18px; }
.product-card a { display: block; }
.product-image { position: relative; aspect-ratio: 1; overflow: hidden; background: #ece8df; border: 1px solid #ddd7cc; }
.product-image > img:not(.placeholder-mark) { width: 100%; height: 100%; object-fit: contain; background: white; transition: transform .25s ease; }
.product-card:hover .product-image > img:not(.placeholder-mark) { transform: scale(1.018); }
.placeholder-mark { position: absolute; top: 50%; left: 50%; width: 38%; height: auto; transform: translate(-50%,-52%); opacity: .11; filter: grayscale(1); }
.product-image > span { position: absolute; right: 12px; bottom: 12px; left: 12px; color: #a29c92; text-align: center; font-size: 9px; letter-spacing: .08em; }
.product-image em { position: absolute; top: 10px; right: 10px; padding: 7px 9px; color: white; background: var(--red); font-size: 10px; font-style: normal; font-weight: 600; }
.product-meta { padding: 13px 2px 0; }
.product-meta p { display: flex; align-items: baseline; gap: 7px; margin: 0; color: #77726b; font-size: 10px; line-height: 1.4; }
.product-meta p strong { color: #33312e; font-size: 11px; font-weight: 600; }
.product-meta p span::before { margin-right: 7px; content: "/"; color: #aaa39a; }
.product-meta h2 { min-height: 46px; margin: 7px 0 6px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.45; letter-spacing: -.005em; }
.product-meta > b { color: #403d39; font-size: 12px; font-weight: 500; }
.product-meta > b span { color: var(--red); }
.product-card:hover .product-meta > b { color: var(--red); }
.empty-state { padding: 44px 24px; color: var(--muted); background: #ede9e0; border: 1px solid var(--line); text-align: center; font-size: 14px; }

.records-section { padding: 68px 0; background: #e8e3d9; border-block: 1px solid var(--line); }
.records-page-section { min-height: 55vh; padding-top: 56px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: clamp(28px,4vw,44px); font-weight: 600; letter-spacing: -.02em; }
.section-heading p { max-width: 720px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.section-heading > a { flex: 0 0 auto; color: var(--red); font-size: 13px; font-weight: 600; }
.records-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.record-card { background: var(--white); border: 1px solid #d6cfc3; }
.record-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #dfdad0; }
.record-image > img:not(.placeholder-mark) { width: 100%; height: 100%; object-fit: cover; }
.record-copy { padding: 15px; }
.record-copy > span { color: var(--red); font-size: 10px; font-weight: 600; }
.record-copy h3 { margin: 7px 0 5px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.record-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.records-note { margin: 22px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.about-section { padding: 68px 0; color: #f5f0e7; background: #191817; }
.about-grid { display: grid; grid-template-columns: 240px minmax(0,720px); justify-content: space-between; gap: 50px; }
.about-grid > span { color: #b7b0a6; font-size: 11px; line-height: 1.7; letter-spacing: .08em; }
.about-grid h2 { margin: 0; font-size: clamp(28px,4vw,42px); font-weight: 600; }
.about-grid p { margin: 18px 0 0; color: #cfc9c0; font-size: 15px; line-height: 1.85; }
.contact-section { padding: 72px 0; background: var(--white); }
.contact-page-section { min-height: 58vh; padding-top: 72px; }
.contact-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(380px,1.1fr); gap: 80px; align-items: start; }
.contact-grid h2 { margin: 0; font-size: clamp(30px,4vw,46px); font-weight: 600; letter-spacing: -.02em; }
.contact-grid > div:first-child > p { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.contact-list { border-top: 1px solid var(--ink); }
.contact-item { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.contact-item small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.contact-item strong { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.contact-item a, .contact-item button { flex: 0 0 auto; min-height: 38px; padding: 0 13px; color: var(--red); background: transparent; border: 1px solid var(--red); cursor: pointer; font-size: 11px; font-weight: 600; }
.contact-empty { padding: 28px 0; color: var(--muted); font-size: 14px; }

.product-detail { padding: 42px 0 72px; }
.back-link { display: inline-block; margin-bottom: 26px; color: var(--muted); font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.78fr); gap: 60px; align-items: start; }
.detail-image { position: relative; aspect-ratio: 1; overflow: hidden; background: #e8e3da; border: 1px solid var(--line); }
.detail-image > img:not(.placeholder-mark) { width: 100%; height: 100%; object-fit: contain; background: white; }
.detail-image > span { position: absolute; right: 20px; bottom: 20px; left: 20px; color: #aaa39a; text-align: center; font-size: 10px; letter-spacing: .1em; }
.detail-brand { margin: 6px 0 16px; color: var(--red); font-size: 12px; font-weight: 600; }
.detail-modes { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.detail-modes span { padding: 5px 8px; color: var(--ink); background: #eee9df; border: 1px solid var(--line); font-size: 10px; font-weight: 600; }
.detail-copy h1 { margin: 0; font-size: clamp(34px,5vw,58px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
.detail-lead { margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.primary-button { display: flex; width: min(100%,300px); min-height: 50px; align-items: center; justify-content: space-between; margin-top: 28px; padding: 0 18px; color: white; background: var(--red); font-size: 13px; font-weight: 600; }
.detail-specs { margin: 34px 0 0; border-top: 1px solid var(--ink); }
.detail-specs > div { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.detail-specs dt { color: var(--muted); font-size: 11px; }
.detail-specs dd { margin: 0; font-size: 13px; }
.detail-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.detail-sections h2 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.detail-sections p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

.site-footer { padding: 26px 0; color: #aaa49b; background: #191817; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: white; font-size: 12px; }
.footer-brand img { width: 42px; height: 38px; object-fit: contain; background: white; }
.footer-inner p { margin: 0; font-size: 11px; line-height: 1.6; }
.footer-inner > span { font-size: 10px; }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (max-width: 1040px) {
  .header-top { grid-template-columns: auto 1fr; gap: 16px; padding-block: 10px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: stretch; order: 3; height: 42px; gap: 0; border-top: 1px solid var(--line); }
  .main-nav a { width: 50%; justify-content: center; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .records-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 640px); }
  .site-notice { font-size: 11px; }
  .header-top { width: 100%; min-height: auto; padding: 8px 14px 0; }
  .brand { min-width: 0; }
  .brand img { width: 45px; height: 41px; }
  .brand b { font-size: 14px; }
  .brand small { display: none; }
  .header-actions { gap: 5px; overflow-x: auto; }
  .languages { margin: 0; padding: 0 4px 0 0; }
  .languages a { min-width: 30px; min-height: 36px; font-size: 11px; }
  .records-link, .contact-link { min-height: 38px; padding: 0 10px; white-space: nowrap; font-size: 11px; }
  .main-nav { margin-inline: -14px; }
  .main-nav a { font-size: 14px; }
  .catalog-intro { padding: 30px 0 20px; }
  .catalog-intro h1 { font-size: 34px; }
  .catalog-intro p { font-size: 13px; line-height: 1.7; }
  .delivery-panel { width: calc(100% - 28px); margin-top: 18px; padding: 22px 18px 18px; border-radius: 5px; }
  .delivery-head { display: block; }
  .delivery-head h2 { font-size: 23px; line-height: 1.32; }
  .delivery-head p { font-size: 12px; }
  .delivery-head > a { width: 100%; margin-top: 15px; }
  .delivery-routes { grid-template-columns: minmax(0,1fr); gap: 0; margin-top: 18px; }
  .delivery-routes li { padding: 14px 0; border-bottom: 1px solid rgba(255,244,225,.24); }
  .delivery-routes b { font-size: 14px; }
  .delivery-note { margin-top: 14px; font-size: 11px; }
  .catalog { padding: 26px 0 52px; }
  .catalog-tools { grid-template-columns: 1fr; gap: 14px; }
  .brand-filters { gap: 22px; }
  .brand-filters button { min-height: 40px; font-size: 12px; }
  .search-box input { height: 48px; font-size: 16px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 12px; }
  .product-meta p { display: block; font-size: 10px; }
  .product-meta p span { display: block; margin-top: 2px; }
  .product-meta p span::before { display: none; }
  .product-meta h2 { min-height: 45px; margin-top: 6px; font-size: 15px; }
  .records-section { padding: 50px 0; }
  .section-heading { display: block; }
  .section-heading > a { display: inline-block; margin-top: 18px; }
  .records-grid { grid-template-columns: 1fr; }
  .record-card { display: grid; grid-template-columns: 42% 1fr; }
  .record-image { aspect-ratio: 1; }
  .about-section { padding: 48px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-section { padding: 52px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-item { min-height: 72px; }
  .detail-grid { grid-template-columns: 1fr; gap: 34px; }
  .detail-copy h1 { font-size: 34px; }
  .detail-sections { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 560px) {
  .header-top { grid-template-columns: auto 1fr; }
  .brand span { display: none; }
  .header-actions { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0,.72fr); width: 100%; overflow: visible; }
  .main-nav { grid-row: 3; }
  .records-link, .contact-link { justify-content: center; overflow: hidden; text-overflow: ellipsis; }
  .product-grid { gap-inline: 10px; }
  .product-image em { top: 7px; right: 7px; padding: 5px 6px; font-size: 9px; }
}

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

/* v1.1: keep tap interactions stable and all uploaded photos visually uniform */
html, body, a, button, label { touch-action: manipulation; }
body { -webkit-text-size-adjust: 100%; }
.brand img { width: 52px; height: 52px; object-fit: contain; padding: 3px; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; padding: 2px; }
.product-image > img:not(.placeholder-mark),
.detail-image > img:not(.placeholder-mark) { object-fit: cover; }
.record-image { aspect-ratio: 1; }
.about-grid > span,
.catalog-intro p,
.delivery-head p,
.delivery-routes p,
.delivery-note,
.section-heading p,
.contact-grid > div:first-child > p { white-space: pre-line; }

@media (max-width: 760px) {
  .brand img { width: 45px; height: 45px; }
}

@media (hover: none) {
  .product-card:hover .product-image > img:not(.placeholder-mark) { transform: none; }
}
