:root {
  --font-sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Segoe UI", Arial, sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", "Microsoft JhengHei", serif;
  --color-ink: #21170f;
  --color-text: #362a20;
  --color-muted: #6b5c4d;
  --color-primary: #6b4527;
  --color-primary-dark: #3c2418;
  --color-primary-soft: #a88a6c;
  --color-highlight: #a0672f;
  --color-highlight-dark: #7a4a22;
  --color-highlight-soft: #f1ded0;
  --color-accent-soft: #c9b49c;
  --color-line: #d9cfc0;
  --color-line-header: #ded2c2;
  --color-line-soft: #e3d8ca;
  --color-paper: #fffdf9;
  --color-bg-soft: #f7f2ec;
  --color-bg-tint: #f1e8dc;
  --shadow-soft: 0 12px 28px rgba(33, 23, 15, 0.07);
  --shadow-medium: 0 18px 38px rgba(33, 23, 15, 0.1);
  --shadow-button: 0 10px 20px rgba(33, 23, 15, 0.1);
  --shadow-highlight: 0 12px 22px rgba(60, 36, 24, 0.18);
  --radius-control: 2px;
  --space-page-x: 40px;
  --width-page: 1160px;
  --duration-fast: 160ms;
  --ease-standard: ease;
  color: var(--color-text);
  background: var(--color-paper);
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--color-primary-dark);
  border-bottom: 1px solid rgba(217, 207, 192, 0.86);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 8px 22px rgba(33, 23, 15, 0.05);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--duration-fast) var(--ease-standard);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-medium);
}

@media (min-width: 761px) {
  .site-header--transparent {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    border-top-color: transparent;
    border-bottom-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition:
      background-color var(--duration-fast) var(--ease-standard),
      border-color var(--duration-fast) var(--ease-standard),
      box-shadow var(--duration-fast) var(--ease-standard);
  }

  .site-header--transparent::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 140px;
    background: linear-gradient(rgba(255, 253, 249, 0.55), rgba(255, 253, 249, 0));
    content: "";
    opacity: 1;
    pointer-events: none;
    transition: opacity var(--duration-fast) var(--ease-standard);
    z-index: -1;
  }

  .site-header--transparent .brand {
    visibility: hidden;
  }

  .site-header--transparent.is-scrolled {
    border-top-color: var(--color-primary-dark);
    border-bottom-color: rgba(217, 207, 192, 0.86);
    background: rgba(255, 253, 249, 0.94);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(12px);
  }

  .site-header--transparent.is-scrolled::before {
    opacity: 0;
  }

  .site-header--transparent.is-scrolled .brand {
    visibility: visible;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px clamp(18px, 5vw, 52px);
  transition: color 160ms ease;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
}

.site-nav-heading {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding-right: clamp(18px, 5vw, 52px);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  padding: 0 15px;
  color: #4a4038;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition:
    color var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.site-nav a::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  background: var(--color-primary-soft);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: #4a2f18;
  outline: none;
}

