:root {
  --bg: #f7f4ed;
  --surface: #ffffff;
  --surface-muted: #f0f4eb;
  --text: #1d2a1f;
  --muted: #5f6d61;
  --accent: #557a46;
  --accent-dark: #3f5f34;
  --border: #d8e0d0;
  --shadow: 0 14px 34px rgba(30, 42, 31, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 244, 237, 0.92);
  border-bottom: 1px solid rgba(85, 122, 70, 0.08);
}
@media (max-width: 768px) {
  .site-header {
    position: static;
  }
}
.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 1px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-mark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.brand-subtitle, .header-nav a, .site-footer p, .footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0px 0 0px;
}
.hero-section { padding: 72px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy h1, .not-found-card h1, .product-info-block h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 10px 0 16px;
  letter-spacing: -0.03em;
}
.hero-text, .product-short, .section-intro { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.search-card, .hero-panel-card, .feature-card, .note-card, .product-card, .content-card, .not-found-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.search-card {
  margin-top: 28px;
  padding: 22px;
}
.label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}
.search-row {
  display: flex;
  gap: 12px;
}
input[type="text"] {
  flex: 1;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 0 18px;
  font-size: 1rem;
  outline: none;
  background: #fff;
}
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(85, 122, 70, 0.12);
}
button, .primary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border: none;
  border-radius: 16px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
button:hover, .primary-link-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.help-text, .product-code { color: var(--muted); margin: 12px 0 0; }
.sample-code {
  display: inline-block;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  margin-top: 4px;
}
.hero-panel-card {
  height: 100%;
  padding: 28px;
  background: linear-gradient(180deg, #f9fcf7 0%, #f0f4eb 100%);
}
.benefit-list, .plain-list { margin: 0; padding-left: 20px; }
.features-section, .note-section, .content-section, .not-found-section { padding: 28px 0; }
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card, .note-card, .content-card, .not-found-card { padding: 26px; }
.site-footer {
  padding: 24px 0 34px;
  margin-top: 30px;
  border-top: 1px solid rgba(85, 122, 70, 0.08);
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.page-section { padding-top: 36px; }
.product-hero { padding: 38px 0 12px; }
.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 600;
}
.product-image-block { min-width: 0; }
.product-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  padding: 24px;
}
.product-gallery {
  display: grid;
  gap: 14px;
}
.product-gallery-main,
.photo-card-image {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #eff5ea 0%, #e7efe0 100%);
}
.product-gallery-main img,
.photo-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
}
.gallery-thumb {
  padding: 0;
  min-height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-muted);
  overflow: hidden;
}
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(85, 122, 70, 0.16);
}
.product-image-placeholder, .photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
  background: linear-gradient(180deg, #eff5ea 0%, #e7efe0 100%);
  border: 1px dashed var(--border);
  border-radius: 22px;
  padding: 20px;
  color: var(--muted);
}
.photo-placeholder { min-height: 170px; }
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tag {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.93rem;
}
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.steps-grid, .photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.step-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.step-number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
}
.photo-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.photo-card-image {
  margin-bottom: 14px;
}
.faq-list details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--surface-muted);
}
.faq-list { display: grid; gap: 12px; }
.faq-list summary { cursor: pointer; font-weight: 600; }
.not-found-card { text-align: center; max-width: 720px; margin: 0 auto; }

@media (max-width: 960px) {
  .hero-grid,
  .product-card,
  .two-column-layout,
  .feature-cards,
  .steps-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner, .footer-inner, .search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-section { padding-top: 40px; }
  .search-card, .hero-panel-card, .feature-card, .content-card, .note-card { padding: 20px; }
}

.disclaimer-card {
  margin-top: 24px;
}

.legal-card {
  padding: 32px;
}

.legal-text p {
  margin: 0 0 16px 0;
  line-height: 1.7;
}

.legal-actions {
  margin-top: 24px;
}

.narrow {
  max-width: 860px;
}

.content-section {
  margin: 24px 0;
}

.text-content {
  display: grid;
  gap: 14px;
  color: var(--text-secondary, #4f5b53);
  line-height: 1.7;
}

.text-content p {
  margin: 0;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin: 12px 0 20px;
  letter-spacing: -0.02em;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
}

.section-title-large {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-primary, #213126);
}

.page-actions {
  margin-top: 28px;
}

.disclaimer-card,
.legal-card {
  box-sizing: border-box;
}

.hidden {
  display: none;
}

.site-brand-image {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-left: 4px;
}
