:root {
  color-scheme: light;
  --canvas: #f7f2ea;
  --canvas-end: #ebe1d4;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 253, 249, 0.94);
  --ink: #1d241f;
  --ink-soft: #59655d;
  --muted: #879188;
  --line: rgba(35, 52, 45, 0.13);
  --primary: #526c5f;
  --primary-dark: #23342d;
  --primary-soft: #dfe9e2;
  --warm: #b9835b;
  --warm-soft: #ead4bd;
  --charcoal: #111713;
  --shadow: 0 1px 3px rgba(35, 52, 45, 0.05), 0 16px 44px rgba(35, 52, 45, 0.08);
  --shadow-strong: 0 24px 72px rgba(35, 52, 45, 0.14), 0 8px 22px rgba(35, 52, 45, 0.07);
  --font-sans: "Noto Sans TC", "Manrope", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111713;
  --canvas-end: #1f2923;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --ink: #f5efe7;
  --ink-soft: #c9d2c9;
  --muted: #8d9b90;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #a9c2b2;
  --primary-dark: #eef5ef;
  --primary-soft: rgba(169, 194, 178, 0.14);
  --warm: #d4a277;
  --warm-soft: rgba(212, 162, 119, 0.18);
  --charcoal: #0b0f0c;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.82;
  background:
    linear-gradient(135deg, rgba(82, 108, 95, 0.08), transparent 36%),
    linear-gradient(180deg, var(--canvas) 0%, #fbf8f2 44%, var(--canvas-end) 100%);
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(82, 108, 95, 0.2);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.08);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.desktop-nav a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
  transition: color 180ms ease-out, background 180ms ease-out;
}

.desktop-nav a:hover {
  color: var(--primary-dark);
  background: rgba(82, 108, 95, 0.1);
}

.header-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-self: end;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 14px 36px rgba(35, 52, 45, 0.18);
  font-weight: 800;
  line-height: 1.2;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.menu-button span::before {
  transform: translateY(-6px);
}

.menu-button span::after {
  transform: translateY(4px);
}

.mobile-nav {
  position: fixed;
  inset: 92px 16px auto;
  z-index: 29;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-strong);
}

.mobile-nav a {
  display: block;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-weight: 800;
}

body.is-menu-open .mobile-nav {
  display: grid;
}

.hero,
.brief-section,
.services-section,
.projects-section,
.method-section,
.materials-section,
.proof-section,
.faq-section,
.contact-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 58px;
  align-items: center;
  padding: 104px 0 58px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.kicker::before {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.section-heading h2,
.brief-section h2,
.method-copy h2,
.materials-copy h2,
.proof-section h2,
.contact-copy h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 11em;
  margin: 18px 0 22px;
  font-size: clamp(2.12rem, 4vw, 3.65rem);
  line-height: 1.2;
  text-wrap: balance;
}

.hero-copy > p:not(.kicker),
.section-heading p,
.method-copy p,
.materials-copy p,
.contact-copy p,
.brief-grid p,
.service-grid p,
.timeline p,
.faq-list p,
.proof-grid p {
  color: var(--ink-soft);
  line-height: 1.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.button-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 14px 42px rgba(35, 52, 45, 0.24);
}

.button-secondary {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.68);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 23, 19, 0), rgba(17, 23, 19, 0.48));
  content: "";
}

.hero-visual figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 20px;
  color: #fff;
  background: rgba(17, 23, 19, 0.68);
  backdrop-filter: blur(18px);
}

.hero-visual figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-visual figcaption strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.brief-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1.28fr);
  gap: 42px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.brief-section h2 {
  margin: 16px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.3;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.brief-grid article,
.service-grid article,
.project-card,
.timeline article,
.proof-grid article,
.faq-list details,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out;
}

.brief-grid article:hover,
.service-grid article:hover,
.project-card:hover,
.timeline article:hover,
.proof-grid article:hover,
.faq-list details:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 108, 95, 0.28);
  box-shadow: var(--shadow-strong);
}

.brief-grid article {
  padding: 22px;
}

.brief-grid span,
.timeline span {
  color: var(--warm);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
}

.brief-grid h3,
.service-grid h3,
.project-card h3,
.timeline h3 {
  margin: 16px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.38;
}

