:root {
  --bg: #f4ede4;
  --bg-soft: #fbf7f1;
  --ink: #1b1a18;
  --muted: #645d56;
  --line: rgba(27, 26, 24, 0.12);
  --card: rgba(255, 252, 246, 0.82);
  --accent: #b74828;
  --accent-deep: #7f2410;
  --accent-soft: #f1c9ac;
  --olive: #5c6b38;
  --shadow: 0 24px 80px rgba(50, 33, 16, 0.14);
  --hero-bg: rgba(255, 249, 240, 0.78);
  --hero-border: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --surface: rgba(255, 255, 255, 0.62);
  --textarea: rgba(255, 255, 255, 0.72);
  --switch-bg: rgba(255, 255, 255, 0.52);
  --switch-border: rgba(27, 26, 24, 0.08);
  --switch-active-bg: linear-gradient(135deg, var(--accent), var(--accent-deep));
  --switch-active-ink: #fff8f0;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(183, 72, 40, 0.18), transparent 28%),
    radial-gradient(circle at right 18%, rgba(92, 107, 56, 0.18), transparent 24%),
    linear-gradient(180deg, #efe4d4 0%, #f7f1e8 48%, #f4ede4 100%);
  font-family: "Noto Sans SC", "Noto Sans JP", sans-serif;
  transition: background-color 220ms ease, color 220ms ease, background 280ms ease;
}

body[data-page="jp"] {
  font-family: "Noto Sans JP", "Noto Sans SC", sans-serif;
}

body[data-theme-active="glow"],
body[data-theme-active="system-glow"] {
  color-scheme: light;
}

body[data-theme-active="glow"] {
  --bg: #fff4e8;
  --bg-soft: #fffaf3;
  --ink: #241611;
  --muted: #71564c;
  --line: rgba(120, 55, 24, 0.14);
  --card: rgba(255, 250, 244, 0.78);
  --accent: #ff5a2f;
  --accent-deep: #ff9a3d;
  --accent-soft: #ffd4bd;
  --olive: #4e8b5b;
  --shadow: 0 26px 86px rgba(255, 102, 51, 0.2);
  --hero-bg: rgba(255, 247, 240, 0.74);
  --hero-border: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.76);
  --surface: rgba(255, 255, 255, 0.72);
  --textarea: rgba(255, 255, 255, 0.82);
  --switch-bg: rgba(255, 255, 255, 0.58);
  --switch-border: rgba(255, 122, 79, 0.1);
  --switch-active-bg: linear-gradient(135deg, #ff5a2f, #ffb347);
  --switch-active-ink: #fff9f2;
  background:
    radial-gradient(circle at top left, rgba(255, 90, 47, 0.25), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(255, 179, 71, 0.26), transparent 24%),
    radial-gradient(circle at 75% 78%, rgba(78, 139, 91, 0.16), transparent 18%),
    linear-gradient(180deg, #fff1e4 0%, #fff8ef 52%, #fff4e8 100%);
}

body[data-theme-active="dark"],
body[data-theme-active="system-dark"] {
  --bg: #0e1116;
  --bg-soft: #151a21;
  --ink: #edf2f7;
  --muted: #97a4b3;
  --line: rgba(226, 232, 240, 0.14);
  --card: rgba(19, 24, 31, 0.78);
  --accent: #ff7a4f;
  --accent-deep: #ffbc8a;
  --accent-soft: #43261d;
  --olive: #8eb884;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --hero-bg: rgba(14, 18, 24, 0.76);
  --hero-border: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --surface: rgba(21, 26, 33, 0.76);
  --textarea: rgba(11, 15, 20, 0.84);
  --switch-bg: rgba(255, 255, 255, 0.04);
  --switch-border: rgba(255, 255, 255, 0.08);
  --switch-active-bg: linear-gradient(135deg, #ff7a4f, #ffb36b);
  --switch-active-ink: #11161d;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 79, 0.18), transparent 28%),
    radial-gradient(circle at right 18%, rgba(142, 184, 132, 0.12), transparent 24%),
    linear-gradient(180deg, #090c10 0%, #10151d 45%, #0e1116 100%);
  color-scheme: dark;
}

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

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

.site-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.ambient-orb {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(14px);
  opacity: 0.7;
  z-index: 0;
}

.orb-a {
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(255, 111, 56, 0.28), transparent 70%);
}

.orb-b {
  top: 24%;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 182, 77, 0.26), transparent 70%);
}

.orb-c {
  bottom: 8%;
  left: 12%;
  background: radial-gradient(circle, rgba(79, 139, 92, 0.2), transparent 70%);
}

.orb-d {
  bottom: -40px;
  right: 10%;
  background: radial-gradient(circle, rgba(255, 132, 102, 0.18), transparent 70%);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  border: 1px solid var(--hero-border);
  border-radius: 40px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -120px;
  background: rgba(183, 72, 40, 0.12);
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -120px;
  background: rgba(92, 107, 56, 0.14);
}

.topbar,
.hero-grid,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff7ef;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Noto Serif SC", "Noto Serif JP", serif;
  font-size: 1.1rem;
}

