/* HIXOR shop (/{lang}/shop/) — standalone neutral storefront styles.
   Design brief (2026-11-23, from the digital-product-shop research):
   calm content-first minimalism — off-white background, near-black text,
   ONE calm blue accent used only for links / badges / primary buttons.
   No dark theme, no glow, no cyber styling. Noto Sans JP, generous
   line-height, uniform cards, >=48px primary buttons, sticky mobile
   buy bar on product pages. Page-scoped: every rule is under .shop-*. */

.shop-page {
  --shop-bg: #fafafa;
  --shop-surface: #ffffff;
  --shop-text: #1b1f23;
  --shop-muted: #5b6570;
  --shop-border: #e2e7ec;
  --shop-accent: #0369a1;
  --shop-accent-dark: #025a8a;
  --shop-tint: #f0f7fb;
  margin: 0;
  background: var(--shop-bg);
  color: var(--shop-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.shop-page * { box-sizing: border-box; }
.shop-page a { color: var(--shop-accent); }
.shop-page a:focus-visible,
.shop-page button:focus-visible,
.shop-page summary:focus-visible {
  outline: 2px solid var(--shop-accent);
  outline-offset: 2px;
}
.shop-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.shop-tax { margin-left: 6px; }

/* ---------- header / footer ---------- */
.shop-header {
  background: var(--shop-surface);
  border-bottom: 1px solid var(--shop-border);
}
.shop-header-in {
  display: flex; align-items: center; gap: 16px;
  min-height: 60px;
}
.shop-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--shop-text); text-decoration: none;
  font-weight: 700; font-size: 16.5px; letter-spacing: .02em;
  white-space: nowrap;
}
.shop-brand img { width: 27px; height: 27px; flex: none; }
.shop-header nav { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.shop-header nav a { color: var(--shop-muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.shop-header nav a:hover { color: var(--shop-accent); text-decoration: underline; }
.shop-header .shop-lang { font-size: 14.5px; }

.shop-footer {
  margin-top: 64px;
  background: var(--shop-surface);
  border-top: 1px solid var(--shop-border);
  color: var(--shop-muted);
  font-size: 14.5px;
}
.shop-footer-in { padding-top: 28px; padding-bottom: 36px; }
.shop-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.shop-footer nav a { color: var(--shop-muted); }
.shop-footer p { margin: 6px 0; }

/* ---------- index ---------- */
.shop-hero { padding: 40px 0 8px; }
.shop-hero h1 { font-size: 30px; line-height: 1.4; margin: 0 0 10px; font-weight: 700; }
.shop-hero p { margin: 0; color: var(--shop-muted); max-width: 42em; }
.shop-hero .shop-hero-sub { margin: 0; }
.shop-trust-strip {
  list-style: none;
  margin: 18px 0 0; padding: 12px 16px;
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  display: flex; flex-wrap: wrap; gap: 4px 22px;
}
.shop-trust-strip li { margin: 0; padding: 0; font-size: 14.5px; line-height: 1.6; }

.shop-group { margin-top: 44px; }
.shop-group h2 { font-size: 23px; margin: 0 0 4px; font-weight: 700; }
.shop-group .shop-group-sub { margin: 0 0 20px; color: var(--shop-muted); font-size: 15.5px; }

.shop-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .shop-grid-business { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1020px) {
  .shop-grid-business { grid-template-columns: 1fr 1fr 1fr; }
}

.shop-card {
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.shop-card-cover { display: block; aspect-ratio: 1200 / 630; background: #eef1f4; }
.shop-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop-badge {
  align-self: flex-start;
  font-size: 12.5px; font-weight: 700; line-height: 1;
  color: var(--shop-accent);
  border: 1px solid var(--shop-accent);
  border-radius: 999px; padding: 5px 10px;
}
.shop-card h3 { font-size: 19px; line-height: 1.5; margin: 2px 0 0; font-weight: 700; }
.shop-card h3 a { color: var(--shop-text); text-decoration: none; }
.shop-card h3 a:hover { color: var(--shop-accent); text-decoration: underline; }
.shop-card-line { margin: 0; font-size: 15.5px; }
.shop-card-facts { margin: 0; color: var(--shop-muted); font-size: 14px; }
.shop-card-price { margin: 6px 0 0; font-size: 27px; font-weight: 700; line-height: 1.2; }
.shop-card-price .shop-tax { font-size: 14px; font-weight: 400; color: var(--shop-muted); }
.shop-card-note { margin: 0; color: var(--shop-muted); font-size: 13.5px; }
.shop-card-actions { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.shop-micro { margin: 0; color: var(--shop-muted); font-size: 13.5px; text-align: center; }
.shop-detail-link { text-align: center; font-size: 15px; }

.shop-page .shop-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 20px;
  background: var(--shop-accent); color: #fff;
  font-size: 16.5px; font-weight: 700; line-height: 1.3;
  border-radius: 8px; text-decoration: none; border: 0;
  transition: background-color .15s ease;
}
.shop-page .shop-btn:hover { background: var(--shop-accent-dark); color: #fff; }
.shop-page .shop-btn-sub {
  background: var(--shop-surface); color: var(--shop-accent);
  border: 1px solid var(--shop-accent);
}
.shop-page .shop-btn-sub:hover { background: var(--shop-tint); color: var(--shop-accent-dark); }

/* how it works + trust */
.shop-how { margin-top: 52px; }
.shop-how h2, .shop-trust h2 { font-size: 21px; margin: 0 0 14px; font-weight: 700; }
.shop-how ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .shop-how ol { grid-template-columns: 1fr 1fr 1fr; } }
.shop-how li {
  background: var(--shop-surface); border: 1px solid var(--shop-border);
  border-radius: 12px; padding: 16px 18px; font-size: 15.5px;
  display: flex; gap: 12px; align-items: flex-start;
}
.shop-how .shop-step-n {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--shop-accent); color: #fff;
  font-weight: 700; font-size: 15px; line-height: 28px; text-align: center;
  margin-top: 2px;
}
.shop-trust { margin-top: 40px; }
.shop-trust-box {
  background: var(--shop-surface); border: 1px solid var(--shop-border);
  border-radius: 12px; padding: 18px 22px;
}
.shop-trust ul { margin: 0; padding: 0; list-style: none; }
.shop-trust li { padding: 4px 0 4px 26px; position: relative; font-size: 15.5px; }
.shop-trust li::before {
  content: "✓"; position: absolute; left: 2px; top: 4px;
  color: var(--shop-accent); font-weight: 700;
}

/* ---------- product page ---------- */
.shop-crumb { padding: 18px 0 0; font-size: 14.5px; }
.shop-crumb a { color: var(--shop-muted); text-decoration: none; }
.shop-crumb a:hover { color: var(--shop-accent); text-decoration: underline; }

.shop-p-hero { padding: 14px 0 0; }
.shop-p-hero .shop-badge { margin-bottom: 10px; }
.shop-p-hero h1 { font-size: 27px; line-height: 1.45; margin: 0 0 8px; font-weight: 700; }
.shop-p-heroline { font-size: 18.5px; font-weight: 700; line-height: 1.6; margin: 0 0 10px; }
.shop-p-lead { margin: 0; max-width: 46em; }
.shop-p-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 900px) {
  .shop-p-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
}
.shop-p-cover { border: 1px solid var(--shop-border); border-radius: 12px; overflow: hidden; background: #eef1f4; }
.shop-p-cover img { width: 100%; height: auto; display: block; aspect-ratio: 1200 / 630; object-fit: cover; }

.shop-buybox {
  background: var(--shop-surface); border: 1px solid var(--shop-border);
  border-radius: 12px; padding: 20px;
}
.shop-buybox .shop-price { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0; }
.shop-buybox .shop-price .shop-tax { font-size: 15px; font-weight: 400; color: var(--shop-muted); }
.shop-buybox .shop-price-note { margin: 6px 0 0; color: var(--shop-muted); font-size: 14px; }
.shop-buybox .shop-btn { width: 100%; margin-top: 14px; }
.shop-buybox .shop-micro { margin-top: 10px; }
.shop-buybox .shop-stripe { margin: 10px 0 0; font-size: 13.5px; color: var(--shop-muted); text-align: center; }
.shop-buybox .shop-updates { margin: 8px 0 0; font-size: 13.5px; color: var(--shop-muted); text-align: center; }
.shop-buybox-legal {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--shop-border);
  font-size: 13px; line-height: 1.7; color: var(--shop-muted);
}
.shop-buybox-legal p { margin: 0 0 8px; }
.shop-buybox-legal p:last-child { margin-bottom: 0; }

.shop-section { margin-top: 46px; }
.shop-section > h2 { font-size: 21px; margin: 0 0 14px; font-weight: 700; }
.shop-section p { max-width: 46em; }

.shop-fitgrid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .shop-fitgrid { grid-template-columns: 1fr 1fr; } }
.shop-fitbox {
  background: var(--shop-surface); border: 1px solid var(--shop-border);
  border-radius: 12px; padding: 16px 20px;
}
.shop-fitbox h3 { margin: 0 0 8px; font-size: 16.5px; }
.shop-fitbox ul { margin: 0; padding: 0; list-style: none; }
.shop-fitbox li { padding: 3px 0 3px 24px; position: relative; font-size: 15.5px; }
.shop-fitbox-fit li::before { content: "✓"; position: absolute; left: 2px; color: var(--shop-accent); font-weight: 700; }
.shop-fitbox-nonfit { color: var(--shop-muted); }
.shop-fitbox-nonfit li::before { content: "–"; position: absolute; left: 4px; }

.shop-contents-group { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.shop-table { width: 100%; border-collapse: collapse; background: var(--shop-surface); font-size: 15.5px; }
.shop-table th, .shop-table td {
  border-bottom: 1px solid var(--shop-border);
  padding: 10px 12px; text-align: left; vertical-align: top;
}
.shop-table th { color: var(--shop-muted); font-weight: 700; font-size: 14px; background: #f4f6f8; }
.shop-table td.shop-t-name { font-weight: 700; }
.shop-table td.shop-t-fmt, .shop-table td.shop-t-pages { white-space: nowrap; color: var(--shop-muted); }
@media (max-width: 639px) {
  .shop-table, .shop-table tbody, .shop-table tr, .shop-table td { display: block; width: 100%; }
  .shop-table thead { display: none; }
  .shop-table tr { border-bottom: 1px solid var(--shop-border); padding: 10px 4px; background: var(--shop-surface); }
  .shop-table td { border-bottom: 0; padding: 1px 12px; }
  .shop-table td.shop-t-fmt, .shop-table td.shop-t-pages { display: inline; padding: 1px 0 1px 12px; white-space: normal; }
  .shop-table td.shop-t-pages::before { content: "· "; }
  .shop-table td.shop-t-desc { color: var(--shop-text); padding-top: 4px; }
}

.shop-license { font-size: 14.5px; color: var(--shop-muted); max-width: 46em; }

.shop-pv-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .shop-pv-grid { grid-template-columns: 1fr 1fr 1fr; } }
.shop-pv { margin: 0; }
.shop-pv img {
  width: 100%; height: auto; display: block; border: 1px solid var(--shop-border);
  border-radius: 8px; background: #fff;
}
.shop-pv figcaption { font-size: 14px; color: var(--shop-muted); margin-top: 6px; }
.shop-pv-note { color: var(--shop-muted); font-size: 14px; }

.shop-sample-box {
  background: var(--shop-tint); border: 1px solid var(--shop-border);
  border-radius: 12px; padding: 18px 22px;
}
.shop-sample-box p { margin: 0 0 6px; }
.shop-sample-box .shop-sample-label { font-weight: 700; }
.shop-sample-box .shop-sample-note { color: var(--shop-muted); font-size: 14.5px; }
.shop-sample-box .shop-btn { margin-top: 12px; max-width: 420px; }

.shop-howto ol { margin: 0; padding-left: 1.4em; max-width: 46em; }
.shop-howto li { padding: 2px 0; }
.shop-env ul { margin: 0; padding-left: 1.3em; max-width: 46em; }
.shop-env li { padding: 2px 0; }

.shop-legal {
  background: var(--shop-surface); border: 1px solid var(--shop-border);
  border-radius: 12px; padding: 18px 22px; font-size: 15px;
}
.shop-legal p { margin: 0 0 10px; max-width: none; }
.shop-legal p:last-child { margin-bottom: 0; }

.shop-faq details {
  background: var(--shop-surface); border: 1px solid var(--shop-border);
  border-radius: 10px; margin-bottom: 10px; padding: 0 18px;
}
.shop-faq summary {
  cursor: pointer; font-weight: 700; padding: 13px 0; font-size: 16px; list-style: none;
}
.shop-faq summary::-webkit-details-marker { display: none; }
.shop-faq summary::after { content: "＋"; float: right; color: var(--shop-accent); font-weight: 700; }
.shop-faq details[open ] summary::after { content: "－"; }
.shop-faq details p { margin: 0 0 14px; font-size: 15.5px; }

.shop-disclaimer { color: var(--shop-muted); font-size: 15px; }

.shop-related-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .shop-related-grid { grid-template-columns: 1fr 1fr; } }

/* sticky mobile buy bar */
.shop-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--shop-surface); border-top: 1px solid var(--shop-border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 14px;
  box-shadow: 0 -2px 10px rgba(20, 30, 40, .06);
}
.shop-buybar .shop-buybar-price { font-size: 20px; font-weight: 700; white-space: nowrap; }
.shop-buybar .shop-buybar-price .shop-tax { font-size: 12px; font-weight: 400; color: var(--shop-muted); }
.shop-buybar .shop-btn { flex: 1; min-height: 48px; }
@media (max-width: 859px) {
  .shop-buybar.shop-buybar-on { display: flex; }
  .shop-page-product { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-page * { transition: none !important; }
}

/* ---------- article lineup additions (2026-11-23, shop-v3) ---------- */
/* Inside-the-kit section (E-3): plain paragraphs under the contents
   table. Children margins set explicitly (boxed-component rule). */
.shop-inside p { margin: 0 0 10px; }
.shop-inside p:last-child { margin-bottom: 0; }

/* Related reading (cluster guides) on product pages. */
.shop-reading-list { list-style: none; margin: 0; padding: 0; }
.shop-reading-list li {
  background: var(--shop-surface); border: 1px solid var(--shop-border);
  border-radius: 12px; padding: 14px 18px; margin: 0 0 10px;
}
.shop-reading-list li:last-child { margin-bottom: 0; }
.shop-reading-list a { font-weight: 700; font-size: 16.5px; }
.shop-reading-list p { margin: 4px 0 0; color: var(--shop-muted); font-size: 14.5px; }

/* Shop index: guide link box. */
.shop-guide-link { margin-top: 44px; }
.shop-guide-link h2 { font-size: 21px; margin: 0 0 6px; font-weight: 700; }
.shop-guide-link p { margin: 0 0 6px; }
.shop-guide-link p:last-child { margin-bottom: 0; }

/* Shop guide page (E-1). */
.shop-guide-hero { padding: 40px 0 8px; }
.shop-guide-hero h1 { font-size: 28px; line-height: 1.45; margin: 0 0 10px; font-weight: 700; }
.shop-guide-hero p { margin: 0; color: var(--shop-muted); max-width: 46em; }
.shop-guide-section { margin-top: 40px; }
.shop-guide-section > h2 { font-size: 21px; margin: 0 0 12px; font-weight: 700; }
.shop-guide-section p { margin: 0 0 10px; max-width: 46em; }
.shop-guide-section p:last-child { margin-bottom: 0; }
.shop-guide-section ul { margin: 0 0 10px; padding-left: 1.3em; max-width: 46em; }
.shop-guide-section li { padding: 2px 0; }
.shop-guide-group { margin: 0 0 22px; }
.shop-guide-group:last-child { margin-bottom: 0; }
.shop-guide-group > h3 { font-size: 17px; margin: 0 0 12px; font-weight: 700; }
.shop-guide-section ol { margin: 0 0 10px; padding-left: 1.4em; max-width: 46em; }
.shop-guide-section ol li { padding: 2px 0; }
