:root {
  --bg: #f2f8ff;
  --surface: #ffffff;
  --border: #dcebff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --mint: #10b981;
  --bg-alt: #eaf3ff;
  --card: var(--surface);
  --accent: var(--primary);
  --accent-dark: #1d4ed8;
  --line: var(--border);
  --shadow: 0 8px 16px rgba(17, 24, 39, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font-sans: "Avenir Next", "Futura", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-ui: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro",
    "Hiragino Sans", "Yu Gothic", "Meiryo",
    system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-logo {
  height: 96px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  overflow: visible;
}

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

p {
  margin: 0 0 1rem;
}

h1, h2, h3 {
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

/* 見出しも同じフォントに統一（ここが重要） */
h1, h2, h3, .page-title, .hero-title {
  font-family: var(--font-ui) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.hero-title {
  line-height: 1.1;
  white-space: normal;
}

.hero-title br {
  display: block;
}

/* ナビ・ボタン */
header, nav, .nav a, button, .btn, .site-nav a {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 本文 */
p, li, .muted {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.8;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(242, 248, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  min-height: 112px;
  gap: 1.5rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}

.site-nav a {
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  border-color: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.button.ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.button.ghost:hover {
  background: rgba(37, 99, 235, 0.08);
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.hero {
  padding: 4rem 0 5rem;
  background: var(--bg-alt);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.section {
  padding: 4rem 0;
}

.section.accent {
  background: var(--bg);
}

.section-title {
  margin-bottom: 2rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.text-link {
  font-weight: 600;
  color: var(--accent-dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card,
.product-card,
.contact-form,
.filter-bar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.feature-card h3 {
  margin-top: 1rem;
}

.feature-card {
  overflow: visible;
}

.feature-card img {
  width: 56px;
  height: 56px;
  padding: 4px;
  display: block;
  object-fit: contain;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.product-card {
  display: grid;
  gap: 0.8rem;
  width: 100%;
  max-width: none;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.8rem;
  color: var(--muted);
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge--featured {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.page-hero {
  padding: 3.5rem 0 2rem;
  background: var(--bg-alt);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
}

textarea {
  resize: vertical;
}

.checkbox-field label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 500;
}

.result-count {
  font-weight: 600;
  color: var(--muted);
}

.faq-list details {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 0.8rem;
  background: var(--surface);
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
}

.error {
  color: #b01e1e;
  font-size: 0.85rem;
  min-height: 1.2rem;
  display: block;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.site-footer {
  background: var(--surface);
  color: var(--text);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-text,
.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.sns {
  display: flex;
  gap: 0.8rem;
  font-size: 1.2rem;
}

.reveal {
  animation: fadeUp 0.8s ease both;
}

.feature-grid .feature-card:nth-child(2),
.product-grid .product-card:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-grid .feature-card:nth-child(3),
.product-grid .product-card:nth-child(3) {
  animation-delay: 0.2s;
}

.product-grid .product-card:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 商品一覧（カードを横並びに戻す） */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-inner {
    gap: 2rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .site-logo {
    height: 56px;
  }

  .header-inner {
    min-height: 84px;
    padding: 0.5rem 0;
  }
}
