:root {
  --bg: #f7f6f1;
  --bg-accent: #edf4f1;
  --panel: #ffffff;
  --panel-soft: #f1f6f4;
  --text: #1f2a2e;
  --muted: #5d6b6f;
  --primary: #2f6f6a;
  --primary-deep: #22514d;
  --secondary: #7fa39b;
  --accent: #c78a3b;
  --border: #d4ddd9;
  --shadow: 0 18px 40px rgba(30, 52, 50, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(127, 163, 155, 0.18), transparent 26rem),
    linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 18rem, var(--bg) 100%);
  font-family: "BIZ UDPGothic", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

a {
  color: var(--primary-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 221, 217, 0.9);
}

.brand,
.nav-inner,
.container,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.brand {
  padding: 1.2rem 0 0.75rem;
}

.brand-link {
  display: inline-block;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-link:hover {
  text-decoration: none;
}

.brand-copy {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.main-nav {
  border-top: 1px solid rgba(212, 221, 217, 0.8);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.75rem 0 1rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-deep);
  font-weight: 700;
}

.nav-link:hover {
  text-decoration: none;
  border-color: var(--secondary);
}

.nav-link.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.container {
  padding: 1.6rem 0 4rem;
}

.hero,
.page-lead,
.service-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(237, 244, 241, 0.9));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 111, 106, 0.12);
  color: var(--primary-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h2,
.page-lead h1,
.service-hero h1 {
  margin: 0;
  line-height: 1.4;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.hero p,
.page-lead p,
.service-hero p {
  margin: 0;
  color: var(--muted);
}

.hero-actions,
.quick-grid,
.service-grid,
.point-grid,
.choice-grid {
  display: grid;
  gap: 1rem;
}

.hero-actions,
.quick-grid,
.point-grid,
.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.link-card,
.service-card,
.note-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.card,
.service-card,
.note-box {
  padding: 1.2rem;
}

.link-card {
  display: block;
  padding: 1.1rem 1.15rem;
}

.link-card:hover,
.service-card:hover {
  text-decoration: none;
  border-color: var(--secondary);
  transform: translateY(-1px);
}

.link-card strong,
.service-card h3 {
  color: var(--text);
}

.section {
  margin-top: 1.6rem;
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(127, 163, 155, 0.15);
  color: var(--primary-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.badge.accent {
  background: rgba(199, 138, 59, 0.15);
  color: #7c5319;
}

.service-card p,
.card p,
.link-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.service-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.service-card .card-footer {
  margin-top: 0.9rem;
  color: var(--primary-deep);
  font-weight: 700;
}

.prose {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(212, 221, 217, 0.72);
  border-radius: 28px;
  padding: clamp(1.2rem, 3.5vw, 2.1rem);
}

.prose h1,
.prose h2,
.prose h3 {
  line-height: 1.45;
  margin-top: 1.6rem;
  margin-bottom: 0.75rem;
}

.prose h1 {
  margin-top: 0;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.prose h2 {
  font-size: 1.35rem;
}

.prose h3 {
  font-size: 1.1rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose strong {
  color: var(--primary-deep);
}

.prose code {
  padding: 0.15rem 0.4rem;
  border-radius: 0.4rem;
  background: rgba(47, 111, 106, 0.1);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.92em;
}

.page-split {
  display: grid;
  gap: 1.5rem;
}

.page-split aside,
.service-sidebar {
  align-self: start;
}

.service-sidebar {
  display: grid;
  gap: 1rem;
}

.service-hero {
  margin-bottom: 1.5rem;
}

.service-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.service-hero .meta span {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(47, 111, 106, 0.12);
  color: var(--primary-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.service-visual {
  margin: 0 0 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(212, 221, 217, 0.9);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-visual img,
.service-visual-placeholder {
  display: block;
  width: 100%;
}

.service-visual img {
  height: auto;
  background: linear-gradient(135deg, rgba(237, 244, 241, 0.85), rgba(255, 255, 255, 0.9));
}

.service-visual figcaption {
  padding: 0.9rem 1.1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-visual-placeholder {
  min-height: 18rem;
  padding: 1.6rem;
  background:
    linear-gradient(135deg, rgba(237, 244, 241, 0.92), rgba(255, 255, 255, 0.94)),
    repeating-linear-gradient(
      -45deg,
      rgba(127, 163, 155, 0.08),
      rgba(127, 163, 155, 0.08) 18px,
      rgba(255, 255, 255, 0.18) 18px,
      rgba(255, 255, 255, 0.18) 36px
    );
  color: var(--primary-deep);
  text-align: center;
  align-content: center;
}

.service-visual-placeholder strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.service-visual-placeholder p {
  margin: 0;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.92rem;
}

.note-box--compact {
  padding: 0.74rem;
  background: rgba(255, 255, 255, 0.82);
}

.note-box__lead {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.mini-product-list {
  display: grid;
  gap: 0.45rem;
}

.mini-product-card {
  display: block;
  padding: 0.34rem 0.4rem;
  border: 1px solid rgba(212, 221, 217, 0.9);
  border-radius: 12px;
  background: rgba(241, 246, 244, 0.7);
  color: var(--text);
}

.mini-product-card:hover {
  text-decoration: none;
  border-color: rgba(127, 163, 155, 0.7);
  background: rgba(241, 246, 244, 0.92);
}

.mini-product-card__body {
  min-width: 0;
}

.mini-product-card__title,
.mini-product-card__meta {
  margin: 0;
}

.mini-product-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-product-card__meta {
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.mini-product-card__meta span {
  margin-left: 0.28rem;
}

.muted-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (min-width: 860px) {
  .page-split {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 720px) {
  .brand,
  .nav-inner,
  .container,
  .site-footer {
    width: min(100% - 1.2rem, 1120px);
  }

  .site-header {
    position: static !important;
    top: auto !important;
    z-index: auto;
    backdrop-filter: none;
  }

  .brand {
    padding: 0.55rem 0 0.2rem;
  }

  .brand-link {
    font-size: 1.02rem;
    line-height: 1.3;
  }

  .brand-copy {
    display: none;
  }

  .nav-inner {
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.25rem 0 0.45rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-link {
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0.32rem 0.68rem;
    font-size: 0.84rem;
  }

  .nav-inner::-webkit-scrollbar {
    display: none;
  }

  .container {
    padding-top: 0.75rem;
  }

}
