@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --ink: #102c47;
  --ink-soft: #50677e;
  --navy: #174a7e;
  --navy-deep: #0e345d;
  --blue-wash: #e8f0f7;
  --blue-line: #d7e3ed;
  --paper: #f7f8fa;
  --white: #ffffff;
  --orange: #d85b35;
  --orange-wash: #fff0e9;
  --amber: #bd7924;
  --amber-wash: #fff6e7;
  --shadow: 0 14px 32px rgba(16, 44, 71, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --font: 'IBM Plex Sans SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image: linear-gradient(rgba(23,74,126,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,74,126,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.page-shell { width: min(100%, 760px); margin: 0 auto; padding: 0 16px 28px; position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 19px 2px 17px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px 11px 11px 4px; color: var(--white); background: var(--navy); box-shadow: 4px 4px 0 rgba(23,74,126,.15); transform: rotate(-3deg); }
.brand-mark span { font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.04em; transform: rotate(3deg); }
.eyebrow, .section-kicker { margin: 0; color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1.4; }
.eyebrow { color: #7790a5; font-size: 12px; letter-spacing: .12em; }
.brand-name { margin: 1px 0 0; font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.update-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: var(--navy); background: var(--blue-wash); border: 1px solid var(--blue-line); border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #42a475; box-shadow: 0 0 0 3px rgba(66,164,117,.13); }

.hero-card { overflow: hidden; position: relative; min-height: 294px; padding: 28px 23px 19px; color: #fff; background: linear-gradient(135deg, #174a7e 0%, #0f3b68 60%, #0c3159 100%); border-radius: var(--radius-lg); box-shadow: 0 20px 42px rgba(23,74,126,.24); }
.hero-card::after { content: ''; position: absolute; right: -48px; top: -54px; width: 194px; height: 194px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 19px rgba(255,255,255,.04), 0 0 0 39px rgba(255,255,255,.04), 0 0 0 59px rgba(255,255,255,.035); }
.hero-grid { position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(135deg, transparent 15%, black 70%); }
.hero-copy, .hero-stamp { position: relative; z-index: 1; }
.hero-card .section-kicker { color: #a9c4dd; }
.hero-copy h1 { margin: 11px 0 13px; font-size: clamp(38px, 11vw, 62px); font-weight: 700; line-height: .98; letter-spacing: -.07em; }
.hero-copy h1 em { color: #d4e8f8; font-style: normal; }
.hero-description { margin: 0; color: #c4d8ea; font-size: 14px; line-height: 1.85; }
.hero-stamp { position: absolute; top: 34px; right: 22px; display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.66); }
.hero-stamp span { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font: 700 12px/1 ui-monospace, monospace; }
.hero-stamp small { font: 700 12px/1.1 ui-monospace, monospace; letter-spacing: .08em; }

.notice-strip { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 26px; padding: 13px 14px; color: #6c5124; background: var(--amber-wash); border: 1px solid #f1dfbc; border-radius: 13px; font-size: 12px; line-height: 1.45; }
.notice-icon { flex: 0 0 auto; display: grid; place-items: center; width: 21px; height: 21px; color: #fff; background: var(--amber); border-radius: 50%; font-size: 12px; }
.notice-strip strong { display: block; margin-bottom: 2px; color: #7a511b; }
.notice-strip span:last-child { color: #977a4b; font-size: 12px; }

.section-heading, .cooperation-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-heading { margin-bottom: 13px; }
h2 { margin: 0; color: var(--ink); font-size: 24px; line-height: 1.1; letter-spacing: -.045em; }
.section-title { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.section-title-icon { display: block; flex: 0 0 22px; width: 22px; height: 22px; color: var(--navy); }
.cooperation-card .section-title-icon { color: #b7d5ea; }
.result-count { color: #61788a; font-size: 12px; text-align: right; }
.result-count strong { color: var(--navy); font-weight: 700; }
.filter-controls { display: grid; gap: 10px; margin-bottom: 23px; }
.search-box { display: flex; align-items: center; gap: 10px; min-width: 0; height: 48px; padding: 0 13px; background: var(--white); border: 1px solid #e0e8ef; border-radius: 14px; box-shadow: 0 5px 14px rgba(16,44,71,.035); }
.search-box:focus-within { border-color: #91b1cb; box-shadow: 0 0 0 4px rgba(23,74,126,.08); }
.search-box svg { width: 18px; height: 18px; fill: none; stroke: #8aa0b3; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.search-box input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 16px; }
.search-box input::placeholder { color: #9aaaba; }
.clear-search { display: grid; place-items: center; width: 23px; height: 23px; padding: 0; color: #74899c; background: #edf2f6; border: 0; border-radius: 50%; font-size: 18px; line-height: 1; }
.clear-search[hidden] { display: none; }
.brand-select-field { display: flex; align-items: center; gap: 10px; min-width: 0; height: 48px; padding: 0 13px; background: var(--white); border: 1px solid #e0e8ef; border-radius: 14px; box-shadow: 0 5px 14px rgba(16,44,71,.035); }
.brand-select-field label { flex: 0 0 auto; color: var(--ink-soft); font-size: 12px; }
.brand-select-field select { flex: 1; min-width: 0; width: 100%; height: 100%; color: var(--navy); background: transparent; border: 0; font-size: 16px; font-weight: 600; cursor: pointer; }
.brand-select-field:focus-within { border-color: #91b1cb; box-shadow: 0 0 0 4px rgba(23,74,126,.08); }
.brand-select-field select:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

.quote-list { display: grid; gap: 12px; }
.quote-card { overflow: hidden; background: var(--white); border: 1px solid #e3eaf0; border-radius: var(--radius-md); box-shadow: 0 7px 18px rgba(16,44,71,.045); animation: lift-in .38s both; }
.quote-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 15px 13px 16px; border-bottom: 1px solid #e7edf2; }
.brand-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-rail { width: 4px; height: 24px; flex: 0 0 auto; background: var(--navy); border-radius: 4px; }
.brand-title { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.25; }
.group-count { flex: 0 0 auto; padding: 4px 8px; color: #7b90a2; background: var(--blue-wash); border-radius: 99px; font: 600 12px/1 ui-monospace, monospace; }
.group-note { display: flex; gap: 6px; align-items: center; margin: 0; padding: 8px 16px; color: #956d2c; background: #fffaf1; border-bottom: 1px solid #f2eadc; font-size: 14px; line-height: 1.4; }
.group-note::before { content: '注意'; padding: 2px 4px; color: #fff; background: #bb7c28; border-radius: 3px; font-size: 12px; font-weight: 700; }
.item-note { margin: 6px 0 0; color: #956d2c; font-size: 14px; line-height: 1.5; }
.quote-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #edf1f4; }
.quote-row:last-child { border-bottom: 0; }
.product-name { min-width: 0; color: #334e66; font-size: 16px; font-weight: 500; line-height: 1.5; }
.product-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.date-tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 7px; color: var(--navy); background: var(--blue-wash); border-radius: 4px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.date-tag::before { content: '⌁'; color: #7f9bb5; font-size: 12px; }
.date-tag.empty { color: #9caab6; background: #f4f6f8; }
.date-tag.empty::before { content: '—'; }
.price { display: flex; align-items: baseline; justify-content: flex-end; min-width: 63px; color: var(--orange); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 21px; font-weight: 800; letter-spacing: -.07em; white-space: nowrap; }
.price::before { content: '¥'; margin-right: 2px; color: #ec9a7f; font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.price.compound { font-size: 16px; letter-spacing: -.08em; }
.price.missing { color: #aebac4; font-size: 18px; }
.price.missing::before { color: #c7d0d7; }

.cooperation-card { margin-top: 27px; padding: 20px 16px 8px; background: var(--navy-deep); border-radius: var(--radius-lg); box-shadow: 0 18px 34px rgba(14,52,93,.2); }
.cooperation-heading { margin-bottom: 15px; }
.cooperation-card .section-kicker { color: #8eb1cf; }
.cooperation-card h2 { color: #fff; }
.contact-badge { padding: 5px 8px; color: #b7e0d1; background: rgba(90,174,139,.14); border: 1px solid rgba(147,216,186,.2); border-radius: 99px; font-size: 12px; }
.cooperation-list { display: grid; }
.cooperation-row { display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 15px 0; border-top: 1px solid rgba(201,222,240,.14); }
.cooperation-label { display: flex; align-items: center; gap: 7px; padding-top: 1px; color: #b0c7da; font-size: 12px; line-height: 1.65; white-space: nowrap; }
.cooperation-icon { display: block; flex: 0 0 16px; width: 16px; height: 16px; color: #9fbfd8; }
.cooperation-value { color: #e9f2f8; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.contact-phone { display: flex; align-items: center; justify-self: start; min-height: 44px; color: #b7e0d1; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.contact-phone:focus-visible { outline: 2px solid #b7e0d1; outline-offset: 3px; border-radius: 3px; }
.wechat-qr { width: 240px; max-width: 100%; margin: 24px auto 6px; padding: 10px 10px 13px; background: #fff; border: 1px solid #e0e8ef; border-radius: 14px; box-shadow: 0 6px 18px rgba(16,44,71,.04); text-align: center; }
.wechat-qr a { display: block; border-radius: 6px; }
.wechat-qr a:focus-visible { outline: 3px solid #4285ac; outline-offset: 3px; }
.wechat-qr img { display: block; width: 100%; height: auto; }
.wechat-qr figcaption { margin-top: 8px; color: #174a70; font-size: 14px; font-weight: 600; line-height: 1.6; }
.wechat-qr figcaption span { display: block; margin-top: 3px; color: #738697; font-size: 12px; font-weight: 400; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 7px 10px; color: #b7d5ea; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; font-size: 14px; white-space: nowrap; }
.copy-button svg { flex: 0 0 13px; width: 13px; height: 13px; }
.copy-button:active { transform: translateY(1px); background: rgba(255,255,255,.18); }
.footer-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 20px 2px 0; padding-bottom: 44px; color: #61788a; font-size: 12px; }
#quote-footer-date { color: var(--ink-soft); font-size: 12px; }
.back-to-top { position: fixed; z-index: 5; right: max(18px, calc((100vw - 760px) / 2 + 18px)); bottom: 19px; display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: var(--navy); border: 0; border-radius: 50%; box-shadow: 0 8px 17px rgba(23,74,126,.25); font-size: 20px; opacity: 0; pointer-events: none; transform: translateY(9px); transition: 180ms ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 25px; max-width: calc(100vw - 40px); padding: 10px 14px; color: #fff; background: rgba(16,44,71,.94); border-radius: 9px; box-shadow: 0 8px 22px rgba(16,44,71,.2); font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 13px); transition: 180ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty-state { padding: 48px 16px; text-align: center; color: #7f93a5; }
.empty-state span { display: block; margin-bottom: 9px; color: #9aafc1; font-size: 31px; }
.empty-state strong { display: block; color: var(--ink); font-size: 15px; }
.empty-state p { margin: 6px 0 0; font-size: 14px; }

@keyframes lift-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (min-width: 680px) {
  .page-shell { padding-left: 22px; padding-right: 22px; }
  .topbar { padding-top: 25px; }
  .hero-card { padding: 34px 31px 21px; }
  .filter-controls { grid-template-columns: minmax(0, 1fr) 250px; }
  .quote-list { display: block; column-count: 2; column-gap: 12px; }
  .quote-card { display: inline-block; width: 100%; margin-bottom: 12px; vertical-align: top; break-inside: avoid; }
  .quote-card:only-child { display: block; column-span: all; margin-bottom: 0; }
  .cooperation-card { padding-left: 22px; padding-right: 22px; }
}
