:root {
  --bg: #f6f0eb;
  --panel: #ffffff;
  --ink: #2a1d1d;
  --muted: #6f5b5b;
  --brand: #a7194b;
  --gold: #c79214;
  --green: #2cab50;
  --blue: #1d4ed8;
  --shadow: 0 18px 50px rgba(77, 38, 38, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(167, 25, 75, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(201, 146, 20, 0.08), transparent 22%),
    linear-gradient(180deg, #fff7f2 0%, var(--bg) 42%, #f7f1ea 100%);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(167, 25, 75, 0.08);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.brand img {
  display: block;
  height: 40px;
  width: auto;
}
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; }
.nav-links a:hover { color: var(--brand); }
.btn, .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}
.btn {
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 0 8px 18px rgba(167, 25, 75, 0.18);
}
.hero {
  margin-top: 24px;
  border-radius: 30px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 214, 102, 0.45), transparent 18%),
    linear-gradient(135deg, #82164d 0%, #d62f6d 44%, #ff9b4d 100%);
  min-height: 260px;
  box-shadow: var(--shadow);
}
.hero-inner {
  padding: 50px;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.22fr);
  gap: 15px;
  align-items: stretch;
}
.hero-split > div {
  min-width: 0;
}
.hero-kicker {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero p { max-width: 560px; margin: 0; font-size: 16px; line-height: 1.7; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  padding: 10px 0;
  max-width: 430px;
}
.hero-copy p {
  max-width: 430px;
}
.cta-btn {
  background: linear-gradient(135deg, #ffd54a, #ffb300);
  color: #7a2d00;
  padding: 13px 18px;
  border-radius: 999px;
  margin-top: 18px;
  box-shadow: 0 14px 30px rgba(255, 179, 0, 0.34);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.ghost-btn {
  background: rgba(167, 25, 75, 0.08);
  color: var(--brand);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(167, 25, 75, 0.12);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.btn:hover, .ghost-btn:hover, .cta-btn:hover {
  transform: translateY(-1px);
}
.btn:active, .ghost-btn:active, .cta-btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn:hover {
  background: #8d1240;
  box-shadow: 0 12px 24px rgba(167, 25, 75, 0.22);
}
.ghost-btn:hover {
  background: rgba(167, 25, 75, 0.14);
}
.cta-btn:hover {
  box-shadow: 0 16px 34px rgba(255, 179, 0, 0.42);
  filter: saturate(1.05);
}
.section { padding-top: 26px; padding-bottom: 6px; }
.section h2 { margin: 0 0 14px; font-size: 28px; letter-spacing: -0.03em; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-card {
  border-radius: 18px;
  padding: 14px 12px;
  color: #fff;
  min-height: 88px;
  box-shadow: inset 0 -20px 30px rgba(0, 0, 0, 0.1);
}
.feature-card strong { display: block; font-size: 22px; line-height: 1; }
.feature-card small { display: block; margin-top: 6px; font-size: 12px; opacity: 0.95; }
.feature-blue { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
.feature-red { background: linear-gradient(135deg, #d61d5e, #f43f5e); }
.feature-gold { background: linear-gradient(135deg, #b07600, #eab308); }
.feature-green { background: linear-gradient(135deg, #17a34a, #34d399); }
.category-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  padding-top: 16px;
  text-align: center;
}
.category-row a { font-size: 12px; color: var(--brand); font-weight: 800; }
.category-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}
.card {
  background: var(--panel);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(56, 29, 29, 0.08);
  border: 1px solid rgba(167, 25, 75, 0.08);
  overflow: hidden;
}
.post-card { padding: 18px; }
.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(167, 25, 75, 0.08);
  color: var(--brand);
}
.grid-cards { display: grid; gap: 14px; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.8fr); gap: 18px; }
.sidebar { display: grid; gap: 10px; align-content: start; }
.sidebar a {
  padding: 12px 14px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(167, 25, 75, 0.08);
  font-weight: 700;
}
.footerbar {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 24px 0 34px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 18px; }
.policy-grid { display: grid; gap: 10px; }
.policy-grid a { color: var(--brand); font-weight: 700; }
.page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 20px; }
.page h1 { margin: 8px 0 12px; font-size: clamp(32px, 4vw, 48px); }
.article { line-height: 1.8; color: #4d3d3d; }
.schema-note { font-size: 12px; color: var(--muted); }
input, textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(167, 25, 75, 0.12);
  padding: 14px 12px;
  font: inherit;
  background: #fff;
}
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.archive-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; }
.archive-list { display: grid; gap: 12px; }
.archive-list a {
  padding: 12px 14px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(167, 25, 75, 0.08);
  font-weight: 700;
}
.post-card h3, .post-card h2 { margin-top: 0; }
.slide-title {
  margin: 6px 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}
@keyframes drift {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(8px) scale(1.02); }
}
.carousel-panel {
  position: relative;
  width: min(650px, 100%);
  aspect-ratio: 650 / 300;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  color: #fff;
  opacity: 0;
  animation: fadeSlide 18s infinite;
  transition: transform 320ms ease;
  transform-origin: center center;
}
.carousel-panel:hover .carousel-slide {
  transform: scale(1.04);
}
.carousel-slide:nth-child(2) { animation-delay: 3s; }
.carousel-slide:nth-child(3) { animation-delay: 6s; }
.carousel-slide:nth-child(4) { animation-delay: 9s; }
.carousel-slide:nth-child(5) { animation-delay: 12s; }
.carousel-slide:nth-child(6) { animation-delay: 15s; }
@keyframes fadeSlide {
  0%, 12% { opacity: 1; }
  16.5%, 100% { opacity: 0; }
}
.carousel-slide .slide-copy {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(18, 0, 0, 0.58) 0%, rgba(18, 0, 0, 0.08) 55%, rgba(18, 0, 0, 0.02) 100%);
}
.carousel-slide .slide-copy h3 {
  margin: 6px 0 6px;
  font-size: 18px;
}
.carousel-slide .slide-copy p { margin: 0; font-size: 13px; line-height: 1.5; }
.banner-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .header-inner, .wrap, .page, .footerbar { width: min(100% - 20px, 1120px); }
  .header-inner { flex-wrap: wrap; padding: 12px 0; }
  .nav-links { width: 100%; gap: 14px; font-size: 14px; }
  .feature-grid, .category-row, .footer-grid, .blog-layout, .post-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .hero-inner {
    width: 100%;
    max-width: 100%;
    padding: 22px 16px;
  }
  .hero-split { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { min-height: auto; }
  .hero-copy p { max-width: 100%; }
  .carousel-panel {
    width: 100%;
    aspect-ratio: 900 / 230;
  }
  .carousel-track {
    min-height: 160px;
  }
  .carousel-slide {
    animation: none;
    opacity: 0;
  }
  .carousel-slide.is-active {
    opacity: 1;
    display: flex;
  }
  .carousel-slide:not(.is-active) {
    display: none;
  }
  .carousel-panel:hover .carousel-slide {
    transform: none;
  }
  .carousel-slide .slide-copy {
    padding: 12px 14px;
  }
  .carousel-slide .slide-copy .slide-title {
    font-size: 16px;
  }
  .carousel-slide .slide-copy p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-slide, .btn, .ghost-btn, .cta-btn { animation: none !important; transition: none !important; }
  .carousel-panel:hover .carousel-slide { transform: none; }
}