.site-nav a.active::after {
  background: var(--color-primary);
  transform: scaleX(1);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

main {
  min-height: calc(100vh - 126px);
}

.home-hero,
.home-about,
.service-guide,
.page-title,
.content-layout,
.media-section,
.contact-layout,
.map-section {
  animation: section-enter 520ms ease both;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.certificate-grid figure:nth-child(1)[data-reveal],
.product-list article:nth-child(1)[data-reveal],
.home-facts > div:nth-child(1)[data-reveal],
.service-entry:nth-child(1)[data-reveal] {
  transition-delay: 0ms;
}

.certificate-grid figure:nth-child(2)[data-reveal],
.product-list article:nth-child(2)[data-reveal],
.home-facts > div:nth-child(2)[data-reveal],
.service-entry:nth-child(2)[data-reveal] {
  transition-delay: 70ms;
}

.certificate-grid figure:nth-child(3)[data-reveal],
.product-list article:nth-child(3)[data-reveal],
.home-facts > div:nth-child(3)[data-reveal],
.service-entry:nth-child(3)[data-reveal] {
  transition-delay: 140ms;
}

.certificate-grid figure:nth-child(4)[data-reveal],
.home-facts > div:nth-child(4)[data-reveal],
.product-list article:nth-child(4)[data-reveal] {
  transition-delay: 210ms;
}

.certificate-grid figure:nth-child(5)[data-reveal],
.product-list article:nth-child(5)[data-reveal] {
  transition-delay: 280ms;
}

.certificate-grid figure:nth-child(6)[data-reveal],
.product-list article:nth-child(6)[data-reveal] {
  transition-delay: 350ms;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.content-layout,
.media-section,
.contact-layout,
.map-section {
  animation-delay: 80ms;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-hero {
  width: 100%;
  margin: 0 0 48px;
  overflow: hidden;
  background: transparent;
}

.home-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.home-hero-heading {
  display: none;
}

.accent-text {
  color: var(--color-highlight-dark);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: min(var(--width-page), calc(100% - var(--space-page-x)));
  margin: 0 auto 84px;
}

.home-about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(56px, 8vw, 108px);
  width: min(var(--width-page), calc(100% - var(--space-page-x)));
  margin: 0 auto 112px;
  padding: clamp(64px, 7vw, 88px) 0;
  isolation: isolate;
}

.home-about::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: var(--color-bg-soft);
  content: "";
  transform: translateX(-50%);
}

.home-about-copy h2,
.service-guide-intro h2 {
  margin: 0;
  color: var(--color-primary-dark);
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 700;
  line-height: 1.35;
}

.home-about-copy > p:not(.section-label),
.service-guide-intro > p:not(.section-label) {
  max-width: 39rem;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 2;
}

.home-about-copy .line-link,
.service-guide-intro .solid-link {
  margin-top: 30px;
}

.home-facts {
  align-self: center;
  margin: 0;
  border-top: 1px solid var(--color-line);
}

.home-facts > div {
  display: grid;
  grid-template-columns: minmax(104px, 0.55fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 28px;
  border-bottom: 1px solid var(--color-line);
  padding: 24px 0;
}

.home-facts dt {
  color: var(--color-primary-dark);
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1;
}

.home-facts dt span {
  margin: 0 3px;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
}

.home-facts dd {
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.home-facts dd small {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.service-guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(52px, 7vw, 92px);
  width: min(var(--width-page), calc(100% - var(--space-page-x)));
  margin: 0 auto 120px;
}

.service-guide-intro {
  align-self: start;
}

.service-guide-list {
  border-top: 1px solid var(--color-line);
}

.service-entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(120px, 156px) 22px;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  border-bottom: 1px solid var(--color-line);
  padding: 22px 0;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.service-entry-index {
  align-self: start;
  padding-top: 3px;
  color: var(--color-highlight-dark);
  font-size: 12px;
  font-weight: 800;
}

.service-entry-copy {
  min-width: 0;
}

.service-entry-copy strong,
.service-entry-copy small {
  display: block;
}

.service-entry-copy strong {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
}

.service-entry-copy small {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.65;
}

.service-entry-media {
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line-soft);
  background: var(--color-bg-tint);
  overflow: hidden;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.service-entry-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-entry-arrow {
  color: var(--color-primary);
  font-size: 20px;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.service-entry:hover,
.service-entry:focus-visible {
  border-color: var(--color-accent-soft);
  outline: none;
}

.service-entry:hover .service-entry-media,
.service-entry:focus-visible .service-entry-media {
  border-color: var(--color-accent-soft);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.service-entry:hover .service-entry-arrow,
.service-entry:focus-visible .service-entry-arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 1024px) {
  .home-about {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.82fr);
    gap: 48px;
  }

  .service-guide {
    grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
    gap: 44px;
  }

  .service-entry {
    grid-template-columns: 30px minmax(0, 1fr) 116px 20px;
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .home-about,
  .service-guide {
    grid-template-columns: 1fr;
  }

  .home-about {
    gap: 42px;
  }

  .home-about-copy {
    max-width: 43rem;
  }

  .service-guide {
    gap: 38px;
  }

  .service-guide-intro {
    max-width: 42rem;
  }
}

@media (max-width: 760px) {
  .home-about {
    gap: 34px;
    margin-bottom: 76px;
    padding: 52px 0;
  }

  .home-about-copy h2,
  .service-guide-intro h2 {
    font-size: clamp(27px, 8vw, 35px);
  }

  .home-about-copy > p:not(.section-label),
  .service-guide-intro > p:not(.section-label) {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.85;
  }

  .home-about-copy .line-link,
  .service-guide-intro .solid-link {
    margin-top: 24px;
  }

  .home-facts > div {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
  }

  .service-guide {
    margin-bottom: 84px;
  }

  .service-entry {
    grid-template-columns: 30px minmax(0, 1fr) minmax(98px, 128px) 18px;
    padding: 18px 0;
  }
}

.image-box {
  position: relative;
  display: grid;
  min-height: inherit;
  place-items: center;
  padding: 18px;
  color: #7a6a58;
  background:
    linear-gradient(rgba(255, 253, 249, 0.72), rgba(255, 253, 249, 0.72)),
    repeating-linear-gradient(135deg, rgba(90, 58, 31, 0.05) 0 1px, transparent 1px 14px),
    #f4efe7;
  text-align: center;
  overflow: hidden;
}

.image-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms var(--ease-standard);
}

.section-label {
  margin: 0 0 12px;
  color: var(--color-highlight-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dd,
a,
figcaption,
figure {
  margin-top: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  margin-bottom: 18px;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  color: #2a1f16;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.45vw, 29px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 8px;
  color: #302519;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.text-content p,
.social-area p {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.85;
}

.text-content strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.solid-link,
.line-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: var(--radius-control);
  padding: 0 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.solid-link {
  border-color: var(--color-primary-dark);
  color: #fff;
  background: var(--color-primary-dark);
}

.line-link {
  border-color: var(--color-line);
  color: var(--color-primary-dark);
  background: transparent;
}

.solid-link:hover,
.solid-link:focus-visible {
  border-color: var(--color-ink);
  color: #fff;
  background: var(--color-ink);
  box-shadow: var(--shadow-highlight);
  outline: none;
  transform: translateY(-1px);
}

.line-link:hover,
.line-link:focus-visible {
  border-color: var(--color-accent-soft);
  color: var(--color-primary-dark);
  background: #f8f3ec;
  box-shadow: var(--shadow-soft);
  outline: none;
  transform: translateY(-1px);
}

.page-main {
  width: min(var(--width-page), calc(100% - var(--space-page-x)));
  max-width: 100%;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.page-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 20px;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.05;
}

.page-title-meta {
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.section-heading {
  display: block;
  border-top: 1px solid var(--color-line);
  padding-top: 28px;
  margin-bottom: 24px;
}

.media-section .section-heading,
.map-section .section-heading {
  border-top: 0;
  padding-top: 0;
}

.media-section .section-heading {
  padding-left: 18px;
  border-left: 3px solid var(--color-highlight);
}

.section-heading > *,
.content-layout > *,
.contact-layout > *,
.product-list article > *,
.certificate-grid > *,
.footer-main > * {
  min-width: 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  margin-bottom: 80px;
}

.side-title {
  border-left: 3px solid var(--color-primary);
  padding: 4px 0 4px 18px;
}

.side-title h2 {
  font-size: clamp(19px, 1.7vw, 24px);
  overflow-wrap: break-word;
}

.section-heading h2,
.page-title h1 {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.text-content {
  max-width: 760px;
}

.text-content p:last-child {
  margin-bottom: 0;
}

.media-section {
  min-width: 0;
  margin-top: 8px;
  border-top: 1px solid rgba(217, 207, 192, 0.72);
  background:
    linear-gradient(rgba(255, 253, 249, 0.58), rgba(255, 253, 249, 0.58)),
    var(--color-bg-soft);
  padding: 28px clamp(18px, 3vw, 32px) 34px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

.certificate-grid figure {
  margin: 0;
  border: 0;
  background: var(--color-paper);
}

.image-box {
  width: 100%;
  min-height: 168px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line-soft);
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.certificate-grid .image-box {
  min-height: 220px;
  aspect-ratio: 3 / 4;
  padding: 14px;
  background: var(--color-paper);
}

.certificate-grid .image-box::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 3px;
  background: var(--color-highlight);
  content: "";
}

.certificate-grid .image-box img {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 380ms var(--ease-standard);
}

.certificate-grid .image-box {
  cursor: zoom-in;
}

.certificate-grid .image-box::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 12px;
  background: rgba(60, 36, 24, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  content: "放大檢視";
  transition: opacity var(--duration-fast) var(--ease-standard);
}

.certificate-grid .image-box:hover::after,
.certificate-grid .image-box:focus-visible::after {
  opacity: 1;
}

.certificate-grid figure:hover .image-box img,
.certificate-grid figure:focus-within .image-box img {
  transform: scale(1.045);
}

.certificate-grid figure.is-wide {
  grid-column: span 2;
}

.certificate-grid figure.is-wide .image-box {
  aspect-ratio: 4 / 3;
}

.certificate-grid figure.is-solo {
  grid-column: 2;
}

@media (max-width: 1024px) {
  .certificate-grid figure.is-wide {
    grid-column: span 1;
  }

  .certificate-grid figure.is-solo {
    grid-column: auto;
  }
}

figcaption {
  min-height: auto;
  border-top: 0;
  padding: 10px 0 0;
  color: #362a1f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  border-top: 0;
}

.product-list article {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-line-soft);
  background: var(--color-paper);
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.product-list article[id] {
  scroll-margin-top: 100px;
}

.product-list .image-box {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--color-line-soft);
  background: var(--color-bg-tint);
}

.product-list .image-box img {
  object-fit: contain;
}

.product-list article > div:last-child {
  display: flex;
  min-width: 0;
  min-height: auto;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px 18px 20px;
}

.product-subtitle {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.product-list a {
  color: #8a5a2a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color var(--duration-fast) var(--ease-standard);
}

.certificate-grid figure:hover .image-box,
.certificate-grid figure:focus-within .image-box {
  border-color: var(--color-accent-soft);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.product-list article:hover,
.product-list article:focus-within {
  border-color: rgba(201, 180, 156, 0.92);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.product-list a:hover,
.product-list a:focus-visible {
  color: #4a2f18;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 56px);
  background: rgba(33, 23, 15, 0.88);
  animation: lightbox-enter 180ms ease both;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(920px, 100%);
  max-height: 88vh;
  width: auto;
  height: auto;
  box-shadow: var(--shadow-medium);
}

.lightbox-close {
  position: absolute;
  top: clamp(14px, 3vw, 24px);
  right: clamp(14px, 3vw, 24px);
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 253, 249, 0.4);
  border-radius: 999px;
  color: var(--color-paper);
  font-size: 20px;
  line-height: 1;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(255, 253, 249, 0.8);
  background: rgba(255, 253, 249, 0.12);
  outline: none;
}

@keyframes lightbox-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    animation: none;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  margin-bottom: 64px;
}

.contact-table {
  border-top: 1px solid var(--color-line);
}

dl {
  margin: 0;
}

.contact-table div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--color-line);
  padding: 18px 0;
}

dt {
  color: var(--color-muted);
  font-weight: 700;
}

dd {
  margin: 0;
  color: #302519;
  font-weight: 800;
}

.contact-table dd a {
  color: inherit;
  text-decoration-color: var(--color-accent-soft);
  text-underline-offset: 4px;
  transition: color var(--duration-fast) var(--ease-standard);
}

.contact-table dd a:hover,
.contact-table dd a:focus-visible {
  color: var(--color-primary);
}

.bank-details,
.hours-details {
  display: grid;
  gap: 6px;
}

.social-area {
  border-left: 2px solid var(--color-primary);
  padding-left: 22px;
}

.social-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--color-line);
  background: rgba(255, 253, 249, 0.72);
  padding: 14px;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--color-accent-soft);
  color: var(--color-primary-dark);
  background: #f8f3ec;
  box-shadow: var(--shadow-soft);
  outline: none;
  transform: translateY(-1px);
}

.social-icon {
  flex: 0 0 auto;
  object-fit: contain;
}

.social-links .social-icon {
  width: 46px;
  height: 46px;
}

.social-links span {
  display: grid;
  gap: 2px;
}

.social-links small {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.social-icon-facebook {
  width: 46px;
  height: 46px;
  margin: -2px;
}

.map-section {
  margin-top: 10px;
  border-top: 1px solid rgba(217, 207, 192, 0.72);
  background:
    linear-gradient(rgba(255, 253, 249, 0.5), rgba(255, 253, 249, 0.5)),
    var(--color-bg-tint);
  padding: 28px clamp(18px, 3vw, 32px) 34px;
}

.map-placeholder,
.map-embed {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: clamp(240px, 34vw, 380px);
  border: 1px solid var(--color-line);
}

.map-placeholder {
  place-items: center;
  background:
    linear-gradient(rgba(255, 253, 249, 0.86), rgba(255, 253, 249, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(90, 58, 31, 0.08) 35px 36px),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(90, 58, 31, 0.08) 35px 36px),
    var(--color-bg-tint);
  color: var(--color-muted);
  text-align: center;
}

.map-embed {
  aspect-ratio: 16 / 6.5;
  min-height: 360px;
  overflow: hidden;
  background: var(--color-bg-tint);
  contain: inline-size;
}

.map-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

html.lenis.lenis-smooth .map-embed iframe {
  pointer-events: auto;
}

.map-placeholder > div {
  width: min(420px, calc(100% - 40px));
}

.map-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-ink);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
}

.map-placeholder p {
  margin: 0;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--color-line-header);
  color: #524335;
  background: var(--color-bg-soft);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(320px, 1.2fr) minmax(220px, 0.85fr);
  gap: clamp(34px, 4.5vw, 58px);
  width: min(var(--width-page), calc(100% - var(--space-page-x)));
  margin: 0 auto;
  padding: 42px 0 32px;
}

.footer-brand {
  display: inline-block;
}

.footer-brand img {
  width: auto;
  height: 42px;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.footer-brand:hover img,
.footer-brand:focus-visible img {
  transform: translateY(-1px);
}

.footer-brand-block > p {
  max-width: 18rem;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: var(--color-primary-dark);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.footer-contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.footer-contact-list > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.footer-contact-list dt {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-contact-list dd {
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-contact-list a {
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-contact-list a:hover,
.footer-contact-list a:focus-visible {
  color: var(--color-highlight-dark);
  outline: none;
}

.footer-address-tail {
  white-space: nowrap;
}

.footer-hours {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.65;
}

.footer-bottom {
  border-top: 1px solid var(--color-line-header);
}

.footer-bottom p {
  width: min(var(--width-page), calc(100% - var(--space-page-x)));
  margin: 0 auto;
  padding: 13px 0 15px;
  color: var(--color-muted);
  font-size: 12px;
}

.noscript-header,
.noscript-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--color-line-header);
  background: var(--color-paper);
  padding: 14px clamp(18px, 5vw, 52px);
  font-size: 14px;
}

.noscript-footer {
  border-top: 1px solid var(--color-line-header);
  border-bottom: 0;
  background: var(--color-bg-soft);
}

.noscript-header nav a,
.noscript-footer a {
  margin-left: 14px;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.noscript-header nav a:first-child,
.noscript-footer a:first-child {
  margin-left: 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3c2e20;
  font-size: 14px;
  font-weight: 800;
  transition:
    color var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: #4a2f18;
  transform: translateY(-1px);
}

.footer-social .social-icon {
  width: 34px;
  height: 34px;
}

.footer-social .social-icon-facebook {
  width: 34px;
  height: 34px;
  margin: -2px;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 42px;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

.top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd0bf;
  color: #4a2f18;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow-medium);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.top-button:hover,
.top-button:focus-visible {
  border-color: #b89a78;
  background: #f8f3ec;
  box-shadow: 0 12px 28px rgba(40, 28, 18, 0.16);
  outline: none;
  transform: translateY(-2px);
}

@keyframes section-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .section-heading,
  .content-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .content-layout {
    gap: 28px;
  }

  .certificate-grid,
  .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 920px) {
  .brand {
    padding: 14px 18px;
  }

  .site-nav {
    padding-right: 18px;
  }

  .site-nav a {
    min-height: 64px;
    padding: 0 9px;
    font-size: 13px;
  }

}

@media (max-width: 760px) {
  body {
    padding-top: 65px;
  }

  main {
    min-height: auto;
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    width: 100%;
    max-width: 100vw;
  }

  .brand {
    display: flex;
    width: auto;
    max-width: calc(100% - 84px);
    min-width: 0;
    min-height: 64px;
    gap: 10px;
    padding: 12px 0 12px 16px;
  }

  .brand-logo {
    height: 36px;
  }

  .menu-button {
    position: absolute;
    top: 14px;
    right: 16px;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    border-bottom: 1px solid currentColor;
    padding: 0 0 3px;
    color: #5a3a1f;
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    z-index: 40;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    width: auto;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    visibility: hidden;
    overflow-y: auto;
    border: 1px solid var(--color-line-header);
    border-radius: var(--radius-control);
    padding: 14px 14px 12px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 16px 30px rgba(33, 23, 15, 0.11);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.99);
    transform-origin: top center;
    transition:
      opacity var(--duration-fast) var(--ease-standard),
      transform var(--duration-fast) var(--ease-standard),
      visibility 0s linear var(--duration-fast);
    z-index: 18;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .site-nav-heading {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 10px;
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 700;
  }

  .site-nav a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: flex-start;
    border-top: 1px solid var(--color-line-header);
    padding: 7px 0;
    font-size: 14px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a.active {
    border-top-color: var(--color-highlight);
  }

  .nav-label {
    min-width: 0;
    transition: color var(--duration-fast) var(--ease-standard);
  }

  .page-main {
    width: min(100% - 24px, 1160px);
    max-width: calc(100vw - 24px);
  }

  .home-hero-heading {
    display: block;
    padding: 26px 20px 4px;
    text-align: center;
  }

  .home-hero-heading .section-label {
    text-align: center;
  }

  .home-hero-heading h1 {
    font-size: clamp(26px, 7vw, 32px);
  }

  .home-hero-tagline {
    display: inline-block;
    max-width: 22rem;
    margin: 16px auto 0;
    border-top: 1px solid var(--color-line);
    padding-top: 12px;
    color: var(--color-muted);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.03em;
  }

  .page-main {
    padding: 34px 0 52px;
  }

  .page-title {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 34px;
    padding-bottom: 16px;
  }

  .page-title h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .page-title-meta {
    margin-bottom: 0;
  }

  .text-content,
  .side-title,
  .contact-table,
  .certificate-grid,
  .product-list {
    border-top: 0;
  }

  .side-title,
  .text-content {
    padding-top: 0;
  }

  .side-title {
    padding-left: 14px;
  }

  .certificate-grid {
    padding-top: 0;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

  .certificate-grid,
  .product-list {
    grid-template-columns: 1fr;
  }

  .product-list {
    gap: 24px;
  }

  .contact-table div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .social-area {
    border-top: 2px solid var(--color-primary);
    border-left: 0;
    padding-top: 20px;
    padding-left: 0;
  }

  .contact-layout {
    margin-bottom: 48px;
  }

  .map-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .social-links a {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-placeholder,
  .map-embed {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    min-height: 260px;
  }

  .map-embed iframe {
    width: 100%;
    max-width: 100%;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.25fr) minmax(132px, 0.75fr);
    gap: 26px 20px;
    padding: 30px 0 24px;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--color-line-header);
    padding-bottom: 22px;
  }

  .footer-social {
    width: 100%;
    gap: 12px;
  }

  .footer-social a {
    min-height: 40px;
  }

  .top-button {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .home-hero-actions {
    gap: 14px;
    margin-bottom: 50px;
  }

  .home-about,
  .service-guide {
    width: min(100% - 28px, var(--width-page));
  }

  .service-entry {
    grid-template-columns: 26px minmax(0, 1fr) 92px 16px;
    gap: 12px;
  }

  .service-entry-copy strong {
    font-size: 18px;
  }

  .service-entry-copy small {
    margin-top: 5px;
    font-size: 12px;
  }

  .page-main {
    padding-top: 28px;
  }

  .page-title {
    margin-bottom: 26px;
  }

  .section-heading {
    gap: 6px;
    margin-bottom: 18px;
  }

  .content-layout {
    gap: 24px;
    margin-bottom: 44px;
  }

  .certificate-grid {
    gap: 24px;
  }

  .image-box {
    min-height: 150px;
  }

  .social-links .social-icon {
    width: 42px;
    height: 42px;
  }

  .social-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .home-facts > div {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
  }

  .home-facts dt {
    font-size: 30px;
  }

  .service-entry {
    grid-template-columns: 26px minmax(0, 1fr) 18px;
  }

  .service-entry-copy {
    grid-column: 2;
  }

  .service-entry-media {
    grid-column: 2 / 4;
    width: min(144px, 100%);
    margin-top: 4px;
  }

  .service-entry-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-brand-block {
    grid-column: auto;
  }
}

@media (max-width: 340px) {
  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-actions .solid-link,
  .home-hero-actions .line-link {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 10px;
    padding-right: 0;
  }

  .menu-button {
    right: 12px;
    padding: 0 0 3px;
  }

  .site-nav {
    right: 8px;
    left: 8px;
    column-gap: 14px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .site-nav a {
    min-height: 48px;
    font-size: 13px;
  }

  .page-main {
    width: min(100% - 18px, 1160px);
  }

  h1 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .brand:hover .brand-logo,
  .brand:focus-visible .brand-logo,
  .footer-brand:hover img,
  .footer-brand:focus-visible img,
  .solid-link:hover,
  .solid-link:focus-visible,
  .line-link:hover,
  .line-link:focus-visible,
  .certificate-grid figure:hover .image-box,
  .certificate-grid figure:focus-within .image-box,
  .product-list article:hover,
  .product-list article:focus-within,
  .service-entry:hover .service-entry-media,
  .service-entry:focus-visible .service-entry-media,
  .service-entry:hover .service-entry-arrow,
  .service-entry:focus-visible .service-entry-arrow,
  .social-links a:hover,
  .social-links a:focus-visible,
  .footer-social a:hover,
  .footer-social a:focus-visible {
    transform: none;
  }

  .top-button.is-visible,
  .top-button:hover,
  .top-button:focus-visible {
    transform: none;
  }
}