.services-section,
.projects-section,
.method-section,
.materials-section,
.faq-section,
.contact-section {
  padding: 96px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.method-copy h2,
.materials-copy h2,
.proof-section h2,
.contact-copy h2 {
  margin: 16px 0 18px;
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  line-height: 1.3;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 26px;
}

.service-grid small {
  color: var(--warm);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-grid ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.service-grid li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--ink-soft);
  font-weight: 700;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active {
  color: #fff;
  background: var(--primary-dark);
}

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

.project-card {
  overflow: hidden;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
}

.project-card-content {
  padding: 24px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.project-meta span {
  border: 1px solid rgba(185, 131, 91, 0.26);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--primary);
  background: rgba(234, 212, 189, 0.34);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card p {
  color: var(--ink-soft);
}

.method-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1.28fr);
  gap: 52px;
  align-items: start;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline article {
  min-height: 220px;
  padding: 24px;
}

.materials-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(460px, 1.06fr);
  gap: 54px;
  align-items: center;
}

.materials-section figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}

.materials-section img {
  display: block;
  width: 100%;
  min-height: 600px;
  object-fit: cover;
}

.material-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.material-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 800;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: 42px;
  border: 1px solid rgba(82, 108, 95, 0.16);
  border-radius: 8px;
  padding: 48px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(234, 212, 189, 0.38), transparent 18rem),
    linear-gradient(135deg, rgba(255, 253, 249, 0.95), rgba(241, 234, 223, 0.92));
  box-shadow: var(--shadow);
}

.proof-section .kicker,
.proof-section p {
  color: var(--ink-soft);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.proof-grid article {
  border-color: rgba(82, 108, 95, 0.16);
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 34px rgba(35, 52, 45, 0.07);
}

.proof-grid strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.4;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(520px, 1.3fr);
  gap: 54px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.55;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  content: "+";
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  gap: 54px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--surface-strong);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

textarea {
  resize: vertical;
}

.form-result {
  min-height: 28px;
  margin: 0;
  color: var(--primary);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 1080px) {
  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .brief-section,
  .method-section,
  .materials-section,
  .proof-section,
  .faq-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .brief-grid,
  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .hero {
    padding-top: 84px;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

  .filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 10px;
    width: min(100% - 24px, 1180px);
    min-height: 62px;
    padding: 8px 8px 8px 12px;
  }

  .brand span {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    max-width: 126px;
  }

  .hero,
  .brief-section,
  .services-section,
  .projects-section,
  .method-section,
  .materials-section,
  .proof-section,
  .faq-section,
  .contact-section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    gap: 30px;
    padding: 64px 0 42px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.82rem, 7vw, 2.35rem);
    line-height: 1.28;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 370px;
  }

  .hero-visual figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 16px;
  }

  .brief-section,
  .proof-section {
    padding: 22px;
  }

  .brief-grid,
  .service-grid,
  .project-grid,
  .timeline,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .services-section,
  .projects-section,
  .method-section,
  .materials-section,
  .faq-section,
  .contact-section {
    padding: 66px 0;
  }

  .materials-section img {
    min-height: 360px;
  }

  .section-heading h2,
  .brief-section h2,
  .method-copy h2,
  .materials-copy h2,
  .proof-section h2,
  .contact-copy h2 {
    font-size: clamp(1.62rem, 6.4vw, 2.2rem);
  }
}

@media (max-width: 390px) {
  .site-header {
    padding-left: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    max-width: 96px;
  }
}

/* 2026-06-10：作品集展示用 RWD 修正層。 */
.hero,
.brief-section,
.method-section,
.materials-section,
.proof-section,
.faq-section,
.contact-section,
.brief-grid,
.service-grid,
.project-grid,
.timeline,
.proof-grid {
  min-width: 0;
}

h1,
h2,
h3,
p,
a,
button,
summary,
input,
select,
textarea {
  overflow-wrap: anywhere;
}

.hero h1,
.section-heading h2,
.brief-section h2,
.method-copy h2,
.materials-copy h2,
.proof-section h2,
.contact-copy h2 {
  line-height: 1.32;
}

@media (min-width: 1081px) {
  .hero,
  .materials-section {
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  }

  .brief-section,
  .method-section,
  .proof-section,
  .faq-section {
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
  }

  .contact-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-visual,
  .hero-visual img,
  .materials-section img {
    min-height: 300px;
  }
}