.brand-copy small,
.topbar-actions a:not(.lang-switch),
.lede,
.catalog-card p,
.service-timeline p,
.company-copy p,
.contact-card li,
.contact-card p,
.visual-caption span,
.showcase-item figcaption,
.intro-card p,
.footer p,
.footer a {
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.topbar-actions > * {
  flex-shrink: 0;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  transition: transform 180ms ease;
}

.nav-links a.is-current::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.admin-link {
  color: var(--accent-deep);
  font-weight: 700;
}

.topbar-actions a,
.topbar-actions button {
  font-size: 0.95rem;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--switch-bg);
  border: 1px solid var(--switch-border);
  backdrop-filter: blur(12px);
}

.theme-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.theme-chip:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

.theme-chip.is-active {
  background: var(--switch-active-bg);
  color: var(--switch-active-ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.lang-switch {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(183, 72, 40, 0.1);
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: 34px;
  align-items: stretch;
  padding: 36px 8px 18px;
}

.page-hero {
  min-height: 760px;
}

.compact-hero {
  grid-template-columns: 1fr 0.72fr;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 18px 0 8px;
}

.hero-copy-main {
  display: grid;
  align-content: start;
}

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

.hero-trust-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px rgba(72, 43, 14, 0.08);
  overflow: hidden;
}

.hero-trust-card::after {
  content: "";
  position: absolute;
  inset: auto -10px -16px auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
}

.hero-trust-card span,
.visual-note-copy span {
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-trust-card strong,
.visual-note-copy strong {
  font-family: "Noto Serif SC", "Noto Serif JP", serif;
  font-size: 1.25rem;
  line-height: 1.35;
}

.hero-trust-card p,
.visual-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-deep);
  font-weight: 700;
  border: 1px solid var(--glass-border);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-family: "Noto Serif SC", "Noto Serif JP", serif;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 3.1rem);
}

h3 {
  font-size: 1.3rem;
}

.lede {
  max-width: 60ch;
  margin: 20px 0 0;
  font-size: 1.02rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
  font-weight: 700;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff8f0;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li,
.intro-card,
.catalog-card,
.visual-card,
.showcase-item,
.service-timeline article,
.company-panel,
.contact-card {
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px rgba(72, 43, 14, 0.08);
  backdrop-filter: blur(10px);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.hero-stats li {
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.hero-stats strong {
  display: block;
  font-size: 1.9rem;
  color: var(--accent-deep);
}

.hero-stats span {
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(220px, 0.78fr);
  gap: 18px;
  align-items: stretch;
}

.visual-main {
  min-height: 640px;
}

.visual-main-wide img {
  min-height: 640px;
}

.visual-side {
  display: grid;
  gap: 16px;
  grid-template-rows: 0.72fr 1fr 1fr;
}

.visual-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  display: grid;
  align-content: end;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.visual-caption {
  padding: 16px 18px 18px;
}

.visual-caption-strong {
  display: grid;
  gap: 10px;
  padding: 22px 22px 24px;
}

.visual-caption strong {
  display: block;
  margin-top: 4px;
}

.visual-note-card {
  min-height: 180px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(183, 72, 40, 0.18), rgba(92, 107, 56, 0.08)),
    var(--card);
  border: 1px solid var(--glass-border);
}

.visual-note-copy {
  display: grid;
  gap: 12px;
}

.section {
  padding: 34px 6px 0;
}

.motion-band {
  overflow: hidden;
}

.motion-band-track {
  display: flex;
  gap: 14px;
  white-space: nowrap;
  overflow: hidden;
  padding: 4px 0;
}

.motion-band-track span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--glass-border);
  color: var(--accent-deep);
  font-weight: 700;
  animation: drift 16s linear infinite;
}

