:root {
  --bg: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #2563eb;
  --warning: #fff7ed;
  --warning-border: #fdba74;
  --shadow: 0 4px 15px rgba(0, 0, 0, .05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Meiryo", sans-serif;
  line-height: 1.7;
}

.bricq-detail-page,
.product-list-page {
  overflow: visible;
}

.product-list-page {
  padding-bottom: 64px;
}

a {
  color: inherit;
  text-decoration: none;
}

.product-list-page .container,
.bricq-detail-page .container {
  width: 80%;
  max-width: 1200px;
  height: auto;
  max-height: none;
  margin: 0 auto;
  padding: 20px 0;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: .85rem;
}

.page-header {
  margin-bottom: 40px;
  text-align: center;
}

.eyebrow {
  color: var(--primary);
  font-size: .9rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1.5;
}

.stock-notice {
  margin-bottom: 28px;
  padding: 20px 22px;
  background: var(--warning);
  border: 1px solid var(--warning-border);
  border-radius: 12px;
}

.stock-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.stock-notice p {
  margin: 0;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.section-nav a {
  padding: 10px 24px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
}

.section-nav a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-section {
  scroll-margin-top: 24px;
}

.product-section+.product-section {
  margin-top: 40px;
}

.product-section h2,
.section-title {
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 5px solid var(--primary);
  font-size: 1.35rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, .15);
  border-color: rgba(37, 99, 235, .3);
}

.product-card-img {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.product-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 20px;
  text-align: center;
}

.product-card-title {
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.product-card-description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .9rem;
}

.product-card-price {
  margin-top: auto;
  font-weight: 700;
}

.price-tax {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 400;
}

.contact-panel {
  margin: 48px auto 64px;
  text-align: center;
}

.campus-portal {
  padding: 48px 24px;
  background: #fff;
  border: 2px solid #0fa3db;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
}

.btn-external,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  background: #0fa3db;
  color: #fff !important;
  font-weight: 700;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid var(--primary);
  border-radius: 30px;
  font-weight: 700;
}

@media (max-width: 850px) {

  .product-list-page .container,
  .bricq-detail-page .container {
    width: 100%;
    height: auto;
    max-height: none;
    padding: 20px 16px;
  }
}