:root {
  --bg: #f7f8f5;
  --paper: #fff;
  --ink: #171914;
  --muted: #697064;
  --line: rgba(23, 25, 20, 0.1);
  --green: #00e95a;
  --green-soft: #e6ffef;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(23, 25, 20, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.topbar,
.page {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  background: rgba(247, 248, 245, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong { font-size: 16px; }
.brand small { color: var(--muted); font-size: 12px; }

.nav {
  display: flex;
  gap: 4px;
}

.nav a,
.top-action,
.button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 750;
}

.nav a,
.top-action,
.button,
.action-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-action,
.button.primary {
  border-color: transparent;
  background: var(--green);
  color: #06120a;
  font-weight: 850;
}

.page { padding: 8px 0 110px; }

.panel,
.notice,
.section,
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 26px;
}

.label {
  margin: 0 0 8px;
  color: #078a39;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.intro h1,
.section h2,
.contact h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.intro h1 {
  max-width: 680px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.intro-copy > p:not(.label),
.section-head > p,
.contact p:not(.label) {
  color: var(--muted);
  line-height: 1.7;
}

.intro-copy > p:not(.label) {
  max-width: 660px;
  margin: 16px 0 0;
  font-size: 16px;
}

.action-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.intro-note {
  padding: 18px;
  border-radius: 16px;
  background: #f2f4ef;
}

.intro-note strong { display: block; margin-bottom: 10px; }
.intro-note ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--green-soft);
}

.notice p { margin: 0; color: #395b44; }
.notice a { color: #087c36; font-weight: 850; }

.section {
  margin-top: 14px;
  padding: 22px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.section h2,
.contact h2 {
  font-size: clamp(26px, 3.5vw, 42px);
}

.section-head > p { margin: 0; }

.service-list {
  display: grid;
  gap: 10px;
}

.service-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcf8;
}

.service-row:hover,
.mini-grid a:hover {
  border-color: rgba(0, 185, 70, 0.25);
  background: var(--green-soft);
}

.service-row span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green);
  font-weight: 900;
}

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

.service-row strong { font-size: 17px; }
.service-row small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.service-row em { color: #087c36; font-style: normal; font-weight: 850; }

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

.mini-grid a {
  min-height: 52px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf8;
  font-weight: 800;
}

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

.operation-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 14px;
}

.operation-flow article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.operation-flow strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.operation-flow ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 14px;
}

.flow-grid div {
  min-height: 118px;
  padding: 16px;
  border-radius: 15px;
  background: #f2f4ef;
}

.flow-grid b { display: block; }
.flow-grid p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 22px;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list a:not(.button),
.contact-list span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf8;
}

.mobile-nav { display: none; }

@media (max-width: 820px) {
  .nav { display: none; }
  .intro,
  .section-head,
  .contact {
    grid-template-columns: 1fr;
  }
  .mini-grid,
  .flow-grid,
  .operation-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 560px) {
  .topbar,
  .page {
    width: min(100% - 22px, 520px);
  }
  .topbar { padding: 10px 0; }
  .brand small { display: none; }
  .top-action { min-height: 40px; padding: 0 12px; }
  .intro,
  .section,
  .contact {
    padding: 16px;
  }
  .intro h1 { font-size: 32px; }
  .notice {
    grid-template-columns: 1fr;
  }
  .service-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .service-row em {
    grid-column: 2;
  }
  .mini-grid,
  .flow-grid,
  .operation-flow {
    grid-template-columns: 1fr;
  }
  .mobile-nav {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 7px;
    border-radius: 20px;
    background: rgba(23, 25, 20, 0.92);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
  }
  .mobile-nav a {
    display: grid;
    place-items: center;
    min-height: 50px;
    border-radius: 14px;
    color: #cbd0c7;
    font-size: 12px;
    font-weight: 850;
  }
  .mobile-nav a:nth-child(2) {
    color: #06120a;
    background: var(--green);
  }
}

/* shadcn/ui inspired practical finish */
:root {
  --bg: #fafafa;
  --paper: #ffffff;
  --ink: #09090b;
  --muted: #71717a;
  --line: #e4e4e7;
  --green: #00e95a;
  --green-soft: #ecfdf3;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(9, 9, 11, 0.06);
}

