@charset "UTF-8";

:root {
  --bg: #f8fafc;
  --panel: #fff;
  --soft: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #93c47d;
  --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", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.product-page {
  width: 95%;
  margin: 0 auto;
}

.container {
  width: 80%;
  margin: 0 auto;
  padding: 20px 0;
}

.breadcrumb a {
  color: var(--primary);
}

.product-shell {
  padding: 0;
}

.page-header {
  margin-bottom: 40px;
  text-align: center;
}

.eyebrow {
  display: none;
}

h1 {
  margin: 0;
  color: #222;
  font-size: 1.8rem;
  line-height: 1.5;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  padding: 0;
  background: transparent;
  border: 0;
}

.section-nav a {
  padding: 10px 24px;
  background: #fff;
  color: var(--text);
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  font-weight: 700;
}

.section-nav a:hover {
  background: var(--primary);
  color: #fff;
}

.product-section {
  scroll-margin-top: 24px;
  padding-top: 0;
  border-top: 0;
}

.product-section+.product-section {
  margin-top: 40px;
}

.product-section h2 {
  margin: 0 0 20px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 5px solid var(--primary);
  font-size: 1.35rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
  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(147, 196, 125, .3);
  border-color: rgba(147, 196, 125, .6);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  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-img.is-empty::after {
  content: '画像準備中';
  color: var(--muted);
  font-size: .9rem;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 20px;
  text-align: center;
}

.product-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.product-card-price {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
}

.price-tax {
  color: #94a3b8;
  font-size: .85rem;
  font-weight: 400;
}

.contact-panel {
  max-width: 1000px;
  margin: 0 auto 50px;
  padding: 60px 20px;
  text-align: center;
}

.contact-panel .campus-portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px;
  background: #fff;
  border: 2px solid #0fa3db;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.6rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background-color: #0fa3db;
  border-radius: 30px;
  color: #fff !important;
  font-weight: bold;
  font-size: 1rem;
}

.primary-button:hover {
  background-color: #0d8ac6;
}

.contact-panel .primary-button::after {
  content: '→';
  margin-left: 8px;
  font-family: sans-serif;
}

.primary-button:visited {
  color: #fff;
}

@media (max-width:600px) {
  .product-page {
    padding: 32px 16px 56px;
  }

  .product-shell {
    padding: 24px 16px 28px;
  }

  .section-nav a {
    flex: 1 1 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    flex-direction: row;
  }

  .product-card-img {
    width: 38%;
    flex-shrink: 0;
    border-right: 1px solid #f1f5f9;
    border-bottom: 0;
  }

  .product-card-body {
    min-width: 0;
    padding: 16px;
    text-align: left;
    justify-content: center;
  }
}

.stock-notice {
  margin-bottom: 28px;
  padding: 20px 22px;
  background: #93c47d;
  border: 1px solid #7eae68;
  border-radius: 12px;
}

.stock-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.stock-notice p {
  margin: 0;
}