@keyframes drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(-24px); }
  100% { transform: translateX(0); }
}

.section-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.glass-panel {
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px rgba(72, 43, 14, 0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

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

.metric-card {
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--glass-border);
}

.metric-card strong {
  display: block;
  font-size: 2rem;
  color: var(--accent-deep);
}

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

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

.product-feature {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: stretch;
}

.product-feature-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 18px;
}

.product-feature-copy {
  display: grid;
  gap: 12px;
}

.spotlight-card {
  position: relative;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.44), transparent 72%);
  pointer-events: none;
}

.service-callout,
.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.highlight-list,
.fact-grid {
  margin: 0;
  padding-left: 18px;
}

.highlight-list li,
.fact-grid li {
  line-height: 1.9;
  color: var(--muted);
}

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

.intro-card,
.catalog-card,
.service-timeline article,
.company-panel,
.contact-card {
  border-radius: var(--radius-lg);
}

.intro-card {
  padding: 24px;
}

.intro-card p {
  margin: 0;
  line-height: 1.8;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

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

.catalog-card {
  padding: 24px;
}

.catalog-card p,
.catalog-card li,
.service-timeline p,
.company-copy p,
.contact-card li,
.contact-card p,
.form-note {
  line-height: 1.8;
}

.catalog-card ul,
.contact-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

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

.showcase-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.showcase-item.wide {
  grid-column: span 2;
}

.showcase-item img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.showcase-item figcaption {
  padding: 16px 18px 18px;
}

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

.service-timeline article {
  padding: 24px;
}

.service-timeline span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 18px;
  background: rgba(183, 72, 40, 0.12);
  color: var(--accent-deep);
  font-weight: 700;
}

.company-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 28px;
}

.company-copy {
  display: grid;
  gap: 16px;
}

.company-copy p {
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

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

.trust-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px rgba(72, 43, 14, 0.08);
  backdrop-filter: blur(10px);
}

.trust-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px auto;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 72%);
  pointer-events: none;
}

.trust-card span {
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-card strong {
  font-family: "Noto Serif SC", "Noto Serif JP", serif;
  font-size: 1.2rem;
  line-height: 1.3;
}

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

.contact-card {
  padding: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

.contact-form span {
  font-weight: 700;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  width: 100%;
  border: 1px solid rgba(27, 26, 24, 0.12);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  color: var(--ink);
  background: var(--textarea);
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.contact-form input {
  width: 100%;
  border: 1px solid rgba(27, 26, 24, 0.12);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  color: var(--ink);
  background: var(--textarea);
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.form-note[data-state="success"] {
  color: #21834e;
  font-weight: 700;
}

.form-note[data-state="error"] {
  color: #d74f4f;
  font-weight: 700;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 6px 6px;
}

.footer-rich {
  padding-top: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  width: 100%;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px rgba(72, 43, 14, 0.08);
}

.footer-title {
  margin: 0 0 8px;
  font-family: "Noto Serif SC", "Noto Serif JP", serif;
  font-size: 1.08rem;
  color: var(--ink);
  word-break: keep-all;
}

.footer-grid p {
  margin: 0 0 8px;
  line-height: 1.7;
}

.footer-link-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-link-row span {
  position: relative;
  display: block;
  padding-left: 14px;
}

.footer-link-row span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  transform: translateY(-50%);
}

.footer-lang-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.footer-lang-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--glass-border);
  font-weight: 700;
}

.footer-copy-group {
  display: grid;
  gap: 4px;
}

.footer-meta-soft {
  opacity: 0.76;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.admin-login-panel {
  width: min(960px, 100%);
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.admin-login-brand .eyebrow {
  margin-bottom: 10px;
}

.admin-login-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.admin-login-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 700;
}

.admin-security-banner,
.admin-launch-warning {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 195, 92, 0.22);
  background: rgba(134, 92, 22, 0.22);
  color: #ffe2a8;
}

.admin-security-banner {
  margin: 14px 0 6px;
  line-height: 1.7;
  font-weight: 700;
}

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

.admin-launch-warning strong,
.admin-launch-warning p {
  margin: 0;
}

.admin-form {
  display: grid;
  gap: 18px;
}

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

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
  position: sticky;
  top: 20px;
  align-self: start;
}