body {
  background:
    radial-gradient(circle at top right, rgba(0, 233, 90, 0.10), transparent 260px),
    linear-gradient(180deg, #f4f4f5, #fafafa 300px);
}

.topbar,
.page {
  width: min(1120px, calc(100% - 32px));
}

.topbar {
  padding: 12px 0;
}

.mark {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #052e16;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nav a,
.top-action,
.button {
  min-height: 40px;
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav a:hover,
.button:hover {
  background: #f4f4f5;
}

.top-action,
.button.primary {
  border-color: #16a34a;
  color: #052e16;
  background: var(--green);
}

.top-action:hover,
.button.primary:hover {
  background: #00d653;
}

.panel,
.notice,
.section,
.contact {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro {
  grid-template-columns: minmax(0, 1fr) 300px;
  background: linear-gradient(135deg, #fff, #f8fafc);
}

.label {
  color: #16a34a;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.intro h1,
.section h2,
.contact h2 {
  color: var(--ink);
  letter-spacing: -0.045em;
}

.intro-copy > p:not(.label),
.section-head > p,
.contact p:not(.label),
.intro-note li,
.service-row small {
  color: var(--muted);
}

.intro-note {
  border: 1px dashed var(--line);
  background: #f4f4f5;
}

.notice {
  background: #f0fdf4;
}

.notice a {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
}

.service-row,
.mini-grid a,
.flow-grid div,
.contact-list a:not(.button),
.contact-list span {
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.service-row:hover,
.mini-grid a:hover {
  border-color: #a1a1aa;
  background: #fafafa;
}

.service-row span {
  color: #052e16;
  background: #ecfdf3;
}

.service-row em {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  color: #166534;
  background: #f0fdf4;
}

.mini-grid a {
  font-weight: 650;
}

@media (max-width: 560px) {
  .topbar,
  .page {
    width: min(100% - 24px, 640px);
  }

  .topbar {
    align-items: center;
  }

  .intro {
    padding: 18px;
  }

  .intro h1 {
    font-size: 34px;
  }

  .notice {
    align-items: start;
  }

  .service-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .service-row em {
    width: fit-content;
  }

  .mobile-nav {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
  }

  .mobile-nav a {
    color: #52525b;
  }

  .mobile-nav a:nth-child(2) {
    color: #052e16;
    background: #ecfdf3;
  }
}

/* Portfolio archive page */
.archive-page {
  padding-bottom: 110px;
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: end;
  margin-top: 8px;
  padding: 26px;
  background: linear-gradient(135deg, #fff, #f8fafc);
}

.archive-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.archive-hero p:not(.label) {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.archive-note {
  border: 1px dashed var(--line);
  background: #f4f4f5;
}

.section-head.compact {
  grid-template-columns: 1fr;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.filter-button:hover {
  background: #f4f4f5;
}

.filter-button.active {
  border-color: #16a34a;
  color: #052e16;
  background: #ecfdf3;
}

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

.archive-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f4f5;
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.archive-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.archive-card:hover img {
  transform: scale(1.025);
}

.archive-card span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: #fff;
  text-align: left;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(12px);
}

.archive-card strong,
.archive-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-card strong {
  font-size: 14px;
}

.archive-card em {
  color: #d4d4d8;
  font-size: 12px;
  font-style: normal;
}

.archive-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #f4f4f5;
  text-align: center;
  line-height: 1.7;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(9, 9, 11, 0.88);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(94vw, 1180px);
  max-height: 82vh;
  border-radius: 14px;
  object-fit: contain;
  background: #111;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 24, 27, 0.72);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .archive-hero {
    grid-template-columns: 1fr;
  }

  .archive-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .archive-hero,
  .archive-section {
    padding: 16px;
  }

  .archive-hero h1 {
    font-size: 34px;
  }

  .archive-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .archive-card {
    aspect-ratio: 4 / 4.6;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    width: 100%;
  }
}

/* Mobile layout hotfix: keep the hero and cards single-column in WebView browsers */
@media (max-width: 820px) {
  .intro,
  .section-head,
  .contact,
  .archive-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .topbar,
  .page {
    width: min(100% - 18px, 430px) !important;
  }

  .intro,
  .notice,
  .section,
  .contact,
  .archive-hero,
  .archive-section {
    width: 100% !important;
    max-width: 100% !important;
  }

  .intro {
    gap: 14px !important;
    padding: 16px !important;
  }

  .intro-copy,
  .intro-note,
  .section-head > *,
  .contact > * {
    min-width: 0 !important;
  }

  .intro h1 {
    max-width: 100% !important;
    font-size: clamp(30px, 9vw, 38px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.05em !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    writing-mode: horizontal-tb !important;
  }

  .intro-copy > p:not(.label) {
    font-size: 15px !important;
    line-height: 1.72 !important;
  }

  .action-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .button,
  .top-action {
    width: 100%;
  }

  .brand {
    min-width: 0;
  }

  .service-row,
  .mini-grid,
  .flow-grid,
  .operation-flow,
  .contact-list {
    width: 100%;
  }
}
