@font-face {
  font-family: "TWK Everett";
  src: url("/font/TWKEverett-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TWK Everett";
  src: url("/font/TWKEverett-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("/font/ZenKakuGothicNew-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("/font/ZenKakuGothicNew-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("/font/ZenKakuGothicNew-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("/font/ZenKakuGothicNew-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("/font/ZenKakuGothicNew-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f2ea;
  --bg-soft: rgba(255, 255, 255, 0.82);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --text: #171717;
  --muted: #666159;
  --line: rgba(23, 23, 23, 0.11);
  --line-strong: rgba(23, 23, 23, 0.18);
  --primary: #181818;
  --primary-deep: #111111;
  --secondary: #e3dbcf;
  --danger: #d94d5b;
  --success: #1d9c6b;
  --shadow: 0 24px 80px rgba(23, 23, 23, 0.07);
  --shadow-soft: 0 18px 36px rgba(23, 23, 23, 0.05);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-main: "Zen Kaku Gothic New", "Yu Gothic", "Hiragino Sans", sans-serif;
  --font-display: "TWK Everett", "Zen Kaku Gothic New", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: linear-gradient(180deg, #fbf8f2 0%, #f4efe7 100%);
}

:lang(en) {
  font-family: var(--font-display);
}

.latin {
  font-family: var(--font-display);
}

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

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

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

.site-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  position: relative;
  z-index: 1;
}

.hero,
.detail-hero,
.content-card,
.site-footer,
.empty-state,
.phone-shell,
.preview-card,
.panel,
.metric-card,
.template-card,
.login-card {
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: end;
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-copy h1,
.detail-hero h1,
.login-card h1,
.admin-header-row h1,
.admin-hero h1 {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 0.92;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 500;
}

.hero-copy h1 span {
  display: block;
}

.hero-kicker {
  margin: 0 0 22px;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead,
.hero-copy p,
.detail-catch,
.section-heading p,
.admin-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-actions,
.detail-links,
.table-actions,
.form-actions,
.helper-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sort-order-cell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sort-order-index {
  min-width: 1.5em;
  font-weight: 700;
  color: #0d1016;
}

.sort-order-buttons {
  display: inline-flex;
  gap: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: none;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.28);
  border-color: var(--line);
}

.button-danger {
  color: #fff;
  background: linear-gradient(135deg, #f07682, #d94d5b);
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.button-sort {
  min-width: 36px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.button-sort:disabled {
  opacity: 0.35;
  cursor: default;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 360px);
  padding: 16px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.phone-header,
.phone-dock {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-header {
  padding: 4px 4px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone-grid,
.works-grid,
.shot-grid,
.preview-grid,
.metric-grid,
.admin-grid {
  display: grid;
  gap: 16px;
}

.phone-grid {
  grid-template-columns: repeat(4, 1fr);
}

.phone-icon,
.app-card {
  text-align: center;
}

.phone-icon span,
.app-card span,
.table-work span,
.activity-item span,
.template-card span,
.copyright,
.footer-links,
.login-hint span,
.field small {
  color: var(--muted);
}

.phone-icon span {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  line-height: 1.4;
}

.phone-dock {
  margin-top: 18px;
  padding: 16px 10px 10px;
  justify-content: center;
}

.dock-pill {
  width: 120px;
  height: 5px;
  border-radius: 999px;
  background: rgba(23, 48, 79, 0.16);
}

.works-section,
.screenshots-section {
  margin-top: 88px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.content-card h2,
.content-card h3,
.panel-heading h2,
.preview-card h3,
.template-card strong,
.legal-card h1 {
  margin: 0 0 10px;
}

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

.app-card {
  padding: 28px 24px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  animation: float-up 480ms ease both;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 23, 23, 0.28);
  background: rgba(255, 255, 255, 0.44);
}

.app-card strong,
.template-card strong {
  display: block;
  margin-top: 10px;
}

.app-card-icon {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.app-card-copy {
  display: grid;
  gap: 8px;
}

.app-card-type {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-card-description {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.icon-fallback,
.icon-image {
  border-radius: 22px;
  box-shadow: 0 14px 24px rgba(23, 23, 23, 0.1);
}

.icon-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, #434343, #1f1f1f 55%, #0f0f0f),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  font-family: var(--font-display);
}

.icon-large,
.icon-image.icon-large {
  width: 78px;
  height: 78px;
}

.icon-small,
.icon-image.icon-small {
  width: 54px;
  height: 54px;
}

.icon-hero,
.icon-image.icon-hero {
  width: 92px;
  height: 92px;
}

.icon-detail,
.icon-image.icon-detail {
  width: 140px;
  height: 140px;
  border-radius: 36px;
}

.icon-tiny,
.icon-image.icon-tiny {
  width: 46px;
  height: 46px;
}

.icon-fallback span {
  font-size: 1.4rem;
}

.detail-shell,
.legal-shell {
  padding-top: 24px;
}

.page-breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-hero,
.site-footer,
.empty-state,
.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 0;
}

.detail-title-block {
  display: flex;
  gap: 20px;
  align-items: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  margin-top: 20px;
}

.content-card,
.panel,
.preview-card,
.metric-card,
.template-card {
  background: var(--panel);
  border-radius: 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.content-card,
.panel,
.preview-card,
.template-card {
  padding: 22px;
}

.side-card-stack {
  display: grid;
  gap: 20px;
}

.meta-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.meta-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.meta-card dd {
  margin: 0;
  line-height: 1.6;
}

.legal-links {
  display: grid;
  gap: 12px;
}

.legal-links a {
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.rich-text,
.legal-text {
  line-height: 1.9;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 26px 0 10px;
}

.rich-text p,
.rich-text ul {
  margin: 0 0 14px;
}

.rich-text ul {
  padding-left: 20px;
}

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

.shot-card {
  margin: 0;
  padding: 10px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.shot-card img {
  width: 100%;
  border-radius: 0;
}

.site-footer {
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.figma-home-page {
  background: #f1f2fb;
}

.detail-editorial-shell {
  width: min(1280px, calc(100% - 160px));
  margin: 0 auto;
  padding: 100px 0 56px;
}

.detail-editorial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.detail-editorial-logo {
  width: min(232px, 16.1111vw);
}

.detail-editorial-breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  line-height: 1;
  color: #7e848e;
}

.detail-editorial-hero {
  margin-top: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: end;
}

.detail-editorial-main {
  display: flex;
  gap: 36px;
  align-items: center;
}

.detail-editorial-copy {
  min-width: 0;
}

.detail-editorial-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-editorial-copy h1 {
  margin: 0;
  font-size: 42px;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.detail-editorial-catch {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 2;
  font-weight: 700;
  color: #0d1016;
}

.detail-editorial-side {
  display: grid;
  gap: 20px;
  align-self: stretch;
  width: 340px;
  justify-self: end;
}

.detail-editorial-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.detail-editorial-links a,
.detail-editorial-policy-links a,
.detail-editorial-info-list a {
  color: #0d1016;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

.detail-editorial-summary {
  margin: 0;
  font-size: 14px;
  line-height: 28px;
  font-weight: 500;
  color: #464e5e;
}

.detail-editorial-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 60px;
}

.detail-editorial-sidebar {
  display: grid;
  gap: 44px;
}

.detail-editorial-section,
.detail-editorial-screenshots {
  border-top: 1px solid rgba(13, 16, 22, 0.18);
  padding-top: 28px;
}

.detail-editorial-section-head {
  margin-bottom: 24px;
}

.detail-editorial-section-head p {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #7e848e;
  text-transform: uppercase;
}

.detail-editorial-section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.detail-editorial-rich {
  color: #464e5e;
}

.detail-editorial-rich p,
.detail-editorial-rich ul {
  font-size: 14px;
  line-height: 28px;
  font-weight: 500;
  color: #464e5e;
}

.detail-editorial-rich h2,
.detail-editorial-rich h3,
.detail-editorial-rich h4 {
  color: #0d1016;
  font-size: 20px;
  line-height: 1.5;
}

.detail-editorial-info-list {
  margin: 0;
  display: grid;
  gap: 18px;
}

.detail-editorial-info-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(13, 16, 22, 0.12);
}

.detail-editorial-info-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-editorial-info-list dt {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #7e848e;
}

.detail-editorial-info-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 28px;
  font-weight: 500;
  color: #464e5e;
}

.detail-editorial-policy-links {
  display: grid;
  gap: 12px;
}

.detail-editorial-screenshots {
  margin-top: 80px;
}

.detail-editorial-shot-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: stretch;
  scroll-snap-type: x proximity;
}

.detail-editorial-shot-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(13, 16, 22, 0.12);
  background: rgba(255, 255, 255, 0.66);
  scroll-snap-align: start;
}

.detail-editorial-shot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.detail-editorial-shot-trigger img {
  transition: transform 180ms ease;
}

.detail-editorial-shot-trigger:hover img,
.detail-editorial-shot-trigger:focus-visible img {
  transform: scale(1.02);
}

.detail-editorial-shot-trigger:focus-visible {
  outline: 2px solid #0d1016;
  outline-offset: -2px;
}

.detail-editorial-shot-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  display: block;
  background: #eef1f6;
}

body.lightbox-open {
  overflow: hidden;
}

.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 32px;
}

.site-lightbox[hidden] {
  display: none;
}

.site-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 16, 22, 0.76);
  backdrop-filter: blur(8px);
}

.site-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  justify-items: end;
  max-width: min(92vw, 520px);
  width: 100%;
}

.site-lightbox-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(13, 16, 22, 0.52);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.site-lightbox-image {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 28px;
  background: #f5f7ff;
  box-shadow: 0 24px 60px rgba(13, 16, 22, 0.28);
}

.detail-editorial-back-home {
  margin-top: 64px;
  display: flex;
  justify-content: flex-start;
}

.detail-editorial-back-home a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #171717;
  border-radius: 999px;
  color: #171717;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
}

.detail-editorial-footer {
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #7c7d86;
}

.detail-editorial-footer-links {
  display: flex;
  gap: 26px;
}

.detail-editorial-footer p {
  margin: 0;
}

.figma-home-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background: #f1f2fb;
}

.figma-artboard {
  width: 100vw;
  min-height: 100vh;
  margin: 0 auto;
  background: #f1f2fb;
  container-type: inline-size;
  position: relative;
  overflow-x: hidden;
  padding: 56px 0 40px;
}

.figma-header {
  width: 88.8889cqi;
  margin-left: 5.5556cqi;
  margin-top: 3.0556cqi;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.figma-logo-image {
  display: block;
  width: min(522px, 36.25cqi);
  margin-left: 0;
  flex: 0 0 auto;
}

.figma-copy {
  width: 35.9028cqi;
  margin-top: 0;
  margin-left: 0;
  display: grid;
  gap: 0;
  flex: 0 0 auto;
  transform: translateY(min(5px, 0.3472cqi));
}

.copy-desktop-block,
.copy-mobile-block {
  display: grid;
  gap: 0;
}

.copy-desktop-block {
  width: 100%;
  justify-items: start;
}

.figma-copy p {
  margin: 0;
  font-size: min(16px, 1.1111cqi);
  line-height: min(32px, 2.2222cqi);
  letter-spacing: 0.01em;
  font-weight: 700;
  color: #0d1016;
}

.copy-mobile-block {
  display: none;
}

.figma-services {
  position: relative;
  margin-left: 5.4861cqi;
  margin-top: 80px;
  width: 89.0278cqi;
  padding-left: 8.2639cqi;
}

.figma-vertical-label-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.6667cqi;
  height: 22.6389cqi;
  display: flex;
  align-items: center;
  justify-content: center;
}

.figma-vertical-label {
  display: inline-flex;
  gap: 0.45cqi;
  transform: rotate(90deg);
  transform-origin: center;
  font-size: 1.9444cqi;
  letter-spacing: 0.05em;
  font-weight: 700;
  line-height: 1.2;
  color: #0d1016;
  white-space: nowrap;
}

.figma-services-grid {
  position: relative;
  left: 0;
  top: 0;
  width: 81.3889cqi;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.4722cqi 2.7778cqi;
}

.service-card {
  position: relative;
  width: 39.3056cqi;
  height: 12.9167cqi;
}

.service-card-icon {
  position: absolute;
  left: 0;
  top: 0;
}

.service-card-copy {
  position: absolute;
  left: 11.1111cqi;
  top: 0;
  width: 28.1944cqi;
}

.service-card-copy h3 {
  margin: 0;
  font-size: 1.5278cqi;
  line-height: 3.0556cqi;
  font-weight: 700;
}

.service-tags {
  display: flex;
  gap: 0.6944cqi;
  margin-top: 0.9028cqi;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.1389cqi;
  min-height: 1.9444cqi;
  padding: 0 0.8333cqi;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.8333cqi;
  letter-spacing: 0.02em;
}

.service-tag-wide {
  width: auto;
  min-width: 8.8cqi;
  white-space: nowrap;
}

.service-card-description {
  margin: 0.6944cqi 0 0;
  font-size: 0.9722cqi;
  line-height: 1.6667;
  color: #4f5158;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 3.3334cqi;
}

.service-card-link {
  position: absolute;
  right: 0;
  top: 10.625cqi;
  display: inline-flex;
  align-items: center;
  gap: 0.625cqi;
  font-size: 0.8333cqi;
  letter-spacing: 0.06em;
  line-height: 1;
}

.service-card-arrow {
  width: 2.3611cqi;
  height: 2.3611cqi;
}

.service-card-line {
  position: absolute;
  left: 0.1389cqi;
  top: 11.8056cqi;
  width: 30.0694cqi;
  border-top: 1px dotted #7d818a;
}

.service-card-thumbnail {
  width: 9.7222cqi;
  height: 9.7222cqi;
  display: block;
  border-radius: 2.5cqi;
}

.figma-footer {
  margin: 80px 80px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8333cqi;
  color: #7c7d86;
}

.figma-footer-links {
  display: flex;
  gap: 1.8056cqi;
}

.figma-footer p {
  margin: 0;
}

.site-terms-shell {
  width: min(1280px, calc(100% - 160px));
  margin: 0 auto;
  padding: 100px 0 56px;
}

.site-terms-hero {
  display: block;
}

.site-terms-brand {
  display: inline-flex;
  align-items: flex-end;
  flex: 0 0 auto;
}

.site-terms-logo {
  width: min(232px, 16.1111vw);
}

.site-terms-copy {
  width: 100%;
  margin-bottom: 48px;
  transform: none;
}

.site-terms-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #7e848e;
  text-transform: uppercase;
}

.site-terms-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.site-terms-date,
.site-terms-lead,
.site-terms-section p,
.site-terms-section li,
.site-terms-closing,
.site-terms-footer {
  font-family: var(--font-body);
  color: #0d1016;
}

.site-terms-date {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 2;
  font-weight: 700;
}

.site-terms-lead {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 2;
  font-weight: 700;
}

.site-terms-card {
  margin-top: 80px;
  padding: 56px 60px 48px;
  border-top: 1px solid rgba(13, 16, 22, 0.18);
  border-bottom: 1px solid rgba(13, 16, 22, 0.12);
}

.site-terms-section + .site-terms-section {
  margin-top: 48px;
}

.site-terms-section h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.site-terms-section-lead,
.site-terms-section p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 28px;
  font-weight: 500;
  color: #464e5e;
}

.site-terms-section ol {
  margin: 0;
  padding-left: 1.6em;
}

.site-terms-section li {
  font-size: 14px;
  line-height: 28px;
  font-weight: 500;
  color: #464e5e;
}

.site-terms-section li + li {
  margin-top: 8px;
}

.site-terms-closing {
  margin: 48px 0 0;
  font-size: 14px;
  line-height: 28px;
  font-weight: 500;
  color: #464e5e;
}

.site-terms-footer {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.site-terms-footer-links {
  display: flex;
  gap: 28px;
  color: #7e848e;
}

.site-terms-footer p {
  margin: 0;
}

.work-legal-meta {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.work-legal-shell .site-terms-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.work-legal-hero-art {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.work-legal-meta p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  font-weight: 700;
  color: #0d1016;
}

.site-terms-rich-text h2,
.site-terms-rich-text h3,
.site-terms-rich-text h4 {
  margin: 48px 0 18px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0d1016;
}

.site-terms-rich-text p,
.site-terms-rich-text li {
  margin: 0;
  font-size: 14px;
  line-height: 28px;
  font-weight: 500;
  color: #464e5e;
}

.site-terms-rich-text p + p,
.site-terms-rich-text p + ul,
.site-terms-rich-text p + ol,
.site-terms-rich-text ul + p,
.site-terms-rich-text ol + p,
.site-terms-rich-text ul + ul,
.site-terms-rich-text ol + ol,
.site-terms-rich-text ul + ol,
.site-terms-rich-text ol + ul {
  margin-top: 12px;
}

.site-terms-rich-text ul,
.site-terms-rich-text ol {
  margin: 0;
  padding-left: 1.6em;
}

.site-terms-rich-text li + li {
  margin-top: 8px;
}

.editorial-intro {
  padding-top: 8px;
}

.statement-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.statement-card {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.statement-card h2 {
  max-width: 12ch;
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.statement-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.works-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-side-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.empty-state {
  max-width: 620px;
  margin: 120px auto;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: 34px;
}

.empty-grid {
  padding: 28px;
  border-radius: 28px;
  border: 1px dashed var(--line-strong);
  text-align: center;
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(255, 183, 102, 0.13), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eef4ff 100%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  padding: 28px 22px;
  background: rgba(249, 251, 255, 0.88);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  font-family: var(--font-display);
}

.brand span,
.logout-form span,
.panel-heading span,
.activity-item span,
.template-card p {
  font-size: 0.92rem;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
}

.admin-nav a.active,
.admin-nav a:hover {
  background: rgba(45, 124, 244, 0.1);
  color: var(--primary-deep);
  font-weight: 700;
}

.admin-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-deep);
  font-weight: 700;
}

.logout-form {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.admin-content {
  padding: 28px;
}

.admin-header-row,
.admin-hero,
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.admin-hero {
  margin-bottom: 22px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.metric-card {
  padding: 20px;
}

.metric-card span {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  font-family: var(--font-display);
}

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

.activity-list,
.template-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.activity-item.static {
  cursor: default;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-work {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mini-icon {
  display: flex;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-published {
  color: #0a6d4b;
  background: rgba(31, 186, 124, 0.16);
}

.badge-draft {
  color: #956113;
  background: rgba(255, 184, 92, 0.2);
}

.badge-coming-soon {
  color: #3155a6;
  background: rgba(73, 118, 255, 0.14);
}

.editor-form,
.login-form {
  display: grid;
  gap: 18px;
}

.form-panel,
.media-grid,
.form-grid,
.preview-grid {
  width: 100%;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  font-weight: 700;
  font-size: 0.95rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.checkbox-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-pill span {
  font-size: 0.9rem;
  font-weight: 700;
}

.checkbox-pill:has(input:checked) {
  border-color: rgba(45, 124, 244, 0.45);
  background: rgba(45, 124, 244, 0.1);
  color: var(--primary-deep);
}

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

.dynamic-field[hidden] {
  display: none;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 13px 15px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(45, 124, 244, 0.4);
  box-shadow: 0 0 0 4px rgba(45, 124, 244, 0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.media-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.media-field {
  display: grid;
  gap: 12px;
}

.image-preview {
  min-height: 150px;
  border-radius: 24px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  padding: 16px;
}

.image-preview img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 24px;
}

.shot-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 112px));
  gap: 12px;
  justify-content: flex-start;
}

.shot-editor-item {
  width: 112px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 8px;
}

.shot-editor-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6c7384;
}

.shot-editor-item img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 14px;
  background: #eef1f6;
}

.notice {
  padding: 14px 16px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.notice ul {
  margin: 0;
  padding-left: 18px;
}

.notice.success {
  background: rgba(29, 156, 107, 0.12);
  color: #0a6d4b;
}

.notice.error {
  background: rgba(217, 77, 91, 0.12);
  color: #8f2430;
}

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

.preview-surface {
  min-height: 240px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92));
  border: 1px solid var(--line);
}

.preview-mini-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.preview-mini-head h4,
.preview-copy h4 {
  margin: 0 0 8px;
}

.preview-copy p,
.preview-copy ul,
.preview-copy div {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
}

.template-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 460px);
  padding: 30px;
  border-radius: 30px;
}

.login-hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .admin-shell,
  .detail-layout,
  .hero,
  .statement-grid,
  .works-heading-row,
  .site-footer,
  .media-grid,
  .preview-grid,
  .metric-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-editorial-hero,
  .detail-editorial-grid {
    grid-template-columns: 1fr;
  }

  .detail-editorial-side {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .figma-home-page {
    --sp-canvas: calc(100vw - 60px);
    --sp-unit: calc((100vw - 60px) / 330);
  }

  .site-shell,
  .admin-content {
    width: min(100% - 20px, 100%);
    padding-left: 0;
    padding-right: 0;
  }

  .detail-editorial-shell {
    width: calc(100% - 60px);
    padding: 90px 0 47px;
  }

  .detail-editorial-header,
  .detail-editorial-main {
    display: block;
  }

  .detail-editorial-logo {
    width: min(240px, 100%);
  }

  .detail-editorial-breadcrumbs {
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.6;
  }

  .detail-editorial-hero {
    margin-top: 56px;
    gap: 28px;
  }

  .detail-editorial-icon {
    margin-bottom: 24px;
  }

  .detail-editorial-tags {
    margin-bottom: 14px;
  }

  .detail-editorial-copy h1 {
    font-size: 42px;
  }

  .detail-editorial-catch {
    margin-top: 14px;
    font-size: 15px;
    line-height: 30px;
  }

  .detail-editorial-summary,
  .detail-editorial-info-list dd,
  .detail-editorial-rich p,
  .detail-editorial-rich ul {
    font-size: 14px;
    line-height: 28px;
  }

  .detail-editorial-grid,
  .detail-editorial-screenshots {
    margin-top: 67px;
  }

  .detail-editorial-grid {
    gap: 34px;
  }

  .detail-editorial-sidebar {
    gap: 34px;
  }

  .detail-editorial-section,
  .detail-editorial-screenshots {
    padding-top: 24px;
  }

  .detail-editorial-section-head {
    margin-bottom: 20px;
  }

  .detail-editorial-shot-grid {
    grid-auto-columns: minmax(148px, 52vw);
    gap: 14px;
  }

  .site-lightbox {
    padding: 20px;
  }

  .site-lightbox-dialog {
    max-width: min(100%, 420px);
    gap: 12px;
  }

  .site-lightbox-image {
    max-height: calc(100vh - 96px);
    border-radius: 22px;
  }

  .detail-title-block,
  .detail-hero,
  .admin-header-row,
  .admin-hero,
  .panel-heading,
  .template-card,
  .login-hint {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .dynamic-url-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy h1 {
    font-size: 3.5rem;
  }

  .phone-shell {
    max-width: 320px;
  }

  .app-card {
    padding: 22px 18px;
  }

  .site-terms-shell {
    width: calc(100% - 60px);
    padding: 90px 0 47px;
  }

  .site-terms-hero {
    display: block;
  }

  .site-terms-logo {
    width: min(240px, 100%);
  }

  .work-legal-shell .site-terms-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
  }

  .work-legal-shell .site-terms-brand {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .work-legal-shell .site-terms-logo {
    width: min(234px, calc(100% - 74px));
  }

  .work-legal-shell .work-legal-hero-art {
    order: 0;
    margin-left: auto;
    flex: 0 0 auto;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .work-legal-shell .work-legal-hero-art .icon-detail,
  .work-legal-shell .work-legal-hero-art .icon-image.icon-detail {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .site-terms-copy {
    width: 100%;
    margin-top: 0;
    margin-bottom: 34px;
    transform: none;
  }

  .site-terms-kicker {
    margin-bottom: 8px;
  }

  .site-terms-copy h1 {
    font-size: 34px;
  }

  .site-terms-date,
  .site-terms-lead {
    font-size: 15px;
    line-height: 2;
  }

  .site-terms-section-lead,
  .site-terms-section p,
  .site-terms-section li,
  .site-terms-closing {
    font-size: 14px;
    line-height: 28px;
  }

  .site-terms-card {
    margin-top: 67px;
    padding: 34px 0 0;
    border-bottom: 0;
  }

  .site-terms-section + .site-terms-section {
    margin-top: 34px;
  }

  .site-terms-section h2 {
    margin-bottom: 14px;
    font-size: 22px;
  }

  .site-terms-footer {
    margin-top: 50px;
    display: grid;
    gap: 10px;
    justify-content: start;
  }

  .site-terms-footer-links {
    display: grid;
    gap: 10px;
  }

  .figma-artboard {
    width: var(--sp-canvas);
    min-height: auto;
    padding: calc(90 * var(--sp-unit)) 0 calc(47 * var(--sp-unit));
  }

  .figma-header {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
    display: block;
  }

  .figma-logo-image {
    width: calc(279.96 * var(--sp-unit));
    margin-left: 0;
  }

  .figma-copy {
    width: 100%;
    margin-top: calc(39 * var(--sp-unit));
    margin-left: 0;
    gap: calc(10 * var(--sp-unit));
  }

  .figma-copy p {
    font-size: calc(15 * var(--sp-unit));
    line-height: calc(30 * var(--sp-unit));
  }

  .copy-desktop-block {
    display: none !important;
  }

  .copy-mobile-block {
    display: grid !important;
    gap: 0;
  }

  .figma-services {
    width: 100%;
    margin-left: 0;
    margin-top: calc(67 * var(--sp-unit));
    padding-left: 0;
  }

  .figma-vertical-label-wrap {
    position: static;
    width: auto;
    height: auto;
    display: block;
    margin-bottom: calc(30 * var(--sp-unit));
  }

  .figma-vertical-label {
    display: grid;
    gap: 0;
    transform: none;
    transform-origin: initial;
    font-size: calc(28 * var(--sp-unit));
    line-height: calc(34 * var(--sp-unit));
    letter-spacing: 0.05em;
  }

  .figma-services-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(40 * var(--sp-unit));
  }

  .service-card {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: calc(100 * var(--sp-unit)) minmax(0, 1fr);
    grid-template-areas:
      "title title"
      "icon tags"
      "icon description"
      "line link";
    column-gap: calc(20 * var(--sp-unit));
    align-items: start;
  }

  .service-card-icon {
    position: static;
    grid-area: icon;
    width: calc(100 * var(--sp-unit));
  }

  .service-card-copy {
    position: static;
    width: auto;
    display: contents;
  }

  .service-card-copy h3 {
    grid-area: title;
    width: auto;
    margin-bottom: calc(10 * var(--sp-unit));
    font-size: calc(20 * var(--sp-unit));
    line-height: calc(44 * var(--sp-unit));
  }

  .service-tags {
    grid-area: tags;
    align-self: start;
    margin: 0;
    gap: calc(8 * var(--sp-unit));
  }

  .service-tag {
    width: calc(54 * var(--sp-unit));
    min-height: calc(28 * var(--sp-unit));
    padding: 0 calc(6 * var(--sp-unit));
    border-radius: calc(18 * var(--sp-unit));
    font-size: calc(12 * var(--sp-unit));
  }

  .service-tag-wide {
    width: auto;
    min-width: 0;
    padding: 0 calc(10 * var(--sp-unit));
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .service-card-description {
    grid-area: description;
    width: auto;
    margin: calc(20 * var(--sp-unit)) 0;
    font-size: calc(14 * var(--sp-unit));
    line-height: calc(24 * var(--sp-unit));
    max-height: none;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: visible;
  }

  .service-card-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: calc(26 * var(--sp-unit));
  }

  .service-card-line {
    position: static;
    grid-area: line;
    width: calc(199 * var(--sp-unit));
    margin-top: calc(20 * var(--sp-unit));
    justify-self: start;
  }

  .service-card-link {
    position: static;
    grid-area: link;
    justify-self: end;
    margin-top: 0;
    gap: calc(10 * var(--sp-unit));
    font-size: calc(12 * var(--sp-unit));
  }

  .service-card-arrow {
    width: calc(34 * var(--sp-unit));
    height: calc(34 * var(--sp-unit));
  }

  .figma-footer {
    margin: calc(50 * var(--sp-unit)) 0 0;
    font-size: calc(12 * var(--sp-unit));
    align-items: flex-end;
  }

  .figma-footer-links {
    display: grid;
    gap: calc(10 * var(--sp-unit));
  }
}