.admin-sidebar-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

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

.admin-side-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
}

.admin-side-metrics {
  display: grid;
  gap: 12px;
}

.admin-side-metrics div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.admin-side-metrics strong {
  font-size: 1.6rem;
  color: var(--accent-deep);
}

.admin-side-metrics span {
  color: var(--muted);
}

.admin-main {
  display: grid;
  gap: 18px;
}

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

.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.admin-stat-card,
.admin-pulse-card,
.admin-mini-card {
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.admin-stat-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-stat-card strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--accent-deep);
  line-height: 1;
}

.admin-stat-card p,
.admin-pulse-head p,
.admin-mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-pulse-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.admin-pulse-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.admin-pulse-head .eyebrow {
  margin-bottom: 10px;
}

.admin-pulse-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}

.admin-mini-stack {
  display: grid;
  gap: 14px;
}

.admin-mini-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.admin-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.admin-section {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.admin-section h2,
.admin-section h3 {
  margin: 0;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-section-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.admin-filter-bar {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.admin-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-stack {
  display: grid;
  gap: 14px;
}

.admin-inline-actions {
  display: flex;
  justify-content: flex-start;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-card-head .eyebrow {
  margin-bottom: 8px;
}

.admin-card-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-ghost-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-ghost-button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-ghost-button.is-danger {
  color: #ffb0b0;
  border-color: rgba(255, 126, 126, 0.28);
  background: rgba(128, 36, 36, 0.22);
}

.inquiry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inquiry-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inquiry-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.inquiry-status.unread {
  color: #fff7ef;
  background: linear-gradient(135deg, #ff5a2f, #ff9a3d);
}

.inquiry-status.read {
  color: #c6d1dc;
  background: rgba(255, 255, 255, 0.08);
}

.inquiry-stage {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--glass-border);
}

.inquiry-stage.new {
  color: #fff4da;
  background: rgba(189, 111, 35, 0.28);
}

.inquiry-stage.active {
  color: #d9f1ff;
  background: rgba(37, 107, 161, 0.28);
}

.inquiry-stage.won {
  color: #d8ffea;
  background: rgba(36, 124, 76, 0.28);
}

.inquiry-stage.closed {
  color: #f2d9d9;
  background: rgba(119, 66, 66, 0.28);
}

.admin-crm-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.admin-field {
  display: grid;
  gap: 10px;
}

.admin-image-field {
  gap: 12px;
}

.admin-image-preview {
  display: grid;
  gap: 10px;
}

.admin-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-upload-button {
  min-width: 136px;
}

.admin-image-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  min-height: 180px;
  display: grid;
  place-items: center;
}

.admin-image-frame img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.admin-form label {
  display: grid;
  gap: 10px;
}

.admin-form input,
.admin-form select,
.admin-textarea,
.admin-form textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--textarea);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
}

.admin-textarea {
  min-height: 520px;
  resize: vertical;
}

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

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-actions {
  display: flex;
  gap: 12px;
}

.admin-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-tabbar a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}

.admin-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  line-height: 1.7;
  font-weight: 700;
}

