:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #e5e7eb;
  --soft: #f7f8fa;
  --blue: #1d4ed8;
  --blue-dark: #153eaa;
  --navy: #0f172a;
  --amber: #f59e0b;
  --radius: 18px;
  --shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  box-shadow: var(--shadow);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow { width: min(760px, 100%); margin-inline: auto; }
.page { min-height: 65vh; padding: 40px 0 72px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--navy); font-size: 16px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { border-radius: 9px; padding: 8px 11px; color: #4b5563; font-size: 14px; font-weight: 650; }
.nav a:hover, .nav a.active { color: var(--navy); background: #f1f5f9; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.35), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #172554 58%, #1e3a8a 100%);
  padding: 76px 0 82px;
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: #93c5fd; font-size: 13px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 6vw, 66px); line-height: 1.05; letter-spacing: -0.055em; }
.hero-copy { max-width: 680px; margin: 22px 0 0; color: #cbd5e1; font-size: clamp(17px, 2vw, 20px); }
.hero-panel { border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.08); padding: 25px; box-shadow: 0 22px 60px rgba(0,0,0,.18); }
.hero-panel strong { display: block; margin-bottom: 10px; font-size: 18px; }
.hero-panel ul { margin: 0; padding-left: 20px; color: #dbeafe; font-size: 14px; }

.search-form { display: flex; gap: 10px; margin-top: 30px; max-width: 650px; }
.search-form input { min-width: 0; flex: 1; border: 1px solid transparent; border-radius: 12px; padding: 13px 15px; outline: none; }
.search-form input:focus { box-shadow: 0 0 0 4px rgba(147,197,253,.35); }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 11px 17px; cursor: pointer; background: var(--blue); color: #fff; font-weight: 750; }
.button:hover { color: #fff; background: var(--blue-dark); }
.button-light { color: var(--navy); background: #fff; }
.button-light:hover { color: var(--navy); background: #eaf2ff; }
.button-outline { color: var(--blue); background: #fff; border: 1px solid #bfdbfe; }
.button-outline:hover { color: var(--blue-dark); background: #eff6ff; }

.section { padding: 68px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.section-head h2, .page-title { margin: 0; letter-spacing: -0.035em; line-height: 1.15; }
.section-head h2 { font-size: clamp(27px, 4vw, 36px); }
.section-head p { max-width: 620px; margin: 8px 0 0; color: var(--muted); }
.page-title { font-size: clamp(32px, 5vw, 48px); }
.page-intro { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 23px; box-shadow: 0 1px 2px rgba(15,23,42,.03); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.card:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: var(--shadow); color: var(--ink); }
.card h2, .card h3 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
.card p { margin: 10px 0 0; color: var(--muted); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--blue); font-size: 14px; font-weight: 750; }
.badge { display: inline-flex; width: fit-content; align-items: center; border-radius: 99px; padding: 4px 9px; color: #92400e; background: #fef3c7; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tag { display: inline-flex; border-radius: 99px; padding: 5px 10px; color: #475569; background: #f1f5f9; font-size: 12px; font-weight: 650; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }

.store-top { display: flex; align-items: center; gap: 14px; }
.store-logo { position: relative; flex: 0 0 auto; display: grid; width: 52px; height: 52px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; color: #334155; font-weight: 850; }
.store-logo img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: contain; background: #fff; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; color: #64748b; font-size: 13px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; color: #64748b; font-size: 13px; }
.breadcrumbs span::before { content: "/"; margin-right: 7px; color: #cbd5e1; }
.content-card { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: clamp(24px, 5vw, 46px); box-shadow: var(--shadow); }
.content-card + .content-card { margin-top: 24px; }
.prose { color: #4b5563; }
.prose h2 { margin: 36px 0 12px; color: var(--ink); font-size: 23px; letter-spacing: -0.025em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.notice { border: 1px solid #fde68a; border-radius: 14px; background: #fffbeb; padding: 16px 18px; color: #78350f; font-size: 14px; }

.detail-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.detail-hero .store-logo { width: 76px; height: 76px; border-radius: 18px; }
.detail-hero h1 { margin: 12px 0 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.045em; }
.detail-hero p { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 18px; }

.check-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: #475569; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #16a34a; font-weight: 900; }

.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 750; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.filter-bar { display: flex; gap: 10px; margin: 28px 0; }
.filter-bar input { flex: 1; min-width: 0; border: 1px solid #cbd5e1; border-radius: 11px; padding: 12px 14px; outline: none; }
.filter-bar input:focus { border-color: #60a5fa; box-shadow: 0 0 0 4px #dbeafe; }
.result-count { margin: -14px 0 22px; color: #64748b; font-size: 14px; }

.empty { border: 1px dashed #cbd5e1; border-radius: var(--radius); padding: 42px 24px; text-align: center; color: var(--muted); }
.error-page, .loading-page { min-height: 70vh; display: grid; place-content: center; justify-items: center; padding: 40px; text-align: center; }
.spinner { width: 34px; height: 34px; border: 3px solid #dbeafe; border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { color: #cbd5e1; background: var(--navy); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 38px; }
.site-footer h2, .site-footer h3 { margin: 0 0 12px; color: #fff; }
.site-footer p { max-width: 520px; margin: 0; font-size: 14px; }
.footer-links { display: grid; gap: 8px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid #293548; color: #94a3b8; font-size: 12px; }
.noscript { margin: 20px; border: 1px solid #fecaca; border-radius: 12px; padding: 18px; background: #fef2f2; color: #991b1b; }

@media (max-width: 850px) {
  .hero-grid, .detail-hero, .footer-grid { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero .button { justify-self: start; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1160px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding: 13px 0; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav a { white-space: nowrap; }
  .hero { padding: 58px 0 62px; }
  .search-form, .filter-bar { flex-direction: column; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .content-card { border-radius: 16px; }
}
