:root {
  --bg-base: #f7f5ef;
  --bg-soft: #edf7f2;
  --surface: #ffffff;
  --surface-alt: #fdfaf4;
  --ink: #173a31;
  --muted: #4e6860;
  --line: #d8e4dc;
  --brand: #145f4c;
  --brand-strong: #0e4c3c;
  --accent: #dd8540;
  --ok-bg: #e9f5ef;
  --warn-bg: #fff4e8;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 16px 40px rgba(20, 61, 50, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.68;
  background:
    radial-gradient(circle at 2% 2%, #fff8e9 0, #fff8e9 11%, transparent 42%),
    radial-gradient(circle at 97% 1%, #dff3ea 0, #dff3ea 17%, transparent 45%),
    linear-gradient(180deg, #f9f4e8 0%, #f3faf6 50%, #ffffff 100%);
  min-height: 100vh;
}

a {
  color: var(--brand);
}

a:hover,
a:focus-visible {
  color: var(--brand-strong);
}

.container {
  width: min(1140px, 100% - 2rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(9px);
  background: rgba(248, 243, 230, 0.88);
  border-bottom: 1px solid rgba(145, 168, 158, 0.35);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.3rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 61, 50, 0.2);
}

.brand-text {
  display: grid;
  gap: 0.12rem;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 0.96rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 0.76rem;
  color: #5d756c;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  transform: translateY(-1px);
  background: #e7f3ed;
  color: var(--brand-strong);
  outline: none;
}

.nav a.is-active {
  background: var(--brand);
  color: #fff;
}

.main-wrap {
  padding: 1.7rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.hero-card,
.section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-main {
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 3% 3%, rgba(221, 133, 64, 0.18) 0, transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(20, 95, 76, 0.15) 0, transparent 44%);
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin: 0 0 0.9rem;
  padding: 0.33rem 0.72rem;
  border: 1px solid #efd5ba;
  background: #f8e8d7;
  color: #855122;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 2.8vw, 3.05rem);
}

.hero-main p {
  margin: 0.95rem 0 1.2rem;
  max-width: 58ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.72rem 1.08rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #1a715a);
  box-shadow: 0 10px 24px rgba(20, 95, 76, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 14px 30px rgba(20, 95, 76, 0.31);
}

.btn-secondary {
  color: var(--brand);
  border: 1px solid #cedbd3;
  background: #fff;
}

.metric-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.metric-list li {
  border: 1px solid #d4e3db;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.65rem;
}

.metric-list strong {
  display: block;
  color: var(--brand);
  font-size: 1.15rem;
  line-height: 1.25;
}

.metric-list span {
  display: block;
  color: #58746a;
  font-size: 0.87rem;
  font-weight: 600;
}

.hero-side {
  padding: 1.45rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  background: linear-gradient(180deg, #ffffff 0, #f4faf6 100%);
}

.hero-side p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.chip-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-list a {
  text-decoration: none;
  color: var(--brand);
  border: 1px solid #d3e5dd;
  background: #edf7f2;
  border-radius: 999px;
  padding: 0.36rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 170ms ease, transform 170ms ease;
}

.chip-list a:hover,
.chip-list a:focus-visible {
  background: #e3f3ec;
  transform: translateY(-1px);
  outline: none;
}

.notice-box {
  margin: 0;
  padding: 0.82rem 0.92rem;
  border-radius: var(--radius-sm);
  border: 1px solid #f0ddc5;
  background: var(--warn-bg);
  color: #7b5028;
  font-size: 0.89rem;
  font-weight: 600;
}

.section-card {
  padding: 1.38rem;
  margin-top: 1.2rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: 1.4rem;
}

.section-head a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.92rem;
}

.article-grid.is-loading {
  opacity: 0.6;
}

.blog-page .content-grid .article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card {
  border: 1px solid #dae6de;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0, #fbfdfc 100%);
  padding: 0.96rem;
  display: grid;
  gap: 0.58rem;
  align-content: start;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: #c8ddd2;
  box-shadow: 0 14px 30px rgba(20, 95, 76, 0.1);
}

.article-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e7f2ec;
  border: 1px solid #d4e5dc;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.05);
}

.tag {
  width: max-content;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand);
  background: #e7f4ee;
  border: 1px solid #d0e5db;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.article-card h3 {
  font-size: 1.02rem;
}

.article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.article-card h3 a:hover,
.article-card h3 a:focus-visible {
  color: var(--brand);
  outline: none;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.read-link {
  width: max-content;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.feed-controls {
  margin-top: 1rem;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.load-more-btn {
  cursor: pointer;
}

.load-more-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.feed-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-feed-note {
  margin: 0;
  padding: 1rem;
  border: 1px solid #d6e3dc;
  border-radius: var(--radius-sm);
  background: #f8fcfa;
  color: var(--muted);
  grid-column: 1 / -1;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.list-card {
  display: grid;
  gap: 0.55rem;
}

.simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.simple-list a {
  display: block;
  text-decoration: none;
  font-weight: 700;
  color: var(--brand);
  background: #f8fcfa;
  border: 1px solid #d8e4dc;
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.7rem;
  transition: transform 170ms ease, background-color 170ms ease;
}

.simple-list a:hover,
.simple-list a:focus-visible {
  background: #ecf7f1;
  transform: translateX(2px);
  outline: none;
}

.inline-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 2.5vw, 2.7rem);
}

.page-hero p {
  margin: 0.8rem 0 0;
  max-width: 65ch;
  color: var(--muted);
}

.legal-shell {
  display: grid;
  gap: 1rem;
}

.legal-content {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
  padding: 1.4rem;
}

.legal-content h2 {
  margin-top: 1.05rem;
  font-size: 1.22rem;
}

.legal-content p,
.legal-content li {
  color: #27453d;
}

.legal-content ul {
  margin-top: 0.45rem;
}

.updated {
  margin: 0;
  color: #5e786f;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.contact-card {
  border: 1px solid #d7e3dc;
  border-radius: var(--radius-md);
  background: #fbfdfc;
  padding: 1rem;
}

.contact-card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.45rem;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-card a {
  font-weight: 700;
}

.status-ok {
  margin-top: 1rem;
  background: var(--ok-bg);
  border: 1px solid #d5e8dd;
  border-radius: var(--radius-sm);
  color: #215142;
  padding: 0.78rem 0.86rem;
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid #dce7df;
  margin-top: 1.6rem;
  padding: 1.2rem 0 1.8rem;
}

.footer-inner {
  display: grid;
  gap: 0.5rem;
}

.footer-text {
  margin: 0;
  color: #5d746b;
  font-size: 0.89rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.fade-up {
  animation: rise 640ms ease both;
}

.fade-up.delay-1 { animation-delay: 110ms; }
.fade-up.delay-2 { animation-delay: 210ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-page .content-grid .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-side,
  .section-card,
  .legal-content {
    padding: 1.15rem;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1140px, 100% - 1.1rem);
  }

  .header-inner {
    justify-content: flex-start;
    text-align: left;
    gap: 0.55rem;
    padding: 0.68rem 0 0.48rem;
  }

  .brand {
    justify-content: flex-start;
    width: 100%;
    gap: 0.62rem;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-text strong {
    font-size: 0.86rem;
    letter-spacing: 0.06em;
  }

  .brand-text span {
    font-size: 0.71rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 0.34rem 0.58rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .metric-list {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-text span {
    display: none;
  }

  .brand-text strong {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