.admin-notice.success {
  color: #9ad9b0;
  background: rgba(38, 93, 58, 0.3);
  border-color: rgba(106, 204, 141, 0.28);
}

.admin-notice.error {
  color: #ffb0b0;
  background: rgba(128, 36, 36, 0.28);
  border-color: rgba(255, 126, 126, 0.28);
}

.admin-image-preview .form-note[data-state="success"] {
  color: #9ad9b0;
}

.admin-image-preview .form-note[data-state="error"] {
  color: #ffb0b0;
}

.admin-media-uploader {
  margin-bottom: 18px;
}

.admin-media-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-media-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(10, 16, 28, 0.46);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.admin-media-thumb {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  min-height: 180px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-media-thumb img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.admin-media-meta {
  display: grid;
  gap: 6px;
}

.admin-media-meta h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-media-meta p,
.admin-media-empty p {
  margin: 0;
  color: var(--muted);
}

.admin-media-meta code {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink);
  word-break: break-all;
}

.admin-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-media-actions form {
  margin: 0;
}

.admin-media-empty {
  padding: 22px;
  border-radius: 22px;
  border: 1px dashed var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}

.admin-error {
  color: #ff6b6b;
  font-weight: 700;
}

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

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

@media (max-width: 1100px) {
  .hero-grid,
  .catalog-grid,
  .service-timeline,
  .company-panel,
  .contact-grid,
  .trust-band,
  .intro-strip,
  .section-split,
  .footer-grid,
  .product-grid,
  .admin-overview,
  .admin-pulse-grid,
  .admin-layout,
  .admin-backup-grid,
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

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

  .hero-trust {
    grid-template-columns: 1fr;
  }

  .visual-side {
    grid-template-rows: auto;
  }

  .showcase-item.wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--content));
    padding-top: 10px;
  }

  .hero {
    border-radius: 28px;
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .topbar-actions {
    display: grid;
    justify-content: flex-start;
    grid-template-columns: 1fr;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 14px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid var(--glass-border);
  }

  .theme-switcher {
    order: 3;
    width: fit-content;
  }

  .topbar-actions {
    width: 100%;
    gap: 12px;
  }

  .lang-switch {
    order: 2;
    align-self: flex-start;
  }

  .hero-grid {
    gap: 22px;
    padding-top: 24px;
  }

  .page-hero {
    min-height: auto;
  }

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

  .hero-copy {
    gap: 2px;
    padding: 0;
  }

  .hero-trust {
    grid-template-columns: 1fr;
  }

  .page-badge {
    margin-bottom: 12px;
  }

  .lede {
    margin-top: 14px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 22px;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .footer-grid {
    padding: 18px;
    gap: 14px;
  }

  .footer-grid > div:first-child {
    display: grid;
    gap: 6px;
  }

  .footer-title {
    font-size: 1rem;
  }

  .hero-visual,
  .showcase-grid,
  .hero-stats,
  .metric-panel,
  .product-feature {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    gap: 14px;
  }

  .visual-main,
  .visual-main-wide img {
    min-height: 320px;
  }

  .visual-side {
    grid-template-rows: auto;
  }

  .contact-form,
  .contact-card,
  .trust-card,
  .glass-panel,
  .hero-trust-card,
  .visual-note-card {
    padding: 20px;
  }

  .contact-form textarea {
    min-height: 128px;
  }

  .trust-band {
    gap: 12px;
  }

  .contact-grid {
    gap: 14px;
  }

  .showcase-item.wide {
    grid-column: auto;
  }

  h1 {
    max-width: none;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-shortcuts {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-login-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-section-head {
    flex-direction: column;
  }

  .admin-card-head {
    flex-direction: column;
  }

  .admin-card-toolbar {
    justify-content: flex-start;
  }

  .footer-link-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .footer-lang-row {
    justify-content: flex-start;
  }

  .footer-copy-group p,
  .footer-link-row span,
  .footer-meta-soft {
    font-size: 0.92rem;
  }

  .theme-chip,
  .lang-switch {
    min-height: 38px;
  }
}
