:root {
  --ink: #1F2430;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --white: #FFFFFF;
  --brand: #75AFEA; /* logo.png の外枠の青 */
  --brand-dark: #3F86CF;
  --pad: clamp(16px, 5vw, 64px);
  --header-h: 64px;
  --max: 1120px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===================== HEADER ===================== */
.header {
  height: var(--header-h);
  background: var(--brand);
}
.header__inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header__name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
}
.header__nav a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.header__nav a:hover { text-decoration: underline; }

/* ===================== MAIN ===================== */
.main { flex: 1; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px var(--pad) 40px;
}
.hero__logo {
  width: clamp(140px, 36vw, 200px);
  height: auto;
  margin: 0 auto 20px;
}
.hero__text {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Section */
.section { padding: 24px 0 80px; }
.section__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand);
}
.section__title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.section__sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--brand-dark);
}

/* Products */
.products {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.product {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product:hover,
.product:focus-visible {
  box-shadow: 0 8px 24px rgba(31, 36, 48, .1);
  transform: translateY(-2px);
  border-color: var(--brand);
}
.product:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.product__img {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
}
.product__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}
.product__name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}
.product__desc {
  font-size: 0.8rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
}
.product__price {
  font-size: 1.05rem;
  font-weight: 700;
}
.product__price small { font-size: 0.7rem; font-weight: 400; color: var(--muted); margin-left: 2px; }
.product__more {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-dark);
  white-space: nowrap;
}
.products__note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Legal page */
.page-title {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 48px 0 24px;
}
.legal {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  margin-bottom: 80px;
  font-size: 0.92rem;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.legal th {
  width: 30%;
  min-width: 140px;
  background: var(--bg-soft);
  font-weight: 500;
}
@media (max-width: 600px) {
  .legal th, .legal td { display: block; width: 100%; }
  .legal th { border-bottom: none; padding-bottom: 8px; }
  .legal td { padding-top: 8px; }
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 32px var(--pad);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer__links { margin-bottom: 16px; }
.footer__links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__company { color: var(--ink); font-weight: 700; font-size: 0.95rem; }
.footer__kobutsu { margin-top: 8px; line-height: 1.6; }
.footer__copy { margin-top: 12px; font-size: 0.75rem; }
