:root {
  --apn-green: #1c5a34;
  --apn-green-dark: #0f3a21;
  --apn-accent: #c9a227;
  --apn-bg: #f8faf8;
  --apn-text: #1f2d22;
  --apn-muted: #5a665d;
  --apn-white: #ffffff;
  --apn-radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--apn-text);
  line-height: 1.6;
  background: var(--apn-white);
}

a {
  color: var(--apn-green);
  text-decoration: none;
}

a:hover {
  color: var(--apn-green-dark);
}

.apn-container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid #e7dcc1;
  background: var(--apn-white);
  position: sticky;
  top: 0;
  z-index: 999;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand__logo img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.home-page .brand__logo img {
  width: 96px;
  height: 96px;
  border-radius: 14px;
}

.brand__text {
  color: var(--apn-green-dark);
  font-size: 1.1rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 18px;
}

.main-navigation a {
  color: var(--apn-text);
  font-weight: 600;
}

.main-navigation a:hover {
  color: var(--apn-accent);
}

.apn-button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.apn-button--primary {
  background: var(--apn-green);
  color: var(--apn-white);
  border: 1px solid var(--apn-green);
}

.apn-button--primary:hover {
  background: var(--apn-accent);
  border-color: var(--apn-accent);
  color: var(--apn-white);
}

.apn-button--outline {
  border: 1px solid var(--apn-accent);
  color: var(--apn-green);
}

.apn-button--outline:hover {
  background: var(--apn-accent);
  border-color: var(--apn-accent);
  color: var(--apn-white);
}

.apn-button--small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.hero {
  background: linear-gradient(120deg, #ffffff 0%, #fbf9f2 50%, #ffffff 100%);
  padding: 84px 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
}

.hero__headline {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  margin: 10px 0 16px;
}

.hero__lead {
  color: var(--apn-muted);
  margin: 0 0 24px;
}

.hero__tag {
  display: inline-block;
  background: #f7efd7;
  color: #735d12;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero__panel {
  background: var(--apn-white);
  border: 1px solid #ece2c5;
  border-radius: var(--apn-radius);
  box-shadow: 0 10px 26px rgba(16, 40, 23, 0.08);
  padding: 26px;
}

.hero__panel h3 {
  margin-top: 0;
}

.apn-section {
  padding: 72px 0;
}

.apn-section--soft {
  background: var(--apn-bg);
}

.apn-section__heading {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--apn-green-dark);
}

.apn-section__desc {
  color: var(--apn-muted);
  max-width: 700px;
}

.apn-grid {
  display: grid;
  gap: 22px;
}

.apn-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apn-card {
  background: var(--apn-white);
  border: 1px solid #e9e1cc;
  border-radius: var(--apn-radius);
  padding: 20px;
}

.apn-card h3 {
  margin: 0 0 8px;
}

.apn-card p {
  margin: 0;
  color: var(--apn-muted);
}

.apn-product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.apn-product-card--empty {
  border-style: dashed;
  border-color: #d8d8d8;
}

.apn-product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.apn-product-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee3c7;
  background: #fffdf7;
}

.apn-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.apn-product-empty-space {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px dashed #d4d4d4;
  background: #fafafa;
}

.apn-page-content {
  padding: 32px 0 56px;
}

.apn-post-card {
  min-height: 220px;
}

.apn-post-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee3c7;
  background: #fffdf7;
  margin-bottom: 12px;
}

.apn-post-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.apn-detail-card {
  padding: 24px;
}

.apn-detail-hero-image {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #eee3c7;
  background: #fffdf7;
  margin-bottom: 18px;
}

.apn-rich-content img {
  max-width: 100%;
  height: auto;
}

.apn-rich-content table {
  width: 100%;
  border-collapse: collapse;
}

.apn-rich-content table td,
.apn-rich-content table th {
  border: 1px solid #e6e0d0;
  padding: 8px;
}

.site-footer {
  padding: 42px 0;
  background: #0f3a21;
  color: #f7f3e7;
}

.site-footer a {
  color: #f1de9a;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-navigation ul {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    width: 100%;
  }

  .home-page .brand__logo img {
    width: 78px;
    height: 78px;
  }

  .brand__text {
    font-size: 1rem;
  }

  .main-navigation {
    width: 100%;
  }

  .hero {
    padding: 56px 0;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .main-navigation ul {
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .main-navigation a {
    white-space: nowrap;
  }

  .apn-grid--3 {
    grid-template-columns: 1fr;
  }

  .apn-card {
    padding: 16px;
  }

  .apn-product-actions {
    flex-direction: column;
  }

  .apn-product-actions .apn-button {
    width: 100%;
    text-align: center;
  }

  .apn-detail-card {
    padding: 16px;
  }

  .apn-detail-hero-image {
    max-height: 280px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
